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 augeas 1.14.1.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
7 # Inc.
8 #
9 #
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## -------------------- ##
13 ## M4sh Initialization. ##
14 ## -------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 as_nop=:
19 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
20 then :
21 emulate sh
22 NULLCMD=:
23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24 # is contrary to our usage. Disable this feature.
25 alias -g '${1+"$@"}'='"$@"'
26 setopt NO_GLOB_SUBST
27 else $as_nop
28 case `(set -o) 2>/dev/null` in #(
29 *posix*) :
30 set -o posix ;; #(
31 *) :
32 ;;
33 esac
34 fi
35
36
37
38 # Reset variables that may have inherited troublesome values from
39 # the environment.
40
41 # IFS needs to be set, to space, tab, and newline, in precisely that order.
42 # (If _AS_PATH_WALK were called with IFS unset, it would have the
43 # side effect of setting IFS to empty, thus disabling word splitting.)
44 # Quoting is to prevent editors from complaining about space-tab.
45 as_nl='
46 '
47 export as_nl
48 IFS=" "" $as_nl"
49
50 PS1='$ '
51 PS2='> '
52 PS4='+ '
53
54 # Ensure predictable behavior from utilities with locale-dependent output.
55 LC_ALL=C
56 export LC_ALL
57 LANGUAGE=C
58 export LANGUAGE
59
60 # We cannot yet rely on "unset" to work, but we need these variables
61 # to be unset--not just set to an empty or harmless value--now, to
62 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
63 # also avoids known problems related to "unset" and subshell syntax
64 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
65 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
66 do eval test \${$as_var+y} \
67 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
68 done
69
70 # Ensure that fds 0, 1, and 2 are open.
71 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
72 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
73 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
74
75 # The user is always right.
76 if ${PATH_SEPARATOR+false} :; then
77 PATH_SEPARATOR=:
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80 PATH_SEPARATOR=';'
81 }
82 fi
83
84
85 # Find who we are. Look in the path if we contain no directory separator.
86 as_myself=
87 case $0 in #((
88 *[\\/]* ) as_myself=$0 ;;
89 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
90 for as_dir in $PATH
91 do
92 IFS=$as_save_IFS
93 case $as_dir in #(((
94 '') as_dir=./ ;;
95 */) ;;
96 *) as_dir=$as_dir/ ;;
97 esac
98 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114
115 # Use a proper internal environment variable to ensure we don't fall
116 # into an infinite loop, continuously re-executing ourselves.
117 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
118 _as_can_reexec=no; export _as_can_reexec;
119 # We cannot yet assume a decent shell, so we have to provide a
120 # neutralization value for shells without unset; and this also
121 # works around shells that cannot unset nonexistent variables.
122 # Preserve -v and -x to the replacement shell.
123 BASH_ENV=/dev/null
124 ENV=/dev/null
125 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
126 case $- in # ((((
127 *v*x* | *x*v* ) as_opts=-vx ;;
128 *v* ) as_opts=-v ;;
129 *x* ) as_opts=-x ;;
130 * ) as_opts= ;;
131 esac
132 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
133 # Admittedly, this is quite paranoid, since all the known shells bail
134 # out after a failed `exec'.
135 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
136 exit 255
137 fi
138 # We don't want this to propagate to other subprocesses.
139 { _as_can_reexec=; unset _as_can_reexec;}
140 if test "x$CONFIG_SHELL" = x; then
141 as_bourne_compatible="as_nop=:
142 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
143 then :
144 emulate sh
145 NULLCMD=:
146 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
147 # is contrary to our usage. Disable this feature.
148 alias -g '\${1+\"\$@\"}'='\"\$@\"'
149 setopt NO_GLOB_SUBST
150 else \$as_nop
151 case \`(set -o) 2>/dev/null\` in #(
152 *posix*) :
153 set -o posix ;; #(
154 *) :
155 ;;
156 esac
157 fi
158 "
159 as_required="as_fn_return () { (exit \$1); }
160 as_fn_success () { as_fn_return 0; }
161 as_fn_failure () { as_fn_return 1; }
162 as_fn_ret_success () { return 0; }
163 as_fn_ret_failure () { return 1; }
164
165 exitcode=0
166 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
167 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
168 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
169 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
170 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
171 then :
172
173 else \$as_nop
174 exitcode=1; echo positional parameters were not saved.
175 fi
176 test x\$exitcode = x0 || exit 1
177 blah=\$(echo \$(echo blah))
178 test x\"\$blah\" = xblah || exit 1
179 test -x / || exit 1"
180 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
181 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
182 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
183 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
184 test \$(( 1 + 1 )) = 2 || exit 1
185
186 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
187 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
188 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
189 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
190 PATH=/empty FPATH=/empty; export PATH FPATH
191 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
192 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
193 if (eval "$as_required") 2>/dev/null
194 then :
195 as_have_required=yes
196 else $as_nop
197 as_have_required=no
198 fi
199 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
200 then :
201
202 else $as_nop
203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
204 as_found=false
205 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
206 do
207 IFS=$as_save_IFS
208 case $as_dir in #(((
209 '') as_dir=./ ;;
210 */) ;;
211 *) as_dir=$as_dir/ ;;
212 esac
213 as_found=:
214 case $as_dir in #(
215 /*)
216 for as_base in sh bash ksh sh5; do
217 # Try only shells that exist, to save several forks.
218 as_shell=$as_dir$as_base
219 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
220 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
221 then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
224 then :
225 break 2
226 fi
227 fi
228 done;;
229 esac
230 as_found=false
231 done
232 IFS=$as_save_IFS
233 if $as_found
234 then :
235
236 else $as_nop
237 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
238 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
239 then :
240 CONFIG_SHELL=$SHELL as_have_required=yes
241 fi
242 fi
243
244
245 if test "x$CONFIG_SHELL" != x
246 then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268 if test x$as_have_required = xno
269 then :
270 printf "%s\n" "$0: This script requires a shell more modern than all"
271 printf "%s\n" "$0: the shells that I found on your system."
272 if test ${ZSH_VERSION+y} ; then
273 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
274 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
275 else
276 printf "%s\n" "$0: Please tell [email protected] about your system,
277 $0: including any error possibly output before this
278 $0: message. Then install a modern shell, or manually run
279 $0: the script under such a shell if you do have one."
280 fi
281 exit 1
282 fi
283 fi
284 fi
285 SHELL=${CONFIG_SHELL-/bin/sh}
286 export SHELL
287 # Unset more variables known to interfere with behavior of common tools.
288 CLICOLOR_FORCE= GREP_OPTIONS=
289 unset CLICOLOR_FORCE GREP_OPTIONS
290
291 ## --------------------- ##
292 ## M4sh Shell Functions. ##
293 ## --------------------- ##
294 # as_fn_unset VAR
295 # ---------------
296 # Portably unset VAR.
297 as_fn_unset ()
298 {
299 { eval $1=; unset $1;}
300 }
301 as_unset=as_fn_unset
302
303
304 # as_fn_set_status STATUS
305 # -----------------------
306 # Set $? to STATUS, without forking.
307 as_fn_set_status ()
308 {
309 return $1
310 } # as_fn_set_status
311
312 # as_fn_exit STATUS
313 # -----------------
314 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
315 as_fn_exit ()
316 {
317 set +e
318 as_fn_set_status $1
319 exit $1
320 } # as_fn_exit
321 # as_fn_nop
322 # ---------
323 # Do nothing but, unlike ":", preserve the value of $?.
324 as_fn_nop ()
325 {
326 return $?
327 }
328 as_nop=as_fn_nop
329
330 # as_fn_mkdir_p
331 # -------------
332 # Create "$as_dir" as a directory, including parents if necessary.
333 as_fn_mkdir_p ()
334 {
335
336 case $as_dir in #(
337 -*) as_dir=./$as_dir;;
338 esac
339 test -d "$as_dir" || eval $as_mkdir_p || {
340 as_dirs=
341 while :; do
342 case $as_dir in #(
343 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
344 *) as_qdir=$as_dir;;
345 esac
346 as_dirs="'$as_qdir' $as_dirs"
347 as_dir=`$as_dirname -- "$as_dir" ||
348 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
349 X"$as_dir" : 'X\(//\)[^/]' \| \
350 X"$as_dir" : 'X\(//\)$' \| \
351 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
352 printf "%s\n" X"$as_dir" |
353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
354 s//\1/
355 q
356 }
357 /^X\(\/\/\)[^/].*/{
358 s//\1/
359 q
360 }
361 /^X\(\/\/\)$/{
362 s//\1/
363 q
364 }
365 /^X\(\/\).*/{
366 s//\1/
367 q
368 }
369 s/.*/./; q'`
370 test -d "$as_dir" && break
371 done
372 test -z "$as_dirs" || eval "mkdir $as_dirs"
373 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
374
375
376 } # as_fn_mkdir_p
377
378 # as_fn_executable_p FILE
379 # -----------------------
380 # Test if FILE is an executable regular file.
381 as_fn_executable_p ()
382 {
383 test -f "$1" && test -x "$1"
384 } # as_fn_executable_p
385 # as_fn_append VAR VALUE
386 # ----------------------
387 # Append the text in VALUE to the end of the definition contained in VAR. Take
388 # advantage of any shell optimizations that allow amortized linear growth over
389 # repeated appends, instead of the typical quadratic growth present in naive
390 # implementations.
391 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
392 then :
393 eval 'as_fn_append ()
394 {
395 eval $1+=\$2
396 }'
397 else $as_nop
398 as_fn_append ()
399 {
400 eval $1=\$$1\$2
401 }
402 fi # as_fn_append
403
404 # as_fn_arith ARG...
405 # ------------------
406 # Perform arithmetic evaluation on the ARGs, and store the result in the
407 # global $as_val. Take advantage of shells that can avoid forks. The arguments
408 # must be portable across $(()) and expr.
409 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
410 then :
411 eval 'as_fn_arith ()
412 {
413 as_val=$(( $* ))
414 }'
415 else $as_nop
416 as_fn_arith ()
417 {
418 as_val=`expr "$@" || test $? -eq 1`
419 }
420 fi # as_fn_arith
421
422 # as_fn_nop
423 # ---------
424 # Do nothing but, unlike ":", preserve the value of $?.
425 as_fn_nop ()
426 {
427 return $?
428 }
429 as_nop=as_fn_nop
430
431 # as_fn_error STATUS ERROR [LINENO LOG_FD]
432 # ----------------------------------------
433 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
434 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
435 # script with STATUS, using 1 if that was 0.
436 as_fn_error ()
437 {
438 as_status=$1; test $as_status -eq 0 && as_status=1
439 if test "$4"; then
440 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
441 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
442 fi
443 printf "%s\n" "$as_me: error: $2" >&2
444 as_fn_exit $as_status
445 } # as_fn_error
446
447 if expr a : '\(a\)' >/dev/null 2>&1 &&
448 test "X`expr 00001 : '.*\(...\)'`" = X001; then
449 as_expr=expr
450 else
451 as_expr=false
452 fi
453
454 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
455 as_basename=basename
456 else
457 as_basename=false
458 fi
459
460 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
461 as_dirname=dirname
462 else
463 as_dirname=false
464 fi
465
466 as_me=`$as_basename -- "$0" ||
467 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
468 X"$0" : 'X\(//\)$' \| \
469 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
470 printf "%s\n" X/"$0" |
471 sed '/^.*\/\([^/][^/]*\)\/*$/{
472 s//\1/
473 q
474 }
475 /^X\/\(\/\/\)$/{
476 s//\1/
477 q
478 }
479 /^X\/\(\/\).*/{
480 s//\1/
481 q
482 }
483 s/.*/./; q'`
484
485 # Avoid depending upon Character Ranges.
486 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
487 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
488 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
489 as_cr_digits='0123456789'
490 as_cr_alnum=$as_cr_Letters$as_cr_digits
491
492
493 as_lineno_1=$LINENO as_lineno_1a=$LINENO
494 as_lineno_2=$LINENO as_lineno_2a=$LINENO
495 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
496 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
497 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
498 sed -n '
499 p
500 /[$]LINENO/=
501 ' <$as_myself |
502 sed '
503 s/[$]LINENO.*/&-/
504 t lineno
505 b
506 :lineno
507 N
508 :loop
509 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
510 t loop
511 s/-\n.*//
512 ' >$as_me.lineno &&
513 chmod +x "$as_me.lineno" ||
514 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
515
516 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
517 # already done that, so ensure we don't try to do so again and fall
518 # in an infinite loop. This has already happened in practice.
519 _as_can_reexec=no; export _as_can_reexec
520 # Don't try to exec as it changes $[0], causing all sort of problems
521 # (the dirname of $[0] is not the place where we might find the
522 # original and so on. Autoconf is especially sensitive to this).
523 . "./$as_me.lineno"
524 # Exit status is that of the last command.
525 exit
526 }
527
528
529 # Determine whether it's possible to make 'echo' print without a newline.
530 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
531 # for compatibility with existing Makefiles.
532 ECHO_C= ECHO_N= ECHO_T=
533 case `echo -n x` in #(((((
534 -n*)
535 case `echo 'xy\c'` in
536 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
537 xy) ECHO_C='\c';;
538 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
539 ECHO_T=' ';;
540 esac;;
541 *)
542 ECHO_N='-n';;
543 esac
544
545 # For backward compatibility with old third-party macros, we provide
546 # the shell variables $as_echo and $as_echo_n. New code should use
547 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
548 as_echo='printf %s\n'
549 as_echo_n='printf %s'
550
551
552 rm -f conf$$ conf$$.exe conf$$.file
553 if test -d conf$$.dir; then
554 rm -f conf$$.dir/conf$$.file
555 else
556 rm -f conf$$.dir
557 mkdir conf$$.dir 2>/dev/null
558 fi
559 if (echo >conf$$.file) 2>/dev/null; then
560 if ln -s conf$$.file conf$$ 2>/dev/null; then
561 as_ln_s='ln -s'
562 # ... but there are two gotchas:
563 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
564 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
565 # In both cases, we have to default to `cp -pR'.
566 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
567 as_ln_s='cp -pR'
568 elif ln conf$$.file conf$$ 2>/dev/null; then
569 as_ln_s=ln
570 else
571 as_ln_s='cp -pR'
572 fi
573 else
574 as_ln_s='cp -pR'
575 fi
576 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
577 rmdir conf$$.dir 2>/dev/null
578
579 if mkdir -p . 2>/dev/null; then
580 as_mkdir_p='mkdir -p "$as_dir"'
581 else
582 test -d ./-p && rmdir ./-p
583 as_mkdir_p=false
584 fi
585
586 as_test_x='test -x'
587 as_executable_p=as_fn_executable_p
588
589 # Sed expression to map a string onto a valid CPP name.
590 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
591
592 # Sed expression to map a string onto a valid variable name.
593 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
594
595 SHELL=${CONFIG_SHELL-/bin/sh}
596
597
598 test -n "$DJDIR" || exec 7<&0 </dev/null
599 exec 6>&1
600
601 # Name of the host.
602 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
603 # so uname gets run too.
604 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
605
606 #
607 # Initializations.
608 #
609 ac_default_prefix=/usr/local
610 ac_clean_files=
611 ac_config_libobj_dir=.
612 LIBOBJS=
613 cross_compiling=no
614 subdirs=
615 MFLAGS=
616 MAKEFLAGS=
617
618 # Identity of this package.
619 PACKAGE_NAME='augeas'
620 PACKAGE_TARNAME='augeas'
621 PACKAGE_VERSION='1.14.1'
622 PACKAGE_STRING='augeas 1.14.1'
623 PACKAGE_BUGREPORT=''
624 PACKAGE_URL=''
625
626 ac_unique_file="src/augeas.c"
627 # Factoring default headers for most tests.
628 ac_includes_default="\
629 #include <stddef.h>
630 #ifdef HAVE_STDIO_H
631 # include <stdio.h>
632 #endif
633 #ifdef HAVE_STDLIB_H
634 # include <stdlib.h>
635 #endif
636 #ifdef HAVE_STRING_H
637 # include <string.h>
638 #endif
639 #ifdef HAVE_INTTYPES_H
640 # include <inttypes.h>
641 #endif
642 #ifdef HAVE_STDINT_H
643 # include <stdint.h>
644 #endif
645 #ifdef HAVE_STRINGS_H
646 # include <strings.h>
647 #endif
648 #ifdef HAVE_SYS_TYPES_H
649 # include <sys/types.h>
650 #endif
651 #ifdef HAVE_SYS_STAT_H
652 # include <sys/stat.h>
653 #endif
654 #ifdef HAVE_UNISTD_H
655 # include <unistd.h>
656 #endif"
657
658 ac_header_c_list=
659 gl_use_threads_default=
660 gl_use_winpthreads_default=
661 ac_config_libobj_dir=gnulib/tests
662 ac_func_c_list=
663 gl_fnmatch_required=POSIX
664 gl_getopt_required=POSIX
665 ac_subst_vars='bashcompdir
666 gltests_LIBOBJDEPS
667 gltests_LTLIBOBJS
668 gltests_LIBOBJS
669 gl_LIBOBJDEPS
670 gl_LTLIBOBJS
671 gl_LIBOBJS
672 am__EXEEXT_FALSE
673 am__EXEEXT_TRUE
674 LTLIBOBJS
675 LIBOBJS
676 LIBXML_LIBS
677 LIBXML_CFLAGS
678 PKG_CONFIG_LIBDIR
679 PKG_CONFIG_PATH
680 PKG_CONFIG
681 PC_SELINUX
682 ENABLE_GNULIB_TESTS_FALSE
683 ENABLE_GNULIB_TESTS_TRUE
684 LIBTESTS_LIBDEPS
685 GL_CFLAG_GNULIB_WARNINGS
686 YIELD_LIB
687 GL_COND_OBJ_WINDOWS_TLS_FALSE
688 GL_COND_OBJ_WINDOWS_TLS_TRUE
689 GL_COND_OBJ_WINDOWS_THREAD_FALSE
690 GL_COND_OBJ_WINDOWS_THREAD_TRUE
691 GL_COND_OBJ_WCTOMB_FALSE
692 GL_COND_OBJ_WCTOMB_TRUE
693 GL_COND_OBJ_WCTOB_FALSE
694 GL_COND_OBJ_WCTOB_TRUE
695 GL_COND_OBJ_USLEEP_FALSE
696 GL_COND_OBJ_USLEEP_TRUE
697 GL_COND_OBJ_UNSETENV_FALSE
698 GL_COND_OBJ_UNSETENV_TRUE
699 HAVE_SYS_UIO_H
700 NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H
701 NEXT_SYS_UIO_H
702 NEXT_AS_FIRST_DIRECTIVE_SYS_IOCTL_H
703 NEXT_SYS_IOCTL_H
704 HAVE_SYS_IOCTL_H
705 GL_COND_OBJ_SYMLINK_FALSE
706 GL_COND_OBJ_SYMLINK_TRUE
707 GL_COND_OBJ_STRERROR_OVERRIDE_FALSE
708 GL_COND_OBJ_STRERROR_OVERRIDE_TRUE
709 GL_COND_OBJ_STRERROR_FALSE
710 GL_COND_OBJ_STRERROR_TRUE
711 GL_COND_OBJ_SOCKET_FALSE
712 GL_COND_OBJ_SOCKET_TRUE
713 GL_COND_OBJ_SLEEP_FALSE
714 GL_COND_OBJ_SLEEP_TRUE
715 GL_COND_OBJ_SIGPROCMASK_FALSE
716 GL_COND_OBJ_SIGPROCMASK_TRUE
717 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
718 NEXT_SIGNAL_H
719 GL_COND_OBJ_SETSOCKOPT_FALSE
720 GL_COND_OBJ_SETSOCKOPT_TRUE
721 GL_COND_OBJ_SETLOCALE_FALSE
722 GL_COND_OBJ_SETLOCALE_TRUE
723 LIB_SETLOCALE
724 GL_COND_OBJ_SETENV_FALSE
725 GL_COND_OBJ_SETENV_TRUE
726 GL_COND_OBJ_SELECT_FALSE
727 GL_COND_OBJ_SELECT_TRUE
728 LIB_SELECT
729 LIBSOCKET
730 GL_COND_OBJ_SCHED_YIELD_FALSE
731 GL_COND_OBJ_SCHED_YIELD_TRUE
732 GL_GNULIB_SCHED_YIELD
733 HAVE_STRUCT_SCHED_PARAM
734 HAVE_SCHED_H
735 NEXT_AS_FIRST_DIRECTIVE_SCHED_H
736 NEXT_SCHED_H
737 REPLACE_SCHED_YIELD
738 HAVE_SCHED_YIELD
739 GL_COND_OBJ_RAISE_FALSE
740 GL_COND_OBJ_RAISE_TRUE
741 GL_COND_OBJ_PUTENV_FALSE
742 GL_COND_OBJ_PUTENV_TRUE
743 GL_GNULIB_SIGACTION
744 GL_GNULIB_SIGPROCMASK
745 GL_GNULIB_SIGNAL_H_SIGPIPE
746 GL_GNULIB_RAISE
747 GL_GNULIB_PTHREAD_SIGMASK
748 GL_COND_OBJ_PTHREAD_SIGMASK_FALSE
749 GL_COND_OBJ_PTHREAD_SIGMASK_TRUE
750 LIB_PTHREAD_SIGMASK
751 REPLACE_RAISE
752 REPLACE_PTHREAD_SIGMASK
753 HAVE_SIGHANDLER_T
754 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
755 HAVE_STRUCT_SIGACTION_SA_SIGACTION
756 HAVE_SIGACTION
757 HAVE_SIGINFO_T
758 HAVE_SIGSET_T
759 HAVE_RAISE
760 HAVE_PTHREAD_SIGMASK
761 HAVE_POSIX_SIGNALBLOCKING
762 GL_COND_OBJ_PTHREAD_THREAD_FALSE
763 GL_COND_OBJ_PTHREAD_THREAD_TRUE
764 GL_GNULIB_PTHREAD_MUTEX_TIMEDLOCK
765 GL_GNULIB_PTHREAD_SPIN
766 GL_GNULIB_PTHREAD_TSS
767 GL_GNULIB_PTHREAD_COND
768 GL_GNULIB_PTHREAD_RWLOCK
769 GL_GNULIB_PTHREAD_MUTEX
770 GL_GNULIB_PTHREAD_ONCE
771 GL_GNULIB_PTHREAD_THREAD
772 LIB_PTHREAD
773 HAVE_PTHREAD_H
774 NEXT_AS_FIRST_DIRECTIVE_PTHREAD_H
775 NEXT_PTHREAD_H
776 REPLACE_PTHREAD_SPIN_DESTROY
777 REPLACE_PTHREAD_SPIN_UNLOCK
778 REPLACE_PTHREAD_SPIN_TRYLOCK
779 REPLACE_PTHREAD_SPIN_LOCK
780 REPLACE_PTHREAD_SPIN_INIT
781 REPLACE_PTHREAD_KEY_DELETE
782 REPLACE_PTHREAD_GETSPECIFIC
783 REPLACE_PTHREAD_SETSPECIFIC
784 REPLACE_PTHREAD_KEY_CREATE
785 REPLACE_PTHREAD_COND_DESTROY
786 REPLACE_PTHREAD_COND_BROADCAST
787 REPLACE_PTHREAD_COND_SIGNAL
788 REPLACE_PTHREAD_COND_TIMEDWAIT
789 REPLACE_PTHREAD_COND_WAIT
790 REPLACE_PTHREAD_CONDATTR_DESTROY
791 REPLACE_PTHREAD_CONDATTR_INIT
792 REPLACE_PTHREAD_COND_INIT
793 REPLACE_PTHREAD_RWLOCK_DESTROY
794 REPLACE_PTHREAD_RWLOCK_UNLOCK
795 REPLACE_PTHREAD_RWLOCK_TIMEDWRLOCK
796 REPLACE_PTHREAD_RWLOCK_TIMEDRDLOCK
797 REPLACE_PTHREAD_RWLOCK_TRYWRLOCK
798 REPLACE_PTHREAD_RWLOCK_TRYRDLOCK
799 REPLACE_PTHREAD_RWLOCK_WRLOCK
800 REPLACE_PTHREAD_RWLOCK_RDLOCK
801 REPLACE_PTHREAD_RWLOCKATTR_DESTROY
802 REPLACE_PTHREAD_RWLOCKATTR_INIT
803 REPLACE_PTHREAD_RWLOCK_INIT
804 REPLACE_PTHREAD_MUTEX_DESTROY
805 REPLACE_PTHREAD_MUTEX_UNLOCK
806 REPLACE_PTHREAD_MUTEX_TIMEDLOCK
807 REPLACE_PTHREAD_MUTEX_TRYLOCK
808 REPLACE_PTHREAD_MUTEX_LOCK
809 REPLACE_PTHREAD_MUTEXATTR_DESTROY
810 REPLACE_PTHREAD_MUTEXATTR_SETROBUST
811 REPLACE_PTHREAD_MUTEXATTR_GETROBUST
812 REPLACE_PTHREAD_MUTEXATTR_SETTYPE
813 REPLACE_PTHREAD_MUTEXATTR_GETTYPE
814 REPLACE_PTHREAD_MUTEXATTR_INIT
815 REPLACE_PTHREAD_MUTEX_INIT
816 REPLACE_PTHREAD_ONCE
817 REPLACE_PTHREAD_EXIT
818 REPLACE_PTHREAD_JOIN
819 REPLACE_PTHREAD_DETACH
820 REPLACE_PTHREAD_EQUAL
821 REPLACE_PTHREAD_SELF
822 REPLACE_PTHREAD_ATTR_DESTROY
823 REPLACE_PTHREAD_ATTR_SETDETACHSTATE
824 REPLACE_PTHREAD_ATTR_GETDETACHSTATE
825 REPLACE_PTHREAD_ATTR_INIT
826 REPLACE_PTHREAD_CREATE
827 HAVE_PTHREAD_SPIN_DESTROY
828 HAVE_PTHREAD_SPIN_UNLOCK
829 HAVE_PTHREAD_SPIN_TRYLOCK
830 HAVE_PTHREAD_SPIN_LOCK
831 HAVE_PTHREAD_SPIN_INIT
832 HAVE_PTHREAD_KEY_DELETE
833 HAVE_PTHREAD_GETSPECIFIC
834 HAVE_PTHREAD_SETSPECIFIC
835 HAVE_PTHREAD_KEY_CREATE
836 HAVE_PTHREAD_COND_DESTROY
837 HAVE_PTHREAD_COND_BROADCAST
838 HAVE_PTHREAD_COND_SIGNAL
839 HAVE_PTHREAD_COND_TIMEDWAIT
840 HAVE_PTHREAD_COND_WAIT
841 HAVE_PTHREAD_CONDATTR_DESTROY
842 HAVE_PTHREAD_CONDATTR_INIT
843 HAVE_PTHREAD_COND_INIT
844 HAVE_PTHREAD_RWLOCK_DESTROY
845 HAVE_PTHREAD_RWLOCK_UNLOCK
846 HAVE_PTHREAD_RWLOCK_TIMEDWRLOCK
847 HAVE_PTHREAD_RWLOCK_TIMEDRDLOCK
848 HAVE_PTHREAD_RWLOCK_TRYWRLOCK
849 HAVE_PTHREAD_RWLOCK_TRYRDLOCK
850 HAVE_PTHREAD_RWLOCK_WRLOCK
851 HAVE_PTHREAD_RWLOCK_RDLOCK
852 HAVE_PTHREAD_RWLOCKATTR_DESTROY
853 HAVE_PTHREAD_RWLOCKATTR_INIT
854 HAVE_PTHREAD_RWLOCK_INIT
855 HAVE_PTHREAD_MUTEX_DESTROY
856 HAVE_PTHREAD_MUTEX_UNLOCK
857 HAVE_PTHREAD_MUTEX_TIMEDLOCK
858 HAVE_PTHREAD_MUTEX_TRYLOCK
859 HAVE_PTHREAD_MUTEX_LOCK
860 HAVE_PTHREAD_MUTEXATTR_DESTROY
861 HAVE_PTHREAD_MUTEXATTR_SETROBUST
862 HAVE_PTHREAD_MUTEXATTR_GETROBUST
863 HAVE_PTHREAD_MUTEXATTR_SETTYPE
864 HAVE_PTHREAD_MUTEXATTR_GETTYPE
865 HAVE_PTHREAD_MUTEXATTR_INIT
866 HAVE_PTHREAD_MUTEX_INIT
867 HAVE_PTHREAD_ONCE
868 HAVE_PTHREAD_EXIT
869 HAVE_PTHREAD_JOIN
870 HAVE_PTHREAD_DETACH
871 HAVE_PTHREAD_EQUAL
872 HAVE_PTHREAD_SELF
873 HAVE_PTHREAD_ATTR_DESTROY
874 HAVE_PTHREAD_ATTR_SETDETACHSTATE
875 HAVE_PTHREAD_ATTR_GETDETACHSTATE
876 HAVE_PTHREAD_ATTR_INIT
877 HAVE_PTHREAD_CREATE
878 HAVE_PTHREAD_PROCESS_SHARED
879 HAVE_PTHREAD_MUTEX_ROBUST
880 HAVE_PTHREAD_MUTEX_RECURSIVE
881 HAVE_PTHREAD_CREATE_DETACHED
882 HAVE_PTHREAD_SPINLOCK_T
883 HAVE_PTHREAD_T
884 GL_GNULIB_SELECT
885 GL_GNULIB_PSELECT
886 GL_COND_OBJ_PSELECT_FALSE
887 GL_COND_OBJ_PSELECT_TRUE
888 HAVE_SYS_SELECT_H
889 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
890 NEXT_SYS_SELECT_H
891 REPLACE_SELECT
892 REPLACE_PSELECT
893 HAVE_PSELECT
894 GL_COND_OBJ_PIPE_FALSE
895 GL_COND_OBJ_PIPE_TRUE
896 GL_COND_OBJ_PERROR_FALSE
897 GL_COND_OBJ_PERROR_TRUE
898 GL_GENERATE_NETINET_IN_H_FALSE
899 GL_GENERATE_NETINET_IN_H_TRUE
900 NETINET_IN_H
901 HAVE_NETINET_IN_H
902 NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H
903 NEXT_NETINET_IN_H
904 GL_COND_OBJ_NANOSLEEP_FALSE
905 GL_COND_OBJ_NANOSLEEP_TRUE
906 LIB_NANOSLEEP
907 LIB_SEMAPHORE
908 INTL_MACOSX_LIBS
909 GL_COND_OBJ_LISTEN_FALSE
910 GL_COND_OBJ_LISTEN_TRUE
911 GL_GNULIB_IOCTL
912 GL_COND_OBJ_IOCTL_FALSE
913 GL_COND_OBJ_IOCTL_TRUE
914 GL_COND_OBJ_INET_PTON_FALSE
915 GL_COND_OBJ_INET_PTON_TRUE
916 INET_PTON_LIB
917 GL_GNULIB_GETTIMEOFDAY
918 GL_COND_OBJ_GETTIMEOFDAY_FALSE
919 GL_COND_OBJ_GETTIMEOFDAY_TRUE
920 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
921 NEXT_SYS_TIME_H
922 REPLACE_STRUCT_TIMEVAL
923 REPLACE_GETTIMEOFDAY
924 HAVE_SYS_TIME_H
925 HAVE_STRUCT_TIMEVAL
926 HAVE_GETTIMEOFDAY
927 GL_COND_OBJ_GETPAGESIZE_FALSE
928 GL_COND_OBJ_GETPAGESIZE_TRUE
929 GL_COND_OBJ_GETCWD_LGPL_FALSE
930 GL_COND_OBJ_GETCWD_LGPL_TRUE
931 GL_COND_OBJ_FTRUNCATE_FALSE
932 GL_COND_OBJ_FTRUNCATE_TRUE
933 GL_COND_OBJ_FDOPEN_FALSE
934 GL_COND_OBJ_FDOPEN_TRUE
935 GL_COND_OBJ_CONNECT_FALSE
936 GL_COND_OBJ_CONNECT_TRUE
937 LOCALE_TR_UTF8
938 GL_COND_OBJ_BIND_FALSE
939 GL_COND_OBJ_BIND_TRUE
940 GL_GNULIB_INET_PTON
941 GL_GNULIB_INET_NTOP
942 NEXT_AS_FIRST_DIRECTIVE_ARPA_INET_H
943 NEXT_ARPA_INET_H
944 HAVE_ARPA_INET_H
945 REPLACE_INET_PTON
946 REPLACE_INET_NTOP
947 HAVE_DECL_INET_PTON
948 HAVE_DECL_INET_NTOP
949 GL_GNULIB_ACCEPT4
950 GL_GNULIB_SHUTDOWN
951 GL_GNULIB_SETSOCKOPT
952 GL_GNULIB_SENDTO
953 GL_GNULIB_RECVFROM
954 GL_GNULIB_SEND
955 GL_GNULIB_RECV
956 GL_GNULIB_LISTEN
957 GL_GNULIB_GETSOCKOPT
958 GL_GNULIB_GETSOCKNAME
959 GL_GNULIB_GETPEERNAME
960 GL_GNULIB_BIND
961 GL_GNULIB_ACCEPT
962 GL_GNULIB_CONNECT
963 GL_GNULIB_SOCKET
964 GL_COND_OBJ_ACCEPT_FALSE
965 GL_COND_OBJ_ACCEPT_TRUE
966 HAVE_WS2TCPIP_H
967 HAVE_SYS_SOCKET_H
968 NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H
969 NEXT_SYS_SOCKET_H
970 HAVE_ACCEPT4
971 HAVE_SA_FAMILY_T
972 HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY
973 HAVE_STRUCT_SOCKADDR_STORAGE
974 gltests_WITNESS
975 GL_CXXFLAG_ALLOW_WARNINGS
976 GL_CFLAG_ALLOW_WARNINGS
977 GL_COND_OBJ_WMEMPCPY_FALSE
978 GL_COND_OBJ_WMEMPCPY_TRUE
979 GL_COND_OBJ_WMEMCHR_FALSE
980 GL_COND_OBJ_WMEMCHR_TRUE
981 GL_COND_OBJ_WINDOWS_RWLOCK_FALSE
982 GL_COND_OBJ_WINDOWS_RWLOCK_TRUE
983 GL_COND_OBJ_WINDOWS_RECMUTEX_FALSE
984 GL_COND_OBJ_WINDOWS_RECMUTEX_TRUE
985 GL_COND_OBJ_WINDOWS_ONCE_FALSE
986 GL_COND_OBJ_WINDOWS_ONCE_TRUE
987 GL_COND_OBJ_WINDOWS_MUTEX_FALSE
988 GL_COND_OBJ_WINDOWS_MUTEX_TRUE
989 GL_GNULIB_TOWCTRANS
990 GL_GNULIB_WCTRANS
991 GL_GNULIB_ISWCTYPE
992 GL_GNULIB_WCTYPE
993 GL_GNULIB_ISWXDIGIT
994 GL_GNULIB_ISWDIGIT
995 GL_GNULIB_ISWBLANK
996 REPLACE_TOWLOWER
997 REPLACE_ISWCNTRL
998 HAVE_WCTYPE_H
999 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
1000 NEXT_WCTYPE_H
1001 HAVE_ISWCNTRL
1002 REPLACE_ISWXDIGIT
1003 REPLACE_ISWDIGIT
1004 REPLACE_ISWBLANK
1005 HAVE_WCTRANS_T
1006 HAVE_WCTYPE_T
1007 HAVE_ISWBLANK
1008 GL_COND_OBJ_WCRTOMB_FALSE
1009 GL_COND_OBJ_WCRTOMB_TRUE
1010 HAVE_CRTDEFS_H
1011 HAVE_WINT_T
1012 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
1013 NEXT_WCHAR_H
1014 HAVE_FEATURES_H
1015 HAVE_UNISTD_H
1016 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
1017 NEXT_UNISTD_H
1018 GL_GNULIB_MDA_TZSET
1019 GL_GNULIB_TZSET
1020 GL_GNULIB_TIME_RZ
1021 GL_GNULIB_TIME_R
1022 GL_GNULIB_TIMESPEC_GETRES
1023 GL_GNULIB_TIMESPEC_GET
1024 GL_GNULIB_TIMEGM
1025 GL_GNULIB_STRPTIME
1026 GL_GNULIB_STRFTIME
1027 GL_GNULIB_NANOSLEEP
1028 GL_GNULIB_LOCALTIME
1029 GL_GNULIB_MKTIME
1030 GL_GNULIB_CTIME
1031 TIME_H_DEFINES_TIME_UTC
1032 UNISTD_H_DEFINES_STRUCT_TIMESPEC
1033 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
1034 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
1035 TIME_H_DEFINES_STRUCT_TIMESPEC
1036 NEXT_AS_FIRST_DIRECTIVE_TIME_H
1037 NEXT_TIME_H
1038 REPLACE_LOCALTIME
1039 REPLACE_GMTIME
1040 GNULIB_GETTIMEOFDAY
1041 REPLACE_TZSET
1042 REPLACE_TIMEGM
1043 REPLACE_STRFTIME
1044 REPLACE_NANOSLEEP
1045 REPLACE_MKTIME
1046 REPLACE_LOCALTIME_R
1047 REPLACE_CTIME
1048 HAVE_TIMEZONE_T
1049 HAVE_TIMESPEC_GETRES
1050 HAVE_TIMESPEC_GET
1051 HAVE_TIMEGM
1052 HAVE_STRPTIME
1053 HAVE_NANOSLEEP
1054 HAVE_DECL_LOCALTIME_R
1055 GL_GNULIB_WAITPID
1056 NEXT_AS_FIRST_DIRECTIVE_SYS_WAIT_H
1057 NEXT_SYS_WAIT_H
1058 WINDOWS_STAT_INODES
1059 WINDOWS_64_BIT_OFF_T
1060 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
1061 NEXT_SYS_TYPES_H
1062 HAVE_SYS_RANDOM_H
1063 NEXT_AS_FIRST_DIRECTIVE_SYS_RANDOM_H
1064 NEXT_SYS_RANDOM_H
1065 GL_COND_OBJ_STRNLEN_FALSE
1066 GL_COND_OBJ_STRNLEN_TRUE
1067 GL_COND_OBJ_STRNDUP_FALSE
1068 GL_COND_OBJ_STRNDUP_TRUE
1069 NEXT_AS_FIRST_DIRECTIVE_STRING_H
1070 NEXT_STRING_H
1071 GL_COND_OBJ_STRCHRNUL_FALSE
1072 GL_COND_OBJ_STRCHRNUL_TRUE
1073 GL_COND_OBJ_STPNCPY_FALSE
1074 GL_COND_OBJ_STPNCPY_TRUE
1075 GL_COND_OBJ_STPCPY_FALSE
1076 GL_COND_OBJ_STPCPY_TRUE
1077 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
1078 NEXT_STDLIB_H
1079 GL_COND_OBJ_STDIO_WRITE_FALSE
1080 GL_COND_OBJ_STDIO_WRITE_TRUE
1081 GL_COND_OBJ_STDIO_READ_FALSE
1082 GL_COND_OBJ_STDIO_READ_TRUE
1083 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
1084 NEXT_STDIO_H
1085 GL_GENERATE_STDINT_H_FALSE
1086 GL_GENERATE_STDINT_H_TRUE
1087 STDINT_H
1088 GL_GENERATE_STDDEF_H_FALSE
1089 GL_GENERATE_STDDEF_H_TRUE
1090 STDDEF_H
1091 GL_GENERATE_STDCKDINT_H_FALSE
1092 GL_GENERATE_STDCKDINT_H_TRUE
1093 STDCKDINT_H
1094 GL_GENERATE_STDALIGN_H_FALSE
1095 GL_GENERATE_STDALIGN_H_TRUE
1096 STDALIGN_H
1097 GL_COND_OBJ_STAT_FALSE
1098 GL_COND_OBJ_STAT_TRUE
1099 GL_COND_OBJ_SETLOCALE_LOCK_FALSE
1100 GL_COND_OBJ_SETLOCALE_LOCK_TRUE
1101 GL_COND_OBJ_GETFILECON_FALSE
1102 GL_COND_OBJ_GETFILECON_TRUE
1103 GL_GENERATE_SELINUX_LABEL_H_FALSE
1104 GL_GENERATE_SELINUX_LABEL_H_TRUE
1105 SELINUX_LABEL_H
1106 GL_GENERATE_SELINUX_CONTEXT_H_FALSE
1107 GL_GENERATE_SELINUX_CONTEXT_H_TRUE
1108 SELINUX_CONTEXT_H
1109 NEXT_AS_FIRST_DIRECTIVE_SELINUX_SELINUX_H
1110 NEXT_SELINUX_SELINUX_H
1111 LIB_SELINUX
1112 GL_COND_OBJ_REGEX_FALSE
1113 GL_COND_OBJ_REGEX_TRUE
1114 GL_COND_OBJ_REALLOCARRAY_FALSE
1115 GL_COND_OBJ_REALLOCARRAY_TRUE
1116 GL_COND_OBJ_READLINK_FALSE
1117 GL_COND_OBJ_READLINK_TRUE
1118 GL_COND_OBJ_RAWMEMCHR_FALSE
1119 GL_COND_OBJ_RAWMEMCHR_TRUE
1120 GL_COND_OBJ_OPEN_FALSE
1121 GL_COND_OBJ_OPEN_TRUE
1122 GL_COND_OBJ_NL_LANGINFO_LOCK_FALSE
1123 GL_COND_OBJ_NL_LANGINFO_LOCK_TRUE
1124 GL_COND_OBJ_NL_LANGINFO_FALSE
1125 GL_COND_OBJ_NL_LANGINFO_TRUE
1126 LIB_NL_LANGINFO
1127 GL_COND_OBJ_MSVC_NOTHROW_FALSE
1128 GL_COND_OBJ_MSVC_NOTHROW_TRUE
1129 GL_COND_OBJ_MSVC_INVAL_FALSE
1130 GL_COND_OBJ_MSVC_INVAL_TRUE
1131 GL_COND_OBJ_MKSTEMP_FALSE
1132 GL_COND_OBJ_MKSTEMP_TRUE
1133 GL_COND_OBJ_MKDIR_FALSE
1134 GL_COND_OBJ_MKDIR_TRUE
1135 GL_COND_OBJ_MEMPCPY_FALSE
1136 GL_COND_OBJ_MEMPCPY_TRUE
1137 GL_GNULIB_MDA_STRDUP
1138 GL_GNULIB_MDA_MEMCCPY
1139 GL_GNULIB_STRVERSCMP
1140 GL_GNULIB_STRSIGNAL
1141 GL_GNULIB_SIGDESCR_NP
1142 GL_GNULIB_SIGABBREV_NP
1143 GL_GNULIB_STRERRORNAME_NP
1144 GL_GNULIB_STRERROR_R
1145 GL_GNULIB_STRERROR
1146 GL_GNULIB_MBSTOK_R
1147 GL_GNULIB_MBSSEP
1148 GL_GNULIB_MBSSPN
1149 GL_GNULIB_MBSPBRK
1150 GL_GNULIB_MBSCSPN
1151 GL_GNULIB_MBSCASESTR
1152 GL_GNULIB_MBSPCASECMP
1153 GL_GNULIB_MBSNCASECMP
1154 GL_GNULIB_MBSCASECMP
1155 GL_GNULIB_MBSSTR
1156 GL_GNULIB_MBSRCHR
1157 GL_GNULIB_MBSCHR
1158 GL_GNULIB_MBSNLEN
1159 GL_GNULIB_MBSLEN
1160 GL_GNULIB_STRTOK_R
1161 GL_GNULIB_STRCASESTR
1162 GL_GNULIB_STRSTR
1163 GL_GNULIB_STRSEP
1164 GL_GNULIB_STRPBRK
1165 GL_GNULIB_STRNLEN
1166 GL_GNULIB_STRNDUP
1167 GL_GNULIB_STRNCAT
1168 GL_GNULIB_STRDUP
1169 GL_GNULIB_STRCHRNUL
1170 GL_GNULIB_STPNCPY
1171 GL_GNULIB_STPCPY
1172 GL_GNULIB_RAWMEMCHR
1173 GL_GNULIB_MEMSET_EXPLICIT
1174 GL_GNULIB_MEMRCHR
1175 GL_GNULIB_MEMPCPY
1176 GL_GNULIB_MEMMEM
1177 GL_GNULIB_MEMCHR
1178 GL_GNULIB_FFSLL
1179 GL_GNULIB_FFSL
1180 GL_GNULIB_EXPLICIT_BZERO
1181 GL_COND_OBJ_MEMCHR_FALSE
1182 GL_COND_OBJ_MEMCHR_TRUE
1183 UNDEFINE_STRTOK_R
1184 REPLACE_STRSIGNAL
1185 REPLACE_STRERRORNAME_NP
1186 REPLACE_STRERROR_R
1187 REPLACE_STRERROR
1188 REPLACE_STRTOK_R
1189 REPLACE_STRCASESTR
1190 REPLACE_STRSTR
1191 REPLACE_STRNLEN
1192 REPLACE_STRNDUP
1193 REPLACE_STRNCAT
1194 REPLACE_STRDUP
1195 REPLACE_STRCHRNUL
1196 REPLACE_STPNCPY
1197 REPLACE_MEMMEM
1198 REPLACE_MEMCHR
1199 REPLACE_FFSLL
1200 HAVE_STRVERSCMP
1201 HAVE_DECL_STRSIGNAL
1202 HAVE_SIGDESCR_NP
1203 HAVE_SIGABBREV_NP
1204 HAVE_STRERRORNAME_NP
1205 HAVE_DECL_STRERROR_R
1206 HAVE_DECL_STRTOK_R
1207 HAVE_STRCASESTR
1208 HAVE_STRSEP
1209 HAVE_STRPBRK
1210 HAVE_DECL_STRNLEN
1211 HAVE_DECL_STRNDUP
1212 HAVE_DECL_STRDUP
1213 HAVE_STRCHRNUL
1214 HAVE_STPNCPY
1215 HAVE_STPCPY
1216 HAVE_RAWMEMCHR
1217 HAVE_DECL_MEMRCHR
1218 HAVE_MEMSET_EXPLICIT
1219 HAVE_MEMPCPY
1220 HAVE_DECL_MEMMEM
1221 HAVE_FFSLL
1222 HAVE_FFSL
1223 HAVE_EXPLICIT_BZERO
1224 HAVE_MBSLEN
1225 GL_COND_OBJ_MBTOWC_FALSE
1226 GL_COND_OBJ_MBTOWC_TRUE
1227 GL_COND_OBJ_MBSRTOWCS_FALSE
1228 GL_COND_OBJ_MBSRTOWCS_TRUE
1229 GL_COND_OBJ_MBSINIT_FALSE
1230 GL_COND_OBJ_MBSINIT_TRUE
1231 HAVE_VISIBILITY
1232 CFLAG_VISIBILITY
1233 GL_COND_OBJ_MBRTOWC_FALSE
1234 GL_COND_OBJ_MBRTOWC_TRUE
1235 LIB_MBRTOWC
1236 LOCALE_ZH_CN
1237 LOCALE_FR_UTF8
1238 LOCALE_JA
1239 GL_COND_OBJ_LSTAT_FALSE
1240 GL_COND_OBJ_LSTAT_TRUE
1241 LTLIBMULTITHREAD
1242 LIBMULTITHREAD
1243 LTLIBTHREAD
1244 LIBTHREAD
1245 LIBSTDTHREAD
1246 GL_COND_OBJ_LOCALECONV_FALSE
1247 GL_COND_OBJ_LOCALECONV_TRUE
1248 GL_GNULIB_LOCALENAME
1249 GL_GNULIB_DUPLOCALE
1250 GL_GNULIB_SETLOCALE_NULL
1251 GL_GNULIB_SETLOCALE
1252 GL_GNULIB_LOCALECONV
1253 NEXT_AS_FIRST_DIRECTIVE_LOCALE_H
1254 NEXT_LOCALE_H
1255 HAVE_XLOCALE_H
1256 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
1257 NEXT_STDDEF_H
1258 HAVE_WCHAR_T
1259 HAVE_MAX_ALIGN_T
1260 REPLACE_NULL
1261 LOCALENAME_ENHANCE_LOCALE_FUNCS
1262 REPLACE_STRUCT_LCONV
1263 REPLACE_FREELOCALE
1264 REPLACE_DUPLOCALE
1265 REPLACE_NEWLOCALE
1266 REPLACE_SETLOCALE
1267 REPLACE_LOCALECONV
1268 HAVE_FREELOCALE
1269 HAVE_DUPLOCALE
1270 HAVE_NEWLOCALE
1271 LOCALCHARSET_TESTS_ENVIRONMENT
1272 GL_GENERATE_LIMITS_H_FALSE
1273 GL_GENERATE_LIMITS_H_TRUE
1274 LIMITS_H
1275 GL_GNULIB_NL_LANGINFO
1276 HAVE_LANGINFO_YESEXPR
1277 HAVE_LANGINFO_ERA
1278 HAVE_LANGINFO_ALTMON
1279 HAVE_LANGINFO_T_FMT_AMPM
1280 HAVE_LANGINFO_CODESET
1281 HAVE_LANGINFO_H
1282 NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H
1283 NEXT_LANGINFO_H
1284 REPLACE_NL_LANGINFO
1285 HAVE_NL_LANGINFO
1286 GL_COND_OBJ_ISBLANK_FALSE
1287 GL_COND_OBJ_ISBLANK_TRUE
1288 GL_GNULIB_STRTOUMAX
1289 GL_GNULIB_STRTOIMAX
1290 GL_GNULIB_IMAXDIV
1291 GL_GNULIB_IMAXABS
1292 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
1293 NEXT_INTTYPES_H
1294 UINT64_MAX_EQ_ULONG_MAX
1295 UINT32_MAX_LT_UINTMAX_MAX
1296 PRIPTR_PREFIX
1297 INT64_MAX_EQ_LONG_MAX
1298 INT32_MAX_LT_INTMAX_MAX
1299 REPLACE_STRTOUMAX
1300 REPLACE_STRTOIMAX
1301 HAVE_IMAXDIV_T
1302 HAVE_DECL_STRTOUMAX
1303 HAVE_DECL_STRTOIMAX
1304 HAVE_DECL_IMAXDIV
1305 HAVE_DECL_IMAXABS
1306 HAVE_SYS_INTTYPES_H
1307 HAVE_SYS_BITYPES_H
1308 HAVE_C99_STDINT_H
1309 WINT_T_SUFFIX
1310 WCHAR_T_SUFFIX
1311 SIG_ATOMIC_T_SUFFIX
1312 SIZE_T_SUFFIX
1313 PTRDIFF_T_SUFFIX
1314 HAVE_SIGNED_WINT_T
1315 HAVE_SIGNED_WCHAR_T
1316 HAVE_SIGNED_SIG_ATOMIC_T
1317 BITSIZEOF_WINT_T
1318 BITSIZEOF_WCHAR_T
1319 BITSIZEOF_SIG_ATOMIC_T
1320 BITSIZEOF_SIZE_T
1321 BITSIZEOF_PTRDIFF_T
1322 APPLE_UNIVERSAL_BUILD
1323 HAVE_STDINT_H
1324 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
1325 NEXT_STDINT_H
1326 HAVE_SYS_TYPES_H
1327 HAVE_INTTYPES_H
1328 HAVE_WCHAR_H
1329 GNULIBHEADERS_OVERRIDE_WINT_T
1330 NEXT_AS_FIRST_DIRECTIVE_LIMITS_H
1331 NEXT_LIMITS_H
1332 LIB_HARD_LOCALE
1333 LIB_SETLOCALE_NULL
1334 LIB_SCHED_YIELD
1335 LIBPMULTITHREAD
1336 LIBPTHREAD
1337 LTLIBINTL
1338 LIBINTL
1339 GL_GNULIB_GETRANDOM
1340 GL_COND_OBJ_GETRANDOM_FALSE
1341 GL_COND_OBJ_GETRANDOM_TRUE
1342 LIB_GETRANDOM
1343 REPLACE_GETRANDOM
1344 HAVE_GETRANDOM
1345 GL_COND_OBJ_GETOPT_FALSE
1346 GL_COND_OBJ_GETOPT_TRUE
1347 GL_GENERATE_GETOPT_CDEFS_H_FALSE
1348 GL_GENERATE_GETOPT_CDEFS_H_TRUE
1349 GETOPT_CDEFS_H
1350 GL_GENERATE_GETOPT_H_FALSE
1351 GL_GENERATE_GETOPT_H_TRUE
1352 GETOPT_H
1353 HAVE_SYS_CDEFS_H
1354 HAVE_GETOPT_H
1355 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
1356 NEXT_GETOPT_H
1357 GL_COND_OBJ_GETLINE_FALSE
1358 GL_COND_OBJ_GETLINE_TRUE
1359 GL_COND_OBJ_GETDTABLESIZE_FALSE
1360 GL_COND_OBJ_GETDTABLESIZE_TRUE
1361 GL_GNULIB_MDA_TEMPNAM
1362 GL_GNULIB_MDA_PUTW
1363 GL_GNULIB_MDA_GETW
1364 GL_GNULIB_MDA_FILENO
1365 GL_GNULIB_MDA_FDOPEN
1366 GL_GNULIB_MDA_FCLOSEALL
1367 GL_GNULIB_VSPRINTF_POSIX
1368 GL_GNULIB_VSNPRINTF
1369 GL_GNULIB_VPRINTF_POSIX
1370 GL_GNULIB_VPRINTF
1371 GL_GNULIB_VFPRINTF_POSIX
1372 GL_GNULIB_VFPRINTF
1373 GL_GNULIB_VDPRINTF
1374 GL_GNULIB_VSCANF
1375 GL_GNULIB_VFSCANF
1376 GL_GNULIB_VASPRINTF
1377 GL_GNULIB_TMPFILE
1378 GL_GNULIB_STDIO_H_SIGPIPE
1379 GL_GNULIB_STDIO_H_NONBLOCKING
1380 GL_GNULIB_SPRINTF_POSIX
1381 GL_GNULIB_SNPRINTF
1382 GL_GNULIB_SCANF
1383 GL_GNULIB_RENAMEAT
1384 GL_GNULIB_RENAME
1385 GL_GNULIB_REMOVE
1386 GL_GNULIB_PUTS
1387 GL_GNULIB_PUTCHAR
1388 GL_GNULIB_PUTC
1389 GL_GNULIB_PRINTF_POSIX
1390 GL_GNULIB_PRINTF
1391 GL_GNULIB_POPEN
1392 GL_GNULIB_PERROR
1393 GL_GNULIB_PCLOSE
1394 GL_GNULIB_OBSTACK_PRINTF_POSIX
1395 GL_GNULIB_OBSTACK_PRINTF
1396 GL_GNULIB_GETLINE
1397 GL_GNULIB_GETDELIM
1398 GL_GNULIB_GETCHAR
1399 GL_GNULIB_GETC
1400 GL_GNULIB_FWRITE
1401 GL_GNULIB_FTELLO
1402 GL_GNULIB_FTELL
1403 GL_GNULIB_FSEEKO
1404 GL_GNULIB_FSEEK
1405 GL_GNULIB_FSCANF
1406 GL_GNULIB_FREOPEN
1407 GL_GNULIB_FREAD
1408 GL_GNULIB_FPUTS
1409 GL_GNULIB_FPUTC
1410 GL_GNULIB_FPURGE
1411 GL_GNULIB_FPRINTF_POSIX
1412 GL_GNULIB_FPRINTF
1413 GL_GNULIB_FOPEN_GNU
1414 GL_GNULIB_FOPEN
1415 GL_GNULIB_FGETS
1416 GL_GNULIB_FGETC
1417 GL_GNULIB_FFLUSH
1418 GL_GNULIB_FDOPEN
1419 GL_GNULIB_FCLOSE
1420 GL_GNULIB_DPRINTF
1421 GL_COND_OBJ_GETDELIM_FALSE
1422 GL_COND_OBJ_GETDELIM_TRUE
1423 REPLACE_VSPRINTF
1424 REPLACE_VSNPRINTF
1425 REPLACE_VPRINTF
1426 REPLACE_VFPRINTF
1427 REPLACE_VDPRINTF
1428 REPLACE_VASPRINTF
1429 REPLACE_TMPFILE
1430 REPLACE_STDIO_WRITE_FUNCS
1431 REPLACE_STDIO_READ_FUNCS
1432 REPLACE_SPRINTF
1433 REPLACE_SNPRINTF
1434 REPLACE_RENAMEAT
1435 REPLACE_RENAME
1436 REPLACE_REMOVE
1437 REPLACE_PRINTF
1438 REPLACE_POPEN
1439 REPLACE_PERROR
1440 REPLACE_OBSTACK_PRINTF
1441 REPLACE_GETLINE
1442 REPLACE_GETDELIM
1443 REPLACE_FTELLO
1444 REPLACE_FTELL
1445 REPLACE_FSEEKO
1446 REPLACE_FSEEK
1447 REPLACE_FREOPEN
1448 REPLACE_FPURGE
1449 REPLACE_FPRINTF
1450 REPLACE_FOPEN_FOR_FOPEN_GNU
1451 REPLACE_FOPEN
1452 REPLACE_FFLUSH
1453 REPLACE_FDOPEN
1454 REPLACE_FCLOSE
1455 REPLACE_DPRINTF
1456 HAVE_VDPRINTF
1457 HAVE_VASPRINTF
1458 HAVE_RENAMEAT
1459 HAVE_POPEN
1460 HAVE_PCLOSE
1461 HAVE_FTELLO
1462 HAVE_FSEEKO
1463 HAVE_DPRINTF
1464 HAVE_DECL_VSNPRINTF
1465 HAVE_DECL_SNPRINTF
1466 HAVE_DECL_OBSTACK_PRINTF
1467 HAVE_DECL_GETLINE
1468 HAVE_DECL_GETDELIM
1469 HAVE_DECL_FTELLO
1470 HAVE_DECL_FSEEKO
1471 HAVE_DECL_FPURGE
1472 HAVE_DECL_FCLOSEALL
1473 GL_GNULIB_MDA_UMASK
1474 GL_GNULIB_MDA_MKDIR
1475 GL_GNULIB_MDA_CHMOD
1476 GL_GNULIB_OVERRIDES_STRUCT_STAT
1477 GL_GNULIB_UTIMENSAT
1478 GL_GNULIB_STAT
1479 GL_GNULIB_MKNODAT
1480 GL_GNULIB_MKNOD
1481 GL_GNULIB_MKFIFOAT
1482 GL_GNULIB_MKFIFO
1483 GL_GNULIB_MKDIRAT
1484 GL_GNULIB_MKDIR
1485 GL_GNULIB_LSTAT
1486 GL_GNULIB_LCHMOD
1487 GL_GNULIB_GETUMASK
1488 GL_GNULIB_FUTIMENS
1489 GL_GNULIB_FSTATAT
1490 GL_GNULIB_FSTAT
1491 GL_GNULIB_FCHMODAT
1492 GL_GNULIB_CHMOD
1493 WINDOWS_64_BIT_ST_SIZE
1494 WINDOWS_STAT_TIMESPEC
1495 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
1496 NEXT_SYS_STAT_H
1497 GL_COND_OBJ_FSTAT_FALSE
1498 GL_COND_OBJ_FSTAT_TRUE
1499 REPLACE_UTIMENSAT
1500 REPLACE_STAT
1501 REPLACE_MKNODAT
1502 REPLACE_MKNOD
1503 REPLACE_MKFIFOAT
1504 REPLACE_MKFIFO
1505 REPLACE_MKDIR
1506 REPLACE_LSTAT
1507 REPLACE_FUTIMENS
1508 REPLACE_FSTATAT
1509 REPLACE_FSTAT
1510 REPLACE_FCHMODAT
1511 REPLACE_CHMOD
1512 HAVE_UTIMENSAT
1513 HAVE_MKNODAT
1514 HAVE_MKNOD
1515 HAVE_MKFIFOAT
1516 HAVE_MKFIFO
1517 HAVE_MKDIRAT
1518 HAVE_LSTAT
1519 HAVE_LCHMOD
1520 HAVE_GETUMASK
1521 HAVE_FUTIMENS
1522 HAVE_FSTATAT
1523 HAVE_FCHMODAT
1524 GL_COND_OBJ_FREE_FALSE
1525 GL_COND_OBJ_FREE_TRUE
1526 GL_GENERATE_FNMATCH_H_FALSE
1527 GL_GENERATE_FNMATCH_H_TRUE
1528 FNMATCH_H
1529 GL_GNULIB_FNMATCH
1530 HAVE_FNMATCH_H
1531 NEXT_AS_FIRST_DIRECTIVE_FNMATCH_H
1532 NEXT_FNMATCH_H
1533 REPLACE_FNMATCH
1534 HAVE_FNMATCH
1535 GL_COND_OBJ_ITOLD_FALSE
1536 GL_COND_OBJ_ITOLD_TRUE
1537 GL_COND_OBJ_FLOAT_FALSE
1538 GL_COND_OBJ_FLOAT_TRUE
1539 GL_GENERATE_FLOAT_H_FALSE
1540 GL_GENERATE_FLOAT_H_TRUE
1541 FLOAT_H
1542 REPLACE_ITOLD
1543 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1544 NEXT_FLOAT_H
1545 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
1546 NEXT_FCNTL_H
1547 GL_GNULIB_MDA_OPEN
1548 GL_GNULIB_MDA_CREAT
1549 GL_GNULIB_OPENAT
1550 GL_GNULIB_OPEN
1551 GL_GNULIB_NONBLOCKING
1552 GL_GNULIB_FCNTL
1553 GL_GNULIB_CREAT
1554 GL_COND_OBJ_FCNTL_FALSE
1555 GL_COND_OBJ_FCNTL_TRUE
1556 REPLACE_OPENAT
1557 REPLACE_OPEN
1558 REPLACE_FCNTL
1559 REPLACE_CREAT
1560 HAVE_OPENAT
1561 HAVE_FCNTL
1562 GL_GENERATE_ERRNO_H_FALSE
1563 GL_GENERATE_ERRNO_H_TRUE
1564 ERRNO_H
1565 EOVERFLOW_VALUE
1566 EOVERFLOW_HIDDEN
1567 ENOLINK_VALUE
1568 ENOLINK_HIDDEN
1569 EMULTIHOP_VALUE
1570 EMULTIHOP_HIDDEN
1571 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1572 NEXT_ERRNO_H
1573 GL_COND_OBJ_DUP2_FALSE
1574 GL_COND_OBJ_DUP2_TRUE
1575 GL_GNULIB_ISBLANK
1576 NEXT_AS_FIRST_DIRECTIVE_CTYPE_H
1577 NEXT_CTYPE_H
1578 HAVE_ISBLANK
1579 GL_GNULIB_MDA_WRITE
1580 GL_GNULIB_MDA_UNLINK
1581 GL_GNULIB_MDA_SWAB
1582 GL_GNULIB_MDA_RMDIR
1583 GL_GNULIB_MDA_READ
1584 GL_GNULIB_MDA_LSEEK
1585 GL_GNULIB_MDA_ISATTY
1586 GL_GNULIB_MDA_GETPID
1587 GL_GNULIB_MDA_GETCWD
1588 GL_GNULIB_MDA_EXECVPE
1589 GL_GNULIB_MDA_EXECVP
1590 GL_GNULIB_MDA_EXECVE
1591 GL_GNULIB_MDA_EXECV
1592 GL_GNULIB_MDA_EXECLP
1593 GL_GNULIB_MDA_EXECLE
1594 GL_GNULIB_MDA_EXECL
1595 GL_GNULIB_MDA_DUP2
1596 GL_GNULIB_MDA_DUP
1597 GL_GNULIB_MDA_CLOSE
1598 GL_GNULIB_MDA_CHDIR
1599 GL_GNULIB_MDA_ACCESS
1600 GL_GNULIB_WRITE
1601 GL_GNULIB_USLEEP
1602 GL_GNULIB_UNLINKAT
1603 GL_GNULIB_UNLINK
1604 GL_GNULIB_UNISTD_H_SIGPIPE
1605 GL_GNULIB_UNISTD_H_NONBLOCKING
1606 GL_GNULIB_UNISTD_H_GETOPT
1607 GL_GNULIB_TTYNAME_R
1608 GL_GNULIB_TRUNCATE
1609 GL_GNULIB_SYMLINKAT
1610 GL_GNULIB_SYMLINK
1611 GL_GNULIB_SLEEP
1612 GL_GNULIB_SETHOSTNAME
1613 GL_GNULIB_RMDIR
1614 GL_GNULIB_READLINKAT
1615 GL_GNULIB_READLINK
1616 GL_GNULIB_READ
1617 GL_GNULIB_PWRITE
1618 GL_GNULIB_PREAD
1619 GL_GNULIB_PIPE2
1620 GL_GNULIB_PIPE
1621 GL_GNULIB_LSEEK
1622 GL_GNULIB_LINKAT
1623 GL_GNULIB_LINK
1624 GL_GNULIB_LCHOWN
1625 GL_GNULIB_ISATTY
1626 GL_GNULIB_GROUP_MEMBER
1627 GL_GNULIB_GETUSERSHELL
1628 GL_GNULIB_GETPASS_GNU
1629 GL_GNULIB_GETPASS
1630 GL_GNULIB_GETPAGESIZE
1631 GL_GNULIB_GETOPT_POSIX
1632 GL_GNULIB_GETLOGIN_R
1633 GL_GNULIB_GETLOGIN
1634 GL_GNULIB_GETHOSTNAME
1635 GL_GNULIB_GETGROUPS
1636 GL_GNULIB_GETENTROPY
1637 GL_GNULIB_GETDTABLESIZE
1638 GL_GNULIB_GETDOMAINNAME
1639 GL_GNULIB_GETCWD
1640 GL_GNULIB_FTRUNCATE
1641 GL_GNULIB_FSYNC
1642 GL_GNULIB_FDATASYNC
1643 GL_GNULIB_FCHOWNAT
1644 GL_GNULIB_FCHDIR
1645 GL_GNULIB_FACCESSAT
1646 GL_GNULIB_EXECVPE
1647 GL_GNULIB_EXECVP
1648 GL_GNULIB_EXECVE
1649 GL_GNULIB_EXECV
1650 GL_GNULIB_EXECLP
1651 GL_GNULIB_EXECLE
1652 GL_GNULIB_EXECL
1653 GL_GNULIB_EUIDACCESS
1654 GL_GNULIB_ENVIRON
1655 GL_GNULIB_DUP3
1656 GL_GNULIB_DUP2
1657 GL_GNULIB_DUP
1658 GL_GNULIB_COPY_FILE_RANGE
1659 GL_GNULIB_CLOSE
1660 GL_GNULIB_CHOWN
1661 GL_GNULIB_CHDIR
1662 GL_GNULIB_ACCESS
1663 GL_COND_OBJ_CLOSE_FALSE
1664 GL_COND_OBJ_CLOSE_TRUE
1665 HAVE_WINSOCK2_H
1666 REPLACE_IOCTL
1667 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1668 SYS_IOCTL_H_HAVE_WINSOCK2_H
1669 HAVE_MSVC_INVALID_PARAMETER_HANDLER
1670 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1671 UNISTD_H_HAVE_WINSOCK2_H
1672 UNISTD_H_HAVE_SYS_RANDOM_H
1673 REPLACE_WRITE
1674 REPLACE_USLEEP
1675 REPLACE_UNLINKAT
1676 REPLACE_UNLINK
1677 REPLACE_TTYNAME_R
1678 REPLACE_TRUNCATE
1679 REPLACE_SYMLINKAT
1680 REPLACE_SYMLINK
1681 REPLACE_SLEEP
1682 REPLACE_RMDIR
1683 REPLACE_READLINKAT
1684 REPLACE_READLINK
1685 REPLACE_READ
1686 REPLACE_PWRITE
1687 REPLACE_PREAD
1688 REPLACE_LSEEK
1689 REPLACE_LINKAT
1690 REPLACE_LINK
1691 REPLACE_LCHOWN
1692 REPLACE_ISATTY
1693 REPLACE_GETPASS_FOR_GETPASS_GNU
1694 REPLACE_GETPASS
1695 REPLACE_GETPAGESIZE
1696 REPLACE_GETGROUPS
1697 REPLACE_GETLOGIN_R
1698 REPLACE_GETDTABLESIZE
1699 REPLACE_GETDOMAINNAME
1700 REPLACE_GETCWD
1701 REPLACE_FTRUNCATE
1702 REPLACE_FCHOWNAT
1703 REPLACE_FACCESSAT
1704 REPLACE_EXECVPE
1705 REPLACE_EXECVP
1706 REPLACE_EXECVE
1707 REPLACE_EXECV
1708 REPLACE_EXECLP
1709 REPLACE_EXECLE
1710 REPLACE_EXECL
1711 REPLACE_DUP2
1712 REPLACE_DUP
1713 REPLACE_COPY_FILE_RANGE
1714 REPLACE_CLOSE
1715 REPLACE_CHOWN
1716 REPLACE_ACCESS
1717 HAVE_SYS_PARAM_H
1718 HAVE_OS_H
1719 HAVE_DECL_TTYNAME_R
1720 HAVE_DECL_TRUNCATE
1721 HAVE_DECL_SETHOSTNAME
1722 HAVE_DECL_GETUSERSHELL
1723 HAVE_DECL_GETPAGESIZE
1724 HAVE_DECL_GETLOGIN_R
1725 HAVE_DECL_GETLOGIN
1726 HAVE_DECL_GETDOMAINNAME
1727 HAVE_DECL_FDATASYNC
1728 HAVE_DECL_FCHDIR
1729 HAVE_DECL_EXECVPE
1730 HAVE_DECL_ENVIRON
1731 HAVE_USLEEP
1732 HAVE_UNLINKAT
1733 HAVE_SYMLINKAT
1734 HAVE_SYMLINK
1735 HAVE_SLEEP
1736 HAVE_SETHOSTNAME
1737 HAVE_READLINKAT
1738 HAVE_READLINK
1739 HAVE_PWRITE
1740 HAVE_PREAD
1741 HAVE_PIPE2
1742 HAVE_PIPE
1743 HAVE_LINKAT
1744 HAVE_LINK
1745 HAVE_LCHOWN
1746 HAVE_GROUP_MEMBER
1747 HAVE_GETPASS
1748 HAVE_GETPAGESIZE
1749 HAVE_GETLOGIN
1750 HAVE_GETHOSTNAME
1751 HAVE_GETGROUPS
1752 HAVE_GETENTROPY
1753 HAVE_GETDTABLESIZE
1754 HAVE_FTRUNCATE
1755 HAVE_FSYNC
1756 HAVE_FDATASYNC
1757 HAVE_FCHOWNAT
1758 HAVE_FCHDIR
1759 HAVE_FACCESSAT
1760 HAVE_EXECVPE
1761 HAVE_EUIDACCESS
1762 HAVE_DUP3
1763 HAVE_COPY_FILE_RANGE
1764 HAVE_CHOWN
1765 LIB_CLOCK_GETTIME
1766 GL_COND_OBJ_CANONICALIZE_LGPL_FALSE
1767 GL_COND_OBJ_CANONICALIZE_LGPL_TRUE
1768 REPLACE_WCTOMB
1769 REPLACE_UNSETENV
1770 REPLACE_STRTOULL
1771 REPLACE_STRTOUL
1772 REPLACE_STRTOLL
1773 REPLACE_STRTOLD
1774 REPLACE_STRTOL
1775 REPLACE_STRTOD
1776 REPLACE_SETSTATE
1777 REPLACE_SETENV
1778 REPLACE_REALPATH
1779 REPLACE_REALLOCARRAY
1780 REPLACE_REALLOC_FOR_REALLOC_POSIX
1781 REPLACE_REALLOC_FOR_REALLOC_GNU
1782 REPLACE_RANDOM_R
1783 REPLACE_RANDOM
1784 REPLACE_QSORT_R
1785 REPLACE_PUTENV
1786 REPLACE_PTSNAME_R
1787 REPLACE_PTSNAME
1788 REPLACE_POSIX_MEMALIGN
1789 REPLACE_MKSTEMP
1790 REPLACE_MBTOWC
1791 REPLACE_MALLOC_FOR_MALLOC_POSIX
1792 REPLACE_MALLOC_FOR_MALLOC_GNU
1793 REPLACE_INITSTATE
1794 REPLACE_FREE
1795 REPLACE_CANONICALIZE_FILE_NAME
1796 REPLACE_CALLOC_FOR_CALLOC_POSIX
1797 REPLACE_CALLOC_FOR_CALLOC_GNU
1798 REPLACE_ALIGNED_ALLOC
1799 HAVE_DECL_UNSETENV
1800 HAVE_UNLOCKPT
1801 HAVE_SYS_LOADAVG_H
1802 HAVE_STRUCT_RANDOM_DATA
1803 HAVE_STRTOULL
1804 HAVE_STRTOUL
1805 HAVE_STRTOLL
1806 HAVE_STRTOLD
1807 HAVE_STRTOL
1808 HAVE_STRTOD
1809 HAVE_DECL_SETSTATE
1810 HAVE_SETSTATE
1811 HAVE_DECL_SETENV
1812 HAVE_SETENV
1813 HAVE_SECURE_GETENV
1814 HAVE_RPMATCH
1815 HAVE_REALPATH
1816 HAVE_REALLOCARRAY
1817 HAVE_RANDOM_R
1818 HAVE_RANDOM_H
1819 HAVE_RANDOM
1820 HAVE_QSORT_R
1821 HAVE_PTSNAME_R
1822 HAVE_PTSNAME
1823 HAVE_POSIX_OPENPT
1824 HAVE_POSIX_MEMALIGN
1825 HAVE_MKSTEMPS
1826 HAVE_MKSTEMP
1827 HAVE_MKOSTEMPS
1828 HAVE_MKOSTEMP
1829 HAVE_MKDTEMP
1830 HAVE_MBTOWC
1831 HAVE_DECL_INITSTATE
1832 HAVE_INITSTATE
1833 HAVE_GRANTPT
1834 HAVE_GETSUBOPT
1835 HAVE_DECL_GETLOADAVG
1836 HAVE_DECL_GCVT
1837 HAVE_DECL_FCVT
1838 HAVE_DECL_ECVT
1839 HAVE_CANONICALIZE_FILE_NAME
1840 HAVE_ATOLL
1841 HAVE_ALIGNED_ALLOC
1842 HAVE__EXIT
1843 GL_GNULIB_MDA_PUTENV
1844 GL_GNULIB_MDA_MKTEMP
1845 GL_GNULIB_MDA_GCVT
1846 GL_GNULIB_MDA_FCVT
1847 GL_GNULIB_MDA_ECVT
1848 GL_GNULIB_WCTOMB
1849 GL_GNULIB_UNSETENV
1850 GL_GNULIB_UNLOCKPT
1851 GL_GNULIB_SYSTEM_POSIX
1852 GL_GNULIB_STRTOULL
1853 GL_GNULIB_STRTOUL
1854 GL_GNULIB_STRTOLL
1855 GL_GNULIB_STRTOLD
1856 GL_GNULIB_STRTOL
1857 GL_GNULIB_STRTOD
1858 GL_GNULIB_SETENV
1859 GL_GNULIB_SECURE_GETENV
1860 GL_GNULIB_RPMATCH
1861 GL_GNULIB_REALPATH
1862 GL_GNULIB_REALLOC_POSIX
1863 GL_GNULIB_REALLOC_GNU
1864 GL_GNULIB_REALLOCARRAY
1865 GL_GNULIB_RANDOM_R
1866 GL_GNULIB_RANDOM
1867 GL_GNULIB_QSORT_R
1868 GL_GNULIB_PUTENV
1869 GL_GNULIB_PTSNAME_R
1870 GL_GNULIB_PTSNAME
1871 GL_GNULIB_POSIX_OPENPT
1872 GL_GNULIB_POSIX_MEMALIGN
1873 GL_GNULIB_MKSTEMPS
1874 GL_GNULIB_MKSTEMP
1875 GL_GNULIB_MKOSTEMPS
1876 GL_GNULIB_MKOSTEMP
1877 GL_GNULIB_MKDTEMP
1878 GL_GNULIB_MBTOWC
1879 GL_GNULIB_MALLOC_POSIX
1880 GL_GNULIB_MALLOC_GNU
1881 GL_GNULIB_GRANTPT
1882 GL_GNULIB_GETSUBOPT
1883 GL_GNULIB_GETLOADAVG
1884 GL_GNULIB_FREE_POSIX
1885 GL_GNULIB_CANONICALIZE_FILE_NAME
1886 GL_GNULIB_CALLOC_POSIX
1887 GL_GNULIB_CALLOC_GNU
1888 GL_GNULIB_ATOLL
1889 GL_GNULIB_ALIGNED_ALLOC
1890 GL_GNULIB__EXIT
1891 GL_GNULIB_MDA_WCSDUP
1892 GL_GNULIB_WCSFTIME
1893 GL_GNULIB_WCSWIDTH
1894 GL_GNULIB_WCSTOK
1895 GL_GNULIB_WCSSTR
1896 GL_GNULIB_WCSPBRK
1897 GL_GNULIB_WCSSPN
1898 GL_GNULIB_WCSCSPN
1899 GL_GNULIB_WCSRCHR
1900 GL_GNULIB_WCSCHR
1901 GL_GNULIB_WCSDUP
1902 GL_GNULIB_WCSXFRM
1903 GL_GNULIB_WCSCOLL
1904 GL_GNULIB_WCSNCASECMP
1905 GL_GNULIB_WCSCASECMP
1906 GL_GNULIB_WCSNCMP
1907 GL_GNULIB_WCSCMP
1908 GL_GNULIB_WCSNCAT
1909 GL_GNULIB_WCSCAT
1910 GL_GNULIB_WCPNCPY
1911 GL_GNULIB_WCSNCPY
1912 GL_GNULIB_WCPCPY
1913 GL_GNULIB_WCSCPY
1914 GL_GNULIB_WCSNLEN
1915 GL_GNULIB_WCSLEN
1916 GL_GNULIB_WMEMSET
1917 GL_GNULIB_WMEMPCPY
1918 GL_GNULIB_WMEMMOVE
1919 GL_GNULIB_WMEMCPY
1920 GL_GNULIB_WMEMCMP
1921 GL_GNULIB_WMEMCHR
1922 GL_GNULIB_WCWIDTH
1923 GL_GNULIB_WCSNRTOMBS
1924 GL_GNULIB_WCSRTOMBS
1925 GL_GNULIB_WCRTOMB
1926 GL_GNULIB_MBSNRTOWCS
1927 GL_GNULIB_MBSRTOWCS
1928 GL_GNULIB_MBRLEN
1929 GL_GNULIB_MBRTOWC
1930 GL_GNULIB_MBSINIT
1931 GL_GNULIB_WCTOB
1932 GL_GNULIB_BTOWC
1933 GL_COND_OBJ_BTOWC_FALSE
1934 GL_COND_OBJ_BTOWC_TRUE
1935 LOCALE_FR
1936 REPLACE_WCSTOK
1937 REPLACE_WCSFTIME
1938 REPLACE_WCSWIDTH
1939 REPLACE_WCWIDTH
1940 REPLACE_WCSNRTOMBS
1941 REPLACE_WCSRTOMBS
1942 REPLACE_WCRTOMB
1943 REPLACE_MBSNRTOWCS
1944 REPLACE_MBSRTOWCS
1945 REPLACE_MBRLEN
1946 REPLACE_MBRTOWC
1947 REPLACE_MBSINIT
1948 REPLACE_WCTOB
1949 REPLACE_BTOWC
1950 REPLACE_MBSTATE_T
1951 HAVE_DECL_WCWIDTH
1952 HAVE_DECL_WCSDUP
1953 HAVE_DECL_WCTOB
1954 HAVE_WCSFTIME
1955 HAVE_WCSWIDTH
1956 HAVE_WCSTOK
1957 HAVE_WCSSTR
1958 HAVE_WCSPBRK
1959 HAVE_WCSSPN
1960 HAVE_WCSCSPN
1961 HAVE_WCSRCHR
1962 HAVE_WCSCHR
1963 HAVE_WCSDUP
1964 HAVE_WCSXFRM
1965 HAVE_WCSCOLL
1966 HAVE_WCSNCASECMP
1967 HAVE_WCSCASECMP
1968 HAVE_WCSNCMP
1969 HAVE_WCSCMP
1970 HAVE_WCSNCAT
1971 HAVE_WCSCAT
1972 HAVE_WCPNCPY
1973 HAVE_WCSNCPY
1974 HAVE_WCPCPY
1975 HAVE_WCSCPY
1976 HAVE_WCSNLEN
1977 HAVE_WCSLEN
1978 HAVE_WMEMSET
1979 HAVE_WMEMPCPY
1980 HAVE_WMEMMOVE
1981 HAVE_WMEMCPY
1982 HAVE_WMEMCMP
1983 HAVE_WMEMCHR
1984 HAVE_WCSNRTOMBS
1985 HAVE_WCSRTOMBS
1986 HAVE_WCRTOMB
1987 HAVE_MBSNRTOWCS
1988 HAVE_MBSRTOWCS
1989 HAVE_MBRLEN
1990 HAVE_MBRTOWC
1991 HAVE_MBSINIT
1992 HAVE_BTOWC
1993 GL_GENERATE_ASSERT_H_FALSE
1994 GL_GENERATE_ASSERT_H_TRUE
1995 ASSERT_H
1996 NEXT_AS_FIRST_DIRECTIVE_ASSERT_H
1997 NEXT_ASSERT_H
1998 PRAGMA_COLUMNS
1999 PRAGMA_SYSTEM_HEADER
2000 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
2001 INCLUDE_NEXT
2002 GL_COND_OBJ_ARGZ_FALSE
2003 GL_COND_OBJ_ARGZ_TRUE
2004 GL_GENERATE_ARGZ_H_FALSE
2005 GL_GENERATE_ARGZ_H_TRUE
2006 ARGZ_H
2007 GL_GENERATE_ALLOCA_H_FALSE
2008 GL_GENERATE_ALLOCA_H_TRUE
2009 ALLOCA_H
2010 HAVE_ALLOCA_H
2011 ALLOCA
2012 GL_COND_LIBTOOL_FALSE
2013 GL_COND_LIBTOOL_TRUE
2014 USE_VERSION_SCRIPT_FALSE
2015 USE_VERSION_SCRIPT_TRUE
2016 VERSION_SCRIPT_FLAGS
2017 READLINE_LIBS
2018 AUGEAS_CFLAGS
2019 WARN_CFLAGS
2020 LEXLIB
2021 LEX_OUTPUT_ROOT
2022 LEX
2023 YFLAGS
2024 YACC
2025 LT_SYS_LIBRARY_PATH
2026 OTOOL64
2027 OTOOL
2028 LIPO
2029 NMEDIT
2030 DSYMUTIL
2031 MANIFEST_TOOL
2032 ac_ct_AR
2033 DLLTOOL
2034 OBJDUMP
2035 FILECMD
2036 LN_S
2037 NM
2038 ac_ct_DUMPBIN
2039 DUMPBIN
2040 LD
2041 FGREP
2042 SED
2043 LIBTOOL
2044 RANLIB
2045 ARFLAGS
2046 AR
2047 EGREP
2048 GREP
2049 CPP
2050 host_os
2051 host_vendor
2052 host_cpu
2053 host
2054 build_os
2055 build_vendor
2056 build_cpu
2057 build
2058 am__fastdepCC_FALSE
2059 am__fastdepCC_TRUE
2060 CCDEPMODE
2061 am__nodep
2062 AMDEPBACKSLASH
2063 AMDEP_FALSE
2064 AMDEP_TRUE
2065 am__include
2066 DEPDIR
2067 OBJEXT
2068 EXEEXT
2069 ac_ct_CC
2070 CPPFLAGS
2071 LDFLAGS
2072 CFLAGS
2073 CC
2074 LIBFA_VERSION_INFO
2075 LIBAUGEAS_VERSION_INFO
2076 ENABLE_DEBUG_FALSE
2077 ENABLE_DEBUG_TRUE
2078 WITH_FAILMALLOC_FALSE
2079 WITH_FAILMALLOC_TRUE
2080 LIBFAILMALLOC
2081 PDFDOCS
2082 PDFLATEX
2083 ND_FORMAT
2084 ND_ENABLED_FALSE
2085 ND_ENABLED_TRUE
2086 ND_PROG
2087 AM_BACKSLASH
2088 AM_DEFAULT_VERBOSITY
2089 AM_DEFAULT_V
2090 AM_V
2091 CSCOPE
2092 ETAGS
2093 CTAGS
2094 am__untar
2095 am__tar
2096 AMTAR
2097 am__leading_dot
2098 SET_MAKE
2099 AWK
2100 mkdir_p
2101 MKDIR_P
2102 INSTALL_STRIP_PROGRAM
2103 STRIP
2104 install_sh
2105 MAKEINFO
2106 AUTOHEADER
2107 AUTOMAKE
2108 AUTOCONF
2109 ACLOCAL
2110 VERSION
2111 PACKAGE
2112 CYGPATH_W
2113 am__isrc
2114 INSTALL_DATA
2115 INSTALL_SCRIPT
2116 INSTALL_PROGRAM
2117 target_alias
2118 host_alias
2119 build_alias
2120 LIBS
2121 ECHO_T
2122 ECHO_N
2123 ECHO_C
2124 DEFS
2125 mandir
2126 localedir
2127 libdir
2128 psdir
2129 pdfdir
2130 dvidir
2131 htmldir
2132 infodir
2133 docdir
2134 oldincludedir
2135 includedir
2136 runstatedir
2137 localstatedir
2138 sharedstatedir
2139 sysconfdir
2140 datadir
2141 datarootdir
2142 libexecdir
2143 sbindir
2144 bindir
2145 program_transform_name
2146 prefix
2147 exec_prefix
2148 PACKAGE_URL
2149 PACKAGE_BUGREPORT
2150 PACKAGE_STRING
2151 PACKAGE_VERSION
2152 PACKAGE_TARNAME
2153 PACKAGE_NAME
2154 PATH_SEPARATOR
2155 SHELL
2156 am__quote'
2157 ac_subst_files=''
2158 ac_user_opts='
2159 enable_option_checking
2160 enable_silent_rules
2161 with_naturaldocs_output
2162 with_pdfdocs
2163 with_failmalloc
2164 enable_debug
2165 enable_dependency_tracking
2166 enable_largefile
2167 enable_year2038
2168 enable_threads
2169 enable_shared
2170 enable_static
2171 with_pic
2172 enable_fast_install
2173 with_aix_soname
2174 with_gnu_ld
2175 with_sysroot
2176 enable_libtool_lock
2177 enable_compile_warnings
2178 enable_iso_c
2179 enable_cross_guesses
2180 with_included_regex
2181 with_selinux
2182 enable_gnulib_tests
2183 '
2184 ac_precious_vars='build_alias
2185 host_alias
2186 target_alias
2187 CC
2188 CFLAGS
2189 LDFLAGS
2190 LIBS
2191 CPPFLAGS
2192 CPP
2193 LT_SYS_LIBRARY_PATH
2194 YACC
2195 YFLAGS
2196 PKG_CONFIG
2197 PKG_CONFIG_PATH
2198 PKG_CONFIG_LIBDIR
2199 LIBXML_CFLAGS
2200 LIBXML_LIBS
2201 bashcompdir'
2202
2203
2204 # Initialize some variables set by options.
2205 ac_init_help=
2206 ac_init_version=false
2207 ac_unrecognized_opts=
2208 ac_unrecognized_sep=
2209 # The variables have the same names as the options, with
2210 # dashes changed to underlines.
2211 cache_file=/dev/null
2212 exec_prefix=NONE
2213 no_create=
2214 no_recursion=
2215 prefix=NONE
2216 program_prefix=NONE
2217 program_suffix=NONE
2218 program_transform_name=s,x,x,
2219 silent=
2220 site=
2221 srcdir=
2222 verbose=
2223 x_includes=NONE
2224 x_libraries=NONE
2225
2226 # Installation directory options.
2227 # These are left unexpanded so users can "make install exec_prefix=/foo"
2228 # and all the variables that are supposed to be based on exec_prefix
2229 # by default will actually change.
2230 # Use braces instead of parens because sh, perl, etc. also accept them.
2231 # (The list follows the same order as the GNU Coding Standards.)
2232 bindir='${exec_prefix}/bin'
2233 sbindir='${exec_prefix}/sbin'
2234 libexecdir='${exec_prefix}/libexec'
2235 datarootdir='${prefix}/share'
2236 datadir='${datarootdir}'
2237 sysconfdir='${prefix}/etc'
2238 sharedstatedir='${prefix}/com'
2239 localstatedir='${prefix}/var'
2240 runstatedir='${localstatedir}/run'
2241 includedir='${prefix}/include'
2242 oldincludedir='/usr/include'
2243 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
2244 infodir='${datarootdir}/info'
2245 htmldir='${docdir}'
2246 dvidir='${docdir}'
2247 pdfdir='${docdir}'
2248 psdir='${docdir}'
2249 libdir='${exec_prefix}/lib'
2250 localedir='${datarootdir}/locale'
2251 mandir='${datarootdir}/man'
2252
2253 ac_prev=
2254 ac_dashdash=
2255 for ac_option
2256 do
2257 # If the previous option needs an argument, assign it.
2258 if test -n "$ac_prev"; then
2259 eval $ac_prev=\$ac_option
2260 ac_prev=
2261 continue
2262 fi
2263
2264 case $ac_option in
2265 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
2266 *=) ac_optarg= ;;
2267 *) ac_optarg=yes ;;
2268 esac
2269
2270 case $ac_dashdash$ac_option in
2271 --)
2272 ac_dashdash=yes ;;
2273
2274 -bindir | --bindir | --bindi | --bind | --bin | --bi)
2275 ac_prev=bindir ;;
2276 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
2277 bindir=$ac_optarg ;;
2278
2279 -build | --build | --buil | --bui | --bu)
2280 ac_prev=build_alias ;;
2281 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
2282 build_alias=$ac_optarg ;;
2283
2284 -cache-file | --cache-file | --cache-fil | --cache-fi \
2285 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
2286 ac_prev=cache_file ;;
2287 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
2288 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2289 cache_file=$ac_optarg ;;
2290
2291 --config-cache | -C)
2292 cache_file=config.cache ;;
2293
2294 -datadir | --datadir | --datadi | --datad)
2295 ac_prev=datadir ;;
2296 -datadir=* | --datadir=* | --datadi=* | --datad=*)
2297 datadir=$ac_optarg ;;
2298
2299 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
2300 | --dataroo | --dataro | --datar)
2301 ac_prev=datarootdir ;;
2302 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
2303 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
2304 datarootdir=$ac_optarg ;;
2305
2306 -disable-* | --disable-*)
2307 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
2308 # Reject names that are not valid shell variable names.
2309 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2310 as_fn_error $? "invalid feature name: \`$ac_useropt'"
2311 ac_useropt_orig=$ac_useropt
2312 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
2313 case $ac_user_opts in
2314 *"
2315 "enable_$ac_useropt"
2316 "*) ;;
2317 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
2318 ac_unrecognized_sep=', ';;
2319 esac
2320 eval enable_$ac_useropt=no ;;
2321
2322 -docdir | --docdir | --docdi | --doc | --do)
2323 ac_prev=docdir ;;
2324 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
2325 docdir=$ac_optarg ;;
2326
2327 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
2328 ac_prev=dvidir ;;
2329 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
2330 dvidir=$ac_optarg ;;
2331
2332 -enable-* | --enable-*)
2333 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
2334 # Reject names that are not valid shell variable names.
2335 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2336 as_fn_error $? "invalid feature name: \`$ac_useropt'"
2337 ac_useropt_orig=$ac_useropt
2338 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
2339 case $ac_user_opts in
2340 *"
2341 "enable_$ac_useropt"
2342 "*) ;;
2343 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
2344 ac_unrecognized_sep=', ';;
2345 esac
2346 eval enable_$ac_useropt=\$ac_optarg ;;
2347
2348 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
2349 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
2350 | --exec | --exe | --ex)
2351 ac_prev=exec_prefix ;;
2352 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
2353 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
2354 | --exec=* | --exe=* | --ex=*)
2355 exec_prefix=$ac_optarg ;;
2356
2357 -gas | --gas | --ga | --g)
2358 # Obsolete; use --with-gas.
2359 with_gas=yes ;;
2360
2361 -help | --help | --hel | --he | -h)
2362 ac_init_help=long ;;
2363 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
2364 ac_init_help=recursive ;;
2365 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
2366 ac_init_help=short ;;
2367
2368 -host | --host | --hos | --ho)
2369 ac_prev=host_alias ;;
2370 -host=* | --host=* | --hos=* | --ho=*)
2371 host_alias=$ac_optarg ;;
2372
2373 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
2374 ac_prev=htmldir ;;
2375 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
2376 | --ht=*)
2377 htmldir=$ac_optarg ;;
2378
2379 -includedir | --includedir | --includedi | --included | --include \
2380 | --includ | --inclu | --incl | --inc)
2381 ac_prev=includedir ;;
2382 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
2383 | --includ=* | --inclu=* | --incl=* | --inc=*)
2384 includedir=$ac_optarg ;;
2385
2386 -infodir | --infodir | --infodi | --infod | --info | --inf)
2387 ac_prev=infodir ;;
2388 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
2389 infodir=$ac_optarg ;;
2390
2391 -libdir | --libdir | --libdi | --libd)
2392 ac_prev=libdir ;;
2393 -libdir=* | --libdir=* | --libdi=* | --libd=*)
2394 libdir=$ac_optarg ;;
2395
2396 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
2397 | --libexe | --libex | --libe)
2398 ac_prev=libexecdir ;;
2399 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
2400 | --libexe=* | --libex=* | --libe=*)
2401 libexecdir=$ac_optarg ;;
2402
2403 -localedir | --localedir | --localedi | --localed | --locale)
2404 ac_prev=localedir ;;
2405 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
2406 localedir=$ac_optarg ;;
2407
2408 -localstatedir | --localstatedir | --localstatedi | --localstated \
2409 | --localstate | --localstat | --localsta | --localst | --locals)
2410 ac_prev=localstatedir ;;
2411 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
2412 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
2413 localstatedir=$ac_optarg ;;
2414
2415 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
2416 ac_prev=mandir ;;
2417 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
2418 mandir=$ac_optarg ;;
2419
2420 -nfp | --nfp | --nf)
2421 # Obsolete; use --without-fp.
2422 with_fp=no ;;
2423
2424 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
2425 | --no-cr | --no-c | -n)
2426 no_create=yes ;;
2427
2428 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
2429 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
2430 no_recursion=yes ;;
2431
2432 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
2433 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
2434 | --oldin | --oldi | --old | --ol | --o)
2435 ac_prev=oldincludedir ;;
2436 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
2437 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
2438 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
2439 oldincludedir=$ac_optarg ;;
2440
2441 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
2442 ac_prev=prefix ;;
2443 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
2444 prefix=$ac_optarg ;;
2445
2446 -program-prefix | --program-prefix | --program-prefi | --program-pref \
2447 | --program-pre | --program-pr | --program-p)
2448 ac_prev=program_prefix ;;
2449 -program-prefix=* | --program-prefix=* | --program-prefi=* \
2450 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
2451 program_prefix=$ac_optarg ;;
2452
2453 -program-suffix | --program-suffix | --program-suffi | --program-suff \
2454 | --program-suf | --program-su | --program-s)
2455 ac_prev=program_suffix ;;
2456 -program-suffix=* | --program-suffix=* | --program-suffi=* \
2457 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
2458 program_suffix=$ac_optarg ;;
2459
2460 -program-transform-name | --program-transform-name \
2461 | --program-transform-nam | --program-transform-na \
2462 | --program-transform-n | --program-transform- \
2463 | --program-transform | --program-transfor \
2464 | --program-transfo | --program-transf \
2465 | --program-trans | --program-tran \
2466 | --progr-tra | --program-tr | --program-t)
2467 ac_prev=program_transform_name ;;
2468 -program-transform-name=* | --program-transform-name=* \
2469 | --program-transform-nam=* | --program-transform-na=* \
2470 | --program-transform-n=* | --program-transform-=* \
2471 | --program-transform=* | --program-transfor=* \
2472 | --program-transfo=* | --program-transf=* \
2473 | --program-trans=* | --program-tran=* \
2474 | --progr-tra=* | --program-tr=* | --program-t=*)
2475 program_transform_name=$ac_optarg ;;
2476
2477 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
2478 ac_prev=pdfdir ;;
2479 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
2480 pdfdir=$ac_optarg ;;
2481
2482 -psdir | --psdir | --psdi | --psd | --ps)
2483 ac_prev=psdir ;;
2484 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
2485 psdir=$ac_optarg ;;
2486
2487 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2488 | -silent | --silent | --silen | --sile | --sil)
2489 silent=yes ;;
2490
2491 -runstatedir | --runstatedir | --runstatedi | --runstated \
2492 | --runstate | --runstat | --runsta | --runst | --runs \
2493 | --run | --ru | --r)
2494 ac_prev=runstatedir ;;
2495 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
2496 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
2497 | --run=* | --ru=* | --r=*)
2498 runstatedir=$ac_optarg ;;
2499
2500 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
2501 ac_prev=sbindir ;;
2502 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
2503 | --sbi=* | --sb=*)
2504 sbindir=$ac_optarg ;;
2505
2506 -sharedstatedir | --sharedstatedir | --sharedstatedi \
2507 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
2508 | --sharedst | --shareds | --shared | --share | --shar \
2509 | --sha | --sh)
2510 ac_prev=sharedstatedir ;;
2511 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
2512 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
2513 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
2514 | --sha=* | --sh=*)
2515 sharedstatedir=$ac_optarg ;;
2516
2517 -site | --site | --sit)
2518 ac_prev=site ;;
2519 -site=* | --site=* | --sit=*)
2520 site=$ac_optarg ;;
2521
2522 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
2523 ac_prev=srcdir ;;
2524 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
2525 srcdir=$ac_optarg ;;
2526
2527 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
2528 | --syscon | --sysco | --sysc | --sys | --sy)
2529 ac_prev=sysconfdir ;;
2530 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
2531 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
2532 sysconfdir=$ac_optarg ;;
2533
2534 -target | --target | --targe | --targ | --tar | --ta | --t)
2535 ac_prev=target_alias ;;
2536 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
2537 target_alias=$ac_optarg ;;
2538
2539 -v | -verbose | --verbose | --verbos | --verbo | --verb)
2540 verbose=yes ;;
2541
2542 -version | --version | --versio | --versi | --vers | -V)
2543 ac_init_version=: ;;
2544
2545 -with-* | --with-*)
2546 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
2547 # Reject names that are not valid shell variable names.
2548 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2549 as_fn_error $? "invalid package name: \`$ac_useropt'"
2550 ac_useropt_orig=$ac_useropt
2551 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
2552 case $ac_user_opts in
2553 *"
2554 "with_$ac_useropt"
2555 "*) ;;
2556 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
2557 ac_unrecognized_sep=', ';;
2558 esac
2559 eval with_$ac_useropt=\$ac_optarg ;;
2560
2561 -without-* | --without-*)
2562 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
2563 # Reject names that are not valid shell variable names.
2564 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2565 as_fn_error $? "invalid package name: \`$ac_useropt'"
2566 ac_useropt_orig=$ac_useropt
2567 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
2568 case $ac_user_opts in
2569 *"
2570 "with_$ac_useropt"
2571 "*) ;;
2572 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
2573 ac_unrecognized_sep=', ';;
2574 esac
2575 eval with_$ac_useropt=no ;;
2576
2577 --x)
2578 # Obsolete; use --with-x.
2579 with_x=yes ;;
2580
2581 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
2582 | --x-incl | --x-inc | --x-in | --x-i)
2583 ac_prev=x_includes ;;
2584 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
2585 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
2586 x_includes=$ac_optarg ;;
2587
2588 -x-libraries | --x-libraries | --x-librarie | --x-librari \
2589 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
2590 ac_prev=x_libraries ;;
2591 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
2592 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
2593 x_libraries=$ac_optarg ;;
2594
2595 -*) as_fn_error $? "unrecognized option: \`$ac_option'
2596 Try \`$0 --help' for more information"
2597 ;;
2598
2599 *=*)
2600 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
2601 # Reject names that are not valid shell variable names.
2602 case $ac_envvar in #(
2603 '' | [0-9]* | *[!_$as_cr_alnum]* )
2604 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
2605 esac
2606 eval $ac_envvar=\$ac_optarg
2607 export $ac_envvar ;;
2608
2609 *)
2610 # FIXME: should be removed in autoconf 3.0.
2611 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
2612 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
2613 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
2614 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
2615 ;;
2616
2617 esac
2618 done
2619
2620 if test -n "$ac_prev"; then
2621 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
2622 as_fn_error $? "missing argument to $ac_option"
2623 fi
2624
2625 if test -n "$ac_unrecognized_opts"; then
2626 case $enable_option_checking in
2627 no) ;;
2628 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
2629 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2630 esac
2631 fi
2632
2633 # Check all directory arguments for consistency.
2634 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
2635 datadir sysconfdir sharedstatedir localstatedir includedir \
2636 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2637 libdir localedir mandir runstatedir
2638 do
2639 eval ac_val=\$$ac_var
2640 # Remove trailing slashes.
2641 case $ac_val in
2642 */ )
2643 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
2644 eval $ac_var=\$ac_val;;
2645 esac
2646 # Be sure to have absolute directory names.
2647 case $ac_val in
2648 [\\/$]* | ?:[\\/]* ) continue;;
2649 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
2650 esac
2651 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
2652 done
2653
2654 # There might be people who depend on the old broken behavior: `$host'
2655 # used to hold the argument of --host etc.
2656 # FIXME: To remove some day.
2657 build=$build_alias
2658 host=$host_alias
2659 target=$target_alias
2660
2661 # FIXME: To remove some day.
2662 if test "x$host_alias" != x; then
2663 if test "x$build_alias" = x; then
2664 cross_compiling=maybe
2665 elif test "x$build_alias" != "x$host_alias"; then
2666 cross_compiling=yes
2667 fi
2668 fi
2669
2670 ac_tool_prefix=
2671 test -n "$host_alias" && ac_tool_prefix=$host_alias-
2672
2673 test "$silent" = yes && exec 6>/dev/null
2674
2675
2676 ac_pwd=`pwd` && test -n "$ac_pwd" &&
2677 ac_ls_di=`ls -di .` &&
2678 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
2679 as_fn_error $? "working directory cannot be determined"
2680 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2681 as_fn_error $? "pwd does not report name of working directory"
2682
2683
2684 # Find the source files, if location was not specified.
2685 if test -z "$srcdir"; then
2686 ac_srcdir_defaulted=yes
2687 # Try the directory containing this script, then the parent directory.
2688 ac_confdir=`$as_dirname -- "$as_myself" ||
2689 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2690 X"$as_myself" : 'X\(//\)[^/]' \| \
2691 X"$as_myself" : 'X\(//\)$' \| \
2692 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2693 printf "%s\n" X"$as_myself" |
2694 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2695 s//\1/
2696 q
2697 }
2698 /^X\(\/\/\)[^/].*/{
2699 s//\1/
2700 q
2701 }
2702 /^X\(\/\/\)$/{
2703 s//\1/
2704 q
2705 }
2706 /^X\(\/\).*/{
2707 s//\1/
2708 q
2709 }
2710 s/.*/./; q'`
2711 srcdir=$ac_confdir
2712 if test ! -r "$srcdir/$ac_unique_file"; then
2713 srcdir=..
2714 fi
2715 else
2716 ac_srcdir_defaulted=no
2717 fi
2718 if test ! -r "$srcdir/$ac_unique_file"; then
2719 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
2720 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
2721 fi
2722 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
2723 ac_abs_confdir=`(
2724 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
2725 pwd)`
2726 # When building in place, set srcdir=.
2727 if test "$ac_abs_confdir" = "$ac_pwd"; then
2728 srcdir=.
2729 fi
2730 # Remove unnecessary trailing slashes from srcdir.
2731 # Double slashes in file names in object file debugging info
2732 # mess up M-x gdb in Emacs.
2733 case $srcdir in
2734 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2735 esac
2736 for ac_var in $ac_precious_vars; do
2737 eval ac_env_${ac_var}_set=\${${ac_var}+set}
2738 eval ac_env_${ac_var}_value=\$${ac_var}
2739 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
2740 eval ac_cv_env_${ac_var}_value=\$${ac_var}
2741 done
2742
2743 #
2744 # Report the --help message.
2745 #
2746 if test "$ac_init_help" = "long"; then
2747 # Omit some internal or obsolete options to make the list less imposing.
2748 # This message is too long to be a string in the A/UX 3.1 sh.
2749 cat <<_ACEOF
2750 \`configure' configures augeas 1.14.1 to adapt to many kinds of systems.
2751
2752 Usage: $0 [OPTION]... [VAR=VALUE]...
2753
2754 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2755 VAR=VALUE. See below for descriptions of some of the useful variables.
2756
2757 Defaults for the options are specified in brackets.
2758
2759 Configuration:
2760 -h, --help display this help and exit
2761 --help=short display options specific to this package
2762 --help=recursive display the short help of all the included packages
2763 -V, --version display version information and exit
2764 -q, --quiet, --silent do not print \`checking ...' messages
2765 --cache-file=FILE cache test results in FILE [disabled]
2766 -C, --config-cache alias for \`--cache-file=config.cache'
2767 -n, --no-create do not create output files
2768 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2769
2770 Installation directories:
2771 --prefix=PREFIX install architecture-independent files in PREFIX
2772 [$ac_default_prefix]
2773 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2774 [PREFIX]
2775
2776 By default, \`make install' will install all the files in
2777 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2778 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2779 for instance \`--prefix=\$HOME'.
2780
2781 For better control, use the options below.
2782
2783 Fine tuning of the installation directories:
2784 --bindir=DIR user executables [EPREFIX/bin]
2785 --sbindir=DIR system admin executables [EPREFIX/sbin]
2786 --libexecdir=DIR program executables [EPREFIX/libexec]
2787 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2788 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2789 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2790 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
2791 --libdir=DIR object code libraries [EPREFIX/lib]
2792 --includedir=DIR C header files [PREFIX/include]
2793 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2794 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2795 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2796 --infodir=DIR info documentation [DATAROOTDIR/info]
2797 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2798 --mandir=DIR man documentation [DATAROOTDIR/man]
2799 --docdir=DIR documentation root [DATAROOTDIR/doc/augeas]
2800 --htmldir=DIR html documentation [DOCDIR]
2801 --dvidir=DIR dvi documentation [DOCDIR]
2802 --pdfdir=DIR pdf documentation [DOCDIR]
2803 --psdir=DIR ps documentation [DOCDIR]
2804 _ACEOF
2805
2806 cat <<\_ACEOF
2807
2808 Program names:
2809 --program-prefix=PREFIX prepend PREFIX to installed program names
2810 --program-suffix=SUFFIX append SUFFIX to installed program names
2811 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
2812
2813 System types:
2814 --build=BUILD configure for building on BUILD [guessed]
2815 --host=HOST cross-compile to build programs to run on HOST [BUILD]
2816 _ACEOF
2817 fi
2818
2819 if test -n "$ac_init_help"; then
2820 case $ac_init_help in
2821 short | recursive ) echo "Configuration of augeas 1.14.1:";;
2822 esac
2823 cat <<\_ACEOF
2824
2825 Optional Features:
2826 --disable-option-checking ignore unrecognized --enable/--with options
2827 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2828 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2829 --enable-silent-rules less verbose build output (undo: "make V=1")
2830 --disable-silent-rules verbose build output (undo: "make V=0")
2831 --enable-debug=no/yes enable debugging output
2832 --enable-dependency-tracking
2833 do not reject slow dependency extractors
2834 --disable-dependency-tracking
2835 speeds up one-time build
2836 --disable-largefile omit support for large files
2837 --disable-year2038 omit support for timestamps past the year 2038
2838 --enable-threads={isoc|posix|isoc+posix|windows}
2839 specify multithreading API
2840 --disable-threads build without multithread safety
2841 --enable-shared[=PKGS] build shared libraries [default=yes]
2842 --enable-static[=PKGS] build static libraries [default=yes]
2843 --enable-fast-install[=PKGS]
2844 optimize for fast installation [default=yes]
2845 --disable-libtool-lock avoid locking (might break parallel builds)
2846 --enable-compile-warnings=[no/minimum/yes/maximum/error]
2847 Turn on compiler warnings
2848 --enable-iso-c Try to warn if code is not ISO C
2849 --enable-cross-guesses={conservative|risky}
2850 specify policy for cross-compilation guesses
2851 --disable-gnulib-tests disable running GNU Portability library tests
2852 [default=yes]
2853
2854 Optional Packages:
2855 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2856 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2857 --with-naturaldocs-output=FORMAT
2858 format of NaturalDocs output (possible values:
2859 HTML/FramedHTML, default: HTML)
2860 --with-pdfdocs whether to use pdflatex to build PDF docs
2861 --with-failmalloc=FAILMALLOC
2862 enable failmalloc test targets and use the
2863 failmalloc library FAILMALLOC
2864 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
2865 both]
2866 --with-aix-soname=aix|svr4|both
2867 shared library versioning (aka "SONAME") variant to
2868 provide on AIX, [default=aix].
2869 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
2870 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
2871 compiler's sysroot if not specified).
2872 --without-included-regex
2873 don't compile regex; this is the default on systems
2874 with recent-enough versions of the GNU C Library
2875 (use with caution on other systems).
2876 --without-selinux do not use SELinux, even on systems with SELinux
2877
2878 Some influential environment variables:
2879 CC C compiler command
2880 CFLAGS C compiler flags
2881 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2882 nonstandard directory <lib dir>
2883 LIBS libraries to pass to the linker, e.g. -l<library>
2884 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2885 you have headers in a nonstandard directory <include dir>
2886 CPP C preprocessor
2887 LT_SYS_LIBRARY_PATH
2888 User-defined run-time library search path.
2889 YACC The `Yet Another Compiler Compiler' implementation to use.
2890 Defaults to the first program found out of: `bison -y', `byacc',
2891 `yacc'.
2892 YFLAGS The list of arguments that will be passed by default to $YACC.
2893 This script will default YFLAGS to the empty string to avoid a
2894 default value of `-d' given by some make applications.
2895 PKG_CONFIG path to pkg-config utility
2896 PKG_CONFIG_PATH
2897 directories to add to pkg-config's search path
2898 PKG_CONFIG_LIBDIR
2899 path overriding pkg-config's built-in search path
2900 LIBXML_CFLAGS
2901 C compiler flags for LIBXML, overriding pkg-config
2902 LIBXML_LIBS linker flags for LIBXML, overriding pkg-config
2903 bashcompdir value of completionsdir for bash-completion, overriding
2904 pkg-config
2905
2906 Use these variables to override the choices made by `configure' or to help
2907 it to find libraries and programs with nonstandard names/locations.
2908
2909 Report bugs to the package provider.
2910 _ACEOF
2911 ac_status=$?
2912 fi
2913
2914 if test "$ac_init_help" = "recursive"; then
2915 # If there are subdirs, report their specific --help.
2916 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2917 test -d "$ac_dir" ||
2918 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2919 continue
2920 ac_builddir=.
2921
2922 case "$ac_dir" in
2923 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2924 *)
2925 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
2926 # A ".." for each directory in $ac_dir_suffix.
2927 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2928 case $ac_top_builddir_sub in
2929 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2930 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2931 esac ;;
2932 esac
2933 ac_abs_top_builddir=$ac_pwd
2934 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2935 # for backward compatibility:
2936 ac_top_builddir=$ac_top_build_prefix
2937
2938 case $srcdir in
2939 .) # We are building in place.
2940 ac_srcdir=.
2941 ac_top_srcdir=$ac_top_builddir_sub
2942 ac_abs_top_srcdir=$ac_pwd ;;
2943 [\\/]* | ?:[\\/]* ) # Absolute name.
2944 ac_srcdir=$srcdir$ac_dir_suffix;
2945 ac_top_srcdir=$srcdir
2946 ac_abs_top_srcdir=$srcdir ;;
2947 *) # Relative name.
2948 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2949 ac_top_srcdir=$ac_top_build_prefix$srcdir
2950 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2951 esac
2952 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2953
2954 cd "$ac_dir" || { ac_status=$?; continue; }
2955 # Check for configure.gnu first; this name is used for a wrapper for
2956 # Metaconfig's "Configure" on case-insensitive file systems.
2957 if test -f "$ac_srcdir/configure.gnu"; then
2958 echo &&
2959 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2960 elif test -f "$ac_srcdir/configure"; then
2961 echo &&
2962 $SHELL "$ac_srcdir/configure" --help=recursive
2963 else
2964 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2965 fi || ac_status=$?
2966 cd "$ac_pwd" || { ac_status=$?; break; }
2967 done
2968 fi
2969
2970 test -n "$ac_init_help" && exit $ac_status
2971 if $ac_init_version; then
2972 cat <<\_ACEOF
2973 augeas configure 1.14.1
2974 generated by GNU Autoconf 2.71
2975
2976 Copyright (C) 2021 Free Software Foundation, Inc.
2977 This configure script is free software; the Free Software Foundation
2978 gives unlimited permission to copy, distribute and modify it.
2979 _ACEOF
2980 exit
2981 fi
2982
2983 ## ------------------------ ##
2984 ## Autoconf initialization. ##
2985 ## ------------------------ ##
2986
2987 # ac_fn_c_try_compile LINENO
2988 # --------------------------
2989 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2990 ac_fn_c_try_compile ()
2991 {
2992 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2993 rm -f conftest.$ac_objext conftest.beam
2994 if { { ac_try="$ac_compile"
2995 case "(($ac_try" in
2996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2997 *) ac_try_echo=$ac_try;;
2998 esac
2999 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3000 printf "%s\n" "$ac_try_echo"; } >&5
3001 (eval "$ac_compile") 2>conftest.err
3002 ac_status=$?
3003 if test -s conftest.err; then
3004 grep -v '^ *+' conftest.err >conftest.er1
3005 cat conftest.er1 >&5
3006 mv -f conftest.er1 conftest.err
3007 fi
3008 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3009 test $ac_status = 0; } && {
3010 test -z "$ac_c_werror_flag" ||
3011 test ! -s conftest.err
3012 } && test -s conftest.$ac_objext
3013 then :
3014 ac_retval=0
3015 else $as_nop
3016 printf "%s\n" "$as_me: failed program was:" >&5
3017 sed 's/^/| /' conftest.$ac_ext >&5
3018
3019 ac_retval=1
3020 fi
3021 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3022 as_fn_set_status $ac_retval
3023
3024 } # ac_fn_c_try_compile
3025
3026 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
3027 # -------------------------------------------------------
3028 # Tests whether HEADER exists and can be compiled using the include files in
3029 # INCLUDES, setting the cache variable VAR accordingly.
3030 ac_fn_c_check_header_compile ()
3031 {
3032 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3034 printf %s "checking for $2... " >&6; }
3035 if eval test \${$3+y}
3036 then :
3037 printf %s "(cached) " >&6
3038 else $as_nop
3039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3040 /* end confdefs.h. */
3041 $4
3042 #include <$2>
3043 _ACEOF
3044 if ac_fn_c_try_compile "$LINENO"
3045 then :
3046 eval "$3=yes"
3047 else $as_nop
3048 eval "$3=no"
3049 fi
3050 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3051 fi
3052 eval ac_res=\$$3
3053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3054 printf "%s\n" "$ac_res" >&6; }
3055 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3056
3057 } # ac_fn_c_check_header_compile
3058
3059 # ac_fn_c_try_cpp LINENO
3060 # ----------------------
3061 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
3062 ac_fn_c_try_cpp ()
3063 {
3064 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3065 if { { ac_try="$ac_cpp conftest.$ac_ext"
3066 case "(($ac_try" in
3067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3068 *) ac_try_echo=$ac_try;;
3069 esac
3070 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3071 printf "%s\n" "$ac_try_echo"; } >&5
3072 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
3073 ac_status=$?
3074 if test -s conftest.err; then
3075 grep -v '^ *+' conftest.err >conftest.er1
3076 cat conftest.er1 >&5
3077 mv -f conftest.er1 conftest.err
3078 fi
3079 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3080 test $ac_status = 0; } > conftest.i && {
3081 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3082 test ! -s conftest.err
3083 }
3084 then :
3085 ac_retval=0
3086 else $as_nop
3087 printf "%s\n" "$as_me: failed program was:" >&5
3088 sed 's/^/| /' conftest.$ac_ext >&5
3089
3090 ac_retval=1
3091 fi
3092 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3093 as_fn_set_status $ac_retval
3094
3095 } # ac_fn_c_try_cpp
3096
3097 # ac_fn_c_try_link LINENO
3098 # -----------------------
3099 # Try to link conftest.$ac_ext, and return whether this succeeded.
3100 ac_fn_c_try_link ()
3101 {
3102 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3103 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
3104 if { { ac_try="$ac_link"
3105 case "(($ac_try" in
3106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3107 *) ac_try_echo=$ac_try;;
3108 esac
3109 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3110 printf "%s\n" "$ac_try_echo"; } >&5
3111 (eval "$ac_link") 2>conftest.err
3112 ac_status=$?
3113 if test -s conftest.err; then
3114 grep -v '^ *+' conftest.err >conftest.er1
3115 cat conftest.er1 >&5
3116 mv -f conftest.er1 conftest.err
3117 fi
3118 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3119 test $ac_status = 0; } && {
3120 test -z "$ac_c_werror_flag" ||
3121 test ! -s conftest.err
3122 } && test -s conftest$ac_exeext && {
3123 test "$cross_compiling" = yes ||
3124 test -x conftest$ac_exeext
3125 }
3126 then :
3127 ac_retval=0
3128 else $as_nop
3129 printf "%s\n" "$as_me: failed program was:" >&5
3130 sed 's/^/| /' conftest.$ac_ext >&5
3131
3132 ac_retval=1
3133 fi
3134 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
3135 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
3136 # interfere with the next link command; also delete a directory that is
3137 # left behind by Apple's compiler. We do this before executing the actions.
3138 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
3139 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3140 as_fn_set_status $ac_retval
3141
3142 } # ac_fn_c_try_link
3143
3144 # ac_fn_c_check_func LINENO FUNC VAR
3145 # ----------------------------------
3146 # Tests whether FUNC exists, setting the cache variable VAR accordingly
3147 ac_fn_c_check_func ()
3148 {
3149 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3151 printf %s "checking for $2... " >&6; }
3152 if eval test \${$3+y}
3153 then :
3154 printf %s "(cached) " >&6
3155 else $as_nop
3156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3157 /* end confdefs.h. */
3158 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
3159 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3160 #define $2 innocuous_$2
3161
3162 /* System header to define __stub macros and hopefully few prototypes,
3163 which can conflict with char $2 (); below. */
3164
3165 #include <limits.h>
3166 #undef $2
3167
3168 /* Override any GCC internal prototype to avoid an error.
3169 Use char because int might match the return type of a GCC
3170 builtin and then its argument prototype would still apply. */
3171 #ifdef __cplusplus
3172 extern "C"
3173 #endif
3174 char $2 ();
3175 /* The GNU C library defines this for functions which it implements
3176 to always fail with ENOSYS. Some functions are actually named
3177 something starting with __ and the normal name is an alias. */
3178 #if defined __stub_$2 || defined __stub___$2
3179 choke me
3180 #endif
3181
3182 int
3183 main (void)
3184 {
3185 return $2 ();
3186 ;
3187 return 0;
3188 }
3189 _ACEOF
3190 if ac_fn_c_try_link "$LINENO"
3191 then :
3192 eval "$3=yes"
3193 else $as_nop
3194 eval "$3=no"
3195 fi
3196 rm -f core conftest.err conftest.$ac_objext conftest.beam \
3197 conftest$ac_exeext conftest.$ac_ext
3198 fi
3199 eval ac_res=\$$3
3200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3201 printf "%s\n" "$ac_res" >&6; }
3202 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3203
3204 } # ac_fn_c_check_func
3205
3206 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
3207 # -------------------------------------------
3208 # Tests whether TYPE exists after having included INCLUDES, setting cache
3209 # variable VAR accordingly.
3210 ac_fn_c_check_type ()
3211 {
3212 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3214 printf %s "checking for $2... " >&6; }
3215 if eval test \${$3+y}
3216 then :
3217 printf %s "(cached) " >&6
3218 else $as_nop
3219 eval "$3=no"
3220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3221 /* end confdefs.h. */
3222 $4
3223 int
3224 main (void)
3225 {
3226 if (sizeof ($2))
3227 return 0;
3228 ;
3229 return 0;
3230 }
3231 _ACEOF
3232 if ac_fn_c_try_compile "$LINENO"
3233 then :
3234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3235 /* end confdefs.h. */
3236 $4
3237 int
3238 main (void)
3239 {
3240 if (sizeof (($2)))
3241 return 0;
3242 ;
3243 return 0;
3244 }
3245 _ACEOF
3246 if ac_fn_c_try_compile "$LINENO"
3247 then :
3248
3249 else $as_nop
3250 eval "$3=yes"
3251 fi
3252 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3253 fi
3254 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3255 fi
3256 eval ac_res=\$$3
3257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3258 printf "%s\n" "$ac_res" >&6; }
3259 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3260
3261 } # ac_fn_c_check_type
3262
3263 # ac_fn_c_try_run LINENO
3264 # ----------------------
3265 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
3266 # executables *can* be run.
3267 ac_fn_c_try_run ()
3268 {
3269 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3270 if { { ac_try="$ac_link"
3271 case "(($ac_try" in
3272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3273 *) ac_try_echo=$ac_try;;
3274 esac
3275 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3276 printf "%s\n" "$ac_try_echo"; } >&5
3277 (eval "$ac_link") 2>&5
3278 ac_status=$?
3279 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3280 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
3281 { { case "(($ac_try" in
3282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3283 *) ac_try_echo=$ac_try;;
3284 esac
3285 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3286 printf "%s\n" "$ac_try_echo"; } >&5
3287 (eval "$ac_try") 2>&5
3288 ac_status=$?
3289 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3290 test $ac_status = 0; }; }
3291 then :
3292 ac_retval=0
3293 else $as_nop
3294 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
3295 printf "%s\n" "$as_me: failed program was:" >&5
3296 sed 's/^/| /' conftest.$ac_ext >&5
3297
3298 ac_retval=$ac_status
3299 fi
3300 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
3301 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3302 as_fn_set_status $ac_retval
3303
3304 } # ac_fn_c_try_run
3305
3306 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
3307 # --------------------------------------------
3308 # Tries to find the compile-time value of EXPR in a program that includes
3309 # INCLUDES, setting VAR accordingly. Returns whether the value could be
3310 # computed
3311 ac_fn_c_compute_int ()
3312 {
3313 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3314 if test "$cross_compiling" = yes; then
3315 # Depending upon the size, compute the lo and hi bounds.
3316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3317 /* end confdefs.h. */
3318 $4
3319 int
3320 main (void)
3321 {
3322 static int test_array [1 - 2 * !(($2) >= 0)];
3323 test_array [0] = 0;
3324 return test_array [0];
3325
3326 ;
3327 return 0;
3328 }
3329 _ACEOF
3330 if ac_fn_c_try_compile "$LINENO"
3331 then :
3332 ac_lo=0 ac_mid=0
3333 while :; do
3334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3335 /* end confdefs.h. */
3336 $4
3337 int
3338 main (void)
3339 {
3340 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
3341 test_array [0] = 0;
3342 return test_array [0];
3343
3344 ;
3345 return 0;
3346 }
3347 _ACEOF
3348 if ac_fn_c_try_compile "$LINENO"
3349 then :
3350 ac_hi=$ac_mid; break
3351 else $as_nop
3352 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
3353 if test $ac_lo -le $ac_mid; then
3354 ac_lo= ac_hi=
3355 break
3356 fi
3357 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
3358 fi
3359 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3360 done
3361 else $as_nop
3362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3363 /* end confdefs.h. */
3364 $4
3365 int
3366 main (void)
3367 {
3368 static int test_array [1 - 2 * !(($2) < 0)];
3369 test_array [0] = 0;
3370 return test_array [0];
3371
3372 ;
3373 return 0;
3374 }
3375 _ACEOF
3376 if ac_fn_c_try_compile "$LINENO"
3377 then :
3378 ac_hi=-1 ac_mid=-1
3379 while :; do
3380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3381 /* end confdefs.h. */
3382 $4
3383 int
3384 main (void)
3385 {
3386 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
3387 test_array [0] = 0;
3388 return test_array [0];
3389
3390 ;
3391 return 0;
3392 }
3393 _ACEOF
3394 if ac_fn_c_try_compile "$LINENO"
3395 then :
3396 ac_lo=$ac_mid; break
3397 else $as_nop
3398 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
3399 if test $ac_mid -le $ac_hi; then
3400 ac_lo= ac_hi=
3401 break
3402 fi
3403 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
3404 fi
3405 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3406 done
3407 else $as_nop
3408 ac_lo= ac_hi=
3409 fi
3410 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3411 fi
3412 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3413 # Binary search between lo and hi bounds.
3414 while test "x$ac_lo" != "x$ac_hi"; do
3415 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
3416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3417 /* end confdefs.h. */
3418 $4
3419 int
3420 main (void)
3421 {
3422 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
3423 test_array [0] = 0;
3424 return test_array [0];
3425
3426 ;
3427 return 0;
3428 }
3429 _ACEOF
3430 if ac_fn_c_try_compile "$LINENO"
3431 then :
3432 ac_hi=$ac_mid
3433 else $as_nop
3434 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
3435 fi
3436 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3437 done
3438 case $ac_lo in #((
3439 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
3440 '') ac_retval=1 ;;
3441 esac
3442 else
3443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3444 /* end confdefs.h. */
3445 $4
3446 static long int longval (void) { return $2; }
3447 static unsigned long int ulongval (void) { return $2; }
3448 #include <stdio.h>
3449 #include <stdlib.h>
3450 int
3451 main (void)
3452 {
3453
3454 FILE *f = fopen ("conftest.val", "w");
3455 if (! f)
3456 return 1;
3457 if (($2) < 0)
3458 {
3459 long int i = longval ();
3460 if (i != ($2))
3461 return 1;
3462 fprintf (f, "%ld", i);
3463 }
3464 else
3465 {
3466 unsigned long int i = ulongval ();
3467 if (i != ($2))
3468 return 1;
3469 fprintf (f, "%lu", i);
3470 }
3471 /* Do not output a trailing newline, as this causes \r\n confusion
3472 on some platforms. */
3473 return ferror (f) || fclose (f) != 0;
3474
3475 ;
3476 return 0;
3477 }
3478 _ACEOF
3479 if ac_fn_c_try_run "$LINENO"
3480 then :
3481 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
3482 else $as_nop
3483 ac_retval=1
3484 fi
3485 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3486 conftest.$ac_objext conftest.beam conftest.$ac_ext
3487 rm -f conftest.val
3488
3489 fi
3490 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3491 as_fn_set_status $ac_retval
3492
3493 } # ac_fn_c_compute_int
3494
3495 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
3496 # ------------------------------------------------------------------
3497 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
3498 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
3499 ac_fn_check_decl ()
3500 {
3501 ac_save_ac_compile="$ac_compile"
3502 if test -n "$ac_compile_for_check_decl"; then
3503 ac_compile="$ac_compile_for_check_decl"
3504 fi
3505 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3506 as_decl_name=`echo $2|sed 's/ *(.*//'`
3507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
3508 printf %s "checking whether $as_decl_name is declared... " >&6; }
3509 if eval test \${$3+y}
3510 then :
3511 printf %s "(cached) " >&6
3512 else $as_nop
3513 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
3514 eval ac_save_FLAGS=\$$6
3515 as_fn_append $6 " $5"
3516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3517 /* end confdefs.h. */
3518 $4
3519 int
3520 main (void)
3521 {
3522 #ifndef $as_decl_name
3523 #ifdef __cplusplus
3524 (void) $as_decl_use;
3525 #else
3526 (void) $as_decl_name;
3527 #endif
3528 #endif
3529
3530 ;
3531 return 0;
3532 }
3533 _ACEOF
3534 if ac_fn_c_try_compile "$LINENO"
3535 then :
3536 eval "$3=yes"
3537 else $as_nop
3538 eval "$3=no"
3539 fi
3540 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3541 eval $6=\$ac_save_FLAGS
3542
3543 fi
3544 eval ac_res=\$$3
3545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3546 printf "%s\n" "$ac_res" >&6; }
3547 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3548 ac_compile="$ac_save_ac_compile"
3549
3550 } # ac_fn_check_decl
3551
3552 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
3553 # ----------------------------------------------------
3554 # Tries to find if the field MEMBER exists in type AGGR, after including
3555 # INCLUDES, setting cache variable VAR accordingly.
3556 ac_fn_c_check_member ()
3557 {
3558 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
3560 printf %s "checking for $2.$3... " >&6; }
3561 if eval test \${$4+y}
3562 then :
3563 printf %s "(cached) " >&6
3564 else $as_nop
3565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3566 /* end confdefs.h. */
3567 $5
3568 int
3569 main (void)
3570 {
3571 static $2 ac_aggr;
3572 if (ac_aggr.$3)
3573 return 0;
3574 ;
3575 return 0;
3576 }
3577 _ACEOF
3578 if ac_fn_c_try_compile "$LINENO"
3579 then :
3580 eval "$4=yes"
3581 else $as_nop
3582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3583 /* end confdefs.h. */
3584 $5
3585 int
3586 main (void)
3587 {
3588 static $2 ac_aggr;
3589 if (sizeof ac_aggr.$3)
3590 return 0;
3591 ;
3592 return 0;
3593 }
3594 _ACEOF
3595 if ac_fn_c_try_compile "$LINENO"
3596 then :
3597 eval "$4=yes"
3598 else $as_nop
3599 eval "$4=no"
3600 fi
3601 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3602 fi
3603 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3604 fi
3605 eval ac_res=\$$4
3606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3607 printf "%s\n" "$ac_res" >&6; }
3608 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3609
3610 } # ac_fn_c_check_member
3611 ac_configure_args_raw=
3612 for ac_arg
3613 do
3614 case $ac_arg in
3615 *\'*)
3616 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3617 esac
3618 as_fn_append ac_configure_args_raw " '$ac_arg'"
3619 done
3620
3621 case $ac_configure_args_raw in
3622 *$as_nl*)
3623 ac_safe_unquote= ;;
3624 *)
3625 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
3626 ac_unsafe_a="$ac_unsafe_z#~"
3627 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
3628 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
3629 esac
3630
3631 cat >config.log <<_ACEOF
3632 This file contains any messages produced by compilers while
3633 running configure, to aid debugging if configure makes a mistake.
3634
3635 It was created by augeas $as_me 1.14.1, which was
3636 generated by GNU Autoconf 2.71. Invocation command line was
3637
3638 $ $0$ac_configure_args_raw
3639
3640 _ACEOF
3641 exec 5>>config.log
3642 {
3643 cat <<_ASUNAME
3644 ## --------- ##
3645 ## Platform. ##
3646 ## --------- ##
3647
3648 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3649 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3650 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3651 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3652 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3653
3654 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3655 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3656
3657 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3658 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3659 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3660 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3661 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3662 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3663 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3664
3665 _ASUNAME
3666
3667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3668 for as_dir in $PATH
3669 do
3670 IFS=$as_save_IFS
3671 case $as_dir in #(((
3672 '') as_dir=./ ;;
3673 */) ;;
3674 *) as_dir=$as_dir/ ;;
3675 esac
3676 printf "%s\n" "PATH: $as_dir"
3677 done
3678 IFS=$as_save_IFS
3679
3680 } >&5
3681
3682 cat >&5 <<_ACEOF
3683
3684
3685 ## ----------- ##
3686 ## Core tests. ##
3687 ## ----------- ##
3688
3689 _ACEOF
3690
3691
3692 # Keep a trace of the command line.
3693 # Strip out --no-create and --no-recursion so they do not pile up.
3694 # Strip out --silent because we don't want to record it for future runs.
3695 # Also quote any args containing shell meta-characters.
3696 # Make two passes to allow for proper duplicate-argument suppression.
3697 ac_configure_args=
3698 ac_configure_args0=
3699 ac_configure_args1=
3700 ac_must_keep_next=false
3701 for ac_pass in 1 2
3702 do
3703 for ac_arg
3704 do
3705 case $ac_arg in
3706 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3707 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3708 | -silent | --silent | --silen | --sile | --sil)
3709 continue ;;
3710 *\'*)
3711 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3712 esac
3713 case $ac_pass in
3714 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3715 2)
3716 as_fn_append ac_configure_args1 " '$ac_arg'"
3717 if test $ac_must_keep_next = true; then
3718 ac_must_keep_next=false # Got value, back to normal.
3719 else
3720 case $ac_arg in
3721 *=* | --config-cache | -C | -disable-* | --disable-* \
3722 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3723 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3724 | -with-* | --with-* | -without-* | --without-* | --x)
3725 case "$ac_configure_args0 " in
3726 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3727 esac
3728 ;;
3729 -* ) ac_must_keep_next=true ;;
3730 esac
3731 fi
3732 as_fn_append ac_configure_args " '$ac_arg'"
3733 ;;
3734 esac
3735 done
3736 done
3737 { ac_configure_args0=; unset ac_configure_args0;}
3738 { ac_configure_args1=; unset ac_configure_args1;}
3739
3740 # When interrupted or exit'd, cleanup temporary files, and complete
3741 # config.log. We remove comments because anyway the quotes in there
3742 # would cause problems or look ugly.
3743 # WARNING: Use '\'' to represent an apostrophe within the trap.
3744 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3745 trap 'exit_status=$?
3746 # Sanitize IFS.
3747 IFS=" "" $as_nl"
3748 # Save into config.log some information that might help in debugging.
3749 {
3750 echo
3751
3752 printf "%s\n" "## ---------------- ##
3753 ## Cache variables. ##
3754 ## ---------------- ##"
3755 echo
3756 # The following way of writing the cache mishandles newlines in values,
3757 (
3758 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3759 eval ac_val=\$$ac_var
3760 case $ac_val in #(
3761 *${as_nl}*)
3762 case $ac_var in #(
3763 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3764 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3765 esac
3766 case $ac_var in #(
3767 _ | IFS | as_nl) ;; #(
3768 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3769 *) { eval $ac_var=; unset $ac_var;} ;;
3770 esac ;;
3771 esac
3772 done
3773 (set) 2>&1 |
3774 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3775 *${as_nl}ac_space=\ *)
3776 sed -n \
3777 "s/'\''/'\''\\\\'\'''\''/g;
3778 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3779 ;; #(
3780 *)
3781 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3782 ;;
3783 esac |
3784 sort
3785 )
3786 echo
3787
3788 printf "%s\n" "## ----------------- ##
3789 ## Output variables. ##
3790 ## ----------------- ##"
3791 echo
3792 for ac_var in $ac_subst_vars
3793 do
3794 eval ac_val=\$$ac_var
3795 case $ac_val in
3796 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3797 esac
3798 printf "%s\n" "$ac_var='\''$ac_val'\''"
3799 done | sort
3800 echo
3801
3802 if test -n "$ac_subst_files"; then
3803 printf "%s\n" "## ------------------- ##
3804 ## File substitutions. ##
3805 ## ------------------- ##"
3806 echo
3807 for ac_var in $ac_subst_files
3808 do
3809 eval ac_val=\$$ac_var
3810 case $ac_val in
3811 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3812 esac
3813 printf "%s\n" "$ac_var='\''$ac_val'\''"
3814 done | sort
3815 echo
3816 fi
3817
3818 if test -s confdefs.h; then
3819 printf "%s\n" "## ----------- ##
3820 ## confdefs.h. ##
3821 ## ----------- ##"
3822 echo
3823 cat confdefs.h
3824 echo
3825 fi
3826 test "$ac_signal" != 0 &&
3827 printf "%s\n" "$as_me: caught signal $ac_signal"
3828 printf "%s\n" "$as_me: exit $exit_status"
3829 } >&5
3830 rm -f core *.core core.conftest.* &&
3831 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3832 exit $exit_status
3833 ' 0
3834 for ac_signal in 1 2 13 15; do
3835 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3836 done
3837 ac_signal=0
3838
3839 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3840 rm -f -r conftest* confdefs.h
3841
3842 printf "%s\n" "/* confdefs.h */" > confdefs.h
3843
3844 # Predefined preprocessor variables.
3845
3846 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
3847
3848 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
3849
3850 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
3851
3852 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
3853
3854 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
3855
3856 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
3857
3858
3859 # Let the site file select an alternate cache file if it wants to.
3860 # Prefer an explicitly selected file to automatically selected ones.
3861 if test -n "$CONFIG_SITE"; then
3862 ac_site_files="$CONFIG_SITE"
3863 elif test "x$prefix" != xNONE; then
3864 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
3865 else
3866 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
3867 fi
3868
3869 for ac_site_file in $ac_site_files
3870 do
3871 case $ac_site_file in #(
3872 */*) :
3873 ;; #(
3874 *) :
3875 ac_site_file=./$ac_site_file ;;
3876 esac
3877 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
3878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3879 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
3880 sed 's/^/| /' "$ac_site_file" >&5
3881 . "$ac_site_file" \
3882 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3883 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3884 as_fn_error $? "failed to load site script $ac_site_file
3885 See \`config.log' for more details" "$LINENO" 5; }
3886 fi
3887 done
3888
3889 if test -r "$cache_file"; then
3890 # Some versions of bash will fail to source /dev/null (special files
3891 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3892 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3894 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
3895 case $cache_file in
3896 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3897 *) . "./$cache_file";;
3898 esac
3899 fi
3900 else
3901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3902 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
3903 >$cache_file
3904 fi
3905
3906 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
3907 # Test code for whether the C compiler supports C89 (global declarations)
3908 ac_c_conftest_c89_globals='
3909 /* Does the compiler advertise C89 conformance?
3910 Do not test the value of __STDC__, because some compilers set it to 0
3911 while being otherwise adequately conformant. */
3912 #if !defined __STDC__
3913 # error "Compiler does not advertise C89 conformance"
3914 #endif
3915
3916 #include <stddef.h>
3917 #include <stdarg.h>
3918 struct stat;
3919 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
3920 struct buf { int x; };
3921 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
3922 static char *e (p, i)
3923 char **p;
3924 int i;
3925 {
3926 return p[i];
3927 }
3928 static char *f (char * (*g) (char **, int), char **p, ...)
3929 {
3930 char *s;
3931 va_list v;
3932 va_start (v,p);
3933 s = g (p, va_arg (v,int));
3934 va_end (v);
3935 return s;
3936 }
3937
3938 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3939 function prototypes and stuff, but not \xHH hex character constants.
3940 These do not provoke an error unfortunately, instead are silently treated
3941 as an "x". The following induces an error, until -std is added to get
3942 proper ANSI mode. Curiously \x00 != x always comes out true, for an
3943 array size at least. It is necessary to write \x00 == 0 to get something
3944 that is true only with -std. */
3945 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
3946
3947 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3948 inside strings and character constants. */
3949 #define FOO(x) '\''x'\''
3950 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
3951
3952 int test (int i, double x);
3953 struct s1 {int (*f) (int a);};
3954 struct s2 {int (*f) (double a);};
3955 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
3956 int, int);'
3957
3958 # Test code for whether the C compiler supports C89 (body of main).
3959 ac_c_conftest_c89_main='
3960 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
3961 '
3962
3963 # Test code for whether the C compiler supports C99 (global declarations)
3964 ac_c_conftest_c99_globals='
3965 // Does the compiler advertise C99 conformance?
3966 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
3967 # error "Compiler does not advertise C99 conformance"
3968 #endif
3969
3970 #include <stdbool.h>
3971 extern int puts (const char *);
3972 extern int printf (const char *, ...);
3973 extern int dprintf (int, const char *, ...);
3974 extern void *malloc (size_t);
3975
3976 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3977 // dprintf is used instead of fprintf to avoid needing to declare
3978 // FILE and stderr.
3979 #define debug(...) dprintf (2, __VA_ARGS__)
3980 #define showlist(...) puts (#__VA_ARGS__)
3981 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3982 static void
3983 test_varargs_macros (void)
3984 {
3985 int x = 1234;
3986 int y = 5678;
3987 debug ("Flag");
3988 debug ("X = %d\n", x);
3989 showlist (The first, second, and third items.);
3990 report (x>y, "x is %d but y is %d", x, y);
3991 }
3992
3993 // Check long long types.
3994 #define BIG64 18446744073709551615ull
3995 #define BIG32 4294967295ul
3996 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3997 #if !BIG_OK
3998 #error "your preprocessor is broken"
3999 #endif
4000 #if BIG_OK
4001 #else
4002 #error "your preprocessor is broken"
4003 #endif
4004 static long long int bignum = -9223372036854775807LL;
4005 static unsigned long long int ubignum = BIG64;
4006
4007 struct incomplete_array
4008 {
4009 int datasize;
4010 double data[];
4011 };
4012
4013 struct named_init {
4014 int number;
4015 const wchar_t *name;
4016 double average;
4017 };
4018
4019 typedef const char *ccp;
4020
4021 static inline int
4022 test_restrict (ccp restrict text)
4023 {
4024 // See if C++-style comments work.
4025 // Iterate through items via the restricted pointer.
4026 // Also check for declarations in for loops.
4027 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
4028 continue;
4029 return 0;
4030 }
4031
4032 // Check varargs and va_copy.
4033 static bool
4034 test_varargs (const char *format, ...)
4035 {
4036 va_list args;
4037 va_start (args, format);
4038 va_list args_copy;
4039 va_copy (args_copy, args);
4040
4041 const char *str = "";
4042 int number = 0;
4043 float fnumber = 0;
4044
4045 while (*format)
4046 {
4047 switch (*format++)
4048 {
4049 case '\''s'\'': // string
4050 str = va_arg (args_copy, const char *);
4051 break;
4052 case '\''d'\'': // int
4053 number = va_arg (args_copy, int);
4054 break;
4055 case '\''f'\'': // float
4056 fnumber = va_arg (args_copy, double);
4057 break;
4058 default:
4059 break;
4060 }
4061 }
4062 va_end (args_copy);
4063 va_end (args);
4064
4065 return *str && number && fnumber;
4066 }
4067 '
4068
4069 # Test code for whether the C compiler supports C99 (body of main).
4070 ac_c_conftest_c99_main='
4071 // Check bool.
4072 _Bool success = false;
4073 success |= (argc != 0);
4074
4075 // Check restrict.
4076 if (test_restrict ("String literal") == 0)
4077 success = true;
4078 char *restrict newvar = "Another string";
4079
4080 // Check varargs.
4081 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
4082 test_varargs_macros ();
4083
4084 // Check flexible array members.
4085 struct incomplete_array *ia =
4086 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4087 ia->datasize = 10;
4088 for (int i = 0; i < ia->datasize; ++i)
4089 ia->data[i] = i * 1.234;
4090
4091 // Check named initializers.
4092 struct named_init ni = {
4093 .number = 34,
4094 .name = L"Test wide string",
4095 .average = 543.34343,
4096 };
4097
4098 ni.number = 58;
4099
4100 int dynamic_array[ni.number];
4101 dynamic_array[0] = argv[0][0];
4102 dynamic_array[ni.number - 1] = 543;
4103
4104 // work around unused variable warnings
4105 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
4106 || dynamic_array[ni.number - 1] != 543);
4107 '
4108
4109 # Test code for whether the C compiler supports C11 (global declarations)
4110 ac_c_conftest_c11_globals='
4111 // Does the compiler advertise C11 conformance?
4112 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
4113 # error "Compiler does not advertise C11 conformance"
4114 #endif
4115
4116 // Check _Alignas.
4117 char _Alignas (double) aligned_as_double;
4118 char _Alignas (0) no_special_alignment;
4119 extern char aligned_as_int;
4120 char _Alignas (0) _Alignas (int) aligned_as_int;
4121
4122 // Check _Alignof.
4123 enum
4124 {
4125 int_alignment = _Alignof (int),
4126 int_array_alignment = _Alignof (int[100]),
4127 char_alignment = _Alignof (char)
4128 };
4129 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
4130
4131 // Check _Noreturn.
4132 int _Noreturn does_not_return (void) { for (;;) continue; }
4133
4134 // Check _Static_assert.
4135 struct test_static_assert
4136 {
4137 int x;
4138 _Static_assert (sizeof (int) <= sizeof (long int),
4139 "_Static_assert does not work in struct");
4140 long int y;
4141 };
4142
4143 // Check UTF-8 literals.
4144 #define u8 syntax error!
4145 char const utf8_literal[] = u8"happens to be ASCII" "another string";
4146
4147 // Check duplicate typedefs.
4148 typedef long *long_ptr;
4149 typedef long int *long_ptr;
4150 typedef long_ptr long_ptr;
4151
4152 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
4153 struct anonymous
4154 {
4155 union {
4156 struct { int i; int j; };
4157 struct { int k; long int l; } w;
4158 };
4159 int m;
4160 } v1;
4161 '
4162
4163 # Test code for whether the C compiler supports C11 (body of main).
4164 ac_c_conftest_c11_main='
4165 _Static_assert ((offsetof (struct anonymous, i)
4166 == offsetof (struct anonymous, w.k)),
4167 "Anonymous union alignment botch");
4168 v1.i = 2;
4169 v1.w.k = 5;
4170 ok |= v1.i != 5;
4171 '
4172
4173 # Test code for whether the C compiler supports C11 (complete).
4174 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
4175 ${ac_c_conftest_c99_globals}
4176 ${ac_c_conftest_c11_globals}
4177
4178 int
4179 main (int argc, char **argv)
4180 {
4181 int ok = 0;
4182 ${ac_c_conftest_c89_main}
4183 ${ac_c_conftest_c99_main}
4184 ${ac_c_conftest_c11_main}
4185 return ok;
4186 }
4187 "
4188
4189 # Test code for whether the C compiler supports C99 (complete).
4190 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
4191 ${ac_c_conftest_c99_globals}
4192
4193 int
4194 main (int argc, char **argv)
4195 {
4196 int ok = 0;
4197 ${ac_c_conftest_c89_main}
4198 ${ac_c_conftest_c99_main}
4199 return ok;
4200 }
4201 "
4202
4203 # Test code for whether the C compiler supports C89 (complete).
4204 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
4205
4206 int
4207 main (int argc, char **argv)
4208 {
4209 int ok = 0;
4210 ${ac_c_conftest_c89_main}
4211 return ok;
4212 }
4213 "
4214
4215 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
4216 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
4217 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
4218 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
4219 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
4220 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
4221 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
4222 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
4223 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
4224 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
4225 as_fn_append ac_func_c_list " btowc HAVE_BTOWC"
4226 as_fn_append ac_func_c_list " canonicalize_file_name HAVE_CANONICALIZE_FILE_NAME"
4227 as_fn_append ac_func_c_list " faccessat HAVE_FACCESSAT"
4228 as_fn_append ac_func_c_list " realpath HAVE_REALPATH"
4229 as_fn_append ac_func_c_list " lstat HAVE_LSTAT"
4230 as_fn_append ac_header_c_list " sys/param.h sys_param_h HAVE_SYS_PARAM_H"
4231 as_fn_append ac_func_c_list " _set_invalid_parameter_handler HAVE__SET_INVALID_PARAMETER_HANDLER"
4232 as_fn_append ac_header_c_list " sys/socket.h sys_socket_h HAVE_SYS_SOCKET_H"
4233 as_fn_append ac_func_c_list " fcntl HAVE_FCNTL"
4234 as_fn_append ac_func_c_list " symlink HAVE_SYMLINK"
4235 as_fn_append ac_header_c_list " fnmatch.h fnmatch_h HAVE_FNMATCH_H"
4236 as_fn_append ac_func_c_list " fnmatch HAVE_FNMATCH"
4237 as_fn_append ac_func_c_list " mbsrtowcs HAVE_MBSRTOWCS"
4238 as_fn_append ac_func_c_list " getdelim HAVE_GETDELIM"
4239 as_fn_append ac_func_c_list " getdtablesize HAVE_GETDTABLESIZE"
4240 gl_getopt_required=GNU
4241 as_fn_append ac_header_c_list " getopt.h getopt_h HAVE_GETOPT_H"
4242 as_fn_append ac_header_c_list " sys/cdefs.h sys_cdefs_h HAVE_SYS_CDEFS_H"
4243 as_fn_append ac_func_c_list " getrandom HAVE_GETRANDOM"
4244 as_fn_append ac_header_c_list " threads.h threads_h HAVE_THREADS_H"
4245 as_fn_append ac_header_c_list " limits.h limits_h HAVE_LIMITS_H"
4246 as_fn_append ac_func_c_list " isblank HAVE_ISBLANK"
4247 as_fn_append ac_header_c_list " langinfo.h langinfo_h HAVE_LANGINFO_H"
4248 as_fn_append ac_header_c_list " xlocale.h xlocale_h HAVE_XLOCALE_H"
4249 as_fn_append ac_func_c_list " mbsinit HAVE_MBSINIT"
4250 as_fn_append ac_func_c_list " mbrtowc HAVE_MBRTOWC"
4251 as_fn_append ac_header_c_list " sys/mman.h sys_mman_h HAVE_SYS_MMAN_H"
4252 as_fn_append ac_func_c_list " mprotect HAVE_MPROTECT"
4253 as_fn_append ac_func_c_list " mkstemp HAVE_MKSTEMP"
4254 as_fn_append ac_func_c_list " nl_langinfo HAVE_NL_LANGINFO"
4255 as_fn_append ac_func_c_list " readlink HAVE_READLINK"
4256 as_fn_append ac_header_c_list " malloc.h malloc_h HAVE_MALLOC_H"
4257 as_fn_append ac_func_c_list " iswctype HAVE_ISWCTYPE"
4258 as_fn_append ac_header_c_list " selinux/selinux.h selinux_selinux_h HAVE_SELINUX_SELINUX_H"
4259 as_fn_append ac_header_c_list " sys/time.h sys_time_h HAVE_SYS_TIME_H"
4260 as_fn_append ac_header_c_list " stdalign.h stdalign_h HAVE_STDALIGN_H"
4261 as_fn_append ac_header_c_list " stdbool.h stdbool_h HAVE_STDBOOL_H"
4262 as_fn_append ac_header_c_list " stdckdint.h stdckdint_h HAVE_STDCKDINT_H"
4263 as_fn_append ac_func_c_list " stpncpy HAVE_STPNCPY"
4264 as_fn_append ac_func_c_list " strndup HAVE_STRNDUP"
4265 as_fn_append ac_header_c_list " sys/random.h sys_random_h HAVE_SYS_RANDOM_H"
4266 as_fn_append ac_header_c_list " sys/wait.h sys_wait_h HAVE_SYS_WAIT_H"
4267 as_fn_append ac_func_c_list " vasnprintf HAVE_VASNPRINTF"
4268 as_fn_append ac_header_c_list " features.h features_h HAVE_FEATURES_H"
4269 as_fn_append ac_func_c_list " snprintf HAVE_SNPRINTF"
4270 as_fn_append ac_header_c_list " crtdefs.h crtdefs_h HAVE_CRTDEFS_H"
4271 as_fn_append ac_func_c_list " wcrtomb HAVE_WCRTOMB"
4272 as_fn_append ac_func_c_list " iswcntrl HAVE_ISWCNTRL"
4273 as_fn_append ac_header_c_list " wctype.h wctype_h HAVE_WCTYPE_H"
4274 as_fn_append ac_func_c_list " wmempcpy HAVE_WMEMPCPY"
4275 as_fn_append ac_header_c_list " arpa/inet.h arpa_inet_h HAVE_ARPA_INET_H"
4276 as_fn_append ac_func_c_list " ftruncate HAVE_FTRUNCATE"
4277 as_fn_append ac_func_c_list " gettimeofday HAVE_GETTIMEOFDAY"
4278 as_fn_append ac_func_c_list " duplocale HAVE_DUPLOCALE"
4279 as_fn_append ac_header_c_list " netdb.h netdb_h HAVE_NETDB_H"
4280 as_fn_append ac_header_c_list " netinet/in.h netinet_in_h HAVE_NETINET_IN_H"
4281 as_fn_append ac_func_c_list " newlocale HAVE_NEWLOCALE"
4282 as_fn_append ac_func_c_list " uselocale HAVE_USELOCALE"
4283 as_fn_append ac_func_c_list " freelocale HAVE_FREELOCALE"
4284 as_fn_append ac_header_c_list " semaphore.h semaphore_h HAVE_SEMAPHORE_H"
4285 as_fn_append ac_func_c_list " strerror_r HAVE_STRERROR_R"
4286 as_fn_append ac_func_c_list " __xpg_strerror_r HAVE___XPG_STRERROR_R"
4287 as_fn_append ac_func_c_list " pipe HAVE_PIPE"
4288 as_fn_append ac_header_c_list " sys/select.h sys_select_h HAVE_SYS_SELECT_H"
4289 as_fn_append ac_func_c_list " pselect HAVE_PSELECT"
4290 as_fn_append ac_header_c_list " pthread.h pthread_h HAVE_PTHREAD_H"
4291 as_fn_append ac_func_c_list " pthread_sigmask HAVE_PTHREAD_SIGMASK"
4292 as_fn_append ac_func_c_list " setenv HAVE_SETENV"
4293 as_fn_append ac_func_c_list " sleep HAVE_SLEEP"
4294 as_fn_append ac_func_c_list " catgets HAVE_CATGETS"
4295 as_fn_append ac_header_c_list " sys/ioctl.h sys_ioctl_h HAVE_SYS_IOCTL_H"
4296 as_fn_append ac_func_c_list " shutdown HAVE_SHUTDOWN"
4297 as_fn_append ac_header_c_list " sys/uio.h sys_uio_h HAVE_SYS_UIO_H"
4298 as_fn_append ac_func_c_list " usleep HAVE_USLEEP"
4299 as_fn_append ac_func_c_list " wctob HAVE_WCTOB"
4300
4301 # Auxiliary files required by this configure script.
4302 ac_aux_files="ltmain.sh config.guess config.sub compile missing install-sh"
4303
4304 # Locations in which to look for auxiliary files.
4305 ac_aux_dir_candidates="${srcdir}/build/ac-aux"
4306
4307 # Search for a directory containing all of the required auxiliary files,
4308 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
4309 # If we don't find one directory that contains all the files we need,
4310 # we report the set of missing files from the *first* directory in
4311 # $ac_aux_dir_candidates and give up.
4312 ac_missing_aux_files=""
4313 ac_first_candidate=:
4314 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
4315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4316 as_found=false
4317 for as_dir in $ac_aux_dir_candidates
4318 do
4319 IFS=$as_save_IFS
4320 case $as_dir in #(((
4321 '') as_dir=./ ;;
4322 */) ;;
4323 *) as_dir=$as_dir/ ;;
4324 esac
4325 as_found=:
4326
4327 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
4328 ac_aux_dir_found=yes
4329 ac_install_sh=
4330 for ac_aux in $ac_aux_files
4331 do
4332 # As a special case, if "install-sh" is required, that requirement
4333 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
4334 # and $ac_install_sh is set appropriately for whichever one is found.
4335 if test x"$ac_aux" = x"install-sh"
4336 then
4337 if test -f "${as_dir}install-sh"; then
4338 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
4339 ac_install_sh="${as_dir}install-sh -c"
4340 elif test -f "${as_dir}install.sh"; then
4341 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
4342 ac_install_sh="${as_dir}install.sh -c"
4343 elif test -f "${as_dir}shtool"; then
4344 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
4345 ac_install_sh="${as_dir}shtool install -c"
4346 else
4347 ac_aux_dir_found=no
4348 if $ac_first_candidate; then
4349 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
4350 else
4351 break
4352 fi
4353 fi
4354 else
4355 if test -f "${as_dir}${ac_aux}"; then
4356 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
4357 else
4358 ac_aux_dir_found=no
4359 if $ac_first_candidate; then
4360 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
4361 else
4362 break
4363 fi
4364 fi
4365 fi
4366 done
4367 if test "$ac_aux_dir_found" = yes; then
4368 ac_aux_dir="$as_dir"
4369 break
4370 fi
4371 ac_first_candidate=false
4372
4373 as_found=false
4374 done
4375 IFS=$as_save_IFS
4376 if $as_found
4377 then :
4378
4379 else $as_nop
4380 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
4381 fi
4382
4383
4384 # These three variables are undocumented and unsupported,
4385 # and are intended to be withdrawn in a future Autoconf release.
4386 # They can cause serious problems if a builder's source tree is in a directory
4387 # whose full name contains unusual characters.
4388 if test -f "${ac_aux_dir}config.guess"; then
4389 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
4390 fi
4391 if test -f "${ac_aux_dir}config.sub"; then
4392 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
4393 fi
4394 if test -f "$ac_aux_dir/configure"; then
4395 ac_configure="$SHELL ${ac_aux_dir}configure"
4396 fi
4397
4398 # Check that the precious variables saved in the cache have kept the same
4399 # value.
4400 ac_cache_corrupted=false
4401 for ac_var in $ac_precious_vars; do
4402 eval ac_old_set=\$ac_cv_env_${ac_var}_set
4403 eval ac_new_set=\$ac_env_${ac_var}_set
4404 eval ac_old_val=\$ac_cv_env_${ac_var}_value
4405 eval ac_new_val=\$ac_env_${ac_var}_value
4406 case $ac_old_set,$ac_new_set in
4407 set,)
4408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
4409 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
4410 ac_cache_corrupted=: ;;
4411 ,set)
4412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
4413 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
4414 ac_cache_corrupted=: ;;
4415 ,);;
4416 *)
4417 if test "x$ac_old_val" != "x$ac_new_val"; then
4418 # differences in whitespace do not lead to failure.
4419 ac_old_val_w=`echo x $ac_old_val`
4420 ac_new_val_w=`echo x $ac_new_val`
4421 if test "$ac_old_val_w" != "$ac_new_val_w"; then
4422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
4423 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
4424 ac_cache_corrupted=:
4425 else
4426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
4427 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
4428 eval $ac_var=\$ac_old_val
4429 fi
4430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
4431 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
4432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
4433 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
4434 fi;;
4435 esac
4436 # Pass precious variables to config.status.
4437 if test "$ac_new_set" = set; then
4438 case $ac_new_val in
4439 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
4440 *) ac_arg=$ac_var=$ac_new_val ;;
4441 esac
4442 case " $ac_configure_args " in
4443 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
4444 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
4445 esac
4446 fi
4447 done
4448 if $ac_cache_corrupted; then
4449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4450 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
4452 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
4453 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
4454 and start over" "$LINENO" 5
4455 fi
4456 ## -------------------- ##
4457 ## Main body of script. ##
4458 ## -------------------- ##
4459
4460 ac_ext=c
4461 ac_cpp='$CPP $CPPFLAGS'
4462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4465
4466
4467
4468
4469 ac_config_headers="$ac_config_headers config.h"
4470
4471 am__api_version='1.16'
4472
4473
4474
4475 # Find a good install program. We prefer a C program (faster),
4476 # so one script is as good as another. But avoid the broken or
4477 # incompatible versions:
4478 # SysV /etc/install, /usr/sbin/install
4479 # SunOS /usr/etc/install
4480 # IRIX /sbin/install
4481 # AIX /bin/install
4482 # AmigaOS /C/install, which installs bootblocks on floppy discs
4483 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4484 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4485 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4486 # OS/2's system install, which has a completely different semantic
4487 # ./install, which can be erroneously created by make from ./install.sh.
4488 # Reject install programs that cannot install multiple files.
4489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4490 printf %s "checking for a BSD-compatible install... " >&6; }
4491 if test -z "$INSTALL"; then
4492 if test ${ac_cv_path_install+y}
4493 then :
4494 printf %s "(cached) " >&6
4495 else $as_nop
4496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4497 for as_dir in $PATH
4498 do
4499 IFS=$as_save_IFS
4500 case $as_dir in #(((
4501 '') as_dir=./ ;;
4502 */) ;;
4503 *) as_dir=$as_dir/ ;;
4504 esac
4505 # Account for fact that we put trailing slashes in our PATH walk.
4506 case $as_dir in #((
4507 ./ | /[cC]/* | \
4508 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4509 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4510 /usr/ucb/* ) ;;
4511 *)
4512 # OSF1 and SCO ODT 3.0 have their own names for install.
4513 # Don't use installbsd from OSF since it installs stuff as root
4514 # by default.
4515 for ac_prog in ginstall scoinst install; do
4516 for ac_exec_ext in '' $ac_executable_extensions; do
4517 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
4518 if test $ac_prog = install &&
4519 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4520 # AIX install. It has an incompatible calling convention.
4521 :
4522 elif test $ac_prog = install &&
4523 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4524 # program-specific install script used by HP pwplus--don't use.
4525 :
4526 else
4527 rm -rf conftest.one conftest.two conftest.dir
4528 echo one > conftest.one
4529 echo two > conftest.two
4530 mkdir conftest.dir
4531 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
4532 test -s conftest.one && test -s conftest.two &&
4533 test -s conftest.dir/conftest.one &&
4534 test -s conftest.dir/conftest.two
4535 then
4536 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
4537 break 3
4538 fi
4539 fi
4540 fi
4541 done
4542 done
4543 ;;
4544 esac
4545
4546 done
4547 IFS=$as_save_IFS
4548
4549 rm -rf conftest.one conftest.two conftest.dir
4550
4551 fi
4552 if test ${ac_cv_path_install+y}; then
4553 INSTALL=$ac_cv_path_install
4554 else
4555 # As a last resort, use the slow shell script. Don't cache a
4556 # value for INSTALL within a source directory, because that will
4557 # break other packages using the cache if that directory is
4558 # removed, or if the value is a relative name.
4559 INSTALL=$ac_install_sh
4560 fi
4561 fi
4562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4563 printf "%s\n" "$INSTALL" >&6; }
4564
4565 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4566 # It thinks the first close brace ends the variable substitution.
4567 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4568
4569 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4570
4571 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4572
4573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4574 printf %s "checking whether build environment is sane... " >&6; }
4575 # Reject unsafe characters in $srcdir or the absolute working directory
4576 # name. Accept space and tab only in the latter.
4577 am_lf='
4578 '
4579 case `pwd` in
4580 *[\\\"\#\$\&\'\`$am_lf]*)
4581 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4582 esac
4583 case $srcdir in
4584 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4585 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4586 esac
4587
4588 # Do 'set' in a subshell so we don't clobber the current shell's
4589 # arguments. Must try -L first in case configure is actually a
4590 # symlink; some systems play weird games with the mod time of symlinks
4591 # (eg FreeBSD returns the mod time of the symlink's containing
4592 # directory).
4593 if (
4594 am_has_slept=no
4595 for am_try in 1 2; do
4596 echo "timestamp, slept: $am_has_slept" > conftest.file
4597 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4598 if test "$*" = "X"; then
4599 # -L didn't work.
4600 set X `ls -t "$srcdir/configure" conftest.file`
4601 fi
4602 if test "$*" != "X $srcdir/configure conftest.file" \
4603 && test "$*" != "X conftest.file $srcdir/configure"; then
4604
4605 # If neither matched, then we have a broken ls. This can happen
4606 # if, for instance, CONFIG_SHELL is bash and it inherits a
4607 # broken ls alias from the environment. This has actually
4608 # happened. Such a system could not be considered "sane".
4609 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4610 alias in your environment" "$LINENO" 5
4611 fi
4612 if test "$2" = conftest.file || test $am_try -eq 2; then
4613 break
4614 fi
4615 # Just in case.
4616 sleep 1
4617 am_has_slept=yes
4618 done
4619 test "$2" = conftest.file
4620 )
4621 then
4622 # Ok.
4623 :
4624 else
4625 as_fn_error $? "newly created file is older than distributed files!
4626 Check your system clock" "$LINENO" 5
4627 fi
4628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4629 printf "%s\n" "yes" >&6; }
4630 # If we didn't sleep, we still need to ensure time stamps of config.status and
4631 # generated files are strictly newer.
4632 am_sleep_pid=
4633 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4634 ( sleep 1 ) &
4635 am_sleep_pid=$!
4636 fi
4637
4638 rm -f conftest.file
4639
4640 test "$program_prefix" != NONE &&
4641 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4642 # Use a double $ so make ignores it.
4643 test "$program_suffix" != NONE &&
4644 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4645 # Double any \ or $.
4646 # By default was `s,x,x', remove it if useless.
4647 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4648 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
4649
4650
4651 # Expand $ac_aux_dir to an absolute path.
4652 am_aux_dir=`cd "$ac_aux_dir" && pwd`
4653
4654
4655 if test x"${MISSING+set}" != xset; then
4656 MISSING="\${SHELL} '$am_aux_dir/missing'"
4657 fi
4658 # Use eval to expand $SHELL
4659 if eval "$MISSING --is-lightweight"; then
4660 am_missing_run="$MISSING "
4661 else
4662 am_missing_run=
4663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4664 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4665 fi
4666
4667 if test x"${install_sh+set}" != xset; then
4668 case $am_aux_dir in
4669 *\ * | *\ *)
4670 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4671 *)
4672 install_sh="\${SHELL} $am_aux_dir/install-sh"
4673 esac
4674 fi
4675
4676 # Installed binaries are usually stripped using 'strip' when the user
4677 # run "make install-strip". However 'strip' might not be the right
4678 # tool to use in cross-compilation environments, therefore Automake
4679 # will honor the 'STRIP' environment variable to overrule this program.
4680 if test "$cross_compiling" != no; then
4681 if test -n "$ac_tool_prefix"; then
4682 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4683 set dummy ${ac_tool_prefix}strip; ac_word=$2
4684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4685 printf %s "checking for $ac_word... " >&6; }
4686 if test ${ac_cv_prog_STRIP+y}
4687 then :
4688 printf %s "(cached) " >&6
4689 else $as_nop
4690 if test -n "$STRIP"; then
4691 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4692 else
4693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4694 for as_dir in $PATH
4695 do
4696 IFS=$as_save_IFS
4697 case $as_dir in #(((
4698 '') as_dir=./ ;;
4699 */) ;;
4700 *) as_dir=$as_dir/ ;;
4701 esac
4702 for ac_exec_ext in '' $ac_executable_extensions; do
4703 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4704 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4705 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4706 break 2
4707 fi
4708 done
4709 done
4710 IFS=$as_save_IFS
4711
4712 fi
4713 fi
4714 STRIP=$ac_cv_prog_STRIP
4715 if test -n "$STRIP"; then
4716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4717 printf "%s\n" "$STRIP" >&6; }
4718 else
4719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4720 printf "%s\n" "no" >&6; }
4721 fi
4722
4723
4724 fi
4725 if test -z "$ac_cv_prog_STRIP"; then
4726 ac_ct_STRIP=$STRIP
4727 # Extract the first word of "strip", so it can be a program name with args.
4728 set dummy strip; ac_word=$2
4729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4730 printf %s "checking for $ac_word... " >&6; }
4731 if test ${ac_cv_prog_ac_ct_STRIP+y}
4732 then :
4733 printf %s "(cached) " >&6
4734 else $as_nop
4735 if test -n "$ac_ct_STRIP"; then
4736 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4737 else
4738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4739 for as_dir in $PATH
4740 do
4741 IFS=$as_save_IFS
4742 case $as_dir in #(((
4743 '') as_dir=./ ;;
4744 */) ;;
4745 *) as_dir=$as_dir/ ;;
4746 esac
4747 for ac_exec_ext in '' $ac_executable_extensions; do
4748 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4749 ac_cv_prog_ac_ct_STRIP="strip"
4750 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4751 break 2
4752 fi
4753 done
4754 done
4755 IFS=$as_save_IFS
4756
4757 fi
4758 fi
4759 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4760 if test -n "$ac_ct_STRIP"; then
4761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4762 printf "%s\n" "$ac_ct_STRIP" >&6; }
4763 else
4764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4765 printf "%s\n" "no" >&6; }
4766 fi
4767
4768 if test "x$ac_ct_STRIP" = x; then
4769 STRIP=":"
4770 else
4771 case $cross_compiling:$ac_tool_warned in
4772 yes:)
4773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4774 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4775 ac_tool_warned=yes ;;
4776 esac
4777 STRIP=$ac_ct_STRIP
4778 fi
4779 else
4780 STRIP="$ac_cv_prog_STRIP"
4781 fi
4782
4783 fi
4784 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4785
4786
4787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
4788 printf %s "checking for a race-free mkdir -p... " >&6; }
4789 if test -z "$MKDIR_P"; then
4790 if test ${ac_cv_path_mkdir+y}
4791 then :
4792 printf %s "(cached) " >&6
4793 else $as_nop
4794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4795 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4796 do
4797 IFS=$as_save_IFS
4798 case $as_dir in #(((
4799 '') as_dir=./ ;;
4800 */) ;;
4801 *) as_dir=$as_dir/ ;;
4802 esac
4803 for ac_prog in mkdir gmkdir; do
4804 for ac_exec_ext in '' $ac_executable_extensions; do
4805 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
4806 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
4807 'mkdir ('*'coreutils) '* | \
4808 'BusyBox '* | \
4809 'mkdir (fileutils) '4.1*)
4810 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
4811 break 3;;
4812 esac
4813 done
4814 done
4815 done
4816 IFS=$as_save_IFS
4817
4818 fi
4819
4820 test -d ./--version && rmdir ./--version
4821 if test ${ac_cv_path_mkdir+y}; then
4822 MKDIR_P="$ac_cv_path_mkdir -p"
4823 else
4824 # As a last resort, use the slow shell script. Don't cache a
4825 # value for MKDIR_P within a source directory, because that will
4826 # break other packages using the cache if that directory is
4827 # removed, or if the value is a relative name.
4828 MKDIR_P="$ac_install_sh -d"
4829 fi
4830 fi
4831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4832 printf "%s\n" "$MKDIR_P" >&6; }
4833
4834 for ac_prog in gawk mawk nawk awk
4835 do
4836 # Extract the first word of "$ac_prog", so it can be a program name with args.
4837 set dummy $ac_prog; ac_word=$2
4838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4839 printf %s "checking for $ac_word... " >&6; }
4840 if test ${ac_cv_prog_AWK+y}
4841 then :
4842 printf %s "(cached) " >&6
4843 else $as_nop
4844 if test -n "$AWK"; then
4845 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4846 else
4847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4848 for as_dir in $PATH
4849 do
4850 IFS=$as_save_IFS
4851 case $as_dir in #(((
4852 '') as_dir=./ ;;
4853 */) ;;
4854 *) as_dir=$as_dir/ ;;
4855 esac
4856 for ac_exec_ext in '' $ac_executable_extensions; do
4857 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4858 ac_cv_prog_AWK="$ac_prog"
4859 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4860 break 2
4861 fi
4862 done
4863 done
4864 IFS=$as_save_IFS
4865
4866 fi
4867 fi
4868 AWK=$ac_cv_prog_AWK
4869 if test -n "$AWK"; then
4870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4871 printf "%s\n" "$AWK" >&6; }
4872 else
4873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4874 printf "%s\n" "no" >&6; }
4875 fi
4876
4877
4878 test -n "$AWK" && break
4879 done
4880
4881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4882 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4883 set x ${MAKE-make}
4884 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4885 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
4886 then :
4887 printf %s "(cached) " >&6
4888 else $as_nop
4889 cat >conftest.make <<\_ACEOF
4890 SHELL = /bin/sh
4891 all:
4892 @echo '@@@%%%=$(MAKE)=@@@%%%'
4893 _ACEOF
4894 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4895 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4896 *@@@%%%=?*=@@@%%%*)
4897 eval ac_cv_prog_make_${ac_make}_set=yes;;
4898 *)
4899 eval ac_cv_prog_make_${ac_make}_set=no;;
4900 esac
4901 rm -f conftest.make
4902 fi
4903 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4905 printf "%s\n" "yes" >&6; }
4906 SET_MAKE=
4907 else
4908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4909 printf "%s\n" "no" >&6; }
4910 SET_MAKE="MAKE=${MAKE-make}"
4911 fi
4912
4913 rm -rf .tst 2>/dev/null
4914 mkdir .tst 2>/dev/null
4915 if test -d .tst; then
4916 am__leading_dot=.
4917 else
4918 am__leading_dot=_
4919 fi
4920 rmdir .tst 2>/dev/null
4921
4922 # Check whether --enable-silent-rules was given.
4923 if test ${enable_silent_rules+y}
4924 then :
4925 enableval=$enable_silent_rules;
4926 fi
4927
4928 case $enable_silent_rules in # (((
4929 yes) AM_DEFAULT_VERBOSITY=0;;
4930 no) AM_DEFAULT_VERBOSITY=1;;
4931 *) AM_DEFAULT_VERBOSITY=1;;
4932 esac
4933 am_make=${MAKE-make}
4934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4935 printf %s "checking whether $am_make supports nested variables... " >&6; }
4936 if test ${am_cv_make_support_nested_variables+y}
4937 then :
4938 printf %s "(cached) " >&6
4939 else $as_nop
4940 if printf "%s\n" 'TRUE=$(BAR$(V))
4941 BAR0=false
4942 BAR1=true
4943 V=1
4944 am__doit:
4945 @$(TRUE)
4946 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4947 am_cv_make_support_nested_variables=yes
4948 else
4949 am_cv_make_support_nested_variables=no
4950 fi
4951 fi
4952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4953 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4954 if test $am_cv_make_support_nested_variables = yes; then
4955 AM_V='$(V)'
4956 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4957 else
4958 AM_V=$AM_DEFAULT_VERBOSITY
4959 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4960 fi
4961 AM_BACKSLASH='\'
4962
4963 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4964 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4965 # is not polluted with repeated "-I."
4966 am__isrc=' -I$(srcdir)'
4967 # test to see if srcdir already configured
4968 if test -f $srcdir/config.status; then
4969 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4970 fi
4971 fi
4972
4973 # test whether we have cygpath
4974 if test -z "$CYGPATH_W"; then
4975 if (cygpath --version) >/dev/null 2>/dev/null; then
4976 CYGPATH_W='cygpath -w'
4977 else
4978 CYGPATH_W=echo
4979 fi
4980 fi
4981
4982
4983 # Define the identity of the package.
4984 PACKAGE='augeas'
4985 VERSION='1.14.1'
4986
4987
4988 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
4989
4990
4991 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
4992
4993 # Some tools Automake needs.
4994
4995 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4996
4997
4998 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4999
5000
5001 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5002
5003
5004 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5005
5006
5007 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5008
5009 # For better backward compatibility. To be removed once Automake 1.9.x
5010 # dies out for good. For more background, see:
5011 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
5012 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
5013 mkdir_p='$(MKDIR_P)'
5014
5015 # We need awk for the "check" target (and possibly the TAP driver). The
5016 # system "awk" is bad on some platforms.
5017 # Always define AMTAR for backward compatibility. Yes, it's still used
5018 # in the wild :-( We should find a proper way to deprecate it ...
5019 AMTAR='$${TAR-tar}'
5020
5021
5022 # We'll loop over all known methods to create a tar archive until one works.
5023 _am_tools='gnutar pax cpio none'
5024
5025 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
5026
5027
5028
5029
5030
5031 # Variables for tags utilities; see am/tags.am
5032 if test -z "$CTAGS"; then
5033 CTAGS=ctags
5034 fi
5035
5036 if test -z "$ETAGS"; then
5037 ETAGS=etags
5038 fi
5039
5040 if test -z "$CSCOPE"; then
5041 CSCOPE=cscope
5042 fi
5043
5044
5045
5046 # POSIX will say in a future version that running "rm -f" with no argument
5047 # is OK; and we want to be able to make that assumption in our Makefile
5048 # recipes. So use an aggressive probe to check that the usage we want is
5049 # actually supported "in the wild" to an acceptable degree.
5050 # See automake bug#10828.
5051 # To make any issue more visible, cause the running configure to be aborted
5052 # by default if the 'rm' program in use doesn't match our expectations; the
5053 # user can still override this though.
5054 if rm -f && rm -fr && rm -rf; then : OK; else
5055 cat >&2 <<'END'
5056 Oops!
5057
5058 Your 'rm' program seems unable to run without file operands specified
5059 on the command line, even when the '-f' option is present. This is contrary
5060 to the behaviour of most rm programs out there, and not conforming with
5061 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
5062
5063 Please tell [email protected] about your system, including the value
5064 of your $PATH and any error possibly output before this message. This
5065 can help us improve future automake versions.
5066
5067 END
5068 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
5069 echo 'Configuration will proceed anyway, since you have set the' >&2
5070 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
5071 echo >&2
5072 else
5073 cat >&2 <<'END'
5074 Aborting the configuration process, to ensure you take notice of the issue.
5075
5076 You can download and install GNU coreutils to get an 'rm' implementation
5077 that behaves properly: <https://www.gnu.org/software/coreutils/>.
5078
5079 If you want to complete the configuration process using your problematic
5080 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
5081 to "yes", and re-run configure.
5082
5083 END
5084 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
5085 fi
5086 fi
5087
5088 # Check whether --enable-silent-rules was given.
5089 if test ${enable_silent_rules+y}
5090 then :
5091 enableval=$enable_silent_rules;
5092 fi
5093
5094 case $enable_silent_rules in # (((
5095 yes) AM_DEFAULT_VERBOSITY=0;;
5096 no) AM_DEFAULT_VERBOSITY=1;;
5097 *) AM_DEFAULT_VERBOSITY=0;;
5098 esac
5099 am_make=${MAKE-make}
5100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
5101 printf %s "checking whether $am_make supports nested variables... " >&6; }
5102 if test ${am_cv_make_support_nested_variables+y}
5103 then :
5104 printf %s "(cached) " >&6
5105 else $as_nop
5106 if printf "%s\n" 'TRUE=$(BAR$(V))
5107 BAR0=false
5108 BAR1=true
5109 V=1
5110 am__doit:
5111 @$(TRUE)
5112 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
5113 am_cv_make_support_nested_variables=yes
5114 else
5115 am_cv_make_support_nested_variables=no
5116 fi
5117 fi
5118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
5119 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
5120 if test $am_cv_make_support_nested_variables = yes; then
5121 AM_V='$(V)'
5122 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
5123 else
5124 AM_V=$AM_DEFAULT_VERBOSITY
5125 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
5126 fi
5127 AM_BACKSLASH='\'
5128 # make --enable-silent-rules the default.
5129
5130
5131 for ac_prog in naturaldocs NaturalDocs
5132 do
5133 # Extract the first word of "$ac_prog", so it can be a program name with args.
5134 set dummy $ac_prog; ac_word=$2
5135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5136 printf %s "checking for $ac_word... " >&6; }
5137 if test ${ac_cv_path_ND_PROG+y}
5138 then :
5139 printf %s "(cached) " >&6
5140 else $as_nop
5141 case $ND_PROG in
5142 [\\/]* | ?:[\\/]*)
5143 ac_cv_path_ND_PROG="$ND_PROG" # Let the user override the test with a path.
5144 ;;
5145 *)
5146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5147 for as_dir in $PATH
5148 do
5149 IFS=$as_save_IFS
5150 case $as_dir in #(((
5151 '') as_dir=./ ;;
5152 */) ;;
5153 *) as_dir=$as_dir/ ;;
5154 esac
5155 for ac_exec_ext in '' $ac_executable_extensions; do
5156 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5157 ac_cv_path_ND_PROG="$as_dir$ac_word$ac_exec_ext"
5158 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5159 break 2
5160 fi
5161 done
5162 done
5163 IFS=$as_save_IFS
5164
5165 ;;
5166 esac
5167 fi
5168 ND_PROG=$ac_cv_path_ND_PROG
5169 if test -n "$ND_PROG"; then
5170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ND_PROG" >&5
5171 printf "%s\n" "$ND_PROG" >&6; }
5172 else
5173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5174 printf "%s\n" "no" >&6; }
5175 fi
5176
5177
5178 test -n "$ND_PROG" && break
5179 done
5180 test -n "$ND_PROG" || ND_PROG="missing"
5181
5182 if test "x$ND_PROG" != "xmissing"; then
5183 ND_ENABLED_TRUE=
5184 ND_ENABLED_FALSE='#'
5185 else
5186 ND_ENABLED_TRUE='#'
5187 ND_ENABLED_FALSE=
5188 fi
5189
5190
5191 ND_FORMAT=HTML
5192
5193 # Check whether --with-naturaldocs-output was given.
5194 if test ${with_naturaldocs_output+y}
5195 then :
5196 withval=$with_naturaldocs_output;
5197 if test "x$ND_PROG" = "xmissing"; then
5198 as_fn_error $? "NaturalDocs was not found on your path; there's no point in setting the output format" "$LINENO" 5
5199 fi
5200 case $withval in
5201 HTML|FramedHTML)
5202 ND_FORMAT=$withval
5203 ;;
5204 *)
5205 as_fn_error $? "$withval is not a supported output format for NaturalDocs" "$LINENO" 5
5206 ;;
5207 esac
5208
5209 fi
5210
5211
5212
5213
5214 PDFDOCS=""
5215
5216 # Check whether --with-pdfdocs was given.
5217 if test ${with_pdfdocs+y}
5218 then :
5219 withval=$with_pdfdocs; # Extract the first word of "pdflatex", so it can be a program name with args.
5220 set dummy pdflatex; ac_word=$2
5221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5222 printf %s "checking for $ac_word... " >&6; }
5223 if test ${ac_cv_path_PDFLATEX+y}
5224 then :
5225 printf %s "(cached) " >&6
5226 else $as_nop
5227 case $PDFLATEX in
5228 [\\/]* | ?:[\\/]*)
5229 ac_cv_path_PDFLATEX="$PDFLATEX" # Let the user override the test with a path.
5230 ;;
5231 *)
5232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5233 for as_dir in $PATH
5234 do
5235 IFS=$as_save_IFS
5236 case $as_dir in #(((
5237 '') as_dir=./ ;;
5238 */) ;;
5239 *) as_dir=$as_dir/ ;;
5240 esac
5241 for ac_exec_ext in '' $ac_executable_extensions; do
5242 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5243 ac_cv_path_PDFLATEX="$as_dir$ac_word$ac_exec_ext"
5244 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5245 break 2
5246 fi
5247 done
5248 done
5249 IFS=$as_save_IFS
5250
5251 test -z "$ac_cv_path_PDFLATEX" && ac_cv_path_PDFLATEX="no"
5252 ;;
5253 esac
5254 fi
5255 PDFLATEX=$ac_cv_path_PDFLATEX
5256 if test -n "$PDFLATEX"; then
5257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PDFLATEX" >&5
5258 printf "%s\n" "$PDFLATEX" >&6; }
5259 else
5260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5261 printf "%s\n" "no" >&6; }
5262 fi
5263
5264
5265 if test "x$PDFLATEX" = "xno"; then
5266 as_fn_error $? "You asked to use PDFLatex but it could not be found" "$LINENO" 5
5267 else
5268 PDFDOCS="pdfdocs"
5269 fi
5270
5271 fi
5272
5273
5274
5275
5276
5277 # Check whether --with-failmalloc was given.
5278 if test ${with_failmalloc+y}
5279 then :
5280 withval=$with_failmalloc; LIBFAILMALLOC="$with_failmalloc"
5281
5282 else $as_nop
5283 with_failmalloc=no
5284 fi
5285
5286
5287 if test x$with_failmalloc != xno; then
5288 WITH_FAILMALLOC_TRUE=
5289 WITH_FAILMALLOC_FALSE='#'
5290 else
5291 WITH_FAILMALLOC_TRUE='#'
5292 WITH_FAILMALLOC_FALSE=
5293 fi
5294
5295
5296 # Check whether --enable-debug was given.
5297 if test ${enable_debug+y}
5298 then :
5299 enableval=$enable_debug;
5300 else $as_nop
5301 enable_debug=yes
5302 fi
5303
5304 if test x"$enable_debug" = x"yes"; then
5305 ENABLE_DEBUG_TRUE=
5306 ENABLE_DEBUG_FALSE='#'
5307 else
5308 ENABLE_DEBUG_TRUE='#'
5309 ENABLE_DEBUG_FALSE=
5310 fi
5311
5312 if test x"$enable_debug" = x"yes"; then
5313
5314 printf "%s\n" "#define ENABLE_DEBUG 1" >>confdefs.h
5315
5316 fi
5317
5318 LIBAUGEAS_VERSION_INFO=25:0:25
5319
5320 LIBFA_VERSION_INFO=6:3:5
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332 DEPDIR="${am__leading_dot}deps"
5333
5334 ac_config_commands="$ac_config_commands depfiles"
5335
5336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
5337 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
5338 cat > confinc.mk << 'END'
5339 am__doit:
5340 @echo this is the am__doit target >confinc.out
5341 .PHONY: am__doit
5342 END
5343 am__include="#"
5344 am__quote=
5345 # BSD make does it like this.
5346 echo '.include "confinc.mk" # ignored' > confmf.BSD
5347 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
5348 echo 'include confinc.mk # ignored' > confmf.GNU
5349 _am_result=no
5350 for s in GNU BSD; do
5351 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
5352 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
5353 ac_status=$?
5354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5355 (exit $ac_status); }
5356 case $?:`cat confinc.out 2>/dev/null` in #(
5357 '0:this is the am__doit target') :
5358 case $s in #(
5359 BSD) :
5360 am__include='.include' am__quote='"' ;; #(
5361 *) :
5362 am__include='include' am__quote='' ;;
5363 esac ;; #(
5364 *) :
5365 ;;
5366 esac
5367 if test "$am__include" != "#"; then
5368 _am_result="yes ($s style)"
5369 break
5370 fi
5371 done
5372 rm -f confinc.* confmf.*
5373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
5374 printf "%s\n" "${_am_result}" >&6; }
5375
5376 # Check whether --enable-dependency-tracking was given.
5377 if test ${enable_dependency_tracking+y}
5378 then :
5379 enableval=$enable_dependency_tracking;
5380 fi
5381
5382 if test "x$enable_dependency_tracking" != xno; then
5383 am_depcomp="$ac_aux_dir/depcomp"
5384 AMDEPBACKSLASH='\'
5385 am__nodep='_no'
5386 fi
5387 if test "x$enable_dependency_tracking" != xno; then
5388 AMDEP_TRUE=
5389 AMDEP_FALSE='#'
5390 else
5391 AMDEP_TRUE='#'
5392 AMDEP_FALSE=
5393 fi
5394
5395
5396 ac_ext=c
5397 ac_cpp='$CPP $CPPFLAGS'
5398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5401 if test -n "$ac_tool_prefix"; then
5402 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5403 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5405 printf %s "checking for $ac_word... " >&6; }
5406 if test ${ac_cv_prog_CC+y}
5407 then :
5408 printf %s "(cached) " >&6
5409 else $as_nop
5410 if test -n "$CC"; then
5411 ac_cv_prog_CC="$CC" # Let the user override the test.
5412 else
5413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5414 for as_dir in $PATH
5415 do
5416 IFS=$as_save_IFS
5417 case $as_dir in #(((
5418 '') as_dir=./ ;;
5419 */) ;;
5420 *) as_dir=$as_dir/ ;;
5421 esac
5422 for ac_exec_ext in '' $ac_executable_extensions; do
5423 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5424 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5425 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5426 break 2
5427 fi
5428 done
5429 done
5430 IFS=$as_save_IFS
5431
5432 fi
5433 fi
5434 CC=$ac_cv_prog_CC
5435 if test -n "$CC"; then
5436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5437 printf "%s\n" "$CC" >&6; }
5438 else
5439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5440 printf "%s\n" "no" >&6; }
5441 fi
5442
5443
5444 fi
5445 if test -z "$ac_cv_prog_CC"; then
5446 ac_ct_CC=$CC
5447 # Extract the first word of "gcc", so it can be a program name with args.
5448 set dummy gcc; ac_word=$2
5449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5450 printf %s "checking for $ac_word... " >&6; }
5451 if test ${ac_cv_prog_ac_ct_CC+y}
5452 then :
5453 printf %s "(cached) " >&6
5454 else $as_nop
5455 if test -n "$ac_ct_CC"; then
5456 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5457 else
5458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5459 for as_dir in $PATH
5460 do
5461 IFS=$as_save_IFS
5462 case $as_dir in #(((
5463 '') as_dir=./ ;;
5464 */) ;;
5465 *) as_dir=$as_dir/ ;;
5466 esac
5467 for ac_exec_ext in '' $ac_executable_extensions; do
5468 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5469 ac_cv_prog_ac_ct_CC="gcc"
5470 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5471 break 2
5472 fi
5473 done
5474 done
5475 IFS=$as_save_IFS
5476
5477 fi
5478 fi
5479 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5480 if test -n "$ac_ct_CC"; then
5481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5482 printf "%s\n" "$ac_ct_CC" >&6; }
5483 else
5484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5485 printf "%s\n" "no" >&6; }
5486 fi
5487
5488 if test "x$ac_ct_CC" = x; then
5489 CC=""
5490 else
5491 case $cross_compiling:$ac_tool_warned in
5492 yes:)
5493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5494 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5495 ac_tool_warned=yes ;;
5496 esac
5497 CC=$ac_ct_CC
5498 fi
5499 else
5500 CC="$ac_cv_prog_CC"
5501 fi
5502
5503 if test -z "$CC"; then
5504 if test -n "$ac_tool_prefix"; then
5505 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5506 set dummy ${ac_tool_prefix}cc; ac_word=$2
5507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5508 printf %s "checking for $ac_word... " >&6; }
5509 if test ${ac_cv_prog_CC+y}
5510 then :
5511 printf %s "(cached) " >&6
5512 else $as_nop
5513 if test -n "$CC"; then
5514 ac_cv_prog_CC="$CC" # Let the user override the test.
5515 else
5516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5517 for as_dir in $PATH
5518 do
5519 IFS=$as_save_IFS
5520 case $as_dir in #(((
5521 '') as_dir=./ ;;
5522 */) ;;
5523 *) as_dir=$as_dir/ ;;
5524 esac
5525 for ac_exec_ext in '' $ac_executable_extensions; do
5526 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5527 ac_cv_prog_CC="${ac_tool_prefix}cc"
5528 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5529 break 2
5530 fi
5531 done
5532 done
5533 IFS=$as_save_IFS
5534
5535 fi
5536 fi
5537 CC=$ac_cv_prog_CC
5538 if test -n "$CC"; then
5539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5540 printf "%s\n" "$CC" >&6; }
5541 else
5542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5543 printf "%s\n" "no" >&6; }
5544 fi
5545
5546
5547 fi
5548 fi
5549 if test -z "$CC"; then
5550 # Extract the first word of "cc", so it can be a program name with args.
5551 set dummy cc; ac_word=$2
5552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5553 printf %s "checking for $ac_word... " >&6; }
5554 if test ${ac_cv_prog_CC+y}
5555 then :
5556 printf %s "(cached) " >&6
5557 else $as_nop
5558 if test -n "$CC"; then
5559 ac_cv_prog_CC="$CC" # Let the user override the test.
5560 else
5561 ac_prog_rejected=no
5562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5563 for as_dir in $PATH
5564 do
5565 IFS=$as_save_IFS
5566 case $as_dir in #(((
5567 '') as_dir=./ ;;
5568 */) ;;
5569 *) as_dir=$as_dir/ ;;
5570 esac
5571 for ac_exec_ext in '' $ac_executable_extensions; do
5572 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5573 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5574 ac_prog_rejected=yes
5575 continue
5576 fi
5577 ac_cv_prog_CC="cc"
5578 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5579 break 2
5580 fi
5581 done
5582 done
5583 IFS=$as_save_IFS
5584
5585 if test $ac_prog_rejected = yes; then
5586 # We found a bogon in the path, so make sure we never use it.
5587 set dummy $ac_cv_prog_CC
5588 shift
5589 if test $# != 0; then
5590 # We chose a different compiler from the bogus one.
5591 # However, it has the same basename, so the bogon will be chosen
5592 # first if we set CC to just the basename; use the full file name.
5593 shift
5594 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
5595 fi
5596 fi
5597 fi
5598 fi
5599 CC=$ac_cv_prog_CC
5600 if test -n "$CC"; then
5601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5602 printf "%s\n" "$CC" >&6; }
5603 else
5604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5605 printf "%s\n" "no" >&6; }
5606 fi
5607
5608
5609 fi
5610 if test -z "$CC"; then
5611 if test -n "$ac_tool_prefix"; then
5612 for ac_prog in cl.exe
5613 do
5614 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5615 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5617 printf %s "checking for $ac_word... " >&6; }
5618 if test ${ac_cv_prog_CC+y}
5619 then :
5620 printf %s "(cached) " >&6
5621 else $as_nop
5622 if test -n "$CC"; then
5623 ac_cv_prog_CC="$CC" # Let the user override the test.
5624 else
5625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5626 for as_dir in $PATH
5627 do
5628 IFS=$as_save_IFS
5629 case $as_dir in #(((
5630 '') as_dir=./ ;;
5631 */) ;;
5632 *) as_dir=$as_dir/ ;;
5633 esac
5634 for ac_exec_ext in '' $ac_executable_extensions; do
5635 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5636 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5637 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5638 break 2
5639 fi
5640 done
5641 done
5642 IFS=$as_save_IFS
5643
5644 fi
5645 fi
5646 CC=$ac_cv_prog_CC
5647 if test -n "$CC"; then
5648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5649 printf "%s\n" "$CC" >&6; }
5650 else
5651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5652 printf "%s\n" "no" >&6; }
5653 fi
5654
5655
5656 test -n "$CC" && break
5657 done
5658 fi
5659 if test -z "$CC"; then
5660 ac_ct_CC=$CC
5661 for ac_prog in cl.exe
5662 do
5663 # Extract the first word of "$ac_prog", so it can be a program name with args.
5664 set dummy $ac_prog; ac_word=$2
5665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5666 printf %s "checking for $ac_word... " >&6; }
5667 if test ${ac_cv_prog_ac_ct_CC+y}
5668 then :
5669 printf %s "(cached) " >&6
5670 else $as_nop
5671 if test -n "$ac_ct_CC"; then
5672 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5673 else
5674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5675 for as_dir in $PATH
5676 do
5677 IFS=$as_save_IFS
5678 case $as_dir in #(((
5679 '') as_dir=./ ;;
5680 */) ;;
5681 *) as_dir=$as_dir/ ;;
5682 esac
5683 for ac_exec_ext in '' $ac_executable_extensions; do
5684 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5685 ac_cv_prog_ac_ct_CC="$ac_prog"
5686 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5687 break 2
5688 fi
5689 done
5690 done
5691 IFS=$as_save_IFS
5692
5693 fi
5694 fi
5695 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5696 if test -n "$ac_ct_CC"; then
5697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5698 printf "%s\n" "$ac_ct_CC" >&6; }
5699 else
5700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5701 printf "%s\n" "no" >&6; }
5702 fi
5703
5704
5705 test -n "$ac_ct_CC" && break
5706 done
5707
5708 if test "x$ac_ct_CC" = x; then
5709 CC=""
5710 else
5711 case $cross_compiling:$ac_tool_warned in
5712 yes:)
5713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5714 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5715 ac_tool_warned=yes ;;
5716 esac
5717 CC=$ac_ct_CC
5718 fi
5719 fi
5720
5721 fi
5722 if test -z "$CC"; then
5723 if test -n "$ac_tool_prefix"; then
5724 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
5725 set dummy ${ac_tool_prefix}clang; ac_word=$2
5726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5727 printf %s "checking for $ac_word... " >&6; }
5728 if test ${ac_cv_prog_CC+y}
5729 then :
5730 printf %s "(cached) " >&6
5731 else $as_nop
5732 if test -n "$CC"; then
5733 ac_cv_prog_CC="$CC" # Let the user override the test.
5734 else
5735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5736 for as_dir in $PATH
5737 do
5738 IFS=$as_save_IFS
5739 case $as_dir in #(((
5740 '') as_dir=./ ;;
5741 */) ;;
5742 *) as_dir=$as_dir/ ;;
5743 esac
5744 for ac_exec_ext in '' $ac_executable_extensions; do
5745 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5746 ac_cv_prog_CC="${ac_tool_prefix}clang"
5747 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5748 break 2
5749 fi
5750 done
5751 done
5752 IFS=$as_save_IFS
5753
5754 fi
5755 fi
5756 CC=$ac_cv_prog_CC
5757 if test -n "$CC"; then
5758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5759 printf "%s\n" "$CC" >&6; }
5760 else
5761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5762 printf "%s\n" "no" >&6; }
5763 fi
5764
5765
5766 fi
5767 if test -z "$ac_cv_prog_CC"; then
5768 ac_ct_CC=$CC
5769 # Extract the first word of "clang", so it can be a program name with args.
5770 set dummy clang; ac_word=$2
5771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5772 printf %s "checking for $ac_word... " >&6; }
5773 if test ${ac_cv_prog_ac_ct_CC+y}
5774 then :
5775 printf %s "(cached) " >&6
5776 else $as_nop
5777 if test -n "$ac_ct_CC"; then
5778 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5779 else
5780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5781 for as_dir in $PATH
5782 do
5783 IFS=$as_save_IFS
5784 case $as_dir in #(((
5785 '') as_dir=./ ;;
5786 */) ;;
5787 *) as_dir=$as_dir/ ;;
5788 esac
5789 for ac_exec_ext in '' $ac_executable_extensions; do
5790 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5791 ac_cv_prog_ac_ct_CC="clang"
5792 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5793 break 2
5794 fi
5795 done
5796 done
5797 IFS=$as_save_IFS
5798
5799 fi
5800 fi
5801 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5802 if test -n "$ac_ct_CC"; then
5803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5804 printf "%s\n" "$ac_ct_CC" >&6; }
5805 else
5806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5807 printf "%s\n" "no" >&6; }
5808 fi
5809
5810 if test "x$ac_ct_CC" = x; then
5811 CC=""
5812 else
5813 case $cross_compiling:$ac_tool_warned in
5814 yes:)
5815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5816 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5817 ac_tool_warned=yes ;;
5818 esac
5819 CC=$ac_ct_CC
5820 fi
5821 else
5822 CC="$ac_cv_prog_CC"
5823 fi
5824
5825 fi
5826
5827
5828 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5829 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5830 as_fn_error $? "no acceptable C compiler found in \$PATH
5831 See \`config.log' for more details" "$LINENO" 5; }
5832
5833 # Provide some information about the compiler.
5834 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5835 set X $ac_compile
5836 ac_compiler=$2
5837 for ac_option in --version -v -V -qversion -version; do
5838 { { ac_try="$ac_compiler $ac_option >&5"
5839 case "(($ac_try" in
5840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5841 *) ac_try_echo=$ac_try;;
5842 esac
5843 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5844 printf "%s\n" "$ac_try_echo"; } >&5
5845 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5846 ac_status=$?
5847 if test -s conftest.err; then
5848 sed '10a\
5849 ... rest of stderr output deleted ...
5850 10q' conftest.err >conftest.er1
5851 cat conftest.er1 >&5
5852 fi
5853 rm -f conftest.er1 conftest.err
5854 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5855 test $ac_status = 0; }
5856 done
5857
5858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5859 /* end confdefs.h. */
5860
5861 int
5862 main (void)
5863 {
5864
5865 ;
5866 return 0;
5867 }
5868 _ACEOF
5869 ac_clean_files_save=$ac_clean_files
5870 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5871 # Try to create an executable without -o first, disregard a.out.
5872 # It will help us diagnose broken compilers, and finding out an intuition
5873 # of exeext.
5874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5875 printf %s "checking whether the C compiler works... " >&6; }
5876 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5877
5878 # The possible output files:
5879 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5880
5881 ac_rmfiles=
5882 for ac_file in $ac_files
5883 do
5884 case $ac_file in
5885 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5886 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5887 esac
5888 done
5889 rm -f $ac_rmfiles
5890
5891 if { { ac_try="$ac_link_default"
5892 case "(($ac_try" in
5893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5894 *) ac_try_echo=$ac_try;;
5895 esac
5896 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5897 printf "%s\n" "$ac_try_echo"; } >&5
5898 (eval "$ac_link_default") 2>&5
5899 ac_status=$?
5900 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5901 test $ac_status = 0; }
5902 then :
5903 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5904 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5905 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5906 # so that the user can short-circuit this test for compilers unknown to
5907 # Autoconf.
5908 for ac_file in $ac_files ''
5909 do
5910 test -f "$ac_file" || continue
5911 case $ac_file in
5912 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5913 ;;
5914 [ab].out )
5915 # We found the default executable, but exeext='' is most
5916 # certainly right.
5917 break;;
5918 *.* )
5919 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
5920 then :; else
5921 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5922 fi
5923 # We set ac_cv_exeext here because the later test for it is not
5924 # safe: cross compilers may not add the suffix if given an `-o'
5925 # argument, so we may need to know it at that point already.
5926 # Even if this section looks crufty: it has the advantage of
5927 # actually working.
5928 break;;
5929 * )
5930 break;;
5931 esac
5932 done
5933 test "$ac_cv_exeext" = no && ac_cv_exeext=
5934
5935 else $as_nop
5936 ac_file=''
5937 fi
5938 if test -z "$ac_file"
5939 then :
5940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5941 printf "%s\n" "no" >&6; }
5942 printf "%s\n" "$as_me: failed program was:" >&5
5943 sed 's/^/| /' conftest.$ac_ext >&5
5944
5945 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5946 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5947 as_fn_error 77 "C compiler cannot create executables
5948 See \`config.log' for more details" "$LINENO" 5; }
5949 else $as_nop
5950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5951 printf "%s\n" "yes" >&6; }
5952 fi
5953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5954 printf %s "checking for C compiler default output file name... " >&6; }
5955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5956 printf "%s\n" "$ac_file" >&6; }
5957 ac_exeext=$ac_cv_exeext
5958
5959 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5960 ac_clean_files=$ac_clean_files_save
5961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5962 printf %s "checking for suffix of executables... " >&6; }
5963 if { { ac_try="$ac_link"
5964 case "(($ac_try" in
5965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5966 *) ac_try_echo=$ac_try;;
5967 esac
5968 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5969 printf "%s\n" "$ac_try_echo"; } >&5
5970 (eval "$ac_link") 2>&5
5971 ac_status=$?
5972 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5973 test $ac_status = 0; }
5974 then :
5975 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5976 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5977 # work properly (i.e., refer to `conftest.exe'), while it won't with
5978 # `rm'.
5979 for ac_file in conftest.exe conftest conftest.*; do
5980 test -f "$ac_file" || continue
5981 case $ac_file in
5982 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5983 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5984 break;;
5985 * ) break;;
5986 esac
5987 done
5988 else $as_nop
5989 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5990 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5991 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
5992 See \`config.log' for more details" "$LINENO" 5; }
5993 fi
5994 rm -f conftest conftest$ac_cv_exeext
5995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5996 printf "%s\n" "$ac_cv_exeext" >&6; }
5997
5998 rm -f conftest.$ac_ext
5999 EXEEXT=$ac_cv_exeext
6000 ac_exeext=$EXEEXT
6001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6002 /* end confdefs.h. */
6003 #include <stdio.h>
6004 int
6005 main (void)
6006 {
6007 FILE *f = fopen ("conftest.out", "w");
6008 return ferror (f) || fclose (f) != 0;
6009
6010 ;
6011 return 0;
6012 }
6013 _ACEOF
6014 ac_clean_files="$ac_clean_files conftest.out"
6015 # Check that the compiler produces executables we can run. If not, either
6016 # the compiler is broken, or we cross compile.
6017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
6018 printf %s "checking whether we are cross compiling... " >&6; }
6019 if test "$cross_compiling" != yes; then
6020 { { ac_try="$ac_link"
6021 case "(($ac_try" in
6022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6023 *) ac_try_echo=$ac_try;;
6024 esac
6025 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6026 printf "%s\n" "$ac_try_echo"; } >&5
6027 (eval "$ac_link") 2>&5
6028 ac_status=$?
6029 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6030 test $ac_status = 0; }
6031 if { ac_try='./conftest$ac_cv_exeext'
6032 { { case "(($ac_try" in
6033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6034 *) ac_try_echo=$ac_try;;
6035 esac
6036 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6037 printf "%s\n" "$ac_try_echo"; } >&5
6038 (eval "$ac_try") 2>&5
6039 ac_status=$?
6040 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6041 test $ac_status = 0; }; }; then
6042 cross_compiling=no
6043 else
6044 if test "$cross_compiling" = maybe; then
6045 cross_compiling=yes
6046 else
6047 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6048 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6049 as_fn_error 77 "cannot run C compiled programs.
6050 If you meant to cross compile, use \`--host'.
6051 See \`config.log' for more details" "$LINENO" 5; }
6052 fi
6053 fi
6054 fi
6055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
6056 printf "%s\n" "$cross_compiling" >&6; }
6057
6058 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
6059 ac_clean_files=$ac_clean_files_save
6060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
6061 printf %s "checking for suffix of object files... " >&6; }
6062 if test ${ac_cv_objext+y}
6063 then :
6064 printf %s "(cached) " >&6
6065 else $as_nop
6066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6067 /* end confdefs.h. */
6068
6069 int
6070 main (void)
6071 {
6072
6073 ;
6074 return 0;
6075 }
6076 _ACEOF
6077 rm -f conftest.o conftest.obj
6078 if { { ac_try="$ac_compile"
6079 case "(($ac_try" in
6080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6081 *) ac_try_echo=$ac_try;;
6082 esac
6083 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6084 printf "%s\n" "$ac_try_echo"; } >&5
6085 (eval "$ac_compile") 2>&5
6086 ac_status=$?
6087 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6088 test $ac_status = 0; }
6089 then :
6090 for ac_file in conftest.o conftest.obj conftest.*; do
6091 test -f "$ac_file" || continue;
6092 case $ac_file in
6093 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
6094 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
6095 break;;
6096 esac
6097 done
6098 else $as_nop
6099 printf "%s\n" "$as_me: failed program was:" >&5
6100 sed 's/^/| /' conftest.$ac_ext >&5
6101
6102 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6103 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6104 as_fn_error $? "cannot compute suffix of object files: cannot compile
6105 See \`config.log' for more details" "$LINENO" 5; }
6106 fi
6107 rm -f conftest.$ac_cv_objext conftest.$ac_ext
6108 fi
6109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
6110 printf "%s\n" "$ac_cv_objext" >&6; }
6111 OBJEXT=$ac_cv_objext
6112 ac_objext=$OBJEXT
6113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
6114 printf %s "checking whether the compiler supports GNU C... " >&6; }
6115 if test ${ac_cv_c_compiler_gnu+y}
6116 then :
6117 printf %s "(cached) " >&6
6118 else $as_nop
6119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6120 /* end confdefs.h. */
6121
6122 int
6123 main (void)
6124 {
6125 #ifndef __GNUC__
6126 choke me
6127 #endif
6128
6129 ;
6130 return 0;
6131 }
6132 _ACEOF
6133 if ac_fn_c_try_compile "$LINENO"
6134 then :
6135 ac_compiler_gnu=yes
6136 else $as_nop
6137 ac_compiler_gnu=no
6138 fi
6139 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6140 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6141
6142 fi
6143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6144 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
6145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6146
6147 if test $ac_compiler_gnu = yes; then
6148 GCC=yes
6149 else
6150 GCC=
6151 fi
6152 ac_test_CFLAGS=${CFLAGS+y}
6153 ac_save_CFLAGS=$CFLAGS
6154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6155 printf %s "checking whether $CC accepts -g... " >&6; }
6156 if test ${ac_cv_prog_cc_g+y}
6157 then :
6158 printf %s "(cached) " >&6
6159 else $as_nop
6160 ac_save_c_werror_flag=$ac_c_werror_flag
6161 ac_c_werror_flag=yes
6162 ac_cv_prog_cc_g=no
6163 CFLAGS="-g"
6164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6165 /* end confdefs.h. */
6166
6167 int
6168 main (void)
6169 {
6170
6171 ;
6172 return 0;
6173 }
6174 _ACEOF
6175 if ac_fn_c_try_compile "$LINENO"
6176 then :
6177 ac_cv_prog_cc_g=yes
6178 else $as_nop
6179 CFLAGS=""
6180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6181 /* end confdefs.h. */
6182
6183 int
6184 main (void)
6185 {
6186
6187 ;
6188 return 0;
6189 }
6190 _ACEOF
6191 if ac_fn_c_try_compile "$LINENO"
6192 then :
6193
6194 else $as_nop
6195 ac_c_werror_flag=$ac_save_c_werror_flag
6196 CFLAGS="-g"
6197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6198 /* end confdefs.h. */
6199
6200 int
6201 main (void)
6202 {
6203
6204 ;
6205 return 0;
6206 }
6207 _ACEOF
6208 if ac_fn_c_try_compile "$LINENO"
6209 then :
6210 ac_cv_prog_cc_g=yes
6211 fi
6212 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6213 fi
6214 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6215 fi
6216 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6217 ac_c_werror_flag=$ac_save_c_werror_flag
6218 fi
6219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6220 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
6221 if test $ac_test_CFLAGS; then
6222 CFLAGS=$ac_save_CFLAGS
6223 elif test $ac_cv_prog_cc_g = yes; then
6224 if test "$GCC" = yes; then
6225 CFLAGS="-g -O2"
6226 else
6227 CFLAGS="-g"
6228 fi
6229 else
6230 if test "$GCC" = yes; then
6231 CFLAGS="-O2"
6232 else
6233 CFLAGS=
6234 fi
6235 fi
6236 ac_prog_cc_stdc=no
6237 if test x$ac_prog_cc_stdc = xno
6238 then :
6239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
6240 printf %s "checking for $CC option to enable C11 features... " >&6; }
6241 if test ${ac_cv_prog_cc_c11+y}
6242 then :
6243 printf %s "(cached) " >&6
6244 else $as_nop
6245 ac_cv_prog_cc_c11=no
6246 ac_save_CC=$CC
6247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6248 /* end confdefs.h. */
6249 $ac_c_conftest_c11_program
6250 _ACEOF
6251 for ac_arg in '' -std=gnu11
6252 do
6253 CC="$ac_save_CC $ac_arg"
6254 if ac_fn_c_try_compile "$LINENO"
6255 then :
6256 ac_cv_prog_cc_c11=$ac_arg
6257 fi
6258 rm -f core conftest.err conftest.$ac_objext conftest.beam
6259 test "x$ac_cv_prog_cc_c11" != "xno" && break
6260 done
6261 rm -f conftest.$ac_ext
6262 CC=$ac_save_CC
6263 fi
6264
6265 if test "x$ac_cv_prog_cc_c11" = xno
6266 then :
6267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6268 printf "%s\n" "unsupported" >&6; }
6269 else $as_nop
6270 if test "x$ac_cv_prog_cc_c11" = x
6271 then :
6272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6273 printf "%s\n" "none needed" >&6; }
6274 else $as_nop
6275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
6276 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
6277 CC="$CC $ac_cv_prog_cc_c11"
6278 fi
6279 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
6280 ac_prog_cc_stdc=c11
6281 fi
6282 fi
6283 if test x$ac_prog_cc_stdc = xno
6284 then :
6285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
6286 printf %s "checking for $CC option to enable C99 features... " >&6; }
6287 if test ${ac_cv_prog_cc_c99+y}
6288 then :
6289 printf %s "(cached) " >&6
6290 else $as_nop
6291 ac_cv_prog_cc_c99=no
6292 ac_save_CC=$CC
6293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6294 /* end confdefs.h. */
6295 $ac_c_conftest_c99_program
6296 _ACEOF
6297 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
6298 do
6299 CC="$ac_save_CC $ac_arg"
6300 if ac_fn_c_try_compile "$LINENO"
6301 then :
6302 ac_cv_prog_cc_c99=$ac_arg
6303 fi
6304 rm -f core conftest.err conftest.$ac_objext conftest.beam
6305 test "x$ac_cv_prog_cc_c99" != "xno" && break
6306 done
6307 rm -f conftest.$ac_ext
6308 CC=$ac_save_CC
6309 fi
6310
6311 if test "x$ac_cv_prog_cc_c99" = xno
6312 then :
6313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6314 printf "%s\n" "unsupported" >&6; }
6315 else $as_nop
6316 if test "x$ac_cv_prog_cc_c99" = x
6317 then :
6318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6319 printf "%s\n" "none needed" >&6; }
6320 else $as_nop
6321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6322 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
6323 CC="$CC $ac_cv_prog_cc_c99"
6324 fi
6325 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6326 ac_prog_cc_stdc=c99
6327 fi
6328 fi
6329 if test x$ac_prog_cc_stdc = xno
6330 then :
6331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
6332 printf %s "checking for $CC option to enable C89 features... " >&6; }
6333 if test ${ac_cv_prog_cc_c89+y}
6334 then :
6335 printf %s "(cached) " >&6
6336 else $as_nop
6337 ac_cv_prog_cc_c89=no
6338 ac_save_CC=$CC
6339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6340 /* end confdefs.h. */
6341 $ac_c_conftest_c89_program
6342 _ACEOF
6343 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6344 do
6345 CC="$ac_save_CC $ac_arg"
6346 if ac_fn_c_try_compile "$LINENO"
6347 then :
6348 ac_cv_prog_cc_c89=$ac_arg
6349 fi
6350 rm -f core conftest.err conftest.$ac_objext conftest.beam
6351 test "x$ac_cv_prog_cc_c89" != "xno" && break
6352 done
6353 rm -f conftest.$ac_ext
6354 CC=$ac_save_CC
6355 fi
6356
6357 if test "x$ac_cv_prog_cc_c89" = xno
6358 then :
6359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6360 printf "%s\n" "unsupported" >&6; }
6361 else $as_nop
6362 if test "x$ac_cv_prog_cc_c89" = x
6363 then :
6364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6365 printf "%s\n" "none needed" >&6; }
6366 else $as_nop
6367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6368 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
6369 CC="$CC $ac_cv_prog_cc_c89"
6370 fi
6371 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6372 ac_prog_cc_stdc=c89
6373 fi
6374 fi
6375
6376 ac_ext=c
6377 ac_cpp='$CPP $CPPFLAGS'
6378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6381
6382
6383 ac_ext=c
6384 ac_cpp='$CPP $CPPFLAGS'
6385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6389 printf %s "checking whether $CC understands -c and -o together... " >&6; }
6390 if test ${am_cv_prog_cc_c_o+y}
6391 then :
6392 printf %s "(cached) " >&6
6393 else $as_nop
6394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6395 /* end confdefs.h. */
6396
6397 int
6398 main (void)
6399 {
6400
6401 ;
6402 return 0;
6403 }
6404 _ACEOF
6405 # Make sure it works both with $CC and with simple cc.
6406 # Following AC_PROG_CC_C_O, we do the test twice because some
6407 # compilers refuse to overwrite an existing .o file with -o,
6408 # though they will create one.
6409 am_cv_prog_cc_c_o=yes
6410 for am_i in 1 2; do
6411 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6412 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6413 ac_status=$?
6414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6415 (exit $ac_status); } \
6416 && test -f conftest2.$ac_objext; then
6417 : OK
6418 else
6419 am_cv_prog_cc_c_o=no
6420 break
6421 fi
6422 done
6423 rm -f core conftest*
6424 unset am_i
6425 fi
6426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6427 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
6428 if test "$am_cv_prog_cc_c_o" != yes; then
6429 # Losing compiler, so override with the script.
6430 # FIXME: It is wrong to rewrite CC.
6431 # But if we don't then we get into trouble of one sort or another.
6432 # A longer-term fix would be to have automake use am__CC in this case,
6433 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6434 CC="$am_aux_dir/compile $CC"
6435 fi
6436 ac_ext=c
6437 ac_cpp='$CPP $CPPFLAGS'
6438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6441
6442
6443
6444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler is clang" >&5
6445 printf %s "checking whether the compiler is clang... " >&6; }
6446 if test ${gl_cv_compiler_clang+y}
6447 then :
6448 printf %s "(cached) " >&6
6449 else $as_nop
6450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6451 /* end confdefs.h. */
6452
6453 #ifdef __clang__
6454 barfbarf
6455 #endif
6456
6457 int
6458 main (void)
6459 {
6460
6461 ;
6462 return 0;
6463 }
6464
6465 _ACEOF
6466 if ac_fn_c_try_compile "$LINENO"
6467 then :
6468 gl_cv_compiler_clang=no
6469 else $as_nop
6470 gl_cv_compiler_clang=yes
6471 fi
6472 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6473
6474 fi
6475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_compiler_clang" >&5
6476 printf "%s\n" "$gl_cv_compiler_clang" >&6; }
6477
6478
6479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compiler option needed when checking for declarations" >&5
6480 printf %s "checking for compiler option needed when checking for declarations... " >&6; }
6481 if test ${gl_cv_compiler_check_decl_option+y}
6482 then :
6483 printf %s "(cached) " >&6
6484 else $as_nop
6485 if test $gl_cv_compiler_clang = yes; then
6486 save_ac_compile="$ac_compile"
6487 ac_compile="$ac_compile -Werror=implicit-function-declaration"
6488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6489 /* end confdefs.h. */
6490
6491 int
6492 main (void)
6493 {
6494
6495 ;
6496 return 0;
6497 }
6498 _ACEOF
6499 if ac_fn_c_try_compile "$LINENO"
6500 then :
6501 gl_cv_compiler_check_decl_option='-Werror=implicit-function-declaration'
6502 else $as_nop
6503 gl_cv_compiler_check_decl_option=none
6504 fi
6505 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6506 ac_compile="$save_ac_compile"
6507 else
6508 gl_cv_compiler_check_decl_option=none
6509 fi
6510
6511 fi
6512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_compiler_check_decl_option" >&5
6513 printf "%s\n" "$gl_cv_compiler_check_decl_option" >&6; }
6514 if test "x$gl_cv_compiler_check_decl_option" != xnone; then
6515 ac_compile_for_check_decl="$ac_compile $gl_cv_compiler_check_decl_option"
6516 else
6517 ac_compile_for_check_decl="$ac_compile"
6518 fi
6519
6520
6521 depcc="$CC" am_compiler_list=
6522
6523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6524 printf %s "checking dependency style of $depcc... " >&6; }
6525 if test ${am_cv_CC_dependencies_compiler_type+y}
6526 then :
6527 printf %s "(cached) " >&6
6528 else $as_nop
6529 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6530 # We make a subdir and do the tests there. Otherwise we can end up
6531 # making bogus files that we don't know about and never remove. For
6532 # instance it was reported that on HP-UX the gcc test will end up
6533 # making a dummy file named 'D' -- because '-MD' means "put the output
6534 # in D".
6535 rm -rf conftest.dir
6536 mkdir conftest.dir
6537 # Copy depcomp to subdir because otherwise we won't find it if we're
6538 # using a relative directory.
6539 cp "$am_depcomp" conftest.dir
6540 cd conftest.dir
6541 # We will build objects and dependencies in a subdirectory because
6542 # it helps to detect inapplicable dependency modes. For instance
6543 # both Tru64's cc and ICC support -MD to output dependencies as a
6544 # side effect of compilation, but ICC will put the dependencies in
6545 # the current directory while Tru64 will put them in the object
6546 # directory.
6547 mkdir sub
6548
6549 am_cv_CC_dependencies_compiler_type=none
6550 if test "$am_compiler_list" = ""; then
6551 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6552 fi
6553 am__universal=false
6554 case " $depcc " in #(
6555 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6556 esac
6557
6558 for depmode in $am_compiler_list; do
6559 # Setup a source with many dependencies, because some compilers
6560 # like to wrap large dependency lists on column 80 (with \), and
6561 # we should not choose a depcomp mode which is confused by this.
6562 #
6563 # We need to recreate these files for each test, as the compiler may
6564 # overwrite some of them when testing with obscure command lines.
6565 # This happens at least with the AIX C compiler.
6566 : > sub/conftest.c
6567 for i in 1 2 3 4 5 6; do
6568 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6569 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6570 # Solaris 10 /bin/sh.
6571 echo '/* dummy */' > sub/conftst$i.h
6572 done
6573 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6574
6575 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6576 # mode. It turns out that the SunPro C++ compiler does not properly
6577 # handle '-M -o', and we need to detect this. Also, some Intel
6578 # versions had trouble with output in subdirs.
6579 am__obj=sub/conftest.${OBJEXT-o}
6580 am__minus_obj="-o $am__obj"
6581 case $depmode in
6582 gcc)
6583 # This depmode causes a compiler race in universal mode.
6584 test "$am__universal" = false || continue
6585 ;;
6586 nosideeffect)
6587 # After this tag, mechanisms are not by side-effect, so they'll
6588 # only be used when explicitly requested.
6589 if test "x$enable_dependency_tracking" = xyes; then
6590 continue
6591 else
6592 break
6593 fi
6594 ;;
6595 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6596 # This compiler won't grok '-c -o', but also, the minuso test has
6597 # not run yet. These depmodes are late enough in the game, and
6598 # so weak that their functioning should not be impacted.
6599 am__obj=conftest.${OBJEXT-o}
6600 am__minus_obj=
6601 ;;
6602 none) break ;;
6603 esac
6604 if depmode=$depmode \
6605 source=sub/conftest.c object=$am__obj \
6606 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6607 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6608 >/dev/null 2>conftest.err &&
6609 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6610 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6611 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6612 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6613 # icc doesn't choke on unknown options, it will just issue warnings
6614 # or remarks (even with -Werror). So we grep stderr for any message
6615 # that says an option was ignored or not supported.
6616 # When given -MP, icc 7.0 and 7.1 complain thusly:
6617 # icc: Command line warning: ignoring option '-M'; no argument required
6618 # The diagnosis changed in icc 8.0:
6619 # icc: Command line remark: option '-MP' not supported
6620 if (grep 'ignoring option' conftest.err ||
6621 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6622 am_cv_CC_dependencies_compiler_type=$depmode
6623 break
6624 fi
6625 fi
6626 done
6627
6628 cd ..
6629 rm -rf conftest.dir
6630 else
6631 am_cv_CC_dependencies_compiler_type=none
6632 fi
6633
6634 fi
6635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6636 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
6637 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6638
6639 if
6640 test "x$enable_dependency_tracking" != xno \
6641 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6642 am__fastdepCC_TRUE=
6643 am__fastdepCC_FALSE='#'
6644 else
6645 am__fastdepCC_TRUE='#'
6646 am__fastdepCC_FALSE=
6647 fi
6648
6649
6650
6651 ac_header= ac_cache=
6652 for ac_item in $ac_header_c_list
6653 do
6654 if test $ac_cache; then
6655 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
6656 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
6657 printf "%s\n" "#define $ac_item 1" >> confdefs.h
6658 fi
6659 ac_header= ac_cache=
6660 elif test $ac_header; then
6661 ac_cache=$ac_item
6662 else
6663 ac_header=$ac_item
6664 fi
6665 done
6666
6667
6668
6669
6670
6671
6672
6673
6674 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
6675 then :
6676
6677 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
6678
6679 fi
6680
6681
6682
6683
6684
6685
6686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6687 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6688 if test ${ac_cv_safe_to_define___extensions__+y}
6689 then :
6690 printf %s "(cached) " >&6
6691 else $as_nop
6692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6693 /* end confdefs.h. */
6694
6695 # define __EXTENSIONS__ 1
6696 $ac_includes_default
6697 int
6698 main (void)
6699 {
6700
6701 ;
6702 return 0;
6703 }
6704 _ACEOF
6705 if ac_fn_c_try_compile "$LINENO"
6706 then :
6707 ac_cv_safe_to_define___extensions__=yes
6708 else $as_nop
6709 ac_cv_safe_to_define___extensions__=no
6710 fi
6711 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6712 fi
6713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6714 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
6715
6716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
6717 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
6718 if test ${ac_cv_should_define__xopen_source+y}
6719 then :
6720 printf %s "(cached) " >&6
6721 else $as_nop
6722 ac_cv_should_define__xopen_source=no
6723 if test $ac_cv_header_wchar_h = yes
6724 then :
6725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6726 /* end confdefs.h. */
6727
6728 #include <wchar.h>
6729 mbstate_t x;
6730 int
6731 main (void)
6732 {
6733
6734 ;
6735 return 0;
6736 }
6737 _ACEOF
6738 if ac_fn_c_try_compile "$LINENO"
6739 then :
6740
6741 else $as_nop
6742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6743 /* end confdefs.h. */
6744
6745 #define _XOPEN_SOURCE 500
6746 #include <wchar.h>
6747 mbstate_t x;
6748 int
6749 main (void)
6750 {
6751
6752 ;
6753 return 0;
6754 }
6755 _ACEOF
6756 if ac_fn_c_try_compile "$LINENO"
6757 then :
6758 ac_cv_should_define__xopen_source=yes
6759 fi
6760 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6761 fi
6762 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6763 fi
6764 fi
6765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
6766 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
6767
6768 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
6769
6770 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6771
6772 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
6773
6774 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
6775
6776 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
6777
6778 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
6779
6780 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6781
6782 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
6783
6784 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
6785
6786 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
6787
6788 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
6789
6790 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
6791
6792 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
6793
6794 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
6795
6796 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
6797
6798 if test $ac_cv_header_minix_config_h = yes
6799 then :
6800 MINIX=yes
6801 printf "%s\n" "#define _MINIX 1" >>confdefs.h
6802
6803 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
6804
6805 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
6806
6807 else $as_nop
6808 MINIX=
6809 fi
6810 if test $ac_cv_safe_to_define___extensions__ = yes
6811 then :
6812 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
6813
6814 fi
6815 if test $ac_cv_should_define__xopen_source = yes
6816 then :
6817 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
6818
6819 fi
6820
6821
6822
6823 ac_ext=c
6824 ac_cpp='$CPP $CPPFLAGS'
6825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6828 if test -n "$ac_tool_prefix"; then
6829 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
6830 set dummy ${ac_tool_prefix}gcc; ac_word=$2
6831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6832 printf %s "checking for $ac_word... " >&6; }
6833 if test ${ac_cv_prog_CC+y}
6834 then :
6835 printf %s "(cached) " >&6
6836 else $as_nop
6837 if test -n "$CC"; then
6838 ac_cv_prog_CC="$CC" # Let the user override the test.
6839 else
6840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6841 for as_dir in $PATH
6842 do
6843 IFS=$as_save_IFS
6844 case $as_dir in #(((
6845 '') as_dir=./ ;;
6846 */) ;;
6847 *) as_dir=$as_dir/ ;;
6848 esac
6849 for ac_exec_ext in '' $ac_executable_extensions; do
6850 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6851 ac_cv_prog_CC="${ac_tool_prefix}gcc"
6852 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6853 break 2
6854 fi
6855 done
6856 done
6857 IFS=$as_save_IFS
6858
6859 fi
6860 fi
6861 CC=$ac_cv_prog_CC
6862 if test -n "$CC"; then
6863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6864 printf "%s\n" "$CC" >&6; }
6865 else
6866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6867 printf "%s\n" "no" >&6; }
6868 fi
6869
6870
6871 fi
6872 if test -z "$ac_cv_prog_CC"; then
6873 ac_ct_CC=$CC
6874 # Extract the first word of "gcc", so it can be a program name with args.
6875 set dummy gcc; ac_word=$2
6876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6877 printf %s "checking for $ac_word... " >&6; }
6878 if test ${ac_cv_prog_ac_ct_CC+y}
6879 then :
6880 printf %s "(cached) " >&6
6881 else $as_nop
6882 if test -n "$ac_ct_CC"; then
6883 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6884 else
6885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6886 for as_dir in $PATH
6887 do
6888 IFS=$as_save_IFS
6889 case $as_dir in #(((
6890 '') as_dir=./ ;;
6891 */) ;;
6892 *) as_dir=$as_dir/ ;;
6893 esac
6894 for ac_exec_ext in '' $ac_executable_extensions; do
6895 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6896 ac_cv_prog_ac_ct_CC="gcc"
6897 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6898 break 2
6899 fi
6900 done
6901 done
6902 IFS=$as_save_IFS
6903
6904 fi
6905 fi
6906 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6907 if test -n "$ac_ct_CC"; then
6908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6909 printf "%s\n" "$ac_ct_CC" >&6; }
6910 else
6911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6912 printf "%s\n" "no" >&6; }
6913 fi
6914
6915 if test "x$ac_ct_CC" = x; then
6916 CC=""
6917 else
6918 case $cross_compiling:$ac_tool_warned in
6919 yes:)
6920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6921 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6922 ac_tool_warned=yes ;;
6923 esac
6924 CC=$ac_ct_CC
6925 fi
6926 else
6927 CC="$ac_cv_prog_CC"
6928 fi
6929
6930 if test -z "$CC"; then
6931 if test -n "$ac_tool_prefix"; then
6932 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6933 set dummy ${ac_tool_prefix}cc; ac_word=$2
6934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6935 printf %s "checking for $ac_word... " >&6; }
6936 if test ${ac_cv_prog_CC+y}
6937 then :
6938 printf %s "(cached) " >&6
6939 else $as_nop
6940 if test -n "$CC"; then
6941 ac_cv_prog_CC="$CC" # Let the user override the test.
6942 else
6943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6944 for as_dir in $PATH
6945 do
6946 IFS=$as_save_IFS
6947 case $as_dir in #(((
6948 '') as_dir=./ ;;
6949 */) ;;
6950 *) as_dir=$as_dir/ ;;
6951 esac
6952 for ac_exec_ext in '' $ac_executable_extensions; do
6953 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6954 ac_cv_prog_CC="${ac_tool_prefix}cc"
6955 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6956 break 2
6957 fi
6958 done
6959 done
6960 IFS=$as_save_IFS
6961
6962 fi
6963 fi
6964 CC=$ac_cv_prog_CC
6965 if test -n "$CC"; then
6966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6967 printf "%s\n" "$CC" >&6; }
6968 else
6969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6970 printf "%s\n" "no" >&6; }
6971 fi
6972
6973
6974 fi
6975 fi
6976 if test -z "$CC"; then
6977 # Extract the first word of "cc", so it can be a program name with args.
6978 set dummy cc; ac_word=$2
6979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6980 printf %s "checking for $ac_word... " >&6; }
6981 if test ${ac_cv_prog_CC+y}
6982 then :
6983 printf %s "(cached) " >&6
6984 else $as_nop
6985 if test -n "$CC"; then
6986 ac_cv_prog_CC="$CC" # Let the user override the test.
6987 else
6988 ac_prog_rejected=no
6989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6990 for as_dir in $PATH
6991 do
6992 IFS=$as_save_IFS
6993 case $as_dir in #(((
6994 '') as_dir=./ ;;
6995 */) ;;
6996 *) as_dir=$as_dir/ ;;
6997 esac
6998 for ac_exec_ext in '' $ac_executable_extensions; do
6999 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7000 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
7001 ac_prog_rejected=yes
7002 continue
7003 fi
7004 ac_cv_prog_CC="cc"
7005 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7006 break 2
7007 fi
7008 done
7009 done
7010 IFS=$as_save_IFS
7011
7012 if test $ac_prog_rejected = yes; then
7013 # We found a bogon in the path, so make sure we never use it.
7014 set dummy $ac_cv_prog_CC
7015 shift
7016 if test $# != 0; then
7017 # We chose a different compiler from the bogus one.
7018 # However, it has the same basename, so the bogon will be chosen
7019 # first if we set CC to just the basename; use the full file name.
7020 shift
7021 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
7022 fi
7023 fi
7024 fi
7025 fi
7026 CC=$ac_cv_prog_CC
7027 if test -n "$CC"; then
7028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7029 printf "%s\n" "$CC" >&6; }
7030 else
7031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7032 printf "%s\n" "no" >&6; }
7033 fi
7034
7035
7036 fi
7037 if test -z "$CC"; then
7038 if test -n "$ac_tool_prefix"; then
7039 for ac_prog in cl.exe
7040 do
7041 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7042 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7044 printf %s "checking for $ac_word... " >&6; }
7045 if test ${ac_cv_prog_CC+y}
7046 then :
7047 printf %s "(cached) " >&6
7048 else $as_nop
7049 if test -n "$CC"; then
7050 ac_cv_prog_CC="$CC" # Let the user override the test.
7051 else
7052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7053 for as_dir in $PATH
7054 do
7055 IFS=$as_save_IFS
7056 case $as_dir in #(((
7057 '') as_dir=./ ;;
7058 */) ;;
7059 *) as_dir=$as_dir/ ;;
7060 esac
7061 for ac_exec_ext in '' $ac_executable_extensions; do
7062 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7063 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
7064 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7065 break 2
7066 fi
7067 done
7068 done
7069 IFS=$as_save_IFS
7070
7071 fi
7072 fi
7073 CC=$ac_cv_prog_CC
7074 if test -n "$CC"; then
7075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7076 printf "%s\n" "$CC" >&6; }
7077 else
7078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7079 printf "%s\n" "no" >&6; }
7080 fi
7081
7082
7083 test -n "$CC" && break
7084 done
7085 fi
7086 if test -z "$CC"; then
7087 ac_ct_CC=$CC
7088 for ac_prog in cl.exe
7089 do
7090 # Extract the first word of "$ac_prog", so it can be a program name with args.
7091 set dummy $ac_prog; ac_word=$2
7092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7093 printf %s "checking for $ac_word... " >&6; }
7094 if test ${ac_cv_prog_ac_ct_CC+y}
7095 then :
7096 printf %s "(cached) " >&6
7097 else $as_nop
7098 if test -n "$ac_ct_CC"; then
7099 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7100 else
7101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7102 for as_dir in $PATH
7103 do
7104 IFS=$as_save_IFS
7105 case $as_dir in #(((
7106 '') as_dir=./ ;;
7107 */) ;;
7108 *) as_dir=$as_dir/ ;;
7109 esac
7110 for ac_exec_ext in '' $ac_executable_extensions; do
7111 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7112 ac_cv_prog_ac_ct_CC="$ac_prog"
7113 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7114 break 2
7115 fi
7116 done
7117 done
7118 IFS=$as_save_IFS
7119
7120 fi
7121 fi
7122 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7123 if test -n "$ac_ct_CC"; then
7124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
7125 printf "%s\n" "$ac_ct_CC" >&6; }
7126 else
7127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7128 printf "%s\n" "no" >&6; }
7129 fi
7130
7131
7132 test -n "$ac_ct_CC" && break
7133 done
7134
7135 if test "x$ac_ct_CC" = x; then
7136 CC=""
7137 else
7138 case $cross_compiling:$ac_tool_warned in
7139 yes:)
7140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7141 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7142 ac_tool_warned=yes ;;
7143 esac
7144 CC=$ac_ct_CC
7145 fi
7146 fi
7147
7148 fi
7149 if test -z "$CC"; then
7150 if test -n "$ac_tool_prefix"; then
7151 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
7152 set dummy ${ac_tool_prefix}clang; ac_word=$2
7153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7154 printf %s "checking for $ac_word... " >&6; }
7155 if test ${ac_cv_prog_CC+y}
7156 then :
7157 printf %s "(cached) " >&6
7158 else $as_nop
7159 if test -n "$CC"; then
7160 ac_cv_prog_CC="$CC" # Let the user override the test.
7161 else
7162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7163 for as_dir in $PATH
7164 do
7165 IFS=$as_save_IFS
7166 case $as_dir in #(((
7167 '') as_dir=./ ;;
7168 */) ;;
7169 *) as_dir=$as_dir/ ;;
7170 esac
7171 for ac_exec_ext in '' $ac_executable_extensions; do
7172 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7173 ac_cv_prog_CC="${ac_tool_prefix}clang"
7174 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7175 break 2
7176 fi
7177 done
7178 done
7179 IFS=$as_save_IFS
7180
7181 fi
7182 fi
7183 CC=$ac_cv_prog_CC
7184 if test -n "$CC"; then
7185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7186 printf "%s\n" "$CC" >&6; }
7187 else
7188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7189 printf "%s\n" "no" >&6; }
7190 fi
7191
7192
7193 fi
7194 if test -z "$ac_cv_prog_CC"; then
7195 ac_ct_CC=$CC
7196 # Extract the first word of "clang", so it can be a program name with args.
7197 set dummy clang; ac_word=$2
7198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7199 printf %s "checking for $ac_word... " >&6; }
7200 if test ${ac_cv_prog_ac_ct_CC+y}
7201 then :
7202 printf %s "(cached) " >&6
7203 else $as_nop
7204 if test -n "$ac_ct_CC"; then
7205 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7206 else
7207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7208 for as_dir in $PATH
7209 do
7210 IFS=$as_save_IFS
7211 case $as_dir in #(((
7212 '') as_dir=./ ;;
7213 */) ;;
7214 *) as_dir=$as_dir/ ;;
7215 esac
7216 for ac_exec_ext in '' $ac_executable_extensions; do
7217 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7218 ac_cv_prog_ac_ct_CC="clang"
7219 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7220 break 2
7221 fi
7222 done
7223 done
7224 IFS=$as_save_IFS
7225
7226 fi
7227 fi
7228 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7229 if test -n "$ac_ct_CC"; then
7230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
7231 printf "%s\n" "$ac_ct_CC" >&6; }
7232 else
7233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7234 printf "%s\n" "no" >&6; }
7235 fi
7236
7237 if test "x$ac_ct_CC" = x; then
7238 CC=""
7239 else
7240 case $cross_compiling:$ac_tool_warned in
7241 yes:)
7242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7243 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7244 ac_tool_warned=yes ;;
7245 esac
7246 CC=$ac_ct_CC
7247 fi
7248 else
7249 CC="$ac_cv_prog_CC"
7250 fi
7251
7252 fi
7253
7254
7255 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7256 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7257 as_fn_error $? "no acceptable C compiler found in \$PATH
7258 See \`config.log' for more details" "$LINENO" 5; }
7259
7260 # Provide some information about the compiler.
7261 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
7262 set X $ac_compile
7263 ac_compiler=$2
7264 for ac_option in --version -v -V -qversion -version; do
7265 { { ac_try="$ac_compiler $ac_option >&5"
7266 case "(($ac_try" in
7267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7268 *) ac_try_echo=$ac_try;;
7269 esac
7270 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7271 printf "%s\n" "$ac_try_echo"; } >&5
7272 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7273 ac_status=$?
7274 if test -s conftest.err; then
7275 sed '10a\
7276 ... rest of stderr output deleted ...
7277 10q' conftest.err >conftest.er1
7278 cat conftest.er1 >&5
7279 fi
7280 rm -f conftest.er1 conftest.err
7281 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7282 test $ac_status = 0; }
7283 done
7284
7285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
7286 printf %s "checking whether the compiler supports GNU C... " >&6; }
7287 if test ${ac_cv_c_compiler_gnu+y}
7288 then :
7289 printf %s "(cached) " >&6
7290 else $as_nop
7291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7292 /* end confdefs.h. */
7293
7294 int
7295 main (void)
7296 {
7297 #ifndef __GNUC__
7298 choke me
7299 #endif
7300
7301 ;
7302 return 0;
7303 }
7304 _ACEOF
7305 if ac_fn_c_try_compile "$LINENO"
7306 then :
7307 ac_compiler_gnu=yes
7308 else $as_nop
7309 ac_compiler_gnu=no
7310 fi
7311 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7312 ac_cv_c_compiler_gnu=$ac_compiler_gnu
7313
7314 fi
7315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
7316 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
7317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7318
7319 if test $ac_compiler_gnu = yes; then
7320 GCC=yes
7321 else
7322 GCC=
7323 fi
7324 ac_test_CFLAGS=${CFLAGS+y}
7325 ac_save_CFLAGS=$CFLAGS
7326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
7327 printf %s "checking whether $CC accepts -g... " >&6; }
7328 if test ${ac_cv_prog_cc_g+y}
7329 then :
7330 printf %s "(cached) " >&6
7331 else $as_nop
7332 ac_save_c_werror_flag=$ac_c_werror_flag
7333 ac_c_werror_flag=yes
7334 ac_cv_prog_cc_g=no
7335 CFLAGS="-g"
7336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7337 /* end confdefs.h. */
7338
7339 int
7340 main (void)
7341 {
7342
7343 ;
7344 return 0;
7345 }
7346 _ACEOF
7347 if ac_fn_c_try_compile "$LINENO"
7348 then :
7349 ac_cv_prog_cc_g=yes
7350 else $as_nop
7351 CFLAGS=""
7352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7353 /* end confdefs.h. */
7354
7355 int
7356 main (void)
7357 {
7358
7359 ;
7360 return 0;
7361 }
7362 _ACEOF
7363 if ac_fn_c_try_compile "$LINENO"
7364 then :
7365
7366 else $as_nop
7367 ac_c_werror_flag=$ac_save_c_werror_flag
7368 CFLAGS="-g"
7369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7370 /* end confdefs.h. */
7371
7372 int
7373 main (void)
7374 {
7375
7376 ;
7377 return 0;
7378 }
7379 _ACEOF
7380 if ac_fn_c_try_compile "$LINENO"
7381 then :
7382 ac_cv_prog_cc_g=yes
7383 fi
7384 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7385 fi
7386 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7387 fi
7388 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7389 ac_c_werror_flag=$ac_save_c_werror_flag
7390 fi
7391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
7392 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
7393 if test $ac_test_CFLAGS; then
7394 CFLAGS=$ac_save_CFLAGS
7395 elif test $ac_cv_prog_cc_g = yes; then
7396 if test "$GCC" = yes; then
7397 CFLAGS="-g -O2"
7398 else
7399 CFLAGS="-g"
7400 fi
7401 else
7402 if test "$GCC" = yes; then
7403 CFLAGS="-O2"
7404 else
7405 CFLAGS=
7406 fi
7407 fi
7408 ac_prog_cc_stdc=no
7409 if test x$ac_prog_cc_stdc = xno
7410 then :
7411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
7412 printf %s "checking for $CC option to enable C11 features... " >&6; }
7413 if test ${ac_cv_prog_cc_c11+y}
7414 then :
7415 printf %s "(cached) " >&6
7416 else $as_nop
7417 ac_cv_prog_cc_c11=no
7418 ac_save_CC=$CC
7419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7420 /* end confdefs.h. */
7421 $ac_c_conftest_c11_program
7422 _ACEOF
7423 for ac_arg in '' -std=gnu11
7424 do
7425 CC="$ac_save_CC $ac_arg"
7426 if ac_fn_c_try_compile "$LINENO"
7427 then :
7428 ac_cv_prog_cc_c11=$ac_arg
7429 fi
7430 rm -f core conftest.err conftest.$ac_objext conftest.beam
7431 test "x$ac_cv_prog_cc_c11" != "xno" && break
7432 done
7433 rm -f conftest.$ac_ext
7434 CC=$ac_save_CC
7435 fi
7436
7437 if test "x$ac_cv_prog_cc_c11" = xno
7438 then :
7439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7440 printf "%s\n" "unsupported" >&6; }
7441 else $as_nop
7442 if test "x$ac_cv_prog_cc_c11" = x
7443 then :
7444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7445 printf "%s\n" "none needed" >&6; }
7446 else $as_nop
7447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
7448 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
7449 CC="$CC $ac_cv_prog_cc_c11"
7450 fi
7451 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
7452 ac_prog_cc_stdc=c11
7453 fi
7454 fi
7455 if test x$ac_prog_cc_stdc = xno
7456 then :
7457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
7458 printf %s "checking for $CC option to enable C99 features... " >&6; }
7459 if test ${ac_cv_prog_cc_c99+y}
7460 then :
7461 printf %s "(cached) " >&6
7462 else $as_nop
7463 ac_cv_prog_cc_c99=no
7464 ac_save_CC=$CC
7465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7466 /* end confdefs.h. */
7467 $ac_c_conftest_c99_program
7468 _ACEOF
7469 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
7470 do
7471 CC="$ac_save_CC $ac_arg"
7472 if ac_fn_c_try_compile "$LINENO"
7473 then :
7474 ac_cv_prog_cc_c99=$ac_arg
7475 fi
7476 rm -f core conftest.err conftest.$ac_objext conftest.beam
7477 test "x$ac_cv_prog_cc_c99" != "xno" && break
7478 done
7479 rm -f conftest.$ac_ext
7480 CC=$ac_save_CC
7481 fi
7482
7483 if test "x$ac_cv_prog_cc_c99" = xno
7484 then :
7485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7486 printf "%s\n" "unsupported" >&6; }
7487 else $as_nop
7488 if test "x$ac_cv_prog_cc_c99" = x
7489 then :
7490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7491 printf "%s\n" "none needed" >&6; }
7492 else $as_nop
7493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7494 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
7495 CC="$CC $ac_cv_prog_cc_c99"
7496 fi
7497 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
7498 ac_prog_cc_stdc=c99
7499 fi
7500 fi
7501 if test x$ac_prog_cc_stdc = xno
7502 then :
7503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
7504 printf %s "checking for $CC option to enable C89 features... " >&6; }
7505 if test ${ac_cv_prog_cc_c89+y}
7506 then :
7507 printf %s "(cached) " >&6
7508 else $as_nop
7509 ac_cv_prog_cc_c89=no
7510 ac_save_CC=$CC
7511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7512 /* end confdefs.h. */
7513 $ac_c_conftest_c89_program
7514 _ACEOF
7515 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7516 do
7517 CC="$ac_save_CC $ac_arg"
7518 if ac_fn_c_try_compile "$LINENO"
7519 then :
7520 ac_cv_prog_cc_c89=$ac_arg
7521 fi
7522 rm -f core conftest.err conftest.$ac_objext conftest.beam
7523 test "x$ac_cv_prog_cc_c89" != "xno" && break
7524 done
7525 rm -f conftest.$ac_ext
7526 CC=$ac_save_CC
7527 fi
7528
7529 if test "x$ac_cv_prog_cc_c89" = xno
7530 then :
7531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7532 printf "%s\n" "unsupported" >&6; }
7533 else $as_nop
7534 if test "x$ac_cv_prog_cc_c89" = x
7535 then :
7536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7537 printf "%s\n" "none needed" >&6; }
7538 else $as_nop
7539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
7540 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
7541 CC="$CC $ac_cv_prog_cc_c89"
7542 fi
7543 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
7544 ac_prog_cc_stdc=c89
7545 fi
7546 fi
7547
7548 ac_ext=c
7549 ac_cpp='$CPP $CPPFLAGS'
7550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7552 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7553
7554
7555 ac_ext=c
7556 ac_cpp='$CPP $CPPFLAGS'
7557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
7561 printf %s "checking whether $CC understands -c and -o together... " >&6; }
7562 if test ${am_cv_prog_cc_c_o+y}
7563 then :
7564 printf %s "(cached) " >&6
7565 else $as_nop
7566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7567 /* end confdefs.h. */
7568
7569 int
7570 main (void)
7571 {
7572
7573 ;
7574 return 0;
7575 }
7576 _ACEOF
7577 # Make sure it works both with $CC and with simple cc.
7578 # Following AC_PROG_CC_C_O, we do the test twice because some
7579 # compilers refuse to overwrite an existing .o file with -o,
7580 # though they will create one.
7581 am_cv_prog_cc_c_o=yes
7582 for am_i in 1 2; do
7583 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
7584 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
7585 ac_status=$?
7586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7587 (exit $ac_status); } \
7588 && test -f conftest2.$ac_objext; then
7589 : OK
7590 else
7591 am_cv_prog_cc_c_o=no
7592 break
7593 fi
7594 done
7595 rm -f core conftest*
7596 unset am_i
7597 fi
7598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
7599 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
7600 if test "$am_cv_prog_cc_c_o" != yes; then
7601 # Losing compiler, so override with the script.
7602 # FIXME: It is wrong to rewrite CC.
7603 # But if we don't then we get into trouble of one sort or another.
7604 # A longer-term fix would be to have automake use am__CC in this case,
7605 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7606 CC="$am_aux_dir/compile $CC"
7607 fi
7608 ac_ext=c
7609 ac_cpp='$CPP $CPPFLAGS'
7610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7613
7614
7615
7616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler is clang" >&5
7617 printf %s "checking whether the compiler is clang... " >&6; }
7618 if test ${gl_cv_compiler_clang+y}
7619 then :
7620 printf %s "(cached) " >&6
7621 else $as_nop
7622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7623 /* end confdefs.h. */
7624
7625 #ifdef __clang__
7626 barfbarf
7627 #endif
7628
7629 int
7630 main (void)
7631 {
7632
7633 ;
7634 return 0;
7635 }
7636
7637 _ACEOF
7638 if ac_fn_c_try_compile "$LINENO"
7639 then :
7640 gl_cv_compiler_clang=no
7641 else $as_nop
7642 gl_cv_compiler_clang=yes
7643 fi
7644 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7645
7646 fi
7647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_compiler_clang" >&5
7648 printf "%s\n" "$gl_cv_compiler_clang" >&6; }
7649
7650
7651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compiler option needed when checking for declarations" >&5
7652 printf %s "checking for compiler option needed when checking for declarations... " >&6; }
7653 if test ${gl_cv_compiler_check_decl_option+y}
7654 then :
7655 printf %s "(cached) " >&6
7656 else $as_nop
7657 if test $gl_cv_compiler_clang = yes; then
7658 save_ac_compile="$ac_compile"
7659 ac_compile="$ac_compile -Werror=implicit-function-declaration"
7660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7661 /* end confdefs.h. */
7662
7663 int
7664 main (void)
7665 {
7666
7667 ;
7668 return 0;
7669 }
7670 _ACEOF
7671 if ac_fn_c_try_compile "$LINENO"
7672 then :
7673 gl_cv_compiler_check_decl_option='-Werror=implicit-function-declaration'
7674 else $as_nop
7675 gl_cv_compiler_check_decl_option=none
7676 fi
7677 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7678 ac_compile="$save_ac_compile"
7679 else
7680 gl_cv_compiler_check_decl_option=none
7681 fi
7682
7683 fi
7684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_compiler_check_decl_option" >&5
7685 printf "%s\n" "$gl_cv_compiler_check_decl_option" >&6; }
7686 if test "x$gl_cv_compiler_check_decl_option" != xnone; then
7687 ac_compile_for_check_decl="$ac_compile $gl_cv_compiler_check_decl_option"
7688 else
7689 ac_compile_for_check_decl="$ac_compile"
7690 fi
7691
7692
7693 depcc="$CC" am_compiler_list=
7694
7695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7696 printf %s "checking dependency style of $depcc... " >&6; }
7697 if test ${am_cv_CC_dependencies_compiler_type+y}
7698 then :
7699 printf %s "(cached) " >&6
7700 else $as_nop
7701 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7702 # We make a subdir and do the tests there. Otherwise we can end up
7703 # making bogus files that we don't know about and never remove. For
7704 # instance it was reported that on HP-UX the gcc test will end up
7705 # making a dummy file named 'D' -- because '-MD' means "put the output
7706 # in D".
7707 rm -rf conftest.dir
7708 mkdir conftest.dir
7709 # Copy depcomp to subdir because otherwise we won't find it if we're
7710 # using a relative directory.
7711 cp "$am_depcomp" conftest.dir
7712 cd conftest.dir
7713 # We will build objects and dependencies in a subdirectory because
7714 # it helps to detect inapplicable dependency modes. For instance
7715 # both Tru64's cc and ICC support -MD to output dependencies as a
7716 # side effect of compilation, but ICC will put the dependencies in
7717 # the current directory while Tru64 will put them in the object
7718 # directory.
7719 mkdir sub
7720
7721 am_cv_CC_dependencies_compiler_type=none
7722 if test "$am_compiler_list" = ""; then
7723 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7724 fi
7725 am__universal=false
7726 case " $depcc " in #(
7727 *\ -arch\ *\ -arch\ *) am__universal=true ;;
7728 esac
7729
7730 for depmode in $am_compiler_list; do
7731 # Setup a source with many dependencies, because some compilers
7732 # like to wrap large dependency lists on column 80 (with \), and
7733 # we should not choose a depcomp mode which is confused by this.
7734 #
7735 # We need to recreate these files for each test, as the compiler may
7736 # overwrite some of them when testing with obscure command lines.
7737 # This happens at least with the AIX C compiler.
7738 : > sub/conftest.c
7739 for i in 1 2 3 4 5 6; do
7740 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7741 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
7742 # Solaris 10 /bin/sh.
7743 echo '/* dummy */' > sub/conftst$i.h
7744 done
7745 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7746
7747 # We check with '-c' and '-o' for the sake of the "dashmstdout"
7748 # mode. It turns out that the SunPro C++ compiler does not properly
7749 # handle '-M -o', and we need to detect this. Also, some Intel
7750 # versions had trouble with output in subdirs.
7751 am__obj=sub/conftest.${OBJEXT-o}
7752 am__minus_obj="-o $am__obj"
7753 case $depmode in
7754 gcc)
7755 # This depmode causes a compiler race in universal mode.
7756 test "$am__universal" = false || continue
7757 ;;
7758 nosideeffect)
7759 # After this tag, mechanisms are not by side-effect, so they'll
7760 # only be used when explicitly requested.
7761 if test "x$enable_dependency_tracking" = xyes; then
7762 continue
7763 else
7764 break
7765 fi
7766 ;;
7767 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
7768 # This compiler won't grok '-c -o', but also, the minuso test has
7769 # not run yet. These depmodes are late enough in the game, and
7770 # so weak that their functioning should not be impacted.
7771 am__obj=conftest.${OBJEXT-o}
7772 am__minus_obj=
7773 ;;
7774 none) break ;;
7775 esac
7776 if depmode=$depmode \
7777 source=sub/conftest.c object=$am__obj \
7778 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7779 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7780 >/dev/null 2>conftest.err &&
7781 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7782 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7783 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7784 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7785 # icc doesn't choke on unknown options, it will just issue warnings
7786 # or remarks (even with -Werror). So we grep stderr for any message
7787 # that says an option was ignored or not supported.
7788 # When given -MP, icc 7.0 and 7.1 complain thusly:
7789 # icc: Command line warning: ignoring option '-M'; no argument required
7790 # The diagnosis changed in icc 8.0:
7791 # icc: Command line remark: option '-MP' not supported
7792 if (grep 'ignoring option' conftest.err ||
7793 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7794 am_cv_CC_dependencies_compiler_type=$depmode
7795 break
7796 fi
7797 fi
7798 done
7799
7800 cd ..
7801 rm -rf conftest.dir
7802 else
7803 am_cv_CC_dependencies_compiler_type=none
7804 fi
7805
7806 fi
7807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
7808 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
7809 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
7810
7811 if
7812 test "x$enable_dependency_tracking" != xno \
7813 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
7814 am__fastdepCC_TRUE=
7815 am__fastdepCC_FALSE='#'
7816 else
7817 am__fastdepCC_TRUE='#'
7818 am__fastdepCC_FALSE=
7819 fi
7820
7821
7822
7823
7824 # Make sure we can run config.sub.
7825 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
7826 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
7827
7828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
7829 printf %s "checking build system type... " >&6; }
7830 if test ${ac_cv_build+y}
7831 then :
7832 printf %s "(cached) " >&6
7833 else $as_nop
7834 ac_build_alias=$build_alias
7835 test "x$ac_build_alias" = x &&
7836 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
7837 test "x$ac_build_alias" = x &&
7838 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
7839 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
7840 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
7841
7842 fi
7843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
7844 printf "%s\n" "$ac_cv_build" >&6; }
7845 case $ac_cv_build in
7846 *-*-*) ;;
7847 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
7848 esac
7849 build=$ac_cv_build
7850 ac_save_IFS=$IFS; IFS='-'
7851 set x $ac_cv_build
7852 shift
7853 build_cpu=$1
7854 build_vendor=$2
7855 shift; shift
7856 # Remember, the first character of IFS is used to create $*,
7857 # except with old shells:
7858 build_os=$*
7859 IFS=$ac_save_IFS
7860 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
7861
7862
7863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
7864 printf %s "checking host system type... " >&6; }
7865 if test ${ac_cv_host+y}
7866 then :
7867 printf %s "(cached) " >&6
7868 else $as_nop
7869 if test "x$host_alias" = x; then
7870 ac_cv_host=$ac_cv_build
7871 else
7872 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
7873 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
7874 fi
7875
7876 fi
7877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
7878 printf "%s\n" "$ac_cv_host" >&6; }
7879 case $ac_cv_host in
7880 *-*-*) ;;
7881 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
7882 esac
7883 host=$ac_cv_host
7884 ac_save_IFS=$IFS; IFS='-'
7885 set x $ac_cv_host
7886 shift
7887 host_cpu=$1
7888 host_vendor=$2
7889 shift; shift
7890 # Remember, the first character of IFS is used to create $*,
7891 # except with old shells:
7892 host_os=$*
7893 IFS=$ac_save_IFS
7894 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
7895
7896
7897
7898
7899
7900
7901 case "$host_os" in
7902 openbsd*)
7903
7904 printf "%s\n" "#define _ISOC11_SOURCE 1" >>confdefs.h
7905
7906 ;;
7907 esac
7908
7909 ac_ext=c
7910 ac_cpp='$CPP $CPPFLAGS'
7911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7915 printf %s "checking how to run the C preprocessor... " >&6; }
7916 # On Suns, sometimes $CPP names a directory.
7917 if test -n "$CPP" && test -d "$CPP"; then
7918 CPP=
7919 fi
7920 if test -z "$CPP"; then
7921 if test ${ac_cv_prog_CPP+y}
7922 then :
7923 printf %s "(cached) " >&6
7924 else $as_nop
7925 # Double quotes because $CC needs to be expanded
7926 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
7927 do
7928 ac_preproc_ok=false
7929 for ac_c_preproc_warn_flag in '' yes
7930 do
7931 # Use a header file that comes with gcc, so configuring glibc
7932 # with a fresh cross-compiler works.
7933 # On the NeXT, cc -E runs the code through the compiler's parser,
7934 # not just through cpp. "Syntax error" is here to catch this case.
7935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7936 /* end confdefs.h. */
7937 #include <limits.h>
7938 Syntax error
7939 _ACEOF
7940 if ac_fn_c_try_cpp "$LINENO"
7941 then :
7942
7943 else $as_nop
7944 # Broken: fails on valid input.
7945 continue
7946 fi
7947 rm -f conftest.err conftest.i conftest.$ac_ext
7948
7949 # OK, works on sane cases. Now check whether nonexistent headers
7950 # can be detected and how.
7951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7952 /* end confdefs.h. */
7953 #include <ac_nonexistent.h>
7954 _ACEOF
7955 if ac_fn_c_try_cpp "$LINENO"
7956 then :
7957 # Broken: success on invalid input.
7958 continue
7959 else $as_nop
7960 # Passes both tests.
7961 ac_preproc_ok=:
7962 break
7963 fi
7964 rm -f conftest.err conftest.i conftest.$ac_ext
7965
7966 done
7967 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7968 rm -f conftest.i conftest.err conftest.$ac_ext
7969 if $ac_preproc_ok
7970 then :
7971 break
7972 fi
7973
7974 done
7975 ac_cv_prog_CPP=$CPP
7976
7977 fi
7978 CPP=$ac_cv_prog_CPP
7979 else
7980 ac_cv_prog_CPP=$CPP
7981 fi
7982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7983 printf "%s\n" "$CPP" >&6; }
7984 ac_preproc_ok=false
7985 for ac_c_preproc_warn_flag in '' yes
7986 do
7987 # Use a header file that comes with gcc, so configuring glibc
7988 # with a fresh cross-compiler works.
7989 # On the NeXT, cc -E runs the code through the compiler's parser,
7990 # not just through cpp. "Syntax error" is here to catch this case.
7991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7992 /* end confdefs.h. */
7993 #include <limits.h>
7994 Syntax error
7995 _ACEOF
7996 if ac_fn_c_try_cpp "$LINENO"
7997 then :
7998
7999 else $as_nop
8000 # Broken: fails on valid input.
8001 continue
8002 fi
8003 rm -f conftest.err conftest.i conftest.$ac_ext
8004
8005 # OK, works on sane cases. Now check whether nonexistent headers
8006 # can be detected and how.
8007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8008 /* end confdefs.h. */
8009 #include <ac_nonexistent.h>
8010 _ACEOF
8011 if ac_fn_c_try_cpp "$LINENO"
8012 then :
8013 # Broken: success on invalid input.
8014 continue
8015 else $as_nop
8016 # Passes both tests.
8017 ac_preproc_ok=:
8018 break
8019 fi
8020 rm -f conftest.err conftest.i conftest.$ac_ext
8021
8022 done
8023 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8024 rm -f conftest.i conftest.err conftest.$ac_ext
8025 if $ac_preproc_ok
8026 then :
8027
8028 else $as_nop
8029 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8030 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
8031 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8032 See \`config.log' for more details" "$LINENO" 5; }
8033 fi
8034
8035 ac_ext=c
8036 ac_cpp='$CPP $CPPFLAGS'
8037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8040
8041
8042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
8043 printf %s "checking for grep that handles long lines and -e... " >&6; }
8044 if test ${ac_cv_path_GREP+y}
8045 then :
8046 printf %s "(cached) " >&6
8047 else $as_nop
8048 if test -z "$GREP"; then
8049 ac_path_GREP_found=false
8050 # Loop through the user's path and test for each of PROGNAME-LIST
8051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8052 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8053 do
8054 IFS=$as_save_IFS
8055 case $as_dir in #(((
8056 '') as_dir=./ ;;
8057 */) ;;
8058 *) as_dir=$as_dir/ ;;
8059 esac
8060 for ac_prog in grep ggrep
8061 do
8062 for ac_exec_ext in '' $ac_executable_extensions; do
8063 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
8064 as_fn_executable_p "$ac_path_GREP" || continue
8065 # Check for GNU ac_path_GREP and select it if it is found.
8066 # Check for GNU $ac_path_GREP
8067 case `"$ac_path_GREP" --version 2>&1` in
8068 *GNU*)
8069 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
8070 *)
8071 ac_count=0
8072 printf %s 0123456789 >"conftest.in"
8073 while :
8074 do
8075 cat "conftest.in" "conftest.in" >"conftest.tmp"
8076 mv "conftest.tmp" "conftest.in"
8077 cp "conftest.in" "conftest.nl"
8078 printf "%s\n" 'GREP' >> "conftest.nl"
8079 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
8080 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8081 as_fn_arith $ac_count + 1 && ac_count=$as_val
8082 if test $ac_count -gt ${ac_path_GREP_max-0}; then
8083 # Best one so far, save it but keep looking for a better one
8084 ac_cv_path_GREP="$ac_path_GREP"
8085 ac_path_GREP_max=$ac_count
8086 fi
8087 # 10*(2^10) chars as input seems more than enough
8088 test $ac_count -gt 10 && break
8089 done
8090 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8091 esac
8092
8093 $ac_path_GREP_found && break 3
8094 done
8095 done
8096 done
8097 IFS=$as_save_IFS
8098 if test -z "$ac_cv_path_GREP"; then
8099 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8100 fi
8101 else
8102 ac_cv_path_GREP=$GREP
8103 fi
8104
8105 fi
8106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
8107 printf "%s\n" "$ac_cv_path_GREP" >&6; }
8108 GREP="$ac_cv_path_GREP"
8109
8110
8111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
8112 printf %s "checking for egrep... " >&6; }
8113 if test ${ac_cv_path_EGREP+y}
8114 then :
8115 printf %s "(cached) " >&6
8116 else $as_nop
8117 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
8118 then ac_cv_path_EGREP="$GREP -E"
8119 else
8120 if test -z "$EGREP"; then
8121 ac_path_EGREP_found=false
8122 # Loop through the user's path and test for each of PROGNAME-LIST
8123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8124 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8125 do
8126 IFS=$as_save_IFS
8127 case $as_dir in #(((
8128 '') as_dir=./ ;;
8129 */) ;;
8130 *) as_dir=$as_dir/ ;;
8131 esac
8132 for ac_prog in egrep
8133 do
8134 for ac_exec_ext in '' $ac_executable_extensions; do
8135 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
8136 as_fn_executable_p "$ac_path_EGREP" || continue
8137 # Check for GNU ac_path_EGREP and select it if it is found.
8138 # Check for GNU $ac_path_EGREP
8139 case `"$ac_path_EGREP" --version 2>&1` in
8140 *GNU*)
8141 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
8142 *)
8143 ac_count=0
8144 printf %s 0123456789 >"conftest.in"
8145 while :
8146 do
8147 cat "conftest.in" "conftest.in" >"conftest.tmp"
8148 mv "conftest.tmp" "conftest.in"
8149 cp "conftest.in" "conftest.nl"
8150 printf "%s\n" 'EGREP' >> "conftest.nl"
8151 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
8152 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8153 as_fn_arith $ac_count + 1 && ac_count=$as_val
8154 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
8155 # Best one so far, save it but keep looking for a better one
8156 ac_cv_path_EGREP="$ac_path_EGREP"
8157 ac_path_EGREP_max=$ac_count
8158 fi
8159 # 10*(2^10) chars as input seems more than enough
8160 test $ac_count -gt 10 && break
8161 done
8162 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8163 esac
8164
8165 $ac_path_EGREP_found && break 3
8166 done
8167 done
8168 done
8169 IFS=$as_save_IFS
8170 if test -z "$ac_cv_path_EGREP"; then
8171 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8172 fi
8173 else
8174 ac_cv_path_EGREP=$EGREP
8175 fi
8176
8177 fi
8178 fi
8179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
8180 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
8181 EGREP="$ac_cv_path_EGREP"
8182
8183
8184
8185
8186
8187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
8188 printf %s "checking for Minix Amsterdam compiler... " >&6; }
8189 if test ${gl_cv_c_amsterdam_compiler+y}
8190 then :
8191 printf %s "(cached) " >&6
8192 else $as_nop
8193
8194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8195 /* end confdefs.h. */
8196
8197 #ifdef __ACK__
8198 Amsterdam
8199 #endif
8200
8201 _ACEOF
8202 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8203 $EGREP "Amsterdam" >/dev/null 2>&1
8204 then :
8205 gl_cv_c_amsterdam_compiler=yes
8206 else $as_nop
8207 gl_cv_c_amsterdam_compiler=no
8208 fi
8209 rm -rf conftest*
8210
8211
8212 fi
8213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
8214 printf "%s\n" "$gl_cv_c_amsterdam_compiler" >&6; }
8215
8216 if test $gl_cv_c_amsterdam_compiler = yes; then
8217 if test -z "$AR"; then
8218 AR='cc -c.a'
8219 fi
8220 if test -z "$ARFLAGS"; then
8221 ARFLAGS='-o'
8222 fi
8223 else
8224 :
8225 fi
8226
8227 if test -n "$ac_tool_prefix"; then
8228 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8229 set dummy ${ac_tool_prefix}ar; ac_word=$2
8230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8231 printf %s "checking for $ac_word... " >&6; }
8232 if test ${ac_cv_prog_AR+y}
8233 then :
8234 printf %s "(cached) " >&6
8235 else $as_nop
8236 if test -n "$AR"; then
8237 ac_cv_prog_AR="$AR" # Let the user override the test.
8238 else
8239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8240 for as_dir in $PATH
8241 do
8242 IFS=$as_save_IFS
8243 case $as_dir in #(((
8244 '') as_dir=./ ;;
8245 */) ;;
8246 *) as_dir=$as_dir/ ;;
8247 esac
8248 for ac_exec_ext in '' $ac_executable_extensions; do
8249 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8250 ac_cv_prog_AR="${ac_tool_prefix}ar"
8251 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8252 break 2
8253 fi
8254 done
8255 done
8256 IFS=$as_save_IFS
8257
8258 fi
8259 fi
8260 AR=$ac_cv_prog_AR
8261 if test -n "$AR"; then
8262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8263 printf "%s\n" "$AR" >&6; }
8264 else
8265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8266 printf "%s\n" "no" >&6; }
8267 fi
8268
8269
8270 fi
8271 if test -z "$ac_cv_prog_AR"; then
8272 ac_ct_AR=$AR
8273 # Extract the first word of "ar", so it can be a program name with args.
8274 set dummy ar; ac_word=$2
8275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8276 printf %s "checking for $ac_word... " >&6; }
8277 if test ${ac_cv_prog_ac_ct_AR+y}
8278 then :
8279 printf %s "(cached) " >&6
8280 else $as_nop
8281 if test -n "$ac_ct_AR"; then
8282 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8283 else
8284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8285 for as_dir in $PATH
8286 do
8287 IFS=$as_save_IFS
8288 case $as_dir in #(((
8289 '') as_dir=./ ;;
8290 */) ;;
8291 *) as_dir=$as_dir/ ;;
8292 esac
8293 for ac_exec_ext in '' $ac_executable_extensions; do
8294 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8295 ac_cv_prog_ac_ct_AR="ar"
8296 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8297 break 2
8298 fi
8299 done
8300 done
8301 IFS=$as_save_IFS
8302
8303 fi
8304 fi
8305 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8306 if test -n "$ac_ct_AR"; then
8307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8308 printf "%s\n" "$ac_ct_AR" >&6; }
8309 else
8310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8311 printf "%s\n" "no" >&6; }
8312 fi
8313
8314 if test "x$ac_ct_AR" = x; then
8315 AR="ar"
8316 else
8317 case $cross_compiling:$ac_tool_warned in
8318 yes:)
8319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8320 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8321 ac_tool_warned=yes ;;
8322 esac
8323 AR=$ac_ct_AR
8324 fi
8325 else
8326 AR="$ac_cv_prog_AR"
8327 fi
8328
8329 if test -z "$ARFLAGS"; then
8330 ARFLAGS='cr'
8331 fi
8332
8333
8334
8335 if test -z "$RANLIB"; then
8336 if test $gl_cv_c_amsterdam_compiler = yes; then
8337 RANLIB=':'
8338 else
8339 if test -n "$ac_tool_prefix"; then
8340 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8341 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8343 printf %s "checking for $ac_word... " >&6; }
8344 if test ${ac_cv_prog_RANLIB+y}
8345 then :
8346 printf %s "(cached) " >&6
8347 else $as_nop
8348 if test -n "$RANLIB"; then
8349 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8350 else
8351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8352 for as_dir in $PATH
8353 do
8354 IFS=$as_save_IFS
8355 case $as_dir in #(((
8356 '') as_dir=./ ;;
8357 */) ;;
8358 *) as_dir=$as_dir/ ;;
8359 esac
8360 for ac_exec_ext in '' $ac_executable_extensions; do
8361 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8362 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8363 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8364 break 2
8365 fi
8366 done
8367 done
8368 IFS=$as_save_IFS
8369
8370 fi
8371 fi
8372 RANLIB=$ac_cv_prog_RANLIB
8373 if test -n "$RANLIB"; then
8374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8375 printf "%s\n" "$RANLIB" >&6; }
8376 else
8377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8378 printf "%s\n" "no" >&6; }
8379 fi
8380
8381
8382 fi
8383 if test -z "$ac_cv_prog_RANLIB"; then
8384 ac_ct_RANLIB=$RANLIB
8385 # Extract the first word of "ranlib", so it can be a program name with args.
8386 set dummy ranlib; ac_word=$2
8387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8388 printf %s "checking for $ac_word... " >&6; }
8389 if test ${ac_cv_prog_ac_ct_RANLIB+y}
8390 then :
8391 printf %s "(cached) " >&6
8392 else $as_nop
8393 if test -n "$ac_ct_RANLIB"; then
8394 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8395 else
8396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8397 for as_dir in $PATH
8398 do
8399 IFS=$as_save_IFS
8400 case $as_dir in #(((
8401 '') as_dir=./ ;;
8402 */) ;;
8403 *) as_dir=$as_dir/ ;;
8404 esac
8405 for ac_exec_ext in '' $ac_executable_extensions; do
8406 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8407 ac_cv_prog_ac_ct_RANLIB="ranlib"
8408 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8409 break 2
8410 fi
8411 done
8412 done
8413 IFS=$as_save_IFS
8414
8415 fi
8416 fi
8417 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8418 if test -n "$ac_ct_RANLIB"; then
8419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8420 printf "%s\n" "$ac_ct_RANLIB" >&6; }
8421 else
8422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8423 printf "%s\n" "no" >&6; }
8424 fi
8425
8426 if test "x$ac_ct_RANLIB" = x; then
8427 RANLIB=":"
8428 else
8429 case $cross_compiling:$ac_tool_warned in
8430 yes:)
8431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8432 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8433 ac_tool_warned=yes ;;
8434 esac
8435 RANLIB=$ac_ct_RANLIB
8436 fi
8437 else
8438 RANLIB="$ac_cv_prog_RANLIB"
8439 fi
8440
8441 fi
8442 fi
8443
8444
8445
8446
8447
8448 # IEEE behaviour is the default on all CPUs except Alpha and SH
8449 # (according to the test results of Bruno Haible's ieeefp/fenv_default.m4
8450 # and the GCC 4.1.2 manual).
8451 case "$host_cpu" in
8452 alpha*)
8453 # On Alpha systems, a compiler option provides the behaviour.
8454 # See the ieee(3) manual page, also available at
8455 # <https://backdrift.org/man/tru64/man3/ieee.3.html>
8456 if test -n "$GCC"; then
8457 # GCC has the option -mieee.
8458 # For full IEEE compliance (rarely needed), use option -mieee-with-inexact.
8459 CPPFLAGS="$CPPFLAGS -mieee"
8460 else
8461 # Compaq (ex-DEC) C has the option -ieee, equivalent to -ieee_with_no_inexact.
8462 # For full IEEE compliance (rarely needed), use option -ieee_with_inexact.
8463 CPPFLAGS="$CPPFLAGS -ieee"
8464 fi
8465 ;;
8466 sh*)
8467 if test -n "$GCC"; then
8468 # GCC has the option -mieee.
8469 CPPFLAGS="$CPPFLAGS -mieee"
8470 fi
8471 ;;
8472 esac
8473
8474
8475
8476 case "$host_os" in
8477 mingw*)
8478
8479 printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h
8480
8481 ;;
8482 esac
8483
8484 # Check whether --enable-largefile was given.
8485 if test ${enable_largefile+y}
8486 then :
8487 enableval=$enable_largefile;
8488 fi
8489
8490 if test "$enable_largefile" != no
8491 then :
8492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
8493 printf %s "checking for special C compiler options needed for large files... " >&6; }
8494 if test ${ac_cv_sys_largefile_CC+y}
8495 then :
8496 printf %s "(cached) " >&6
8497 else $as_nop
8498 ac_cv_sys_largefile_CC=no
8499 if test "$GCC" != yes; then
8500 ac_save_CC=$CC
8501 while :; do
8502 # IRIX 6.2 and later do not support large files by default,
8503 # so use the C compiler's -n32 option if that helps.
8504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8505 /* end confdefs.h. */
8506 #include <sys/types.h>
8507 /* Check that off_t can represent 2**63 - 1 correctly.
8508 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8509 since some C++ compilers masquerading as C compilers
8510 incorrectly reject 9223372036854775807. */
8511 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
8512 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8513 && LARGE_OFF_T % 2147483647 == 1)
8514 ? 1 : -1];
8515 int
8516 main (void)
8517 {
8518
8519 ;
8520 return 0;
8521 }
8522 _ACEOF
8523 if ac_fn_c_try_compile "$LINENO"
8524 then :
8525 break
8526 fi
8527 rm -f core conftest.err conftest.$ac_objext conftest.beam
8528 CC="$CC -n32"
8529 if ac_fn_c_try_compile "$LINENO"
8530 then :
8531 ac_cv_sys_largefile_CC=' -n32'; break
8532 fi
8533 rm -f core conftest.err conftest.$ac_objext conftest.beam
8534 break
8535 done
8536 CC=$ac_save_CC
8537 rm -f conftest.$ac_ext
8538 fi
8539 fi
8540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
8541 printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
8542 if test "$ac_cv_sys_largefile_CC" != no; then
8543 CC=$CC$ac_cv_sys_largefile_CC
8544 fi
8545
8546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
8547 printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
8548 if test ${ac_cv_sys_file_offset_bits+y}
8549 then :
8550 printf %s "(cached) " >&6
8551 else $as_nop
8552 while :; do
8553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8554 /* end confdefs.h. */
8555 #include <sys/types.h>
8556 /* Check that off_t can represent 2**63 - 1 correctly.
8557 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8558 since some C++ compilers masquerading as C compilers
8559 incorrectly reject 9223372036854775807. */
8560 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
8561 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8562 && LARGE_OFF_T % 2147483647 == 1)
8563 ? 1 : -1];
8564 int
8565 main (void)
8566 {
8567
8568 ;
8569 return 0;
8570 }
8571 _ACEOF
8572 if ac_fn_c_try_compile "$LINENO"
8573 then :
8574 ac_cv_sys_file_offset_bits=no; break
8575 fi
8576 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8578 /* end confdefs.h. */
8579 #undef _FILE_OFFSET_BITS
8580 #define _FILE_OFFSET_BITS 64
8581 #include <sys/types.h>
8582 /* Check that off_t can represent 2**63 - 1 correctly.
8583 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8584 since some C++ compilers masquerading as C compilers
8585 incorrectly reject 9223372036854775807. */
8586 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
8587 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8588 && LARGE_OFF_T % 2147483647 == 1)
8589 ? 1 : -1];
8590 int
8591 main (void)
8592 {
8593
8594 ;
8595 return 0;
8596 }
8597 _ACEOF
8598 if ac_fn_c_try_compile "$LINENO"
8599 then :
8600 ac_cv_sys_file_offset_bits=64; break
8601 fi
8602 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8603 ac_cv_sys_file_offset_bits=unknown
8604 break
8605 done
8606 fi
8607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
8608 printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
8609 case $ac_cv_sys_file_offset_bits in #(
8610 no | unknown) ;;
8611 *)
8612 printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
8613 ;;
8614 esac
8615 rm -rf conftest*
8616 case $ac_cv_sys_file_offset_bits in #(
8617 unknown) :
8618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
8619 printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
8620 if test ${ac_cv_sys_large_files+y}
8621 then :
8622 printf %s "(cached) " >&6
8623 else $as_nop
8624 while :; do
8625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8626 /* end confdefs.h. */
8627 #include <sys/types.h>
8628 /* Check that off_t can represent 2**63 - 1 correctly.
8629 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8630 since some C++ compilers masquerading as C compilers
8631 incorrectly reject 9223372036854775807. */
8632 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
8633 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8634 && LARGE_OFF_T % 2147483647 == 1)
8635 ? 1 : -1];
8636 int
8637 main (void)
8638 {
8639
8640 ;
8641 return 0;
8642 }
8643 _ACEOF
8644 if ac_fn_c_try_compile "$LINENO"
8645 then :
8646 ac_cv_sys_large_files=no; break
8647 fi
8648 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8650 /* end confdefs.h. */
8651 #undef _LARGE_FILES
8652 #define _LARGE_FILES 1
8653 #include <sys/types.h>
8654 /* Check that off_t can represent 2**63 - 1 correctly.
8655 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8656 since some C++ compilers masquerading as C compilers
8657 incorrectly reject 9223372036854775807. */
8658 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
8659 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8660 && LARGE_OFF_T % 2147483647 == 1)
8661 ? 1 : -1];
8662 int
8663 main (void)
8664 {
8665
8666 ;
8667 return 0;
8668 }
8669 _ACEOF
8670 if ac_fn_c_try_compile "$LINENO"
8671 then :
8672 ac_cv_sys_large_files=1; break
8673 fi
8674 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8675 ac_cv_sys_large_files=unknown
8676 break
8677 done
8678 fi
8679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
8680 printf "%s\n" "$ac_cv_sys_large_files" >&6; }
8681 case $ac_cv_sys_large_files in #(
8682 no | unknown) ;;
8683 *)
8684 printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
8685 ;;
8686 esac
8687 rm -rf conftest* ;; #(
8688 64) :
8689
8690 # Check whether --enable-year2038 was given.
8691 if test ${enable_year2038+y}
8692 then :
8693 enableval=$enable_year2038;
8694 fi
8695
8696 if test "$enable_year2038" != no
8697 then :
8698
8699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for time_t past the year 2038" >&5
8700 printf %s "checking for time_t past the year 2038... " >&6; }
8701 if test ${gl_cv_type_time_t_y2038+y}
8702 then :
8703 printf %s "(cached) " >&6
8704 else $as_nop
8705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8706 /* end confdefs.h. */
8707
8708 #include <time.h>
8709 /* Check that time_t can represent 2**32 - 1 correctly. */
8710 #define LARGE_TIME_T \\
8711 ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
8712 int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
8713 && LARGE_TIME_T % 65537 == 0)
8714 ? 1 : -1];
8715
8716 _ACEOF
8717 if ac_fn_c_try_compile "$LINENO"
8718 then :
8719 gl_cv_type_time_t_y2038=yes
8720 else $as_nop
8721 gl_cv_type_time_t_y2038=no
8722 fi
8723 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8724
8725 fi
8726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_time_t_y2038" >&5
8727 printf "%s\n" "$gl_cv_type_time_t_y2038" >&6; }
8728 if test "$gl_cv_type_time_t_y2038" = no; then
8729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit time_t with _TIME_BITS=64" >&5
8730 printf %s "checking for 64-bit time_t with _TIME_BITS=64... " >&6; }
8731 if test ${gl_cv_type_time_t_bits_macro+y}
8732 then :
8733 printf %s "(cached) " >&6
8734 else $as_nop
8735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8736 /* end confdefs.h. */
8737 #define _TIME_BITS 64
8738 #define _FILE_OFFSET_BITS 64
8739
8740 #include <time.h>
8741 /* Check that time_t can represent 2**32 - 1 correctly. */
8742 #define LARGE_TIME_T \\
8743 ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
8744 int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
8745 && LARGE_TIME_T % 65537 == 0)
8746 ? 1 : -1];
8747
8748 _ACEOF
8749 if ac_fn_c_try_compile "$LINENO"
8750 then :
8751 gl_cv_type_time_t_bits_macro=yes
8752 else $as_nop
8753 gl_cv_type_time_t_bits_macro=no
8754 fi
8755 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8756
8757 fi
8758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_time_t_bits_macro" >&5
8759 printf "%s\n" "$gl_cv_type_time_t_bits_macro" >&6; }
8760 if test "$gl_cv_type_time_t_bits_macro" = yes; then
8761
8762 printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h
8763
8764
8765 printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
8766
8767 gl_cv_type_time_t_y2038=yes
8768 fi
8769 fi
8770 if test $gl_cv_type_time_t_y2038 = no; then
8771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8772 /* end confdefs.h. */
8773 #ifdef _USE_32BIT_TIME_T
8774 int ok;
8775 #else
8776 error fail
8777 #endif
8778
8779 _ACEOF
8780 if ac_fn_c_try_compile "$LINENO"
8781 then :
8782 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8783 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
8784 as_fn_error $? "The 'time_t' type stops working after January 2038.
8785 Remove _USE_32BIT_TIME_T from the compiler flags.
8786 See \`config.log' for more details" "$LINENO" 5; }
8787 else $as_nop
8788 # If not cross-compiling and says we should check,
8789 # and 'touch' works with a large timestamp, then evidently wider time_t
8790 # is desired and supported, so fail and ask the builder to fix the
8791 # problem. Otherwise, just warn the builder.
8792
8793 if test "$gl_warned_about_y2038" != yes; then
8794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: The 'time_t' type stops working after January 2038,
8795 and this package needs a wider 'time_t' type
8796 if there is any way to access timestamps after that.
8797 Configure with 'CC=\"${CC} -m64\"' perhaps?" >&5
8798 printf "%s\n" "$as_me: WARNING: The 'time_t' type stops working after January 2038,
8799 and this package needs a wider 'time_t' type
8800 if there is any way to access timestamps after that.
8801 Configure with 'CC=\"${CC} -m64\"' perhaps?" >&2;}
8802 gl_warned_about_y2038=yes
8803 fi
8804
8805 fi
8806 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8807 fi
8808 fi
8809 ;; #(
8810 *) :
8811 ;;
8812 esac
8813 fi
8814
8815
8816
8817
8818
8819
8820
8821 # Check whether --enable-threads was given.
8822 if test ${enable_threads+y}
8823 then :
8824 enableval=$enable_threads; gl_use_threads=$enableval
8825 else $as_nop
8826 if test -n "$gl_use_threads_default"; then
8827 gl_use_threads="$gl_use_threads_default"
8828 else
8829 case "$host_os" in
8830 osf*) gl_use_threads=no ;;
8831 cygwin*)
8832 case `uname -r` in
8833 1.[0-5].*) gl_use_threads=no ;;
8834 *) gl_use_threads=yes ;;
8835 esac
8836 ;;
8837 mingw*)
8838 case "$gl_use_winpthreads_default" in
8839 yes) gl_use_threads=posix ;;
8840 no) gl_use_threads=windows ;;
8841 *) gl_use_threads=yes ;;
8842 esac
8843 ;;
8844 *) gl_use_threads=yes ;;
8845 esac
8846 fi
8847
8848 fi
8849
8850 if test "$gl_use_threads" = yes \
8851 || test "$gl_use_threads" = isoc \
8852 || test "$gl_use_threads" = posix \
8853 || test "$gl_use_threads" = isoc+posix; then
8854 # For using <threads.h> or <pthread.h>:
8855
8856
8857 if test -z "$gl_anythreadlib_early_done"; then
8858 case "$host_os" in
8859 osf*)
8860 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
8861 # groks <pthread.h>. cc also understands the flag -pthread, but
8862 # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
8863 # 2. putting a flag into CPPFLAGS that has an effect on the linker
8864 # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
8865 # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
8866 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
8867 ;;
8868 esac
8869 # Some systems optimize for single-threaded programs by default, and
8870 # need special flags to disable these optimizations. For example, the
8871 # definition of 'errno' in <errno.h>.
8872 case "$host_os" in
8873 aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
8874 solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
8875 esac
8876 gl_anythreadlib_early_done=done
8877 fi
8878
8879 fi
8880
8881
8882
8883 # Pre-early section.
8884
8885
8886
8887 # Code from module absolute-header:
8888 # Code from module accept:
8889 # Code from module accept-tests:
8890 # Code from module alloca:
8891 # Code from module alloca-opt:
8892 # Code from module alloca-opt-tests:
8893 # Code from module argz:
8894 # Code from module arpa_inet:
8895 # Code from module arpa_inet-tests:
8896 # Code from module assert-h:
8897 # Code from module assert-h-tests:
8898 # Code from module attribute:
8899 # Code from module basename-lgpl:
8900 # Code from module binary-io:
8901 # Code from module binary-io-tests:
8902 # Code from module bind:
8903 # Code from module bind-tests:
8904 # Code from module btowc:
8905 # Code from module btowc-tests:
8906 # Code from module builtin-expect:
8907 # Code from module c-ctype:
8908 # Code from module c-ctype-tests:
8909 # Code from module c-strcase:
8910 # Code from module c-strcase-tests:
8911 # Code from module c99:
8912 # Code from module calloc-gnu:
8913 # Code from module calloc-gnu-tests:
8914 # Code from module calloc-posix:
8915 # Code from module canonicalize-lgpl:
8916 # Code from module canonicalize-lgpl-tests:
8917 # Code from module clock-time:
8918 # Code from module cloexec:
8919 # Code from module cloexec-tests:
8920 # Code from module close:
8921 # Code from module close-tests:
8922 # Code from module connect:
8923 # Code from module connect-tests:
8924 # Code from module ctype:
8925 # Code from module ctype-tests:
8926 # Code from module dirname-lgpl:
8927 # Code from module double-slash-root:
8928 # Code from module dup2:
8929 # Code from module dup2-tests:
8930 # Code from module eloop-threshold:
8931 # Code from module environ:
8932 # Code from module environ-tests:
8933 # Code from module errno:
8934 # Code from module errno-tests:
8935 # Code from module extensions:
8936 # Code from module extern-inline:
8937 # Code from module fcntl:
8938 # Code from module fcntl-h:
8939 # Code from module fcntl-h-tests:
8940 # Code from module fcntl-tests:
8941 # Code from module fd-hook:
8942 # Code from module fdopen:
8943 # Code from module fdopen-tests:
8944 # Code from module fgetc-tests:
8945 # Code from module filename:
8946 # Code from module flexmember:
8947 # Code from module float:
8948 # Code from module float-tests:
8949 # Code from module fnmatch:
8950 # Code from module fnmatch-h:
8951 # Code from module fnmatch-h-tests:
8952 # Code from module fnmatch-tests:
8953 # Code from module fpieee:
8954
8955 # Code from module fpucw:
8956 # Code from module fputc-tests:
8957 # Code from module fread-tests:
8958 # Code from module free-posix:
8959 # Code from module free-posix-tests:
8960 # Code from module fstat:
8961 # Code from module fstat-tests:
8962 # Code from module ftruncate:
8963 # Code from module ftruncate-tests:
8964 # Code from module fwrite-tests:
8965 # Code from module gen-header:
8966 # Code from module getcwd-lgpl:
8967 # Code from module getcwd-lgpl-tests:
8968 # Code from module getdelim:
8969 # Code from module getdelim-tests:
8970 # Code from module getdtablesize:
8971 # Code from module getdtablesize-tests:
8972 # Code from module getline:
8973 # Code from module getline-tests:
8974 # Code from module getopt-gnu:
8975 # Code from module getopt-gnu-tests:
8976 # Code from module getopt-posix:
8977 # Code from module getopt-posix-tests:
8978 # Code from module getpagesize:
8979 # Code from module getrandom:
8980 # Code from module getrandom-tests:
8981 # Code from module gettext-h:
8982 # Code from module gettimeofday:
8983 # Code from module gettimeofday-tests:
8984 # Code from module gitlog-to-changelog:
8985 # Code from module glibc-internal/dynarray:
8986 # Code from module glibc-internal/dynarray-tests:
8987 # Code from module glibc-internal/scratch_buffer:
8988 # Code from module glibc-internal/scratch_buffer-tests:
8989 # Code from module hard-locale:
8990 # Code from module hard-locale-tests:
8991 # Code from module idx:
8992 # Code from module ignore-value:
8993 # Code from module ignore-value-tests:
8994 # Code from module include_next:
8995 # Code from module inet_pton:
8996 # Code from module inet_pton-tests:
8997 # Code from module intprops:
8998 # Code from module intprops-tests:
8999 # Code from module inttypes:
9000 # Code from module inttypes-incomplete:
9001 # Code from module inttypes-tests:
9002 # Code from module ioctl:
9003 # Code from module ioctl-tests:
9004 # Code from module isblank:
9005 # Code from module isblank-tests:
9006 # Code from module langinfo:
9007 # Code from module langinfo-tests:
9008 # Code from module largefile:
9009
9010
9011 # Code from module libc-config:
9012 # Code from module limits-h:
9013 # Code from module limits-h-tests:
9014 # Code from module listen:
9015 # Code from module listen-tests:
9016 # Code from module localcharset:
9017 # Code from module localcharset-tests:
9018 # Code from module locale:
9019 # Code from module locale-tests:
9020 # Code from module localeconv:
9021 # Code from module localeconv-tests:
9022 # Code from module localename:
9023 # Code from module localename-tests:
9024 # Code from module lock:
9025 # Code from module lock-tests:
9026 # Code from module lstat:
9027 # Code from module lstat-tests:
9028 # Code from module malloc-gnu:
9029 # Code from module malloc-gnu-tests:
9030 # Code from module malloc-posix:
9031 # Code from module malloca:
9032 # Code from module malloca-tests:
9033 # Code from module mbrtowc:
9034 # Code from module mbrtowc-tests:
9035 # Code from module mbsinit:
9036 # Code from module mbsinit-tests:
9037 # Code from module mbsrtowcs:
9038 # Code from module mbsrtowcs-tests:
9039 # Code from module mbtowc:
9040 # Code from module memchr:
9041 # Code from module memchr-tests:
9042 # Code from module mempcpy:
9043 # Code from module minmax:
9044 # Code from module mkdir:
9045 # Code from module mkdir-tests:
9046 # Code from module mkstemp:
9047 # Code from module msvc-inval:
9048 # Code from module msvc-nothrow:
9049 # Code from module multiarch:
9050 # Code from module nanosleep:
9051 # Code from module nanosleep-tests:
9052 # Code from module netinet_in:
9053 # Code from module netinet_in-tests:
9054 # Code from module nl_langinfo:
9055 # Code from module nl_langinfo-tests:
9056 # Code from module nocrash:
9057 # Code from module open:
9058 # Code from module open-tests:
9059 # Code from module pathmax:
9060 # Code from module pathmax-tests:
9061 # Code from module perror:
9062 # Code from module perror-tests:
9063 # Code from module pipe-posix:
9064 # Code from module pipe-posix-tests:
9065 # Code from module pselect:
9066 # Code from module pselect-tests:
9067 # Code from module pthread-h:
9068
9069
9070 if test -z "$gl_anythreadlib_early_done"; then
9071 case "$host_os" in
9072 osf*)
9073 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
9074 # groks <pthread.h>. cc also understands the flag -pthread, but
9075 # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
9076 # 2. putting a flag into CPPFLAGS that has an effect on the linker
9077 # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
9078 # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
9079 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
9080 ;;
9081 esac
9082 # Some systems optimize for single-threaded programs by default, and
9083 # need special flags to disable these optimizations. For example, the
9084 # definition of 'errno' in <errno.h>.
9085 case "$host_os" in
9086 aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
9087 solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
9088 esac
9089 gl_anythreadlib_early_done=done
9090 fi
9091
9092 # Code from module pthread-h-tests:
9093 # Code from module pthread-thread:
9094 # Code from module pthread-thread-tests:
9095 # Code from module pthread_sigmask:
9096 # Code from module pthread_sigmask-tests:
9097 # Code from module putenv:
9098 # Code from module raise:
9099 # Code from module raise-tests:
9100 # Code from module rawmemchr:
9101 # Code from module rawmemchr-tests:
9102 # Code from module readlink:
9103 # Code from module readlink-tests:
9104 # Code from module realloc-gnu:
9105 # Code from module realloc-gnu-tests:
9106 # Code from module realloc-posix:
9107 # Code from module reallocarray:
9108 # Code from module reallocarray-tests:
9109 # Code from module regex:
9110 # Code from module regex-tests:
9111 # Code from module safe-alloc:
9112 # Code from module safe-alloc-tests:
9113 # Code from module same-inode:
9114 # Code from module sched:
9115 # Code from module sched-tests:
9116 # Code from module sched_yield:
9117 # Code from module select:
9118 # Code from module select-tests:
9119 # Code from module selinux-h:
9120 # Code from module setenv:
9121 # Code from module setenv-tests:
9122 # Code from module setlocale:
9123 # Code from module setlocale-null:
9124 # Code from module setlocale-null-tests:
9125 # Code from module setlocale-tests:
9126 # Code from module setsockopt:
9127 # Code from module setsockopt-tests:
9128 # Code from module signal-h:
9129 # Code from module signal-h-tests:
9130 # Code from module sigprocmask:
9131 # Code from module sigprocmask-tests:
9132 # Code from module size_max:
9133 # Code from module sleep:
9134 # Code from module sleep-tests:
9135 # Code from module snippet/_Noreturn:
9136 # Code from module snippet/arg-nonnull:
9137 # Code from module snippet/c++defs:
9138 # Code from module snippet/warn-on-use:
9139 # Code from module socket:
9140 # Code from module socketlib:
9141 # Code from module sockets:
9142 # Code from module sockets-tests:
9143 # Code from module socklen:
9144 # Code from module ssize_t:
9145 # Code from module stat:
9146 # Code from module stat-tests:
9147 # Code from module stat-time:
9148 # Code from module stat-time-tests:
9149 # Code from module std-gnu11:
9150 # Code from module stdalign:
9151 # Code from module stdalign-tests:
9152 # Code from module stdbool:
9153 # Code from module stdbool-tests:
9154 # Code from module stdckdint:
9155 # Code from module stdckdint-tests:
9156 # Code from module stddef:
9157 # Code from module stddef-tests:
9158 # Code from module stdint:
9159 # Code from module stdint-tests:
9160 # Code from module stdio:
9161 # Code from module stdio-tests:
9162 # Code from module stdlib:
9163 # Code from module stdlib-tests:
9164 # Code from module stpcpy:
9165 # Code from module stpncpy:
9166 # Code from module strchrnul:
9167 # Code from module strchrnul-tests:
9168 # Code from module streq:
9169 # Code from module strerror:
9170 # Code from module strerror-override:
9171 # Code from module strerror-tests:
9172 # Code from module strerror_r-posix:
9173 # Code from module strerror_r-posix-tests:
9174 # Code from module string:
9175 # Code from module string-tests:
9176 # Code from module strndup:
9177 # Code from module strnlen:
9178 # Code from module strnlen-tests:
9179 # Code from module strnlen1:
9180 # Code from module strstr:
9181 # Code from module strstr-simple:
9182 # Code from module strstr-tests:
9183 # Code from module symlink:
9184 # Code from module symlink-tests:
9185 # Code from module sys_ioctl:
9186 # Code from module sys_ioctl-tests:
9187 # Code from module sys_random:
9188 # Code from module sys_random-tests:
9189 # Code from module sys_select:
9190 # Code from module sys_select-tests:
9191 # Code from module sys_socket:
9192 # Code from module sys_socket-tests:
9193 # Code from module sys_stat:
9194 # Code from module sys_stat-tests:
9195 # Code from module sys_time:
9196 # Code from module sys_time-tests:
9197 # Code from module sys_types:
9198 # Code from module sys_types-tests:
9199 # Code from module sys_uio:
9200 # Code from module sys_uio-tests:
9201 # Code from module sys_wait:
9202 # Code from module sys_wait-tests:
9203 # Code from module tempname:
9204 # Code from module test-framework-sh:
9205 # Code from module test-framework-sh-tests:
9206 # Code from module thread:
9207 # Code from module thread-optim:
9208 # Code from module thread-tests:
9209 # Code from module threadlib:
9210
9211
9212
9213 # Code from module time:
9214 # Code from module time-tests:
9215 # Code from module unistd:
9216 # Code from module unistd-tests:
9217 # Code from module unsetenv:
9218 # Code from module unsetenv-tests:
9219 # Code from module usleep:
9220 # Code from module usleep-tests:
9221 # Code from module vararrays:
9222 # Code from module vasnprintf:
9223 # Code from module vasnprintf-tests:
9224 # Code from module vasprintf:
9225 # Code from module vasprintf-tests:
9226 # Code from module verify:
9227 # Code from module verify-tests:
9228 # Code from module wchar:
9229 # Code from module wchar-tests:
9230 # Code from module wcrtomb:
9231 # Code from module wcrtomb-tests:
9232 # Code from module wctob:
9233 # Code from module wctomb:
9234 # Code from module wctype-h:
9235 # Code from module wctype-h-tests:
9236 # Code from module windows-mutex:
9237 # Code from module windows-once:
9238 # Code from module windows-recmutex:
9239 # Code from module windows-rwlock:
9240 # Code from module windows-thread:
9241 # Code from module windows-tls:
9242 # Code from module wmemchr:
9243 # Code from module wmempcpy:
9244 # Code from module xalloc-oversized:
9245 # Code from module xsize:
9246 # Code from module yield:
9247
9248 # Check whether --enable-largefile was given.
9249 if test ${enable_largefile+y}
9250 then :
9251 enableval=$enable_largefile;
9252 fi
9253
9254 if test "$enable_largefile" != no
9255 then :
9256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
9257 printf %s "checking for special C compiler options needed for large files... " >&6; }
9258 if test ${ac_cv_sys_largefile_CC+y}
9259 then :
9260 printf %s "(cached) " >&6
9261 else $as_nop
9262 ac_cv_sys_largefile_CC=no
9263 if test "$GCC" != yes; then
9264 ac_save_CC=$CC
9265 while :; do
9266 # IRIX 6.2 and later do not support large files by default,
9267 # so use the C compiler's -n32 option if that helps.
9268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9269 /* end confdefs.h. */
9270 #include <sys/types.h>
9271 /* Check that off_t can represent 2**63 - 1 correctly.
9272 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9273 since some C++ compilers masquerading as C compilers
9274 incorrectly reject 9223372036854775807. */
9275 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
9276 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9277 && LARGE_OFF_T % 2147483647 == 1)
9278 ? 1 : -1];
9279 int
9280 main (void)
9281 {
9282
9283 ;
9284 return 0;
9285 }
9286 _ACEOF
9287 if ac_fn_c_try_compile "$LINENO"
9288 then :
9289 break
9290 fi
9291 rm -f core conftest.err conftest.$ac_objext conftest.beam
9292 CC="$CC -n32"
9293 if ac_fn_c_try_compile "$LINENO"
9294 then :
9295 ac_cv_sys_largefile_CC=' -n32'; break
9296 fi
9297 rm -f core conftest.err conftest.$ac_objext conftest.beam
9298 break
9299 done
9300 CC=$ac_save_CC
9301 rm -f conftest.$ac_ext
9302 fi
9303 fi
9304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
9305 printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
9306 if test "$ac_cv_sys_largefile_CC" != no; then
9307 CC=$CC$ac_cv_sys_largefile_CC
9308 fi
9309
9310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
9311 printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
9312 if test ${ac_cv_sys_file_offset_bits+y}
9313 then :
9314 printf %s "(cached) " >&6
9315 else $as_nop
9316 while :; do
9317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9318 /* end confdefs.h. */
9319 #include <sys/types.h>
9320 /* Check that off_t can represent 2**63 - 1 correctly.
9321 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9322 since some C++ compilers masquerading as C compilers
9323 incorrectly reject 9223372036854775807. */
9324 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
9325 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9326 && LARGE_OFF_T % 2147483647 == 1)
9327 ? 1 : -1];
9328 int
9329 main (void)
9330 {
9331
9332 ;
9333 return 0;
9334 }
9335 _ACEOF
9336 if ac_fn_c_try_compile "$LINENO"
9337 then :
9338 ac_cv_sys_file_offset_bits=no; break
9339 fi
9340 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9342 /* end confdefs.h. */
9343 #undef _FILE_OFFSET_BITS
9344 #define _FILE_OFFSET_BITS 64
9345 #include <sys/types.h>
9346 /* Check that off_t can represent 2**63 - 1 correctly.
9347 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9348 since some C++ compilers masquerading as C compilers
9349 incorrectly reject 9223372036854775807. */
9350 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
9351 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9352 && LARGE_OFF_T % 2147483647 == 1)
9353 ? 1 : -1];
9354 int
9355 main (void)
9356 {
9357
9358 ;
9359 return 0;
9360 }
9361 _ACEOF
9362 if ac_fn_c_try_compile "$LINENO"
9363 then :
9364 ac_cv_sys_file_offset_bits=64; break
9365 fi
9366 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9367 ac_cv_sys_file_offset_bits=unknown
9368 break
9369 done
9370 fi
9371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
9372 printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
9373 case $ac_cv_sys_file_offset_bits in #(
9374 no | unknown) ;;
9375 *)
9376 printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
9377 ;;
9378 esac
9379 rm -rf conftest*
9380 case $ac_cv_sys_file_offset_bits in #(
9381 unknown) :
9382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
9383 printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
9384 if test ${ac_cv_sys_large_files+y}
9385 then :
9386 printf %s "(cached) " >&6
9387 else $as_nop
9388 while :; do
9389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9390 /* end confdefs.h. */
9391 #include <sys/types.h>
9392 /* Check that off_t can represent 2**63 - 1 correctly.
9393 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9394 since some C++ compilers masquerading as C compilers
9395 incorrectly reject 9223372036854775807. */
9396 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
9397 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9398 && LARGE_OFF_T % 2147483647 == 1)
9399 ? 1 : -1];
9400 int
9401 main (void)
9402 {
9403
9404 ;
9405 return 0;
9406 }
9407 _ACEOF
9408 if ac_fn_c_try_compile "$LINENO"
9409 then :
9410 ac_cv_sys_large_files=no; break
9411 fi
9412 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9414 /* end confdefs.h. */
9415 #undef _LARGE_FILES
9416 #define _LARGE_FILES 1
9417 #include <sys/types.h>
9418 /* Check that off_t can represent 2**63 - 1 correctly.
9419 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9420 since some C++ compilers masquerading as C compilers
9421 incorrectly reject 9223372036854775807. */
9422 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
9423 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9424 && LARGE_OFF_T % 2147483647 == 1)
9425 ? 1 : -1];
9426 int
9427 main (void)
9428 {
9429
9430 ;
9431 return 0;
9432 }
9433 _ACEOF
9434 if ac_fn_c_try_compile "$LINENO"
9435 then :
9436 ac_cv_sys_large_files=1; break
9437 fi
9438 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9439 ac_cv_sys_large_files=unknown
9440 break
9441 done
9442 fi
9443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
9444 printf "%s\n" "$ac_cv_sys_large_files" >&6; }
9445 case $ac_cv_sys_large_files in #(
9446 no | unknown) ;;
9447 *)
9448 printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
9449 ;;
9450 esac
9451 rm -rf conftest* ;; #(
9452 64) :
9453
9454 # Check whether --enable-year2038 was given.
9455 if test ${enable_year2038+y}
9456 then :
9457 enableval=$enable_year2038;
9458 fi
9459
9460 if test "$enable_year2038" != no
9461 then :
9462
9463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for time_t past the year 2038" >&5
9464 printf %s "checking for time_t past the year 2038... " >&6; }
9465 if test ${gl_cv_type_time_t_y2038+y}
9466 then :
9467 printf %s "(cached) " >&6
9468 else $as_nop
9469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9470 /* end confdefs.h. */
9471
9472 #include <time.h>
9473 /* Check that time_t can represent 2**32 - 1 correctly. */
9474 #define LARGE_TIME_T \\
9475 ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
9476 int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
9477 && LARGE_TIME_T % 65537 == 0)
9478 ? 1 : -1];
9479
9480 _ACEOF
9481 if ac_fn_c_try_compile "$LINENO"
9482 then :
9483 gl_cv_type_time_t_y2038=yes
9484 else $as_nop
9485 gl_cv_type_time_t_y2038=no
9486 fi
9487 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9488
9489 fi
9490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_time_t_y2038" >&5
9491 printf "%s\n" "$gl_cv_type_time_t_y2038" >&6; }
9492 if test "$gl_cv_type_time_t_y2038" = no; then
9493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit time_t with _TIME_BITS=64" >&5
9494 printf %s "checking for 64-bit time_t with _TIME_BITS=64... " >&6; }
9495 if test ${gl_cv_type_time_t_bits_macro+y}
9496 then :
9497 printf %s "(cached) " >&6
9498 else $as_nop
9499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9500 /* end confdefs.h. */
9501 #define _TIME_BITS 64
9502 #define _FILE_OFFSET_BITS 64
9503
9504 #include <time.h>
9505 /* Check that time_t can represent 2**32 - 1 correctly. */
9506 #define LARGE_TIME_T \\
9507 ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
9508 int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
9509 && LARGE_TIME_T % 65537 == 0)
9510 ? 1 : -1];
9511
9512 _ACEOF
9513 if ac_fn_c_try_compile "$LINENO"
9514 then :
9515 gl_cv_type_time_t_bits_macro=yes
9516 else $as_nop
9517 gl_cv_type_time_t_bits_macro=no
9518 fi
9519 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9520
9521 fi
9522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_time_t_bits_macro" >&5
9523 printf "%s\n" "$gl_cv_type_time_t_bits_macro" >&6; }
9524 if test "$gl_cv_type_time_t_bits_macro" = yes; then
9525
9526 printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h
9527
9528
9529 printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
9530
9531 gl_cv_type_time_t_y2038=yes
9532 fi
9533 fi
9534 if test $gl_cv_type_time_t_y2038 = no; then
9535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9536 /* end confdefs.h. */
9537 #ifdef _USE_32BIT_TIME_T
9538 int ok;
9539 #else
9540 error fail
9541 #endif
9542
9543 _ACEOF
9544 if ac_fn_c_try_compile "$LINENO"
9545 then :
9546 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9547 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
9548 as_fn_error $? "The 'time_t' type stops working after January 2038.
9549 Remove _USE_32BIT_TIME_T from the compiler flags.
9550 See \`config.log' for more details" "$LINENO" 5; }
9551 else $as_nop
9552 # If not cross-compiling and says we should check,
9553 # and 'touch' works with a large timestamp, then evidently wider time_t
9554 # is desired and supported, so fail and ask the builder to fix the
9555 # problem. Otherwise, just warn the builder.
9556
9557 if test "$gl_warned_about_y2038" != yes; then
9558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: The 'time_t' type stops working after January 2038,
9559 and this package needs a wider 'time_t' type
9560 if there is any way to access timestamps after that.
9561 Configure with 'CC=\"${CC} -m64\"' perhaps?" >&5
9562 printf "%s\n" "$as_me: WARNING: The 'time_t' type stops working after January 2038,
9563 and this package needs a wider 'time_t' type
9564 if there is any way to access timestamps after that.
9565 Configure with 'CC=\"${CC} -m64\"' perhaps?" >&2;}
9566 gl_warned_about_y2038=yes
9567 fi
9568
9569 fi
9570 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9571 fi
9572 fi
9573 ;; #(
9574 *) :
9575 ;;
9576 esac
9577 fi
9578
9579
9580
9581
9582 case `pwd` in
9583 *\ * | *\ *)
9584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
9585 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
9586 esac
9587
9588
9589
9590 macro_version='2.4.7'
9591 macro_revision='2.4.7'
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606 ltmain=$ac_aux_dir/ltmain.sh
9607
9608 # Backslashify metacharacters that are still active within
9609 # double-quoted strings.
9610 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9611
9612 # Same as above, but do not quote variable references.
9613 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9614
9615 # Sed substitution to delay expansion of an escaped shell variable in a
9616 # double_quote_subst'ed string.
9617 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9618
9619 # Sed substitution to delay expansion of an escaped single quote.
9620 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9621
9622 # Sed substitution to avoid accidental globbing in evaled expressions
9623 no_glob_subst='s/\*/\\\*/g'
9624
9625 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9626 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
9627 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
9628
9629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
9630 printf %s "checking how to print strings... " >&6; }
9631 # Test print first, because it will be a builtin if present.
9632 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
9633 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
9634 ECHO='print -r --'
9635 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
9636 ECHO='printf %s\n'
9637 else
9638 # Use this function as a fallback that always works.
9639 func_fallback_echo ()
9640 {
9641 eval 'cat <<_LTECHO_EOF
9642 $1
9643 _LTECHO_EOF'
9644 }
9645 ECHO='func_fallback_echo'
9646 fi
9647
9648 # func_echo_all arg...
9649 # Invoke $ECHO with all args, space-separated.
9650 func_echo_all ()
9651 {
9652 $ECHO ""
9653 }
9654
9655 case $ECHO in
9656 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
9657 printf "%s\n" "printf" >&6; } ;;
9658 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
9659 printf "%s\n" "print -r" >&6; } ;;
9660 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
9661 printf "%s\n" "cat" >&6; } ;;
9662 esac
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
9678 printf %s "checking for a sed that does not truncate output... " >&6; }
9679 if test ${ac_cv_path_SED+y}
9680 then :
9681 printf %s "(cached) " >&6
9682 else $as_nop
9683 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
9684 for ac_i in 1 2 3 4 5 6 7; do
9685 ac_script="$ac_script$as_nl$ac_script"
9686 done
9687 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
9688 { ac_script=; unset ac_script;}
9689 if test -z "$SED"; then
9690 ac_path_SED_found=false
9691 # Loop through the user's path and test for each of PROGNAME-LIST
9692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9693 for as_dir in $PATH
9694 do
9695 IFS=$as_save_IFS
9696 case $as_dir in #(((
9697 '') as_dir=./ ;;
9698 */) ;;
9699 *) as_dir=$as_dir/ ;;
9700 esac
9701 for ac_prog in sed gsed
9702 do
9703 for ac_exec_ext in '' $ac_executable_extensions; do
9704 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
9705 as_fn_executable_p "$ac_path_SED" || continue
9706 # Check for GNU ac_path_SED and select it if it is found.
9707 # Check for GNU $ac_path_SED
9708 case `"$ac_path_SED" --version 2>&1` in
9709 *GNU*)
9710 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
9711 *)
9712 ac_count=0
9713 printf %s 0123456789 >"conftest.in"
9714 while :
9715 do
9716 cat "conftest.in" "conftest.in" >"conftest.tmp"
9717 mv "conftest.tmp" "conftest.in"
9718 cp "conftest.in" "conftest.nl"
9719 printf "%s\n" '' >> "conftest.nl"
9720 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
9721 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9722 as_fn_arith $ac_count + 1 && ac_count=$as_val
9723 if test $ac_count -gt ${ac_path_SED_max-0}; then
9724 # Best one so far, save it but keep looking for a better one
9725 ac_cv_path_SED="$ac_path_SED"
9726 ac_path_SED_max=$ac_count
9727 fi
9728 # 10*(2^10) chars as input seems more than enough
9729 test $ac_count -gt 10 && break
9730 done
9731 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9732 esac
9733
9734 $ac_path_SED_found && break 3
9735 done
9736 done
9737 done
9738 IFS=$as_save_IFS
9739 if test -z "$ac_cv_path_SED"; then
9740 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
9741 fi
9742 else
9743 ac_cv_path_SED=$SED
9744 fi
9745
9746 fi
9747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
9748 printf "%s\n" "$ac_cv_path_SED" >&6; }
9749 SED="$ac_cv_path_SED"
9750 rm -f conftest.sed
9751
9752 test -z "$SED" && SED=sed
9753 Xsed="$SED -e 1s/^X//"
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
9766 printf %s "checking for fgrep... " >&6; }
9767 if test ${ac_cv_path_FGREP+y}
9768 then :
9769 printf %s "(cached) " >&6
9770 else $as_nop
9771 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
9772 then ac_cv_path_FGREP="$GREP -F"
9773 else
9774 if test -z "$FGREP"; then
9775 ac_path_FGREP_found=false
9776 # Loop through the user's path and test for each of PROGNAME-LIST
9777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9778 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9779 do
9780 IFS=$as_save_IFS
9781 case $as_dir in #(((
9782 '') as_dir=./ ;;
9783 */) ;;
9784 *) as_dir=$as_dir/ ;;
9785 esac
9786 for ac_prog in fgrep
9787 do
9788 for ac_exec_ext in '' $ac_executable_extensions; do
9789 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
9790 as_fn_executable_p "$ac_path_FGREP" || continue
9791 # Check for GNU ac_path_FGREP and select it if it is found.
9792 # Check for GNU $ac_path_FGREP
9793 case `"$ac_path_FGREP" --version 2>&1` in
9794 *GNU*)
9795 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
9796 *)
9797 ac_count=0
9798 printf %s 0123456789 >"conftest.in"
9799 while :
9800 do
9801 cat "conftest.in" "conftest.in" >"conftest.tmp"
9802 mv "conftest.tmp" "conftest.in"
9803 cp "conftest.in" "conftest.nl"
9804 printf "%s\n" 'FGREP' >> "conftest.nl"
9805 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
9806 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9807 as_fn_arith $ac_count + 1 && ac_count=$as_val
9808 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
9809 # Best one so far, save it but keep looking for a better one
9810 ac_cv_path_FGREP="$ac_path_FGREP"
9811 ac_path_FGREP_max=$ac_count
9812 fi
9813 # 10*(2^10) chars as input seems more than enough
9814 test $ac_count -gt 10 && break
9815 done
9816 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9817 esac
9818
9819 $ac_path_FGREP_found && break 3
9820 done
9821 done
9822 done
9823 IFS=$as_save_IFS
9824 if test -z "$ac_cv_path_FGREP"; then
9825 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
9826 fi
9827 else
9828 ac_cv_path_FGREP=$FGREP
9829 fi
9830
9831 fi
9832 fi
9833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
9834 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
9835 FGREP="$ac_cv_path_FGREP"
9836
9837
9838 test -z "$GREP" && GREP=grep
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858 # Check whether --with-gnu-ld was given.
9859 if test ${with_gnu_ld+y}
9860 then :
9861 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
9862 else $as_nop
9863 with_gnu_ld=no
9864 fi
9865
9866 ac_prog=ld
9867 if test yes = "$GCC"; then
9868 # Check if gcc -print-prog-name=ld gives a path.
9869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
9870 printf %s "checking for ld used by $CC... " >&6; }
9871 case $host in
9872 *-*-mingw*)
9873 # gcc leaves a trailing carriage return, which upsets mingw
9874 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9875 *)
9876 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9877 esac
9878 case $ac_prog in
9879 # Accept absolute paths.
9880 [\\/]* | ?:[\\/]*)
9881 re_direlt='/[^/][^/]*/\.\./'
9882 # Canonicalize the pathname of ld
9883 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
9884 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
9885 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
9886 done
9887 test -z "$LD" && LD=$ac_prog
9888 ;;
9889 "")
9890 # If it fails, then pretend we aren't using GCC.
9891 ac_prog=ld
9892 ;;
9893 *)
9894 # If it is relative, then search for the first ld in PATH.
9895 with_gnu_ld=unknown
9896 ;;
9897 esac
9898 elif test yes = "$with_gnu_ld"; then
9899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9900 printf %s "checking for GNU ld... " >&6; }
9901 else
9902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9903 printf %s "checking for non-GNU ld... " >&6; }
9904 fi
9905 if test ${lt_cv_path_LD+y}
9906 then :
9907 printf %s "(cached) " >&6
9908 else $as_nop
9909 if test -z "$LD"; then
9910 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9911 for ac_dir in $PATH; do
9912 IFS=$lt_save_ifs
9913 test -z "$ac_dir" && ac_dir=.
9914 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9915 lt_cv_path_LD=$ac_dir/$ac_prog
9916 # Check to see if the program is GNU ld. I'd rather use --version,
9917 # but apparently some variants of GNU ld only accept -v.
9918 # Break only if it was the GNU/non-GNU ld that we prefer.
9919 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9920 *GNU* | *'with BFD'*)
9921 test no != "$with_gnu_ld" && break
9922 ;;
9923 *)
9924 test yes != "$with_gnu_ld" && break
9925 ;;
9926 esac
9927 fi
9928 done
9929 IFS=$lt_save_ifs
9930 else
9931 lt_cv_path_LD=$LD # Let the user override the test with a path.
9932 fi
9933 fi
9934
9935 LD=$lt_cv_path_LD
9936 if test -n "$LD"; then
9937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9938 printf "%s\n" "$LD" >&6; }
9939 else
9940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9941 printf "%s\n" "no" >&6; }
9942 fi
9943 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
9944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9945 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
9946 if test ${lt_cv_prog_gnu_ld+y}
9947 then :
9948 printf %s "(cached) " >&6
9949 else $as_nop
9950 # I'd rather use --version here, but apparently some GNU lds only accept -v.
9951 case `$LD -v 2>&1 </dev/null` in
9952 *GNU* | *'with BFD'*)
9953 lt_cv_prog_gnu_ld=yes
9954 ;;
9955 *)
9956 lt_cv_prog_gnu_ld=no
9957 ;;
9958 esac
9959 fi
9960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
9961 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
9962 with_gnu_ld=$lt_cv_prog_gnu_ld
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
9973 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
9974 if test ${lt_cv_path_NM+y}
9975 then :
9976 printf %s "(cached) " >&6
9977 else $as_nop
9978 if test -n "$NM"; then
9979 # Let the user override the test.
9980 lt_cv_path_NM=$NM
9981 else
9982 lt_nm_to_check=${ac_tool_prefix}nm
9983 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9984 lt_nm_to_check="$lt_nm_to_check nm"
9985 fi
9986 for lt_tmp_nm in $lt_nm_to_check; do
9987 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9988 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9989 IFS=$lt_save_ifs
9990 test -z "$ac_dir" && ac_dir=.
9991 tmp_nm=$ac_dir/$lt_tmp_nm
9992 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
9993 # Check to see if the nm accepts a BSD-compat flag.
9994 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
9995 # nm: unknown option "B" ignored
9996 # Tru64's nm complains that /dev/null is an invalid object file
9997 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
9998 case $build_os in
9999 mingw*) lt_bad_file=conftest.nm/nofile ;;
10000 *) lt_bad_file=/dev/null ;;
10001 esac
10002 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
10003 *$lt_bad_file* | *'Invalid file or object type'*)
10004 lt_cv_path_NM="$tmp_nm -B"
10005 break 2
10006 ;;
10007 *)
10008 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
10009 */dev/null*)
10010 lt_cv_path_NM="$tmp_nm -p"
10011 break 2
10012 ;;
10013 *)
10014 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
10015 continue # so that we can try to find one that supports BSD flags
10016 ;;
10017 esac
10018 ;;
10019 esac
10020 fi
10021 done
10022 IFS=$lt_save_ifs
10023 done
10024 : ${lt_cv_path_NM=no}
10025 fi
10026 fi
10027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
10028 printf "%s\n" "$lt_cv_path_NM" >&6; }
10029 if test no != "$lt_cv_path_NM"; then
10030 NM=$lt_cv_path_NM
10031 else
10032 # Didn't find any BSD compatible name lister, look for dumpbin.
10033 if test -n "$DUMPBIN"; then :
10034 # Let the user override the test.
10035 else
10036 if test -n "$ac_tool_prefix"; then
10037 for ac_prog in dumpbin "link -dump"
10038 do
10039 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10040 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10042 printf %s "checking for $ac_word... " >&6; }
10043 if test ${ac_cv_prog_DUMPBIN+y}
10044 then :
10045 printf %s "(cached) " >&6
10046 else $as_nop
10047 if test -n "$DUMPBIN"; then
10048 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
10049 else
10050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10051 for as_dir in $PATH
10052 do
10053 IFS=$as_save_IFS
10054 case $as_dir in #(((
10055 '') as_dir=./ ;;
10056 */) ;;
10057 *) as_dir=$as_dir/ ;;
10058 esac
10059 for ac_exec_ext in '' $ac_executable_extensions; do
10060 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10061 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
10062 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10063 break 2
10064 fi
10065 done
10066 done
10067 IFS=$as_save_IFS
10068
10069 fi
10070 fi
10071 DUMPBIN=$ac_cv_prog_DUMPBIN
10072 if test -n "$DUMPBIN"; then
10073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
10074 printf "%s\n" "$DUMPBIN" >&6; }
10075 else
10076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10077 printf "%s\n" "no" >&6; }
10078 fi
10079
10080
10081 test -n "$DUMPBIN" && break
10082 done
10083 fi
10084 if test -z "$DUMPBIN"; then
10085 ac_ct_DUMPBIN=$DUMPBIN
10086 for ac_prog in dumpbin "link -dump"
10087 do
10088 # Extract the first word of "$ac_prog", so it can be a program name with args.
10089 set dummy $ac_prog; ac_word=$2
10090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10091 printf %s "checking for $ac_word... " >&6; }
10092 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
10093 then :
10094 printf %s "(cached) " >&6
10095 else $as_nop
10096 if test -n "$ac_ct_DUMPBIN"; then
10097 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
10098 else
10099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10100 for as_dir in $PATH
10101 do
10102 IFS=$as_save_IFS
10103 case $as_dir in #(((
10104 '') as_dir=./ ;;
10105 */) ;;
10106 *) as_dir=$as_dir/ ;;
10107 esac
10108 for ac_exec_ext in '' $ac_executable_extensions; do
10109 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10110 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
10111 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10112 break 2
10113 fi
10114 done
10115 done
10116 IFS=$as_save_IFS
10117
10118 fi
10119 fi
10120 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
10121 if test -n "$ac_ct_DUMPBIN"; then
10122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
10123 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
10124 else
10125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10126 printf "%s\n" "no" >&6; }
10127 fi
10128
10129
10130 test -n "$ac_ct_DUMPBIN" && break
10131 done
10132
10133 if test "x$ac_ct_DUMPBIN" = x; then
10134 DUMPBIN=":"
10135 else
10136 case $cross_compiling:$ac_tool_warned in
10137 yes:)
10138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10139 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10140 ac_tool_warned=yes ;;
10141 esac
10142 DUMPBIN=$ac_ct_DUMPBIN
10143 fi
10144 fi
10145
10146 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
10147 *COFF*)
10148 DUMPBIN="$DUMPBIN -symbols -headers"
10149 ;;
10150 *)
10151 DUMPBIN=:
10152 ;;
10153 esac
10154 fi
10155
10156 if test : != "$DUMPBIN"; then
10157 NM=$DUMPBIN
10158 fi
10159 fi
10160 test -z "$NM" && NM=nm
10161
10162
10163
10164
10165
10166
10167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
10168 printf %s "checking the name lister ($NM) interface... " >&6; }
10169 if test ${lt_cv_nm_interface+y}
10170 then :
10171 printf %s "(cached) " >&6
10172 else $as_nop
10173 lt_cv_nm_interface="BSD nm"
10174 echo "int some_variable = 0;" > conftest.$ac_ext
10175 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
10176 (eval "$ac_compile" 2>conftest.err)
10177 cat conftest.err >&5
10178 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
10179 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
10180 cat conftest.err >&5
10181 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
10182 cat conftest.out >&5
10183 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
10184 lt_cv_nm_interface="MS dumpbin"
10185 fi
10186 rm -f conftest*
10187 fi
10188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
10189 printf "%s\n" "$lt_cv_nm_interface" >&6; }
10190
10191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
10192 printf %s "checking whether ln -s works... " >&6; }
10193 LN_S=$as_ln_s
10194 if test "$LN_S" = "ln -s"; then
10195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10196 printf "%s\n" "yes" >&6; }
10197 else
10198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
10199 printf "%s\n" "no, using $LN_S" >&6; }
10200 fi
10201
10202 # find the maximum length of command line arguments
10203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
10204 printf %s "checking the maximum length of command line arguments... " >&6; }
10205 if test ${lt_cv_sys_max_cmd_len+y}
10206 then :
10207 printf %s "(cached) " >&6
10208 else $as_nop
10209 i=0
10210 teststring=ABCD
10211
10212 case $build_os in
10213 msdosdjgpp*)
10214 # On DJGPP, this test can blow up pretty badly due to problems in libc
10215 # (any single argument exceeding 2000 bytes causes a buffer overrun
10216 # during glob expansion). Even if it were fixed, the result of this
10217 # check would be larger than it should be.
10218 lt_cv_sys_max_cmd_len=12288; # 12K is about right
10219 ;;
10220
10221 gnu*)
10222 # Under GNU Hurd, this test is not required because there is
10223 # no limit to the length of command line arguments.
10224 # Libtool will interpret -1 as no limit whatsoever
10225 lt_cv_sys_max_cmd_len=-1;
10226 ;;
10227
10228 cygwin* | mingw* | cegcc*)
10229 # On Win9x/ME, this test blows up -- it succeeds, but takes
10230 # about 5 minutes as the teststring grows exponentially.
10231 # Worse, since 9x/ME are not pre-emptively multitasking,
10232 # you end up with a "frozen" computer, even though with patience
10233 # the test eventually succeeds (with a max line length of 256k).
10234 # Instead, let's just punt: use the minimum linelength reported by
10235 # all of the supported platforms: 8192 (on NT/2K/XP).
10236 lt_cv_sys_max_cmd_len=8192;
10237 ;;
10238
10239 mint*)
10240 # On MiNT this can take a long time and run out of memory.
10241 lt_cv_sys_max_cmd_len=8192;
10242 ;;
10243
10244 amigaos*)
10245 # On AmigaOS with pdksh, this test takes hours, literally.
10246 # So we just punt and use a minimum line length of 8192.
10247 lt_cv_sys_max_cmd_len=8192;
10248 ;;
10249
10250 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
10251 # This has been around since 386BSD, at least. Likely further.
10252 if test -x /sbin/sysctl; then
10253 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10254 elif test -x /usr/sbin/sysctl; then
10255 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10256 else
10257 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
10258 fi
10259 # And add a safety zone
10260 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10261 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10262 ;;
10263
10264 interix*)
10265 # We know the value 262144 and hardcode it with a safety zone (like BSD)
10266 lt_cv_sys_max_cmd_len=196608
10267 ;;
10268
10269 os2*)
10270 # The test takes a long time on OS/2.
10271 lt_cv_sys_max_cmd_len=8192
10272 ;;
10273
10274 osf*)
10275 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
10276 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
10277 # nice to cause kernel panics so lets avoid the loop below.
10278 # First set a reasonable default.
10279 lt_cv_sys_max_cmd_len=16384
10280 #
10281 if test -x /sbin/sysconfig; then
10282 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
10283 *1*) lt_cv_sys_max_cmd_len=-1 ;;
10284 esac
10285 fi
10286 ;;
10287 sco3.2v5*)
10288 lt_cv_sys_max_cmd_len=102400
10289 ;;
10290 sysv5* | sco5v6* | sysv4.2uw2*)
10291 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
10292 if test -n "$kargmax"; then
10293 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
10294 else
10295 lt_cv_sys_max_cmd_len=32768
10296 fi
10297 ;;
10298 *)
10299 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
10300 if test -n "$lt_cv_sys_max_cmd_len" && \
10301 test undefined != "$lt_cv_sys_max_cmd_len"; then
10302 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10303 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10304 else
10305 # Make teststring a little bigger before we do anything with it.
10306 # a 1K string should be a reasonable start.
10307 for i in 1 2 3 4 5 6 7 8; do
10308 teststring=$teststring$teststring
10309 done
10310 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10311 # If test is not a shell built-in, we'll probably end up computing a
10312 # maximum length that is only half of the actual maximum length, but
10313 # we can't tell.
10314 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
10315 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
10316 test 17 != "$i" # 1/2 MB should be enough
10317 do
10318 i=`expr $i + 1`
10319 teststring=$teststring$teststring
10320 done
10321 # Only check the string length outside the loop.
10322 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
10323 teststring=
10324 # Add a significant safety factor because C++ compilers can tack on
10325 # massive amounts of additional arguments before passing them to the
10326 # linker. It appears as though 1/2 is a usable value.
10327 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10328 fi
10329 ;;
10330 esac
10331
10332 fi
10333
10334 if test -n "$lt_cv_sys_max_cmd_len"; then
10335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
10336 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
10337 else
10338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
10339 printf "%s\n" "none" >&6; }
10340 fi
10341 max_cmd_len=$lt_cv_sys_max_cmd_len
10342
10343
10344
10345
10346
10347
10348 : ${CP="cp -f"}
10349 : ${MV="mv -f"}
10350 : ${RM="rm -f"}
10351
10352 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10353 lt_unset=unset
10354 else
10355 lt_unset=false
10356 fi
10357
10358
10359
10360
10361
10362 # test EBCDIC or ASCII
10363 case `echo X|tr X '\101'` in
10364 A) # ASCII based system
10365 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
10366 lt_SP2NL='tr \040 \012'
10367 lt_NL2SP='tr \015\012 \040\040'
10368 ;;
10369 *) # EBCDIC based system
10370 lt_SP2NL='tr \100 \n'
10371 lt_NL2SP='tr \r\n \100\100'
10372 ;;
10373 esac
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
10384 printf %s "checking how to convert $build file names to $host format... " >&6; }
10385 if test ${lt_cv_to_host_file_cmd+y}
10386 then :
10387 printf %s "(cached) " >&6
10388 else $as_nop
10389 case $host in
10390 *-*-mingw* )
10391 case $build in
10392 *-*-mingw* ) # actually msys
10393 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
10394 ;;
10395 *-*-cygwin* )
10396 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
10397 ;;
10398 * ) # otherwise, assume *nix
10399 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
10400 ;;
10401 esac
10402 ;;
10403 *-*-cygwin* )
10404 case $build in
10405 *-*-mingw* ) # actually msys
10406 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
10407 ;;
10408 *-*-cygwin* )
10409 lt_cv_to_host_file_cmd=func_convert_file_noop
10410 ;;
10411 * ) # otherwise, assume *nix
10412 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
10413 ;;
10414 esac
10415 ;;
10416 * ) # unhandled hosts (and "normal" native builds)
10417 lt_cv_to_host_file_cmd=func_convert_file_noop
10418 ;;
10419 esac
10420
10421 fi
10422
10423 to_host_file_cmd=$lt_cv_to_host_file_cmd
10424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
10425 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
10426
10427
10428
10429
10430
10431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
10432 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
10433 if test ${lt_cv_to_tool_file_cmd+y}
10434 then :
10435 printf %s "(cached) " >&6
10436 else $as_nop
10437 #assume ordinary cross tools, or native build.
10438 lt_cv_to_tool_file_cmd=func_convert_file_noop
10439 case $host in
10440 *-*-mingw* )
10441 case $build in
10442 *-*-mingw* ) # actually msys
10443 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
10444 ;;
10445 esac
10446 ;;
10447 esac
10448
10449 fi
10450
10451 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
10452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
10453 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
10454
10455
10456
10457
10458
10459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
10460 printf %s "checking for $LD option to reload object files... " >&6; }
10461 if test ${lt_cv_ld_reload_flag+y}
10462 then :
10463 printf %s "(cached) " >&6
10464 else $as_nop
10465 lt_cv_ld_reload_flag='-r'
10466 fi
10467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
10468 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
10469 reload_flag=$lt_cv_ld_reload_flag
10470 case $reload_flag in
10471 "" | " "*) ;;
10472 *) reload_flag=" $reload_flag" ;;
10473 esac
10474 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10475 case $host_os in
10476 cygwin* | mingw* | pw32* | cegcc*)
10477 if test yes != "$GCC"; then
10478 reload_cmds=false
10479 fi
10480 ;;
10481 darwin*)
10482 if test yes = "$GCC"; then
10483 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
10484 else
10485 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10486 fi
10487 ;;
10488 esac
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498 if test -n "$ac_tool_prefix"; then
10499 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
10500 set dummy ${ac_tool_prefix}file; ac_word=$2
10501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10502 printf %s "checking for $ac_word... " >&6; }
10503 if test ${ac_cv_prog_FILECMD+y}
10504 then :
10505 printf %s "(cached) " >&6
10506 else $as_nop
10507 if test -n "$FILECMD"; then
10508 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
10509 else
10510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10511 for as_dir in $PATH
10512 do
10513 IFS=$as_save_IFS
10514 case $as_dir in #(((
10515 '') as_dir=./ ;;
10516 */) ;;
10517 *) as_dir=$as_dir/ ;;
10518 esac
10519 for ac_exec_ext in '' $ac_executable_extensions; do
10520 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10521 ac_cv_prog_FILECMD="${ac_tool_prefix}file"
10522 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10523 break 2
10524 fi
10525 done
10526 done
10527 IFS=$as_save_IFS
10528
10529 fi
10530 fi
10531 FILECMD=$ac_cv_prog_FILECMD
10532 if test -n "$FILECMD"; then
10533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
10534 printf "%s\n" "$FILECMD" >&6; }
10535 else
10536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10537 printf "%s\n" "no" >&6; }
10538 fi
10539
10540
10541 fi
10542 if test -z "$ac_cv_prog_FILECMD"; then
10543 ac_ct_FILECMD=$FILECMD
10544 # Extract the first word of "file", so it can be a program name with args.
10545 set dummy file; ac_word=$2
10546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10547 printf %s "checking for $ac_word... " >&6; }
10548 if test ${ac_cv_prog_ac_ct_FILECMD+y}
10549 then :
10550 printf %s "(cached) " >&6
10551 else $as_nop
10552 if test -n "$ac_ct_FILECMD"; then
10553 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
10554 else
10555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10556 for as_dir in $PATH
10557 do
10558 IFS=$as_save_IFS
10559 case $as_dir in #(((
10560 '') as_dir=./ ;;
10561 */) ;;
10562 *) as_dir=$as_dir/ ;;
10563 esac
10564 for ac_exec_ext in '' $ac_executable_extensions; do
10565 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10566 ac_cv_prog_ac_ct_FILECMD="file"
10567 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10568 break 2
10569 fi
10570 done
10571 done
10572 IFS=$as_save_IFS
10573
10574 fi
10575 fi
10576 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
10577 if test -n "$ac_ct_FILECMD"; then
10578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
10579 printf "%s\n" "$ac_ct_FILECMD" >&6; }
10580 else
10581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10582 printf "%s\n" "no" >&6; }
10583 fi
10584
10585 if test "x$ac_ct_FILECMD" = x; then
10586 FILECMD=":"
10587 else
10588 case $cross_compiling:$ac_tool_warned in
10589 yes:)
10590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10591 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10592 ac_tool_warned=yes ;;
10593 esac
10594 FILECMD=$ac_ct_FILECMD
10595 fi
10596 else
10597 FILECMD="$ac_cv_prog_FILECMD"
10598 fi
10599
10600
10601
10602
10603
10604
10605
10606 if test -n "$ac_tool_prefix"; then
10607 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10608 set dummy ${ac_tool_prefix}objdump; ac_word=$2
10609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10610 printf %s "checking for $ac_word... " >&6; }
10611 if test ${ac_cv_prog_OBJDUMP+y}
10612 then :
10613 printf %s "(cached) " >&6
10614 else $as_nop
10615 if test -n "$OBJDUMP"; then
10616 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10617 else
10618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10619 for as_dir in $PATH
10620 do
10621 IFS=$as_save_IFS
10622 case $as_dir in #(((
10623 '') as_dir=./ ;;
10624 */) ;;
10625 *) as_dir=$as_dir/ ;;
10626 esac
10627 for ac_exec_ext in '' $ac_executable_extensions; do
10628 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10629 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10630 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10631 break 2
10632 fi
10633 done
10634 done
10635 IFS=$as_save_IFS
10636
10637 fi
10638 fi
10639 OBJDUMP=$ac_cv_prog_OBJDUMP
10640 if test -n "$OBJDUMP"; then
10641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10642 printf "%s\n" "$OBJDUMP" >&6; }
10643 else
10644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10645 printf "%s\n" "no" >&6; }
10646 fi
10647
10648
10649 fi
10650 if test -z "$ac_cv_prog_OBJDUMP"; then
10651 ac_ct_OBJDUMP=$OBJDUMP
10652 # Extract the first word of "objdump", so it can be a program name with args.
10653 set dummy objdump; ac_word=$2
10654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10655 printf %s "checking for $ac_word... " >&6; }
10656 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
10657 then :
10658 printf %s "(cached) " >&6
10659 else $as_nop
10660 if test -n "$ac_ct_OBJDUMP"; then
10661 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10662 else
10663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10664 for as_dir in $PATH
10665 do
10666 IFS=$as_save_IFS
10667 case $as_dir in #(((
10668 '') as_dir=./ ;;
10669 */) ;;
10670 *) as_dir=$as_dir/ ;;
10671 esac
10672 for ac_exec_ext in '' $ac_executable_extensions; do
10673 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10674 ac_cv_prog_ac_ct_OBJDUMP="objdump"
10675 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10676 break 2
10677 fi
10678 done
10679 done
10680 IFS=$as_save_IFS
10681
10682 fi
10683 fi
10684 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10685 if test -n "$ac_ct_OBJDUMP"; then
10686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10687 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
10688 else
10689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10690 printf "%s\n" "no" >&6; }
10691 fi
10692
10693 if test "x$ac_ct_OBJDUMP" = x; then
10694 OBJDUMP="false"
10695 else
10696 case $cross_compiling:$ac_tool_warned in
10697 yes:)
10698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10699 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10700 ac_tool_warned=yes ;;
10701 esac
10702 OBJDUMP=$ac_ct_OBJDUMP
10703 fi
10704 else
10705 OBJDUMP="$ac_cv_prog_OBJDUMP"
10706 fi
10707
10708 test -z "$OBJDUMP" && OBJDUMP=objdump
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
10719 printf %s "checking how to recognize dependent libraries... " >&6; }
10720 if test ${lt_cv_deplibs_check_method+y}
10721 then :
10722 printf %s "(cached) " >&6
10723 else $as_nop
10724 lt_cv_file_magic_cmd='$MAGIC_CMD'
10725 lt_cv_file_magic_test_file=
10726 lt_cv_deplibs_check_method='unknown'
10727 # Need to set the preceding variable on all platforms that support
10728 # interlibrary dependencies.
10729 # 'none' -- dependencies not supported.
10730 # 'unknown' -- same as none, but documents that we really don't know.
10731 # 'pass_all' -- all dependencies passed with no checks.
10732 # 'test_compile' -- check by making test program.
10733 # 'file_magic [[regex]]' -- check by looking for files in library path
10734 # that responds to the $file_magic_cmd with a given extended regex.
10735 # If you have 'file' or equivalent on your system and you're not sure
10736 # whether 'pass_all' will *always* work, you probably want this one.
10737
10738 case $host_os in
10739 aix[4-9]*)
10740 lt_cv_deplibs_check_method=pass_all
10741 ;;
10742
10743 beos*)
10744 lt_cv_deplibs_check_method=pass_all
10745 ;;
10746
10747 bsdi[45]*)
10748 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10749 lt_cv_file_magic_cmd='$FILECMD -L'
10750 lt_cv_file_magic_test_file=/shlib/libc.so
10751 ;;
10752
10753 cygwin*)
10754 # func_win32_libid is a shell function defined in ltmain.sh
10755 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10756 lt_cv_file_magic_cmd='func_win32_libid'
10757 ;;
10758
10759 mingw* | pw32*)
10760 # Base MSYS/MinGW do not provide the 'file' command needed by
10761 # func_win32_libid shell function, so use a weaker test based on 'objdump',
10762 # unless we find 'file', for example because we are cross-compiling.
10763 if ( file / ) >/dev/null 2>&1; then
10764 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10765 lt_cv_file_magic_cmd='func_win32_libid'
10766 else
10767 # Keep this pattern in sync with the one in func_win32_libid.
10768 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
10769 lt_cv_file_magic_cmd='$OBJDUMP -f'
10770 fi
10771 ;;
10772
10773 cegcc*)
10774 # use the weaker test based on 'objdump'. See mingw*.
10775 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
10776 lt_cv_file_magic_cmd='$OBJDUMP -f'
10777 ;;
10778
10779 darwin* | rhapsody*)
10780 lt_cv_deplibs_check_method=pass_all
10781 ;;
10782
10783 freebsd* | dragonfly* | midnightbsd*)
10784 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10785 case $host_cpu in
10786 i*86 )
10787 # Not sure whether the presence of OpenBSD here was a mistake.
10788 # Let's accept both of them until this is cleared up.
10789 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
10790 lt_cv_file_magic_cmd=$FILECMD
10791 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10792 ;;
10793 esac
10794 else
10795 lt_cv_deplibs_check_method=pass_all
10796 fi
10797 ;;
10798
10799 haiku*)
10800 lt_cv_deplibs_check_method=pass_all
10801 ;;
10802
10803 hpux10.20* | hpux11*)
10804 lt_cv_file_magic_cmd=$FILECMD
10805 case $host_cpu in
10806 ia64*)
10807 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10808 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10809 ;;
10810 hppa*64*)
10811 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
10812 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10813 ;;
10814 *)
10815 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
10816 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10817 ;;
10818 esac
10819 ;;
10820
10821 interix[3-9]*)
10822 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
10823 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
10824 ;;
10825
10826 irix5* | irix6* | nonstopux*)
10827 case $LD in
10828 *-32|*"-32 ") libmagic=32-bit;;
10829 *-n32|*"-n32 ") libmagic=N32;;
10830 *-64|*"-64 ") libmagic=64-bit;;
10831 *) libmagic=never-match;;
10832 esac
10833 lt_cv_deplibs_check_method=pass_all
10834 ;;
10835
10836 # This must be glibc/ELF.
10837 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10838 lt_cv_deplibs_check_method=pass_all
10839 ;;
10840
10841 netbsd*)
10842 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10843 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10844 else
10845 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10846 fi
10847 ;;
10848
10849 newos6*)
10850 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10851 lt_cv_file_magic_cmd=$FILECMD
10852 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10853 ;;
10854
10855 *nto* | *qnx*)
10856 lt_cv_deplibs_check_method=pass_all
10857 ;;
10858
10859 openbsd* | bitrig*)
10860 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10861 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10862 else
10863 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10864 fi
10865 ;;
10866
10867 osf3* | osf4* | osf5*)
10868 lt_cv_deplibs_check_method=pass_all
10869 ;;
10870
10871 rdos*)
10872 lt_cv_deplibs_check_method=pass_all
10873 ;;
10874
10875 solaris*)
10876 lt_cv_deplibs_check_method=pass_all
10877 ;;
10878
10879 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10880 lt_cv_deplibs_check_method=pass_all
10881 ;;
10882
10883 sysv4 | sysv4.3*)
10884 case $host_vendor in
10885 motorola)
10886 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
10887 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10888 ;;
10889 ncr)
10890 lt_cv_deplibs_check_method=pass_all
10891 ;;
10892 sequent)
10893 lt_cv_file_magic_cmd='/bin/file'
10894 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10895 ;;
10896 sni)
10897 lt_cv_file_magic_cmd='/bin/file'
10898 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10899 lt_cv_file_magic_test_file=/lib/libc.so
10900 ;;
10901 siemens)
10902 lt_cv_deplibs_check_method=pass_all
10903 ;;
10904 pc)
10905 lt_cv_deplibs_check_method=pass_all
10906 ;;
10907 esac
10908 ;;
10909
10910 tpf*)
10911 lt_cv_deplibs_check_method=pass_all
10912 ;;
10913 os2*)
10914 lt_cv_deplibs_check_method=pass_all
10915 ;;
10916 esac
10917
10918 fi
10919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
10920 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
10921
10922 file_magic_glob=
10923 want_nocaseglob=no
10924 if test "$build" = "$host"; then
10925 case $host_os in
10926 mingw* | pw32*)
10927 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
10928 want_nocaseglob=yes
10929 else
10930 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
10931 fi
10932 ;;
10933 esac
10934 fi
10935
10936 file_magic_cmd=$lt_cv_file_magic_cmd
10937 deplibs_check_method=$lt_cv_deplibs_check_method
10938 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961 if test -n "$ac_tool_prefix"; then
10962 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10963 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
10964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10965 printf %s "checking for $ac_word... " >&6; }
10966 if test ${ac_cv_prog_DLLTOOL+y}
10967 then :
10968 printf %s "(cached) " >&6
10969 else $as_nop
10970 if test -n "$DLLTOOL"; then
10971 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10972 else
10973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10974 for as_dir in $PATH
10975 do
10976 IFS=$as_save_IFS
10977 case $as_dir in #(((
10978 '') as_dir=./ ;;
10979 */) ;;
10980 *) as_dir=$as_dir/ ;;
10981 esac
10982 for ac_exec_ext in '' $ac_executable_extensions; do
10983 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10984 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10985 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10986 break 2
10987 fi
10988 done
10989 done
10990 IFS=$as_save_IFS
10991
10992 fi
10993 fi
10994 DLLTOOL=$ac_cv_prog_DLLTOOL
10995 if test -n "$DLLTOOL"; then
10996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10997 printf "%s\n" "$DLLTOOL" >&6; }
10998 else
10999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11000 printf "%s\n" "no" >&6; }
11001 fi
11002
11003
11004 fi
11005 if test -z "$ac_cv_prog_DLLTOOL"; then
11006 ac_ct_DLLTOOL=$DLLTOOL
11007 # Extract the first word of "dlltool", so it can be a program name with args.
11008 set dummy dlltool; ac_word=$2
11009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11010 printf %s "checking for $ac_word... " >&6; }
11011 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
11012 then :
11013 printf %s "(cached) " >&6
11014 else $as_nop
11015 if test -n "$ac_ct_DLLTOOL"; then
11016 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11017 else
11018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11019 for as_dir in $PATH
11020 do
11021 IFS=$as_save_IFS
11022 case $as_dir in #(((
11023 '') as_dir=./ ;;
11024 */) ;;
11025 *) as_dir=$as_dir/ ;;
11026 esac
11027 for ac_exec_ext in '' $ac_executable_extensions; do
11028 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11029 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11030 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11031 break 2
11032 fi
11033 done
11034 done
11035 IFS=$as_save_IFS
11036
11037 fi
11038 fi
11039 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11040 if test -n "$ac_ct_DLLTOOL"; then
11041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11042 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
11043 else
11044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11045 printf "%s\n" "no" >&6; }
11046 fi
11047
11048 if test "x$ac_ct_DLLTOOL" = x; then
11049 DLLTOOL="false"
11050 else
11051 case $cross_compiling:$ac_tool_warned in
11052 yes:)
11053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11054 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11055 ac_tool_warned=yes ;;
11056 esac
11057 DLLTOOL=$ac_ct_DLLTOOL
11058 fi
11059 else
11060 DLLTOOL="$ac_cv_prog_DLLTOOL"
11061 fi
11062
11063 test -z "$DLLTOOL" && DLLTOOL=dlltool
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
11075 printf %s "checking how to associate runtime and link libraries... " >&6; }
11076 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
11077 then :
11078 printf %s "(cached) " >&6
11079 else $as_nop
11080 lt_cv_sharedlib_from_linklib_cmd='unknown'
11081
11082 case $host_os in
11083 cygwin* | mingw* | pw32* | cegcc*)
11084 # two different shell functions defined in ltmain.sh;
11085 # decide which one to use based on capabilities of $DLLTOOL
11086 case `$DLLTOOL --help 2>&1` in
11087 *--identify-strict*)
11088 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
11089 ;;
11090 *)
11091 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
11092 ;;
11093 esac
11094 ;;
11095 *)
11096 # fallback: assume linklib IS sharedlib
11097 lt_cv_sharedlib_from_linklib_cmd=$ECHO
11098 ;;
11099 esac
11100
11101 fi
11102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
11103 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
11104 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
11105 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
11106
11107
11108
11109
11110
11111
11112
11113 if test -n "$ac_tool_prefix"; then
11114 for ac_prog in ar
11115 do
11116 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11117 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11119 printf %s "checking for $ac_word... " >&6; }
11120 if test ${ac_cv_prog_AR+y}
11121 then :
11122 printf %s "(cached) " >&6
11123 else $as_nop
11124 if test -n "$AR"; then
11125 ac_cv_prog_AR="$AR" # Let the user override the test.
11126 else
11127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11128 for as_dir in $PATH
11129 do
11130 IFS=$as_save_IFS
11131 case $as_dir in #(((
11132 '') as_dir=./ ;;
11133 */) ;;
11134 *) as_dir=$as_dir/ ;;
11135 esac
11136 for ac_exec_ext in '' $ac_executable_extensions; do
11137 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11138 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
11139 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11140 break 2
11141 fi
11142 done
11143 done
11144 IFS=$as_save_IFS
11145
11146 fi
11147 fi
11148 AR=$ac_cv_prog_AR
11149 if test -n "$AR"; then
11150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11151 printf "%s\n" "$AR" >&6; }
11152 else
11153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11154 printf "%s\n" "no" >&6; }
11155 fi
11156
11157
11158 test -n "$AR" && break
11159 done
11160 fi
11161 if test -z "$AR"; then
11162 ac_ct_AR=$AR
11163 for ac_prog in ar
11164 do
11165 # Extract the first word of "$ac_prog", so it can be a program name with args.
11166 set dummy $ac_prog; ac_word=$2
11167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11168 printf %s "checking for $ac_word... " >&6; }
11169 if test ${ac_cv_prog_ac_ct_AR+y}
11170 then :
11171 printf %s "(cached) " >&6
11172 else $as_nop
11173 if test -n "$ac_ct_AR"; then
11174 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11175 else
11176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11177 for as_dir in $PATH
11178 do
11179 IFS=$as_save_IFS
11180 case $as_dir in #(((
11181 '') as_dir=./ ;;
11182 */) ;;
11183 *) as_dir=$as_dir/ ;;
11184 esac
11185 for ac_exec_ext in '' $ac_executable_extensions; do
11186 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11187 ac_cv_prog_ac_ct_AR="$ac_prog"
11188 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11189 break 2
11190 fi
11191 done
11192 done
11193 IFS=$as_save_IFS
11194
11195 fi
11196 fi
11197 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11198 if test -n "$ac_ct_AR"; then
11199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
11200 printf "%s\n" "$ac_ct_AR" >&6; }
11201 else
11202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11203 printf "%s\n" "no" >&6; }
11204 fi
11205
11206
11207 test -n "$ac_ct_AR" && break
11208 done
11209
11210 if test "x$ac_ct_AR" = x; then
11211 AR="false"
11212 else
11213 case $cross_compiling:$ac_tool_warned in
11214 yes:)
11215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11216 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11217 ac_tool_warned=yes ;;
11218 esac
11219 AR=$ac_ct_AR
11220 fi
11221 fi
11222
11223 : ${AR=ar}
11224
11225
11226
11227
11228
11229
11230 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
11231 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
11232 # higher priority because thats what people were doing historically (setting
11233 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
11234 # variable obsoleted/removed.
11235
11236 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
11237 lt_ar_flags=$AR_FLAGS
11238
11239
11240
11241
11242
11243
11244 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
11245 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
11246
11247
11248
11249
11250
11251
11252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
11253 printf %s "checking for archiver @FILE support... " >&6; }
11254 if test ${lt_cv_ar_at_file+y}
11255 then :
11256 printf %s "(cached) " >&6
11257 else $as_nop
11258 lt_cv_ar_at_file=no
11259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11260 /* end confdefs.h. */
11261
11262 int
11263 main (void)
11264 {
11265
11266 ;
11267 return 0;
11268 }
11269 _ACEOF
11270 if ac_fn_c_try_compile "$LINENO"
11271 then :
11272 echo conftest.$ac_objext > conftest.lst
11273 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
11274 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
11275 (eval $lt_ar_try) 2>&5
11276 ac_status=$?
11277 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11278 test $ac_status = 0; }
11279 if test 0 -eq "$ac_status"; then
11280 # Ensure the archiver fails upon bogus file names.
11281 rm -f conftest.$ac_objext libconftest.a
11282 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
11283 (eval $lt_ar_try) 2>&5
11284 ac_status=$?
11285 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11286 test $ac_status = 0; }
11287 if test 0 -ne "$ac_status"; then
11288 lt_cv_ar_at_file=@
11289 fi
11290 fi
11291 rm -f conftest.* libconftest.a
11292
11293 fi
11294 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11295
11296 fi
11297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
11298 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
11299
11300 if test no = "$lt_cv_ar_at_file"; then
11301 archiver_list_spec=
11302 else
11303 archiver_list_spec=$lt_cv_ar_at_file
11304 fi
11305
11306
11307
11308
11309
11310
11311
11312 if test -n "$ac_tool_prefix"; then
11313 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11314 set dummy ${ac_tool_prefix}strip; ac_word=$2
11315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11316 printf %s "checking for $ac_word... " >&6; }
11317 if test ${ac_cv_prog_STRIP+y}
11318 then :
11319 printf %s "(cached) " >&6
11320 else $as_nop
11321 if test -n "$STRIP"; then
11322 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11323 else
11324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11325 for as_dir in $PATH
11326 do
11327 IFS=$as_save_IFS
11328 case $as_dir in #(((
11329 '') as_dir=./ ;;
11330 */) ;;
11331 *) as_dir=$as_dir/ ;;
11332 esac
11333 for ac_exec_ext in '' $ac_executable_extensions; do
11334 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11335 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11336 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11337 break 2
11338 fi
11339 done
11340 done
11341 IFS=$as_save_IFS
11342
11343 fi
11344 fi
11345 STRIP=$ac_cv_prog_STRIP
11346 if test -n "$STRIP"; then
11347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11348 printf "%s\n" "$STRIP" >&6; }
11349 else
11350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11351 printf "%s\n" "no" >&6; }
11352 fi
11353
11354
11355 fi
11356 if test -z "$ac_cv_prog_STRIP"; then
11357 ac_ct_STRIP=$STRIP
11358 # Extract the first word of "strip", so it can be a program name with args.
11359 set dummy strip; ac_word=$2
11360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11361 printf %s "checking for $ac_word... " >&6; }
11362 if test ${ac_cv_prog_ac_ct_STRIP+y}
11363 then :
11364 printf %s "(cached) " >&6
11365 else $as_nop
11366 if test -n "$ac_ct_STRIP"; then
11367 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11368 else
11369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11370 for as_dir in $PATH
11371 do
11372 IFS=$as_save_IFS
11373 case $as_dir in #(((
11374 '') as_dir=./ ;;
11375 */) ;;
11376 *) as_dir=$as_dir/ ;;
11377 esac
11378 for ac_exec_ext in '' $ac_executable_extensions; do
11379 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11380 ac_cv_prog_ac_ct_STRIP="strip"
11381 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11382 break 2
11383 fi
11384 done
11385 done
11386 IFS=$as_save_IFS
11387
11388 fi
11389 fi
11390 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11391 if test -n "$ac_ct_STRIP"; then
11392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11393 printf "%s\n" "$ac_ct_STRIP" >&6; }
11394 else
11395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11396 printf "%s\n" "no" >&6; }
11397 fi
11398
11399 if test "x$ac_ct_STRIP" = x; then
11400 STRIP=":"
11401 else
11402 case $cross_compiling:$ac_tool_warned in
11403 yes:)
11404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11405 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11406 ac_tool_warned=yes ;;
11407 esac
11408 STRIP=$ac_ct_STRIP
11409 fi
11410 else
11411 STRIP="$ac_cv_prog_STRIP"
11412 fi
11413
11414 test -z "$STRIP" && STRIP=:
11415
11416
11417
11418
11419
11420
11421 if test -n "$ac_tool_prefix"; then
11422 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11423 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11425 printf %s "checking for $ac_word... " >&6; }
11426 if test ${ac_cv_prog_RANLIB+y}
11427 then :
11428 printf %s "(cached) " >&6
11429 else $as_nop
11430 if test -n "$RANLIB"; then
11431 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11432 else
11433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11434 for as_dir in $PATH
11435 do
11436 IFS=$as_save_IFS
11437 case $as_dir in #(((
11438 '') as_dir=./ ;;
11439 */) ;;
11440 *) as_dir=$as_dir/ ;;
11441 esac
11442 for ac_exec_ext in '' $ac_executable_extensions; do
11443 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11444 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11445 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11446 break 2
11447 fi
11448 done
11449 done
11450 IFS=$as_save_IFS
11451
11452 fi
11453 fi
11454 RANLIB=$ac_cv_prog_RANLIB
11455 if test -n "$RANLIB"; then
11456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11457 printf "%s\n" "$RANLIB" >&6; }
11458 else
11459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11460 printf "%s\n" "no" >&6; }
11461 fi
11462
11463
11464 fi
11465 if test -z "$ac_cv_prog_RANLIB"; then
11466 ac_ct_RANLIB=$RANLIB
11467 # Extract the first word of "ranlib", so it can be a program name with args.
11468 set dummy ranlib; ac_word=$2
11469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11470 printf %s "checking for $ac_word... " >&6; }
11471 if test ${ac_cv_prog_ac_ct_RANLIB+y}
11472 then :
11473 printf %s "(cached) " >&6
11474 else $as_nop
11475 if test -n "$ac_ct_RANLIB"; then
11476 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11477 else
11478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11479 for as_dir in $PATH
11480 do
11481 IFS=$as_save_IFS
11482 case $as_dir in #(((
11483 '') as_dir=./ ;;
11484 */) ;;
11485 *) as_dir=$as_dir/ ;;
11486 esac
11487 for ac_exec_ext in '' $ac_executable_extensions; do
11488 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11489 ac_cv_prog_ac_ct_RANLIB="ranlib"
11490 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11491 break 2
11492 fi
11493 done
11494 done
11495 IFS=$as_save_IFS
11496
11497 fi
11498 fi
11499 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11500 if test -n "$ac_ct_RANLIB"; then
11501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
11502 printf "%s\n" "$ac_ct_RANLIB" >&6; }
11503 else
11504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11505 printf "%s\n" "no" >&6; }
11506 fi
11507
11508 if test "x$ac_ct_RANLIB" = x; then
11509 RANLIB=":"
11510 else
11511 case $cross_compiling:$ac_tool_warned in
11512 yes:)
11513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11514 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11515 ac_tool_warned=yes ;;
11516 esac
11517 RANLIB=$ac_ct_RANLIB
11518 fi
11519 else
11520 RANLIB="$ac_cv_prog_RANLIB"
11521 fi
11522
11523 test -z "$RANLIB" && RANLIB=:
11524
11525
11526
11527
11528
11529
11530 # Determine commands to create old-style static archives.
11531 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
11532 old_postinstall_cmds='chmod 644 $oldlib'
11533 old_postuninstall_cmds=
11534
11535 if test -n "$RANLIB"; then
11536 case $host_os in
11537 bitrig* | openbsd*)
11538 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
11539 ;;
11540 *)
11541 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
11542 ;;
11543 esac
11544 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
11545 fi
11546
11547 case $host_os in
11548 darwin*)
11549 lock_old_archive_extraction=yes ;;
11550 *)
11551 lock_old_archive_extraction=no ;;
11552 esac
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592 # If no C compiler was specified, use CC.
11593 LTCC=${LTCC-"$CC"}
11594
11595 # If no C compiler flags were specified, use CFLAGS.
11596 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11597
11598 # Allow CC to be a program name with arguments.
11599 compiler=$CC
11600
11601
11602 # Check for command to grab the raw symbol name followed by C symbol from nm.
11603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
11604 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
11605 if test ${lt_cv_sys_global_symbol_pipe+y}
11606 then :
11607 printf %s "(cached) " >&6
11608 else $as_nop
11609
11610 # These are sane defaults that work on at least a few old systems.
11611 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
11612
11613 # Character class describing NM global symbol codes.
11614 symcode='[BCDEGRST]'
11615
11616 # Regexp to match symbols that can be accessed directly from C.
11617 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11618
11619 # Define system-specific variables.
11620 case $host_os in
11621 aix*)
11622 symcode='[BCDT]'
11623 ;;
11624 cygwin* | mingw* | pw32* | cegcc*)
11625 symcode='[ABCDGISTW]'
11626 ;;
11627 hpux*)
11628 if test ia64 = "$host_cpu"; then
11629 symcode='[ABCDEGRST]'
11630 fi
11631 ;;
11632 irix* | nonstopux*)
11633 symcode='[BCDEGRST]'
11634 ;;
11635 osf*)
11636 symcode='[BCDEGQRST]'
11637 ;;
11638 solaris*)
11639 symcode='[BDRT]'
11640 ;;
11641 sco3.2v5*)
11642 symcode='[DT]'
11643 ;;
11644 sysv4.2uw2*)
11645 symcode='[DT]'
11646 ;;
11647 sysv5* | sco5v6* | unixware* | OpenUNIX*)
11648 symcode='[ABDT]'
11649 ;;
11650 sysv4)
11651 symcode='[DFNSTU]'
11652 ;;
11653 esac
11654
11655 # If we're using GNU nm, then use its standard symbol codes.
11656 case `$NM -V 2>&1` in
11657 *GNU* | *'with BFD'*)
11658 symcode='[ABCDGIRSTW]' ;;
11659 esac
11660
11661 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11662 # Gets list of data symbols to import.
11663 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
11664 # Adjust the below global symbol transforms to fixup imported variables.
11665 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
11666 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
11667 lt_c_name_lib_hook="\
11668 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
11669 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
11670 else
11671 # Disable hooks by default.
11672 lt_cv_sys_global_symbol_to_import=
11673 lt_cdecl_hook=
11674 lt_c_name_hook=
11675 lt_c_name_lib_hook=
11676 fi
11677
11678 # Transform an extracted symbol line into a proper C declaration.
11679 # Some systems (esp. on ia64) link data and code symbols differently,
11680 # so use this general approach.
11681 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
11682 $lt_cdecl_hook\
11683 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
11684 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
11685
11686 # Transform an extracted symbol line into symbol name and symbol address
11687 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
11688 $lt_c_name_hook\
11689 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
11690 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
11691
11692 # Transform an extracted symbol line into symbol name with lib prefix and
11693 # symbol address.
11694 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
11695 $lt_c_name_lib_hook\
11696 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
11697 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
11698 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
11699
11700 # Handle CRLF in mingw tool chain
11701 opt_cr=
11702 case $build_os in
11703 mingw*)
11704 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11705 ;;
11706 esac
11707
11708 # Try without a prefix underscore, then with it.
11709 for ac_symprfx in "" "_"; do
11710
11711 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
11712 symxfrm="\\1 $ac_symprfx\\2 \\2"
11713
11714 # Write the raw and C identifiers.
11715 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11716 # Fake it for dumpbin and say T for any non-static function,
11717 # D for any global variable and I for any imported variable.
11718 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
11719 # which start with @ or ?.
11720 lt_cv_sys_global_symbol_pipe="$AWK '"\
11721 " {last_section=section; section=\$ 3};"\
11722 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
11723 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
11724 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
11725 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
11726 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
11727 " \$ 0!~/External *\|/{next};"\
11728 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
11729 " {if(hide[section]) next};"\
11730 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
11731 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
11732 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
11733 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
11734 " ' prfx=^$ac_symprfx"
11735 else
11736 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
11737 fi
11738 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
11739
11740 # Check to see that the pipe works correctly.
11741 pipe_works=no
11742
11743 rm -f conftest*
11744 cat > conftest.$ac_ext <<_LT_EOF
11745 #ifdef __cplusplus
11746 extern "C" {
11747 #endif
11748 char nm_test_var;
11749 void nm_test_func(void);
11750 void nm_test_func(void){}
11751 #ifdef __cplusplus
11752 }
11753 #endif
11754 int main(){nm_test_var='a';nm_test_func();return(0);}
11755 _LT_EOF
11756
11757 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11758 (eval $ac_compile) 2>&5
11759 ac_status=$?
11760 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11761 test $ac_status = 0; }; then
11762 # Now try to grab the symbols.
11763 nlist=conftest.nm
11764 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
11765 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
11766 ac_status=$?
11767 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11768 test $ac_status = 0; } && test -s "$nlist"; then
11769 # Try sorting and uniquifying the output.
11770 if sort "$nlist" | uniq > "$nlist"T; then
11771 mv -f "$nlist"T "$nlist"
11772 else
11773 rm -f "$nlist"T
11774 fi
11775
11776 # Make sure that we snagged all the symbols we need.
11777 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
11778 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
11779 cat <<_LT_EOF > conftest.$ac_ext
11780 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
11781 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
11782 /* DATA imports from DLLs on WIN32 can't be const, because runtime
11783 relocations are performed -- see ld's documentation on pseudo-relocs. */
11784 # define LT_DLSYM_CONST
11785 #elif defined __osf__
11786 /* This system does not cope well with relocations in const data. */
11787 # define LT_DLSYM_CONST
11788 #else
11789 # define LT_DLSYM_CONST const
11790 #endif
11791
11792 #ifdef __cplusplus
11793 extern "C" {
11794 #endif
11795
11796 _LT_EOF
11797 # Now generate the symbol file.
11798 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
11799
11800 cat <<_LT_EOF >> conftest.$ac_ext
11801
11802 /* The mapping between symbol names and symbols. */
11803 LT_DLSYM_CONST struct {
11804 const char *name;
11805 void *address;
11806 }
11807 lt__PROGRAM__LTX_preloaded_symbols[] =
11808 {
11809 { "@PROGRAM@", (void *) 0 },
11810 _LT_EOF
11811 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
11812 cat <<\_LT_EOF >> conftest.$ac_ext
11813 {0, (void *) 0}
11814 };
11815
11816 /* This works around a problem in FreeBSD linker */
11817 #ifdef FREEBSD_WORKAROUND
11818 static const void *lt_preloaded_setup() {
11819 return lt__PROGRAM__LTX_preloaded_symbols;
11820 }
11821 #endif
11822
11823 #ifdef __cplusplus
11824 }
11825 #endif
11826 _LT_EOF
11827 # Now try linking the two files.
11828 mv conftest.$ac_objext conftstm.$ac_objext
11829 lt_globsym_save_LIBS=$LIBS
11830 lt_globsym_save_CFLAGS=$CFLAGS
11831 LIBS=conftstm.$ac_objext
11832 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11833 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11834 (eval $ac_link) 2>&5
11835 ac_status=$?
11836 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11837 test $ac_status = 0; } && test -s conftest$ac_exeext; then
11838 pipe_works=yes
11839 fi
11840 LIBS=$lt_globsym_save_LIBS
11841 CFLAGS=$lt_globsym_save_CFLAGS
11842 else
11843 echo "cannot find nm_test_func in $nlist" >&5
11844 fi
11845 else
11846 echo "cannot find nm_test_var in $nlist" >&5
11847 fi
11848 else
11849 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11850 fi
11851 else
11852 echo "$progname: failed program was:" >&5
11853 cat conftest.$ac_ext >&5
11854 fi
11855 rm -rf conftest* conftst*
11856
11857 # Do not use the global_symbol_pipe unless it works.
11858 if test yes = "$pipe_works"; then
11859 break
11860 else
11861 lt_cv_sys_global_symbol_pipe=
11862 fi
11863 done
11864
11865 fi
11866
11867 if test -z "$lt_cv_sys_global_symbol_pipe"; then
11868 lt_cv_sys_global_symbol_to_cdecl=
11869 fi
11870 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
11872 printf "%s\n" "failed" >&6; }
11873 else
11874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
11875 printf "%s\n" "ok" >&6; }
11876 fi
11877
11878 # Response file support.
11879 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11880 nm_file_list_spec='@'
11881 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
11882 nm_file_list_spec='@'
11883 fi
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
11922 printf %s "checking for sysroot... " >&6; }
11923
11924 # Check whether --with-sysroot was given.
11925 if test ${with_sysroot+y}
11926 then :
11927 withval=$with_sysroot;
11928 else $as_nop
11929 with_sysroot=no
11930 fi
11931
11932
11933 lt_sysroot=
11934 case $with_sysroot in #(
11935 yes)
11936 if test yes = "$GCC"; then
11937 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
11938 fi
11939 ;; #(
11940 /*)
11941 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
11942 ;; #(
11943 no|'')
11944 ;; #(
11945 *)
11946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
11947 printf "%s\n" "$with_sysroot" >&6; }
11948 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
11949 ;;
11950 esac
11951
11952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
11953 printf "%s\n" "${lt_sysroot:-no}" >&6; }
11954
11955
11956
11957
11958
11959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
11960 printf %s "checking for a working dd... " >&6; }
11961 if test ${ac_cv_path_lt_DD+y}
11962 then :
11963 printf %s "(cached) " >&6
11964 else $as_nop
11965 printf 0123456789abcdef0123456789abcdef >conftest.i
11966 cat conftest.i conftest.i >conftest2.i
11967 : ${lt_DD:=$DD}
11968 if test -z "$lt_DD"; then
11969 ac_path_lt_DD_found=false
11970 # Loop through the user's path and test for each of PROGNAME-LIST
11971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11972 for as_dir in $PATH
11973 do
11974 IFS=$as_save_IFS
11975 case $as_dir in #(((
11976 '') as_dir=./ ;;
11977 */) ;;
11978 *) as_dir=$as_dir/ ;;
11979 esac
11980 for ac_prog in dd
11981 do
11982 for ac_exec_ext in '' $ac_executable_extensions; do
11983 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
11984 as_fn_executable_p "$ac_path_lt_DD" || continue
11985 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
11986 cmp -s conftest.i conftest.out \
11987 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
11988 fi
11989 $ac_path_lt_DD_found && break 3
11990 done
11991 done
11992 done
11993 IFS=$as_save_IFS
11994 if test -z "$ac_cv_path_lt_DD"; then
11995 :
11996 fi
11997 else
11998 ac_cv_path_lt_DD=$lt_DD
11999 fi
12000
12001 rm -f conftest.i conftest2.i conftest.out
12002 fi
12003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
12004 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
12005
12006
12007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
12008 printf %s "checking how to truncate binary pipes... " >&6; }
12009 if test ${lt_cv_truncate_bin+y}
12010 then :
12011 printf %s "(cached) " >&6
12012 else $as_nop
12013 printf 0123456789abcdef0123456789abcdef >conftest.i
12014 cat conftest.i conftest.i >conftest2.i
12015 lt_cv_truncate_bin=
12016 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
12017 cmp -s conftest.i conftest.out \
12018 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
12019 fi
12020 rm -f conftest.i conftest2.i conftest.out
12021 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
12022 fi
12023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
12024 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
12025
12026
12027
12028
12029
12030
12031
12032 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
12033 func_cc_basename ()
12034 {
12035 for cc_temp in $*""; do
12036 case $cc_temp in
12037 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12038 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12039 \-*) ;;
12040 *) break;;
12041 esac
12042 done
12043 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12044 }
12045
12046 # Check whether --enable-libtool-lock was given.
12047 if test ${enable_libtool_lock+y}
12048 then :
12049 enableval=$enable_libtool_lock;
12050 fi
12051
12052 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
12053
12054 # Some flags need to be propagated to the compiler or linker for good
12055 # libtool support.
12056 case $host in
12057 ia64-*-hpux*)
12058 # Find out what ABI is being produced by ac_compile, and set mode
12059 # options accordingly.
12060 echo 'int i;' > conftest.$ac_ext
12061 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12062 (eval $ac_compile) 2>&5
12063 ac_status=$?
12064 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12065 test $ac_status = 0; }; then
12066 case `$FILECMD conftest.$ac_objext` in
12067 *ELF-32*)
12068 HPUX_IA64_MODE=32
12069 ;;
12070 *ELF-64*)
12071 HPUX_IA64_MODE=64
12072 ;;
12073 esac
12074 fi
12075 rm -rf conftest*
12076 ;;
12077 *-*-irix6*)
12078 # Find out what ABI is being produced by ac_compile, and set linker
12079 # options accordingly.
12080 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
12081 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12082 (eval $ac_compile) 2>&5
12083 ac_status=$?
12084 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12085 test $ac_status = 0; }; then
12086 if test yes = "$lt_cv_prog_gnu_ld"; then
12087 case `$FILECMD conftest.$ac_objext` in
12088 *32-bit*)
12089 LD="${LD-ld} -melf32bsmip"
12090 ;;
12091 *N32*)
12092 LD="${LD-ld} -melf32bmipn32"
12093 ;;
12094 *64-bit*)
12095 LD="${LD-ld} -melf64bmip"
12096 ;;
12097 esac
12098 else
12099 case `$FILECMD conftest.$ac_objext` in
12100 *32-bit*)
12101 LD="${LD-ld} -32"
12102 ;;
12103 *N32*)
12104 LD="${LD-ld} -n32"
12105 ;;
12106 *64-bit*)
12107 LD="${LD-ld} -64"
12108 ;;
12109 esac
12110 fi
12111 fi
12112 rm -rf conftest*
12113 ;;
12114
12115 mips64*-*linux*)
12116 # Find out what ABI is being produced by ac_compile, and set linker
12117 # options accordingly.
12118 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
12119 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12120 (eval $ac_compile) 2>&5
12121 ac_status=$?
12122 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12123 test $ac_status = 0; }; then
12124 emul=elf
12125 case `$FILECMD conftest.$ac_objext` in
12126 *32-bit*)
12127 emul="${emul}32"
12128 ;;
12129 *64-bit*)
12130 emul="${emul}64"
12131 ;;
12132 esac
12133 case `$FILECMD conftest.$ac_objext` in
12134 *MSB*)
12135 emul="${emul}btsmip"
12136 ;;
12137 *LSB*)
12138 emul="${emul}ltsmip"
12139 ;;
12140 esac
12141 case `$FILECMD conftest.$ac_objext` in
12142 *N32*)
12143 emul="${emul}n32"
12144 ;;
12145 esac
12146 LD="${LD-ld} -m $emul"
12147 fi
12148 rm -rf conftest*
12149 ;;
12150
12151 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
12152 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12153 # Find out what ABI is being produced by ac_compile, and set linker
12154 # options accordingly. Note that the listed cases only cover the
12155 # situations where additional linker options are needed (such as when
12156 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
12157 # vice versa); the common cases where no linker options are needed do
12158 # not appear in the list.
12159 echo 'int i;' > conftest.$ac_ext
12160 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12161 (eval $ac_compile) 2>&5
12162 ac_status=$?
12163 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12164 test $ac_status = 0; }; then
12165 case `$FILECMD conftest.o` in
12166 *32-bit*)
12167 case $host in
12168 x86_64-*kfreebsd*-gnu)
12169 LD="${LD-ld} -m elf_i386_fbsd"
12170 ;;
12171 x86_64-*linux*)
12172 case `$FILECMD conftest.o` in
12173 *x86-64*)
12174 LD="${LD-ld} -m elf32_x86_64"
12175 ;;
12176 *)
12177 LD="${LD-ld} -m elf_i386"
12178 ;;
12179 esac
12180 ;;
12181 powerpc64le-*linux*)
12182 LD="${LD-ld} -m elf32lppclinux"
12183 ;;
12184 powerpc64-*linux*)
12185 LD="${LD-ld} -m elf32ppclinux"
12186 ;;
12187 s390x-*linux*)
12188 LD="${LD-ld} -m elf_s390"
12189 ;;
12190 sparc64-*linux*)
12191 LD="${LD-ld} -m elf32_sparc"
12192 ;;
12193 esac
12194 ;;
12195 *64-bit*)
12196 case $host in
12197 x86_64-*kfreebsd*-gnu)
12198 LD="${LD-ld} -m elf_x86_64_fbsd"
12199 ;;
12200 x86_64-*linux*)
12201 LD="${LD-ld} -m elf_x86_64"
12202 ;;
12203 powerpcle-*linux*)
12204 LD="${LD-ld} -m elf64lppc"
12205 ;;
12206 powerpc-*linux*)
12207 LD="${LD-ld} -m elf64ppc"
12208 ;;
12209 s390*-*linux*|s390*-*tpf*)
12210 LD="${LD-ld} -m elf64_s390"
12211 ;;
12212 sparc*-*linux*)
12213 LD="${LD-ld} -m elf64_sparc"
12214 ;;
12215 esac
12216 ;;
12217 esac
12218 fi
12219 rm -rf conftest*
12220 ;;
12221
12222 *-*-sco3.2v5*)
12223 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12224 SAVE_CFLAGS=$CFLAGS
12225 CFLAGS="$CFLAGS -belf"
12226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12227 printf %s "checking whether the C compiler needs -belf... " >&6; }
12228 if test ${lt_cv_cc_needs_belf+y}
12229 then :
12230 printf %s "(cached) " >&6
12231 else $as_nop
12232 ac_ext=c
12233 ac_cpp='$CPP $CPPFLAGS'
12234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12237
12238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12239 /* end confdefs.h. */
12240
12241 int
12242 main (void)
12243 {
12244
12245 ;
12246 return 0;
12247 }
12248 _ACEOF
12249 if ac_fn_c_try_link "$LINENO"
12250 then :
12251 lt_cv_cc_needs_belf=yes
12252 else $as_nop
12253 lt_cv_cc_needs_belf=no
12254 fi
12255 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12256 conftest$ac_exeext conftest.$ac_ext
12257 ac_ext=c
12258 ac_cpp='$CPP $CPPFLAGS'
12259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12262
12263 fi
12264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12265 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
12266 if test yes != "$lt_cv_cc_needs_belf"; then
12267 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12268 CFLAGS=$SAVE_CFLAGS
12269 fi
12270 ;;
12271 *-*solaris*)
12272 # Find out what ABI is being produced by ac_compile, and set linker
12273 # options accordingly.
12274 echo 'int i;' > conftest.$ac_ext
12275 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12276 (eval $ac_compile) 2>&5
12277 ac_status=$?
12278 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12279 test $ac_status = 0; }; then
12280 case `$FILECMD conftest.o` in
12281 *64-bit*)
12282 case $lt_cv_prog_gnu_ld in
12283 yes*)
12284 case $host in
12285 i?86-*-solaris*|x86_64-*-solaris*)
12286 LD="${LD-ld} -m elf_x86_64"
12287 ;;
12288 sparc*-*-solaris*)
12289 LD="${LD-ld} -m elf64_sparc"
12290 ;;
12291 esac
12292 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
12293 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
12294 LD=${LD-ld}_sol2
12295 fi
12296 ;;
12297 *)
12298 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12299 LD="${LD-ld} -64"
12300 fi
12301 ;;
12302 esac
12303 ;;
12304 esac
12305 fi
12306 rm -rf conftest*
12307 ;;
12308 esac
12309
12310 need_locks=$enable_libtool_lock
12311
12312 if test -n "$ac_tool_prefix"; then
12313 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
12314 set dummy ${ac_tool_prefix}mt; ac_word=$2
12315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12316 printf %s "checking for $ac_word... " >&6; }
12317 if test ${ac_cv_prog_MANIFEST_TOOL+y}
12318 then :
12319 printf %s "(cached) " >&6
12320 else $as_nop
12321 if test -n "$MANIFEST_TOOL"; then
12322 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
12323 else
12324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12325 for as_dir in $PATH
12326 do
12327 IFS=$as_save_IFS
12328 case $as_dir in #(((
12329 '') as_dir=./ ;;
12330 */) ;;
12331 *) as_dir=$as_dir/ ;;
12332 esac
12333 for ac_exec_ext in '' $ac_executable_extensions; do
12334 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12335 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
12336 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12337 break 2
12338 fi
12339 done
12340 done
12341 IFS=$as_save_IFS
12342
12343 fi
12344 fi
12345 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
12346 if test -n "$MANIFEST_TOOL"; then
12347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
12348 printf "%s\n" "$MANIFEST_TOOL" >&6; }
12349 else
12350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12351 printf "%s\n" "no" >&6; }
12352 fi
12353
12354
12355 fi
12356 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
12357 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
12358 # Extract the first word of "mt", so it can be a program name with args.
12359 set dummy mt; ac_word=$2
12360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12361 printf %s "checking for $ac_word... " >&6; }
12362 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
12363 then :
12364 printf %s "(cached) " >&6
12365 else $as_nop
12366 if test -n "$ac_ct_MANIFEST_TOOL"; then
12367 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
12368 else
12369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12370 for as_dir in $PATH
12371 do
12372 IFS=$as_save_IFS
12373 case $as_dir in #(((
12374 '') as_dir=./ ;;
12375 */) ;;
12376 *) as_dir=$as_dir/ ;;
12377 esac
12378 for ac_exec_ext in '' $ac_executable_extensions; do
12379 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12380 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
12381 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12382 break 2
12383 fi
12384 done
12385 done
12386 IFS=$as_save_IFS
12387
12388 fi
12389 fi
12390 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
12391 if test -n "$ac_ct_MANIFEST_TOOL"; then
12392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
12393 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
12394 else
12395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12396 printf "%s\n" "no" >&6; }
12397 fi
12398
12399 if test "x$ac_ct_MANIFEST_TOOL" = x; then
12400 MANIFEST_TOOL=":"
12401 else
12402 case $cross_compiling:$ac_tool_warned in
12403 yes:)
12404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12405 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12406 ac_tool_warned=yes ;;
12407 esac
12408 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
12409 fi
12410 else
12411 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
12412 fi
12413
12414 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
12415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
12416 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
12417 if test ${lt_cv_path_mainfest_tool+y}
12418 then :
12419 printf %s "(cached) " >&6
12420 else $as_nop
12421 lt_cv_path_mainfest_tool=no
12422 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
12423 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
12424 cat conftest.err >&5
12425 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
12426 lt_cv_path_mainfest_tool=yes
12427 fi
12428 rm -f conftest*
12429 fi
12430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
12431 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
12432 if test yes != "$lt_cv_path_mainfest_tool"; then
12433 MANIFEST_TOOL=:
12434 fi
12435
12436
12437
12438
12439
12440
12441 case $host_os in
12442 rhapsody* | darwin*)
12443 if test -n "$ac_tool_prefix"; then
12444 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
12445 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
12446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12447 printf %s "checking for $ac_word... " >&6; }
12448 if test ${ac_cv_prog_DSYMUTIL+y}
12449 then :
12450 printf %s "(cached) " >&6
12451 else $as_nop
12452 if test -n "$DSYMUTIL"; then
12453 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
12454 else
12455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12456 for as_dir in $PATH
12457 do
12458 IFS=$as_save_IFS
12459 case $as_dir in #(((
12460 '') as_dir=./ ;;
12461 */) ;;
12462 *) as_dir=$as_dir/ ;;
12463 esac
12464 for ac_exec_ext in '' $ac_executable_extensions; do
12465 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12466 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
12467 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12468 break 2
12469 fi
12470 done
12471 done
12472 IFS=$as_save_IFS
12473
12474 fi
12475 fi
12476 DSYMUTIL=$ac_cv_prog_DSYMUTIL
12477 if test -n "$DSYMUTIL"; then
12478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
12479 printf "%s\n" "$DSYMUTIL" >&6; }
12480 else
12481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12482 printf "%s\n" "no" >&6; }
12483 fi
12484
12485
12486 fi
12487 if test -z "$ac_cv_prog_DSYMUTIL"; then
12488 ac_ct_DSYMUTIL=$DSYMUTIL
12489 # Extract the first word of "dsymutil", so it can be a program name with args.
12490 set dummy dsymutil; ac_word=$2
12491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12492 printf %s "checking for $ac_word... " >&6; }
12493 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
12494 then :
12495 printf %s "(cached) " >&6
12496 else $as_nop
12497 if test -n "$ac_ct_DSYMUTIL"; then
12498 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
12499 else
12500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12501 for as_dir in $PATH
12502 do
12503 IFS=$as_save_IFS
12504 case $as_dir in #(((
12505 '') as_dir=./ ;;
12506 */) ;;
12507 *) as_dir=$as_dir/ ;;
12508 esac
12509 for ac_exec_ext in '' $ac_executable_extensions; do
12510 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12511 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
12512 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12513 break 2
12514 fi
12515 done
12516 done
12517 IFS=$as_save_IFS
12518
12519 fi
12520 fi
12521 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
12522 if test -n "$ac_ct_DSYMUTIL"; then
12523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
12524 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
12525 else
12526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12527 printf "%s\n" "no" >&6; }
12528 fi
12529
12530 if test "x$ac_ct_DSYMUTIL" = x; then
12531 DSYMUTIL=":"
12532 else
12533 case $cross_compiling:$ac_tool_warned in
12534 yes:)
12535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12536 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12537 ac_tool_warned=yes ;;
12538 esac
12539 DSYMUTIL=$ac_ct_DSYMUTIL
12540 fi
12541 else
12542 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
12543 fi
12544
12545 if test -n "$ac_tool_prefix"; then
12546 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
12547 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
12548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12549 printf %s "checking for $ac_word... " >&6; }
12550 if test ${ac_cv_prog_NMEDIT+y}
12551 then :
12552 printf %s "(cached) " >&6
12553 else $as_nop
12554 if test -n "$NMEDIT"; then
12555 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
12556 else
12557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12558 for as_dir in $PATH
12559 do
12560 IFS=$as_save_IFS
12561 case $as_dir in #(((
12562 '') as_dir=./ ;;
12563 */) ;;
12564 *) as_dir=$as_dir/ ;;
12565 esac
12566 for ac_exec_ext in '' $ac_executable_extensions; do
12567 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12568 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
12569 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12570 break 2
12571 fi
12572 done
12573 done
12574 IFS=$as_save_IFS
12575
12576 fi
12577 fi
12578 NMEDIT=$ac_cv_prog_NMEDIT
12579 if test -n "$NMEDIT"; then
12580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
12581 printf "%s\n" "$NMEDIT" >&6; }
12582 else
12583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12584 printf "%s\n" "no" >&6; }
12585 fi
12586
12587
12588 fi
12589 if test -z "$ac_cv_prog_NMEDIT"; then
12590 ac_ct_NMEDIT=$NMEDIT
12591 # Extract the first word of "nmedit", so it can be a program name with args.
12592 set dummy nmedit; ac_word=$2
12593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12594 printf %s "checking for $ac_word... " >&6; }
12595 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
12596 then :
12597 printf %s "(cached) " >&6
12598 else $as_nop
12599 if test -n "$ac_ct_NMEDIT"; then
12600 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
12601 else
12602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12603 for as_dir in $PATH
12604 do
12605 IFS=$as_save_IFS
12606 case $as_dir in #(((
12607 '') as_dir=./ ;;
12608 */) ;;
12609 *) as_dir=$as_dir/ ;;
12610 esac
12611 for ac_exec_ext in '' $ac_executable_extensions; do
12612 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12613 ac_cv_prog_ac_ct_NMEDIT="nmedit"
12614 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12615 break 2
12616 fi
12617 done
12618 done
12619 IFS=$as_save_IFS
12620
12621 fi
12622 fi
12623 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
12624 if test -n "$ac_ct_NMEDIT"; then
12625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
12626 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
12627 else
12628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12629 printf "%s\n" "no" >&6; }
12630 fi
12631
12632 if test "x$ac_ct_NMEDIT" = x; then
12633 NMEDIT=":"
12634 else
12635 case $cross_compiling:$ac_tool_warned in
12636 yes:)
12637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12638 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12639 ac_tool_warned=yes ;;
12640 esac
12641 NMEDIT=$ac_ct_NMEDIT
12642 fi
12643 else
12644 NMEDIT="$ac_cv_prog_NMEDIT"
12645 fi
12646
12647 if test -n "$ac_tool_prefix"; then
12648 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
12649 set dummy ${ac_tool_prefix}lipo; ac_word=$2
12650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12651 printf %s "checking for $ac_word... " >&6; }
12652 if test ${ac_cv_prog_LIPO+y}
12653 then :
12654 printf %s "(cached) " >&6
12655 else $as_nop
12656 if test -n "$LIPO"; then
12657 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
12658 else
12659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12660 for as_dir in $PATH
12661 do
12662 IFS=$as_save_IFS
12663 case $as_dir in #(((
12664 '') as_dir=./ ;;
12665 */) ;;
12666 *) as_dir=$as_dir/ ;;
12667 esac
12668 for ac_exec_ext in '' $ac_executable_extensions; do
12669 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12670 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
12671 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12672 break 2
12673 fi
12674 done
12675 done
12676 IFS=$as_save_IFS
12677
12678 fi
12679 fi
12680 LIPO=$ac_cv_prog_LIPO
12681 if test -n "$LIPO"; then
12682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
12683 printf "%s\n" "$LIPO" >&6; }
12684 else
12685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12686 printf "%s\n" "no" >&6; }
12687 fi
12688
12689
12690 fi
12691 if test -z "$ac_cv_prog_LIPO"; then
12692 ac_ct_LIPO=$LIPO
12693 # Extract the first word of "lipo", so it can be a program name with args.
12694 set dummy lipo; ac_word=$2
12695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12696 printf %s "checking for $ac_word... " >&6; }
12697 if test ${ac_cv_prog_ac_ct_LIPO+y}
12698 then :
12699 printf %s "(cached) " >&6
12700 else $as_nop
12701 if test -n "$ac_ct_LIPO"; then
12702 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
12703 else
12704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12705 for as_dir in $PATH
12706 do
12707 IFS=$as_save_IFS
12708 case $as_dir in #(((
12709 '') as_dir=./ ;;
12710 */) ;;
12711 *) as_dir=$as_dir/ ;;
12712 esac
12713 for ac_exec_ext in '' $ac_executable_extensions; do
12714 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12715 ac_cv_prog_ac_ct_LIPO="lipo"
12716 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12717 break 2
12718 fi
12719 done
12720 done
12721 IFS=$as_save_IFS
12722
12723 fi
12724 fi
12725 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
12726 if test -n "$ac_ct_LIPO"; then
12727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
12728 printf "%s\n" "$ac_ct_LIPO" >&6; }
12729 else
12730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12731 printf "%s\n" "no" >&6; }
12732 fi
12733
12734 if test "x$ac_ct_LIPO" = x; then
12735 LIPO=":"
12736 else
12737 case $cross_compiling:$ac_tool_warned in
12738 yes:)
12739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12740 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12741 ac_tool_warned=yes ;;
12742 esac
12743 LIPO=$ac_ct_LIPO
12744 fi
12745 else
12746 LIPO="$ac_cv_prog_LIPO"
12747 fi
12748
12749 if test -n "$ac_tool_prefix"; then
12750 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
12751 set dummy ${ac_tool_prefix}otool; ac_word=$2
12752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12753 printf %s "checking for $ac_word... " >&6; }
12754 if test ${ac_cv_prog_OTOOL+y}
12755 then :
12756 printf %s "(cached) " >&6
12757 else $as_nop
12758 if test -n "$OTOOL"; then
12759 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12760 else
12761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12762 for as_dir in $PATH
12763 do
12764 IFS=$as_save_IFS
12765 case $as_dir in #(((
12766 '') as_dir=./ ;;
12767 */) ;;
12768 *) as_dir=$as_dir/ ;;
12769 esac
12770 for ac_exec_ext in '' $ac_executable_extensions; do
12771 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12772 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
12773 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12774 break 2
12775 fi
12776 done
12777 done
12778 IFS=$as_save_IFS
12779
12780 fi
12781 fi
12782 OTOOL=$ac_cv_prog_OTOOL
12783 if test -n "$OTOOL"; then
12784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12785 printf "%s\n" "$OTOOL" >&6; }
12786 else
12787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12788 printf "%s\n" "no" >&6; }
12789 fi
12790
12791
12792 fi
12793 if test -z "$ac_cv_prog_OTOOL"; then
12794 ac_ct_OTOOL=$OTOOL
12795 # Extract the first word of "otool", so it can be a program name with args.
12796 set dummy otool; ac_word=$2
12797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12798 printf %s "checking for $ac_word... " >&6; }
12799 if test ${ac_cv_prog_ac_ct_OTOOL+y}
12800 then :
12801 printf %s "(cached) " >&6
12802 else $as_nop
12803 if test -n "$ac_ct_OTOOL"; then
12804 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
12805 else
12806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12807 for as_dir in $PATH
12808 do
12809 IFS=$as_save_IFS
12810 case $as_dir in #(((
12811 '') as_dir=./ ;;
12812 */) ;;
12813 *) as_dir=$as_dir/ ;;
12814 esac
12815 for ac_exec_ext in '' $ac_executable_extensions; do
12816 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12817 ac_cv_prog_ac_ct_OTOOL="otool"
12818 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12819 break 2
12820 fi
12821 done
12822 done
12823 IFS=$as_save_IFS
12824
12825 fi
12826 fi
12827 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
12828 if test -n "$ac_ct_OTOOL"; then
12829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
12830 printf "%s\n" "$ac_ct_OTOOL" >&6; }
12831 else
12832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12833 printf "%s\n" "no" >&6; }
12834 fi
12835
12836 if test "x$ac_ct_OTOOL" = x; then
12837 OTOOL=":"
12838 else
12839 case $cross_compiling:$ac_tool_warned in
12840 yes:)
12841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12842 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12843 ac_tool_warned=yes ;;
12844 esac
12845 OTOOL=$ac_ct_OTOOL
12846 fi
12847 else
12848 OTOOL="$ac_cv_prog_OTOOL"
12849 fi
12850
12851 if test -n "$ac_tool_prefix"; then
12852 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
12853 set dummy ${ac_tool_prefix}otool64; ac_word=$2
12854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12855 printf %s "checking for $ac_word... " >&6; }
12856 if test ${ac_cv_prog_OTOOL64+y}
12857 then :
12858 printf %s "(cached) " >&6
12859 else $as_nop
12860 if test -n "$OTOOL64"; then
12861 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
12862 else
12863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12864 for as_dir in $PATH
12865 do
12866 IFS=$as_save_IFS
12867 case $as_dir in #(((
12868 '') as_dir=./ ;;
12869 */) ;;
12870 *) as_dir=$as_dir/ ;;
12871 esac
12872 for ac_exec_ext in '' $ac_executable_extensions; do
12873 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12874 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
12875 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12876 break 2
12877 fi
12878 done
12879 done
12880 IFS=$as_save_IFS
12881
12882 fi
12883 fi
12884 OTOOL64=$ac_cv_prog_OTOOL64
12885 if test -n "$OTOOL64"; then
12886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
12887 printf "%s\n" "$OTOOL64" >&6; }
12888 else
12889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12890 printf "%s\n" "no" >&6; }
12891 fi
12892
12893
12894 fi
12895 if test -z "$ac_cv_prog_OTOOL64"; then
12896 ac_ct_OTOOL64=$OTOOL64
12897 # Extract the first word of "otool64", so it can be a program name with args.
12898 set dummy otool64; ac_word=$2
12899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12900 printf %s "checking for $ac_word... " >&6; }
12901 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
12902 then :
12903 printf %s "(cached) " >&6
12904 else $as_nop
12905 if test -n "$ac_ct_OTOOL64"; then
12906 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
12907 else
12908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12909 for as_dir in $PATH
12910 do
12911 IFS=$as_save_IFS
12912 case $as_dir in #(((
12913 '') as_dir=./ ;;
12914 */) ;;
12915 *) as_dir=$as_dir/ ;;
12916 esac
12917 for ac_exec_ext in '' $ac_executable_extensions; do
12918 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12919 ac_cv_prog_ac_ct_OTOOL64="otool64"
12920 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12921 break 2
12922 fi
12923 done
12924 done
12925 IFS=$as_save_IFS
12926
12927 fi
12928 fi
12929 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
12930 if test -n "$ac_ct_OTOOL64"; then
12931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
12932 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
12933 else
12934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12935 printf "%s\n" "no" >&6; }
12936 fi
12937
12938 if test "x$ac_ct_OTOOL64" = x; then
12939 OTOOL64=":"
12940 else
12941 case $cross_compiling:$ac_tool_warned in
12942 yes:)
12943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12944 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12945 ac_tool_warned=yes ;;
12946 esac
12947 OTOOL64=$ac_ct_OTOOL64
12948 fi
12949 else
12950 OTOOL64="$ac_cv_prog_OTOOL64"
12951 fi
12952
12953
12954
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964
12965
12966
12967
12968
12969
12970
12971
12972
12973
12974
12975
12976
12977
12978
12979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
12980 printf %s "checking for -single_module linker flag... " >&6; }
12981 if test ${lt_cv_apple_cc_single_mod+y}
12982 then :
12983 printf %s "(cached) " >&6
12984 else $as_nop
12985 lt_cv_apple_cc_single_mod=no
12986 if test -z "$LT_MULTI_MODULE"; then
12987 # By default we will add the -single_module flag. You can override
12988 # by either setting the environment variable LT_MULTI_MODULE
12989 # non-empty at configure time, or by adding -multi_module to the
12990 # link flags.
12991 rm -rf libconftest.dylib*
12992 echo "int foo(void){return 1;}" > conftest.c
12993 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12994 -dynamiclib -Wl,-single_module conftest.c" >&5
12995 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12996 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
12997 _lt_result=$?
12998 # If there is a non-empty error log, and "single_module"
12999 # appears in it, assume the flag caused a linker warning
13000 if test -s conftest.err && $GREP single_module conftest.err; then
13001 cat conftest.err >&5
13002 # Otherwise, if the output was created with a 0 exit code from
13003 # the compiler, it worked.
13004 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
13005 lt_cv_apple_cc_single_mod=yes
13006 else
13007 cat conftest.err >&5
13008 fi
13009 rm -rf libconftest.dylib*
13010 rm -f conftest.*
13011 fi
13012 fi
13013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13014 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
13015
13016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13017 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
13018 if test ${lt_cv_ld_exported_symbols_list+y}
13019 then :
13020 printf %s "(cached) " >&6
13021 else $as_nop
13022 lt_cv_ld_exported_symbols_list=no
13023 save_LDFLAGS=$LDFLAGS
13024 echo "_main" > conftest.sym
13025 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13027 /* end confdefs.h. */
13028
13029 int
13030 main (void)
13031 {
13032
13033 ;
13034 return 0;
13035 }
13036 _ACEOF
13037 if ac_fn_c_try_link "$LINENO"
13038 then :
13039 lt_cv_ld_exported_symbols_list=yes
13040 else $as_nop
13041 lt_cv_ld_exported_symbols_list=no
13042 fi
13043 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13044 conftest$ac_exeext conftest.$ac_ext
13045 LDFLAGS=$save_LDFLAGS
13046
13047 fi
13048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13049 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
13050
13051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13052 printf %s "checking for -force_load linker flag... " >&6; }
13053 if test ${lt_cv_ld_force_load+y}
13054 then :
13055 printf %s "(cached) " >&6
13056 else $as_nop
13057 lt_cv_ld_force_load=no
13058 cat > conftest.c << _LT_EOF
13059 int forced_loaded() { return 2;}
13060 _LT_EOF
13061 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13062 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13063 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
13064 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
13065 echo "$RANLIB libconftest.a" >&5
13066 $RANLIB libconftest.a 2>&5
13067 cat > conftest.c << _LT_EOF
13068 int main() { return 0;}
13069 _LT_EOF
13070 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13071 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13072 _lt_result=$?
13073 if test -s conftest.err && $GREP force_load conftest.err; then
13074 cat conftest.err >&5
13075 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
13076 lt_cv_ld_force_load=yes
13077 else
13078 cat conftest.err >&5
13079 fi
13080 rm -f conftest.err libconftest.a conftest conftest.c
13081 rm -rf conftest.dSYM
13082
13083 fi
13084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13085 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
13086 case $host_os in
13087 rhapsody* | darwin1.[012])
13088 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
13089 darwin1.*)
13090 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
13091 darwin*)
13092 case $MACOSX_DEPLOYMENT_TARGET,$host in
13093 10.[012],*|,*powerpc*-darwin[5-8]*)
13094 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
13095 *)
13096 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
13097 esac
13098 ;;
13099 esac
13100 if test yes = "$lt_cv_apple_cc_single_mod"; then
13101 _lt_dar_single_mod='$single_module'
13102 fi
13103 if test yes = "$lt_cv_ld_exported_symbols_list"; then
13104 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
13105 else
13106 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
13107 fi
13108 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
13109 _lt_dsymutil='~$DSYMUTIL $lib || :'
13110 else
13111 _lt_dsymutil=
13112 fi
13113 ;;
13114 esac
13115
13116 # func_munge_path_list VARIABLE PATH
13117 # -----------------------------------
13118 # VARIABLE is name of variable containing _space_ separated list of
13119 # directories to be munged by the contents of PATH, which is string
13120 # having a format:
13121 # "DIR[:DIR]:"
13122 # string "DIR[ DIR]" will be prepended to VARIABLE
13123 # ":DIR[:DIR]"
13124 # string "DIR[ DIR]" will be appended to VARIABLE
13125 # "DIRP[:DIRP]::[DIRA:]DIRA"
13126 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
13127 # "DIRA[ DIRA]" will be appended to VARIABLE
13128 # "DIR[:DIR]"
13129 # VARIABLE will be replaced by "DIR[ DIR]"
13130 func_munge_path_list ()
13131 {
13132 case x$2 in
13133 x)
13134 ;;
13135 *:)
13136 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
13137 ;;
13138 x:*)
13139 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
13140 ;;
13141 *::*)
13142 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
13143 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
13144 ;;
13145 *)
13146 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
13147 ;;
13148 esac
13149 }
13150
13151 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13152 "
13153 if test "x$ac_cv_header_dlfcn_h" = xyes
13154 then :
13155 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
13156
13157 fi
13158
13159
13160
13161
13162
13163 # Set options
13164
13165
13166
13167 enable_dlopen=no
13168
13169
13170 enable_win32_dll=no
13171
13172
13173 # Check whether --enable-shared was given.
13174 if test ${enable_shared+y}
13175 then :
13176 enableval=$enable_shared; p=${PACKAGE-default}
13177 case $enableval in
13178 yes) enable_shared=yes ;;
13179 no) enable_shared=no ;;
13180 *)
13181 enable_shared=no
13182 # Look at the argument we got. We use all the common list separators.
13183 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
13184 for pkg in $enableval; do
13185 IFS=$lt_save_ifs
13186 if test "X$pkg" = "X$p"; then
13187 enable_shared=yes
13188 fi
13189 done
13190 IFS=$lt_save_ifs
13191 ;;
13192 esac
13193 else $as_nop
13194 enable_shared=yes
13195 fi
13196
13197
13198
13199
13200
13201
13202
13203
13204
13205 # Check whether --enable-static was given.
13206 if test ${enable_static+y}
13207 then :
13208 enableval=$enable_static; p=${PACKAGE-default}
13209 case $enableval in
13210 yes) enable_static=yes ;;
13211 no) enable_static=no ;;
13212 *)
13213 enable_static=no
13214 # Look at the argument we got. We use all the common list separators.
13215 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
13216 for pkg in $enableval; do
13217 IFS=$lt_save_ifs
13218 if test "X$pkg" = "X$p"; then
13219 enable_static=yes
13220 fi
13221 done
13222 IFS=$lt_save_ifs
13223 ;;
13224 esac
13225 else $as_nop
13226 enable_static=yes
13227 fi
13228
13229
13230
13231
13232
13233
13234
13235
13236
13237
13238 # Check whether --with-pic was given.
13239 if test ${with_pic+y}
13240 then :
13241 withval=$with_pic; lt_p=${PACKAGE-default}
13242 case $withval in
13243 yes|no) pic_mode=$withval ;;
13244 *)
13245 pic_mode=default
13246 # Look at the argument we got. We use all the common list separators.
13247 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
13248 for lt_pkg in $withval; do
13249 IFS=$lt_save_ifs
13250 if test "X$lt_pkg" = "X$lt_p"; then
13251 pic_mode=yes
13252 fi
13253 done
13254 IFS=$lt_save_ifs
13255 ;;
13256 esac
13257 else $as_nop
13258 pic_mode=default
13259 fi
13260
13261
13262
13263
13264
13265
13266
13267
13268 # Check whether --enable-fast-install was given.
13269 if test ${enable_fast_install+y}
13270 then :
13271 enableval=$enable_fast_install; p=${PACKAGE-default}
13272 case $enableval in
13273 yes) enable_fast_install=yes ;;
13274 no) enable_fast_install=no ;;
13275 *)
13276 enable_fast_install=no
13277 # Look at the argument we got. We use all the common list separators.
13278 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
13279 for pkg in $enableval; do
13280 IFS=$lt_save_ifs
13281 if test "X$pkg" = "X$p"; then
13282 enable_fast_install=yes
13283 fi
13284 done
13285 IFS=$lt_save_ifs
13286 ;;
13287 esac
13288 else $as_nop
13289 enable_fast_install=yes
13290 fi
13291
13292
13293
13294
13295
13296
13297
13298
13299 shared_archive_member_spec=
13300 case $host,$enable_shared in
13301 power*-*-aix[5-9]*,yes)
13302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
13303 printf %s "checking which variant of shared library versioning to provide... " >&6; }
13304
13305 # Check whether --with-aix-soname was given.
13306 if test ${with_aix_soname+y}
13307 then :
13308 withval=$with_aix_soname; case $withval in
13309 aix|svr4|both)
13310 ;;
13311 *)
13312 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
13313 ;;
13314 esac
13315 lt_cv_with_aix_soname=$with_aix_soname
13316 else $as_nop
13317 if test ${lt_cv_with_aix_soname+y}
13318 then :
13319 printf %s "(cached) " >&6
13320 else $as_nop
13321 lt_cv_with_aix_soname=aix
13322 fi
13323
13324 with_aix_soname=$lt_cv_with_aix_soname
13325 fi
13326
13327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
13328 printf "%s\n" "$with_aix_soname" >&6; }
13329 if test aix != "$with_aix_soname"; then
13330 # For the AIX way of multilib, we name the shared archive member
13331 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
13332 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
13333 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
13334 # the AIX toolchain works better with OBJECT_MODE set (default 32).
13335 if test 64 = "${OBJECT_MODE-32}"; then
13336 shared_archive_member_spec=shr_64
13337 else
13338 shared_archive_member_spec=shr
13339 fi
13340 fi
13341 ;;
13342 *)
13343 with_aix_soname=aix
13344 ;;
13345 esac
13346
13347
13348
13349
13350
13351
13352
13353
13354
13355
13356 # This can be used to rebuild libtool when needed
13357 LIBTOOL_DEPS=$ltmain
13358
13359 # Always use our own libtool.
13360 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13361
13362
13363
13364
13365
13366
13367
13368
13369
13370
13371
13372
13373
13374
13375
13376
13377
13378
13379
13380
13381
13382
13383
13384
13385
13386
13387
13388
13389
13390
13391 test -z "$LN_S" && LN_S="ln -s"
13392
13393
13394
13395
13396
13397
13398
13399
13400
13401
13402
13403
13404
13405
13406 if test -n "${ZSH_VERSION+set}"; then
13407 setopt NO_GLOB_SUBST
13408 fi
13409
13410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13411 printf %s "checking for objdir... " >&6; }
13412 if test ${lt_cv_objdir+y}
13413 then :
13414 printf %s "(cached) " >&6
13415 else $as_nop
13416 rm -f .libs 2>/dev/null
13417 mkdir .libs 2>/dev/null
13418 if test -d .libs; then
13419 lt_cv_objdir=.libs
13420 else
13421 # MS-DOS does not allow filenames that begin with a dot.
13422 lt_cv_objdir=_libs
13423 fi
13424 rmdir .libs 2>/dev/null
13425 fi
13426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13427 printf "%s\n" "$lt_cv_objdir" >&6; }
13428 objdir=$lt_cv_objdir
13429
13430
13431
13432
13433
13434 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
13435
13436
13437
13438
13439 case $host_os in
13440 aix3*)
13441 # AIX sometimes has problems with the GCC collect2 program. For some
13442 # reason, if we set the COLLECT_NAMES environment variable, the problems
13443 # vanish in a puff of smoke.
13444 if test set != "${COLLECT_NAMES+set}"; then
13445 COLLECT_NAMES=
13446 export COLLECT_NAMES
13447 fi
13448 ;;
13449 esac
13450
13451 # Global variables:
13452 ofile=libtool
13453 can_build_shared=yes
13454
13455 # All known linkers require a '.a' archive for static linking (except MSVC and
13456 # ICC, which need '.lib').
13457 libext=a
13458
13459 with_gnu_ld=$lt_cv_prog_gnu_ld
13460
13461 old_CC=$CC
13462 old_CFLAGS=$CFLAGS
13463
13464 # Set sane defaults for various variables
13465 test -z "$CC" && CC=cc
13466 test -z "$LTCC" && LTCC=$CC
13467 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13468 test -z "$LD" && LD=ld
13469 test -z "$ac_objext" && ac_objext=o
13470
13471 func_cc_basename $compiler
13472 cc_basename=$func_cc_basename_result
13473
13474
13475 # Only perform the check for file, if the check method requires it
13476 test -z "$MAGIC_CMD" && MAGIC_CMD=file
13477 case $deplibs_check_method in
13478 file_magic*)
13479 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
13481 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
13482 if test ${lt_cv_path_MAGIC_CMD+y}
13483 then :
13484 printf %s "(cached) " >&6
13485 else $as_nop
13486 case $MAGIC_CMD in
13487 [\\/*] | ?:[\\/]*)
13488 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
13489 ;;
13490 *)
13491 lt_save_MAGIC_CMD=$MAGIC_CMD
13492 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
13493 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13494 for ac_dir in $ac_dummy; do
13495 IFS=$lt_save_ifs
13496 test -z "$ac_dir" && ac_dir=.
13497 if test -f "$ac_dir/${ac_tool_prefix}file"; then
13498 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
13499 if test -n "$file_magic_test_file"; then
13500 case $deplibs_check_method in
13501 "file_magic "*)
13502 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13503 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
13504 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13505 $EGREP "$file_magic_regex" > /dev/null; then
13506 :
13507 else
13508 cat <<_LT_EOF 1>&2
13509
13510 *** Warning: the command libtool uses to detect shared libraries,
13511 *** $file_magic_cmd, produces output that libtool cannot recognize.
13512 *** The result is that libtool may fail to recognize shared libraries
13513 *** as such. This will affect the creation of libtool libraries that
13514 *** depend on shared libraries, but programs linked with such libtool
13515 *** libraries will work regardless of this problem. Nevertheless, you
13516 *** may want to report the problem to your system manager and/or to
13517 *** [email protected]
13518
13519 _LT_EOF
13520 fi ;;
13521 esac
13522 fi
13523 break
13524 fi
13525 done
13526 IFS=$lt_save_ifs
13527 MAGIC_CMD=$lt_save_MAGIC_CMD
13528 ;;
13529 esac
13530 fi
13531
13532 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
13533 if test -n "$MAGIC_CMD"; then
13534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13535 printf "%s\n" "$MAGIC_CMD" >&6; }
13536 else
13537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13538 printf "%s\n" "no" >&6; }
13539 fi
13540
13541
13542
13543
13544
13545 if test -z "$lt_cv_path_MAGIC_CMD"; then
13546 if test -n "$ac_tool_prefix"; then
13547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
13548 printf %s "checking for file... " >&6; }
13549 if test ${lt_cv_path_MAGIC_CMD+y}
13550 then :
13551 printf %s "(cached) " >&6
13552 else $as_nop
13553 case $MAGIC_CMD in
13554 [\\/*] | ?:[\\/]*)
13555 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
13556 ;;
13557 *)
13558 lt_save_MAGIC_CMD=$MAGIC_CMD
13559 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
13560 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13561 for ac_dir in $ac_dummy; do
13562 IFS=$lt_save_ifs
13563 test -z "$ac_dir" && ac_dir=.
13564 if test -f "$ac_dir/file"; then
13565 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
13566 if test -n "$file_magic_test_file"; then
13567 case $deplibs_check_method in
13568 "file_magic "*)
13569 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13570 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
13571 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13572 $EGREP "$file_magic_regex" > /dev/null; then
13573 :
13574 else
13575 cat <<_LT_EOF 1>&2
13576
13577 *** Warning: the command libtool uses to detect shared libraries,
13578 *** $file_magic_cmd, produces output that libtool cannot recognize.
13579 *** The result is that libtool may fail to recognize shared libraries
13580 *** as such. This will affect the creation of libtool libraries that
13581 *** depend on shared libraries, but programs linked with such libtool
13582 *** libraries will work regardless of this problem. Nevertheless, you
13583 *** may want to report the problem to your system manager and/or to
13584 *** [email protected]
13585
13586 _LT_EOF
13587 fi ;;
13588 esac
13589 fi
13590 break
13591 fi
13592 done
13593 IFS=$lt_save_ifs
13594 MAGIC_CMD=$lt_save_MAGIC_CMD
13595 ;;
13596 esac
13597 fi
13598
13599 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
13600 if test -n "$MAGIC_CMD"; then
13601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13602 printf "%s\n" "$MAGIC_CMD" >&6; }
13603 else
13604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13605 printf "%s\n" "no" >&6; }
13606 fi
13607
13608
13609 else
13610 MAGIC_CMD=:
13611 fi
13612 fi
13613
13614 fi
13615 ;;
13616 esac
13617
13618 # Use C for the default configuration in the libtool script
13619
13620 lt_save_CC=$CC
13621 ac_ext=c
13622 ac_cpp='$CPP $CPPFLAGS'
13623 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13624 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13625 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13626
13627
13628 # Source file extension for C test sources.
13629 ac_ext=c
13630
13631 # Object file extension for compiled C test sources.
13632 objext=o
13633 objext=$objext
13634
13635 # Code to be used in simple compile tests
13636 lt_simple_compile_test_code="int some_variable = 0;"
13637
13638 # Code to be used in simple link tests
13639 lt_simple_link_test_code='int main(){return(0);}'
13640
13641
13642
13643
13644
13645
13646
13647 # If no C compiler was specified, use CC.
13648 LTCC=${LTCC-"$CC"}
13649
13650 # If no C compiler flags were specified, use CFLAGS.
13651 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13652
13653 # Allow CC to be a program name with arguments.
13654 compiler=$CC
13655
13656 # Save the default compiler, since it gets overwritten when the other
13657 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
13658 compiler_DEFAULT=$CC
13659
13660 # save warnings/boilerplate of simple test code
13661 ac_outfile=conftest.$ac_objext
13662 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13663 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13664 _lt_compiler_boilerplate=`cat conftest.err`
13665 $RM conftest*
13666
13667 ac_outfile=conftest.$ac_objext
13668 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13669 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13670 _lt_linker_boilerplate=`cat conftest.err`
13671 $RM -r conftest*
13672
13673
13674 ## CAVEAT EMPTOR:
13675 ## There is no encapsulation within the following macros, do not change
13676 ## the running order or otherwise move them around unless you know exactly
13677 ## what you are doing...
13678 if test -n "$compiler"; then
13679
13680 lt_prog_compiler_no_builtin_flag=
13681
13682 if test yes = "$GCC"; then
13683 case $cc_basename in
13684 nvcc*)
13685 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
13686 *)
13687 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
13688 esac
13689
13690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13691 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
13692 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
13693 then :
13694 printf %s "(cached) " >&6
13695 else $as_nop
13696 lt_cv_prog_compiler_rtti_exceptions=no
13697 ac_outfile=conftest.$ac_objext
13698 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13699 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
13700 # Insert the option either (1) after the last *FLAGS variable, or
13701 # (2) before a word containing "conftest.", or (3) at the end.
13702 # Note that $ac_compile itself does not contain backslashes and begins
13703 # with a dollar sign (not a hyphen), so the echo should work correctly.
13704 # The option is referenced via a variable to avoid confusing sed.
13705 lt_compile=`echo "$ac_compile" | $SED \
13706 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13707 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13708 -e 's:$: $lt_compiler_flag:'`
13709 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13710 (eval "$lt_compile" 2>conftest.err)
13711 ac_status=$?
13712 cat conftest.err >&5
13713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13714 if (exit $ac_status) && test -s "$ac_outfile"; then
13715 # The compiler can only warn and ignore the option if not recognized
13716 # So say no if there are warnings other than the usual output.
13717 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13718 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13719 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13720 lt_cv_prog_compiler_rtti_exceptions=yes
13721 fi
13722 fi
13723 $RM conftest*
13724
13725 fi
13726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13727 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13728
13729 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
13730 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13731 else
13732 :
13733 fi
13734
13735 fi
13736
13737
13738
13739
13740
13741
13742 lt_prog_compiler_wl=
13743 lt_prog_compiler_pic=
13744 lt_prog_compiler_static=
13745
13746
13747 if test yes = "$GCC"; then
13748 lt_prog_compiler_wl='-Wl,'
13749 lt_prog_compiler_static='-static'
13750
13751 case $host_os in
13752 aix*)
13753 # All AIX code is PIC.
13754 if test ia64 = "$host_cpu"; then
13755 # AIX 5 now supports IA64 processor
13756 lt_prog_compiler_static='-Bstatic'
13757 fi
13758 lt_prog_compiler_pic='-fPIC'
13759 ;;
13760
13761 amigaos*)
13762 case $host_cpu in
13763 powerpc)
13764 # see comment about AmigaOS4 .so support
13765 lt_prog_compiler_pic='-fPIC'
13766 ;;
13767 m68k)
13768 # FIXME: we need at least 68020 code to build shared libraries, but
13769 # adding the '-m68020' flag to GCC prevents building anything better,
13770 # like '-m68040'.
13771 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13772 ;;
13773 esac
13774 ;;
13775
13776 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13777 # PIC is the default for these OSes.
13778 ;;
13779
13780 mingw* | cygwin* | pw32* | os2* | cegcc*)
13781 # This hack is so that the source file can tell whether it is being
13782 # built for inclusion in a dll (and should export symbols for example).
13783 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13784 # (--disable-auto-import) libraries
13785 lt_prog_compiler_pic='-DDLL_EXPORT'
13786 case $host_os in
13787 os2*)
13788 lt_prog_compiler_static='$wl-static'
13789 ;;
13790 esac
13791 ;;
13792
13793 darwin* | rhapsody*)
13794 # PIC is the default on this platform
13795 # Common symbols not allowed in MH_DYLIB files
13796 lt_prog_compiler_pic='-fno-common'
13797 ;;
13798
13799 haiku*)
13800 # PIC is the default for Haiku.
13801 # The "-static" flag exists, but is broken.
13802 lt_prog_compiler_static=
13803 ;;
13804
13805 hpux*)
13806 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13807 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13808 # sets the default TLS model and affects inlining.
13809 case $host_cpu in
13810 hppa*64*)
13811 # +Z the default
13812 ;;
13813 *)
13814 lt_prog_compiler_pic='-fPIC'
13815 ;;
13816 esac
13817 ;;
13818
13819 interix[3-9]*)
13820 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13821 # Instead, we relocate shared libraries at runtime.
13822 ;;
13823
13824 msdosdjgpp*)
13825 # Just because we use GCC doesn't mean we suddenly get shared libraries
13826 # on systems that don't support them.
13827 lt_prog_compiler_can_build_shared=no
13828 enable_shared=no
13829 ;;
13830
13831 *nto* | *qnx*)
13832 # QNX uses GNU C++, but need to define -shared option too, otherwise
13833 # it will coredump.
13834 lt_prog_compiler_pic='-fPIC -shared'
13835 ;;
13836
13837 sysv4*MP*)
13838 if test -d /usr/nec; then
13839 lt_prog_compiler_pic=-Kconform_pic
13840 fi
13841 ;;
13842
13843 *)
13844 lt_prog_compiler_pic='-fPIC'
13845 ;;
13846 esac
13847
13848 case $cc_basename in
13849 nvcc*) # Cuda Compiler Driver 2.2
13850 lt_prog_compiler_wl='-Xlinker '
13851 if test -n "$lt_prog_compiler_pic"; then
13852 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
13853 fi
13854 ;;
13855 esac
13856 else
13857 # PORTME Check for flag to pass linker flags through the system compiler.
13858 case $host_os in
13859 aix*)
13860 lt_prog_compiler_wl='-Wl,'
13861 if test ia64 = "$host_cpu"; then
13862 # AIX 5 now supports IA64 processor
13863 lt_prog_compiler_static='-Bstatic'
13864 else
13865 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13866 fi
13867 ;;
13868
13869 darwin* | rhapsody*)
13870 # PIC is the default on this platform
13871 # Common symbols not allowed in MH_DYLIB files
13872 lt_prog_compiler_pic='-fno-common'
13873 case $cc_basename in
13874 nagfor*)
13875 # NAG Fortran compiler
13876 lt_prog_compiler_wl='-Wl,-Wl,,'
13877 lt_prog_compiler_pic='-PIC'
13878 lt_prog_compiler_static='-Bstatic'
13879 ;;
13880 esac
13881 ;;
13882
13883 mingw* | cygwin* | pw32* | os2* | cegcc*)
13884 # This hack is so that the source file can tell whether it is being
13885 # built for inclusion in a dll (and should export symbols for example).
13886 lt_prog_compiler_pic='-DDLL_EXPORT'
13887 case $host_os in
13888 os2*)
13889 lt_prog_compiler_static='$wl-static'
13890 ;;
13891 esac
13892 ;;
13893
13894 hpux9* | hpux10* | hpux11*)
13895 lt_prog_compiler_wl='-Wl,'
13896 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13897 # not for PA HP-UX.
13898 case $host_cpu in
13899 hppa*64*|ia64*)
13900 # +Z the default
13901 ;;
13902 *)
13903 lt_prog_compiler_pic='+Z'
13904 ;;
13905 esac
13906 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13907 lt_prog_compiler_static='$wl-a ${wl}archive'
13908 ;;
13909
13910 irix5* | irix6* | nonstopux*)
13911 lt_prog_compiler_wl='-Wl,'
13912 # PIC (with -KPIC) is the default.
13913 lt_prog_compiler_static='-non_shared'
13914 ;;
13915
13916 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13917 case $cc_basename in
13918 # old Intel for x86_64, which still supported -KPIC.
13919 ecc*)
13920 lt_prog_compiler_wl='-Wl,'
13921 lt_prog_compiler_pic='-KPIC'
13922 lt_prog_compiler_static='-static'
13923 ;;
13924 # icc used to be incompatible with GCC.
13925 # ICC 10 doesn't accept -KPIC any more.
13926 icc* | ifort*)
13927 lt_prog_compiler_wl='-Wl,'
13928 lt_prog_compiler_pic='-fPIC'
13929 lt_prog_compiler_static='-static'
13930 ;;
13931 # Lahey Fortran 8.1.
13932 lf95*)
13933 lt_prog_compiler_wl='-Wl,'
13934 lt_prog_compiler_pic='--shared'
13935 lt_prog_compiler_static='--static'
13936 ;;
13937 nagfor*)
13938 # NAG Fortran compiler
13939 lt_prog_compiler_wl='-Wl,-Wl,,'
13940 lt_prog_compiler_pic='-PIC'
13941 lt_prog_compiler_static='-Bstatic'
13942 ;;
13943 tcc*)
13944 # Fabrice Bellard et al's Tiny C Compiler
13945 lt_prog_compiler_wl='-Wl,'
13946 lt_prog_compiler_pic='-fPIC'
13947 lt_prog_compiler_static='-static'
13948 ;;
13949 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
13950 # Portland Group compilers (*not* the Pentium gcc compiler,
13951 # which looks to be a dead project)
13952 lt_prog_compiler_wl='-Wl,'
13953 lt_prog_compiler_pic='-fpic'
13954 lt_prog_compiler_static='-Bstatic'
13955 ;;
13956 ccc*)
13957 lt_prog_compiler_wl='-Wl,'
13958 # All Alpha code is PIC.
13959 lt_prog_compiler_static='-non_shared'
13960 ;;
13961 xl* | bgxl* | bgf* | mpixl*)
13962 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
13963 lt_prog_compiler_wl='-Wl,'
13964 lt_prog_compiler_pic='-qpic'
13965 lt_prog_compiler_static='-qstaticlink'
13966 ;;
13967 *)
13968 case `$CC -V 2>&1 | $SED 5q` in
13969 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
13970 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13971 lt_prog_compiler_pic='-KPIC'
13972 lt_prog_compiler_static='-Bstatic'
13973 lt_prog_compiler_wl=''
13974 ;;
13975 *Sun\ F* | *Sun*Fortran*)
13976 lt_prog_compiler_pic='-KPIC'
13977 lt_prog_compiler_static='-Bstatic'
13978 lt_prog_compiler_wl='-Qoption ld '
13979 ;;
13980 *Sun\ C*)
13981 # Sun C 5.9
13982 lt_prog_compiler_pic='-KPIC'
13983 lt_prog_compiler_static='-Bstatic'
13984 lt_prog_compiler_wl='-Wl,'
13985 ;;
13986 *Intel*\ [CF]*Compiler*)
13987 lt_prog_compiler_wl='-Wl,'
13988 lt_prog_compiler_pic='-fPIC'
13989 lt_prog_compiler_static='-static'
13990 ;;
13991 *Portland\ Group*)
13992 lt_prog_compiler_wl='-Wl,'
13993 lt_prog_compiler_pic='-fpic'
13994 lt_prog_compiler_static='-Bstatic'
13995 ;;
13996 esac
13997 ;;
13998 esac
13999 ;;
14000
14001 newsos6)
14002 lt_prog_compiler_pic='-KPIC'
14003 lt_prog_compiler_static='-Bstatic'
14004 ;;
14005
14006 *nto* | *qnx*)
14007 # QNX uses GNU C++, but need to define -shared option too, otherwise
14008 # it will coredump.
14009 lt_prog_compiler_pic='-fPIC -shared'
14010 ;;
14011
14012 osf3* | osf4* | osf5*)
14013 lt_prog_compiler_wl='-Wl,'
14014 # All OSF/1 code is PIC.
14015 lt_prog_compiler_static='-non_shared'
14016 ;;
14017
14018 rdos*)
14019 lt_prog_compiler_static='-non_shared'
14020 ;;
14021
14022 solaris*)
14023 lt_prog_compiler_pic='-KPIC'
14024 lt_prog_compiler_static='-Bstatic'
14025 case $cc_basename in
14026 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
14027 lt_prog_compiler_wl='-Qoption ld ';;
14028 *)
14029 lt_prog_compiler_wl='-Wl,';;
14030 esac
14031 ;;
14032
14033 sunos4*)
14034 lt_prog_compiler_wl='-Qoption ld '
14035 lt_prog_compiler_pic='-PIC'
14036 lt_prog_compiler_static='-Bstatic'
14037 ;;
14038
14039 sysv4 | sysv4.2uw2* | sysv4.3*)
14040 lt_prog_compiler_wl='-Wl,'
14041 lt_prog_compiler_pic='-KPIC'
14042 lt_prog_compiler_static='-Bstatic'
14043 ;;
14044
14045 sysv4*MP*)
14046 if test -d /usr/nec; then
14047 lt_prog_compiler_pic='-Kconform_pic'
14048 lt_prog_compiler_static='-Bstatic'
14049 fi
14050 ;;
14051
14052 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14053 lt_prog_compiler_wl='-Wl,'
14054 lt_prog_compiler_pic='-KPIC'
14055 lt_prog_compiler_static='-Bstatic'
14056 ;;
14057
14058 unicos*)
14059 lt_prog_compiler_wl='-Wl,'
14060 lt_prog_compiler_can_build_shared=no
14061 ;;
14062
14063 uts4*)
14064 lt_prog_compiler_pic='-pic'
14065 lt_prog_compiler_static='-Bstatic'
14066 ;;
14067
14068 *)
14069 lt_prog_compiler_can_build_shared=no
14070 ;;
14071 esac
14072 fi
14073
14074 case $host_os in
14075 # For platforms that do not support PIC, -DPIC is meaningless:
14076 *djgpp*)
14077 lt_prog_compiler_pic=
14078 ;;
14079 *)
14080 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14081 ;;
14082 esac
14083
14084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14085 printf %s "checking for $compiler option to produce PIC... " >&6; }
14086 if test ${lt_cv_prog_compiler_pic+y}
14087 then :
14088 printf %s "(cached) " >&6
14089 else $as_nop
14090 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14091 fi
14092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14093 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
14094 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
14095
14096 #
14097 # Check to make sure the PIC flag actually works.
14098 #
14099 if test -n "$lt_prog_compiler_pic"; then
14100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14101 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14102 if test ${lt_cv_prog_compiler_pic_works+y}
14103 then :
14104 printf %s "(cached) " >&6
14105 else $as_nop
14106 lt_cv_prog_compiler_pic_works=no
14107 ac_outfile=conftest.$ac_objext
14108 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14109 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
14110 # Insert the option either (1) after the last *FLAGS variable, or
14111 # (2) before a word containing "conftest.", or (3) at the end.
14112 # Note that $ac_compile itself does not contain backslashes and begins
14113 # with a dollar sign (not a hyphen), so the echo should work correctly.
14114 # The option is referenced via a variable to avoid confusing sed.
14115 lt_compile=`echo "$ac_compile" | $SED \
14116 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14117 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14118 -e 's:$: $lt_compiler_flag:'`
14119 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14120 (eval "$lt_compile" 2>conftest.err)
14121 ac_status=$?
14122 cat conftest.err >&5
14123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14124 if (exit $ac_status) && test -s "$ac_outfile"; then
14125 # The compiler can only warn and ignore the option if not recognized
14126 # So say no if there are warnings other than the usual output.
14127 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14128 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14129 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14130 lt_cv_prog_compiler_pic_works=yes
14131 fi
14132 fi
14133 $RM conftest*
14134
14135 fi
14136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14137 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
14138
14139 if test yes = "$lt_cv_prog_compiler_pic_works"; then
14140 case $lt_prog_compiler_pic in
14141 "" | " "*) ;;
14142 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14143 esac
14144 else
14145 lt_prog_compiler_pic=
14146 lt_prog_compiler_can_build_shared=no
14147 fi
14148
14149 fi
14150
14151
14152
14153
14154
14155
14156
14157
14158
14159
14160
14161 #
14162 # Check to make sure the static flag actually works.
14163 #
14164 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14166 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14167 if test ${lt_cv_prog_compiler_static_works+y}
14168 then :
14169 printf %s "(cached) " >&6
14170 else $as_nop
14171 lt_cv_prog_compiler_static_works=no
14172 save_LDFLAGS=$LDFLAGS
14173 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14174 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14175 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14176 # The linker can only warn and ignore the option if not recognized
14177 # So say no if there are warnings
14178 if test -s conftest.err; then
14179 # Append any errors to the config.log.
14180 cat conftest.err 1>&5
14181 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14182 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14183 if diff conftest.exp conftest.er2 >/dev/null; then
14184 lt_cv_prog_compiler_static_works=yes
14185 fi
14186 else
14187 lt_cv_prog_compiler_static_works=yes
14188 fi
14189 fi
14190 $RM -r conftest*
14191 LDFLAGS=$save_LDFLAGS
14192
14193 fi
14194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14195 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
14196
14197 if test yes = "$lt_cv_prog_compiler_static_works"; then
14198 :
14199 else
14200 lt_prog_compiler_static=
14201 fi
14202
14203
14204
14205
14206
14207
14208
14209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14210 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14211 if test ${lt_cv_prog_compiler_c_o+y}
14212 then :
14213 printf %s "(cached) " >&6
14214 else $as_nop
14215 lt_cv_prog_compiler_c_o=no
14216 $RM -r conftest 2>/dev/null
14217 mkdir conftest
14218 cd conftest
14219 mkdir out
14220 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14221
14222 lt_compiler_flag="-o out/conftest2.$ac_objext"
14223 # Insert the option either (1) after the last *FLAGS variable, or
14224 # (2) before a word containing "conftest.", or (3) at the end.
14225 # Note that $ac_compile itself does not contain backslashes and begins
14226 # with a dollar sign (not a hyphen), so the echo should work correctly.
14227 lt_compile=`echo "$ac_compile" | $SED \
14228 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14229 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14230 -e 's:$: $lt_compiler_flag:'`
14231 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14232 (eval "$lt_compile" 2>out/conftest.err)
14233 ac_status=$?
14234 cat out/conftest.err >&5
14235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14236 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14237 then
14238 # The compiler can only warn and ignore the option if not recognized
14239 # So say no if there are warnings
14240 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14241 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14242 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14243 lt_cv_prog_compiler_c_o=yes
14244 fi
14245 fi
14246 chmod u+w . 2>&5
14247 $RM conftest*
14248 # SGI C++ compiler will create directory out/ii_files/ for
14249 # template instantiation
14250 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14251 $RM out/* && rmdir out
14252 cd ..
14253 $RM -r conftest
14254 $RM conftest*
14255
14256 fi
14257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14258 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
14259
14260
14261
14262
14263
14264
14265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14266 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14267 if test ${lt_cv_prog_compiler_c_o+y}
14268 then :
14269 printf %s "(cached) " >&6
14270 else $as_nop
14271 lt_cv_prog_compiler_c_o=no
14272 $RM -r conftest 2>/dev/null
14273 mkdir conftest
14274 cd conftest
14275 mkdir out
14276 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14277
14278 lt_compiler_flag="-o out/conftest2.$ac_objext"
14279 # Insert the option either (1) after the last *FLAGS variable, or
14280 # (2) before a word containing "conftest.", or (3) at the end.
14281 # Note that $ac_compile itself does not contain backslashes and begins
14282 # with a dollar sign (not a hyphen), so the echo should work correctly.
14283 lt_compile=`echo "$ac_compile" | $SED \
14284 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14285 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14286 -e 's:$: $lt_compiler_flag:'`
14287 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14288 (eval "$lt_compile" 2>out/conftest.err)
14289 ac_status=$?
14290 cat out/conftest.err >&5
14291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14292 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14293 then
14294 # The compiler can only warn and ignore the option if not recognized
14295 # So say no if there are warnings
14296 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14297 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14298 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14299 lt_cv_prog_compiler_c_o=yes
14300 fi
14301 fi
14302 chmod u+w . 2>&5
14303 $RM conftest*
14304 # SGI C++ compiler will create directory out/ii_files/ for
14305 # template instantiation
14306 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14307 $RM out/* && rmdir out
14308 cd ..
14309 $RM -r conftest
14310 $RM conftest*
14311
14312 fi
14313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14314 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
14315
14316
14317
14318
14319 hard_links=nottested
14320 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
14321 # do not overwrite the value of need_locks provided by the user
14322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14323 printf %s "checking if we can lock with hard links... " >&6; }
14324 hard_links=yes
14325 $RM conftest*
14326 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14327 touch conftest.a
14328 ln conftest.a conftest.b 2>&5 || hard_links=no
14329 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14331 printf "%s\n" "$hard_links" >&6; }
14332 if test no = "$hard_links"; then
14333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
14334 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
14335 need_locks=warn
14336 fi
14337 else
14338 need_locks=no
14339 fi
14340
14341
14342
14343
14344
14345
14346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14347 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14348
14349 runpath_var=
14350 allow_undefined_flag=
14351 always_export_symbols=no
14352 archive_cmds=
14353 archive_expsym_cmds=
14354 compiler_needs_object=no
14355 enable_shared_with_static_runtimes=no
14356 export_dynamic_flag_spec=
14357 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14358 hardcode_automatic=no
14359 hardcode_direct=no
14360 hardcode_direct_absolute=no
14361 hardcode_libdir_flag_spec=
14362 hardcode_libdir_separator=
14363 hardcode_minus_L=no
14364 hardcode_shlibpath_var=unsupported
14365 inherit_rpath=no
14366 link_all_deplibs=unknown
14367 module_cmds=
14368 module_expsym_cmds=
14369 old_archive_from_new_cmds=
14370 old_archive_from_expsyms_cmds=
14371 thread_safe_flag_spec=
14372 whole_archive_flag_spec=
14373 # include_expsyms should be a list of space-separated symbols to be *always*
14374 # included in the symbol list
14375 include_expsyms=
14376 # exclude_expsyms can be an extended regexp of symbols to exclude
14377 # it will be wrapped by ' (' and ')$', so one must not match beginning or
14378 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
14379 # as well as any symbol that contains 'd'.
14380 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14381 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14382 # platforms (ab)use it in PIC code, but their linkers get confused if
14383 # the symbol is explicitly referenced. Since portable code cannot
14384 # rely on this symbol name, it's probably fine to never include it in
14385 # preloaded symbol tables.
14386 # Exclude shared library initialization/finalization symbols.
14387 extract_expsyms_cmds=
14388
14389 case $host_os in
14390 cygwin* | mingw* | pw32* | cegcc*)
14391 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
14392 # When not using gcc, we currently assume that we are using
14393 # Microsoft Visual C++ or Intel C++ Compiler.
14394 if test yes != "$GCC"; then
14395 with_gnu_ld=no
14396 fi
14397 ;;
14398 interix*)
14399 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
14400 with_gnu_ld=yes
14401 ;;
14402 openbsd* | bitrig*)
14403 with_gnu_ld=no
14404 ;;
14405 esac
14406
14407 ld_shlibs=yes
14408
14409 # On some targets, GNU ld is compatible enough with the native linker
14410 # that we're better off using the native interface for both.
14411 lt_use_gnu_ld_interface=no
14412 if test yes = "$with_gnu_ld"; then
14413 case $host_os in
14414 aix*)
14415 # The AIX port of GNU ld has always aspired to compatibility
14416 # with the native linker. However, as the warning in the GNU ld
14417 # block says, versions before 2.19.5* couldn't really create working
14418 # shared libraries, regardless of the interface used.
14419 case `$LD -v 2>&1` in
14420 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14421 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14422 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14423 *)
14424 lt_use_gnu_ld_interface=yes
14425 ;;
14426 esac
14427 ;;
14428 *)
14429 lt_use_gnu_ld_interface=yes
14430 ;;
14431 esac
14432 fi
14433
14434 if test yes = "$lt_use_gnu_ld_interface"; then
14435 # If archive_cmds runs LD, not CC, wlarc should be empty
14436 wlarc='$wl'
14437
14438 # Set some defaults for GNU ld with shared library support. These
14439 # are reset later if shared libraries are not supported. Putting them
14440 # here allows them to be overridden if necessary.
14441 runpath_var=LD_RUN_PATH
14442 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14443 export_dynamic_flag_spec='$wl--export-dynamic'
14444 # ancient GNU ld didn't support --whole-archive et. al.
14445 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14446 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14447 else
14448 whole_archive_flag_spec=
14449 fi
14450 supports_anon_versioning=no
14451 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
14452 *GNU\ gold*) supports_anon_versioning=yes ;;
14453 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14454 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14455 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14456 *\ 2.11.*) ;; # other 2.11 versions
14457 *) supports_anon_versioning=yes ;;
14458 esac
14459
14460 # See if GNU ld supports shared libraries.
14461 case $host_os in
14462 aix[3-9]*)
14463 # On AIX/PPC, the GNU linker is very broken
14464 if test ia64 != "$host_cpu"; then
14465 ld_shlibs=no
14466 cat <<_LT_EOF 1>&2
14467
14468 *** Warning: the GNU linker, at least up to release 2.19, is reported
14469 *** to be unable to reliably create shared libraries on AIX.
14470 *** Therefore, libtool is disabling shared libraries support. If you
14471 *** really care for shared libraries, you may want to install binutils
14472 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14473 *** You will then need to restart the configuration process.
14474
14475 _LT_EOF
14476 fi
14477 ;;
14478
14479 amigaos*)
14480 case $host_cpu in
14481 powerpc)
14482 # see comment about AmigaOS4 .so support
14483 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14484 archive_expsym_cmds=''
14485 ;;
14486 m68k)
14487 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
14488 hardcode_libdir_flag_spec='-L$libdir'
14489 hardcode_minus_L=yes
14490 ;;
14491 esac
14492 ;;
14493
14494 beos*)
14495 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14496 allow_undefined_flag=unsupported
14497 # Joseph Beckenbach <[email protected]> says some releases of gcc
14498 # support --undefined. This deserves some investigation. FIXME
14499 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14500 else
14501 ld_shlibs=no
14502 fi
14503 ;;
14504
14505 cygwin* | mingw* | pw32* | cegcc*)
14506 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14507 # as there is no search path for DLLs.
14508 hardcode_libdir_flag_spec='-L$libdir'
14509 export_dynamic_flag_spec='$wl--export-all-symbols'
14510 allow_undefined_flag=unsupported
14511 always_export_symbols=no
14512 enable_shared_with_static_runtimes=yes
14513 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14514 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14515
14516 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14517 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14518 # If the export-symbols file already is a .def file, use it as
14519 # is; otherwise, prepend EXPORTS...
14520 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
14521 cp $export_symbols $output_objdir/$soname.def;
14522 else
14523 echo EXPORTS > $output_objdir/$soname.def;
14524 cat $export_symbols >> $output_objdir/$soname.def;
14525 fi~
14526 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14527 else
14528 ld_shlibs=no
14529 fi
14530 ;;
14531
14532 haiku*)
14533 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14534 link_all_deplibs=yes
14535 ;;
14536
14537 os2*)
14538 hardcode_libdir_flag_spec='-L$libdir'
14539 hardcode_minus_L=yes
14540 allow_undefined_flag=unsupported
14541 shrext_cmds=.dll
14542 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14543 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14544 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14545 $ECHO EXPORTS >> $output_objdir/$libname.def~
14546 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14547 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14548 emximp -o $lib $output_objdir/$libname.def'
14549 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14550 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14551 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14552 $ECHO EXPORTS >> $output_objdir/$libname.def~
14553 prefix_cmds="$SED"~
14554 if test EXPORTS = "`$SED 1q $export_symbols`"; then
14555 prefix_cmds="$prefix_cmds -e 1d";
14556 fi~
14557 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
14558 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
14559 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14560 emximp -o $lib $output_objdir/$libname.def'
14561 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
14562 enable_shared_with_static_runtimes=yes
14563 file_list_spec='@'
14564 ;;
14565
14566 interix[3-9]*)
14567 hardcode_direct=no
14568 hardcode_shlibpath_var=no
14569 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
14570 export_dynamic_flag_spec='$wl-E'
14571 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14572 # Instead, shared libraries are loaded at an image base (0x10000000 by
14573 # default) and relocated if they conflict, which is a slow very memory
14574 # consuming and fragmenting process. To avoid this, we pick a random,
14575 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14576 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14577 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14578 archive_expsym_cmds='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14579 ;;
14580
14581 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
14582 tmp_diet=no
14583 if test linux-dietlibc = "$host_os"; then
14584 case $cc_basename in
14585 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
14586 esac
14587 fi
14588 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14589 && test no = "$tmp_diet"
14590 then
14591 tmp_addflag=' $pic_flag'
14592 tmp_sharedflag='-shared'
14593 case $cc_basename,$host_cpu in
14594 pgcc*) # Portland Group C compiler
14595 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
14596 tmp_addflag=' $pic_flag'
14597 ;;
14598 pgf77* | pgf90* | pgf95* | pgfortran*)
14599 # Portland Group f77 and f90 compilers
14600 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
14601 tmp_addflag=' $pic_flag -Mnomain' ;;
14602 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14603 tmp_addflag=' -i_dynamic' ;;
14604 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14605 tmp_addflag=' -i_dynamic -nofor_main' ;;
14606 ifc* | ifort*) # Intel Fortran compiler
14607 tmp_addflag=' -nofor_main' ;;
14608 lf95*) # Lahey Fortran 8.1
14609 whole_archive_flag_spec=
14610 tmp_sharedflag='--shared' ;;
14611 nagfor*) # NAGFOR 5.3
14612 tmp_sharedflag='-Wl,-shared' ;;
14613 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
14614 tmp_sharedflag='-qmkshrobj'
14615 tmp_addflag= ;;
14616 nvcc*) # Cuda Compiler Driver 2.2
14617 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
14618 compiler_needs_object=yes
14619 ;;
14620 esac
14621 case `$CC -V 2>&1 | $SED 5q` in
14622 *Sun\ C*) # Sun C 5.9
14623 whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
14624 compiler_needs_object=yes
14625 tmp_sharedflag='-G' ;;
14626 *Sun\ F*) # Sun Fortran 8.3
14627 tmp_sharedflag='-G' ;;
14628 esac
14629 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14630
14631 if test yes = "$supports_anon_versioning"; then
14632 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14633 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14634 echo "local: *; };" >> $output_objdir/$libname.ver~
14635 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
14636 fi
14637
14638 case $cc_basename in
14639 tcc*)
14640 export_dynamic_flag_spec='-rdynamic'
14641 ;;
14642 xlf* | bgf* | bgxlf* | mpixlf*)
14643 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14644 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
14645 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14646 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
14647 if test yes = "$supports_anon_versioning"; then
14648 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14649 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14650 echo "local: *; };" >> $output_objdir/$libname.ver~
14651 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
14652 fi
14653 ;;
14654 esac
14655 else
14656 ld_shlibs=no
14657 fi
14658 ;;
14659
14660 netbsd*)
14661 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14662 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14663 wlarc=
14664 else
14665 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14666 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14667 fi
14668 ;;
14669
14670 solaris*)
14671 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14672 ld_shlibs=no
14673 cat <<_LT_EOF 1>&2
14674
14675 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14676 *** create shared libraries on Solaris systems. Therefore, libtool
14677 *** is disabling shared libraries support. We urge you to upgrade GNU
14678 *** binutils to release 2.9.1 or newer. Another option is to modify
14679 *** your PATH or compiler configuration so that the native linker is
14680 *** used, and then restart.
14681
14682 _LT_EOF
14683 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14684 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14685 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14686 else
14687 ld_shlibs=no
14688 fi
14689 ;;
14690
14691 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14692 case `$LD -v 2>&1` in
14693 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14694 ld_shlibs=no
14695 cat <<_LT_EOF 1>&2
14696
14697 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
14698 *** reliably create shared libraries on SCO systems. Therefore, libtool
14699 *** is disabling shared libraries support. We urge you to upgrade GNU
14700 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14701 *** your PATH or compiler configuration so that the native linker is
14702 *** used, and then restart.
14703
14704 _LT_EOF
14705 ;;
14706 *)
14707 # For security reasons, it is highly recommended that you always
14708 # use absolute paths for naming shared libraries, and exclude the
14709 # DT_RUNPATH tag from executables and libraries. But doing so
14710 # requires that you compile everything twice, which is a pain.
14711 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14712 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14713 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14714 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14715 else
14716 ld_shlibs=no
14717 fi
14718 ;;
14719 esac
14720 ;;
14721
14722 sunos4*)
14723 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14724 wlarc=
14725 hardcode_direct=yes
14726 hardcode_shlibpath_var=no
14727 ;;
14728
14729 *)
14730 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14731 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14732 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14733 else
14734 ld_shlibs=no
14735 fi
14736 ;;
14737 esac
14738
14739 if test no = "$ld_shlibs"; then
14740 runpath_var=
14741 hardcode_libdir_flag_spec=
14742 export_dynamic_flag_spec=
14743 whole_archive_flag_spec=
14744 fi
14745 else
14746 # PORTME fill in a description of your system's linker (not GNU ld)
14747 case $host_os in
14748 aix3*)
14749 allow_undefined_flag=unsupported
14750 always_export_symbols=yes
14751 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
14752 # Note: this linker hardcodes the directories in LIBPATH if there
14753 # are no directories specified by -L.
14754 hardcode_minus_L=yes
14755 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
14756 # Neither direct hardcoding nor static linking is supported with a
14757 # broken collect2.
14758 hardcode_direct=unsupported
14759 fi
14760 ;;
14761
14762 aix[4-9]*)
14763 if test ia64 = "$host_cpu"; then
14764 # On IA64, the linker does run time linking by default, so we don't
14765 # have to do anything special.
14766 aix_use_runtimelinking=no
14767 exp_sym_flag='-Bexport'
14768 no_entry_flag=
14769 else
14770 # If we're using GNU nm, then we don't want the "-C" option.
14771 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
14772 # Without the "-l" option, or with the "-B" option, AIX nm treats
14773 # weak defined symbols like other global defined symbols, whereas
14774 # GNU nm marks them as "W".
14775 # While the 'weak' keyword is ignored in the Export File, we need
14776 # it in the Import File for the 'aix-soname' feature, so we have
14777 # to replace the "-B" option with "-P" for AIX nm.
14778 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14779 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
14780 else
14781 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
14782 fi
14783 aix_use_runtimelinking=no
14784
14785 # Test if we are trying to use run time linking or normal
14786 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14787 # have runtime linking enabled, and use it for executables.
14788 # For shared libraries, we enable/disable runtime linking
14789 # depending on the kind of the shared library created -
14790 # when "with_aix_soname,aix_use_runtimelinking" is:
14791 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
14792 # "aix,yes" lib.so shared, rtl:yes, for executables
14793 # lib.a static archive
14794 # "both,no" lib.so.V(shr.o) shared, rtl:yes
14795 # lib.a(lib.so.V) shared, rtl:no, for executables
14796 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
14797 # lib.a(lib.so.V) shared, rtl:no
14798 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
14799 # lib.a static archive
14800 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14801 for ld_flag in $LDFLAGS; do
14802 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
14803 aix_use_runtimelinking=yes
14804 break
14805 fi
14806 done
14807 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
14808 # With aix-soname=svr4, we create the lib.so.V shared archives only,
14809 # so we don't have lib.a shared libs to link our executables.
14810 # We have to force runtime linking in this case.
14811 aix_use_runtimelinking=yes
14812 LDFLAGS="$LDFLAGS -Wl,-brtl"
14813 fi
14814 ;;
14815 esac
14816
14817 exp_sym_flag='-bexport'
14818 no_entry_flag='-bnoentry'
14819 fi
14820
14821 # When large executables or shared objects are built, AIX ld can
14822 # have problems creating the table of contents. If linking a library
14823 # or program results in "error TOC overflow" add -mminimal-toc to
14824 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14825 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14826
14827 archive_cmds=''
14828 hardcode_direct=yes
14829 hardcode_direct_absolute=yes
14830 hardcode_libdir_separator=':'
14831 link_all_deplibs=yes
14832 file_list_spec='$wl-f,'
14833 case $with_aix_soname,$aix_use_runtimelinking in
14834 aix,*) ;; # traditional, no import file
14835 svr4,* | *,yes) # use import file
14836 # The Import File defines what to hardcode.
14837 hardcode_direct=no
14838 hardcode_direct_absolute=no
14839 ;;
14840 esac
14841
14842 if test yes = "$GCC"; then
14843 case $host_os in aix4.[012]|aix4.[012].*)
14844 # We only want to do this on AIX 4.2 and lower, the check
14845 # below for broken collect2 doesn't work under 4.3+
14846 collect2name=`$CC -print-prog-name=collect2`
14847 if test -f "$collect2name" &&
14848 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14849 then
14850 # We have reworked collect2
14851 :
14852 else
14853 # We have old collect2
14854 hardcode_direct=unsupported
14855 # It fails to find uninstalled libraries when the uninstalled
14856 # path is not listed in the libpath. Setting hardcode_minus_L
14857 # to unsupported forces relinking
14858 hardcode_minus_L=yes
14859 hardcode_libdir_flag_spec='-L$libdir'
14860 hardcode_libdir_separator=
14861 fi
14862 ;;
14863 esac
14864 shared_flag='-shared'
14865 if test yes = "$aix_use_runtimelinking"; then
14866 shared_flag="$shared_flag "'$wl-G'
14867 fi
14868 # Need to ensure runtime linking is disabled for the traditional
14869 # shared library, or the linker may eventually find shared libraries
14870 # /with/ Import File - we do not want to mix them.
14871 shared_flag_aix='-shared'
14872 shared_flag_svr4='-shared $wl-G'
14873 else
14874 # not using gcc
14875 if test ia64 = "$host_cpu"; then
14876 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14877 # chokes on -Wl,-G. The following line is correct:
14878 shared_flag='-G'
14879 else
14880 if test yes = "$aix_use_runtimelinking"; then
14881 shared_flag='$wl-G'
14882 else
14883 shared_flag='$wl-bM:SRE'
14884 fi
14885 shared_flag_aix='$wl-bM:SRE'
14886 shared_flag_svr4='$wl-G'
14887 fi
14888 fi
14889
14890 export_dynamic_flag_spec='$wl-bexpall'
14891 # It seems that -bexpall does not export symbols beginning with
14892 # underscore (_), so it is better to generate a list of symbols to export.
14893 always_export_symbols=yes
14894 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
14895 # Warning - without using the other runtime loading flags (-brtl),
14896 # -berok will link without error, but may produce a broken library.
14897 allow_undefined_flag='-berok'
14898 # Determine the default libpath from the value encoded in an
14899 # empty executable.
14900 if test set = "${lt_cv_aix_libpath+set}"; then
14901 aix_libpath=$lt_cv_aix_libpath
14902 else
14903 if test ${lt_cv_aix_libpath_+y}
14904 then :
14905 printf %s "(cached) " >&6
14906 else $as_nop
14907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14908 /* end confdefs.h. */
14909
14910 int
14911 main (void)
14912 {
14913
14914 ;
14915 return 0;
14916 }
14917 _ACEOF
14918 if ac_fn_c_try_link "$LINENO"
14919 then :
14920
14921 lt_aix_libpath_sed='
14922 /Import File Strings/,/^$/ {
14923 /^0/ {
14924 s/^0 *\([^ ]*\) *$/\1/
14925 p
14926 }
14927 }'
14928 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14929 # Check for a 64-bit object if we didn't find anything.
14930 if test -z "$lt_cv_aix_libpath_"; then
14931 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14932 fi
14933 fi
14934 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14935 conftest$ac_exeext conftest.$ac_ext
14936 if test -z "$lt_cv_aix_libpath_"; then
14937 lt_cv_aix_libpath_=/usr/lib:/lib
14938 fi
14939
14940 fi
14941
14942 aix_libpath=$lt_cv_aix_libpath_
14943 fi
14944
14945 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
14946 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
14947 else
14948 if test ia64 = "$host_cpu"; then
14949 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
14950 allow_undefined_flag="-z nodefs"
14951 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
14952 else
14953 # Determine the default libpath from the value encoded in an
14954 # empty executable.
14955 if test set = "${lt_cv_aix_libpath+set}"; then
14956 aix_libpath=$lt_cv_aix_libpath
14957 else
14958 if test ${lt_cv_aix_libpath_+y}
14959 then :
14960 printf %s "(cached) " >&6
14961 else $as_nop
14962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14963 /* end confdefs.h. */
14964
14965 int
14966 main (void)
14967 {
14968
14969 ;
14970 return 0;
14971 }
14972 _ACEOF
14973 if ac_fn_c_try_link "$LINENO"
14974 then :
14975
14976 lt_aix_libpath_sed='
14977 /Import File Strings/,/^$/ {
14978 /^0/ {
14979 s/^0 *\([^ ]*\) *$/\1/
14980 p
14981 }
14982 }'
14983 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14984 # Check for a 64-bit object if we didn't find anything.
14985 if test -z "$lt_cv_aix_libpath_"; then
14986 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14987 fi
14988 fi
14989 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14990 conftest$ac_exeext conftest.$ac_ext
14991 if test -z "$lt_cv_aix_libpath_"; then
14992 lt_cv_aix_libpath_=/usr/lib:/lib
14993 fi
14994
14995 fi
14996
14997 aix_libpath=$lt_cv_aix_libpath_
14998 fi
14999
15000 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
15001 # Warning - without using the other run time loading flags,
15002 # -berok will link without error, but may produce a broken library.
15003 no_undefined_flag=' $wl-bernotok'
15004 allow_undefined_flag=' $wl-berok'
15005 if test yes = "$with_gnu_ld"; then
15006 # We only use this code for GNU lds that support --whole-archive.
15007 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
15008 else
15009 # Exported symbols can be pulled into shared objects from archives
15010 whole_archive_flag_spec='$convenience'
15011 fi
15012 archive_cmds_need_lc=yes
15013 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
15014 # -brtl affects multiple linker settings, -berok does not and is overridden later
15015 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
15016 if test svr4 != "$with_aix_soname"; then
15017 # This is similar to how AIX traditionally builds its shared libraries.
15018 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
15019 fi
15020 if test aix != "$with_aix_soname"; then
15021 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
15022 else
15023 # used by -dlpreopen to get the symbols
15024 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
15025 fi
15026 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
15027 fi
15028 fi
15029 ;;
15030
15031 amigaos*)
15032 case $host_cpu in
15033 powerpc)
15034 # see comment about AmigaOS4 .so support
15035 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15036 archive_expsym_cmds=''
15037 ;;
15038 m68k)
15039 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
15040 hardcode_libdir_flag_spec='-L$libdir'
15041 hardcode_minus_L=yes
15042 ;;
15043 esac
15044 ;;
15045
15046 bsdi[45]*)
15047 export_dynamic_flag_spec=-rdynamic
15048 ;;
15049
15050 cygwin* | mingw* | pw32* | cegcc*)
15051 # When not using gcc, we currently assume that we are using
15052 # Microsoft Visual C++ or Intel C++ Compiler.
15053 # hardcode_libdir_flag_spec is actually meaningless, as there is
15054 # no search path for DLLs.
15055 case $cc_basename in
15056 cl* | icl*)
15057 # Native MSVC or ICC
15058 hardcode_libdir_flag_spec=' '
15059 allow_undefined_flag=unsupported
15060 always_export_symbols=yes
15061 file_list_spec='@'
15062 # Tell ltmain to make .lib files, not .a files.
15063 libext=lib
15064 # Tell ltmain to make .dll files, not .so files.
15065 shrext_cmds=.dll
15066 # FIXME: Setting linknames here is a bad hack.
15067 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
15068 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
15069 cp "$export_symbols" "$output_objdir/$soname.def";
15070 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
15071 else
15072 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
15073 fi~
15074 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15075 linknames='
15076 # The linker will not automatically build a static lib if we build a DLL.
15077 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15078 enable_shared_with_static_runtimes=yes
15079 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15080 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15081 # Don't use ranlib
15082 old_postinstall_cmds='chmod 644 $oldlib'
15083 postlink_cmds='lt_outputfile="@OUTPUT@"~
15084 lt_tool_outputfile="@TOOL_OUTPUT@"~
15085 case $lt_outputfile in
15086 *.exe|*.EXE) ;;
15087 *)
15088 lt_outputfile=$lt_outputfile.exe
15089 lt_tool_outputfile=$lt_tool_outputfile.exe
15090 ;;
15091 esac~
15092 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
15093 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15094 $RM "$lt_outputfile.manifest";
15095 fi'
15096 ;;
15097 *)
15098 # Assume MSVC and ICC wrapper
15099 hardcode_libdir_flag_spec=' '
15100 allow_undefined_flag=unsupported
15101 # Tell ltmain to make .lib files, not .a files.
15102 libext=lib
15103 # Tell ltmain to make .dll files, not .so files.
15104 shrext_cmds=.dll
15105 # FIXME: Setting linknames here is a bad hack.
15106 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15107 # The linker will automatically build a .lib file if we build a DLL.
15108 old_archive_from_new_cmds='true'
15109 # FIXME: Should let the user specify the lib program.
15110 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15111 enable_shared_with_static_runtimes=yes
15112 ;;
15113 esac
15114 ;;
15115
15116 darwin* | rhapsody*)
15117
15118
15119 archive_cmds_need_lc=no
15120 hardcode_direct=no
15121 hardcode_automatic=yes
15122 hardcode_shlibpath_var=unsupported
15123 if test yes = "$lt_cv_ld_force_load"; then
15124 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
15125
15126 else
15127 whole_archive_flag_spec=''
15128 fi
15129 link_all_deplibs=yes
15130 allow_undefined_flag=$_lt_dar_allow_undefined
15131 case $cc_basename in
15132 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
15133 *) _lt_dar_can_shared=$GCC ;;
15134 esac
15135 if test yes = "$_lt_dar_can_shared"; then
15136 output_verbose_link_cmd=func_echo_all
15137 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
15138 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
15139 archive_expsym_cmds="$SED 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
15140 module_expsym_cmds="$SED -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
15141
15142 else
15143 ld_shlibs=no
15144 fi
15145
15146 ;;
15147
15148 dgux*)
15149 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15150 hardcode_libdir_flag_spec='-L$libdir'
15151 hardcode_shlibpath_var=no
15152 ;;
15153
15154 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15155 # support. Future versions do this automatically, but an explicit c++rt0.o
15156 # does not break anything, and helps significantly (at the cost of a little
15157 # extra space).
15158 freebsd2.2*)
15159 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15160 hardcode_libdir_flag_spec='-R$libdir'
15161 hardcode_direct=yes
15162 hardcode_shlibpath_var=no
15163 ;;
15164
15165 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15166 freebsd2.*)
15167 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15168 hardcode_direct=yes
15169 hardcode_minus_L=yes
15170 hardcode_shlibpath_var=no
15171 ;;
15172
15173 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15174 freebsd* | dragonfly* | midnightbsd*)
15175 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15176 hardcode_libdir_flag_spec='-R$libdir'
15177 hardcode_direct=yes
15178 hardcode_shlibpath_var=no
15179 ;;
15180
15181 hpux9*)
15182 if test yes = "$GCC"; then
15183 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
15184 else
15185 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
15186 fi
15187 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
15188 hardcode_libdir_separator=:
15189 hardcode_direct=yes
15190
15191 # hardcode_minus_L: Not really in the search PATH,
15192 # but as the default location of the library.
15193 hardcode_minus_L=yes
15194 export_dynamic_flag_spec='$wl-E'
15195 ;;
15196
15197 hpux10*)
15198 if test yes,no = "$GCC,$with_gnu_ld"; then
15199 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15200 else
15201 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15202 fi
15203 if test no = "$with_gnu_ld"; then
15204 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
15205 hardcode_libdir_separator=:
15206 hardcode_direct=yes
15207 hardcode_direct_absolute=yes
15208 export_dynamic_flag_spec='$wl-E'
15209 # hardcode_minus_L: Not really in the search PATH,
15210 # but as the default location of the library.
15211 hardcode_minus_L=yes
15212 fi
15213 ;;
15214
15215 hpux11*)
15216 if test yes,no = "$GCC,$with_gnu_ld"; then
15217 case $host_cpu in
15218 hppa*64*)
15219 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
15220 ;;
15221 ia64*)
15222 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15223 ;;
15224 *)
15225 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15226 ;;
15227 esac
15228 else
15229 case $host_cpu in
15230 hppa*64*)
15231 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
15232 ;;
15233 ia64*)
15234 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15235 ;;
15236 *)
15237
15238 # Older versions of the 11.00 compiler do not understand -b yet
15239 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15241 printf %s "checking if $CC understands -b... " >&6; }
15242 if test ${lt_cv_prog_compiler__b+y}
15243 then :
15244 printf %s "(cached) " >&6
15245 else $as_nop
15246 lt_cv_prog_compiler__b=no
15247 save_LDFLAGS=$LDFLAGS
15248 LDFLAGS="$LDFLAGS -b"
15249 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15250 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15251 # The linker can only warn and ignore the option if not recognized
15252 # So say no if there are warnings
15253 if test -s conftest.err; then
15254 # Append any errors to the config.log.
15255 cat conftest.err 1>&5
15256 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15257 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15258 if diff conftest.exp conftest.er2 >/dev/null; then
15259 lt_cv_prog_compiler__b=yes
15260 fi
15261 else
15262 lt_cv_prog_compiler__b=yes
15263 fi
15264 fi
15265 $RM -r conftest*
15266 LDFLAGS=$save_LDFLAGS
15267
15268 fi
15269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15270 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
15271
15272 if test yes = "$lt_cv_prog_compiler__b"; then
15273 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15274 else
15275 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15276 fi
15277
15278 ;;
15279 esac
15280 fi
15281 if test no = "$with_gnu_ld"; then
15282 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
15283 hardcode_libdir_separator=:
15284
15285 case $host_cpu in
15286 hppa*64*|ia64*)
15287 hardcode_direct=no
15288 hardcode_shlibpath_var=no
15289 ;;
15290 *)
15291 hardcode_direct=yes
15292 hardcode_direct_absolute=yes
15293 export_dynamic_flag_spec='$wl-E'
15294
15295 # hardcode_minus_L: Not really in the search PATH,
15296 # but as the default location of the library.
15297 hardcode_minus_L=yes
15298 ;;
15299 esac
15300 fi
15301 ;;
15302
15303 irix5* | irix6* | nonstopux*)
15304 if test yes = "$GCC"; then
15305 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
15306 # Try to use the -exported_symbol ld option, if it does not
15307 # work, assume that -exports_file does not work either and
15308 # implicitly export all symbols.
15309 # This should be the same for all languages, so no per-tag cache variable.
15310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
15311 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
15312 if test ${lt_cv_irix_exported_symbol+y}
15313 then :
15314 printf %s "(cached) " >&6
15315 else $as_nop
15316 save_LDFLAGS=$LDFLAGS
15317 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
15318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15319 /* end confdefs.h. */
15320 int foo (void) { return 0; }
15321 _ACEOF
15322 if ac_fn_c_try_link "$LINENO"
15323 then :
15324 lt_cv_irix_exported_symbol=yes
15325 else $as_nop
15326 lt_cv_irix_exported_symbol=no
15327 fi
15328 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15329 conftest$ac_exeext conftest.$ac_ext
15330 LDFLAGS=$save_LDFLAGS
15331 fi
15332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
15333 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
15334 if test yes = "$lt_cv_irix_exported_symbol"; then
15335 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
15336 fi
15337 else
15338 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
15339 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
15340 fi
15341 archive_cmds_need_lc='no'
15342 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15343 hardcode_libdir_separator=:
15344 inherit_rpath=yes
15345 link_all_deplibs=yes
15346 ;;
15347
15348 linux*)
15349 case $cc_basename in
15350 tcc*)
15351 # Fabrice Bellard et al's Tiny C Compiler
15352 ld_shlibs=yes
15353 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15354 ;;
15355 esac
15356 ;;
15357
15358 netbsd*)
15359 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15360 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15361 else
15362 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15363 fi
15364 hardcode_libdir_flag_spec='-R$libdir'
15365 hardcode_direct=yes
15366 hardcode_shlibpath_var=no
15367 ;;
15368
15369 newsos6)
15370 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15371 hardcode_direct=yes
15372 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15373 hardcode_libdir_separator=:
15374 hardcode_shlibpath_var=no
15375 ;;
15376
15377 *nto* | *qnx*)
15378 ;;
15379
15380 openbsd* | bitrig*)
15381 if test -f /usr/libexec/ld.so; then
15382 hardcode_direct=yes
15383 hardcode_shlibpath_var=no
15384 hardcode_direct_absolute=yes
15385 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
15386 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15387 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
15388 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
15389 export_dynamic_flag_spec='$wl-E'
15390 else
15391 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15392 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
15393 fi
15394 else
15395 ld_shlibs=no
15396 fi
15397 ;;
15398
15399 os2*)
15400 hardcode_libdir_flag_spec='-L$libdir'
15401 hardcode_minus_L=yes
15402 allow_undefined_flag=unsupported
15403 shrext_cmds=.dll
15404 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15405 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15406 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15407 $ECHO EXPORTS >> $output_objdir/$libname.def~
15408 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
15409 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15410 emximp -o $lib $output_objdir/$libname.def'
15411 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15412 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15413 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15414 $ECHO EXPORTS >> $output_objdir/$libname.def~
15415 prefix_cmds="$SED"~
15416 if test EXPORTS = "`$SED 1q $export_symbols`"; then
15417 prefix_cmds="$prefix_cmds -e 1d";
15418 fi~
15419 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
15420 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
15421 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15422 emximp -o $lib $output_objdir/$libname.def'
15423 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
15424 enable_shared_with_static_runtimes=yes
15425 file_list_spec='@'
15426 ;;
15427
15428 osf3*)
15429 if test yes = "$GCC"; then
15430 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
15431 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
15432 else
15433 allow_undefined_flag=' -expect_unresolved \*'
15434 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
15435 fi
15436 archive_cmds_need_lc='no'
15437 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15438 hardcode_libdir_separator=:
15439 ;;
15440
15441 osf4* | osf5*) # as osf3* with the addition of -msym flag
15442 if test yes = "$GCC"; then
15443 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
15444 archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
15445 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15446 else
15447 allow_undefined_flag=' -expect_unresolved \*'
15448 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
15449 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
15450 $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
15451
15452 # Both c and cxx compiler support -rpath directly
15453 hardcode_libdir_flag_spec='-rpath $libdir'
15454 fi
15455 archive_cmds_need_lc='no'
15456 hardcode_libdir_separator=:
15457 ;;
15458
15459 solaris*)
15460 no_undefined_flag=' -z defs'
15461 if test yes = "$GCC"; then
15462 wlarc='$wl'
15463 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
15464 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15465 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15466 else
15467 case `$CC -V 2>&1` in
15468 *"Compilers 5.0"*)
15469 wlarc=''
15470 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
15471 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15472 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15473 ;;
15474 *)
15475 wlarc='$wl'
15476 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15477 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15478 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15479 ;;
15480 esac
15481 fi
15482 hardcode_libdir_flag_spec='-R$libdir'
15483 hardcode_shlibpath_var=no
15484 case $host_os in
15485 solaris2.[0-5] | solaris2.[0-5].*) ;;
15486 *)
15487 # The compiler driver will combine and reorder linker options,
15488 # but understands '-z linker_flag'. GCC discards it without '$wl',
15489 # but is careful enough not to reorder.
15490 # Supported since Solaris 2.6 (maybe 2.5.1?)
15491 if test yes = "$GCC"; then
15492 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
15493 else
15494 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15495 fi
15496 ;;
15497 esac
15498 link_all_deplibs=yes
15499 ;;
15500
15501 sunos4*)
15502 if test sequent = "$host_vendor"; then
15503 # Use $CC to link under sequent, because it throws in some extra .o
15504 # files that make .init and .fini sections work.
15505 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15506 else
15507 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15508 fi
15509 hardcode_libdir_flag_spec='-L$libdir'
15510 hardcode_direct=yes
15511 hardcode_minus_L=yes
15512 hardcode_shlibpath_var=no
15513 ;;
15514
15515 sysv4)
15516 case $host_vendor in
15517 sni)
15518 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15519 hardcode_direct=yes # is this really true???
15520 ;;
15521 siemens)
15522 ## LD is ld it makes a PLAMLIB
15523 ## CC just makes a GrossModule.
15524 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15525 reload_cmds='$CC -r -o $output$reload_objs'
15526 hardcode_direct=no
15527 ;;
15528 motorola)
15529 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15530 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15531 ;;
15532 esac
15533 runpath_var='LD_RUN_PATH'
15534 hardcode_shlibpath_var=no
15535 ;;
15536
15537 sysv4.3*)
15538 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15539 hardcode_shlibpath_var=no
15540 export_dynamic_flag_spec='-Bexport'
15541 ;;
15542
15543 sysv4*MP*)
15544 if test -d /usr/nec; then
15545 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15546 hardcode_shlibpath_var=no
15547 runpath_var=LD_RUN_PATH
15548 hardcode_runpath_var=yes
15549 ld_shlibs=yes
15550 fi
15551 ;;
15552
15553 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15554 no_undefined_flag='$wl-z,text'
15555 archive_cmds_need_lc=no
15556 hardcode_shlibpath_var=no
15557 runpath_var='LD_RUN_PATH'
15558
15559 if test yes = "$GCC"; then
15560 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15561 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15562 else
15563 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15564 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15565 fi
15566 ;;
15567
15568 sysv5* | sco3.2v5* | sco5v6*)
15569 # Note: We CANNOT use -z defs as we might desire, because we do not
15570 # link with -lc, and that would cause any symbols used from libc to
15571 # always be unresolved, which means just about no library would
15572 # ever link correctly. If we're not using GNU ld we use -z text
15573 # though, which does catch some bad symbols but isn't as heavy-handed
15574 # as -z defs.
15575 no_undefined_flag='$wl-z,text'
15576 allow_undefined_flag='$wl-z,nodefs'
15577 archive_cmds_need_lc=no
15578 hardcode_shlibpath_var=no
15579 hardcode_libdir_flag_spec='$wl-R,$libdir'
15580 hardcode_libdir_separator=':'
15581 link_all_deplibs=yes
15582 export_dynamic_flag_spec='$wl-Bexport'
15583 runpath_var='LD_RUN_PATH'
15584
15585 if test yes = "$GCC"; then
15586 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15587 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15588 else
15589 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15590 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15591 fi
15592 ;;
15593
15594 uts4*)
15595 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15596 hardcode_libdir_flag_spec='-L$libdir'
15597 hardcode_shlibpath_var=no
15598 ;;
15599
15600 *)
15601 ld_shlibs=no
15602 ;;
15603 esac
15604
15605 if test sni = "$host_vendor"; then
15606 case $host in
15607 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15608 export_dynamic_flag_spec='$wl-Blargedynsym'
15609 ;;
15610 esac
15611 fi
15612 fi
15613
15614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15615 printf "%s\n" "$ld_shlibs" >&6; }
15616 test no = "$ld_shlibs" && can_build_shared=no
15617
15618 with_gnu_ld=$with_gnu_ld
15619
15620
15621
15622
15623
15624
15625
15626
15627
15628
15629
15630
15631
15632
15633
15634 #
15635 # Do we need to explicitly link libc?
15636 #
15637 case "x$archive_cmds_need_lc" in
15638 x|xyes)
15639 # Assume -lc should be added
15640 archive_cmds_need_lc=yes
15641
15642 if test yes,yes = "$GCC,$enable_shared"; then
15643 case $archive_cmds in
15644 *'~'*)
15645 # FIXME: we may have to deal with multi-command sequences.
15646 ;;
15647 '$CC '*)
15648 # Test whether the compiler implicitly links with -lc since on some
15649 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15650 # to ld, don't add -lc before -lgcc.
15651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15652 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
15653 if test ${lt_cv_archive_cmds_need_lc+y}
15654 then :
15655 printf %s "(cached) " >&6
15656 else $as_nop
15657 $RM conftest*
15658 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15659
15660 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15661 (eval $ac_compile) 2>&5
15662 ac_status=$?
15663 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15664 test $ac_status = 0; } 2>conftest.err; then
15665 soname=conftest
15666 lib=conftest
15667 libobjs=conftest.$ac_objext
15668 deplibs=
15669 wl=$lt_prog_compiler_wl
15670 pic_flag=$lt_prog_compiler_pic
15671 compiler_flags=-v
15672 linker_flags=-v
15673 verstring=
15674 output_objdir=.
15675 libname=conftest
15676 lt_save_allow_undefined_flag=$allow_undefined_flag
15677 allow_undefined_flag=
15678 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15679 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15680 ac_status=$?
15681 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15682 test $ac_status = 0; }
15683 then
15684 lt_cv_archive_cmds_need_lc=no
15685 else
15686 lt_cv_archive_cmds_need_lc=yes
15687 fi
15688 allow_undefined_flag=$lt_save_allow_undefined_flag
15689 else
15690 cat conftest.err 1>&5
15691 fi
15692 $RM conftest*
15693
15694 fi
15695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
15696 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
15697 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
15698 ;;
15699 esac
15700 fi
15701 ;;
15702 esac
15703
15704
15705
15706
15707
15708
15709
15710
15711
15712
15713
15714
15715
15716
15717
15718
15719
15720
15721
15722
15723
15724
15725
15726
15727
15728
15729
15730
15731
15732
15733
15734
15735
15736
15737
15738
15739
15740
15741
15742
15743
15744
15745
15746
15747
15748
15749
15750
15751
15752
15753
15754
15755
15756
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766
15767
15768
15769
15770
15771
15772
15773
15774
15775
15776
15777
15778
15779
15780
15781
15782
15783
15784
15785
15786
15787
15788
15789
15790
15791
15792
15793
15794
15795
15796
15797
15798
15799
15800
15801
15802
15803
15804
15805
15806
15807
15808
15809
15810
15811
15812
15813
15814
15815
15816
15817
15818
15819
15820
15821
15822
15823
15824
15825
15826
15827
15828
15829
15830
15831
15832
15833
15834
15835
15836
15837
15838
15839
15840
15841
15842
15843
15844
15845
15846
15847
15848
15849
15850
15851
15852
15853
15854
15855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15856 printf %s "checking dynamic linker characteristics... " >&6; }
15857
15858 if test yes = "$GCC"; then
15859 case $host_os in
15860 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
15861 *) lt_awk_arg='/^libraries:/' ;;
15862 esac
15863 case $host_os in
15864 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
15865 *) lt_sed_strip_eq='s|=/|/|g' ;;
15866 esac
15867 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
15868 case $lt_search_path_spec in
15869 *\;*)
15870 # if the path contains ";" then we assume it to be the separator
15871 # otherwise default to the standard path separator (i.e. ":") - it is
15872 # assumed that no part of a normal pathname contains ";" but that should
15873 # okay in the real world where ";" in dirpaths is itself problematic.
15874 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
15875 ;;
15876 *)
15877 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
15878 ;;
15879 esac
15880 # Ok, now we have the path, separated by spaces, we can step through it
15881 # and add multilib dir if necessary...
15882 lt_tmp_lt_search_path_spec=
15883 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
15884 # ...but if some path component already ends with the multilib dir we assume
15885 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
15886 case "$lt_multi_os_dir; $lt_search_path_spec " in
15887 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
15888 lt_multi_os_dir=
15889 ;;
15890 esac
15891 for lt_sys_path in $lt_search_path_spec; do
15892 if test -d "$lt_sys_path$lt_multi_os_dir"; then
15893 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
15894 elif test -n "$lt_multi_os_dir"; then
15895 test -d "$lt_sys_path" && \
15896 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
15897 fi
15898 done
15899 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
15900 BEGIN {RS = " "; FS = "/|\n";} {
15901 lt_foo = "";
15902 lt_count = 0;
15903 for (lt_i = NF; lt_i > 0; lt_i--) {
15904 if ($lt_i != "" && $lt_i != ".") {
15905 if ($lt_i == "..") {
15906 lt_count++;
15907 } else {
15908 if (lt_count == 0) {
15909 lt_foo = "/" $lt_i lt_foo;
15910 } else {
15911 lt_count--;
15912 }
15913 }
15914 }
15915 }
15916 if (lt_foo != "") { lt_freq[lt_foo]++; }
15917 if (lt_freq[lt_foo] == 1) { print lt_foo; }
15918 }'`
15919 # AWK program above erroneously prepends '/' to C:/dos/paths
15920 # for these hosts.
15921 case $host_os in
15922 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
15923 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
15924 esac
15925 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
15926 else
15927 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15928 fi
15929 library_names_spec=
15930 libname_spec='lib$name'
15931 soname_spec=
15932 shrext_cmds=.so
15933 postinstall_cmds=
15934 postuninstall_cmds=
15935 finish_cmds=
15936 finish_eval=
15937 shlibpath_var=
15938 shlibpath_overrides_runpath=unknown
15939 version_type=none
15940 dynamic_linker="$host_os ld.so"
15941 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15942 need_lib_prefix=unknown
15943 hardcode_into_libs=no
15944
15945 # when you set need_version to no, make sure it does not cause -set_version
15946 # flags to be left without arguments
15947 need_version=unknown
15948
15949
15950
15951 case $host_os in
15952 aix3*)
15953 version_type=linux # correct to gnu/linux during the next big refactor
15954 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
15955 shlibpath_var=LIBPATH
15956
15957 # AIX 3 has no versioning support, so we append a major version to the name.
15958 soname_spec='$libname$release$shared_ext$major'
15959 ;;
15960
15961 aix[4-9]*)
15962 version_type=linux # correct to gnu/linux during the next big refactor
15963 need_lib_prefix=no
15964 need_version=no
15965 hardcode_into_libs=yes
15966 if test ia64 = "$host_cpu"; then
15967 # AIX 5 supports IA64
15968 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
15969 shlibpath_var=LD_LIBRARY_PATH
15970 else
15971 # With GCC up to 2.95.x, collect2 would create an import file
15972 # for dependence libraries. The import file would start with
15973 # the line '#! .'. This would cause the generated library to
15974 # depend on '.', always an invalid library. This was fixed in
15975 # development snapshots of GCC prior to 3.0.
15976 case $host_os in
15977 aix4 | aix4.[01] | aix4.[01].*)
15978 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15979 echo ' yes '
15980 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
15981 :
15982 else
15983 can_build_shared=no
15984 fi
15985 ;;
15986 esac
15987 # Using Import Files as archive members, it is possible to support
15988 # filename-based versioning of shared library archives on AIX. While
15989 # this would work for both with and without runtime linking, it will
15990 # prevent static linking of such archives. So we do filename-based
15991 # shared library versioning with .so extension only, which is used
15992 # when both runtime linking and shared linking is enabled.
15993 # Unfortunately, runtime linking may impact performance, so we do
15994 # not want this to be the default eventually. Also, we use the
15995 # versioned .so libs for executables only if there is the -brtl
15996 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
15997 # To allow for filename-based versioning support, we need to create
15998 # libNAME.so.V as an archive file, containing:
15999 # *) an Import File, referring to the versioned filename of the
16000 # archive as well as the shared archive member, telling the
16001 # bitwidth (32 or 64) of that shared object, and providing the
16002 # list of exported symbols of that shared object, eventually
16003 # decorated with the 'weak' keyword
16004 # *) the shared object with the F_LOADONLY flag set, to really avoid
16005 # it being seen by the linker.
16006 # At run time we better use the real file rather than another symlink,
16007 # but for link time we create the symlink libNAME.so -> libNAME.so.V
16008
16009 case $with_aix_soname,$aix_use_runtimelinking in
16010 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
16011 # soname into executable. Probably we can add versioning support to
16012 # collect2, so additional links can be useful in future.
16013 aix,yes) # traditional libtool
16014 dynamic_linker='AIX unversionable lib.so'
16015 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16016 # instead of lib<name>.a to let people know that these are not
16017 # typical AIX shared libraries.
16018 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16019 ;;
16020 aix,no) # traditional AIX only
16021 dynamic_linker='AIX lib.a(lib.so.V)'
16022 # We preserve .a as extension for shared libraries through AIX4.2
16023 # and later when we are not doing run time linking.
16024 library_names_spec='$libname$release.a $libname.a'
16025 soname_spec='$libname$release$shared_ext$major'
16026 ;;
16027 svr4,*) # full svr4 only
16028 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
16029 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16030 # We do not specify a path in Import Files, so LIBPATH fires.
16031 shlibpath_overrides_runpath=yes
16032 ;;
16033 *,yes) # both, prefer svr4
16034 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
16035 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16036 # unpreferred sharedlib libNAME.a needs extra handling
16037 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
16038 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
16039 # We do not specify a path in Import Files, so LIBPATH fires.
16040 shlibpath_overrides_runpath=yes
16041 ;;
16042 *,no) # both, prefer aix
16043 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
16044 library_names_spec='$libname$release.a $libname.a'
16045 soname_spec='$libname$release$shared_ext$major'
16046 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
16047 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
16048 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
16049 ;;
16050 esac
16051 shlibpath_var=LIBPATH
16052 fi
16053 ;;
16054
16055 amigaos*)
16056 case $host_cpu in
16057 powerpc)
16058 # Since July 2007 AmigaOS4 officially supports .so libraries.
16059 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16060 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16061 ;;
16062 m68k)
16063 library_names_spec='$libname.ixlibrary $libname.a'
16064 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16065 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
16066 ;;
16067 esac
16068 ;;
16069
16070 beos*)
16071 library_names_spec='$libname$shared_ext'
16072 dynamic_linker="$host_os ld.so"
16073 shlibpath_var=LIBRARY_PATH
16074 ;;
16075
16076 bsdi[45]*)
16077 version_type=linux # correct to gnu/linux during the next big refactor
16078 need_version=no
16079 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16080 soname_spec='$libname$release$shared_ext$major'
16081 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16082 shlibpath_var=LD_LIBRARY_PATH
16083 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16084 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16085 # the default ld.so.conf also contains /usr/contrib/lib and
16086 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16087 # libtool to hard-code these into programs
16088 ;;
16089
16090 cygwin* | mingw* | pw32* | cegcc*)
16091 version_type=windows
16092 shrext_cmds=.dll
16093 need_version=no
16094 need_lib_prefix=no
16095
16096 case $GCC,$cc_basename in
16097 yes,*)
16098 # gcc
16099 library_names_spec='$libname.dll.a'
16100 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16101 postinstall_cmds='base_file=`basename \$file`~
16102 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16103 dldir=$destdir/`dirname \$dlpath`~
16104 test -d \$dldir || mkdir -p \$dldir~
16105 $install_prog $dir/$dlname \$dldir/$dlname~
16106 chmod a+x \$dldir/$dlname~
16107 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16108 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16109 fi'
16110 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16111 dlpath=$dir/\$dldll~
16112 $RM \$dlpath'
16113 shlibpath_overrides_runpath=yes
16114
16115 case $host_os in
16116 cygwin*)
16117 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16118 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16119
16120 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16121 ;;
16122 mingw* | cegcc*)
16123 # MinGW DLLs use traditional 'lib' prefix
16124 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16125 ;;
16126 pw32*)
16127 # pw32 DLLs use 'pw' prefix rather than 'lib'
16128 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16129 ;;
16130 esac
16131 dynamic_linker='Win32 ld.exe'
16132 ;;
16133
16134 *,cl* | *,icl*)
16135 # Native MSVC or ICC
16136 libname_spec='$name'
16137 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16138 library_names_spec='$libname.dll.lib'
16139
16140 case $build_os in
16141 mingw*)
16142 sys_lib_search_path_spec=
16143 lt_save_ifs=$IFS
16144 IFS=';'
16145 for lt_path in $LIB
16146 do
16147 IFS=$lt_save_ifs
16148 # Let DOS variable expansion print the short 8.3 style file name.
16149 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16150 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16151 done
16152 IFS=$lt_save_ifs
16153 # Convert to MSYS style.
16154 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16155 ;;
16156 cygwin*)
16157 # Convert to unix form, then to dos form, then back to unix form
16158 # but this time dos style (no spaces!) so that the unix form looks
16159 # like /cygdrive/c/PROGRA~1:/cygdr...
16160 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16161 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16162 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16163 ;;
16164 *)
16165 sys_lib_search_path_spec=$LIB
16166 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16167 # It is most probably a Windows format PATH.
16168 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16169 else
16170 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16171 fi
16172 # FIXME: find the short name or the path components, as spaces are
16173 # common. (e.g. "Program Files" -> "PROGRA~1")
16174 ;;
16175 esac
16176
16177 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16178 postinstall_cmds='base_file=`basename \$file`~
16179 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16180 dldir=$destdir/`dirname \$dlpath`~
16181 test -d \$dldir || mkdir -p \$dldir~
16182 $install_prog $dir/$dlname \$dldir/$dlname'
16183 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16184 dlpath=$dir/\$dldll~
16185 $RM \$dlpath'
16186 shlibpath_overrides_runpath=yes
16187 dynamic_linker='Win32 link.exe'
16188 ;;
16189
16190 *)
16191 # Assume MSVC and ICC wrapper
16192 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
16193 dynamic_linker='Win32 ld.exe'
16194 ;;
16195 esac
16196 # FIXME: first we should search . and the directory the executable is in
16197 shlibpath_var=PATH
16198 ;;
16199
16200 darwin* | rhapsody*)
16201 dynamic_linker="$host_os dyld"
16202 version_type=darwin
16203 need_lib_prefix=no
16204 need_version=no
16205 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
16206 soname_spec='$libname$release$major$shared_ext'
16207 shlibpath_overrides_runpath=yes
16208 shlibpath_var=DYLD_LIBRARY_PATH
16209 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16210
16211 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16212 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16213 ;;
16214
16215 dgux*)
16216 version_type=linux # correct to gnu/linux during the next big refactor
16217 need_lib_prefix=no
16218 need_version=no
16219 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16220 soname_spec='$libname$release$shared_ext$major'
16221 shlibpath_var=LD_LIBRARY_PATH
16222 ;;
16223
16224 freebsd* | dragonfly* | midnightbsd*)
16225 # DragonFly does not have aout. When/if they implement a new
16226 # versioning mechanism, adjust this.
16227 if test -x /usr/bin/objformat; then
16228 objformat=`/usr/bin/objformat`
16229 else
16230 case $host_os in
16231 freebsd[23].*) objformat=aout ;;
16232 *) objformat=elf ;;
16233 esac
16234 fi
16235 version_type=freebsd-$objformat
16236 case $version_type in
16237 freebsd-elf*)
16238 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16239 soname_spec='$libname$release$shared_ext$major'
16240 need_version=no
16241 need_lib_prefix=no
16242 ;;
16243 freebsd-*)
16244 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16245 need_version=yes
16246 ;;
16247 esac
16248 shlibpath_var=LD_LIBRARY_PATH
16249 case $host_os in
16250 freebsd2.*)
16251 shlibpath_overrides_runpath=yes
16252 ;;
16253 freebsd3.[01]* | freebsdelf3.[01]*)
16254 shlibpath_overrides_runpath=yes
16255 hardcode_into_libs=yes
16256 ;;
16257 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16258 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16259 shlibpath_overrides_runpath=no
16260 hardcode_into_libs=yes
16261 ;;
16262 *) # from 4.6 on, and DragonFly
16263 shlibpath_overrides_runpath=yes
16264 hardcode_into_libs=yes
16265 ;;
16266 esac
16267 ;;
16268
16269 haiku*)
16270 version_type=linux # correct to gnu/linux during the next big refactor
16271 need_lib_prefix=no
16272 need_version=no
16273 dynamic_linker="$host_os runtime_loader"
16274 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16275 soname_spec='$libname$release$shared_ext$major'
16276 shlibpath_var=LIBRARY_PATH
16277 shlibpath_overrides_runpath=no
16278 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16279 hardcode_into_libs=yes
16280 ;;
16281
16282 hpux9* | hpux10* | hpux11*)
16283 # Give a soname corresponding to the major version so that dld.sl refuses to
16284 # link against other versions.
16285 version_type=sunos
16286 need_lib_prefix=no
16287 need_version=no
16288 case $host_cpu in
16289 ia64*)
16290 shrext_cmds='.so'
16291 hardcode_into_libs=yes
16292 dynamic_linker="$host_os dld.so"
16293 shlibpath_var=LD_LIBRARY_PATH
16294 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16295 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16296 soname_spec='$libname$release$shared_ext$major'
16297 if test 32 = "$HPUX_IA64_MODE"; then
16298 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16299 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
16300 else
16301 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16302 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
16303 fi
16304 ;;
16305 hppa*64*)
16306 shrext_cmds='.sl'
16307 hardcode_into_libs=yes
16308 dynamic_linker="$host_os dld.sl"
16309 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16310 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16311 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16312 soname_spec='$libname$release$shared_ext$major'
16313 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16314 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16315 ;;
16316 *)
16317 shrext_cmds='.sl'
16318 dynamic_linker="$host_os dld.sl"
16319 shlibpath_var=SHLIB_PATH
16320 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16321 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16322 soname_spec='$libname$release$shared_ext$major'
16323 ;;
16324 esac
16325 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16326 postinstall_cmds='chmod 555 $lib'
16327 # or fails outright, so override atomically:
16328 install_override_mode=555
16329 ;;
16330
16331 interix[3-9]*)
16332 version_type=linux # correct to gnu/linux during the next big refactor
16333 need_lib_prefix=no
16334 need_version=no
16335 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16336 soname_spec='$libname$release$shared_ext$major'
16337 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16338 shlibpath_var=LD_LIBRARY_PATH
16339 shlibpath_overrides_runpath=no
16340 hardcode_into_libs=yes
16341 ;;
16342
16343 irix5* | irix6* | nonstopux*)
16344 case $host_os in
16345 nonstopux*) version_type=nonstopux ;;
16346 *)
16347 if test yes = "$lt_cv_prog_gnu_ld"; then
16348 version_type=linux # correct to gnu/linux during the next big refactor
16349 else
16350 version_type=irix
16351 fi ;;
16352 esac
16353 need_lib_prefix=no
16354 need_version=no
16355 soname_spec='$libname$release$shared_ext$major'
16356 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
16357 case $host_os in
16358 irix5* | nonstopux*)
16359 libsuff= shlibsuff=
16360 ;;
16361 *)
16362 case $LD in # libtool.m4 will add one of these switches to LD
16363 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16364 libsuff= shlibsuff= libmagic=32-bit;;
16365 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16366 libsuff=32 shlibsuff=N32 libmagic=N32;;
16367 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16368 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16369 *) libsuff= shlibsuff= libmagic=never-match;;
16370 esac
16371 ;;
16372 esac
16373 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16374 shlibpath_overrides_runpath=no
16375 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
16376 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
16377 hardcode_into_libs=yes
16378 ;;
16379
16380 # No shared lib support for Linux oldld, aout, or coff.
16381 linux*oldld* | linux*aout* | linux*coff*)
16382 dynamic_linker=no
16383 ;;
16384
16385 linux*android*)
16386 version_type=none # Android doesn't support versioned libraries.
16387 need_lib_prefix=no
16388 need_version=no
16389 library_names_spec='$libname$release$shared_ext'
16390 soname_spec='$libname$release$shared_ext'
16391 finish_cmds=
16392 shlibpath_var=LD_LIBRARY_PATH
16393 shlibpath_overrides_runpath=yes
16394
16395 # This implies no fast_install, which is unacceptable.
16396 # Some rework will be needed to allow for fast_install
16397 # before this can be enabled.
16398 hardcode_into_libs=yes
16399
16400 dynamic_linker='Android linker'
16401 # Don't embed -rpath directories since the linker doesn't support them.
16402 hardcode_libdir_flag_spec='-L$libdir'
16403 ;;
16404
16405 # This must be glibc/ELF.
16406 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16407 version_type=linux # correct to gnu/linux during the next big refactor
16408 need_lib_prefix=no
16409 need_version=no
16410 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16411 soname_spec='$libname$release$shared_ext$major'
16412 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16413 shlibpath_var=LD_LIBRARY_PATH
16414 shlibpath_overrides_runpath=no
16415
16416 # Some binutils ld are patched to set DT_RUNPATH
16417 if test ${lt_cv_shlibpath_overrides_runpath+y}
16418 then :
16419 printf %s "(cached) " >&6
16420 else $as_nop
16421 lt_cv_shlibpath_overrides_runpath=no
16422 save_LDFLAGS=$LDFLAGS
16423 save_libdir=$libdir
16424 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16425 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16427 /* end confdefs.h. */
16428
16429 int
16430 main (void)
16431 {
16432
16433 ;
16434 return 0;
16435 }
16436 _ACEOF
16437 if ac_fn_c_try_link "$LINENO"
16438 then :
16439 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
16440 then :
16441 lt_cv_shlibpath_overrides_runpath=yes
16442 fi
16443 fi
16444 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16445 conftest$ac_exeext conftest.$ac_ext
16446 LDFLAGS=$save_LDFLAGS
16447 libdir=$save_libdir
16448
16449 fi
16450
16451 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16452
16453 # This implies no fast_install, which is unacceptable.
16454 # Some rework will be needed to allow for fast_install
16455 # before this can be enabled.
16456 hardcode_into_libs=yes
16457
16458 # Add ABI-specific directories to the system library path.
16459 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
16460
16461 # Ideally, we could use ldconfig to report *all* directores which are
16462 # searched for libraries, however this is still not possible. Aside from not
16463 # being certain /sbin/ldconfig is available, command
16464 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
16465 # even though it is searched at run-time. Try to do the best guess by
16466 # appending ld.so.conf contents (and includes) to the search path.
16467 if test -f /etc/ld.so.conf; then
16468 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
16469 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
16470 fi
16471
16472 # We used to test for /lib/ld.so.1 and disable shared libraries on
16473 # powerpc, because MkLinux only supported shared libraries with the
16474 # GNU dynamic linker. Since this was broken with cross compilers,
16475 # most powerpc-linux boxes support dynamic linking these days and
16476 # people can always --disable-shared, the test was removed, and we
16477 # assume the GNU/Linux dynamic linker is in use.
16478 dynamic_linker='GNU/Linux ld.so'
16479 ;;
16480
16481 netbsd*)
16482 version_type=sunos
16483 need_lib_prefix=no
16484 need_version=no
16485 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16486 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16487 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16488 dynamic_linker='NetBSD (a.out) ld.so'
16489 else
16490 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16491 soname_spec='$libname$release$shared_ext$major'
16492 dynamic_linker='NetBSD ld.elf_so'
16493 fi
16494 shlibpath_var=LD_LIBRARY_PATH
16495 shlibpath_overrides_runpath=yes
16496 hardcode_into_libs=yes
16497 ;;
16498
16499 newsos6)
16500 version_type=linux # correct to gnu/linux during the next big refactor
16501 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16502 shlibpath_var=LD_LIBRARY_PATH
16503 shlibpath_overrides_runpath=yes
16504 ;;
16505
16506 *nto* | *qnx*)
16507 version_type=qnx
16508 need_lib_prefix=no
16509 need_version=no
16510 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16511 soname_spec='$libname$release$shared_ext$major'
16512 shlibpath_var=LD_LIBRARY_PATH
16513 shlibpath_overrides_runpath=no
16514 hardcode_into_libs=yes
16515 dynamic_linker='ldqnx.so'
16516 ;;
16517
16518 openbsd* | bitrig*)
16519 version_type=sunos
16520 sys_lib_dlsearch_path_spec=/usr/lib
16521 need_lib_prefix=no
16522 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16523 need_version=no
16524 else
16525 need_version=yes
16526 fi
16527 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16528 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16529 shlibpath_var=LD_LIBRARY_PATH
16530 shlibpath_overrides_runpath=yes
16531 ;;
16532
16533 os2*)
16534 libname_spec='$name'
16535 version_type=windows
16536 shrext_cmds=.dll
16537 need_version=no
16538 need_lib_prefix=no
16539 # OS/2 can only load a DLL with a base name of 8 characters or less.
16540 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
16541 v=$($ECHO $release$versuffix | tr -d .-);
16542 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
16543 $ECHO $n$v`$shared_ext'
16544 library_names_spec='${libname}_dll.$libext'
16545 dynamic_linker='OS/2 ld.exe'
16546 shlibpath_var=BEGINLIBPATH
16547 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16548 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16549 postinstall_cmds='base_file=`basename \$file`~
16550 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
16551 dldir=$destdir/`dirname \$dlpath`~
16552 test -d \$dldir || mkdir -p \$dldir~
16553 $install_prog $dir/$dlname \$dldir/$dlname~
16554 chmod a+x \$dldir/$dlname~
16555 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16556 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16557 fi'
16558 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
16559 dlpath=$dir/\$dldll~
16560 $RM \$dlpath'
16561 ;;
16562
16563 osf3* | osf4* | osf5*)
16564 version_type=osf
16565 need_lib_prefix=no
16566 need_version=no
16567 soname_spec='$libname$release$shared_ext$major'
16568 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16569 shlibpath_var=LD_LIBRARY_PATH
16570 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16571 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16572 ;;
16573
16574 rdos*)
16575 dynamic_linker=no
16576 ;;
16577
16578 solaris*)
16579 version_type=linux # correct to gnu/linux during the next big refactor
16580 need_lib_prefix=no
16581 need_version=no
16582 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16583 soname_spec='$libname$release$shared_ext$major'
16584 shlibpath_var=LD_LIBRARY_PATH
16585 shlibpath_overrides_runpath=yes
16586 hardcode_into_libs=yes
16587 # ldd complains unless libraries are executable
16588 postinstall_cmds='chmod +x $lib'
16589 ;;
16590
16591 sunos4*)
16592 version_type=sunos
16593 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16594 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16595 shlibpath_var=LD_LIBRARY_PATH
16596 shlibpath_overrides_runpath=yes
16597 if test yes = "$with_gnu_ld"; then
16598 need_lib_prefix=no
16599 fi
16600 need_version=yes
16601 ;;
16602
16603 sysv4 | sysv4.3*)
16604 version_type=linux # correct to gnu/linux during the next big refactor
16605 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16606 soname_spec='$libname$release$shared_ext$major'
16607 shlibpath_var=LD_LIBRARY_PATH
16608 case $host_vendor in
16609 sni)
16610 shlibpath_overrides_runpath=no
16611 need_lib_prefix=no
16612 runpath_var=LD_RUN_PATH
16613 ;;
16614 siemens)
16615 need_lib_prefix=no
16616 ;;
16617 motorola)
16618 need_lib_prefix=no
16619 need_version=no
16620 shlibpath_overrides_runpath=no
16621 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16622 ;;
16623 esac
16624 ;;
16625
16626 sysv4*MP*)
16627 if test -d /usr/nec; then
16628 version_type=linux # correct to gnu/linux during the next big refactor
16629 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
16630 soname_spec='$libname$shared_ext.$major'
16631 shlibpath_var=LD_LIBRARY_PATH
16632 fi
16633 ;;
16634
16635 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16636 version_type=sco
16637 need_lib_prefix=no
16638 need_version=no
16639 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
16640 soname_spec='$libname$release$shared_ext$major'
16641 shlibpath_var=LD_LIBRARY_PATH
16642 shlibpath_overrides_runpath=yes
16643 hardcode_into_libs=yes
16644 if test yes = "$with_gnu_ld"; then
16645 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16646 else
16647 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16648 case $host_os in
16649 sco3.2v5*)
16650 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16651 ;;
16652 esac
16653 fi
16654 sys_lib_dlsearch_path_spec='/usr/lib'
16655 ;;
16656
16657 tpf*)
16658 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16659 version_type=linux # correct to gnu/linux during the next big refactor
16660 need_lib_prefix=no
16661 need_version=no
16662 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16663 shlibpath_var=LD_LIBRARY_PATH
16664 shlibpath_overrides_runpath=no
16665 hardcode_into_libs=yes
16666 ;;
16667
16668 uts4*)
16669 version_type=linux # correct to gnu/linux during the next big refactor
16670 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16671 soname_spec='$libname$release$shared_ext$major'
16672 shlibpath_var=LD_LIBRARY_PATH
16673 ;;
16674
16675 *)
16676 dynamic_linker=no
16677 ;;
16678 esac
16679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16680 printf "%s\n" "$dynamic_linker" >&6; }
16681 test no = "$dynamic_linker" && can_build_shared=no
16682
16683 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16684 if test yes = "$GCC"; then
16685 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16686 fi
16687
16688 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
16689 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
16690 fi
16691
16692 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
16693 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
16694 fi
16695
16696 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
16697 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
16698
16699 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
16700 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
16701
16702 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
16703 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
16704
16705
16706
16707
16708
16709
16710
16711
16712
16713
16714
16715
16716
16717
16718
16719
16720
16721
16722
16723
16724
16725
16726
16727
16728
16729
16730
16731
16732
16733
16734
16735
16736
16737
16738
16739
16740
16741
16742
16743
16744
16745
16746
16747
16748
16749
16750
16751
16752
16753
16754
16755
16756
16757
16758
16759
16760
16761
16762
16763
16764
16765
16766
16767
16768
16769
16770
16771
16772
16773
16774
16775
16776
16777
16778
16779
16780
16781
16782
16783
16784
16785
16786
16787
16788
16789
16790
16791
16792
16793
16794
16795
16796
16797
16798
16799
16800
16801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16802 printf %s "checking how to hardcode library paths into programs... " >&6; }
16803 hardcode_action=
16804 if test -n "$hardcode_libdir_flag_spec" ||
16805 test -n "$runpath_var" ||
16806 test yes = "$hardcode_automatic"; then
16807
16808 # We can hardcode non-existent directories.
16809 if test no != "$hardcode_direct" &&
16810 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16811 # have to relink, otherwise we might link with an installed library
16812 # when we should be linking with a yet-to-be-installed one
16813 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
16814 test no != "$hardcode_minus_L"; then
16815 # Linking always hardcodes the temporary library directory.
16816 hardcode_action=relink
16817 else
16818 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16819 hardcode_action=immediate
16820 fi
16821 else
16822 # We cannot hardcode anything, or else we can only hardcode existing
16823 # directories.
16824 hardcode_action=unsupported
16825 fi
16826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
16827 printf "%s\n" "$hardcode_action" >&6; }
16828
16829 if test relink = "$hardcode_action" ||
16830 test yes = "$inherit_rpath"; then
16831 # Fast installation is not supported
16832 enable_fast_install=no
16833 elif test yes = "$shlibpath_overrides_runpath" ||
16834 test no = "$enable_shared"; then
16835 # Fast installation is not necessary
16836 enable_fast_install=needless
16837 fi
16838
16839
16840
16841
16842
16843
16844 if test yes != "$enable_dlopen"; then
16845 enable_dlopen=unknown
16846 enable_dlopen_self=unknown
16847 enable_dlopen_self_static=unknown
16848 else
16849 lt_cv_dlopen=no
16850 lt_cv_dlopen_libs=
16851
16852 case $host_os in
16853 beos*)
16854 lt_cv_dlopen=load_add_on
16855 lt_cv_dlopen_libs=
16856 lt_cv_dlopen_self=yes
16857 ;;
16858
16859 mingw* | pw32* | cegcc*)
16860 lt_cv_dlopen=LoadLibrary
16861 lt_cv_dlopen_libs=
16862 ;;
16863
16864 cygwin*)
16865 lt_cv_dlopen=dlopen
16866 lt_cv_dlopen_libs=
16867 ;;
16868
16869 darwin*)
16870 # if libdl is installed we need to link against it
16871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16872 printf %s "checking for dlopen in -ldl... " >&6; }
16873 if test ${ac_cv_lib_dl_dlopen+y}
16874 then :
16875 printf %s "(cached) " >&6
16876 else $as_nop
16877 ac_check_lib_save_LIBS=$LIBS
16878 LIBS="-ldl $LIBS"
16879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16880 /* end confdefs.h. */
16881
16882 /* Override any GCC internal prototype to avoid an error.
16883 Use char because int might match the return type of a GCC
16884 builtin and then its argument prototype would still apply. */
16885 char dlopen ();
16886 int
16887 main (void)
16888 {
16889 return dlopen ();
16890 ;
16891 return 0;
16892 }
16893 _ACEOF
16894 if ac_fn_c_try_link "$LINENO"
16895 then :
16896 ac_cv_lib_dl_dlopen=yes
16897 else $as_nop
16898 ac_cv_lib_dl_dlopen=no
16899 fi
16900 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16901 conftest$ac_exeext conftest.$ac_ext
16902 LIBS=$ac_check_lib_save_LIBS
16903 fi
16904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16905 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
16906 if test "x$ac_cv_lib_dl_dlopen" = xyes
16907 then :
16908 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
16909 else $as_nop
16910
16911 lt_cv_dlopen=dyld
16912 lt_cv_dlopen_libs=
16913 lt_cv_dlopen_self=yes
16914
16915 fi
16916
16917 ;;
16918
16919 tpf*)
16920 # Don't try to run any link tests for TPF. We know it's impossible
16921 # because TPF is a cross-compiler, and we know how we open DSOs.
16922 lt_cv_dlopen=dlopen
16923 lt_cv_dlopen_libs=
16924 lt_cv_dlopen_self=no
16925 ;;
16926
16927 *)
16928 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
16929 if test "x$ac_cv_func_shl_load" = xyes
16930 then :
16931 lt_cv_dlopen=shl_load
16932 else $as_nop
16933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16934 printf %s "checking for shl_load in -ldld... " >&6; }
16935 if test ${ac_cv_lib_dld_shl_load+y}
16936 then :
16937 printf %s "(cached) " >&6
16938 else $as_nop
16939 ac_check_lib_save_LIBS=$LIBS
16940 LIBS="-ldld $LIBS"
16941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16942 /* end confdefs.h. */
16943
16944 /* Override any GCC internal prototype to avoid an error.
16945 Use char because int might match the return type of a GCC
16946 builtin and then its argument prototype would still apply. */
16947 char shl_load ();
16948 int
16949 main (void)
16950 {
16951 return shl_load ();
16952 ;
16953 return 0;
16954 }
16955 _ACEOF
16956 if ac_fn_c_try_link "$LINENO"
16957 then :
16958 ac_cv_lib_dld_shl_load=yes
16959 else $as_nop
16960 ac_cv_lib_dld_shl_load=no
16961 fi
16962 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16963 conftest$ac_exeext conftest.$ac_ext
16964 LIBS=$ac_check_lib_save_LIBS
16965 fi
16966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16967 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
16968 if test "x$ac_cv_lib_dld_shl_load" = xyes
16969 then :
16970 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
16971 else $as_nop
16972 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
16973 if test "x$ac_cv_func_dlopen" = xyes
16974 then :
16975 lt_cv_dlopen=dlopen
16976 else $as_nop
16977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16978 printf %s "checking for dlopen in -ldl... " >&6; }
16979 if test ${ac_cv_lib_dl_dlopen+y}
16980 then :
16981 printf %s "(cached) " >&6
16982 else $as_nop
16983 ac_check_lib_save_LIBS=$LIBS
16984 LIBS="-ldl $LIBS"
16985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16986 /* end confdefs.h. */
16987
16988 /* Override any GCC internal prototype to avoid an error.
16989 Use char because int might match the return type of a GCC
16990 builtin and then its argument prototype would still apply. */
16991 char dlopen ();
16992 int
16993 main (void)
16994 {
16995 return dlopen ();
16996 ;
16997 return 0;
16998 }
16999 _ACEOF
17000 if ac_fn_c_try_link "$LINENO"
17001 then :
17002 ac_cv_lib_dl_dlopen=yes
17003 else $as_nop
17004 ac_cv_lib_dl_dlopen=no
17005 fi
17006 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17007 conftest$ac_exeext conftest.$ac_ext
17008 LIBS=$ac_check_lib_save_LIBS
17009 fi
17010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17011 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
17012 if test "x$ac_cv_lib_dl_dlopen" = xyes
17013 then :
17014 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
17015 else $as_nop
17016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17017 printf %s "checking for dlopen in -lsvld... " >&6; }
17018 if test ${ac_cv_lib_svld_dlopen+y}
17019 then :
17020 printf %s "(cached) " >&6
17021 else $as_nop
17022 ac_check_lib_save_LIBS=$LIBS
17023 LIBS="-lsvld $LIBS"
17024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17025 /* end confdefs.h. */
17026
17027 /* Override any GCC internal prototype to avoid an error.
17028 Use char because int might match the return type of a GCC
17029 builtin and then its argument prototype would still apply. */
17030 char dlopen ();
17031 int
17032 main (void)
17033 {
17034 return dlopen ();
17035 ;
17036 return 0;
17037 }
17038 _ACEOF
17039 if ac_fn_c_try_link "$LINENO"
17040 then :
17041 ac_cv_lib_svld_dlopen=yes
17042 else $as_nop
17043 ac_cv_lib_svld_dlopen=no
17044 fi
17045 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17046 conftest$ac_exeext conftest.$ac_ext
17047 LIBS=$ac_check_lib_save_LIBS
17048 fi
17049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17050 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
17051 if test "x$ac_cv_lib_svld_dlopen" = xyes
17052 then :
17053 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
17054 else $as_nop
17055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17056 printf %s "checking for dld_link in -ldld... " >&6; }
17057 if test ${ac_cv_lib_dld_dld_link+y}
17058 then :
17059 printf %s "(cached) " >&6
17060 else $as_nop
17061 ac_check_lib_save_LIBS=$LIBS
17062 LIBS="-ldld $LIBS"
17063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17064 /* end confdefs.h. */
17065
17066 /* Override any GCC internal prototype to avoid an error.
17067 Use char because int might match the return type of a GCC
17068 builtin and then its argument prototype would still apply. */
17069 char dld_link ();
17070 int
17071 main (void)
17072 {
17073 return dld_link ();
17074 ;
17075 return 0;
17076 }
17077 _ACEOF
17078 if ac_fn_c_try_link "$LINENO"
17079 then :
17080 ac_cv_lib_dld_dld_link=yes
17081 else $as_nop
17082 ac_cv_lib_dld_dld_link=no
17083 fi
17084 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17085 conftest$ac_exeext conftest.$ac_ext
17086 LIBS=$ac_check_lib_save_LIBS
17087 fi
17088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17089 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
17090 if test "x$ac_cv_lib_dld_dld_link" = xyes
17091 then :
17092 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
17093 fi
17094
17095
17096 fi
17097
17098
17099 fi
17100
17101
17102 fi
17103
17104
17105 fi
17106
17107
17108 fi
17109
17110 ;;
17111 esac
17112
17113 if test no = "$lt_cv_dlopen"; then
17114 enable_dlopen=no
17115 else
17116 enable_dlopen=yes
17117 fi
17118
17119 case $lt_cv_dlopen in
17120 dlopen)
17121 save_CPPFLAGS=$CPPFLAGS
17122 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17123
17124 save_LDFLAGS=$LDFLAGS
17125 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17126
17127 save_LIBS=$LIBS
17128 LIBS="$lt_cv_dlopen_libs $LIBS"
17129
17130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17131 printf %s "checking whether a program can dlopen itself... " >&6; }
17132 if test ${lt_cv_dlopen_self+y}
17133 then :
17134 printf %s "(cached) " >&6
17135 else $as_nop
17136 if test yes = "$cross_compiling"; then :
17137 lt_cv_dlopen_self=cross
17138 else
17139 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17140 lt_status=$lt_dlunknown
17141 cat > conftest.$ac_ext <<_LT_EOF
17142 #line $LINENO "configure"
17143 #include "confdefs.h"
17144
17145 #if HAVE_DLFCN_H
17146 #include <dlfcn.h>
17147 #endif
17148
17149 #include <stdio.h>
17150
17151 #ifdef RTLD_GLOBAL
17152 # define LT_DLGLOBAL RTLD_GLOBAL
17153 #else
17154 # ifdef DL_GLOBAL
17155 # define LT_DLGLOBAL DL_GLOBAL
17156 # else
17157 # define LT_DLGLOBAL 0
17158 # endif
17159 #endif
17160
17161 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17162 find out it does not work in some platform. */
17163 #ifndef LT_DLLAZY_OR_NOW
17164 # ifdef RTLD_LAZY
17165 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17166 # else
17167 # ifdef DL_LAZY
17168 # define LT_DLLAZY_OR_NOW DL_LAZY
17169 # else
17170 # ifdef RTLD_NOW
17171 # define LT_DLLAZY_OR_NOW RTLD_NOW
17172 # else
17173 # ifdef DL_NOW
17174 # define LT_DLLAZY_OR_NOW DL_NOW
17175 # else
17176 # define LT_DLLAZY_OR_NOW 0
17177 # endif
17178 # endif
17179 # endif
17180 # endif
17181 #endif
17182
17183 /* When -fvisibility=hidden is used, assume the code has been annotated
17184 correspondingly for the symbols needed. */
17185 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17186 int fnord () __attribute__((visibility("default")));
17187 #endif
17188
17189 int fnord () { return 42; }
17190 int main ()
17191 {
17192 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17193 int status = $lt_dlunknown;
17194
17195 if (self)
17196 {
17197 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17198 else
17199 {
17200 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17201 else puts (dlerror ());
17202 }
17203 /* dlclose (self); */
17204 }
17205 else
17206 puts (dlerror ());
17207
17208 return status;
17209 }
17210 _LT_EOF
17211 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17212 (eval $ac_link) 2>&5
17213 ac_status=$?
17214 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17215 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
17216 (./conftest; exit; ) >&5 2>/dev/null
17217 lt_status=$?
17218 case x$lt_status in
17219 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17220 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17221 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17222 esac
17223 else :
17224 # compilation failed
17225 lt_cv_dlopen_self=no
17226 fi
17227 fi
17228 rm -fr conftest*
17229
17230
17231 fi
17232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17233 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
17234
17235 if test yes = "$lt_cv_dlopen_self"; then
17236 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17238 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
17239 if test ${lt_cv_dlopen_self_static+y}
17240 then :
17241 printf %s "(cached) " >&6
17242 else $as_nop
17243 if test yes = "$cross_compiling"; then :
17244 lt_cv_dlopen_self_static=cross
17245 else
17246 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17247 lt_status=$lt_dlunknown
17248 cat > conftest.$ac_ext <<_LT_EOF
17249 #line $LINENO "configure"
17250 #include "confdefs.h"
17251
17252 #if HAVE_DLFCN_H
17253 #include <dlfcn.h>
17254 #endif
17255
17256 #include <stdio.h>
17257
17258 #ifdef RTLD_GLOBAL
17259 # define LT_DLGLOBAL RTLD_GLOBAL
17260 #else
17261 # ifdef DL_GLOBAL
17262 # define LT_DLGLOBAL DL_GLOBAL
17263 # else
17264 # define LT_DLGLOBAL 0
17265 # endif
17266 #endif
17267
17268 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17269 find out it does not work in some platform. */
17270 #ifndef LT_DLLAZY_OR_NOW
17271 # ifdef RTLD_LAZY
17272 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17273 # else
17274 # ifdef DL_LAZY
17275 # define LT_DLLAZY_OR_NOW DL_LAZY
17276 # else
17277 # ifdef RTLD_NOW
17278 # define LT_DLLAZY_OR_NOW RTLD_NOW
17279 # else
17280 # ifdef DL_NOW
17281 # define LT_DLLAZY_OR_NOW DL_NOW
17282 # else
17283 # define LT_DLLAZY_OR_NOW 0
17284 # endif
17285 # endif
17286 # endif
17287 # endif
17288 #endif
17289
17290 /* When -fvisibility=hidden is used, assume the code has been annotated
17291 correspondingly for the symbols needed. */
17292 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17293 int fnord () __attribute__((visibility("default")));
17294 #endif
17295
17296 int fnord () { return 42; }
17297 int main ()
17298 {
17299 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17300 int status = $lt_dlunknown;
17301
17302 if (self)
17303 {
17304 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17305 else
17306 {
17307 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17308 else puts (dlerror ());
17309 }
17310 /* dlclose (self); */
17311 }
17312 else
17313 puts (dlerror ());
17314
17315 return status;
17316 }
17317 _LT_EOF
17318 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17319 (eval $ac_link) 2>&5
17320 ac_status=$?
17321 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17322 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
17323 (./conftest; exit; ) >&5 2>/dev/null
17324 lt_status=$?
17325 case x$lt_status in
17326 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17327 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17328 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17329 esac
17330 else :
17331 # compilation failed
17332 lt_cv_dlopen_self_static=no
17333 fi
17334 fi
17335 rm -fr conftest*
17336
17337
17338 fi
17339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17340 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
17341 fi
17342
17343 CPPFLAGS=$save_CPPFLAGS
17344 LDFLAGS=$save_LDFLAGS
17345 LIBS=$save_LIBS
17346 ;;
17347 esac
17348
17349 case $lt_cv_dlopen_self in
17350 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17351 *) enable_dlopen_self=unknown ;;
17352 esac
17353
17354 case $lt_cv_dlopen_self_static in
17355 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17356 *) enable_dlopen_self_static=unknown ;;
17357 esac
17358 fi
17359
17360
17361
17362
17363
17364
17365
17366
17367
17368
17369
17370
17371
17372
17373
17374
17375
17376 striplib=
17377 old_striplib=
17378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17379 printf %s "checking whether stripping libraries is possible... " >&6; }
17380 if test -z "$STRIP"; then
17381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17382 printf "%s\n" "no" >&6; }
17383 else
17384 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17385 old_striplib="$STRIP --strip-debug"
17386 striplib="$STRIP --strip-unneeded"
17387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17388 printf "%s\n" "yes" >&6; }
17389 else
17390 case $host_os in
17391 darwin*)
17392 # FIXME - insert some real tests, host_os isn't really good enough
17393 striplib="$STRIP -x"
17394 old_striplib="$STRIP -S"
17395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17396 printf "%s\n" "yes" >&6; }
17397 ;;
17398 freebsd*)
17399 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
17400 old_striplib="$STRIP --strip-debug"
17401 striplib="$STRIP --strip-unneeded"
17402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17403 printf "%s\n" "yes" >&6; }
17404 else
17405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17406 printf "%s\n" "no" >&6; }
17407 fi
17408 ;;
17409 *)
17410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17411 printf "%s\n" "no" >&6; }
17412 ;;
17413 esac
17414 fi
17415 fi
17416
17417
17418
17419
17420
17421
17422
17423
17424
17425
17426
17427
17428 # Report what library types will actually be built
17429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17430 printf %s "checking if libtool supports shared libraries... " >&6; }
17431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17432 printf "%s\n" "$can_build_shared" >&6; }
17433
17434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17435 printf %s "checking whether to build shared libraries... " >&6; }
17436 test no = "$can_build_shared" && enable_shared=no
17437
17438 # On AIX, shared libraries and static libraries use the same namespace, and
17439 # are all built from PIC.
17440 case $host_os in
17441 aix3*)
17442 test yes = "$enable_shared" && enable_static=no
17443 if test -n "$RANLIB"; then
17444 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17445 postinstall_cmds='$RANLIB $lib'
17446 fi
17447 ;;
17448
17449 aix[4-9]*)
17450 if test ia64 != "$host_cpu"; then
17451 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
17452 yes,aix,yes) ;; # shared object as lib.so file only
17453 yes,svr4,*) ;; # shared object as lib.so archive member only
17454 yes,*) enable_static=no ;; # shared object in lib.a archive as well
17455 esac
17456 fi
17457 ;;
17458 esac
17459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17460 printf "%s\n" "$enable_shared" >&6; }
17461
17462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17463 printf %s "checking whether to build static libraries... " >&6; }
17464 # Make sure either enable_shared or enable_static is yes.
17465 test yes = "$enable_shared" || enable_static=yes
17466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17467 printf "%s\n" "$enable_static" >&6; }
17468
17469
17470
17471
17472 fi
17473 ac_ext=c
17474 ac_cpp='$CPP $CPPFLAGS'
17475 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17476 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17477 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17478
17479 CC=$lt_save_CC
17480
17481
17482
17483
17484
17485
17486
17487
17488
17489
17490
17491
17492
17493
17494
17495 ac_config_commands="$ac_config_commands libtool"
17496
17497
17498
17499
17500 # Only expand once:
17501
17502
17503 for ac_prog in 'bison -y' byacc
17504 do
17505 # Extract the first word of "$ac_prog", so it can be a program name with args.
17506 set dummy $ac_prog; ac_word=$2
17507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17508 printf %s "checking for $ac_word... " >&6; }
17509 if test ${ac_cv_prog_YACC+y}
17510 then :
17511 printf %s "(cached) " >&6
17512 else $as_nop
17513 if test -n "$YACC"; then
17514 ac_cv_prog_YACC="$YACC" # Let the user override the test.
17515 else
17516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17517 for as_dir in $PATH
17518 do
17519 IFS=$as_save_IFS
17520 case $as_dir in #(((
17521 '') as_dir=./ ;;
17522 */) ;;
17523 *) as_dir=$as_dir/ ;;
17524 esac
17525 for ac_exec_ext in '' $ac_executable_extensions; do
17526 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17527 ac_cv_prog_YACC="$ac_prog"
17528 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17529 break 2
17530 fi
17531 done
17532 done
17533 IFS=$as_save_IFS
17534
17535 fi
17536 fi
17537 YACC=$ac_cv_prog_YACC
17538 if test -n "$YACC"; then
17539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
17540 printf "%s\n" "$YACC" >&6; }
17541 else
17542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17543 printf "%s\n" "no" >&6; }
17544 fi
17545
17546
17547 test -n "$YACC" && break
17548 done
17549 test -n "$YACC" || YACC="yacc"
17550
17551 for ac_prog in flex lex
17552 do
17553 # Extract the first word of "$ac_prog", so it can be a program name with args.
17554 set dummy $ac_prog; ac_word=$2
17555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17556 printf %s "checking for $ac_word... " >&6; }
17557 if test ${ac_cv_prog_LEX+y}
17558 then :
17559 printf %s "(cached) " >&6
17560 else $as_nop
17561 if test -n "$LEX"; then
17562 ac_cv_prog_LEX="$LEX" # Let the user override the test.
17563 else
17564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17565 for as_dir in $PATH
17566 do
17567 IFS=$as_save_IFS
17568 case $as_dir in #(((
17569 '') as_dir=./ ;;
17570 */) ;;
17571 *) as_dir=$as_dir/ ;;
17572 esac
17573 for ac_exec_ext in '' $ac_executable_extensions; do
17574 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17575 ac_cv_prog_LEX="$ac_prog"
17576 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17577 break 2
17578 fi
17579 done
17580 done
17581 IFS=$as_save_IFS
17582
17583 fi
17584 fi
17585 LEX=$ac_cv_prog_LEX
17586 if test -n "$LEX"; then
17587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
17588 printf "%s\n" "$LEX" >&6; }
17589 else
17590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17591 printf "%s\n" "no" >&6; }
17592 fi
17593
17594
17595 test -n "$LEX" && break
17596 done
17597 test -n "$LEX" || LEX=":"
17598
17599 if test "x$LEX" != "x:"; then
17600 cat >conftest.l <<_ACEOF
17601 %{
17602 #ifdef __cplusplus
17603 extern "C"
17604 #endif
17605 int yywrap(void);
17606 %}
17607 %%
17608 a { ECHO; }
17609 b { REJECT; }
17610 c { yymore (); }
17611 d { yyless (1); }
17612 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
17613 #ifdef __cplusplus
17614 yyless ((yyinput () != 0));
17615 #else
17616 yyless ((input () != 0));
17617 #endif
17618 }
17619 f { unput (yytext[0]); }
17620 . { BEGIN INITIAL; }
17621 %%
17622 #ifdef YYTEXT_POINTER
17623 extern char *yytext;
17624 #endif
17625 int
17626 yywrap (void)
17627 {
17628 return 1;
17629 }
17630 int
17631 main (void)
17632 {
17633 return ! yylex ();
17634 }
17635 _ACEOF
17636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lex output file root" >&5
17637 printf %s "checking for lex output file root... " >&6; }
17638 if test ${ac_cv_prog_lex_root+y}
17639 then :
17640 printf %s "(cached) " >&6
17641 else $as_nop
17642
17643 ac_cv_prog_lex_root=unknown
17644 { { ac_try="$LEX conftest.l"
17645 case "(($ac_try" in
17646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17647 *) ac_try_echo=$ac_try;;
17648 esac
17649 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17650 printf "%s\n" "$ac_try_echo"; } >&5
17651 (eval "$LEX conftest.l") 2>&5
17652 ac_status=$?
17653 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17654 test $ac_status = 0; } &&
17655 if test -f lex.yy.c; then
17656 ac_cv_prog_lex_root=lex.yy
17657 elif test -f lexyy.c; then
17658 ac_cv_prog_lex_root=lexyy
17659 fi
17660 fi
17661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
17662 printf "%s\n" "$ac_cv_prog_lex_root" >&6; }
17663 if test "$ac_cv_prog_lex_root" = unknown
17664 then :
17665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot find output from $LEX; giving up on $LEX" >&5
17666 printf "%s\n" "$as_me: WARNING: cannot find output from $LEX; giving up on $LEX" >&2;}
17667 LEX=: LEXLIB=
17668 fi
17669 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
17670
17671 if test ${LEXLIB+y}
17672 then :
17673
17674 else $as_nop
17675
17676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lex library" >&5
17677 printf %s "checking for lex library... " >&6; }
17678 if test ${ac_cv_lib_lex+y}
17679 then :
17680 printf %s "(cached) " >&6
17681 else $as_nop
17682
17683 ac_save_LIBS="$LIBS"
17684 ac_found=false
17685 for ac_cv_lib_lex in 'none needed' -lfl -ll 'not found'; do
17686 case $ac_cv_lib_lex in #(
17687 'none needed') :
17688 ;; #(
17689 'not found') :
17690 break ;; #(
17691 *) :
17692 LIBS="$ac_cv_lib_lex $ac_save_LIBS" ;; #(
17693 *) :
17694 ;;
17695 esac
17696
17697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17698 /* end confdefs.h. */
17699 `cat $LEX_OUTPUT_ROOT.c`
17700 _ACEOF
17701 if ac_fn_c_try_link "$LINENO"
17702 then :
17703 ac_found=:
17704 fi
17705 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17706 conftest$ac_exeext conftest.$ac_ext
17707 if $ac_found; then
17708 break
17709 fi
17710 done
17711 LIBS="$ac_save_LIBS"
17712
17713 fi
17714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
17715 printf "%s\n" "$ac_cv_lib_lex" >&6; }
17716 if test "$ac_cv_lib_lex" = 'not found'
17717 then :
17718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: required lex library not found; giving up on $LEX" >&5
17719 printf "%s\n" "$as_me: WARNING: required lex library not found; giving up on $LEX" >&2;}
17720 LEX=: LEXLIB=
17721 elif test "$ac_cv_lib_lex" = 'none needed'
17722 then :
17723 LEXLIB=''
17724 else $as_nop
17725 LEXLIB=$ac_cv_lib_lex
17726 fi
17727 ac_save_LIBS="$LIBS"
17728 LIBS=
17729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing yywrap" >&5
17730 printf %s "checking for library containing yywrap... " >&6; }
17731 if test ${ac_cv_search_yywrap+y}
17732 then :
17733 printf %s "(cached) " >&6
17734 else $as_nop
17735 ac_func_search_save_LIBS=$LIBS
17736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17737 /* end confdefs.h. */
17738
17739 /* Override any GCC internal prototype to avoid an error.
17740 Use char because int might match the return type of a GCC
17741 builtin and then its argument prototype would still apply. */
17742 char yywrap ();
17743 int
17744 main (void)
17745 {
17746 return yywrap ();
17747 ;
17748 return 0;
17749 }
17750 _ACEOF
17751 for ac_lib in '' fl l
17752 do
17753 if test -z "$ac_lib"; then
17754 ac_res="none required"
17755 else
17756 ac_res=-l$ac_lib
17757 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17758 fi
17759 if ac_fn_c_try_link "$LINENO"
17760 then :
17761 ac_cv_search_yywrap=$ac_res
17762 fi
17763 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17764 conftest$ac_exeext
17765 if test ${ac_cv_search_yywrap+y}
17766 then :
17767 break
17768 fi
17769 done
17770 if test ${ac_cv_search_yywrap+y}
17771 then :
17772
17773 else $as_nop
17774 ac_cv_search_yywrap=no
17775 fi
17776 rm conftest.$ac_ext
17777 LIBS=$ac_func_search_save_LIBS
17778 fi
17779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_yywrap" >&5
17780 printf "%s\n" "$ac_cv_search_yywrap" >&6; }
17781 ac_res=$ac_cv_search_yywrap
17782 if test "$ac_res" != no
17783 then :
17784 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17785 LEXLIB="$LIBS"
17786 fi
17787
17788 LIBS="$ac_save_LIBS"
17789 fi
17790
17791
17792 if test "$LEX" != :
17793 then :
17794
17795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
17796 printf %s "checking whether yytext is a pointer... " >&6; }
17797 if test ${ac_cv_prog_lex_yytext_pointer+y}
17798 then :
17799 printf %s "(cached) " >&6
17800 else $as_nop
17801 # POSIX says lex can declare yytext either as a pointer or an array; the
17802 # default is implementation-dependent. Figure out which it is, since
17803 # not all implementations provide the %pointer and %array declarations.
17804 ac_cv_prog_lex_yytext_pointer=no
17805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17806 /* end confdefs.h. */
17807
17808 #define YYTEXT_POINTER 1
17809 `cat $LEX_OUTPUT_ROOT.c`
17810 _ACEOF
17811 if ac_fn_c_try_compile "$LINENO"
17812 then :
17813 ac_cv_prog_lex_yytext_pointer=yes
17814 fi
17815 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17816
17817 fi
17818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
17819 printf "%s\n" "$ac_cv_prog_lex_yytext_pointer" >&6; }
17820 if test $ac_cv_prog_lex_yytext_pointer = yes; then
17821
17822 printf "%s\n" "#define YYTEXT_POINTER 1" >>confdefs.h
17823
17824 fi
17825
17826 fi
17827 rm -f conftest.l $LEX_OUTPUT_ROOT.c
17828
17829 fi
17830
17831
17832
17833 # Check whether --enable-compile-warnings was given.
17834 if test ${enable_compile_warnings+y}
17835 then :
17836 enableval=$enable_compile_warnings;
17837 else $as_nop
17838 enable_compile_warnings="maximum"
17839 fi
17840
17841
17842 warnCFLAGS=
17843
17844 common_flags="-fexceptions -fasynchronous-unwind-tables"
17845
17846 case "$enable_compile_warnings" in
17847 no)
17848 try_compiler_flags=""
17849 ;;
17850 minimum)
17851 try_compiler_flags="-Wall -Wformat -Wformat-security $common_flags"
17852 ;;
17853 yes)
17854 try_compiler_flags="-Wall -Wformat -Wformat-security -Wmissing-prototypes $common_flags"
17855 ;;
17856 maximum|error)
17857 try_compiler_flags="-Wall -Wformat -Wformat-security -Wmissing-prototypes -Wnested-externs -Wpointer-arith"
17858 try_compiler_flags="$try_compiler_flags -Wextra -Wshadow -Wcast-align -Wwrite-strings -Waggregate-return"
17859 try_compiler_flags="$try_compiler_flags -Wstrict-prototypes -Winline -Wredundant-decls -Wno-sign-compare"
17860 try_compiler_flags="$try_compiler_flags $common_flags"
17861 if test "$enable_compile_warnings" = "error" ; then
17862 try_compiler_flags="$try_compiler_flags -Werror"
17863 fi
17864 ;;
17865 *)
17866 as_fn_error $? "Unknown argument '$enable_compile_warnings' to --enable-compile-warnings" "$LINENO" 5
17867 ;;
17868 esac
17869
17870
17871
17872 compiler_flags=
17873 for option in $try_compiler_flags; do
17874 SAVE_CFLAGS="$CFLAGS"
17875 CFLAGS="$CFLAGS $option"
17876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether gcc understands $option" >&5
17877 printf %s "checking whether gcc understands $option... " >&6; }
17878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17879 /* end confdefs.h. */
17880
17881 int
17882 main (void)
17883 {
17884
17885 ;
17886 return 0;
17887 }
17888 _ACEOF
17889 if ac_fn_c_try_link "$LINENO"
17890 then :
17891 has_option=yes
17892 else $as_nop
17893 has_option=no
17894 fi
17895 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17896 conftest$ac_exeext conftest.$ac_ext
17897 CFLAGS="$SAVE_CFLAGS"
17898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
17899 printf "%s\n" "$has_option" >&6; }
17900 if test $has_option = yes; then
17901 compiler_flags="$compiler_flags $option"
17902 fi
17903 unset has_option
17904 unset SAVE_CFLAGS
17905 done
17906 unset option
17907 unset try_compiler_flags
17908
17909 # Check whether --enable-iso-c was given.
17910 if test ${enable_iso_c+y}
17911 then :
17912 enableval=$enable_iso_c;
17913 else $as_nop
17914 enable_iso_c=no
17915 fi
17916
17917
17918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking what language compliance flags to pass to the C compiler" >&5
17919 printf %s "checking what language compliance flags to pass to the C compiler... " >&6; }
17920 complCFLAGS=
17921 if test "x$enable_iso_c" != "xno"; then
17922 if test "x$GCC" = "xyes"; then
17923 case " $CFLAGS " in
17924 *\ \ -ansi\ \ *) ;;
17925 *) complCFLAGS="$complCFLAGS -ansi" ;;
17926 esac
17927 case " $CFLAGS " in
17928 *\ \ -pedantic\ \ *) ;;
17929 *) complCFLAGS="$complCFLAGS -pedantic" ;;
17930 esac
17931 fi
17932 fi
17933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $complCFLAGS" >&5
17934 printf "%s\n" "$complCFLAGS" >&6; }
17935
17936 WARN_CFLAGS="$compiler_flags $complCFLAGS"
17937
17938
17939
17940 ## Compiler flags to be used everywhere
17941 AUGEAS_CFLAGS=-std=gnu99
17942
17943
17944
17945 ac_fn_c_check_header_compile "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
17946 if test "x$ac_cv_header_readline_readline_h" = xyes
17947 then :
17948 printf "%s\n" "#define HAVE_READLINE_READLINE_H 1" >>confdefs.h
17949
17950 fi
17951
17952
17953 # Check for readline.
17954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
17955 printf %s "checking for readline in -lreadline... " >&6; }
17956 if test ${ac_cv_lib_readline_readline+y}
17957 then :
17958 printf %s "(cached) " >&6
17959 else $as_nop
17960 ac_check_lib_save_LIBS=$LIBS
17961 LIBS="-lreadline $LIBS"
17962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17963 /* end confdefs.h. */
17964
17965 /* Override any GCC internal prototype to avoid an error.
17966 Use char because int might match the return type of a GCC
17967 builtin and then its argument prototype would still apply. */
17968 char readline ();
17969 int
17970 main (void)
17971 {
17972 return readline ();
17973 ;
17974 return 0;
17975 }
17976 _ACEOF
17977 if ac_fn_c_try_link "$LINENO"
17978 then :
17979 ac_cv_lib_readline_readline=yes
17980 else $as_nop
17981 ac_cv_lib_readline_readline=no
17982 fi
17983 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17984 conftest$ac_exeext conftest.$ac_ext
17985 LIBS=$ac_check_lib_save_LIBS
17986 fi
17987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
17988 printf "%s\n" "$ac_cv_lib_readline_readline" >&6; }
17989 if test "x$ac_cv_lib_readline_readline" = xyes
17990 then :
17991 use_readline=yes; READLINE_LIBS=-lreadline
17992 else $as_nop
17993 use_readline=no
17994 fi
17995
17996
17997 # If the above test failed, it may simply be that -lreadline requires
17998 # some termcap-related code, e.g., from one of the following libraries.
17999 # See if adding one of them to LIBS helps.
18000 if test $use_readline = no; then
18001 saved_libs=$LIBS
18002 LIBS=
18003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
18004 printf %s "checking for library containing tgetent... " >&6; }
18005 if test ${ac_cv_search_tgetent+y}
18006 then :
18007 printf %s "(cached) " >&6
18008 else $as_nop
18009 ac_func_search_save_LIBS=$LIBS
18010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18011 /* end confdefs.h. */
18012
18013 /* Override any GCC internal prototype to avoid an error.
18014 Use char because int might match the return type of a GCC
18015 builtin and then its argument prototype would still apply. */
18016 char tgetent ();
18017 int
18018 main (void)
18019 {
18020 return tgetent ();
18021 ;
18022 return 0;
18023 }
18024 _ACEOF
18025 for ac_lib in '' ncurses curses termcap termlib
18026 do
18027 if test -z "$ac_lib"; then
18028 ac_res="none required"
18029 else
18030 ac_res=-l$ac_lib
18031 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18032 fi
18033 if ac_fn_c_try_link "$LINENO"
18034 then :
18035 ac_cv_search_tgetent=$ac_res
18036 fi
18037 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18038 conftest$ac_exeext
18039 if test ${ac_cv_search_tgetent+y}
18040 then :
18041 break
18042 fi
18043 done
18044 if test ${ac_cv_search_tgetent+y}
18045 then :
18046
18047 else $as_nop
18048 ac_cv_search_tgetent=no
18049 fi
18050 rm conftest.$ac_ext
18051 LIBS=$ac_func_search_save_LIBS
18052 fi
18053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
18054 printf "%s\n" "$ac_cv_search_tgetent" >&6; }
18055 ac_res=$ac_cv_search_tgetent
18056 if test "$ac_res" != no
18057 then :
18058 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18059
18060 fi
18061
18062 case $LIBS in
18063 no*) ;; # handle "no" and "none required"
18064 *) # anything else is a -lLIBRARY
18065 # Now, check for -lreadline again, also using $LIBS.
18066 # Note: this time we use a different function, so that
18067 # we don't get a cached "no" result.
18068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rl_initialize in -lreadline" >&5
18069 printf %s "checking for rl_initialize in -lreadline... " >&6; }
18070 if test ${ac_cv_lib_readline_rl_initialize+y}
18071 then :
18072 printf %s "(cached) " >&6
18073 else $as_nop
18074 ac_check_lib_save_LIBS=$LIBS
18075 LIBS="-lreadline $LIBS $LIBS"
18076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18077 /* end confdefs.h. */
18078
18079 /* Override any GCC internal prototype to avoid an error.
18080 Use char because int might match the return type of a GCC
18081 builtin and then its argument prototype would still apply. */
18082 char rl_initialize ();
18083 int
18084 main (void)
18085 {
18086 return rl_initialize ();
18087 ;
18088 return 0;
18089 }
18090 _ACEOF
18091 if ac_fn_c_try_link "$LINENO"
18092 then :
18093 ac_cv_lib_readline_rl_initialize=yes
18094 else $as_nop
18095 ac_cv_lib_readline_rl_initialize=no
18096 fi
18097 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18098 conftest$ac_exeext conftest.$ac_ext
18099 LIBS=$ac_check_lib_save_LIBS
18100 fi
18101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_initialize" >&5
18102 printf "%s\n" "$ac_cv_lib_readline_rl_initialize" >&6; }
18103 if test "x$ac_cv_lib_readline_rl_initialize" = xyes
18104 then :
18105 use_readline=yes
18106 READLINE_LIBS="-lreadline $LIBS"
18107 fi
18108
18109 ;;
18110 esac
18111 test $use_readline = no &&
18112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: readline library not found" >&5
18113 printf "%s\n" "$as_me: WARNING: readline library not found" >&2;}
18114 LIBS=$saved_libs
18115 fi
18116
18117 if test $use_readline = no; then
18118 as_fn_error $? "Could not find a working readline library (see config.log for details)." "$LINENO" 5
18119 fi
18120
18121
18122
18123 if test $use_readline = yes; then
18124 saved_libs=$LIBS
18125 LIBS=$READLINE_LIBS
18126 ac_fn_c_check_func "$LINENO" "rl_completion_matches" "ac_cv_func_rl_completion_matches"
18127 if test "x$ac_cv_func_rl_completion_matches" = xyes
18128 then :
18129 printf "%s\n" "#define HAVE_RL_COMPLETION_MATCHES 1" >>confdefs.h
18130
18131 fi
18132 ac_fn_c_check_func "$LINENO" "rl_crlf" "ac_cv_func_rl_crlf"
18133 if test "x$ac_cv_func_rl_crlf" = xyes
18134 then :
18135 printf "%s\n" "#define HAVE_RL_CRLF 1" >>confdefs.h
18136
18137 fi
18138 ac_fn_c_check_func "$LINENO" "rl_replace_line" "ac_cv_func_rl_replace_line"
18139 if test "x$ac_cv_func_rl_replace_line" = xyes
18140 then :
18141 printf "%s\n" "#define HAVE_RL_REPLACE_LINE 1" >>confdefs.h
18142
18143 fi
18144
18145 LIBS=$saved_libs
18146 fi
18147
18148 ac_fn_c_check_func "$LINENO" "open_memstream" "ac_cv_func_open_memstream"
18149 if test "x$ac_cv_func_open_memstream" = xyes
18150 then :
18151 printf "%s\n" "#define HAVE_OPEN_MEMSTREAM 1" >>confdefs.h
18152
18153 fi
18154 ac_fn_c_check_func "$LINENO" "uselocale" "ac_cv_func_uselocale"
18155 if test "x$ac_cv_func_uselocale" = xyes
18156 then :
18157 printf "%s\n" "#define HAVE_USELOCALE 1" >>confdefs.h
18158
18159 fi
18160
18161
18162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to pass version script to the linker ($LD)" >&5
18163 printf %s "checking how to pass version script to the linker ($LD)... " >&6; }
18164 VERSION_SCRIPT_FLAGS=none
18165 if $LD --help 2>&1 | grep "version-script" >/dev/null 2>/dev/null; then
18166 VERSION_SCRIPT_FLAGS=-Wl,--version-script=
18167 # Solaris needs gnu-version-script-compat to use version-script
18168 if test x"$host_os" = x"solaris2.11"; then
18169 VERSION_SCRIPT_FLAGS="-z gnu-version-script-compat,${VERSION_SCRIPT_FLAGS}"
18170 fi
18171 elif $LD --help 2>&1 | grep "M mapfile" >/dev/null 2>/dev/null; then
18172 VERSION_SCRIPT_FLAGS="-Wl,-M -Wl,"
18173 fi
18174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $VERSION_SCRIPT_FLAGS" >&5
18175 printf "%s\n" "$VERSION_SCRIPT_FLAGS" >&6; }
18176
18177 if test "$VERSION_SCRIPT_FLAGS" != none; then
18178 USE_VERSION_SCRIPT_TRUE=
18179 USE_VERSION_SCRIPT_FALSE='#'
18180 else
18181 USE_VERSION_SCRIPT_TRUE='#'
18182 USE_VERSION_SCRIPT_FALSE=
18183 fi
18184
18185
18186
18187
18188
18189
18190
18191
18192
18193
18194
18195 # Check whether --enable-cross-guesses was given.
18196 if test ${enable_cross_guesses+y}
18197 then :
18198 enableval=$enable_cross_guesses; if test "x$enableval" != xconservative && test "x$enableval" != xrisky; then
18199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-cross-guesses" >&5
18200 printf "%s\n" "$as_me: WARNING: invalid argument supplied to --enable-cross-guesses" >&2;}
18201 enableval=conservative
18202 fi
18203 gl_cross_guesses="$enableval"
18204 else $as_nop
18205 gl_cross_guesses=conservative
18206 fi
18207
18208 if test $gl_cross_guesses = risky; then
18209 gl_cross_guess_normal="guessing yes"
18210 gl_cross_guess_inverted="guessing no"
18211 else
18212 gl_cross_guess_normal="guessing no"
18213 gl_cross_guess_inverted="guessing yes"
18214 fi
18215 LIBC_FATAL_STDERR_=1
18216 export LIBC_FATAL_STDERR_
18217
18218
18219 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
18220 if test "x$ac_cv_type_size_t" = xyes
18221 then :
18222
18223 else $as_nop
18224
18225 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
18226
18227 fi
18228
18229 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
18230 # for constant arguments. Useless!
18231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
18232 printf %s "checking for working alloca.h... " >&6; }
18233 if test ${ac_cv_working_alloca_h+y}
18234 then :
18235 printf %s "(cached) " >&6
18236 else $as_nop
18237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18238 /* end confdefs.h. */
18239 #include <alloca.h>
18240 int
18241 main (void)
18242 {
18243 char *p = (char *) alloca (2 * sizeof (int));
18244 if (p) return 0;
18245 ;
18246 return 0;
18247 }
18248 _ACEOF
18249 if ac_fn_c_try_link "$LINENO"
18250 then :
18251 ac_cv_working_alloca_h=yes
18252 else $as_nop
18253 ac_cv_working_alloca_h=no
18254 fi
18255 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18256 conftest$ac_exeext conftest.$ac_ext
18257 fi
18258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
18259 printf "%s\n" "$ac_cv_working_alloca_h" >&6; }
18260 if test $ac_cv_working_alloca_h = yes; then
18261
18262 printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
18263
18264 fi
18265
18266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
18267 printf %s "checking for alloca... " >&6; }
18268 if test ${ac_cv_func_alloca_works+y}
18269 then :
18270 printf %s "(cached) " >&6
18271 else $as_nop
18272 if test $ac_cv_working_alloca_h = yes; then
18273 ac_cv_func_alloca_works=yes
18274 else
18275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18276 /* end confdefs.h. */
18277 #include <stdlib.h>
18278 #include <stddef.h>
18279 #ifndef alloca
18280 # ifdef __GNUC__
18281 # define alloca __builtin_alloca
18282 # elif defined _MSC_VER
18283 # include <malloc.h>
18284 # define alloca _alloca
18285 # else
18286 # ifdef __cplusplus
18287 extern "C"
18288 # endif
18289 void *alloca (size_t);
18290 # endif
18291 #endif
18292
18293 int
18294 main (void)
18295 {
18296 char *p = (char *) alloca (1);
18297 if (p) return 0;
18298 ;
18299 return 0;
18300 }
18301 _ACEOF
18302 if ac_fn_c_try_link "$LINENO"
18303 then :
18304 ac_cv_func_alloca_works=yes
18305 else $as_nop
18306 ac_cv_func_alloca_works=no
18307 fi
18308 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18309 conftest$ac_exeext conftest.$ac_ext
18310 fi
18311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
18312 printf "%s\n" "$ac_cv_func_alloca_works" >&6; }
18313 fi
18314
18315 if test $ac_cv_func_alloca_works = yes; then
18316
18317 printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
18318
18319 else
18320 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
18321 # that cause trouble. Some versions do not even contain alloca or
18322 # contain a buggy version. If you still want to use their alloca,
18323 # use ar to extract alloca.o from them instead of compiling alloca.c.
18324
18325
18326
18327
18328
18329 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
18330
18331 printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h
18332
18333
18334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
18335 printf %s "checking stack direction for C alloca... " >&6; }
18336 if test ${ac_cv_c_stack_direction+y}
18337 then :
18338 printf %s "(cached) " >&6
18339 else $as_nop
18340 if test "$cross_compiling" = yes
18341 then :
18342 ac_cv_c_stack_direction=0
18343 else $as_nop
18344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18345 /* end confdefs.h. */
18346 $ac_includes_default
18347 int
18348 find_stack_direction (int *addr, int depth)
18349 {
18350 int dir, dummy = 0;
18351 if (! addr)
18352 addr = &dummy;
18353 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
18354 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
18355 return dir + dummy;
18356 }
18357
18358 int
18359 main (int argc, char **argv)
18360 {
18361 return find_stack_direction (0, argc + !argv + 20) < 0;
18362 }
18363 _ACEOF
18364 if ac_fn_c_try_run "$LINENO"
18365 then :
18366 ac_cv_c_stack_direction=1
18367 else $as_nop
18368 ac_cv_c_stack_direction=-1
18369 fi
18370 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18371 conftest.$ac_objext conftest.beam conftest.$ac_ext
18372 fi
18373
18374 fi
18375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
18376 printf "%s\n" "$ac_cv_c_stack_direction" >&6; }
18377 printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h
18378
18379
18380 fi
18381
18382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
18383 printf %s "checking for C/C++ restrict keyword... " >&6; }
18384 if test ${ac_cv_c_restrict+y}
18385 then :
18386 printf %s "(cached) " >&6
18387 else $as_nop
18388 ac_cv_c_restrict=no
18389 # Put '__restrict__' first, to avoid problems with glibc and non-GCC; see:
18390 # https://lists.gnu.org/archive/html/bug-autoconf/2016-02/msg00006.html
18391 # Put 'restrict' last, because C++ lacks it.
18392 for ac_kw in __restrict__ __restrict _Restrict restrict; do
18393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18394 /* end confdefs.h. */
18395 typedef int *int_ptr;
18396 int foo (int_ptr $ac_kw ip) { return ip[0]; }
18397 int bar (int [$ac_kw]); /* Catch GCC bug 14050. */
18398 int bar (int ip[$ac_kw]) { return ip[0]; }
18399
18400 int
18401 main (void)
18402 {
18403 int s[1];
18404 int *$ac_kw t = s;
18405 t[0] = 0;
18406 return foo (t) + bar (t);
18407
18408 ;
18409 return 0;
18410 }
18411 _ACEOF
18412 if ac_fn_c_try_compile "$LINENO"
18413 then :
18414 ac_cv_c_restrict=$ac_kw
18415 fi
18416 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18417 test "$ac_cv_c_restrict" != no && break
18418 done
18419
18420 fi
18421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
18422 printf "%s\n" "$ac_cv_c_restrict" >&6; }
18423
18424 case $ac_cv_c_restrict in
18425 restrict) ;;
18426 no) printf "%s\n" "#define restrict /**/" >>confdefs.h
18427 ;;
18428 *) printf "%s\n" "#define restrict $ac_cv_c_restrict" >>confdefs.h
18429 ;;
18430 esac
18431
18432
18433
18434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
18435 printf %s "checking whether the preprocessor supports include_next... " >&6; }
18436 if test ${gl_cv_have_include_next+y}
18437 then :
18438 printf %s "(cached) " >&6
18439 else $as_nop
18440 rm -rf conftestd1a conftestd1b conftestd2
18441 mkdir conftestd1a conftestd1b conftestd2
18442 cat <<EOF > conftestd1a/conftest.h
18443 #define DEFINED_IN_CONFTESTD1
18444 #include_next <conftest.h>
18445 #ifdef DEFINED_IN_CONFTESTD2
18446 int foo;
18447 #else
18448 #error "include_next doesn't work"
18449 #endif
18450 EOF
18451 cat <<EOF > conftestd1b/conftest.h
18452 #define DEFINED_IN_CONFTESTD1
18453 #include <stdio.h>
18454 #include_next <conftest.h>
18455 #ifdef DEFINED_IN_CONFTESTD2
18456 int foo;
18457 #else
18458 #error "include_next doesn't work"
18459 #endif
18460 EOF
18461 cat <<EOF > conftestd2/conftest.h
18462 #ifndef DEFINED_IN_CONFTESTD1
18463 #error "include_next test doesn't work"
18464 #endif
18465 #define DEFINED_IN_CONFTESTD2
18466 EOF
18467 gl_save_CPPFLAGS="$CPPFLAGS"
18468 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
18469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18470 /* end confdefs.h. */
18471 #include <conftest.h>
18472 _ACEOF
18473 if ac_fn_c_try_compile "$LINENO"
18474 then :
18475 gl_cv_have_include_next=yes
18476 else $as_nop
18477 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
18478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18479 /* end confdefs.h. */
18480 #include <conftest.h>
18481 _ACEOF
18482 if ac_fn_c_try_compile "$LINENO"
18483 then :
18484 gl_cv_have_include_next=buggy
18485 else $as_nop
18486 gl_cv_have_include_next=no
18487 fi
18488 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18489
18490 fi
18491 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18492 CPPFLAGS="$gl_save_CPPFLAGS"
18493 rm -rf conftestd1a conftestd1b conftestd2
18494
18495 fi
18496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
18497 printf "%s\n" "$gl_cv_have_include_next" >&6; }
18498 PRAGMA_SYSTEM_HEADER=
18499 if test $gl_cv_have_include_next = yes; then
18500 INCLUDE_NEXT=include_next
18501 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
18502 if test -n "$GCC"; then
18503 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
18504 fi
18505 else
18506 if test $gl_cv_have_include_next = buggy; then
18507 INCLUDE_NEXT=include
18508 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
18509 else
18510 INCLUDE_NEXT=include
18511 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
18512 fi
18513 fi
18514
18515
18516
18517
18518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether source code line length is unlimited" >&5
18519 printf %s "checking whether source code line length is unlimited... " >&6; }
18520 if test ${gl_cv_source_line_length_unlimited+y}
18521 then :
18522 printf %s "(cached) " >&6
18523 else $as_nop
18524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18525 /* end confdefs.h. */
18526
18527 #ifdef __TANDEM
18528 choke me
18529 #endif
18530
18531 _ACEOF
18532 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18533 $EGREP "choke me" >/dev/null 2>&1
18534 then :
18535 gl_cv_source_line_length_unlimited=no
18536 else $as_nop
18537 gl_cv_source_line_length_unlimited=yes
18538 fi
18539 rm -rf conftest*
18540
18541
18542 fi
18543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_source_line_length_unlimited" >&5
18544 printf "%s\n" "$gl_cv_source_line_length_unlimited" >&6; }
18545 if test $gl_cv_source_line_length_unlimited = no; then
18546 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
18547 else
18548 PRAGMA_COLUMNS=
18549 fi
18550
18551
18552
18553 HAVE_BTOWC=1;
18554 HAVE_MBSINIT=1;
18555 HAVE_MBRTOWC=1;
18556 HAVE_MBRLEN=1;
18557 HAVE_MBSRTOWCS=1;
18558 HAVE_MBSNRTOWCS=1;
18559 HAVE_WCRTOMB=1;
18560 HAVE_WCSRTOMBS=1;
18561 HAVE_WCSNRTOMBS=1;
18562 HAVE_WMEMCHR=1;
18563 HAVE_WMEMCMP=1;
18564 HAVE_WMEMCPY=1;
18565 HAVE_WMEMMOVE=1;
18566 HAVE_WMEMPCPY=1;
18567 HAVE_WMEMSET=1;
18568 HAVE_WCSLEN=1;
18569 HAVE_WCSNLEN=1;
18570 HAVE_WCSCPY=1;
18571 HAVE_WCPCPY=1;
18572 HAVE_WCSNCPY=1;
18573 HAVE_WCPNCPY=1;
18574 HAVE_WCSCAT=1;
18575 HAVE_WCSNCAT=1;
18576 HAVE_WCSCMP=1;
18577 HAVE_WCSNCMP=1;
18578 HAVE_WCSCASECMP=1;
18579 HAVE_WCSNCASECMP=1;
18580 HAVE_WCSCOLL=1;
18581 HAVE_WCSXFRM=1;
18582 HAVE_WCSDUP=1;
18583 HAVE_WCSCHR=1;
18584 HAVE_WCSRCHR=1;
18585 HAVE_WCSCSPN=1;
18586 HAVE_WCSSPN=1;
18587 HAVE_WCSPBRK=1;
18588 HAVE_WCSSTR=1;
18589 HAVE_WCSTOK=1;
18590 HAVE_WCSWIDTH=1;
18591 HAVE_WCSFTIME=1;
18592 HAVE_DECL_WCTOB=1;
18593 HAVE_DECL_WCSDUP=1;
18594 HAVE_DECL_WCWIDTH=1;
18595 REPLACE_MBSTATE_T=0;
18596 REPLACE_BTOWC=0;
18597 REPLACE_WCTOB=0;
18598 REPLACE_MBSINIT=0;
18599 REPLACE_MBRTOWC=0;
18600 REPLACE_MBRLEN=0;
18601 REPLACE_MBSRTOWCS=0;
18602 REPLACE_MBSNRTOWCS=0;
18603 REPLACE_WCRTOMB=0;
18604 REPLACE_WCSRTOMBS=0;
18605 REPLACE_WCSNRTOMBS=0;
18606 REPLACE_WCWIDTH=0;
18607 REPLACE_WCSWIDTH=0;
18608 REPLACE_WCSFTIME=0;
18609 REPLACE_WCSTOK=0;
18610
18611
18612
18613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
18614 printf %s "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
18615 if test ${gl_cv_header_wchar_h_correct_inline+y}
18616 then :
18617 printf %s "(cached) " >&6
18618 else $as_nop
18619 gl_cv_header_wchar_h_correct_inline=yes
18620 case "$host_os" in
18621 *-gnu* | gnu*)
18622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18623 /* end confdefs.h. */
18624
18625
18626 #define wcstod renamed_wcstod
18627 #include <wchar.h>
18628 extern int zero (void);
18629 int main () { return zero(); }
18630
18631 _ACEOF
18632 save_ac_compile="$ac_compile"
18633 ac_compile=`echo "$save_ac_compile" | sed s/conftest/conftest1/`
18634 if echo '#include "conftest.c"' >conftest1.c \
18635 && { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18636 (eval $ac_compile) 2>&5
18637 ac_status=$?
18638 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18639 test $ac_status = 0; }; then
18640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18641 /* end confdefs.h. */
18642
18643
18644 #define wcstod renamed_wcstod
18645 #include <wchar.h>
18646 int zero (void) { return 0; }
18647
18648 _ACEOF
18649 ac_compile=`echo "$save_ac_compile" | sed s/conftest/conftest2/`
18650 if echo '#include "conftest.c"' >conftest2.c \
18651 && { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18652 (eval $ac_compile) 2>&5
18653 ac_status=$?
18654 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18655 test $ac_status = 0; }; then
18656 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
18657 :
18658 else
18659 gl_cv_header_wchar_h_correct_inline=no
18660 fi
18661 fi
18662 fi
18663 ac_compile="$save_ac_compile"
18664 rm -f conftest12.c conftest12.$ac_objext conftest$ac_exeext
18665 ;;
18666 esac
18667
18668 fi
18669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
18670 printf "%s\n" "$gl_cv_header_wchar_h_correct_inline" >&6; }
18671 if test $gl_cv_header_wchar_h_correct_inline = no; then
18672 as_fn_error $? "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
18673 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
18674 C99 mode. You have four options:
18675 - Add the flag -fgnu89-inline to CC and reconfigure, or
18676 - Fix your include files, using parts of
18677 <https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
18678 - Use a gcc version older than 4.3, or
18679 - Don't use the flags -std=c99 or -std=gnu99.
18680 Configuration aborted." "$LINENO" 5
18681 fi
18682
18683 ac_func=
18684 for ac_item in $ac_func_c_list
18685 do
18686 if test $ac_func; then
18687 ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
18688 if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
18689 echo "#define $ac_item 1" >> confdefs.h
18690 fi
18691 ac_func=
18692 else
18693 ac_func=$ac_item
18694 fi
18695 done
18696
18697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
18698 printf %s "checking for nl_langinfo and CODESET... " >&6; }
18699 if test ${am_cv_langinfo_codeset+y}
18700 then :
18701 printf %s "(cached) " >&6
18702 else $as_nop
18703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18704 /* end confdefs.h. */
18705 #include <langinfo.h>
18706 int
18707 main (void)
18708 {
18709 char* cs = nl_langinfo(CODESET); return !cs;
18710 ;
18711 return 0;
18712 }
18713 _ACEOF
18714 if ac_fn_c_try_link "$LINENO"
18715 then :
18716 am_cv_langinfo_codeset=yes
18717 else $as_nop
18718 am_cv_langinfo_codeset=no
18719 fi
18720 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18721 conftest$ac_exeext conftest.$ac_ext
18722
18723 fi
18724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
18725 printf "%s\n" "$am_cv_langinfo_codeset" >&6; }
18726 if test $am_cv_langinfo_codeset = yes; then
18727
18728 printf "%s\n" "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
18729
18730 fi
18731
18732
18733
18734
18735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
18736 printf %s "checking for a traditional french locale... " >&6; }
18737 if test ${gt_cv_locale_fr+y}
18738 then :
18739 printf %s "(cached) " >&6
18740 else $as_nop
18741
18742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18743 /* end confdefs.h. */
18744
18745 #include <locale.h>
18746 #include <time.h>
18747 #if HAVE_LANGINFO_CODESET
18748 # include <langinfo.h>
18749 #endif
18750 #include <stdlib.h>
18751 #include <string.h>
18752 struct tm t;
18753 char buf[16];
18754 int main () {
18755 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
18756 imitates locale dependent behaviour by looking at the environment
18757 variables, and all locales use the UTF-8 encoding. */
18758 #if defined __BEOS__ || defined __HAIKU__
18759 return 1;
18760 #else
18761 /* Check whether the given locale name is recognized by the system. */
18762 # if defined _WIN32 && !defined __CYGWIN__
18763 /* On native Windows, setlocale(category, "") looks at the system settings,
18764 not at the environment variables. Also, when an encoding suffix such
18765 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
18766 category of the locale to "C". */
18767 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
18768 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
18769 return 1;
18770 # else
18771 if (setlocale (LC_ALL, "") == NULL) return 1;
18772 # endif
18773 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
18774 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
18775 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
18776 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
18777 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
18778 some unit tests fail.
18779 On MirBSD 10, when an unsupported locale is specified, setlocale()
18780 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
18781 # if HAVE_LANGINFO_CODESET
18782 {
18783 const char *cs = nl_langinfo (CODESET);
18784 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
18785 || strcmp (cs, "UTF-8") == 0)
18786 return 1;
18787 }
18788 # endif
18789 # ifdef __CYGWIN__
18790 /* On Cygwin, avoid locale names without encoding suffix, because the
18791 locale_charset() function relies on the encoding suffix. Note that
18792 LC_ALL is set on the command line. */
18793 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
18794 # endif
18795 /* Check whether in the abbreviation of the second month, the second
18796 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
18797 one byte long. This excludes the UTF-8 encoding. */
18798 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
18799 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
18800 # if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
18801 /* Check whether the decimal separator is a comma.
18802 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
18803 are nl_langinfo(RADIXCHAR) are both ".". */
18804 if (localeconv () ->decimal_point[0] != ',') return 1;
18805 # endif
18806 return 0;
18807 #endif
18808 }
18809
18810 _ACEOF
18811 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18812 (eval $ac_link) 2>&5
18813 ac_status=$?
18814 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18815 test $ac_status = 0; } && test -s conftest$ac_exeext; then
18816 case "$host_os" in
18817 # Handle native Windows specially, because there setlocale() interprets
18818 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
18819 # "fr" or "fra" as "French" or "French_France.1252",
18820 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
18821 # "ja" as "Japanese" or "Japanese_Japan.932",
18822 # and similar.
18823 mingw*)
18824 # Test for the native Windows locale name.
18825 if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
18826 gt_cv_locale_fr=French_France.1252
18827 else
18828 # None found.
18829 gt_cv_locale_fr=none
18830 fi
18831 ;;
18832 *)
18833 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
18834 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
18835 # configure script would override the LC_ALL setting. Likewise for
18836 # LC_CTYPE, which is also set at the beginning of the configure script.
18837 # Test for the usual locale name.
18838 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
18839 gt_cv_locale_fr=fr_FR
18840 else
18841 # Test for the locale name with explicit encoding suffix.
18842 if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
18843 gt_cv_locale_fr=fr_FR.ISO-8859-1
18844 else
18845 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
18846 if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
18847 gt_cv_locale_fr=fr_FR.ISO8859-1
18848 else
18849 # Test for the HP-UX locale name.
18850 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
18851 gt_cv_locale_fr=fr_FR.iso88591
18852 else
18853 # Test for the Solaris 7 locale name.
18854 if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
18855 gt_cv_locale_fr=fr
18856 else
18857 # None found.
18858 gt_cv_locale_fr=none
18859 fi
18860 fi
18861 fi
18862 fi
18863 fi
18864 ;;
18865 esac
18866 fi
18867 rm -fr conftest*
18868
18869 fi
18870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
18871 printf "%s\n" "$gt_cv_locale_fr" >&6; }
18872 LOCALE_FR=$gt_cv_locale_fr
18873
18874
18875
18876
18877 GL_GNULIB_BTOWC=0
18878
18879
18880
18881 GL_GNULIB_WCTOB=0
18882
18883
18884
18885 GL_GNULIB_MBSINIT=0
18886
18887
18888
18889 GL_GNULIB_MBRTOWC=0
18890
18891
18892
18893 GL_GNULIB_MBRLEN=0
18894
18895
18896
18897 GL_GNULIB_MBSRTOWCS=0
18898
18899
18900
18901 GL_GNULIB_MBSNRTOWCS=0
18902
18903
18904
18905 GL_GNULIB_WCRTOMB=0
18906
18907
18908
18909 GL_GNULIB_WCSRTOMBS=0
18910
18911
18912
18913 GL_GNULIB_WCSNRTOMBS=0
18914
18915
18916
18917 GL_GNULIB_WCWIDTH=0
18918
18919
18920
18921 GL_GNULIB_WMEMCHR=0
18922
18923
18924
18925 GL_GNULIB_WMEMCMP=0
18926
18927
18928
18929 GL_GNULIB_WMEMCPY=0
18930
18931
18932
18933 GL_GNULIB_WMEMMOVE=0
18934
18935
18936
18937 GL_GNULIB_WMEMPCPY=0
18938
18939
18940
18941 GL_GNULIB_WMEMSET=0
18942
18943
18944
18945 GL_GNULIB_WCSLEN=0
18946
18947
18948
18949 GL_GNULIB_WCSNLEN=0
18950
18951
18952
18953 GL_GNULIB_WCSCPY=0
18954
18955
18956
18957 GL_GNULIB_WCPCPY=0
18958
18959
18960
18961 GL_GNULIB_WCSNCPY=0
18962
18963
18964
18965 GL_GNULIB_WCPNCPY=0
18966
18967
18968
18969 GL_GNULIB_WCSCAT=0
18970
18971
18972
18973 GL_GNULIB_WCSNCAT=0
18974
18975
18976
18977 GL_GNULIB_WCSCMP=0
18978
18979
18980
18981 GL_GNULIB_WCSNCMP=0
18982
18983
18984
18985 GL_GNULIB_WCSCASECMP=0
18986
18987
18988
18989 GL_GNULIB_WCSNCASECMP=0
18990
18991
18992
18993 GL_GNULIB_WCSCOLL=0
18994
18995
18996
18997 GL_GNULIB_WCSXFRM=0
18998
18999
19000
19001 GL_GNULIB_WCSDUP=0
19002
19003
19004
19005 GL_GNULIB_WCSCHR=0
19006
19007
19008
19009 GL_GNULIB_WCSRCHR=0
19010
19011
19012
19013 GL_GNULIB_WCSCSPN=0
19014
19015
19016
19017 GL_GNULIB_WCSSPN=0
19018
19019
19020
19021 GL_GNULIB_WCSPBRK=0
19022
19023
19024
19025 GL_GNULIB_WCSSTR=0
19026
19027
19028
19029 GL_GNULIB_WCSTOK=0
19030
19031
19032
19033 GL_GNULIB_WCSWIDTH=0
19034
19035
19036
19037 GL_GNULIB_WCSFTIME=0
19038
19039
19040
19041 GL_GNULIB_MDA_WCSDUP=1
19042
19043
19044
19045
19046
19047 GL_GNULIB__EXIT=0
19048
19049
19050
19051 GL_GNULIB_ALIGNED_ALLOC=0
19052
19053
19054
19055 GL_GNULIB_ATOLL=0
19056
19057
19058
19059 GL_GNULIB_CALLOC_GNU=0
19060
19061
19062
19063 GL_GNULIB_CALLOC_POSIX=0
19064
19065
19066
19067 GL_GNULIB_CANONICALIZE_FILE_NAME=0
19068
19069
19070
19071 GL_GNULIB_FREE_POSIX=0
19072
19073
19074
19075 GL_GNULIB_GETLOADAVG=0
19076
19077
19078
19079 GL_GNULIB_GETSUBOPT=0
19080
19081
19082
19083 GL_GNULIB_GRANTPT=0
19084
19085
19086
19087 GL_GNULIB_MALLOC_GNU=0
19088
19089
19090
19091 GL_GNULIB_MALLOC_POSIX=0
19092
19093
19094
19095 GL_GNULIB_MBTOWC=0
19096
19097
19098
19099 GL_GNULIB_MKDTEMP=0
19100
19101
19102
19103 GL_GNULIB_MKOSTEMP=0
19104
19105
19106
19107 GL_GNULIB_MKOSTEMPS=0
19108
19109
19110
19111 GL_GNULIB_MKSTEMP=0
19112
19113
19114
19115 GL_GNULIB_MKSTEMPS=0
19116
19117
19118
19119 GL_GNULIB_POSIX_MEMALIGN=0
19120
19121
19122
19123 GL_GNULIB_POSIX_OPENPT=0
19124
19125
19126
19127 GL_GNULIB_PTSNAME=0
19128
19129
19130
19131 GL_GNULIB_PTSNAME_R=0
19132
19133
19134
19135 GL_GNULIB_PUTENV=0
19136
19137
19138
19139 GL_GNULIB_QSORT_R=0
19140
19141
19142
19143 GL_GNULIB_RANDOM=0
19144
19145
19146
19147 GL_GNULIB_RANDOM_R=0
19148
19149
19150
19151 GL_GNULIB_REALLOCARRAY=0
19152
19153
19154
19155 GL_GNULIB_REALLOC_GNU=0
19156
19157
19158
19159 GL_GNULIB_REALLOC_POSIX=0
19160
19161
19162
19163 GL_GNULIB_REALPATH=0
19164
19165
19166
19167 GL_GNULIB_RPMATCH=0
19168
19169
19170
19171 GL_GNULIB_SECURE_GETENV=0
19172
19173
19174
19175 GL_GNULIB_SETENV=0
19176
19177
19178
19179 GL_GNULIB_STRTOD=0
19180
19181
19182
19183 GL_GNULIB_STRTOL=0
19184
19185
19186
19187 GL_GNULIB_STRTOLD=0
19188
19189
19190
19191 GL_GNULIB_STRTOLL=0
19192
19193
19194
19195 GL_GNULIB_STRTOUL=0
19196
19197
19198
19199 GL_GNULIB_STRTOULL=0
19200
19201
19202
19203 GL_GNULIB_SYSTEM_POSIX=0
19204
19205
19206
19207 GL_GNULIB_UNLOCKPT=0
19208
19209
19210
19211 GL_GNULIB_UNSETENV=0
19212
19213
19214
19215 GL_GNULIB_WCTOMB=0
19216
19217
19218
19219 GL_GNULIB_MDA_ECVT=1
19220
19221
19222
19223 GL_GNULIB_MDA_FCVT=1
19224
19225
19226
19227 GL_GNULIB_MDA_GCVT=1
19228
19229
19230
19231 GL_GNULIB_MDA_MKTEMP=1
19232
19233
19234
19235 GL_GNULIB_MDA_PUTENV=1
19236
19237
19238
19239
19240 HAVE__EXIT=1;
19241 HAVE_ALIGNED_ALLOC=1;
19242 HAVE_ATOLL=1;
19243 HAVE_CANONICALIZE_FILE_NAME=1;
19244 HAVE_DECL_ECVT=1;
19245 HAVE_DECL_FCVT=1;
19246 HAVE_DECL_GCVT=1;
19247 HAVE_DECL_GETLOADAVG=1;
19248 HAVE_GETSUBOPT=1;
19249 HAVE_GRANTPT=1;
19250 HAVE_INITSTATE=1;
19251 HAVE_DECL_INITSTATE=1;
19252 HAVE_MBTOWC=1;
19253 HAVE_MKDTEMP=1;
19254 HAVE_MKOSTEMP=1;
19255 HAVE_MKOSTEMPS=1;
19256 HAVE_MKSTEMP=1;
19257 HAVE_MKSTEMPS=1;
19258 HAVE_POSIX_MEMALIGN=1;
19259 HAVE_POSIX_OPENPT=1;
19260 HAVE_PTSNAME=1;
19261 HAVE_PTSNAME_R=1;
19262 HAVE_QSORT_R=1;
19263 HAVE_RANDOM=1;
19264 HAVE_RANDOM_H=1;
19265 HAVE_RANDOM_R=1;
19266 HAVE_REALLOCARRAY=1;
19267 HAVE_REALPATH=1;
19268 HAVE_RPMATCH=1;
19269 HAVE_SECURE_GETENV=1;
19270 HAVE_SETENV=1;
19271 HAVE_DECL_SETENV=1;
19272 HAVE_SETSTATE=1;
19273 HAVE_DECL_SETSTATE=1;
19274 HAVE_STRTOD=1;
19275 HAVE_STRTOL=1;
19276 HAVE_STRTOLD=1;
19277 HAVE_STRTOLL=1;
19278 HAVE_STRTOUL=1;
19279 HAVE_STRTOULL=1;
19280 HAVE_STRUCT_RANDOM_DATA=1;
19281 HAVE_SYS_LOADAVG_H=0;
19282 HAVE_UNLOCKPT=1;
19283 HAVE_DECL_UNSETENV=1;
19284 REPLACE_ALIGNED_ALLOC=0;
19285 REPLACE_CALLOC_FOR_CALLOC_GNU=0;
19286 REPLACE_CALLOC_FOR_CALLOC_POSIX=0;
19287 REPLACE_CANONICALIZE_FILE_NAME=0;
19288 REPLACE_FREE=0;
19289 REPLACE_INITSTATE=0;
19290 REPLACE_MALLOC_FOR_MALLOC_GNU=0;
19291 REPLACE_MALLOC_FOR_MALLOC_POSIX=0;
19292 REPLACE_MBTOWC=0;
19293 REPLACE_MKSTEMP=0;
19294 REPLACE_POSIX_MEMALIGN=0;
19295 REPLACE_PTSNAME=0;
19296 REPLACE_PTSNAME_R=0;
19297 REPLACE_PUTENV=0;
19298 REPLACE_QSORT_R=0;
19299 REPLACE_RANDOM=0;
19300 REPLACE_RANDOM_R=0;
19301 REPLACE_REALLOC_FOR_REALLOC_GNU=0;
19302 REPLACE_REALLOC_FOR_REALLOC_POSIX=0;
19303 REPLACE_REALLOCARRAY=0;
19304 REPLACE_REALPATH=0;
19305 REPLACE_SETENV=0;
19306 REPLACE_SETSTATE=0;
19307 REPLACE_STRTOD=0;
19308 REPLACE_STRTOL=0;
19309 REPLACE_STRTOLD=0;
19310 REPLACE_STRTOLL=0;
19311 REPLACE_STRTOUL=0;
19312 REPLACE_STRTOULL=0;
19313 REPLACE_UNSETENV=0;
19314 REPLACE_WCTOMB=0;
19315
19316
19317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether malloc is ptrdiff_t safe" >&5
19318 printf %s "checking whether malloc is ptrdiff_t safe... " >&6; }
19319 if test ${gl_cv_malloc_ptrdiff+y}
19320 then :
19321 printf %s "(cached) " >&6
19322 else $as_nop
19323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19324 /* end confdefs.h. */
19325 #include <stdint.h>
19326
19327 int
19328 main (void)
19329 {
19330 /* 64-bit ptrdiff_t is so wide that no practical platform
19331 can exceed it. */
19332 #define WIDE_PTRDIFF (PTRDIFF_MAX >> 31 >> 31 != 0)
19333
19334 /* On rare machines where size_t fits in ptrdiff_t there
19335 is no problem. */
19336 #define NARROW_SIZE (SIZE_MAX <= PTRDIFF_MAX)
19337
19338 /* glibc 2.30 and later malloc refuses to exceed ptrdiff_t
19339 bounds even on 32-bit platforms. We don't know which
19340 non-glibc systems are safe. */
19341 #define KNOWN_SAFE (2 < __GLIBC__ + (30 <= __GLIBC_MINOR__))
19342
19343 #if WIDE_PTRDIFF || NARROW_SIZE || KNOWN_SAFE
19344 return 0;
19345 #else
19346 #error "malloc might not be ptrdiff_t safe"
19347 syntax error
19348 #endif
19349
19350 ;
19351 return 0;
19352 }
19353 _ACEOF
19354 if ac_fn_c_try_compile "$LINENO"
19355 then :
19356 gl_cv_malloc_ptrdiff=yes
19357 else $as_nop
19358 gl_cv_malloc_ptrdiff=no
19359 fi
19360 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19361
19362 fi
19363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_malloc_ptrdiff" >&5
19364 printf "%s\n" "$gl_cv_malloc_ptrdiff" >&6; }
19365
19366
19367
19368
19369 test "$gl_cv_malloc_ptrdiff" = yes || REPLACE_MALLOC_FOR_MALLOC_POSIX=1
19370
19371
19372
19373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc set errno on failure" >&5
19374 printf %s "checking whether malloc, realloc, calloc set errno on failure... " >&6; }
19375 if test ${gl_cv_func_malloc_posix+y}
19376 then :
19377 printf %s "(cached) " >&6
19378 else $as_nop
19379
19380 case "$host_os" in
19381 mingw*)
19382 gl_cv_func_malloc_posix=no ;;
19383 irix* | solaris*)
19384
19385 gl_cv_func_malloc_posix=no ;;
19386 *)
19387 gl_cv_func_malloc_posix=yes ;;
19388 esac
19389
19390 fi
19391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
19392 printf "%s\n" "$gl_cv_func_malloc_posix" >&6; }
19393
19394
19395
19396
19397
19398 if test "$gl_cv_func_malloc_posix" = yes; then
19399
19400 printf "%s\n" "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
19401
19402 else
19403 REPLACE_MALLOC_FOR_MALLOC_POSIX=1
19404 fi
19405
19406
19407
19408
19409 if test $REPLACE_MALLOC_FOR_MALLOC_POSIX = 1; then
19410 REPLACE_CALLOC_FOR_CALLOC_POSIX=1
19411 fi
19412
19413
19414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
19415 printf %s "checking whether lstat correctly handles trailing slash... " >&6; }
19416 if test ${gl_cv_func_lstat_dereferences_slashed_symlink+y}
19417 then :
19418 printf %s "(cached) " >&6
19419 else $as_nop
19420 rm -f conftest.sym conftest.file
19421 echo >conftest.file
19422 if test "$cross_compiling" = yes
19423 then :
19424 case "$host_os" in
19425 linux-* | linux)
19426 # Guess yes on Linux systems.
19427 gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
19428 *-gnu* | gnu*)
19429 # Guess yes on glibc systems.
19430 gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
19431 mingw*)
19432 # Guess no on native Windows.
19433 gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
19434 *)
19435 # If we don't know, obey --enable-cross-guesses.
19436 gl_cv_func_lstat_dereferences_slashed_symlink="$gl_cross_guess_normal" ;;
19437 esac
19438
19439 else $as_nop
19440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19441 /* end confdefs.h. */
19442 $ac_includes_default
19443 int
19444 main (void)
19445 {
19446 struct stat sbuf;
19447 if (symlink ("conftest.file", "conftest.sym") != 0)
19448 return 1;
19449 /* Linux will dereference the symlink and fail, as required by
19450 POSIX. That is better in the sense that it means we will not
19451 have to compile and use the lstat wrapper. */
19452 return lstat ("conftest.sym/", &sbuf) == 0;
19453
19454 ;
19455 return 0;
19456 }
19457 _ACEOF
19458 if ac_fn_c_try_run "$LINENO"
19459 then :
19460 gl_cv_func_lstat_dereferences_slashed_symlink=yes
19461 else $as_nop
19462 gl_cv_func_lstat_dereferences_slashed_symlink=no
19463 fi
19464 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19465 conftest.$ac_objext conftest.beam conftest.$ac_ext
19466 fi
19467
19468 rm -f conftest.sym conftest.file
19469
19470 fi
19471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
19472 printf "%s\n" "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
19473 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
19474 *yes)
19475
19476 printf "%s\n" "#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1" >>confdefs.h
19477
19478 ;;
19479 esac
19480
19481
19482
19483
19484
19485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
19486 printf %s "checking whether // is distinct from /... " >&6; }
19487 if test ${gl_cv_double_slash_root+y}
19488 then :
19489 printf %s "(cached) " >&6
19490 else $as_nop
19491 if test x"$cross_compiling" = xyes ; then
19492 # When cross-compiling, there is no way to tell whether // is special
19493 # short of a list of hosts. However, the only known hosts to date
19494 # that have a distinct // are Apollo DomainOS (too old to port to),
19495 # Cygwin, and z/OS. If anyone knows of another system for which // has
19496 # special semantics and is distinct from /, please report it to
19497 # <[email protected]>.
19498 case $host in
19499 *-cygwin | i370-ibm-openedition)
19500 gl_cv_double_slash_root=yes ;;
19501 *)
19502 # Be optimistic and assume that / and // are the same when we
19503 # don't know.
19504 gl_cv_double_slash_root='unknown, assuming no' ;;
19505 esac
19506 else
19507 set x `ls -di / // 2>/dev/null`
19508 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
19509 gl_cv_double_slash_root=no
19510 else
19511 gl_cv_double_slash_root=yes
19512 fi
19513 fi
19514 fi
19515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
19516 printf "%s\n" "$gl_cv_double_slash_root" >&6; }
19517 if test "$gl_cv_double_slash_root" = yes; then
19518
19519 printf "%s\n" "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
19520
19521 fi
19522
19523
19524
19525
19526
19527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether realpath works" >&5
19528 printf %s "checking whether realpath works... " >&6; }
19529 if test ${gl_cv_func_realpath_works+y}
19530 then :
19531 printf %s "(cached) " >&6
19532 else $as_nop
19533
19534 rm -rf conftest.a conftest.d
19535 touch conftest.a
19536 # Assume that if we have lstat, we can also check symlinks.
19537 if test $ac_cv_func_lstat = yes; then
19538 ln -s conftest.a conftest.l
19539 fi
19540 mkdir conftest.d
19541 if test "$cross_compiling" = yes
19542 then :
19543 case "$host_os" in
19544 # Guess yes on glibc systems.
19545 *-gnu* | gnu*) gl_cv_func_realpath_works="guessing yes" ;;
19546 # Guess 'nearly' on musl systems.
19547 *-musl*) gl_cv_func_realpath_works="guessing nearly" ;;
19548 # Guess no on Cygwin.
19549 cygwin*) gl_cv_func_realpath_works="guessing no" ;;
19550 # Guess no on native Windows.
19551 mingw*) gl_cv_func_realpath_works="guessing no" ;;
19552 # If we don't know, obey --enable-cross-guesses.
19553 *) gl_cv_func_realpath_works="$gl_cross_guess_normal" ;;
19554 esac
19555
19556 else $as_nop
19557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19558 /* end confdefs.h. */
19559
19560
19561
19562 #include <stdlib.h>
19563 #if defined __MACH__ && defined __APPLE__
19564 /* Avoid a crash on Mac OS X. */
19565 #include <mach/mach.h>
19566 #include <mach/mach_error.h>
19567 #include <mach/thread_status.h>
19568 #include <mach/exception.h>
19569 #include <mach/task.h>
19570 #include <pthread.h>
19571 /* The exception port on which our thread listens. */
19572 static mach_port_t our_exception_port;
19573 /* The main function of the thread listening for exceptions of type
19574 EXC_BAD_ACCESS. */
19575 static void *
19576 mach_exception_thread (void *arg)
19577 {
19578 /* Buffer for a message to be received. */
19579 struct {
19580 mach_msg_header_t head;
19581 mach_msg_body_t msgh_body;
19582 char data[1024];
19583 } msg;
19584 mach_msg_return_t retval;
19585 /* Wait for a message on the exception port. */
19586 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
19587 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
19588 if (retval != MACH_MSG_SUCCESS)
19589 abort ();
19590 exit (1);
19591 }
19592 static void
19593 nocrash_init (void)
19594 {
19595 mach_port_t self = mach_task_self ();
19596 /* Allocate a port on which the thread shall listen for exceptions. */
19597 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
19598 == KERN_SUCCESS) {
19599 /* See https://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
19600 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
19601 MACH_MSG_TYPE_MAKE_SEND)
19602 == KERN_SUCCESS) {
19603 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
19604 for us. */
19605 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
19606 /* Create the thread listening on the exception port. */
19607 pthread_attr_t attr;
19608 pthread_t thread;
19609 if (pthread_attr_init (&attr) == 0
19610 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
19611 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
19612 pthread_attr_destroy (&attr);
19613 /* Replace the exception port info for these exceptions with our own.
19614 Note that we replace the exception port for the entire task, not only
19615 for a particular thread. This has the effect that when our exception
19616 port gets the message, the thread specific exception port has already
19617 been asked, and we don't need to bother about it.
19618 See https://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
19619 task_set_exception_ports (self, mask, our_exception_port,
19620 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
19621 }
19622 }
19623 }
19624 }
19625 #elif defined _WIN32 && ! defined __CYGWIN__
19626 /* Avoid a crash on native Windows. */
19627 #define WIN32_LEAN_AND_MEAN
19628 #include <windows.h>
19629 #include <winerror.h>
19630 static LONG WINAPI
19631 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
19632 {
19633 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
19634 {
19635 case EXCEPTION_ACCESS_VIOLATION:
19636 case EXCEPTION_IN_PAGE_ERROR:
19637 case EXCEPTION_STACK_OVERFLOW:
19638 case EXCEPTION_GUARD_PAGE:
19639 case EXCEPTION_PRIV_INSTRUCTION:
19640 case EXCEPTION_ILLEGAL_INSTRUCTION:
19641 case EXCEPTION_DATATYPE_MISALIGNMENT:
19642 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
19643 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
19644 exit (1);
19645 }
19646 return EXCEPTION_CONTINUE_SEARCH;
19647 }
19648 static void
19649 nocrash_init (void)
19650 {
19651 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
19652 }
19653 #else
19654 /* Avoid a crash on POSIX systems. */
19655 #include <signal.h>
19656 #include <unistd.h>
19657 /* A POSIX signal handler. */
19658 static void
19659 exception_handler (int sig)
19660 {
19661 _exit (1);
19662 }
19663 static void
19664 nocrash_init (void)
19665 {
19666 #ifdef SIGSEGV
19667 signal (SIGSEGV, exception_handler);
19668 #endif
19669 #ifdef SIGBUS
19670 signal (SIGBUS, exception_handler);
19671 #endif
19672 }
19673 #endif
19674
19675 #include <errno.h>
19676 #include <stdlib.h>
19677 #include <string.h>
19678
19679 int
19680 main (void)
19681 {
19682
19683 int result = 0;
19684 /* This test fails on Solaris 10. */
19685 {
19686 char *name = realpath ("conftest.a", NULL);
19687 if (!(name && *name == '/'))
19688 result |= 1;
19689 free (name);
19690 }
19691 /* This test fails on older versions of Cygwin. */
19692 {
19693 char *name = realpath ("conftest.b/../conftest.a", NULL);
19694 if (name != NULL)
19695 result |= 2;
19696 free (name);
19697 }
19698 /* This test fails on Cygwin 2.9. */
19699 #if HAVE_LSTAT
19700 {
19701 char *name = realpath ("conftest.l/../conftest.a", NULL);
19702 if (name != NULL || errno != ENOTDIR)
19703 result |= 4;
19704 free (name);
19705 }
19706 #endif
19707 /* This test fails on Mac OS X 10.13, OpenBSD 6.0. */
19708 {
19709 char *name = realpath ("conftest.a/", NULL);
19710 if (name != NULL)
19711 result |= 8;
19712 free (name);
19713 }
19714 /* This test fails on AIX 7, Solaris 10. */
19715 {
19716 char *name1 = realpath (".", NULL);
19717 char *name2 = realpath ("conftest.d//./..", NULL);
19718 if (! name1 || ! name2 || strcmp (name1, name2))
19719 result |= 16;
19720 free (name1);
19721 free (name2);
19722 }
19723 #ifdef __linux__
19724 /* On Linux, // is the same as /. See also double-slash-root.m4.
19725 realpath() should respect this.
19726 This test fails on musl libc 1.2.2. */
19727 {
19728 char *name = realpath ("//", NULL);
19729 if (! name || strcmp (name, "/"))
19730 result |= 32;
19731 free (name);
19732 }
19733 #endif
19734 return result;
19735
19736 ;
19737 return 0;
19738 }
19739
19740 _ACEOF
19741 if ac_fn_c_try_run "$LINENO"
19742 then :
19743 gl_cv_func_realpath_works=yes
19744 else $as_nop
19745 case $? in
19746 32) gl_cv_func_realpath_works=nearly ;;
19747 *) gl_cv_func_realpath_works=no ;;
19748 esac
19749
19750 fi
19751 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19752 conftest.$ac_objext conftest.beam conftest.$ac_ext
19753 fi
19754
19755 rm -rf conftest.a conftest.l conftest.d
19756
19757 fi
19758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_realpath_works" >&5
19759 printf "%s\n" "$gl_cv_func_realpath_works" >&6; }
19760 case "$gl_cv_func_realpath_works" in
19761 *yes)
19762
19763 printf "%s\n" "#define FUNC_REALPATH_WORKS 1" >>confdefs.h
19764
19765 ;;
19766 *nearly)
19767
19768 printf "%s\n" "#define FUNC_REALPATH_NEARLY_WORKS 1" >>confdefs.h
19769
19770 ;;
19771 esac
19772
19773
19774
19775
19776
19777
19778
19779
19780 case "$host_os" in
19781 mingw*) ;;
19782 *) ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
19783 if test "x$ac_cv_func_getcwd" = xyes
19784 then :
19785 printf "%s\n" "#define HAVE_GETCWD 1" >>confdefs.h
19786
19787 fi
19788 ;;
19789 esac
19790
19791
19792
19793
19794
19795
19796 HAVE_CHOWN=1;
19797 HAVE_COPY_FILE_RANGE=1;
19798 HAVE_DUP3=1;
19799 HAVE_EUIDACCESS=1;
19800 HAVE_EXECVPE=1;
19801 HAVE_FACCESSAT=1;
19802 HAVE_FCHDIR=1;
19803 HAVE_FCHOWNAT=1;
19804 HAVE_FDATASYNC=1;
19805 HAVE_FSYNC=1;
19806 HAVE_FTRUNCATE=1;
19807 HAVE_GETDTABLESIZE=1;
19808 HAVE_GETENTROPY=1;
19809 HAVE_GETGROUPS=1;
19810 HAVE_GETHOSTNAME=1;
19811 HAVE_GETLOGIN=1;
19812 HAVE_GETPAGESIZE=1;
19813 HAVE_GETPASS=1;
19814 HAVE_GROUP_MEMBER=1;
19815 HAVE_LCHOWN=1;
19816 HAVE_LINK=1;
19817 HAVE_LINKAT=1;
19818 HAVE_PIPE=1;
19819 HAVE_PIPE2=1;
19820 HAVE_PREAD=1;
19821 HAVE_PWRITE=1;
19822 HAVE_READLINK=1;
19823 HAVE_READLINKAT=1;
19824 HAVE_SETHOSTNAME=1;
19825 HAVE_SLEEP=1;
19826 HAVE_SYMLINK=1;
19827 HAVE_SYMLINKAT=1;
19828 HAVE_UNLINKAT=1;
19829 HAVE_USLEEP=1;
19830 HAVE_DECL_ENVIRON=1;
19831 HAVE_DECL_EXECVPE=1;
19832 HAVE_DECL_FCHDIR=1;
19833 HAVE_DECL_FDATASYNC=1;
19834 HAVE_DECL_GETDOMAINNAME=1;
19835 HAVE_DECL_GETLOGIN=1;
19836 HAVE_DECL_GETLOGIN_R=1;
19837 HAVE_DECL_GETPAGESIZE=1;
19838 HAVE_DECL_GETUSERSHELL=1;
19839 HAVE_DECL_SETHOSTNAME=1;
19840 HAVE_DECL_TRUNCATE=1;
19841 HAVE_DECL_TTYNAME_R=1;
19842 HAVE_OS_H=0;
19843 HAVE_SYS_PARAM_H=0;
19844 REPLACE_ACCESS=0;
19845 REPLACE_CHOWN=0;
19846 REPLACE_CLOSE=0;
19847 REPLACE_COPY_FILE_RANGE=0;
19848 REPLACE_DUP=0;
19849 REPLACE_DUP2=0;
19850 REPLACE_EXECL=0;
19851 REPLACE_EXECLE=0;
19852 REPLACE_EXECLP=0;
19853 REPLACE_EXECV=0;
19854 REPLACE_EXECVE=0;
19855 REPLACE_EXECVP=0;
19856 REPLACE_EXECVPE=0;
19857 REPLACE_FACCESSAT=0;
19858 REPLACE_FCHOWNAT=0;
19859 REPLACE_FTRUNCATE=0;
19860 REPLACE_GETCWD=0;
19861 REPLACE_GETDOMAINNAME=0;
19862 REPLACE_GETDTABLESIZE=0;
19863 REPLACE_GETLOGIN_R=0;
19864 REPLACE_GETGROUPS=0;
19865 REPLACE_GETPAGESIZE=0;
19866 REPLACE_GETPASS=0;
19867 REPLACE_GETPASS_FOR_GETPASS_GNU=0;
19868 REPLACE_ISATTY=0;
19869 REPLACE_LCHOWN=0;
19870 REPLACE_LINK=0;
19871 REPLACE_LINKAT=0;
19872 REPLACE_LSEEK=0;
19873 REPLACE_PREAD=0;
19874 REPLACE_PWRITE=0;
19875 REPLACE_READ=0;
19876 REPLACE_READLINK=0;
19877 REPLACE_READLINKAT=0;
19878 REPLACE_RMDIR=0;
19879 REPLACE_SLEEP=0;
19880 REPLACE_SYMLINK=0;
19881 REPLACE_SYMLINKAT=0;
19882 REPLACE_TRUNCATE=0;
19883 REPLACE_TTYNAME_R=0;
19884 REPLACE_UNLINK=0;
19885 REPLACE_UNLINKAT=0;
19886 REPLACE_USLEEP=0;
19887 REPLACE_WRITE=0;
19888 UNISTD_H_HAVE_SYS_RANDOM_H=0;
19889 UNISTD_H_HAVE_WINSOCK2_H=0;
19890 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
19891
19892
19893
19894
19895
19896 if test $ac_cv_func__set_invalid_parameter_handler = yes; then
19897 HAVE_MSVC_INVALID_PARAMETER_HANDLER=1
19898
19899 printf "%s\n" "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
19900
19901 else
19902 HAVE_MSVC_INVALID_PARAMETER_HANDLER=0
19903 fi
19904
19905
19906
19907 SYS_IOCTL_H_HAVE_WINSOCK2_H=0;
19908 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
19909
19910 REPLACE_IOCTL=0;
19911
19912
19913
19914
19915 GL_GNULIB_ACCESS=0
19916
19917
19918
19919 GL_GNULIB_CHDIR=0
19920
19921
19922
19923 GL_GNULIB_CHOWN=0
19924
19925
19926
19927 GL_GNULIB_CLOSE=0
19928
19929
19930
19931 GL_GNULIB_COPY_FILE_RANGE=0
19932
19933
19934
19935 GL_GNULIB_DUP=0
19936
19937
19938
19939 GL_GNULIB_DUP2=0
19940
19941
19942
19943 GL_GNULIB_DUP3=0
19944
19945
19946
19947 GL_GNULIB_ENVIRON=0
19948
19949
19950
19951 GL_GNULIB_EUIDACCESS=0
19952
19953
19954
19955 GL_GNULIB_EXECL=0
19956
19957
19958
19959 GL_GNULIB_EXECLE=0
19960
19961
19962
19963 GL_GNULIB_EXECLP=0
19964
19965
19966
19967 GL_GNULIB_EXECV=0
19968
19969
19970
19971 GL_GNULIB_EXECVE=0
19972
19973
19974
19975 GL_GNULIB_EXECVP=0
19976
19977
19978
19979 GL_GNULIB_EXECVPE=0
19980
19981
19982
19983 GL_GNULIB_FACCESSAT=0
19984
19985
19986
19987 GL_GNULIB_FCHDIR=0
19988
19989
19990
19991 GL_GNULIB_FCHOWNAT=0
19992
19993
19994
19995 GL_GNULIB_FDATASYNC=0
19996
19997
19998
19999 GL_GNULIB_FSYNC=0
20000
20001
20002
20003 GL_GNULIB_FTRUNCATE=0
20004
20005
20006
20007 GL_GNULIB_GETCWD=0
20008
20009
20010
20011 GL_GNULIB_GETDOMAINNAME=0
20012
20013
20014
20015 GL_GNULIB_GETDTABLESIZE=0
20016
20017
20018
20019 GL_GNULIB_GETENTROPY=0
20020
20021
20022
20023 GL_GNULIB_GETGROUPS=0
20024
20025
20026
20027 GL_GNULIB_GETHOSTNAME=0
20028
20029
20030
20031 GL_GNULIB_GETLOGIN=0
20032
20033
20034
20035 GL_GNULIB_GETLOGIN_R=0
20036
20037
20038
20039 GL_GNULIB_GETOPT_POSIX=0
20040
20041
20042
20043 GL_GNULIB_GETPAGESIZE=0
20044
20045
20046
20047 GL_GNULIB_GETPASS=0
20048
20049
20050
20051 GL_GNULIB_GETPASS_GNU=0
20052
20053
20054
20055 GL_GNULIB_GETUSERSHELL=0
20056
20057
20058
20059 GL_GNULIB_GROUP_MEMBER=0
20060
20061
20062
20063 GL_GNULIB_ISATTY=0
20064
20065
20066
20067 GL_GNULIB_LCHOWN=0
20068
20069
20070
20071 GL_GNULIB_LINK=0
20072
20073
20074
20075 GL_GNULIB_LINKAT=0
20076
20077
20078
20079 GL_GNULIB_LSEEK=0
20080
20081
20082
20083 GL_GNULIB_PIPE=0
20084
20085
20086
20087 GL_GNULIB_PIPE2=0
20088
20089
20090
20091 GL_GNULIB_PREAD=0
20092
20093
20094
20095 GL_GNULIB_PWRITE=0
20096
20097
20098
20099 GL_GNULIB_READ=0
20100
20101
20102
20103 GL_GNULIB_READLINK=0
20104
20105
20106
20107 GL_GNULIB_READLINKAT=0
20108
20109
20110
20111 GL_GNULIB_RMDIR=0
20112
20113
20114
20115 GL_GNULIB_SETHOSTNAME=0
20116
20117
20118
20119 GL_GNULIB_SLEEP=0
20120
20121
20122
20123 GL_GNULIB_SYMLINK=0
20124
20125
20126
20127 GL_GNULIB_SYMLINKAT=0
20128
20129
20130
20131 GL_GNULIB_TRUNCATE=0
20132
20133
20134
20135 GL_GNULIB_TTYNAME_R=0
20136
20137
20138
20139 GL_GNULIB_UNISTD_H_GETOPT=0
20140
20141
20142
20143 GL_GNULIB_UNISTD_H_NONBLOCKING=0
20144
20145
20146
20147 GL_GNULIB_UNISTD_H_SIGPIPE=0
20148
20149
20150
20151 GL_GNULIB_UNLINK=0
20152
20153
20154
20155 GL_GNULIB_UNLINKAT=0
20156
20157
20158
20159 GL_GNULIB_USLEEP=0
20160
20161
20162
20163 GL_GNULIB_WRITE=0
20164
20165
20166
20167 GL_GNULIB_MDA_ACCESS=1
20168
20169
20170
20171 GL_GNULIB_MDA_CHDIR=1
20172
20173
20174
20175 GL_GNULIB_MDA_CLOSE=1
20176
20177
20178
20179 GL_GNULIB_MDA_DUP=1
20180
20181
20182
20183 GL_GNULIB_MDA_DUP2=1
20184
20185
20186
20187 GL_GNULIB_MDA_EXECL=1
20188
20189
20190
20191 GL_GNULIB_MDA_EXECLE=1
20192
20193
20194
20195 GL_GNULIB_MDA_EXECLP=1
20196
20197
20198
20199 GL_GNULIB_MDA_EXECV=1
20200
20201
20202
20203 GL_GNULIB_MDA_EXECVE=1
20204
20205
20206
20207 GL_GNULIB_MDA_EXECVP=1
20208
20209
20210
20211 GL_GNULIB_MDA_EXECVPE=1
20212
20213
20214
20215 GL_GNULIB_MDA_GETCWD=1
20216
20217
20218
20219 GL_GNULIB_MDA_GETPID=1
20220
20221
20222
20223 GL_GNULIB_MDA_ISATTY=1
20224
20225
20226
20227 GL_GNULIB_MDA_LSEEK=1
20228
20229
20230
20231 GL_GNULIB_MDA_READ=1
20232
20233
20234
20235 GL_GNULIB_MDA_RMDIR=1
20236
20237
20238
20239 GL_GNULIB_MDA_SWAB=1
20240
20241
20242
20243 GL_GNULIB_MDA_UNLINK=1
20244
20245
20246
20247 GL_GNULIB_MDA_WRITE=1
20248
20249
20250
20251
20252 HAVE_ISBLANK=1;
20253
20254
20255
20256
20257
20258
20259
20260
20261
20262
20263
20264
20265 if test $gl_cv_have_include_next = yes; then
20266 gl_cv_next_ctype_h='<'ctype.h'>'
20267 else
20268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <ctype.h>" >&5
20269 printf %s "checking absolute name of <ctype.h>... " >&6; }
20270 if test ${gl_cv_next_ctype_h+y}
20271 then :
20272 printf %s "(cached) " >&6
20273 else $as_nop
20274
20275
20276
20277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20278 /* end confdefs.h. */
20279 #include <ctype.h>
20280 _ACEOF
20281 case "$host_os" in
20282 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20283 *) gl_absname_cpp="$ac_cpp" ;;
20284 esac
20285
20286 case "$host_os" in
20287 mingw*)
20288 gl_dirsep_regex='[/\\]'
20289 ;;
20290 *)
20291 gl_dirsep_regex='\/'
20292 ;;
20293 esac
20294 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20295 gl_header_literal_regex=`echo 'ctype.h' \
20296 | sed -e "$gl_make_literal_regex_sed"`
20297 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20298 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20299 s|^/[^/]|//&|
20300 p
20301 q
20302 }'
20303
20304 gl_cv_absolute_ctype_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20305 sed -n "$gl_absolute_header_sed"`
20306
20307 gl_header=$gl_cv_absolute_ctype_h
20308 gl_cv_next_ctype_h='"'$gl_header'"'
20309
20310
20311 fi
20312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_ctype_h" >&5
20313 printf "%s\n" "$gl_cv_next_ctype_h" >&6; }
20314 fi
20315 NEXT_CTYPE_H=$gl_cv_next_ctype_h
20316
20317 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20318 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20319 gl_next_as_first_directive='<'ctype.h'>'
20320 else
20321 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20322 gl_next_as_first_directive=$gl_cv_next_ctype_h
20323 fi
20324 NEXT_AS_FIRST_DIRECTIVE_CTYPE_H=$gl_next_as_first_directive
20325
20326
20327
20328
20329
20330
20331
20332
20333
20334
20335
20336 GL_GNULIB_ISBLANK=0
20337
20338
20339
20340 gl_mda_defines='
20341 #if defined _WIN32 && !defined __CYGWIN__
20342 #define access _access
20343 #define chdir _chdir
20344 #define chmod _chmod
20345 #define close _close
20346 #define creat _creat
20347 #define dup _dup
20348 #define dup2 _dup2
20349 #define ecvt _ecvt
20350 #define execl _execl
20351 #define execle _execle
20352 #define execlp _execlp
20353 #define execv _execv
20354 #define execve _execve
20355 #define execvp _execvp
20356 #define execvpe _execvpe
20357 #define fcloseall _fcloseall
20358 #define fcvt _fcvt
20359 #define fdopen _fdopen
20360 #define fileno _fileno
20361 #define gcvt _gcvt
20362 #define getcwd _getcwd
20363 #define getpid _getpid
20364 #define getw _getw
20365 #define isatty _isatty
20366 #define j0 _j0
20367 #define j1 _j1
20368 #define jn _jn
20369 #define lfind _lfind
20370 #define lsearch _lsearch
20371 #define lseek _lseek
20372 #define memccpy _memccpy
20373 #define mkdir _mkdir
20374 #define mktemp _mktemp
20375 #define open _open
20376 #define putenv _putenv
20377 #define putw _putw
20378 #define read _read
20379 #define rmdir _rmdir
20380 #define strdup _strdup
20381 #define swab _swab
20382 #define tempnam _tempnam
20383 #define tzset _tzset
20384 #define umask _umask
20385 #define unlink _unlink
20386 #define utime _utime
20387 #define wcsdup _wcsdup
20388 #define write _write
20389 #define y0 _y0
20390 #define y1 _y1
20391 #define yn _yn
20392 #endif
20393 '
20394
20395
20396
20397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
20398 printf %s "checking for complete errno.h... " >&6; }
20399 if test ${gl_cv_header_errno_h_complete+y}
20400 then :
20401 printf %s "(cached) " >&6
20402 else $as_nop
20403
20404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20405 /* end confdefs.h. */
20406
20407 #include <errno.h>
20408 #if !defined ETXTBSY
20409 booboo
20410 #endif
20411 #if !defined ENOMSG
20412 booboo
20413 #endif
20414 #if !defined EIDRM
20415 booboo
20416 #endif
20417 #if !defined ENOLINK
20418 booboo
20419 #endif
20420 #if !defined EPROTO
20421 booboo
20422 #endif
20423 #if !defined EMULTIHOP
20424 booboo
20425 #endif
20426 #if !defined EBADMSG
20427 booboo
20428 #endif
20429 #if !defined EOVERFLOW
20430 booboo
20431 #endif
20432 #if !defined ENOTSUP
20433 booboo
20434 #endif
20435 #if !defined ENETRESET
20436 booboo
20437 #endif
20438 #if !defined ECONNABORTED
20439 booboo
20440 #endif
20441 #if !defined ESTALE
20442 booboo
20443 #endif
20444 #if !defined EDQUOT
20445 booboo
20446 #endif
20447 #if !defined ECANCELED
20448 booboo
20449 #endif
20450 #if !defined EOWNERDEAD
20451 booboo
20452 #endif
20453 #if !defined ENOTRECOVERABLE
20454 booboo
20455 #endif
20456 #if !defined EILSEQ
20457 booboo
20458 #endif
20459
20460 _ACEOF
20461 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20462 $EGREP "booboo" >/dev/null 2>&1
20463 then :
20464 gl_cv_header_errno_h_complete=no
20465 else $as_nop
20466 gl_cv_header_errno_h_complete=yes
20467 fi
20468 rm -rf conftest*
20469
20470
20471 fi
20472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
20473 printf "%s\n" "$gl_cv_header_errno_h_complete" >&6; }
20474 if test $gl_cv_header_errno_h_complete = yes; then
20475 GL_GENERATE_ERRNO_H=false
20476 else
20477
20478
20479
20480
20481
20482
20483
20484
20485 if test $gl_cv_have_include_next = yes; then
20486 gl_cv_next_errno_h='<'errno.h'>'
20487 else
20488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
20489 printf %s "checking absolute name of <errno.h>... " >&6; }
20490 if test ${gl_cv_next_errno_h+y}
20491 then :
20492 printf %s "(cached) " >&6
20493 else $as_nop
20494
20495
20496
20497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20498 /* end confdefs.h. */
20499 #include <errno.h>
20500 _ACEOF
20501 case "$host_os" in
20502 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20503 *) gl_absname_cpp="$ac_cpp" ;;
20504 esac
20505
20506 case "$host_os" in
20507 mingw*)
20508 gl_dirsep_regex='[/\\]'
20509 ;;
20510 *)
20511 gl_dirsep_regex='\/'
20512 ;;
20513 esac
20514 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20515 gl_header_literal_regex=`echo 'errno.h' \
20516 | sed -e "$gl_make_literal_regex_sed"`
20517 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20518 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20519 s|^/[^/]|//&|
20520 p
20521 q
20522 }'
20523
20524 gl_cv_absolute_errno_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20525 sed -n "$gl_absolute_header_sed"`
20526
20527 gl_header=$gl_cv_absolute_errno_h
20528 gl_cv_next_errno_h='"'$gl_header'"'
20529
20530
20531 fi
20532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
20533 printf "%s\n" "$gl_cv_next_errno_h" >&6; }
20534 fi
20535 NEXT_ERRNO_H=$gl_cv_next_errno_h
20536
20537 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20538 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20539 gl_next_as_first_directive='<'errno.h'>'
20540 else
20541 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20542 gl_next_as_first_directive=$gl_cv_next_errno_h
20543 fi
20544 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
20545
20546
20547
20548
20549 GL_GENERATE_ERRNO_H=true
20550 fi
20551
20552 if $GL_GENERATE_ERRNO_H; then
20553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
20554 printf %s "checking for EMULTIHOP value... " >&6; }
20555 if test ${gl_cv_header_errno_h_EMULTIHOP+y}
20556 then :
20557 printf %s "(cached) " >&6
20558 else $as_nop
20559
20560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20561 /* end confdefs.h. */
20562
20563 #include <errno.h>
20564 #ifdef EMULTIHOP
20565 yes
20566 #endif
20567
20568 _ACEOF
20569 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20570 $EGREP "yes" >/dev/null 2>&1
20571 then :
20572 gl_cv_header_errno_h_EMULTIHOP=yes
20573 else $as_nop
20574 gl_cv_header_errno_h_EMULTIHOP=no
20575 fi
20576 rm -rf conftest*
20577
20578 if test $gl_cv_header_errno_h_EMULTIHOP = no; then
20579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20580 /* end confdefs.h. */
20581
20582 #define _XOPEN_SOURCE_EXTENDED 1
20583 #include <errno.h>
20584 #ifdef EMULTIHOP
20585 yes
20586 #endif
20587
20588 _ACEOF
20589 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20590 $EGREP "yes" >/dev/null 2>&1
20591 then :
20592 gl_cv_header_errno_h_EMULTIHOP=hidden
20593 fi
20594 rm -rf conftest*
20595
20596 if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
20597 if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
20598 #define _XOPEN_SOURCE_EXTENDED 1
20599 #include <errno.h>
20600 /* The following two lines are a workaround against an autoconf-2.52 bug. */
20601 #include <stdio.h>
20602 #include <stdlib.h>
20603 "
20604 then :
20605
20606 fi
20607
20608 fi
20609 fi
20610
20611 fi
20612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
20613 printf "%s\n" "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
20614 case $gl_cv_header_errno_h_EMULTIHOP in
20615 yes | no)
20616 EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
20617 ;;
20618 *)
20619 EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
20620 ;;
20621 esac
20622
20623
20624 fi
20625
20626
20627 if $GL_GENERATE_ERRNO_H; then
20628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
20629 printf %s "checking for ENOLINK value... " >&6; }
20630 if test ${gl_cv_header_errno_h_ENOLINK+y}
20631 then :
20632 printf %s "(cached) " >&6
20633 else $as_nop
20634
20635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20636 /* end confdefs.h. */
20637
20638 #include <errno.h>
20639 #ifdef ENOLINK
20640 yes
20641 #endif
20642
20643 _ACEOF
20644 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20645 $EGREP "yes" >/dev/null 2>&1
20646 then :
20647 gl_cv_header_errno_h_ENOLINK=yes
20648 else $as_nop
20649 gl_cv_header_errno_h_ENOLINK=no
20650 fi
20651 rm -rf conftest*
20652
20653 if test $gl_cv_header_errno_h_ENOLINK = no; then
20654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20655 /* end confdefs.h. */
20656
20657 #define _XOPEN_SOURCE_EXTENDED 1
20658 #include <errno.h>
20659 #ifdef ENOLINK
20660 yes
20661 #endif
20662
20663 _ACEOF
20664 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20665 $EGREP "yes" >/dev/null 2>&1
20666 then :
20667 gl_cv_header_errno_h_ENOLINK=hidden
20668 fi
20669 rm -rf conftest*
20670
20671 if test $gl_cv_header_errno_h_ENOLINK = hidden; then
20672 if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
20673 #define _XOPEN_SOURCE_EXTENDED 1
20674 #include <errno.h>
20675 /* The following two lines are a workaround against an autoconf-2.52 bug. */
20676 #include <stdio.h>
20677 #include <stdlib.h>
20678 "
20679 then :
20680
20681 fi
20682
20683 fi
20684 fi
20685
20686 fi
20687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
20688 printf "%s\n" "$gl_cv_header_errno_h_ENOLINK" >&6; }
20689 case $gl_cv_header_errno_h_ENOLINK in
20690 yes | no)
20691 ENOLINK_HIDDEN=0; ENOLINK_VALUE=
20692 ;;
20693 *)
20694 ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
20695 ;;
20696 esac
20697
20698
20699 fi
20700
20701
20702 if $GL_GENERATE_ERRNO_H; then
20703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
20704 printf %s "checking for EOVERFLOW value... " >&6; }
20705 if test ${gl_cv_header_errno_h_EOVERFLOW+y}
20706 then :
20707 printf %s "(cached) " >&6
20708 else $as_nop
20709
20710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20711 /* end confdefs.h. */
20712
20713 #include <errno.h>
20714 #ifdef EOVERFLOW
20715 yes
20716 #endif
20717
20718 _ACEOF
20719 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20720 $EGREP "yes" >/dev/null 2>&1
20721 then :
20722 gl_cv_header_errno_h_EOVERFLOW=yes
20723 else $as_nop
20724 gl_cv_header_errno_h_EOVERFLOW=no
20725 fi
20726 rm -rf conftest*
20727
20728 if test $gl_cv_header_errno_h_EOVERFLOW = no; then
20729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20730 /* end confdefs.h. */
20731
20732 #define _XOPEN_SOURCE_EXTENDED 1
20733 #include <errno.h>
20734 #ifdef EOVERFLOW
20735 yes
20736 #endif
20737
20738 _ACEOF
20739 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20740 $EGREP "yes" >/dev/null 2>&1
20741 then :
20742 gl_cv_header_errno_h_EOVERFLOW=hidden
20743 fi
20744 rm -rf conftest*
20745
20746 if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
20747 if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
20748 #define _XOPEN_SOURCE_EXTENDED 1
20749 #include <errno.h>
20750 /* The following two lines are a workaround against an autoconf-2.52 bug. */
20751 #include <stdio.h>
20752 #include <stdlib.h>
20753 "
20754 then :
20755
20756 fi
20757
20758 fi
20759 fi
20760
20761 fi
20762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
20763 printf "%s\n" "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
20764 case $gl_cv_header_errno_h_EOVERFLOW in
20765 yes | no)
20766 EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
20767 ;;
20768 *)
20769 EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
20770 ;;
20771 esac
20772
20773
20774 fi
20775
20776
20777
20778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ctype.h defines __header_inline" >&5
20779 printf %s "checking whether ctype.h defines __header_inline... " >&6; }
20780 if test ${gl_cv_have___header_inline+y}
20781 then :
20782 printf %s "(cached) " >&6
20783 else $as_nop
20784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20785 /* end confdefs.h. */
20786 #include <ctype.h>
20787 #ifndef __header_inline
20788 #error "<ctype.h> does not define __header_inline"
20789 #endif
20790
20791 _ACEOF
20792 if ac_fn_c_try_cpp "$LINENO"
20793 then :
20794 gl_cv_have___header_inline=yes
20795 else $as_nop
20796 gl_cv_have___header_inline=no
20797 fi
20798 rm -f conftest.err conftest.i conftest.$ac_ext
20799 fi
20800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have___header_inline" >&5
20801 printf "%s\n" "$gl_cv_have___header_inline" >&6; }
20802 if test "$gl_cv_have___header_inline" = yes; then
20803
20804 printf "%s\n" "#define HAVE___HEADER_INLINE 1" >>confdefs.h
20805
20806 fi
20807
20808
20809
20810
20811 HAVE_FCNTL=1;
20812 HAVE_OPENAT=1;
20813 REPLACE_CREAT=0;
20814 REPLACE_FCNTL=0;
20815 REPLACE_OPEN=0;
20816 REPLACE_OPENAT=0;
20817
20818
20819
20820
20821 GL_GNULIB_CREAT=0
20822
20823
20824
20825 GL_GNULIB_FCNTL=0
20826
20827
20828
20829 GL_GNULIB_NONBLOCKING=0
20830
20831
20832
20833 GL_GNULIB_OPEN=0
20834
20835
20836
20837 GL_GNULIB_OPENAT=0
20838
20839
20840
20841 GL_GNULIB_MDA_CREAT=1
20842
20843
20844
20845 GL_GNULIB_MDA_OPEN=1
20846
20847
20848
20849
20850
20851
20852
20853
20854
20855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
20856 printf %s "checking for working fcntl.h... " >&6; }
20857 if test ${gl_cv_header_working_fcntl_h+y}
20858 then :
20859 printf %s "(cached) " >&6
20860 else $as_nop
20861 if test "$cross_compiling" = yes
20862 then :
20863 case "$host_os" in
20864 # Guess 'no' on native Windows.
20865 mingw*) gl_cv_header_working_fcntl_h='no' ;;
20866 *) gl_cv_header_working_fcntl_h=cross-compiling ;;
20867 esac
20868
20869 else $as_nop
20870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20871 /* end confdefs.h. */
20872 #include <sys/types.h>
20873 #include <sys/stat.h>
20874 #if HAVE_UNISTD_H
20875 # include <unistd.h>
20876 #else /* on Windows with MSVC */
20877 # include <io.h>
20878 # include <stdlib.h>
20879 # defined sleep(n) _sleep ((n) * 1000)
20880 #endif
20881 #include <fcntl.h>
20882
20883
20884 $gl_mda_defines
20885
20886 #ifndef O_NOATIME
20887 #define O_NOATIME 0
20888 #endif
20889 #ifndef O_NOFOLLOW
20890 #define O_NOFOLLOW 0
20891 #endif
20892 static int const constants[] =
20893 {
20894 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
20895 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
20896 };
20897
20898 int
20899 main (void)
20900 {
20901
20902 int result = !constants;
20903 #if HAVE_SYMLINK
20904 {
20905 static char const sym[] = "conftest.sym";
20906 if (symlink ("/dev/null", sym) != 0)
20907 result |= 2;
20908 else
20909 {
20910 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
20911 if (fd >= 0)
20912 {
20913 close (fd);
20914 result |= 4;
20915 }
20916 }
20917 if (unlink (sym) != 0 || symlink (".", sym) != 0)
20918 result |= 2;
20919 else
20920 {
20921 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
20922 if (fd >= 0)
20923 {
20924 close (fd);
20925 result |= 4;
20926 }
20927 }
20928 unlink (sym);
20929 }
20930 #endif
20931 {
20932 static char const file[] = "confdefs.h";
20933 int fd = open (file, O_RDONLY | O_NOATIME);
20934 if (fd < 0)
20935 result |= 8;
20936 else
20937 {
20938 struct stat st0;
20939 if (fstat (fd, &st0) != 0)
20940 result |= 16;
20941 else
20942 {
20943 char c;
20944 sleep (1);
20945 if (read (fd, &c, 1) != 1)
20946 result |= 24;
20947 else
20948 {
20949 if (close (fd) != 0)
20950 result |= 32;
20951 else
20952 {
20953 struct stat st1;
20954 if (stat (file, &st1) != 0)
20955 result |= 40;
20956 else
20957 if (st0.st_atime != st1.st_atime)
20958 result |= 64;
20959 }
20960 }
20961 }
20962 }
20963 }
20964 return result;
20965 ;
20966 return 0;
20967 }
20968 _ACEOF
20969 if ac_fn_c_try_run "$LINENO"
20970 then :
20971 gl_cv_header_working_fcntl_h=yes
20972 else $as_nop
20973 case $? in #(
20974 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
20975 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
20976 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
20977 *) gl_cv_header_working_fcntl_h='no';;
20978 esac
20979 fi
20980 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20981 conftest.$ac_objext conftest.beam conftest.$ac_ext
20982 fi
20983
20984
20985 fi
20986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
20987 printf "%s\n" "$gl_cv_header_working_fcntl_h" >&6; }
20988
20989 case $gl_cv_header_working_fcntl_h in #(
20990 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
20991 *) ac_val=1;;
20992 esac
20993
20994 printf "%s\n" "#define HAVE_WORKING_O_NOATIME $ac_val" >>confdefs.h
20995
20996
20997 case $gl_cv_header_working_fcntl_h in #(
20998 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
20999 *) ac_val=1;;
21000 esac
21001
21002 printf "%s\n" "#define HAVE_WORKING_O_NOFOLLOW $ac_val" >>confdefs.h
21003
21004
21005
21006 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
21007 "
21008 if test "x$ac_cv_type_pid_t" = xyes
21009 then :
21010
21011 else $as_nop
21012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21013 /* end confdefs.h. */
21014
21015 #if defined _WIN64 && !defined __CYGWIN__
21016 LLP64
21017 #endif
21018
21019 int
21020 main (void)
21021 {
21022
21023 ;
21024 return 0;
21025 }
21026
21027 _ACEOF
21028 if ac_fn_c_try_compile "$LINENO"
21029 then :
21030 ac_pid_type='int'
21031 else $as_nop
21032 ac_pid_type='__int64'
21033 fi
21034 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21035
21036 printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h
21037
21038
21039 fi
21040
21041
21042 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
21043 if test "x$ac_cv_type_mode_t" = xyes
21044 then :
21045
21046 else $as_nop
21047
21048 printf "%s\n" "#define mode_t int" >>confdefs.h
21049
21050 fi
21051
21052
21053
21054
21055
21056
21057
21058
21059
21060
21061
21062
21063 if test $gl_cv_have_include_next = yes; then
21064 gl_cv_next_fcntl_h='<'fcntl.h'>'
21065 else
21066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
21067 printf %s "checking absolute name of <fcntl.h>... " >&6; }
21068 if test ${gl_cv_next_fcntl_h+y}
21069 then :
21070 printf %s "(cached) " >&6
21071 else $as_nop
21072
21073
21074
21075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21076 /* end confdefs.h. */
21077 #include <fcntl.h>
21078 _ACEOF
21079 case "$host_os" in
21080 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21081 *) gl_absname_cpp="$ac_cpp" ;;
21082 esac
21083
21084 case "$host_os" in
21085 mingw*)
21086 gl_dirsep_regex='[/\\]'
21087 ;;
21088 *)
21089 gl_dirsep_regex='\/'
21090 ;;
21091 esac
21092 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21093 gl_header_literal_regex=`echo 'fcntl.h' \
21094 | sed -e "$gl_make_literal_regex_sed"`
21095 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21096 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21097 s|^/[^/]|//&|
21098 p
21099 q
21100 }'
21101
21102 gl_cv_absolute_fcntl_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21103 sed -n "$gl_absolute_header_sed"`
21104
21105 gl_header=$gl_cv_absolute_fcntl_h
21106 gl_cv_next_fcntl_h='"'$gl_header'"'
21107
21108
21109 fi
21110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
21111 printf "%s\n" "$gl_cv_next_fcntl_h" >&6; }
21112 fi
21113 NEXT_FCNTL_H=$gl_cv_next_fcntl_h
21114
21115 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21116 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21117 gl_next_as_first_directive='<'fcntl.h'>'
21118 else
21119 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21120 gl_next_as_first_directive=$gl_cv_next_fcntl_h
21121 fi
21122 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H=$gl_next_as_first_directive
21123
21124
21125
21126
21127
21128
21129
21130
21131
21132
21133
21134
21135
21136
21137 HAVE_FNMATCH=1;
21138 REPLACE_FNMATCH=0;
21139
21140
21141
21142
21143
21144
21145
21146
21147
21148
21149
21150
21151
21152
21153
21154 if test $gl_cv_have_include_next = yes; then
21155 gl_cv_next_fnmatch_h='<'fnmatch.h'>'
21156 else
21157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <fnmatch.h>" >&5
21158 printf %s "checking absolute name of <fnmatch.h>... " >&6; }
21159 if test ${gl_cv_next_fnmatch_h+y}
21160 then :
21161 printf %s "(cached) " >&6
21162 else $as_nop
21163
21164 if test $ac_cv_header_fnmatch_h = yes; then
21165
21166
21167
21168
21169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21170 /* end confdefs.h. */
21171 #include <fnmatch.h>
21172 _ACEOF
21173 case "$host_os" in
21174 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21175 *) gl_absname_cpp="$ac_cpp" ;;
21176 esac
21177
21178 case "$host_os" in
21179 mingw*)
21180 gl_dirsep_regex='[/\\]'
21181 ;;
21182 *)
21183 gl_dirsep_regex='\/'
21184 ;;
21185 esac
21186 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21187 gl_header_literal_regex=`echo 'fnmatch.h' \
21188 | sed -e "$gl_make_literal_regex_sed"`
21189 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21190 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21191 s|^/[^/]|//&|
21192 p
21193 q
21194 }'
21195
21196 gl_cv_absolute_fnmatch_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21197 sed -n "$gl_absolute_header_sed"`
21198
21199 gl_header=$gl_cv_absolute_fnmatch_h
21200 gl_cv_next_fnmatch_h='"'$gl_header'"'
21201 else
21202 gl_cv_next_fnmatch_h='<'fnmatch.h'>'
21203 fi
21204
21205
21206 fi
21207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fnmatch_h" >&5
21208 printf "%s\n" "$gl_cv_next_fnmatch_h" >&6; }
21209 fi
21210 NEXT_FNMATCH_H=$gl_cv_next_fnmatch_h
21211
21212 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21213 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21214 gl_next_as_first_directive='<'fnmatch.h'>'
21215 else
21216 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21217 gl_next_as_first_directive=$gl_cv_next_fnmatch_h
21218 fi
21219 NEXT_AS_FIRST_DIRECTIVE_FNMATCH_H=$gl_next_as_first_directive
21220
21221
21222
21223
21224
21225
21226
21227 if test $ac_cv_header_fnmatch_h = yes; then
21228 HAVE_FNMATCH_H=1
21229 else
21230 HAVE_FNMATCH_H=0
21231 fi
21232
21233
21234 GL_GENERATE_FNMATCH_H=false
21235 if false; then
21236 GL_GENERATE_FNMATCH_H=true
21237 else
21238 if test $ac_cv_header_fnmatch_h != yes; then
21239 GL_GENERATE_FNMATCH_H=true
21240 fi
21241 fi
21242
21243
21244
21245
21246
21247
21248
21249
21250
21251 GL_GNULIB_FNMATCH=0
21252
21253
21254
21255
21256
21257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
21258 printf %s "checking for mbstate_t... " >&6; }
21259 if test ${ac_cv_type_mbstate_t+y}
21260 then :
21261 printf %s "(cached) " >&6
21262 else $as_nop
21263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21264 /* end confdefs.h. */
21265 $ac_includes_default
21266 #include <wchar.h>
21267 int
21268 main (void)
21269 {
21270 mbstate_t x; return sizeof x;
21271 ;
21272 return 0;
21273 }
21274 _ACEOF
21275 if ac_fn_c_try_compile "$LINENO"
21276 then :
21277 ac_cv_type_mbstate_t=yes
21278 else $as_nop
21279 ac_cv_type_mbstate_t=no
21280 fi
21281 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21282 fi
21283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
21284 printf "%s\n" "$ac_cv_type_mbstate_t" >&6; }
21285 if test $ac_cv_type_mbstate_t = yes; then
21286
21287 printf "%s\n" "#define HAVE_MBSTATE_T 1" >>confdefs.h
21288
21289 else
21290
21291 printf "%s\n" "#define mbstate_t int" >>confdefs.h
21292
21293 fi
21294
21295
21296
21297 HAVE_FCHMODAT=1;
21298 HAVE_FSTATAT=1;
21299 HAVE_FUTIMENS=1;
21300 HAVE_GETUMASK=1;
21301 HAVE_LCHMOD=1;
21302 HAVE_LSTAT=1;
21303 HAVE_MKDIRAT=1;
21304 HAVE_MKFIFO=1;
21305 HAVE_MKFIFOAT=1;
21306 HAVE_MKNOD=1;
21307 HAVE_MKNODAT=1;
21308 HAVE_UTIMENSAT=1;
21309 REPLACE_CHMOD=0;
21310 REPLACE_FCHMODAT=0;
21311 REPLACE_FSTAT=0;
21312 REPLACE_FSTATAT=0;
21313 REPLACE_FUTIMENS=0;
21314 REPLACE_LSTAT=0;
21315 REPLACE_MKDIR=0;
21316 REPLACE_MKFIFO=0;
21317 REPLACE_MKFIFOAT=0;
21318 REPLACE_MKNOD=0;
21319 REPLACE_MKNODAT=0;
21320 REPLACE_STAT=0;
21321 REPLACE_UTIMENSAT=0;
21322
21323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
21324 printf %s "checking whether stat file-mode macros are broken... " >&6; }
21325 if test ${ac_cv_header_stat_broken+y}
21326 then :
21327 printf %s "(cached) " >&6
21328 else $as_nop
21329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21330 /* end confdefs.h. */
21331 #include <sys/types.h>
21332 #include <sys/stat.h>
21333
21334 #if defined S_ISBLK && defined S_IFDIR
21335 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21336 #endif
21337
21338 #if defined S_ISBLK && defined S_IFCHR
21339 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21340 #endif
21341
21342 #if defined S_ISLNK && defined S_IFREG
21343 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21344 #endif
21345
21346 #if defined S_ISSOCK && defined S_IFREG
21347 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21348 #endif
21349
21350 _ACEOF
21351 if ac_fn_c_try_compile "$LINENO"
21352 then :
21353 ac_cv_header_stat_broken=no
21354 else $as_nop
21355 ac_cv_header_stat_broken=yes
21356 fi
21357 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21358 fi
21359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
21360 printf "%s\n" "$ac_cv_header_stat_broken" >&6; }
21361 if test $ac_cv_header_stat_broken = yes; then
21362
21363 printf "%s\n" "#define STAT_MACROS_BROKEN 1" >>confdefs.h
21364
21365 fi
21366
21367
21368
21369 case "$host_os" in
21370 mingw*)
21371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
21372 printf %s "checking for 64-bit off_t... " >&6; }
21373 if test ${gl_cv_type_off_t_64+y}
21374 then :
21375 printf %s "(cached) " >&6
21376 else $as_nop
21377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21378 /* end confdefs.h. */
21379 #include <sys/types.h>
21380 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
21381
21382 int
21383 main (void)
21384 {
21385
21386 ;
21387 return 0;
21388 }
21389 _ACEOF
21390 if ac_fn_c_try_compile "$LINENO"
21391 then :
21392 gl_cv_type_off_t_64=yes
21393 else $as_nop
21394 gl_cv_type_off_t_64=no
21395 fi
21396 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21397
21398 fi
21399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
21400 printf "%s\n" "$gl_cv_type_off_t_64" >&6; }
21401 if test $gl_cv_type_off_t_64 = no; then
21402 WINDOWS_64_BIT_OFF_T=1
21403 else
21404 WINDOWS_64_BIT_OFF_T=0
21405 fi
21406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit st_size" >&5
21407 printf %s "checking for 64-bit st_size... " >&6; }
21408 if test ${gl_cv_member_st_size_64+y}
21409 then :
21410 printf %s "(cached) " >&6
21411 else $as_nop
21412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21413 /* end confdefs.h. */
21414 #include <sys/types.h>
21415 struct stat buf;
21416 int verify_st_size_size[sizeof (buf.st_size) >= 8 ? 1 : -1];
21417
21418 int
21419 main (void)
21420 {
21421
21422 ;
21423 return 0;
21424 }
21425 _ACEOF
21426 if ac_fn_c_try_compile "$LINENO"
21427 then :
21428 gl_cv_member_st_size_64=yes
21429 else $as_nop
21430 gl_cv_member_st_size_64=no
21431 fi
21432 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21433
21434 fi
21435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_member_st_size_64" >&5
21436 printf "%s\n" "$gl_cv_member_st_size_64" >&6; }
21437 if test $gl_cv_member_st_size_64 = no; then
21438 WINDOWS_64_BIT_ST_SIZE=1
21439 else
21440 WINDOWS_64_BIT_ST_SIZE=0
21441 fi
21442 ;;
21443 *)
21444 WINDOWS_64_BIT_OFF_T=0
21445 WINDOWS_64_BIT_ST_SIZE=0
21446 ;;
21447 esac
21448
21449
21450
21451
21452
21453
21454
21455
21456
21457
21458
21459
21460
21461
21462
21463 if test $gl_cv_have_include_next = yes; then
21464 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
21465 else
21466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
21467 printf %s "checking absolute name of <sys/stat.h>... " >&6; }
21468 if test ${gl_cv_next_sys_stat_h+y}
21469 then :
21470 printf %s "(cached) " >&6
21471 else $as_nop
21472
21473 if test $ac_cv_header_sys_stat_h = yes; then
21474
21475
21476
21477
21478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21479 /* end confdefs.h. */
21480 #include <sys/stat.h>
21481 _ACEOF
21482 case "$host_os" in
21483 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21484 *) gl_absname_cpp="$ac_cpp" ;;
21485 esac
21486
21487 case "$host_os" in
21488 mingw*)
21489 gl_dirsep_regex='[/\\]'
21490 ;;
21491 *)
21492 gl_dirsep_regex='\/'
21493 ;;
21494 esac
21495 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21496 gl_header_literal_regex=`echo 'sys/stat.h' \
21497 | sed -e "$gl_make_literal_regex_sed"`
21498 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21499 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21500 s|^/[^/]|//&|
21501 p
21502 q
21503 }'
21504
21505 gl_cv_absolute_sys_stat_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21506 sed -n "$gl_absolute_header_sed"`
21507
21508 gl_header=$gl_cv_absolute_sys_stat_h
21509 gl_cv_next_sys_stat_h='"'$gl_header'"'
21510 else
21511 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
21512 fi
21513
21514
21515 fi
21516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
21517 printf "%s\n" "$gl_cv_next_sys_stat_h" >&6; }
21518 fi
21519 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
21520
21521 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21522 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21523 gl_next_as_first_directive='<'sys/stat.h'>'
21524 else
21525 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21526 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
21527 fi
21528 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
21529
21530
21531
21532
21533
21534
21535
21536
21537 WINDOWS_STAT_TIMESPEC=0
21538
21539
21540
21541
21542
21543
21544
21545
21546 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
21547 #include <sys/stat.h>
21548 "
21549 if test "x$ac_cv_type_nlink_t" = xyes
21550 then :
21551
21552 else $as_nop
21553
21554 printf "%s\n" "#define nlink_t int" >>confdefs.h
21555
21556 fi
21557
21558
21559
21560
21561
21562
21563
21564
21565
21566
21567 case "$host_os" in
21568 mingw*)
21569 ac_fn_c_check_header_compile "$LINENO" "sdkddkver.h" "ac_cv_header_sdkddkver_h" "$ac_includes_default"
21570 if test "x$ac_cv_header_sdkddkver_h" = xyes
21571 then :
21572 printf "%s\n" "#define HAVE_SDKDDKVER_H 1" >>confdefs.h
21573
21574 fi
21575
21576 ;;
21577 esac
21578
21579
21580
21581
21582
21583
21584
21585 GL_GNULIB_CHMOD=0
21586
21587
21588
21589 GL_GNULIB_FCHMODAT=0
21590
21591
21592
21593 GL_GNULIB_FSTAT=0
21594
21595
21596
21597 GL_GNULIB_FSTATAT=0
21598
21599
21600
21601 GL_GNULIB_FUTIMENS=0
21602
21603
21604
21605 GL_GNULIB_GETUMASK=0
21606
21607
21608
21609 GL_GNULIB_LCHMOD=0
21610
21611
21612
21613 GL_GNULIB_LSTAT=0
21614
21615
21616
21617 GL_GNULIB_MKDIR=0
21618
21619
21620
21621 GL_GNULIB_MKDIRAT=0
21622
21623
21624
21625 GL_GNULIB_MKFIFO=0
21626
21627
21628
21629 GL_GNULIB_MKFIFOAT=0
21630
21631
21632
21633 GL_GNULIB_MKNOD=0
21634
21635
21636
21637 GL_GNULIB_MKNODAT=0
21638
21639
21640
21641 GL_GNULIB_STAT=0
21642
21643
21644
21645 GL_GNULIB_UTIMENSAT=0
21646
21647
21648
21649 GL_GNULIB_OVERRIDES_STRUCT_STAT=0
21650
21651
21652
21653 GL_GNULIB_MDA_CHMOD=1
21654
21655
21656
21657 GL_GNULIB_MDA_MKDIR=1
21658
21659
21660
21661 GL_GNULIB_MDA_UMASK=1
21662
21663
21664
21665
21666 HAVE_DECL_FCLOSEALL=1;
21667 HAVE_DECL_FPURGE=1;
21668 HAVE_DECL_FSEEKO=1;
21669 HAVE_DECL_FTELLO=1;
21670 HAVE_DECL_GETDELIM=1;
21671 HAVE_DECL_GETLINE=1;
21672 HAVE_DECL_OBSTACK_PRINTF=1;
21673 HAVE_DECL_SNPRINTF=1;
21674 HAVE_DECL_VSNPRINTF=1;
21675 HAVE_DPRINTF=1;
21676 HAVE_FSEEKO=1;
21677 HAVE_FTELLO=1;
21678 HAVE_PCLOSE=1;
21679 HAVE_POPEN=1;
21680 HAVE_RENAMEAT=1;
21681 HAVE_VASPRINTF=1;
21682 HAVE_VDPRINTF=1;
21683 REPLACE_DPRINTF=0;
21684 REPLACE_FCLOSE=0;
21685 REPLACE_FDOPEN=0;
21686 REPLACE_FFLUSH=0;
21687 REPLACE_FOPEN=0;
21688 REPLACE_FOPEN_FOR_FOPEN_GNU=0;
21689 REPLACE_FPRINTF=0;
21690 REPLACE_FPURGE=0;
21691 REPLACE_FREOPEN=0;
21692 REPLACE_FSEEK=0;
21693 REPLACE_FSEEKO=0;
21694 REPLACE_FTELL=0;
21695 REPLACE_FTELLO=0;
21696 REPLACE_GETDELIM=0;
21697 REPLACE_GETLINE=0;
21698 REPLACE_OBSTACK_PRINTF=0;
21699 REPLACE_PERROR=0;
21700 REPLACE_POPEN=0;
21701 REPLACE_PRINTF=0;
21702 REPLACE_REMOVE=0;
21703 REPLACE_RENAME=0;
21704 REPLACE_RENAMEAT=0;
21705 REPLACE_SNPRINTF=0;
21706 REPLACE_SPRINTF=0;
21707 REPLACE_STDIO_READ_FUNCS=0;
21708 REPLACE_STDIO_WRITE_FUNCS=0;
21709 REPLACE_TMPFILE=0;
21710 REPLACE_VASPRINTF=0;
21711 REPLACE_VDPRINTF=0;
21712 REPLACE_VFPRINTF=0;
21713 REPLACE_VPRINTF=0;
21714 REPLACE_VSNPRINTF=0;
21715 REPLACE_VSPRINTF=0;
21716
21717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
21718 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
21719 if test ${ac_cv_c_undeclared_builtin_options+y}
21720 then :
21721 printf %s "(cached) " >&6
21722 else $as_nop
21723 ac_save_CFLAGS=$CFLAGS
21724 ac_cv_c_undeclared_builtin_options='cannot detect'
21725 for ac_arg in '' -fno-builtin; do
21726 CFLAGS="$ac_save_CFLAGS $ac_arg"
21727 # This test program should *not* compile successfully.
21728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21729 /* end confdefs.h. */
21730
21731 int
21732 main (void)
21733 {
21734 (void) strchr;
21735 ;
21736 return 0;
21737 }
21738 _ACEOF
21739 if ac_fn_c_try_compile "$LINENO"
21740 then :
21741
21742 else $as_nop
21743 # This test program should compile successfully.
21744 # No library function is consistently available on
21745 # freestanding implementations, so test against a dummy
21746 # declaration. Include always-available headers on the
21747 # off chance that they somehow elicit warnings.
21748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21749 /* end confdefs.h. */
21750 #include <float.h>
21751 #include <limits.h>
21752 #include <stdarg.h>
21753 #include <stddef.h>
21754 extern void ac_decl (int, char *);
21755
21756 int
21757 main (void)
21758 {
21759 (void) ac_decl (0, (char *) 0);
21760 (void) ac_decl;
21761
21762 ;
21763 return 0;
21764 }
21765 _ACEOF
21766 if ac_fn_c_try_compile "$LINENO"
21767 then :
21768 if test x"$ac_arg" = x
21769 then :
21770 ac_cv_c_undeclared_builtin_options='none needed'
21771 else $as_nop
21772 ac_cv_c_undeclared_builtin_options=$ac_arg
21773 fi
21774 break
21775 fi
21776 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21777 fi
21778 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21779 done
21780 CFLAGS=$ac_save_CFLAGS
21781
21782 fi
21783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
21784 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
21785 case $ac_cv_c_undeclared_builtin_options in #(
21786 'cannot detect') :
21787 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21788 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
21789 as_fn_error $? "cannot make $CC report undeclared builtins
21790 See \`config.log' for more details" "$LINENO" 5; } ;; #(
21791 'none needed') :
21792 ac_c_undeclared_builtin_options='' ;; #(
21793 *) :
21794 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
21795 esac
21796
21797 ac_fn_check_decl "$LINENO" "getdelim" "ac_cv_have_decl_getdelim" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
21798 if test "x$ac_cv_have_decl_getdelim" = xyes
21799 then :
21800 ac_have_decl=1
21801 else $as_nop
21802 ac_have_decl=0
21803 fi
21804 printf "%s\n" "#define HAVE_DECL_GETDELIM $ac_have_decl" >>confdefs.h
21805
21806
21807
21808
21809 GL_GNULIB_DPRINTF=0
21810
21811
21812
21813 GL_GNULIB_FCLOSE=0
21814
21815
21816
21817 GL_GNULIB_FDOPEN=0
21818
21819
21820
21821 GL_GNULIB_FFLUSH=0
21822
21823
21824
21825 GL_GNULIB_FGETC=0
21826
21827
21828
21829 GL_GNULIB_FGETS=0
21830
21831
21832
21833 GL_GNULIB_FOPEN=0
21834
21835
21836
21837 GL_GNULIB_FOPEN_GNU=0
21838
21839
21840
21841 GL_GNULIB_FPRINTF=0
21842
21843
21844
21845 GL_GNULIB_FPRINTF_POSIX=0
21846
21847
21848
21849 GL_GNULIB_FPURGE=0
21850
21851
21852
21853 GL_GNULIB_FPUTC=0
21854
21855
21856
21857 GL_GNULIB_FPUTS=0
21858
21859
21860
21861 GL_GNULIB_FREAD=0
21862
21863
21864
21865 GL_GNULIB_FREOPEN=0
21866
21867
21868
21869 GL_GNULIB_FSCANF=0
21870
21871
21872
21873 GL_GNULIB_FSEEK=0
21874
21875
21876
21877 GL_GNULIB_FSEEKO=0
21878
21879
21880
21881 GL_GNULIB_FTELL=0
21882
21883
21884
21885 GL_GNULIB_FTELLO=0
21886
21887
21888
21889 GL_GNULIB_FWRITE=0
21890
21891
21892
21893 GL_GNULIB_GETC=0
21894
21895
21896
21897 GL_GNULIB_GETCHAR=0
21898
21899
21900
21901 GL_GNULIB_GETDELIM=0
21902
21903
21904
21905 GL_GNULIB_GETLINE=0
21906
21907
21908
21909 GL_GNULIB_OBSTACK_PRINTF=0
21910
21911
21912
21913 GL_GNULIB_OBSTACK_PRINTF_POSIX=0
21914
21915
21916
21917 GL_GNULIB_PCLOSE=0
21918
21919
21920
21921 GL_GNULIB_PERROR=0
21922
21923
21924
21925 GL_GNULIB_POPEN=0
21926
21927
21928
21929 GL_GNULIB_PRINTF=0
21930
21931
21932
21933 GL_GNULIB_PRINTF_POSIX=0
21934
21935
21936
21937 GL_GNULIB_PUTC=0
21938
21939
21940
21941 GL_GNULIB_PUTCHAR=0
21942
21943
21944
21945 GL_GNULIB_PUTS=0
21946
21947
21948
21949 GL_GNULIB_REMOVE=0
21950
21951
21952
21953 GL_GNULIB_RENAME=0
21954
21955
21956
21957 GL_GNULIB_RENAMEAT=0
21958
21959
21960
21961 GL_GNULIB_SCANF=0
21962
21963
21964
21965 GL_GNULIB_SNPRINTF=0
21966
21967
21968
21969 GL_GNULIB_SPRINTF_POSIX=0
21970
21971
21972
21973 GL_GNULIB_STDIO_H_NONBLOCKING=0
21974
21975
21976
21977 GL_GNULIB_STDIO_H_SIGPIPE=0
21978
21979
21980
21981 GL_GNULIB_TMPFILE=0
21982
21983
21984
21985 GL_GNULIB_VASPRINTF=0
21986
21987
21988
21989 GL_GNULIB_VFSCANF=0
21990
21991
21992
21993 GL_GNULIB_VSCANF=0
21994
21995
21996
21997 GL_GNULIB_VDPRINTF=0
21998
21999
22000
22001 GL_GNULIB_VFPRINTF=0
22002
22003
22004
22005 GL_GNULIB_VFPRINTF_POSIX=0
22006
22007
22008
22009 GL_GNULIB_VPRINTF=0
22010
22011
22012
22013 GL_GNULIB_VPRINTF_POSIX=0
22014
22015
22016
22017 GL_GNULIB_VSNPRINTF=0
22018
22019
22020
22021 GL_GNULIB_VSPRINTF_POSIX=0
22022
22023
22024
22025 GL_GNULIB_MDA_FCLOSEALL=1
22026
22027
22028
22029 GL_GNULIB_MDA_FDOPEN=1
22030
22031
22032
22033 GL_GNULIB_MDA_FILENO=1
22034
22035
22036
22037 GL_GNULIB_MDA_GETW=1
22038
22039
22040
22041 GL_GNULIB_MDA_PUTW=1
22042
22043
22044
22045 GL_GNULIB_MDA_TEMPNAM=1
22046
22047
22048
22049
22050 ac_fn_check_decl "$LINENO" "getdtablesize" "ac_cv_have_decl_getdtablesize" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
22051 if test "x$ac_cv_have_decl_getdtablesize" = xyes
22052 then :
22053 ac_have_decl=1
22054 else $as_nop
22055 ac_have_decl=0
22056 fi
22057 printf "%s\n" "#define HAVE_DECL_GETDTABLESIZE $ac_have_decl" >>confdefs.h
22058
22059 ac_fn_check_decl "$LINENO" "getline" "ac_cv_have_decl_getline" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
22060 if test "x$ac_cv_have_decl_getline" = xyes
22061 then :
22062 ac_have_decl=1
22063 else $as_nop
22064 ac_have_decl=0
22065 fi
22066 printf "%s\n" "#define HAVE_DECL_GETLINE $ac_have_decl" >>confdefs.h
22067
22068
22069
22070
22071
22072
22073
22074
22075
22076
22077
22078
22079
22080
22081
22082 if test $gl_cv_have_include_next = yes; then
22083 gl_cv_next_getopt_h='<'getopt.h'>'
22084 else
22085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
22086 printf %s "checking absolute name of <getopt.h>... " >&6; }
22087 if test ${gl_cv_next_getopt_h+y}
22088 then :
22089 printf %s "(cached) " >&6
22090 else $as_nop
22091
22092 if test $ac_cv_header_getopt_h = yes; then
22093
22094
22095
22096
22097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22098 /* end confdefs.h. */
22099 #include <getopt.h>
22100 _ACEOF
22101 case "$host_os" in
22102 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22103 *) gl_absname_cpp="$ac_cpp" ;;
22104 esac
22105
22106 case "$host_os" in
22107 mingw*)
22108 gl_dirsep_regex='[/\\]'
22109 ;;
22110 *)
22111 gl_dirsep_regex='\/'
22112 ;;
22113 esac
22114 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22115 gl_header_literal_regex=`echo 'getopt.h' \
22116 | sed -e "$gl_make_literal_regex_sed"`
22117 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22118 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22119 s|^/[^/]|//&|
22120 p
22121 q
22122 }'
22123
22124 gl_cv_absolute_getopt_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22125 sed -n "$gl_absolute_header_sed"`
22126
22127 gl_header=$gl_cv_absolute_getopt_h
22128 gl_cv_next_getopt_h='"'$gl_header'"'
22129 else
22130 gl_cv_next_getopt_h='<'getopt.h'>'
22131 fi
22132
22133
22134 fi
22135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
22136 printf "%s\n" "$gl_cv_next_getopt_h" >&6; }
22137 fi
22138 NEXT_GETOPT_H=$gl_cv_next_getopt_h
22139
22140 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22141 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22142 gl_next_as_first_directive='<'getopt.h'>'
22143 else
22144 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22145 gl_next_as_first_directive=$gl_cv_next_getopt_h
22146 fi
22147 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
22148
22149
22150
22151
22152 if test $ac_cv_header_getopt_h = yes; then
22153 HAVE_GETOPT_H=1
22154 else
22155 HAVE_GETOPT_H=0
22156 fi
22157
22158
22159 gl_replace_getopt=
22160
22161 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
22162 for ac_header in getopt.h
22163 do :
22164 ac_fn_c_check_header_compile "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
22165 if test "x$ac_cv_header_getopt_h" = xyes
22166 then :
22167 printf "%s\n" "#define HAVE_GETOPT_H 1" >>confdefs.h
22168
22169 else $as_nop
22170 gl_replace_getopt=yes
22171 fi
22172
22173 done
22174 fi
22175
22176 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
22177
22178 for ac_func in getopt_long_only
22179 do :
22180 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
22181 if test "x$ac_cv_func_getopt_long_only" = xyes
22182 then :
22183 printf "%s\n" "#define HAVE_GETOPT_LONG_ONLY 1" >>confdefs.h
22184
22185 else $as_nop
22186 gl_replace_getopt=yes
22187 fi
22188
22189 done
22190 fi
22191
22192 if test -z "$gl_replace_getopt"; then
22193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
22194 printf %s "checking whether getopt is POSIX compatible... " >&6; }
22195 if test ${gl_cv_func_getopt_posix+y}
22196 then :
22197 printf %s "(cached) " >&6
22198 else $as_nop
22199
22200 if test $cross_compiling = no; then
22201 if test "$cross_compiling" = yes
22202 then :
22203 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22204 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22205 as_fn_error $? "cannot run test program while cross compiling
22206 See \`config.log' for more details" "$LINENO" 5; }
22207 else $as_nop
22208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22209 /* end confdefs.h. */
22210
22211 #include <unistd.h>
22212 #include <stdlib.h>
22213 #include <string.h>
22214
22215 int
22216 main ()
22217 {
22218 static char program[] = "program";
22219 static char a[] = "-a";
22220 static char foo[] = "foo";
22221 static char bar[] = "bar";
22222 char *argv[] = { program, a, foo, bar, NULL };
22223 int c;
22224
22225 c = getopt (4, argv, "ab");
22226 if (!(c == 'a'))
22227 return 1;
22228 c = getopt (4, argv, "ab");
22229 if (!(c == -1))
22230 return 2;
22231 if (!(optind == 2))
22232 return 3;
22233 return 0;
22234 }
22235
22236 _ACEOF
22237 if ac_fn_c_try_run "$LINENO"
22238 then :
22239 gl_cv_func_getopt_posix=maybe
22240 else $as_nop
22241 gl_cv_func_getopt_posix=no
22242 fi
22243 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22244 conftest.$ac_objext conftest.beam conftest.$ac_ext
22245 fi
22246
22247 if test $gl_cv_func_getopt_posix = maybe; then
22248 if test "$cross_compiling" = yes
22249 then :
22250 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22251 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22252 as_fn_error $? "cannot run test program while cross compiling
22253 See \`config.log' for more details" "$LINENO" 5; }
22254 else $as_nop
22255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22256 /* end confdefs.h. */
22257
22258 #include <unistd.h>
22259 #include <stdlib.h>
22260 #include <string.h>
22261
22262 int
22263 main ()
22264 {
22265 static char program[] = "program";
22266 static char donald[] = "donald";
22267 static char p[] = "-p";
22268 static char billy[] = "billy";
22269 static char duck[] = "duck";
22270 static char a[] = "-a";
22271 static char bar[] = "bar";
22272 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
22273 int c;
22274
22275 c = getopt (7, argv, "+abp:q:");
22276 if (!(c == -1))
22277 return 4;
22278 if (!(strcmp (argv[0], "program") == 0))
22279 return 5;
22280 if (!(strcmp (argv[1], "donald") == 0))
22281 return 6;
22282 if (!(strcmp (argv[2], "-p") == 0))
22283 return 7;
22284 if (!(strcmp (argv[3], "billy") == 0))
22285 return 8;
22286 if (!(strcmp (argv[4], "duck") == 0))
22287 return 9;
22288 if (!(strcmp (argv[5], "-a") == 0))
22289 return 10;
22290 if (!(strcmp (argv[6], "bar") == 0))
22291 return 11;
22292 if (!(optind == 1))
22293 return 12;
22294 return 0;
22295 }
22296
22297 _ACEOF
22298 if ac_fn_c_try_run "$LINENO"
22299 then :
22300 gl_cv_func_getopt_posix=maybe
22301 else $as_nop
22302 gl_cv_func_getopt_posix=no
22303 fi
22304 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22305 conftest.$ac_objext conftest.beam conftest.$ac_ext
22306 fi
22307
22308 fi
22309 if test $gl_cv_func_getopt_posix = maybe; then
22310 if test "$cross_compiling" = yes
22311 then :
22312 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22313 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22314 as_fn_error $? "cannot run test program while cross compiling
22315 See \`config.log' for more details" "$LINENO" 5; }
22316 else $as_nop
22317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22318 /* end confdefs.h. */
22319
22320 #include <unistd.h>
22321 #include <stdlib.h>
22322 #include <string.h>
22323
22324 int
22325 main ()
22326 {
22327 static char program[] = "program";
22328 static char ab[] = "-ab";
22329 char *argv[3] = { program, ab, NULL };
22330 if (getopt (2, argv, "ab:") != 'a')
22331 return 13;
22332 if (getopt (2, argv, "ab:") != '?')
22333 return 14;
22334 if (optopt != 'b')
22335 return 15;
22336 if (optind != 2)
22337 return 16;
22338 return 0;
22339 }
22340
22341 _ACEOF
22342 if ac_fn_c_try_run "$LINENO"
22343 then :
22344 gl_cv_func_getopt_posix=yes
22345 else $as_nop
22346 gl_cv_func_getopt_posix=no
22347 fi
22348 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22349 conftest.$ac_objext conftest.beam conftest.$ac_ext
22350 fi
22351
22352 fi
22353 else
22354 case "$host_os" in
22355 darwin* | aix* | mingw*) gl_cv_func_getopt_posix="guessing no";;
22356 *) gl_cv_func_getopt_posix="guessing yes";;
22357 esac
22358 fi
22359
22360 fi
22361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
22362 printf "%s\n" "$gl_cv_func_getopt_posix" >&6; }
22363 case "$gl_cv_func_getopt_posix" in
22364 *no) gl_replace_getopt=yes ;;
22365 esac
22366 fi
22367
22368 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
22369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
22370 printf %s "checking for working GNU getopt function... " >&6; }
22371 if test ${gl_cv_func_getopt_gnu+y}
22372 then :
22373 printf %s "(cached) " >&6
22374 else $as_nop
22375 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
22376 # optstring is necessary for programs like m4 that have POSIX-mandated
22377 # semantics for supporting options interspersed with files.
22378 # Also, since getopt_long is a GNU extension, we require optind=0.
22379 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
22380 # so take care to revert to the correct (non-)export state.
22381 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
22382 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
22383 xx) gl_had_POSIXLY_CORRECT=exported ;;
22384 x) gl_had_POSIXLY_CORRECT=yes ;;
22385 *) gl_had_POSIXLY_CORRECT= ;;
22386 esac
22387 POSIXLY_CORRECT=1
22388 export POSIXLY_CORRECT
22389 if test "$cross_compiling" = yes
22390 then :
22391 gl_cv_func_getopt_gnu="$gl_cross_guess_normal"
22392
22393 else $as_nop
22394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22395 /* end confdefs.h. */
22396 #include <getopt.h>
22397 #include <stddef.h>
22398 #include <string.h>
22399
22400 #include <stdlib.h>
22401 #if defined __MACH__ && defined __APPLE__
22402 /* Avoid a crash on Mac OS X. */
22403 #include <mach/mach.h>
22404 #include <mach/mach_error.h>
22405 #include <mach/thread_status.h>
22406 #include <mach/exception.h>
22407 #include <mach/task.h>
22408 #include <pthread.h>
22409 /* The exception port on which our thread listens. */
22410 static mach_port_t our_exception_port;
22411 /* The main function of the thread listening for exceptions of type
22412 EXC_BAD_ACCESS. */
22413 static void *
22414 mach_exception_thread (void *arg)
22415 {
22416 /* Buffer for a message to be received. */
22417 struct {
22418 mach_msg_header_t head;
22419 mach_msg_body_t msgh_body;
22420 char data[1024];
22421 } msg;
22422 mach_msg_return_t retval;
22423 /* Wait for a message on the exception port. */
22424 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
22425 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
22426 if (retval != MACH_MSG_SUCCESS)
22427 abort ();
22428 exit (1);
22429 }
22430 static void
22431 nocrash_init (void)
22432 {
22433 mach_port_t self = mach_task_self ();
22434 /* Allocate a port on which the thread shall listen for exceptions. */
22435 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
22436 == KERN_SUCCESS) {
22437 /* See https://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
22438 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
22439 MACH_MSG_TYPE_MAKE_SEND)
22440 == KERN_SUCCESS) {
22441 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
22442 for us. */
22443 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
22444 /* Create the thread listening on the exception port. */
22445 pthread_attr_t attr;
22446 pthread_t thread;
22447 if (pthread_attr_init (&attr) == 0
22448 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
22449 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
22450 pthread_attr_destroy (&attr);
22451 /* Replace the exception port info for these exceptions with our own.
22452 Note that we replace the exception port for the entire task, not only
22453 for a particular thread. This has the effect that when our exception
22454 port gets the message, the thread specific exception port has already
22455 been asked, and we don't need to bother about it.
22456 See https://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
22457 task_set_exception_ports (self, mask, our_exception_port,
22458 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
22459 }
22460 }
22461 }
22462 }
22463 #elif defined _WIN32 && ! defined __CYGWIN__
22464 /* Avoid a crash on native Windows. */
22465 #define WIN32_LEAN_AND_MEAN
22466 #include <windows.h>
22467 #include <winerror.h>
22468 static LONG WINAPI
22469 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
22470 {
22471 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
22472 {
22473 case EXCEPTION_ACCESS_VIOLATION:
22474 case EXCEPTION_IN_PAGE_ERROR:
22475 case EXCEPTION_STACK_OVERFLOW:
22476 case EXCEPTION_GUARD_PAGE:
22477 case EXCEPTION_PRIV_INSTRUCTION:
22478 case EXCEPTION_ILLEGAL_INSTRUCTION:
22479 case EXCEPTION_DATATYPE_MISALIGNMENT:
22480 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
22481 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
22482 exit (1);
22483 }
22484 return EXCEPTION_CONTINUE_SEARCH;
22485 }
22486 static void
22487 nocrash_init (void)
22488 {
22489 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
22490 }
22491 #else
22492 /* Avoid a crash on POSIX systems. */
22493 #include <signal.h>
22494 #include <unistd.h>
22495 /* A POSIX signal handler. */
22496 static void
22497 exception_handler (int sig)
22498 {
22499 _exit (1);
22500 }
22501 static void
22502 nocrash_init (void)
22503 {
22504 #ifdef SIGSEGV
22505 signal (SIGSEGV, exception_handler);
22506 #endif
22507 #ifdef SIGBUS
22508 signal (SIGBUS, exception_handler);
22509 #endif
22510 }
22511 #endif
22512
22513
22514 int
22515 main (void)
22516 {
22517
22518 int result = 0;
22519
22520 nocrash_init();
22521
22522 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
22523 and fails on Mac OS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
22524 OSF/1 5.1, Solaris 10. */
22525 {
22526 static char conftest[] = "conftest";
22527 static char plus[] = "-+";
22528 char *argv[3] = { conftest, plus, NULL };
22529 opterr = 0;
22530 if (getopt (2, argv, "+a") != '?')
22531 result |= 1;
22532 }
22533 /* This code succeeds on glibc 2.8, mingw,
22534 and fails on Mac OS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
22535 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
22536 {
22537 static char program[] = "program";
22538 static char p[] = "-p";
22539 static char foo[] = "foo";
22540 static char bar[] = "bar";
22541 char *argv[] = { program, p, foo, bar, NULL };
22542
22543 optind = 1;
22544 if (getopt (4, argv, "p::") != 'p')
22545 result |= 2;
22546 else if (optarg != NULL)
22547 result |= 4;
22548 else if (getopt (4, argv, "p::") != -1)
22549 result |= 6;
22550 else if (optind != 2)
22551 result |= 8;
22552 }
22553 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
22554 {
22555 static char program[] = "program";
22556 static char foo[] = "foo";
22557 static char p[] = "-p";
22558 char *argv[] = { program, foo, p, NULL };
22559 optind = 0;
22560 if (getopt (3, argv, "-p") != 1)
22561 result |= 16;
22562 else if (getopt (3, argv, "-p") != 'p')
22563 result |= 16;
22564 }
22565 /* This code fails on glibc 2.11. */
22566 {
22567 static char program[] = "program";
22568 static char b[] = "-b";
22569 static char a[] = "-a";
22570 char *argv[] = { program, b, a, NULL };
22571 optind = opterr = 0;
22572 if (getopt (3, argv, "+:a:b") != 'b')
22573 result |= 32;
22574 else if (getopt (3, argv, "+:a:b") != ':')
22575 result |= 32;
22576 }
22577 /* This code dumps core on glibc 2.14. */
22578 {
22579 static char program[] = "program";
22580 static char w[] = "-W";
22581 static char dummy[] = "dummy";
22582 char *argv[] = { program, w, dummy, NULL };
22583 optind = opterr = 1;
22584 if (getopt (3, argv, "W;") != 'W')
22585 result |= 64;
22586 }
22587 return result;
22588
22589 ;
22590 return 0;
22591 }
22592 _ACEOF
22593 if ac_fn_c_try_run "$LINENO"
22594 then :
22595 gl_cv_func_getopt_gnu=yes
22596 else $as_nop
22597 gl_cv_func_getopt_gnu=no
22598 fi
22599 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22600 conftest.$ac_objext conftest.beam conftest.$ac_ext
22601 fi
22602
22603 case $gl_had_POSIXLY_CORRECT in
22604 exported) ;;
22605 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
22606 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
22607 esac
22608
22609 fi
22610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
22611 printf "%s\n" "$gl_cv_func_getopt_gnu" >&6; }
22612 if test "$gl_cv_func_getopt_gnu" != yes; then
22613 gl_replace_getopt=yes
22614 else
22615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt_long function" >&5
22616 printf %s "checking for working GNU getopt_long function... " >&6; }
22617 if test ${gl_cv_func_getopt_long_gnu+y}
22618 then :
22619 printf %s "(cached) " >&6
22620 else $as_nop
22621 if test "$cross_compiling" = yes
22622 then :
22623 case "$host_os" in
22624 openbsd*) gl_cv_func_getopt_long_gnu="guessing no";;
22625 *) gl_cv_func_getopt_long_gnu="guessing yes";;
22626 esac
22627
22628 else $as_nop
22629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22630 /* end confdefs.h. */
22631 #include <getopt.h>
22632 #include <stddef.h>
22633 #include <string.h>
22634
22635 int
22636 main (void)
22637 {
22638 static const struct option long_options[] =
22639 {
22640 { "xtremely-",no_argument, NULL, 1003 },
22641 { "xtra", no_argument, NULL, 1001 },
22642 { "xtreme", no_argument, NULL, 1002 },
22643 { "xtremely", no_argument, NULL, 1003 },
22644 { NULL, 0, NULL, 0 }
22645 };
22646 /* This code fails on OpenBSD 5.0. */
22647 {
22648 static char program[] = "program";
22649 static char xtremel[] = "--xtremel";
22650 char *argv[] = { program, xtremel, NULL };
22651 int option_index;
22652 optind = 1; opterr = 0;
22653 if (getopt_long (2, argv, "", long_options, &option_index) != 1003)
22654 return 1;
22655 }
22656 return 0;
22657
22658 ;
22659 return 0;
22660 }
22661 _ACEOF
22662 if ac_fn_c_try_run "$LINENO"
22663 then :
22664 gl_cv_func_getopt_long_gnu=yes
22665 else $as_nop
22666 gl_cv_func_getopt_long_gnu=no
22667 fi
22668 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22669 conftest.$ac_objext conftest.beam conftest.$ac_ext
22670 fi
22671
22672
22673 fi
22674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_long_gnu" >&5
22675 printf "%s\n" "$gl_cv_func_getopt_long_gnu" >&6; }
22676 case "$gl_cv_func_getopt_long_gnu" in
22677 *yes) ;;
22678 *) gl_replace_getopt=yes ;;
22679 esac
22680 fi
22681 fi
22682
22683
22684
22685 HAVE_GETRANDOM=1;
22686 REPLACE_GETRANDOM=0;
22687
22688
22689
22690
22691 GL_GNULIB_GETRANDOM=0
22692
22693
22694
22695
22696
22697
22698
22699 if test -z "$gl_pthreadlib_body_done"; then
22700 gl_pthread_api=no
22701 LIBPTHREAD=
22702 LIBPMULTITHREAD=
22703 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
22704 # it groks <pthread.h>. It's added above, in gl_ANYTHREADLIB_EARLY.
22705 ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
22706 if test "x$ac_cv_header_pthread_h" = xyes
22707 then :
22708 gl_have_pthread_h=yes
22709 else $as_nop
22710 gl_have_pthread_h=no
22711 fi
22712
22713 if test "$gl_have_pthread_h" = yes; then
22714 # Other possible tests:
22715 # -lpthreads (FSU threads, PCthreads)
22716 # -lgthreads
22717 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
22718 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
22719 # the second one only in libpthread, and lock.c needs it.
22720 #
22721 # If -pthread works, prefer it to -lpthread, since Ubuntu 14.04
22722 # needs -pthread for some reason. See:
22723 # https://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
22724 save_LIBS=$LIBS
22725 for gl_pthread in '' '-pthread'; do
22726 LIBS="$LIBS $gl_pthread"
22727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22728 /* end confdefs.h. */
22729 #include <pthread.h>
22730 pthread_mutex_t m;
22731 pthread_mutexattr_t ma;
22732
22733 int
22734 main (void)
22735 {
22736 pthread_mutex_lock (&m);
22737 pthread_mutexattr_init (&ma);
22738 ;
22739 return 0;
22740 }
22741 _ACEOF
22742 if ac_fn_c_try_link "$LINENO"
22743 then :
22744 gl_pthread_api=yes
22745 LIBPTHREAD=$gl_pthread
22746 LIBPMULTITHREAD=$gl_pthread
22747 fi
22748 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22749 conftest$ac_exeext conftest.$ac_ext
22750 LIBS=$save_LIBS
22751 test $gl_pthread_api = yes && break
22752 done
22753 echo "$as_me:22753: gl_pthread_api=$gl_pthread_api" >&5
22754 echo "$as_me:22754: LIBPTHREAD=$LIBPTHREAD" >&5
22755
22756 gl_pthread_in_glibc=no
22757 # On Linux with glibc >= 2.34, libc contains the fully functional
22758 # pthread functions.
22759 case "$host_os" in
22760 linux*)
22761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22762 /* end confdefs.h. */
22763 #include <features.h>
22764 #ifdef __GNU_LIBRARY__
22765 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 34) || (__GLIBC__ > 2)
22766 Lucky user
22767 #endif
22768 #endif
22769
22770 _ACEOF
22771 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22772 $EGREP "Lucky user" >/dev/null 2>&1
22773 then :
22774 gl_pthread_in_glibc=yes
22775 fi
22776 rm -rf conftest*
22777
22778 ;;
22779 esac
22780 echo "$as_me:22780: gl_pthread_in_glibc=$gl_pthread_in_glibc" >&5
22781
22782 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
22783 # since it is defined as a macro on OSF/1.)
22784 if test $gl_pthread_api = yes && test -z "$LIBPTHREAD"; then
22785 # The program links fine without libpthread. But it may actually
22786 # need to link with libpthread in order to create multiple threads.
22787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
22788 printf %s "checking for pthread_kill in -lpthread... " >&6; }
22789 if test ${ac_cv_lib_pthread_pthread_kill+y}
22790 then :
22791 printf %s "(cached) " >&6
22792 else $as_nop
22793 ac_check_lib_save_LIBS=$LIBS
22794 LIBS="-lpthread $LIBS"
22795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22796 /* end confdefs.h. */
22797
22798 /* Override any GCC internal prototype to avoid an error.
22799 Use char because int might match the return type of a GCC
22800 builtin and then its argument prototype would still apply. */
22801 char pthread_kill ();
22802 int
22803 main (void)
22804 {
22805 return pthread_kill ();
22806 ;
22807 return 0;
22808 }
22809 _ACEOF
22810 if ac_fn_c_try_link "$LINENO"
22811 then :
22812 ac_cv_lib_pthread_pthread_kill=yes
22813 else $as_nop
22814 ac_cv_lib_pthread_pthread_kill=no
22815 fi
22816 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22817 conftest$ac_exeext conftest.$ac_ext
22818 LIBS=$ac_check_lib_save_LIBS
22819 fi
22820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
22821 printf "%s\n" "$ac_cv_lib_pthread_pthread_kill" >&6; }
22822 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes
22823 then :
22824 if test $gl_pthread_in_glibc = yes; then
22825 LIBPMULTITHREAD=
22826 else
22827 LIBPMULTITHREAD=-lpthread
22828 # On Solaris and HP-UX, most pthread functions exist also in libc.
22829 # Therefore pthread_in_use() needs to actually try to create a
22830 # thread: pthread_create from libc will fail, whereas
22831 # pthread_create will actually create a thread.
22832 # On Solaris 10 or newer, this test is no longer needed, because
22833 # libc contains the fully functional pthread functions.
22834 case "$host_os" in
22835 solaris | solaris2.1-9 | solaris2.1-9.* | hpux*)
22836
22837 printf "%s\n" "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
22838
22839 esac
22840 fi
22841
22842 fi
22843
22844 elif test $gl_pthread_api != yes; then
22845 # Some library is needed. Try libpthread and libc_r.
22846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
22847 printf %s "checking for pthread_kill in -lpthread... " >&6; }
22848 if test ${ac_cv_lib_pthread_pthread_kill+y}
22849 then :
22850 printf %s "(cached) " >&6
22851 else $as_nop
22852 ac_check_lib_save_LIBS=$LIBS
22853 LIBS="-lpthread $LIBS"
22854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22855 /* end confdefs.h. */
22856
22857 /* Override any GCC internal prototype to avoid an error.
22858 Use char because int might match the return type of a GCC
22859 builtin and then its argument prototype would still apply. */
22860 char pthread_kill ();
22861 int
22862 main (void)
22863 {
22864 return pthread_kill ();
22865 ;
22866 return 0;
22867 }
22868 _ACEOF
22869 if ac_fn_c_try_link "$LINENO"
22870 then :
22871 ac_cv_lib_pthread_pthread_kill=yes
22872 else $as_nop
22873 ac_cv_lib_pthread_pthread_kill=no
22874 fi
22875 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22876 conftest$ac_exeext conftest.$ac_ext
22877 LIBS=$ac_check_lib_save_LIBS
22878 fi
22879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
22880 printf "%s\n" "$ac_cv_lib_pthread_pthread_kill" >&6; }
22881 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes
22882 then :
22883 gl_pthread_api=yes
22884 LIBPTHREAD=-lpthread
22885 LIBPMULTITHREAD=-lpthread
22886 fi
22887
22888 if test $gl_pthread_api != yes; then
22889 # For FreeBSD 4.
22890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
22891 printf %s "checking for pthread_kill in -lc_r... " >&6; }
22892 if test ${ac_cv_lib_c_r_pthread_kill+y}
22893 then :
22894 printf %s "(cached) " >&6
22895 else $as_nop
22896 ac_check_lib_save_LIBS=$LIBS
22897 LIBS="-lc_r $LIBS"
22898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22899 /* end confdefs.h. */
22900
22901 /* Override any GCC internal prototype to avoid an error.
22902 Use char because int might match the return type of a GCC
22903 builtin and then its argument prototype would still apply. */
22904 char pthread_kill ();
22905 int
22906 main (void)
22907 {
22908 return pthread_kill ();
22909 ;
22910 return 0;
22911 }
22912 _ACEOF
22913 if ac_fn_c_try_link "$LINENO"
22914 then :
22915 ac_cv_lib_c_r_pthread_kill=yes
22916 else $as_nop
22917 ac_cv_lib_c_r_pthread_kill=no
22918 fi
22919 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22920 conftest$ac_exeext conftest.$ac_ext
22921 LIBS=$ac_check_lib_save_LIBS
22922 fi
22923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
22924 printf "%s\n" "$ac_cv_lib_c_r_pthread_kill" >&6; }
22925 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes
22926 then :
22927 gl_pthread_api=yes
22928 LIBPTHREAD=-lc_r
22929 LIBPMULTITHREAD=-lc_r
22930 fi
22931
22932 fi
22933 fi
22934 echo "$as_me:22934: LIBPMULTITHREAD=$LIBPMULTITHREAD" >&5
22935 fi
22936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether POSIX threads API is available" >&5
22937 printf %s "checking whether POSIX threads API is available... " >&6; }
22938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_pthread_api" >&5
22939 printf "%s\n" "$gl_pthread_api" >&6; }
22940
22941
22942 if test $gl_pthread_api = yes; then
22943
22944 printf "%s\n" "#define HAVE_PTHREAD_API 1" >>confdefs.h
22945
22946 fi
22947
22948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22949 /* end confdefs.h. */
22950 #include <sched.h>
22951 int
22952 main (void)
22953 {
22954 sched_yield ();
22955 ;
22956 return 0;
22957 }
22958 _ACEOF
22959 if ac_fn_c_try_link "$LINENO"
22960 then :
22961 LIB_SCHED_YIELD=
22962
22963 else $as_nop
22964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
22965 printf %s "checking for sched_yield in -lrt... " >&6; }
22966 if test ${ac_cv_lib_rt_sched_yield+y}
22967 then :
22968 printf %s "(cached) " >&6
22969 else $as_nop
22970 ac_check_lib_save_LIBS=$LIBS
22971 LIBS="-lrt $LIBS"
22972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22973 /* end confdefs.h. */
22974
22975 /* Override any GCC internal prototype to avoid an error.
22976 Use char because int might match the return type of a GCC
22977 builtin and then its argument prototype would still apply. */
22978 char sched_yield ();
22979 int
22980 main (void)
22981 {
22982 return sched_yield ();
22983 ;
22984 return 0;
22985 }
22986 _ACEOF
22987 if ac_fn_c_try_link "$LINENO"
22988 then :
22989 ac_cv_lib_rt_sched_yield=yes
22990 else $as_nop
22991 ac_cv_lib_rt_sched_yield=no
22992 fi
22993 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22994 conftest$ac_exeext conftest.$ac_ext
22995 LIBS=$ac_check_lib_save_LIBS
22996 fi
22997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
22998 printf "%s\n" "$ac_cv_lib_rt_sched_yield" >&6; }
22999 if test "x$ac_cv_lib_rt_sched_yield" = xyes
23000 then :
23001 LIB_SCHED_YIELD=-lrt
23002 else $as_nop
23003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5
23004 printf %s "checking for sched_yield in -lposix4... " >&6; }
23005 if test ${ac_cv_lib_posix4_sched_yield+y}
23006 then :
23007 printf %s "(cached) " >&6
23008 else $as_nop
23009 ac_check_lib_save_LIBS=$LIBS
23010 LIBS="-lposix4 $LIBS"
23011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23012 /* end confdefs.h. */
23013
23014 /* Override any GCC internal prototype to avoid an error.
23015 Use char because int might match the return type of a GCC
23016 builtin and then its argument prototype would still apply. */
23017 char sched_yield ();
23018 int
23019 main (void)
23020 {
23021 return sched_yield ();
23022 ;
23023 return 0;
23024 }
23025 _ACEOF
23026 if ac_fn_c_try_link "$LINENO"
23027 then :
23028 ac_cv_lib_posix4_sched_yield=yes
23029 else $as_nop
23030 ac_cv_lib_posix4_sched_yield=no
23031 fi
23032 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23033 conftest$ac_exeext conftest.$ac_ext
23034 LIBS=$ac_check_lib_save_LIBS
23035 fi
23036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5
23037 printf "%s\n" "$ac_cv_lib_posix4_sched_yield" >&6; }
23038 if test "x$ac_cv_lib_posix4_sched_yield" = xyes
23039 then :
23040 LIB_SCHED_YIELD=-lposix4
23041 fi
23042
23043 fi
23044
23045
23046 fi
23047 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23048 conftest$ac_exeext conftest.$ac_ext
23049
23050
23051 gl_pthreadlib_body_done=done
23052 fi
23053
23054
23055
23056
23057
23058
23059
23060
23061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether setlocale (LC_ALL, NULL) is multithread-safe" >&5
23062 printf %s "checking whether setlocale (LC_ALL, NULL) is multithread-safe... " >&6; }
23063 if test ${gl_cv_func_setlocale_null_all_mtsafe+y}
23064 then :
23065 printf %s "(cached) " >&6
23066 else $as_nop
23067 case "$host_os" in
23068 # Guess no on musl libc, macOS, FreeBSD, NetBSD, OpenBSD, AIX, Haiku, Cygwin.
23069 *-musl* | darwin* | freebsd* | midnightbsd* | netbsd* | openbsd* | aix* | haiku* | cygwin*)
23070 gl_cv_func_setlocale_null_all_mtsafe=no ;;
23071 # Guess yes on glibc, HP-UX, IRIX, Solaris, native Windows.
23072 *-gnu* | gnu* | hpux* | irix* | solaris* | mingw*)
23073 gl_cv_func_setlocale_null_all_mtsafe=yes ;;
23074 # If we don't know, obey --enable-cross-guesses.
23075 *)
23076 gl_cv_func_setlocale_null_all_mtsafe="$gl_cross_guess_normal" ;;
23077 esac
23078
23079 fi
23080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setlocale_null_all_mtsafe" >&5
23081 printf "%s\n" "$gl_cv_func_setlocale_null_all_mtsafe" >&6; }
23082 case "$host_os" in
23083 mingw*) ;;
23084 *)
23085 if test $gl_pthread_api = no && test $ac_cv_header_threads_h = no; then
23086 gl_cv_func_setlocale_null_all_mtsafe="trivially yes"
23087 fi
23088 ;;
23089 esac
23090 case "$gl_cv_func_setlocale_null_all_mtsafe" in
23091 *yes) SETLOCALE_NULL_ALL_MTSAFE=1 ;;
23092 *) SETLOCALE_NULL_ALL_MTSAFE=0 ;;
23093 esac
23094
23095 printf "%s\n" "#define SETLOCALE_NULL_ALL_MTSAFE $SETLOCALE_NULL_ALL_MTSAFE" >>confdefs.h
23096
23097
23098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether setlocale (category, NULL) is multithread-safe" >&5
23099 printf %s "checking whether setlocale (category, NULL) is multithread-safe... " >&6; }
23100 if test ${gl_cv_func_setlocale_null_one_mtsafe+y}
23101 then :
23102 printf %s "(cached) " >&6
23103 else $as_nop
23104 case "$host_os" in
23105 # Guess no on OpenBSD, AIX.
23106 openbsd* | aix*)
23107 gl_cv_func_setlocale_null_one_mtsafe=no ;;
23108 # Guess yes on glibc, musl libc, macOS, FreeBSD, NetBSD, HP-UX, IRIX, Solaris, Haiku, Cygwin, native Windows.
23109 *-gnu* | gnu* | *-musl* | darwin* | freebsd* | midnightbsd* | netbsd* | hpux* | irix* | solaris* | haiku* | cygwin* | mingw*)
23110 gl_cv_func_setlocale_null_one_mtsafe=yes ;;
23111 # If we don't know, obey --enable-cross-guesses.
23112 *)
23113 gl_cv_func_setlocale_null_one_mtsafe="$gl_cross_guess_normal" ;;
23114 esac
23115
23116 fi
23117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setlocale_null_one_mtsafe" >&5
23118 printf "%s\n" "$gl_cv_func_setlocale_null_one_mtsafe" >&6; }
23119 case "$host_os" in
23120 mingw*) ;;
23121 *)
23122 if test $gl_pthread_api = no && test $ac_cv_header_threads_h = no; then
23123 gl_cv_func_setlocale_null_one_mtsafe="trivially yes"
23124 fi
23125 ;;
23126 esac
23127 case "$gl_cv_func_setlocale_null_one_mtsafe" in
23128 *yes) SETLOCALE_NULL_ONE_MTSAFE=1 ;;
23129 *) SETLOCALE_NULL_ONE_MTSAFE=0 ;;
23130 esac
23131
23132 printf "%s\n" "#define SETLOCALE_NULL_ONE_MTSAFE $SETLOCALE_NULL_ONE_MTSAFE" >>confdefs.h
23133
23134
23135 if test $SETLOCALE_NULL_ALL_MTSAFE = 0 || test $SETLOCALE_NULL_ONE_MTSAFE = 0; then
23136 case "$host_os" in
23137 mingw*) LIB_SETLOCALE_NULL= ;;
23138 *)
23139
23140
23141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
23142 printf %s "checking whether imported symbols can be declared weak... " >&6; }
23143 if test ${gl_cv_have_weak+y}
23144 then :
23145 printf %s "(cached) " >&6
23146 else $as_nop
23147 case "$host_os" in
23148 cygwin*)
23149 gl_cv_have_weak="guessing no"
23150 ;;
23151 *)
23152 gl_cv_have_weak=no
23153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23154 /* end confdefs.h. */
23155 extern void xyzzy ();
23156 #pragma weak xyzzy
23157 int
23158 main (void)
23159 {
23160 xyzzy();
23161 ;
23162 return 0;
23163 }
23164 _ACEOF
23165 if ac_fn_c_try_link "$LINENO"
23166 then :
23167 gl_cv_have_weak=maybe
23168 fi
23169 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23170 conftest$ac_exeext conftest.$ac_ext
23171 if test $gl_cv_have_weak = maybe; then
23172 if test "$cross_compiling" = yes
23173 then :
23174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23175 /* end confdefs.h. */
23176 #ifdef __ELF__
23177 Extensible Linking Format
23178 #endif
23179
23180 _ACEOF
23181 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23182 $EGREP "Extensible Linking Format" >/dev/null 2>&1
23183 then :
23184 gl_cv_have_weak="guessing yes"
23185 else $as_nop
23186 gl_cv_have_weak="guessing no"
23187 fi
23188 rm -rf conftest*
23189
23190
23191 else $as_nop
23192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23193 /* end confdefs.h. */
23194
23195 #include <stdio.h>
23196 #pragma weak fputs
23197 int main ()
23198 {
23199 return (fputs == NULL);
23200 }
23201 _ACEOF
23202 if ac_fn_c_try_run "$LINENO"
23203 then :
23204 gl_cv_have_weak=yes
23205 else $as_nop
23206 gl_cv_have_weak=no
23207 fi
23208 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23209 conftest.$ac_objext conftest.beam conftest.$ac_ext
23210 fi
23211
23212 fi
23213 ;;
23214 esac
23215 case " $LDFLAGS " in
23216 *" -static "*) gl_cv_have_weak=no ;;
23217 esac
23218 case "$gl_cv_have_weak" in
23219 *yes)
23220 case "$host_os" in
23221 freebsd* | dragonfly* | midnightbsd*)
23222 : > conftest1.c
23223 $CC $CPPFLAGS $CFLAGS $LDFLAGS -fPIC -shared -o libempty.so conftest1.c -lpthread >&5 2>&1
23224 cat <<EOF > conftest2.c
23225 #include <pthread.h>
23226 #pragma weak pthread_mutexattr_gettype
23227 int main ()
23228 {
23229 return (pthread_mutexattr_gettype != NULL);
23230 }
23231 EOF
23232 $CC $CPPFLAGS $CFLAGS $LDFLAGS -o conftest conftest2.c libempty.so >&5 2>&1 \
23233 || gl_cv_have_weak=no
23234 rm -f conftest1.c libempty.so conftest2.c conftest
23235 ;;
23236 esac
23237 ;;
23238 esac
23239
23240 fi
23241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
23242 printf "%s\n" "$gl_cv_have_weak" >&6; }
23243 case "$gl_cv_have_weak" in
23244 *yes)
23245
23246 printf "%s\n" "#define HAVE_WEAK_SYMBOLS 1" >>confdefs.h
23247
23248 ;;
23249 esac
23250
23251 case "$gl_cv_have_weak" in
23252 *yes) LIB_SETLOCALE_NULL= ;;
23253 *) LIB_SETLOCALE_NULL="$LIBPTHREAD" ;;
23254 esac
23255 ;;
23256 esac
23257 else
23258 LIB_SETLOCALE_NULL=
23259 fi
23260
23261
23262
23263
23264
23265
23266
23267
23268
23269
23270
23271
23272
23273 if test $gl_cv_have_include_next = yes; then
23274 gl_cv_next_limits_h='<'limits.h'>'
23275 else
23276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <limits.h>" >&5
23277 printf %s "checking absolute name of <limits.h>... " >&6; }
23278 if test ${gl_cv_next_limits_h+y}
23279 then :
23280 printf %s "(cached) " >&6
23281 else $as_nop
23282
23283 if test $ac_cv_header_limits_h = yes; then
23284
23285
23286
23287
23288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23289 /* end confdefs.h. */
23290 #include <limits.h>
23291 _ACEOF
23292 case "$host_os" in
23293 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23294 *) gl_absname_cpp="$ac_cpp" ;;
23295 esac
23296
23297 case "$host_os" in
23298 mingw*)
23299 gl_dirsep_regex='[/\\]'
23300 ;;
23301 *)
23302 gl_dirsep_regex='\/'
23303 ;;
23304 esac
23305 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23306 gl_header_literal_regex=`echo 'limits.h' \
23307 | sed -e "$gl_make_literal_regex_sed"`
23308 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23309 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23310 s|^/[^/]|//&|
23311 p
23312 q
23313 }'
23314
23315 gl_cv_absolute_limits_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23316 sed -n "$gl_absolute_header_sed"`
23317
23318 gl_header=$gl_cv_absolute_limits_h
23319 gl_cv_next_limits_h='"'$gl_header'"'
23320 else
23321 gl_cv_next_limits_h='<'limits.h'>'
23322 fi
23323
23324
23325 fi
23326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_limits_h" >&5
23327 printf "%s\n" "$gl_cv_next_limits_h" >&6; }
23328 fi
23329 NEXT_LIMITS_H=$gl_cv_next_limits_h
23330
23331 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23332 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23333 gl_next_as_first_directive='<'limits.h'>'
23334 else
23335 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23336 gl_next_as_first_directive=$gl_cv_next_limits_h
23337 fi
23338 NEXT_AS_FIRST_DIRECTIVE_LIMITS_H=$gl_next_as_first_directive
23339
23340
23341
23342
23343
23344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether limits.h has WORD_BIT, BOOL_WIDTH etc." >&5
23345 printf %s "checking whether limits.h has WORD_BIT, BOOL_WIDTH etc.... " >&6; }
23346 if test ${gl_cv_header_limits_width+y}
23347 then :
23348 printf %s "(cached) " >&6
23349 else $as_nop
23350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23351 /* end confdefs.h. */
23352 #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
23353 #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
23354 #endif
23355 #include <limits.h>
23356 long long llm = LLONG_MAX;
23357 int wb = WORD_BIT;
23358 int ullw = ULLONG_WIDTH;
23359 int bw = BOOL_WIDTH;
23360
23361 int
23362 main (void)
23363 {
23364
23365 ;
23366 return 0;
23367 }
23368 _ACEOF
23369 if ac_fn_c_try_compile "$LINENO"
23370 then :
23371 gl_cv_header_limits_width=yes
23372 else $as_nop
23373 gl_cv_header_limits_width=no
23374 fi
23375 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23376 fi
23377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_limits_width" >&5
23378 printf "%s\n" "$gl_cv_header_limits_width" >&6; }
23379 if test "$gl_cv_header_limits_width" = yes; then
23380 GL_GENERATE_LIMITS_H=false
23381 else
23382 GL_GENERATE_LIMITS_H=true
23383 fi
23384
23385
23386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
23387 printf %s "checking for wint_t... " >&6; }
23388 if test ${gt_cv_c_wint_t+y}
23389 then :
23390 printf %s "(cached) " >&6
23391 else $as_nop
23392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23393 /* end confdefs.h. */
23394 #include <wchar.h>
23395 wint_t foo = (wchar_t)'\0';
23396 int
23397 main (void)
23398 {
23399
23400 ;
23401 return 0;
23402 }
23403 _ACEOF
23404 if ac_fn_c_try_compile "$LINENO"
23405 then :
23406 gt_cv_c_wint_t=yes
23407 else $as_nop
23408 gt_cv_c_wint_t=no
23409 fi
23410 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23411 fi
23412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
23413 printf "%s\n" "$gt_cv_c_wint_t" >&6; }
23414 if test $gt_cv_c_wint_t = yes; then
23415
23416 printf "%s\n" "#define HAVE_WINT_T 1" >>confdefs.h
23417
23418
23419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether wint_t is large enough" >&5
23420 printf %s "checking whether wint_t is large enough... " >&6; }
23421 if test ${gl_cv_type_wint_t_large_enough+y}
23422 then :
23423 printf %s "(cached) " >&6
23424 else $as_nop
23425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23426 /* end confdefs.h. */
23427 #include <wchar.h>
23428 int verify[sizeof (wint_t) < sizeof (int) ? -1 : 1];
23429
23430 int
23431 main (void)
23432 {
23433
23434 ;
23435 return 0;
23436 }
23437 _ACEOF
23438 if ac_fn_c_try_compile "$LINENO"
23439 then :
23440 gl_cv_type_wint_t_large_enough=yes
23441 else $as_nop
23442 gl_cv_type_wint_t_large_enough=no
23443 fi
23444 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23445 fi
23446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wint_t_large_enough" >&5
23447 printf "%s\n" "$gl_cv_type_wint_t_large_enough" >&6; }
23448 if test $gl_cv_type_wint_t_large_enough = no; then
23449 GNULIBHEADERS_OVERRIDE_WINT_T=1
23450 else
23451 GNULIBHEADERS_OVERRIDE_WINT_T=0
23452 fi
23453 else
23454 GNULIBHEADERS_OVERRIDE_WINT_T=0
23455 fi
23456
23457
23458
23459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler produces multi-arch binaries" >&5
23460 printf %s "checking whether the compiler produces multi-arch binaries... " >&6; }
23461 if test ${gl_cv_c_multiarch+y}
23462 then :
23463 printf %s "(cached) " >&6
23464 else $as_nop
23465 gl_cv_c_multiarch=no
23466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23467 /* end confdefs.h. */
23468 #ifndef __APPLE_CC__
23469 not a universal capable compiler
23470 #endif
23471 typedef int dummy;
23472
23473 _ACEOF
23474 if ac_fn_c_try_compile "$LINENO"
23475 then :
23476
23477 arch=
23478 prev=
23479 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
23480 if test -n "$prev"; then
23481 case $word in
23482 i?86 | x86_64 | ppc | ppc64 | arm | arm64)
23483 if test -z "$arch" || test "$arch" = "$word"; then
23484 arch="$word"
23485 else
23486 gl_cv_c_multiarch=yes
23487 fi
23488 ;;
23489 esac
23490 prev=
23491 else
23492 if test "x$word" = "x-arch"; then
23493 prev=arch
23494 fi
23495 fi
23496 done
23497
23498 fi
23499 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23500
23501 fi
23502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_multiarch" >&5
23503 printf "%s\n" "$gl_cv_c_multiarch" >&6; }
23504 if test $gl_cv_c_multiarch = yes; then
23505 APPLE_UNIVERSAL_BUILD=1
23506 else
23507 APPLE_UNIVERSAL_BUILD=0
23508 fi
23509
23510
23511
23512
23513
23514
23515
23516
23517 printf "%s\n" "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
23518
23519
23520 printf "%s\n" "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23521
23522
23523
23524 if test $ac_cv_header_wchar_h = yes; then
23525 HAVE_WCHAR_H=1
23526 else
23527 HAVE_WCHAR_H=0
23528 fi
23529
23530
23531
23532 if test $ac_cv_header_inttypes_h = yes; then
23533 HAVE_INTTYPES_H=1
23534 else
23535 HAVE_INTTYPES_H=0
23536 fi
23537
23538
23539
23540 if test $ac_cv_header_sys_types_h = yes; then
23541 HAVE_SYS_TYPES_H=1
23542 else
23543 HAVE_SYS_TYPES_H=0
23544 fi
23545
23546
23547
23548
23549
23550
23551
23552
23553
23554
23555
23556 if test $gl_cv_have_include_next = yes; then
23557 gl_cv_next_stdint_h='<'stdint.h'>'
23558 else
23559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
23560 printf %s "checking absolute name of <stdint.h>... " >&6; }
23561 if test ${gl_cv_next_stdint_h+y}
23562 then :
23563 printf %s "(cached) " >&6
23564 else $as_nop
23565
23566 if test $ac_cv_header_stdint_h = yes; then
23567
23568
23569
23570
23571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23572 /* end confdefs.h. */
23573 #include <stdint.h>
23574 _ACEOF
23575 case "$host_os" in
23576 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23577 *) gl_absname_cpp="$ac_cpp" ;;
23578 esac
23579
23580 case "$host_os" in
23581 mingw*)
23582 gl_dirsep_regex='[/\\]'
23583 ;;
23584 *)
23585 gl_dirsep_regex='\/'
23586 ;;
23587 esac
23588 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23589 gl_header_literal_regex=`echo 'stdint.h' \
23590 | sed -e "$gl_make_literal_regex_sed"`
23591 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23592 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23593 s|^/[^/]|//&|
23594 p
23595 q
23596 }'
23597
23598 gl_cv_absolute_stdint_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23599 sed -n "$gl_absolute_header_sed"`
23600
23601 gl_header=$gl_cv_absolute_stdint_h
23602 gl_cv_next_stdint_h='"'$gl_header'"'
23603 else
23604 gl_cv_next_stdint_h='<'stdint.h'>'
23605 fi
23606
23607
23608 fi
23609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
23610 printf "%s\n" "$gl_cv_next_stdint_h" >&6; }
23611 fi
23612 NEXT_STDINT_H=$gl_cv_next_stdint_h
23613
23614 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23615 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23616 gl_next_as_first_directive='<'stdint.h'>'
23617 else
23618 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23619 gl_next_as_first_directive=$gl_cv_next_stdint_h
23620 fi
23621 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
23622
23623
23624
23625
23626 if test $ac_cv_header_stdint_h = yes; then
23627 HAVE_STDINT_H=1
23628 else
23629 HAVE_STDINT_H=0
23630 fi
23631
23632
23633 if test $ac_cv_header_stdint_h = yes; then
23634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
23635 printf %s "checking whether stdint.h conforms to C99... " >&6; }
23636 if test ${gl_cv_header_working_stdint_h+y}
23637 then :
23638 printf %s "(cached) " >&6
23639 else $as_nop
23640 gl_cv_header_working_stdint_h=no
23641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23642 /* end confdefs.h. */
23643
23644
23645 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
23646 #define __STDC_CONSTANT_MACROS 1
23647 #define __STDC_LIMIT_MACROS 1
23648 #include <stdint.h>
23649 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
23650 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
23651 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
23652 #endif
23653
23654
23655 #include <stddef.h>
23656 #include <signal.h>
23657 #if HAVE_WCHAR_H
23658 # include <wchar.h>
23659 #endif
23660
23661
23662 #ifdef INT8_MAX
23663 int8_t a1 = INT8_MAX;
23664 int8_t a1min = INT8_MIN;
23665 #endif
23666 #ifdef INT16_MAX
23667 int16_t a2 = INT16_MAX;
23668 int16_t a2min = INT16_MIN;
23669 #endif
23670 #ifdef INT32_MAX
23671 int32_t a3 = INT32_MAX;
23672 int32_t a3min = INT32_MIN;
23673 #endif
23674 #ifdef INT64_MAX
23675 int64_t a4 = INT64_MAX;
23676 int64_t a4min = INT64_MIN;
23677 #endif
23678 #ifdef UINT8_MAX
23679 uint8_t b1 = UINT8_MAX;
23680 #else
23681 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
23682 #endif
23683 #ifdef UINT16_MAX
23684 uint16_t b2 = UINT16_MAX;
23685 #endif
23686 #ifdef UINT32_MAX
23687 uint32_t b3 = UINT32_MAX;
23688 #endif
23689 #ifdef UINT64_MAX
23690 uint64_t b4 = UINT64_MAX;
23691 #endif
23692 int_least8_t c1 = INT8_C (0x7f);
23693 int_least8_t c1max = INT_LEAST8_MAX;
23694 int_least8_t c1min = INT_LEAST8_MIN;
23695 int_least16_t c2 = INT16_C (0x7fff);
23696 int_least16_t c2max = INT_LEAST16_MAX;
23697 int_least16_t c2min = INT_LEAST16_MIN;
23698 int_least32_t c3 = INT32_C (0x7fffffff);
23699 int_least32_t c3max = INT_LEAST32_MAX;
23700 int_least32_t c3min = INT_LEAST32_MIN;
23701 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
23702 int_least64_t c4max = INT_LEAST64_MAX;
23703 int_least64_t c4min = INT_LEAST64_MIN;
23704 uint_least8_t d1 = UINT8_C (0xff);
23705 uint_least8_t d1max = UINT_LEAST8_MAX;
23706 uint_least16_t d2 = UINT16_C (0xffff);
23707 uint_least16_t d2max = UINT_LEAST16_MAX;
23708 uint_least32_t d3 = UINT32_C (0xffffffff);
23709 uint_least32_t d3max = UINT_LEAST32_MAX;
23710 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
23711 uint_least64_t d4max = UINT_LEAST64_MAX;
23712 int_fast8_t e1 = INT_FAST8_MAX;
23713 int_fast8_t e1min = INT_FAST8_MIN;
23714 int_fast16_t e2 = INT_FAST16_MAX;
23715 int_fast16_t e2min = INT_FAST16_MIN;
23716 int_fast32_t e3 = INT_FAST32_MAX;
23717 int_fast32_t e3min = INT_FAST32_MIN;
23718 int_fast64_t e4 = INT_FAST64_MAX;
23719 int_fast64_t e4min = INT_FAST64_MIN;
23720 uint_fast8_t f1 = UINT_FAST8_MAX;
23721 uint_fast16_t f2 = UINT_FAST16_MAX;
23722 uint_fast32_t f3 = UINT_FAST32_MAX;
23723 uint_fast64_t f4 = UINT_FAST64_MAX;
23724 #ifdef INTPTR_MAX
23725 intptr_t g = INTPTR_MAX;
23726 intptr_t gmin = INTPTR_MIN;
23727 #endif
23728 #ifdef UINTPTR_MAX
23729 uintptr_t h = UINTPTR_MAX;
23730 #endif
23731 intmax_t i = INTMAX_MAX;
23732 uintmax_t j = UINTMAX_MAX;
23733
23734 /* Check that SIZE_MAX has the correct type, if possible. */
23735 #if 201112 <= __STDC_VERSION__
23736 int k = _Generic (SIZE_MAX, size_t: 0);
23737 #elif (2 <= __GNUC__ || 4 <= __clang_major__ || defined __IBM__TYPEOF__ \
23738 || (0x5110 <= __SUNPRO_C && !__STDC__))
23739 extern size_t k;
23740 extern __typeof__ (SIZE_MAX) k;
23741 #endif
23742
23743 #include <limits.h> /* for CHAR_BIT */
23744 #define TYPE_MINIMUM(t) \
23745 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
23746 #define TYPE_MAXIMUM(t) \
23747 ((t) ((t) 0 < (t) -1 \
23748 ? (t) -1 \
23749 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
23750 struct s {
23751 int check_PTRDIFF:
23752 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
23753 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
23754 ? 1 : -1;
23755 /* Detect bug in FreeBSD 6.0/ia64 and FreeBSD 13.0/arm64. */
23756 int check_SIG_ATOMIC:
23757 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
23758 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
23759 ? 1 : -1;
23760 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
23761 int check_WCHAR:
23762 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
23763 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
23764 ? 1 : -1;
23765 /* Detect bug in mingw. */
23766 int check_WINT:
23767 WINT_MIN == TYPE_MINIMUM (wint_t)
23768 && WINT_MAX == TYPE_MAXIMUM (wint_t)
23769 ? 1 : -1;
23770
23771 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
23772 int check_UINT8_C:
23773 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
23774 int check_UINT16_C:
23775 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
23776
23777 /* Detect bugs in OpenBSD 3.9 stdint.h. */
23778 #ifdef UINT8_MAX
23779 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
23780 #endif
23781 #ifdef UINT16_MAX
23782 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
23783 #endif
23784 #ifdef UINT32_MAX
23785 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
23786 #endif
23787 #ifdef UINT64_MAX
23788 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
23789 #endif
23790 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
23791 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
23792 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
23793 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
23794 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
23795 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
23796 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
23797 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
23798 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
23799 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
23800 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
23801 };
23802
23803 int
23804 main (void)
23805 {
23806
23807 ;
23808 return 0;
23809 }
23810 _ACEOF
23811 if ac_fn_c_try_compile "$LINENO"
23812 then :
23813 if test "$cross_compiling" = yes
23814 then :
23815 case "$host_os" in
23816 # Guess yes on native Windows.
23817 mingw*) gl_cv_header_working_stdint_h="guessing yes" ;;
23818 # In general, assume it works.
23819 *) gl_cv_header_working_stdint_h="guessing yes" ;;
23820 esac
23821
23822 else $as_nop
23823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23824 /* end confdefs.h. */
23825
23826
23827 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
23828 #define __STDC_CONSTANT_MACROS 1
23829 #define __STDC_LIMIT_MACROS 1
23830 #include <stdint.h>
23831
23832
23833 #include <stddef.h>
23834 #include <signal.h>
23835 #if HAVE_WCHAR_H
23836 # include <wchar.h>
23837 #endif
23838
23839
23840 #include <stdio.h>
23841 #include <string.h>
23842 #define MVAL(macro) MVAL1(macro)
23843 #define MVAL1(expression) #expression
23844 static const char *macro_values[] =
23845 {
23846 #ifdef INT8_MAX
23847 MVAL (INT8_MAX),
23848 #endif
23849 #ifdef INT16_MAX
23850 MVAL (INT16_MAX),
23851 #endif
23852 #ifdef INT32_MAX
23853 MVAL (INT32_MAX),
23854 #endif
23855 #ifdef INT64_MAX
23856 MVAL (INT64_MAX),
23857 #endif
23858 #ifdef UINT8_MAX
23859 MVAL (UINT8_MAX),
23860 #endif
23861 #ifdef UINT16_MAX
23862 MVAL (UINT16_MAX),
23863 #endif
23864 #ifdef UINT32_MAX
23865 MVAL (UINT32_MAX),
23866 #endif
23867 #ifdef UINT64_MAX
23868 MVAL (UINT64_MAX),
23869 #endif
23870 NULL
23871 };
23872
23873 int
23874 main (void)
23875 {
23876
23877 const char **mv;
23878 for (mv = macro_values; *mv != NULL; mv++)
23879 {
23880 const char *value = *mv;
23881 /* Test whether it looks like a cast expression. */
23882 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
23883 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
23884 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
23885 || strncmp (value, "((int)"/*)*/, 6) == 0
23886 || strncmp (value, "((signed short)"/*)*/, 15) == 0
23887 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
23888 return mv - macro_values + 1;
23889 }
23890 return 0;
23891
23892 ;
23893 return 0;
23894 }
23895 _ACEOF
23896 if ac_fn_c_try_run "$LINENO"
23897 then :
23898 gl_cv_header_working_stdint_h=yes
23899 fi
23900 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23901 conftest.$ac_objext conftest.beam conftest.$ac_ext
23902 fi
23903
23904
23905 fi
23906 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23907
23908 fi
23909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
23910 printf "%s\n" "$gl_cv_header_working_stdint_h" >&6; }
23911 fi
23912
23913 HAVE_C99_STDINT_H=0
23914 HAVE_SYS_BITYPES_H=0
23915 HAVE_SYS_INTTYPES_H=0
23916 GL_GENERATE_STDINT_H=true
23917 case "$gl_cv_header_working_stdint_h" in
23918 *yes)
23919 HAVE_C99_STDINT_H=1
23920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stdint.h works without ISO C predefines" >&5
23921 printf %s "checking whether stdint.h works without ISO C predefines... " >&6; }
23922 if test ${gl_cv_header_stdint_without_STDC_macros+y}
23923 then :
23924 printf %s "(cached) " >&6
23925 else $as_nop
23926 gl_cv_header_stdint_without_STDC_macros=no
23927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23928 /* end confdefs.h. */
23929
23930
23931 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
23932 #include <stdint.h>
23933
23934
23935 #include <stddef.h>
23936 #include <signal.h>
23937 #if HAVE_WCHAR_H
23938 # include <wchar.h>
23939 #endif
23940
23941
23942 intmax_t im = INTMAX_MAX;
23943 int32_t i32 = INT32_C (0x7fffffff);
23944
23945 int
23946 main (void)
23947 {
23948
23949 ;
23950 return 0;
23951 }
23952 _ACEOF
23953 if ac_fn_c_try_compile "$LINENO"
23954 then :
23955 gl_cv_header_stdint_without_STDC_macros=yes
23956 fi
23957 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23958
23959 fi
23960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_without_STDC_macros" >&5
23961 printf "%s\n" "$gl_cv_header_stdint_without_STDC_macros" >&6; }
23962
23963 if test $gl_cv_header_stdint_without_STDC_macros = no; then
23964
23965 printf "%s\n" "#define __STDC_CONSTANT_MACROS 1" >>confdefs.h
23966
23967
23968 printf "%s\n" "#define __STDC_LIMIT_MACROS 1" >>confdefs.h
23969
23970 fi
23971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stdint.h has UINTMAX_WIDTH etc." >&5
23972 printf %s "checking whether stdint.h has UINTMAX_WIDTH etc.... " >&6; }
23973 if test ${gl_cv_header_stdint_width+y}
23974 then :
23975 printf %s "(cached) " >&6
23976 else $as_nop
23977 gl_cv_header_stdint_width=no
23978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23979 /* end confdefs.h. */
23980
23981 /* Work if build is not clean. */
23982 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1
23983 #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
23984 #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
23985 #endif
23986 #include <stdint.h>
23987
23988 #include <stddef.h>
23989 #include <signal.h>
23990 #if HAVE_WCHAR_H
23991 # include <wchar.h>
23992 #endif
23993
23994 int iw = UINTMAX_WIDTH;
23995
23996 int
23997 main (void)
23998 {
23999
24000 ;
24001 return 0;
24002 }
24003 _ACEOF
24004 if ac_fn_c_try_compile "$LINENO"
24005 then :
24006 gl_cv_header_stdint_width=yes
24007 fi
24008 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24009 fi
24010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_width" >&5
24011 printf "%s\n" "$gl_cv_header_stdint_width" >&6; }
24012 if test "$gl_cv_header_stdint_width" = yes; then
24013 GL_GENERATE_STDINT_H=false
24014 fi
24015 ;;
24016 *)
24017 ac_fn_c_check_header_compile "$LINENO" "sys/inttypes.h" "ac_cv_header_sys_inttypes_h" "$ac_includes_default"
24018 if test "x$ac_cv_header_sys_inttypes_h" = xyes
24019 then :
24020 printf "%s\n" "#define HAVE_SYS_INTTYPES_H 1" >>confdefs.h
24021
24022 fi
24023 ac_fn_c_check_header_compile "$LINENO" "sys/bitypes.h" "ac_cv_header_sys_bitypes_h" "$ac_includes_default"
24024 if test "x$ac_cv_header_sys_bitypes_h" = xyes
24025 then :
24026 printf "%s\n" "#define HAVE_SYS_BITYPES_H 1" >>confdefs.h
24027
24028 fi
24029
24030 if test $ac_cv_header_sys_inttypes_h = yes; then
24031 HAVE_SYS_INTTYPES_H=1
24032 fi
24033 if test $ac_cv_header_sys_bitypes_h = yes; then
24034 HAVE_SYS_BITYPES_H=1
24035 fi
24036
24037
24038 if test $APPLE_UNIVERSAL_BUILD = 0; then
24039
24040
24041 for gltype in ptrdiff_t size_t ; do
24042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
24043 printf %s "checking for bit size of $gltype... " >&6; }
24044 if eval test \${gl_cv_bitsizeof_${gltype}+y}
24045 then :
24046 printf %s "(cached) " >&6
24047 else $as_nop
24048 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
24049 #include <stddef.h>
24050 #include <signal.h>
24051 #if HAVE_WCHAR_H
24052 # include <wchar.h>
24053 #endif
24054
24055 #include <limits.h>"
24056 then :
24057
24058 else $as_nop
24059 result=unknown
24060 fi
24061
24062 eval gl_cv_bitsizeof_${gltype}=\$result
24063
24064 fi
24065 eval ac_res=\$gl_cv_bitsizeof_${gltype}
24066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24067 printf "%s\n" "$ac_res" >&6; }
24068 eval result=\$gl_cv_bitsizeof_${gltype}
24069 if test $result = unknown; then
24070 result=0
24071 fi
24072 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
24073 printf "%s\n" "#define BITSIZEOF_${GLTYPE} $result" >>confdefs.h
24074
24075 eval BITSIZEOF_${GLTYPE}=\$result
24076 done
24077
24078
24079 fi
24080
24081
24082 for gltype in sig_atomic_t wchar_t wint_t ; do
24083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
24084 printf %s "checking for bit size of $gltype... " >&6; }
24085 if eval test \${gl_cv_bitsizeof_${gltype}+y}
24086 then :
24087 printf %s "(cached) " >&6
24088 else $as_nop
24089 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
24090 #include <stddef.h>
24091 #include <signal.h>
24092 #if HAVE_WCHAR_H
24093 # include <wchar.h>
24094 #endif
24095
24096 #include <limits.h>"
24097 then :
24098
24099 else $as_nop
24100 result=unknown
24101 fi
24102
24103 eval gl_cv_bitsizeof_${gltype}=\$result
24104
24105 fi
24106 eval ac_res=\$gl_cv_bitsizeof_${gltype}
24107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24108 printf "%s\n" "$ac_res" >&6; }
24109 eval result=\$gl_cv_bitsizeof_${gltype}
24110 if test $result = unknown; then
24111 result=0
24112 fi
24113 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
24114 printf "%s\n" "#define BITSIZEOF_${GLTYPE} $result" >>confdefs.h
24115
24116 eval BITSIZEOF_${GLTYPE}=\$result
24117 done
24118
24119
24120
24121
24122 for gltype in sig_atomic_t wchar_t wint_t ; do
24123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
24124 printf %s "checking whether $gltype is signed... " >&6; }
24125 if eval test \${gl_cv_type_${gltype}_signed+y}
24126 then :
24127 printf %s "(cached) " >&6
24128 else $as_nop
24129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24130 /* end confdefs.h. */
24131
24132 #include <stddef.h>
24133 #include <signal.h>
24134 #if HAVE_WCHAR_H
24135 # include <wchar.h>
24136 #endif
24137
24138 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
24139 int
24140 main (void)
24141 {
24142
24143 ;
24144 return 0;
24145 }
24146 _ACEOF
24147 if ac_fn_c_try_compile "$LINENO"
24148 then :
24149 result=yes
24150 else $as_nop
24151 result=no
24152 fi
24153 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24154 eval gl_cv_type_${gltype}_signed=\$result
24155
24156 fi
24157 eval ac_res=\$gl_cv_type_${gltype}_signed
24158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24159 printf "%s\n" "$ac_res" >&6; }
24160 eval result=\$gl_cv_type_${gltype}_signed
24161 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
24162 if test "$result" = yes; then
24163 printf "%s\n" "#define HAVE_SIGNED_${GLTYPE} 1" >>confdefs.h
24164
24165 eval HAVE_SIGNED_${GLTYPE}=1
24166 else
24167 eval HAVE_SIGNED_${GLTYPE}=0
24168 fi
24169 done
24170
24171
24172 gl_cv_type_ptrdiff_t_signed=yes
24173 gl_cv_type_size_t_signed=no
24174 if test $APPLE_UNIVERSAL_BUILD = 0; then
24175
24176
24177 for gltype in ptrdiff_t size_t ; do
24178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
24179 printf %s "checking for $gltype integer literal suffix... " >&6; }
24180 if eval test \${gl_cv_type_${gltype}_suffix+y}
24181 then :
24182 printf %s "(cached) " >&6
24183 else $as_nop
24184 eval gl_cv_type_${gltype}_suffix=no
24185 eval result=\$gl_cv_type_${gltype}_signed
24186 if test "$result" = yes; then
24187 glsufu=
24188 else
24189 glsufu=u
24190 fi
24191 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
24192 case $glsuf in
24193 '') gltype1='int';;
24194 l) gltype1='long int';;
24195 ll) gltype1='long long int';;
24196 i64) gltype1='__int64';;
24197 u) gltype1='unsigned int';;
24198 ul) gltype1='unsigned long int';;
24199 ull) gltype1='unsigned long long int';;
24200 ui64)gltype1='unsigned __int64';;
24201 esac
24202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24203 /* end confdefs.h. */
24204
24205 #include <stddef.h>
24206 #include <signal.h>
24207 #if HAVE_WCHAR_H
24208 # include <wchar.h>
24209 #endif
24210
24211 extern $gltype foo;
24212 extern $gltype1 foo;
24213 int
24214 main (void)
24215 {
24216
24217 ;
24218 return 0;
24219 }
24220 _ACEOF
24221 if ac_fn_c_try_compile "$LINENO"
24222 then :
24223 eval gl_cv_type_${gltype}_suffix=\$glsuf
24224 fi
24225 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24226 eval result=\$gl_cv_type_${gltype}_suffix
24227 test "$result" != no && break
24228 done
24229 fi
24230 eval ac_res=\$gl_cv_type_${gltype}_suffix
24231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24232 printf "%s\n" "$ac_res" >&6; }
24233 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
24234 eval result=\$gl_cv_type_${gltype}_suffix
24235 test "$result" = no && result=
24236 eval ${GLTYPE}_SUFFIX=\$result
24237 printf "%s\n" "#define ${GLTYPE}_SUFFIX $result" >>confdefs.h
24238
24239 done
24240
24241
24242 fi
24243
24244
24245 for gltype in sig_atomic_t wchar_t wint_t ; do
24246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
24247 printf %s "checking for $gltype integer literal suffix... " >&6; }
24248 if eval test \${gl_cv_type_${gltype}_suffix+y}
24249 then :
24250 printf %s "(cached) " >&6
24251 else $as_nop
24252 eval gl_cv_type_${gltype}_suffix=no
24253 eval result=\$gl_cv_type_${gltype}_signed
24254 if test "$result" = yes; then
24255 glsufu=
24256 else
24257 glsufu=u
24258 fi
24259 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
24260 case $glsuf in
24261 '') gltype1='int';;
24262 l) gltype1='long int';;
24263 ll) gltype1='long long int';;
24264 i64) gltype1='__int64';;
24265 u) gltype1='unsigned int';;
24266 ul) gltype1='unsigned long int';;
24267 ull) gltype1='unsigned long long int';;
24268 ui64)gltype1='unsigned __int64';;
24269 esac
24270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24271 /* end confdefs.h. */
24272
24273 #include <stddef.h>
24274 #include <signal.h>
24275 #if HAVE_WCHAR_H
24276 # include <wchar.h>
24277 #endif
24278
24279 extern $gltype foo;
24280 extern $gltype1 foo;
24281 int
24282 main (void)
24283 {
24284
24285 ;
24286 return 0;
24287 }
24288 _ACEOF
24289 if ac_fn_c_try_compile "$LINENO"
24290 then :
24291 eval gl_cv_type_${gltype}_suffix=\$glsuf
24292 fi
24293 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24294 eval result=\$gl_cv_type_${gltype}_suffix
24295 test "$result" != no && break
24296 done
24297 fi
24298 eval ac_res=\$gl_cv_type_${gltype}_suffix
24299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24300 printf "%s\n" "$ac_res" >&6; }
24301 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
24302 eval result=\$gl_cv_type_${gltype}_suffix
24303 test "$result" = no && result=
24304 eval ${GLTYPE}_SUFFIX=\$result
24305 printf "%s\n" "#define ${GLTYPE}_SUFFIX $result" >>confdefs.h
24306
24307 done
24308
24309
24310
24311 if test $GNULIBHEADERS_OVERRIDE_WINT_T = 1; then
24312 BITSIZEOF_WINT_T=32
24313 fi
24314
24315 ;;
24316 esac
24317
24318
24319
24320 GL_GENERATE_LIMITS_H=true
24321
24322
24323
24324
24325
24326
24327
24328 HAVE_DECL_IMAXABS=1;
24329 HAVE_DECL_IMAXDIV=1;
24330 HAVE_DECL_STRTOIMAX=1;
24331 HAVE_DECL_STRTOUMAX=1;
24332 HAVE_IMAXDIV_T=1;
24333 REPLACE_STRTOIMAX=0;
24334 REPLACE_STRTOUMAX=0;
24335 INT32_MAX_LT_INTMAX_MAX=1;
24336 INT64_MAX_EQ_LONG_MAX='defined _LP64';
24337 PRIPTR_PREFIX=__PRIPTR_PREFIX;
24338 UINT32_MAX_LT_UINTMAX_MAX=1;
24339 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
24340
24341
24342
24343
24344
24345
24346
24347
24348
24349
24350
24351
24352
24353
24354
24355 if test $gl_cv_have_include_next = yes; then
24356 gl_cv_next_inttypes_h='<'inttypes.h'>'
24357 else
24358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
24359 printf %s "checking absolute name of <inttypes.h>... " >&6; }
24360 if test ${gl_cv_next_inttypes_h+y}
24361 then :
24362 printf %s "(cached) " >&6
24363 else $as_nop
24364
24365 if test $ac_cv_header_inttypes_h = yes; then
24366
24367
24368
24369
24370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24371 /* end confdefs.h. */
24372 #include <inttypes.h>
24373 _ACEOF
24374 case "$host_os" in
24375 aix*) gl_absname_cpp="$ac_cpp -C" ;;
24376 *) gl_absname_cpp="$ac_cpp" ;;
24377 esac
24378
24379 case "$host_os" in
24380 mingw*)
24381 gl_dirsep_regex='[/\\]'
24382 ;;
24383 *)
24384 gl_dirsep_regex='\/'
24385 ;;
24386 esac
24387 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24388 gl_header_literal_regex=`echo 'inttypes.h' \
24389 | sed -e "$gl_make_literal_regex_sed"`
24390 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24391 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24392 s|^/[^/]|//&|
24393 p
24394 q
24395 }'
24396
24397 gl_cv_absolute_inttypes_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24398 sed -n "$gl_absolute_header_sed"`
24399
24400 gl_header=$gl_cv_absolute_inttypes_h
24401 gl_cv_next_inttypes_h='"'$gl_header'"'
24402 else
24403 gl_cv_next_inttypes_h='<'inttypes.h'>'
24404 fi
24405
24406
24407 fi
24408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
24409 printf "%s\n" "$gl_cv_next_inttypes_h" >&6; }
24410 fi
24411 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
24412
24413 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24414 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24415 gl_next_as_first_directive='<'inttypes.h'>'
24416 else
24417 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24418 gl_next_as_first_directive=$gl_cv_next_inttypes_h
24419 fi
24420 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
24421
24422
24423
24424
24425
24426
24427
24428
24429
24430
24431
24432
24433
24434
24435
24436 GL_GNULIB_IMAXABS=0
24437
24438
24439
24440 GL_GNULIB_IMAXDIV=0
24441
24442
24443
24444 GL_GNULIB_STRTOIMAX=0
24445
24446
24447
24448 GL_GNULIB_STRTOUMAX=0
24449
24450
24451
24452
24453
24454 HAVE_NL_LANGINFO=1;
24455 REPLACE_NL_LANGINFO=0;
24456
24457
24458
24459
24460
24461
24462
24463
24464
24465
24466
24467
24468
24469
24470
24471
24472 if test $gl_cv_have_include_next = yes; then
24473 gl_cv_next_langinfo_h='<'langinfo.h'>'
24474 else
24475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <langinfo.h>" >&5
24476 printf %s "checking absolute name of <langinfo.h>... " >&6; }
24477 if test ${gl_cv_next_langinfo_h+y}
24478 then :
24479 printf %s "(cached) " >&6
24480 else $as_nop
24481
24482 if test $ac_cv_header_langinfo_h = yes; then
24483
24484
24485
24486
24487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24488 /* end confdefs.h. */
24489 #include <langinfo.h>
24490 _ACEOF
24491 case "$host_os" in
24492 aix*) gl_absname_cpp="$ac_cpp -C" ;;
24493 *) gl_absname_cpp="$ac_cpp" ;;
24494 esac
24495
24496 case "$host_os" in
24497 mingw*)
24498 gl_dirsep_regex='[/\\]'
24499 ;;
24500 *)
24501 gl_dirsep_regex='\/'
24502 ;;
24503 esac
24504 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24505 gl_header_literal_regex=`echo 'langinfo.h' \
24506 | sed -e "$gl_make_literal_regex_sed"`
24507 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24508 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24509 s|^/[^/]|//&|
24510 p
24511 q
24512 }'
24513
24514 gl_cv_absolute_langinfo_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24515 sed -n "$gl_absolute_header_sed"`
24516
24517 gl_header=$gl_cv_absolute_langinfo_h
24518 gl_cv_next_langinfo_h='"'$gl_header'"'
24519 else
24520 gl_cv_next_langinfo_h='<'langinfo.h'>'
24521 fi
24522
24523
24524 fi
24525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_langinfo_h" >&5
24526 printf "%s\n" "$gl_cv_next_langinfo_h" >&6; }
24527 fi
24528 NEXT_LANGINFO_H=$gl_cv_next_langinfo_h
24529
24530 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24531 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24532 gl_next_as_first_directive='<'langinfo.h'>'
24533 else
24534 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24535 gl_next_as_first_directive=$gl_cv_next_langinfo_h
24536 fi
24537 NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H=$gl_next_as_first_directive
24538
24539
24540
24541
24542
24543 HAVE_LANGINFO_CODESET=0
24544 HAVE_LANGINFO_T_FMT_AMPM=0
24545 HAVE_LANGINFO_ALTMON=0
24546 HAVE_LANGINFO_ERA=0
24547 HAVE_LANGINFO_YESEXPR=0
24548
24549 if test $ac_cv_header_langinfo_h = yes; then
24550 HAVE_LANGINFO_H=1
24551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines CODESET" >&5
24552 printf %s "checking whether langinfo.h defines CODESET... " >&6; }
24553 if test ${gl_cv_header_langinfo_codeset+y}
24554 then :
24555 printf %s "(cached) " >&6
24556 else $as_nop
24557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24558 /* end confdefs.h. */
24559 #include <langinfo.h>
24560 int a = CODESET;
24561
24562 int
24563 main (void)
24564 {
24565
24566 ;
24567 return 0;
24568 }
24569 _ACEOF
24570 if ac_fn_c_try_compile "$LINENO"
24571 then :
24572 gl_cv_header_langinfo_codeset=yes
24573 else $as_nop
24574 gl_cv_header_langinfo_codeset=no
24575 fi
24576 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24577
24578 fi
24579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_codeset" >&5
24580 printf "%s\n" "$gl_cv_header_langinfo_codeset" >&6; }
24581 if test $gl_cv_header_langinfo_codeset = yes; then
24582 HAVE_LANGINFO_CODESET=1
24583 fi
24584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines T_FMT_AMPM" >&5
24585 printf %s "checking whether langinfo.h defines T_FMT_AMPM... " >&6; }
24586 if test ${gl_cv_header_langinfo_t_fmt_ampm+y}
24587 then :
24588 printf %s "(cached) " >&6
24589 else $as_nop
24590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24591 /* end confdefs.h. */
24592 #include <langinfo.h>
24593 int a = T_FMT_AMPM;
24594
24595 int
24596 main (void)
24597 {
24598
24599 ;
24600 return 0;
24601 }
24602 _ACEOF
24603 if ac_fn_c_try_compile "$LINENO"
24604 then :
24605 gl_cv_header_langinfo_t_fmt_ampm=yes
24606 else $as_nop
24607 gl_cv_header_langinfo_t_fmt_ampm=no
24608 fi
24609 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24610
24611 fi
24612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_t_fmt_ampm" >&5
24613 printf "%s\n" "$gl_cv_header_langinfo_t_fmt_ampm" >&6; }
24614 if test $gl_cv_header_langinfo_t_fmt_ampm = yes; then
24615 HAVE_LANGINFO_T_FMT_AMPM=1
24616 fi
24617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines ALTMON_1" >&5
24618 printf %s "checking whether langinfo.h defines ALTMON_1... " >&6; }
24619 if test ${gl_cv_header_langinfo_altmon+y}
24620 then :
24621 printf %s "(cached) " >&6
24622 else $as_nop
24623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24624 /* end confdefs.h. */
24625 #include <langinfo.h>
24626 int a = ALTMON_1;
24627
24628 int
24629 main (void)
24630 {
24631
24632 ;
24633 return 0;
24634 }
24635 _ACEOF
24636 if ac_fn_c_try_compile "$LINENO"
24637 then :
24638 gl_cv_header_langinfo_altmon=yes
24639 else $as_nop
24640 gl_cv_header_langinfo_altmon=no
24641 fi
24642 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24643
24644 fi
24645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_altmon" >&5
24646 printf "%s\n" "$gl_cv_header_langinfo_altmon" >&6; }
24647 if test $gl_cv_header_langinfo_altmon = yes; then
24648 HAVE_LANGINFO_ALTMON=1
24649 fi
24650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines ERA" >&5
24651 printf %s "checking whether langinfo.h defines ERA... " >&6; }
24652 if test ${gl_cv_header_langinfo_era+y}
24653 then :
24654 printf %s "(cached) " >&6
24655 else $as_nop
24656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24657 /* end confdefs.h. */
24658 #include <langinfo.h>
24659 int a = ERA;
24660
24661 int
24662 main (void)
24663 {
24664
24665 ;
24666 return 0;
24667 }
24668 _ACEOF
24669 if ac_fn_c_try_compile "$LINENO"
24670 then :
24671 gl_cv_header_langinfo_era=yes
24672 else $as_nop
24673 gl_cv_header_langinfo_era=no
24674 fi
24675 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24676
24677 fi
24678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_era" >&5
24679 printf "%s\n" "$gl_cv_header_langinfo_era" >&6; }
24680 if test $gl_cv_header_langinfo_era = yes; then
24681 HAVE_LANGINFO_ERA=1
24682 fi
24683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines YESEXPR" >&5
24684 printf %s "checking whether langinfo.h defines YESEXPR... " >&6; }
24685 if test ${gl_cv_header_langinfo_yesexpr+y}
24686 then :
24687 printf %s "(cached) " >&6
24688 else $as_nop
24689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24690 /* end confdefs.h. */
24691 #include <langinfo.h>
24692 int a = YESEXPR;
24693
24694 int
24695 main (void)
24696 {
24697
24698 ;
24699 return 0;
24700 }
24701 _ACEOF
24702 if ac_fn_c_try_compile "$LINENO"
24703 then :
24704 gl_cv_header_langinfo_yesexpr=yes
24705 else $as_nop
24706 gl_cv_header_langinfo_yesexpr=no
24707 fi
24708 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24709
24710 fi
24711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_yesexpr" >&5
24712 printf "%s\n" "$gl_cv_header_langinfo_yesexpr" >&6; }
24713 if test $gl_cv_header_langinfo_yesexpr = yes; then
24714 HAVE_LANGINFO_YESEXPR=1
24715 fi
24716 else
24717 HAVE_LANGINFO_H=0
24718 fi
24719
24720
24721
24722
24723
24724
24725
24726
24727
24728
24729
24730
24731
24732 GL_GNULIB_NL_LANGINFO=0
24733
24734
24735
24736
24737 HAVE_NEWLOCALE=1;
24738 HAVE_DUPLOCALE=1;
24739 HAVE_FREELOCALE=1;
24740 REPLACE_LOCALECONV=0;
24741 REPLACE_SETLOCALE=0;
24742 REPLACE_NEWLOCALE=0;
24743 REPLACE_DUPLOCALE=0;
24744 REPLACE_FREELOCALE=0;
24745 REPLACE_STRUCT_LCONV=0;
24746 LOCALENAME_ENHANCE_LOCALE_FUNCS=0;
24747
24748
24749 REPLACE_NULL=0;
24750 HAVE_MAX_ALIGN_T=1;
24751 HAVE_WCHAR_T=1;
24752
24753
24754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
24755 printf %s "checking for wchar_t... " >&6; }
24756 if test ${gt_cv_c_wchar_t+y}
24757 then :
24758 printf %s "(cached) " >&6
24759 else $as_nop
24760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24761 /* end confdefs.h. */
24762 #include <stddef.h>
24763 wchar_t foo = (wchar_t)'\0';
24764 int
24765 main (void)
24766 {
24767
24768 ;
24769 return 0;
24770 }
24771 _ACEOF
24772 if ac_fn_c_try_compile "$LINENO"
24773 then :
24774 gt_cv_c_wchar_t=yes
24775 else $as_nop
24776 gt_cv_c_wchar_t=no
24777 fi
24778 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24779 fi
24780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
24781 printf "%s\n" "$gt_cv_c_wchar_t" >&6; }
24782 if test $gt_cv_c_wchar_t = yes; then
24783
24784 printf "%s\n" "#define HAVE_WCHAR_T 1" >>confdefs.h
24785
24786 fi
24787
24788
24789
24790
24791
24792
24793
24794 GL_GENERATE_STDDEF_H=false
24795
24796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for good max_align_t" >&5
24797 printf %s "checking for good max_align_t... " >&6; }
24798 if test ${gl_cv_type_max_align_t+y}
24799 then :
24800 printf %s "(cached) " >&6
24801 else $as_nop
24802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24803 /* end confdefs.h. */
24804 #include <stddef.h>
24805 unsigned int s = sizeof (max_align_t);
24806 #if defined __GNUC__ || defined __clang__ || defined __IBM__ALIGNOF__
24807 int check1[2 * (__alignof__ (double) <= __alignof__ (max_align_t)) - 1];
24808 int check2[2 * (__alignof__ (long double) <= __alignof__ (max_align_t)) - 1];
24809 #endif
24810 typedef struct { char a; max_align_t b; } max_helper;
24811 typedef struct { char a; long b; } long_helper;
24812 typedef struct { char a; double b; } double_helper;
24813 typedef struct { char a; long double b; } long_double_helper;
24814 int check3[2 * (offsetof (long_helper, b) <= offsetof (max_helper, b)) - 1];
24815 int check4[2 * (offsetof (double_helper, b) <= offsetof (max_helper, b)) - 1];
24816 int check5[2 * (offsetof (long_double_helper, b) <= offsetof (max_helper, b)) - 1];
24817
24818 int
24819 main (void)
24820 {
24821
24822 ;
24823 return 0;
24824 }
24825 _ACEOF
24826 if ac_fn_c_try_compile "$LINENO"
24827 then :
24828 gl_cv_type_max_align_t=yes
24829 else $as_nop
24830 gl_cv_type_max_align_t=no
24831 fi
24832 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24833
24834 fi
24835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_max_align_t" >&5
24836 printf "%s\n" "$gl_cv_type_max_align_t" >&6; }
24837 if test $gl_cv_type_max_align_t = no; then
24838 HAVE_MAX_ALIGN_T=0
24839 GL_GENERATE_STDDEF_H=true
24840 fi
24841
24842 if test $gt_cv_c_wchar_t = no; then
24843 HAVE_WCHAR_T=0
24844 GL_GENERATE_STDDEF_H=true
24845 fi
24846
24847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
24848 printf %s "checking whether NULL can be used in arbitrary expressions... " >&6; }
24849 if test ${gl_cv_decl_null_works+y}
24850 then :
24851 printf %s "(cached) " >&6
24852 else $as_nop
24853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24854 /* end confdefs.h. */
24855 #include <stddef.h>
24856 int test[2 * (sizeof NULL == sizeof (void *)) -1];
24857
24858 int
24859 main (void)
24860 {
24861
24862 ;
24863 return 0;
24864 }
24865 _ACEOF
24866 if ac_fn_c_try_compile "$LINENO"
24867 then :
24868 gl_cv_decl_null_works=yes
24869 else $as_nop
24870 gl_cv_decl_null_works=no
24871 fi
24872 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24873 fi
24874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
24875 printf "%s\n" "$gl_cv_decl_null_works" >&6; }
24876 if test $gl_cv_decl_null_works = no; then
24877 REPLACE_NULL=1
24878 GL_GENERATE_STDDEF_H=true
24879 fi
24880
24881 if $GL_GENERATE_STDDEF_H; then
24882
24883
24884
24885
24886
24887
24888
24889
24890 if test $gl_cv_have_include_next = yes; then
24891 gl_cv_next_stddef_h='<'stddef.h'>'
24892 else
24893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
24894 printf %s "checking absolute name of <stddef.h>... " >&6; }
24895 if test ${gl_cv_next_stddef_h+y}
24896 then :
24897 printf %s "(cached) " >&6
24898 else $as_nop
24899
24900
24901
24902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24903 /* end confdefs.h. */
24904 #include <stddef.h>
24905 _ACEOF
24906 case "$host_os" in
24907 aix*) gl_absname_cpp="$ac_cpp -C" ;;
24908 *) gl_absname_cpp="$ac_cpp" ;;
24909 esac
24910
24911 case "$host_os" in
24912 mingw*)
24913 gl_dirsep_regex='[/\\]'
24914 ;;
24915 *)
24916 gl_dirsep_regex='\/'
24917 ;;
24918 esac
24919 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24920 gl_header_literal_regex=`echo 'stddef.h' \
24921 | sed -e "$gl_make_literal_regex_sed"`
24922 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24923 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24924 s|^/[^/]|//&|
24925 p
24926 q
24927 }'
24928
24929 gl_cv_absolute_stddef_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24930 sed -n "$gl_absolute_header_sed"`
24931
24932 gl_header=$gl_cv_absolute_stddef_h
24933 gl_cv_next_stddef_h='"'$gl_header'"'
24934
24935
24936 fi
24937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
24938 printf "%s\n" "$gl_cv_next_stddef_h" >&6; }
24939 fi
24940 NEXT_STDDEF_H=$gl_cv_next_stddef_h
24941
24942 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24943 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24944 gl_next_as_first_directive='<'stddef.h'>'
24945 else
24946 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24947 gl_next_as_first_directive=$gl_cv_next_stddef_h
24948 fi
24949 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
24950
24951
24952
24953
24954 fi
24955
24956
24957
24958
24959
24960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether locale.h defines locale_t" >&5
24961 printf %s "checking whether locale.h defines locale_t... " >&6; }
24962 if test ${gl_cv_header_locale_has_locale_t+y}
24963 then :
24964 printf %s "(cached) " >&6
24965 else $as_nop
24966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24967 /* end confdefs.h. */
24968 #include <locale.h>
24969 locale_t x;
24970 int
24971 main (void)
24972 {
24973
24974 ;
24975 return 0;
24976 }
24977 _ACEOF
24978 if ac_fn_c_try_compile "$LINENO"
24979 then :
24980 gl_cv_header_locale_has_locale_t=yes
24981 else $as_nop
24982 gl_cv_header_locale_has_locale_t=no
24983 fi
24984 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24985
24986 fi
24987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_locale_has_locale_t" >&5
24988 printf "%s\n" "$gl_cv_header_locale_has_locale_t" >&6; }
24989
24990
24991 if test $ac_cv_header_xlocale_h = yes; then
24992 HAVE_XLOCALE_H=1
24993 if test $gl_cv_header_locale_has_locale_t = yes; then
24994 gl_cv_header_locale_h_needs_xlocale_h=no
24995 else
24996 gl_cv_header_locale_h_needs_xlocale_h=yes
24997 fi
24998 HAVE_LOCALE_T=1
24999 else
25000 HAVE_XLOCALE_H=0
25001 gl_cv_header_locale_h_needs_xlocale_h=no
25002 if test $gl_cv_header_locale_has_locale_t = yes; then
25003 HAVE_LOCALE_T=1
25004 else
25005 HAVE_LOCALE_T=0
25006 fi
25007 fi
25008
25009
25010
25011
25012
25013
25014
25015
25016
25017
25018
25019
25020 case "$host_os" in
25021 solaris*)
25022
25023 printf "%s\n" "#define _LCONV_C99 1" >>confdefs.h
25024
25025 ;;
25026 esac
25027
25028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether locale.h conforms to POSIX:2001" >&5
25029 printf %s "checking whether locale.h conforms to POSIX:2001... " >&6; }
25030 if test ${gl_cv_header_locale_h_posix2001+y}
25031 then :
25032 printf %s "(cached) " >&6
25033 else $as_nop
25034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25035 /* end confdefs.h. */
25036 #include <locale.h>
25037 int x = LC_MESSAGES;
25038 int y = sizeof (((struct lconv *) 0)->decimal_point);
25039 int
25040 main (void)
25041 {
25042
25043 ;
25044 return 0;
25045 }
25046 _ACEOF
25047 if ac_fn_c_try_compile "$LINENO"
25048 then :
25049 gl_cv_header_locale_h_posix2001=yes
25050 else $as_nop
25051 gl_cv_header_locale_h_posix2001=no
25052 fi
25053 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25054 fi
25055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_locale_h_posix2001" >&5
25056 printf "%s\n" "$gl_cv_header_locale_h_posix2001" >&6; }
25057
25058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct lconv is properly defined" >&5
25059 printf %s "checking whether struct lconv is properly defined... " >&6; }
25060 if test ${gl_cv_sys_struct_lconv_ok+y}
25061 then :
25062 printf %s "(cached) " >&6
25063 else $as_nop
25064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25065 /* end confdefs.h. */
25066 #include <locale.h>
25067 struct lconv l;
25068 int x = sizeof (l.decimal_point);
25069 int y = sizeof (l.int_p_cs_precedes);
25070 int
25071 main (void)
25072 {
25073
25074 ;
25075 return 0;
25076 }
25077 _ACEOF
25078 if ac_fn_c_try_compile "$LINENO"
25079 then :
25080 gl_cv_sys_struct_lconv_ok=yes
25081 else $as_nop
25082 gl_cv_sys_struct_lconv_ok=no
25083 fi
25084 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25085
25086 fi
25087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_lconv_ok" >&5
25088 printf "%s\n" "$gl_cv_sys_struct_lconv_ok" >&6; }
25089 if test $gl_cv_sys_struct_lconv_ok = no; then
25090 case "$host_os" in
25091 mingw*)
25092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25093 /* end confdefs.h. */
25094
25095 #ifdef _MSC_VER
25096 Special
25097 #endif
25098
25099 _ACEOF
25100 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25101 $EGREP "Special" >/dev/null 2>&1
25102 then :
25103
25104 else $as_nop
25105 REPLACE_STRUCT_LCONV=1
25106 fi
25107 rm -rf conftest*
25108
25109 ;;
25110 *) REPLACE_STRUCT_LCONV=1 ;;
25111 esac
25112 fi
25113
25114
25115
25116
25117
25118
25119
25120
25121
25122 if test $gl_cv_have_include_next = yes; then
25123 gl_cv_next_locale_h='<'locale.h'>'
25124 else
25125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <locale.h>" >&5
25126 printf %s "checking absolute name of <locale.h>... " >&6; }
25127 if test ${gl_cv_next_locale_h+y}
25128 then :
25129 printf %s "(cached) " >&6
25130 else $as_nop
25131
25132
25133
25134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25135 /* end confdefs.h. */
25136 #include <locale.h>
25137 _ACEOF
25138 case "$host_os" in
25139 aix*) gl_absname_cpp="$ac_cpp -C" ;;
25140 *) gl_absname_cpp="$ac_cpp" ;;
25141 esac
25142
25143 case "$host_os" in
25144 mingw*)
25145 gl_dirsep_regex='[/\\]'
25146 ;;
25147 *)
25148 gl_dirsep_regex='\/'
25149 ;;
25150 esac
25151 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
25152 gl_header_literal_regex=`echo 'locale.h' \
25153 | sed -e "$gl_make_literal_regex_sed"`
25154 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25155 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25156 s|^/[^/]|//&|
25157 p
25158 q
25159 }'
25160
25161 gl_cv_absolute_locale_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25162 sed -n "$gl_absolute_header_sed"`
25163
25164 gl_header=$gl_cv_absolute_locale_h
25165 gl_cv_next_locale_h='"'$gl_header'"'
25166
25167
25168 fi
25169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_locale_h" >&5
25170 printf "%s\n" "$gl_cv_next_locale_h" >&6; }
25171 fi
25172 NEXT_LOCALE_H=$gl_cv_next_locale_h
25173
25174 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25175 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25176 gl_next_as_first_directive='<'locale.h'>'
25177 else
25178 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25179 gl_next_as_first_directive=$gl_cv_next_locale_h
25180 fi
25181 NEXT_AS_FIRST_DIRECTIVE_LOCALE_H=$gl_next_as_first_directive
25182
25183
25184
25185
25186
25187
25188
25189
25190
25191
25192
25193 GL_GNULIB_LOCALECONV=0
25194
25195
25196
25197 GL_GNULIB_SETLOCALE=0
25198
25199
25200
25201 GL_GNULIB_SETLOCALE_NULL=0
25202
25203
25204
25205 GL_GNULIB_DUPLOCALE=0
25206
25207
25208
25209 GL_GNULIB_LOCALENAME=0
25210
25211
25212
25213
25214
25215 gl_threads_api=none
25216 LIBTHREAD=
25217 LTLIBTHREAD=
25218 LIBMULTITHREAD=
25219 LTLIBMULTITHREAD=
25220 if test "$gl_use_threads" != no; then
25221
25222
25223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
25224 printf %s "checking whether imported symbols can be declared weak... " >&6; }
25225 if test ${gl_cv_have_weak+y}
25226 then :
25227 printf %s "(cached) " >&6
25228 else $as_nop
25229 case "$host_os" in
25230 cygwin*)
25231 gl_cv_have_weak="guessing no"
25232 ;;
25233 *)
25234 gl_cv_have_weak=no
25235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25236 /* end confdefs.h. */
25237 extern void xyzzy ();
25238 #pragma weak xyzzy
25239 int
25240 main (void)
25241 {
25242 xyzzy();
25243 ;
25244 return 0;
25245 }
25246 _ACEOF
25247 if ac_fn_c_try_link "$LINENO"
25248 then :
25249 gl_cv_have_weak=maybe
25250 fi
25251 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25252 conftest$ac_exeext conftest.$ac_ext
25253 if test $gl_cv_have_weak = maybe; then
25254 if test "$cross_compiling" = yes
25255 then :
25256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25257 /* end confdefs.h. */
25258 #ifdef __ELF__
25259 Extensible Linking Format
25260 #endif
25261
25262 _ACEOF
25263 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25264 $EGREP "Extensible Linking Format" >/dev/null 2>&1
25265 then :
25266 gl_cv_have_weak="guessing yes"
25267 else $as_nop
25268 gl_cv_have_weak="guessing no"
25269 fi
25270 rm -rf conftest*
25271
25272
25273 else $as_nop
25274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25275 /* end confdefs.h. */
25276
25277 #include <stdio.h>
25278 #pragma weak fputs
25279 int main ()
25280 {
25281 return (fputs == NULL);
25282 }
25283 _ACEOF
25284 if ac_fn_c_try_run "$LINENO"
25285 then :
25286 gl_cv_have_weak=yes
25287 else $as_nop
25288 gl_cv_have_weak=no
25289 fi
25290 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25291 conftest.$ac_objext conftest.beam conftest.$ac_ext
25292 fi
25293
25294 fi
25295 ;;
25296 esac
25297 case " $LDFLAGS " in
25298 *" -static "*) gl_cv_have_weak=no ;;
25299 esac
25300 case "$gl_cv_have_weak" in
25301 *yes)
25302 case "$host_os" in
25303 freebsd* | dragonfly* | midnightbsd*)
25304 : > conftest1.c
25305 $CC $CPPFLAGS $CFLAGS $LDFLAGS -fPIC -shared -o libempty.so conftest1.c -lpthread >&5 2>&1
25306 cat <<EOF > conftest2.c
25307 #include <pthread.h>
25308 #pragma weak pthread_mutexattr_gettype
25309 int main ()
25310 {
25311 return (pthread_mutexattr_gettype != NULL);
25312 }
25313 EOF
25314 $CC $CPPFLAGS $CFLAGS $LDFLAGS -o conftest conftest2.c libempty.so >&5 2>&1 \
25315 || gl_cv_have_weak=no
25316 rm -f conftest1.c libempty.so conftest2.c conftest
25317 ;;
25318 esac
25319 ;;
25320 esac
25321
25322 fi
25323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
25324 printf "%s\n" "$gl_cv_have_weak" >&6; }
25325 case "$gl_cv_have_weak" in
25326 *yes)
25327
25328 printf "%s\n" "#define HAVE_WEAK_SYMBOLS 1" >>confdefs.h
25329
25330 ;;
25331 esac
25332
25333 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
25334
25335 :
25336 fi
25337 if test "$gl_use_threads" = isoc || test "$gl_use_threads" = isoc+posix; then
25338
25339 gl_have_isoc_threads="$ac_cv_header_threads_h"
25340 fi
25341 if test "$gl_use_threads" = yes \
25342 || test "$gl_use_threads" = posix \
25343 || test "$gl_use_threads" = isoc+posix; then
25344
25345
25346 if test -z "$gl_pthreadlib_body_done"; then
25347 gl_pthread_api=no
25348 LIBPTHREAD=
25349 LIBPMULTITHREAD=
25350 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
25351 # it groks <pthread.h>. It's added above, in gl_ANYTHREADLIB_EARLY.
25352 ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
25353 if test "x$ac_cv_header_pthread_h" = xyes
25354 then :
25355 gl_have_pthread_h=yes
25356 else $as_nop
25357 gl_have_pthread_h=no
25358 fi
25359
25360 if test "$gl_have_pthread_h" = yes; then
25361 # Other possible tests:
25362 # -lpthreads (FSU threads, PCthreads)
25363 # -lgthreads
25364 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
25365 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
25366 # the second one only in libpthread, and lock.c needs it.
25367 #
25368 # If -pthread works, prefer it to -lpthread, since Ubuntu 14.04
25369 # needs -pthread for some reason. See:
25370 # https://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
25371 save_LIBS=$LIBS
25372 for gl_pthread in '' '-pthread'; do
25373 LIBS="$LIBS $gl_pthread"
25374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25375 /* end confdefs.h. */
25376 #include <pthread.h>
25377 pthread_mutex_t m;
25378 pthread_mutexattr_t ma;
25379
25380 int
25381 main (void)
25382 {
25383 pthread_mutex_lock (&m);
25384 pthread_mutexattr_init (&ma);
25385 ;
25386 return 0;
25387 }
25388 _ACEOF
25389 if ac_fn_c_try_link "$LINENO"
25390 then :
25391 gl_pthread_api=yes
25392 LIBPTHREAD=$gl_pthread
25393 LIBPMULTITHREAD=$gl_pthread
25394 fi
25395 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25396 conftest$ac_exeext conftest.$ac_ext
25397 LIBS=$save_LIBS
25398 test $gl_pthread_api = yes && break
25399 done
25400 echo "$as_me:25400: gl_pthread_api=$gl_pthread_api" >&5
25401 echo "$as_me:25401: LIBPTHREAD=$LIBPTHREAD" >&5
25402
25403 gl_pthread_in_glibc=no
25404 # On Linux with glibc >= 2.34, libc contains the fully functional
25405 # pthread functions.
25406 case "$host_os" in
25407 linux*)
25408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25409 /* end confdefs.h. */
25410 #include <features.h>
25411 #ifdef __GNU_LIBRARY__
25412 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 34) || (__GLIBC__ > 2)
25413 Lucky user
25414 #endif
25415 #endif
25416
25417 _ACEOF
25418 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25419 $EGREP "Lucky user" >/dev/null 2>&1
25420 then :
25421 gl_pthread_in_glibc=yes
25422 fi
25423 rm -rf conftest*
25424
25425 ;;
25426 esac
25427 echo "$as_me:25427: gl_pthread_in_glibc=$gl_pthread_in_glibc" >&5
25428
25429 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
25430 # since it is defined as a macro on OSF/1.)
25431 if test $gl_pthread_api = yes && test -z "$LIBPTHREAD"; then
25432 # The program links fine without libpthread. But it may actually
25433 # need to link with libpthread in order to create multiple threads.
25434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
25435 printf %s "checking for pthread_kill in -lpthread... " >&6; }
25436 if test ${ac_cv_lib_pthread_pthread_kill+y}
25437 then :
25438 printf %s "(cached) " >&6
25439 else $as_nop
25440 ac_check_lib_save_LIBS=$LIBS
25441 LIBS="-lpthread $LIBS"
25442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25443 /* end confdefs.h. */
25444
25445 /* Override any GCC internal prototype to avoid an error.
25446 Use char because int might match the return type of a GCC
25447 builtin and then its argument prototype would still apply. */
25448 char pthread_kill ();
25449 int
25450 main (void)
25451 {
25452 return pthread_kill ();
25453 ;
25454 return 0;
25455 }
25456 _ACEOF
25457 if ac_fn_c_try_link "$LINENO"
25458 then :
25459 ac_cv_lib_pthread_pthread_kill=yes
25460 else $as_nop
25461 ac_cv_lib_pthread_pthread_kill=no
25462 fi
25463 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25464 conftest$ac_exeext conftest.$ac_ext
25465 LIBS=$ac_check_lib_save_LIBS
25466 fi
25467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
25468 printf "%s\n" "$ac_cv_lib_pthread_pthread_kill" >&6; }
25469 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes
25470 then :
25471 if test $gl_pthread_in_glibc = yes; then
25472 LIBPMULTITHREAD=
25473 else
25474 LIBPMULTITHREAD=-lpthread
25475 # On Solaris and HP-UX, most pthread functions exist also in libc.
25476 # Therefore pthread_in_use() needs to actually try to create a
25477 # thread: pthread_create from libc will fail, whereas
25478 # pthread_create will actually create a thread.
25479 # On Solaris 10 or newer, this test is no longer needed, because
25480 # libc contains the fully functional pthread functions.
25481 case "$host_os" in
25482 solaris | solaris2.1-9 | solaris2.1-9.* | hpux*)
25483
25484 printf "%s\n" "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
25485
25486 esac
25487 fi
25488
25489 fi
25490
25491 elif test $gl_pthread_api != yes; then
25492 # Some library is needed. Try libpthread and libc_r.
25493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
25494 printf %s "checking for pthread_kill in -lpthread... " >&6; }
25495 if test ${ac_cv_lib_pthread_pthread_kill+y}
25496 then :
25497 printf %s "(cached) " >&6
25498 else $as_nop
25499 ac_check_lib_save_LIBS=$LIBS
25500 LIBS="-lpthread $LIBS"
25501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25502 /* end confdefs.h. */
25503
25504 /* Override any GCC internal prototype to avoid an error.
25505 Use char because int might match the return type of a GCC
25506 builtin and then its argument prototype would still apply. */
25507 char pthread_kill ();
25508 int
25509 main (void)
25510 {
25511 return pthread_kill ();
25512 ;
25513 return 0;
25514 }
25515 _ACEOF
25516 if ac_fn_c_try_link "$LINENO"
25517 then :
25518 ac_cv_lib_pthread_pthread_kill=yes
25519 else $as_nop
25520 ac_cv_lib_pthread_pthread_kill=no
25521 fi
25522 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25523 conftest$ac_exeext conftest.$ac_ext
25524 LIBS=$ac_check_lib_save_LIBS
25525 fi
25526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
25527 printf "%s\n" "$ac_cv_lib_pthread_pthread_kill" >&6; }
25528 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes
25529 then :
25530 gl_pthread_api=yes
25531 LIBPTHREAD=-lpthread
25532 LIBPMULTITHREAD=-lpthread
25533 fi
25534
25535 if test $gl_pthread_api != yes; then
25536 # For FreeBSD 4.
25537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
25538 printf %s "checking for pthread_kill in -lc_r... " >&6; }
25539 if test ${ac_cv_lib_c_r_pthread_kill+y}
25540 then :
25541 printf %s "(cached) " >&6
25542 else $as_nop
25543 ac_check_lib_save_LIBS=$LIBS
25544 LIBS="-lc_r $LIBS"
25545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25546 /* end confdefs.h. */
25547
25548 /* Override any GCC internal prototype to avoid an error.
25549 Use char because int might match the return type of a GCC
25550 builtin and then its argument prototype would still apply. */
25551 char pthread_kill ();
25552 int
25553 main (void)
25554 {
25555 return pthread_kill ();
25556 ;
25557 return 0;
25558 }
25559 _ACEOF
25560 if ac_fn_c_try_link "$LINENO"
25561 then :
25562 ac_cv_lib_c_r_pthread_kill=yes
25563 else $as_nop
25564 ac_cv_lib_c_r_pthread_kill=no
25565 fi
25566 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25567 conftest$ac_exeext conftest.$ac_ext
25568 LIBS=$ac_check_lib_save_LIBS
25569 fi
25570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
25571 printf "%s\n" "$ac_cv_lib_c_r_pthread_kill" >&6; }
25572 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes
25573 then :
25574 gl_pthread_api=yes
25575 LIBPTHREAD=-lc_r
25576 LIBPMULTITHREAD=-lc_r
25577 fi
25578
25579 fi
25580 fi
25581 echo "$as_me:25581: LIBPMULTITHREAD=$LIBPMULTITHREAD" >&5
25582 fi
25583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether POSIX threads API is available" >&5
25584 printf %s "checking whether POSIX threads API is available... " >&6; }
25585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_pthread_api" >&5
25586 printf "%s\n" "$gl_pthread_api" >&6; }
25587
25588
25589 if test $gl_pthread_api = yes; then
25590
25591 printf "%s\n" "#define HAVE_PTHREAD_API 1" >>confdefs.h
25592
25593 fi
25594
25595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25596 /* end confdefs.h. */
25597 #include <sched.h>
25598 int
25599 main (void)
25600 {
25601 sched_yield ();
25602 ;
25603 return 0;
25604 }
25605 _ACEOF
25606 if ac_fn_c_try_link "$LINENO"
25607 then :
25608 LIB_SCHED_YIELD=
25609
25610 else $as_nop
25611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
25612 printf %s "checking for sched_yield in -lrt... " >&6; }
25613 if test ${ac_cv_lib_rt_sched_yield+y}
25614 then :
25615 printf %s "(cached) " >&6
25616 else $as_nop
25617 ac_check_lib_save_LIBS=$LIBS
25618 LIBS="-lrt $LIBS"
25619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25620 /* end confdefs.h. */
25621
25622 /* Override any GCC internal prototype to avoid an error.
25623 Use char because int might match the return type of a GCC
25624 builtin and then its argument prototype would still apply. */
25625 char sched_yield ();
25626 int
25627 main (void)
25628 {
25629 return sched_yield ();
25630 ;
25631 return 0;
25632 }
25633 _ACEOF
25634 if ac_fn_c_try_link "$LINENO"
25635 then :
25636 ac_cv_lib_rt_sched_yield=yes
25637 else $as_nop
25638 ac_cv_lib_rt_sched_yield=no
25639 fi
25640 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25641 conftest$ac_exeext conftest.$ac_ext
25642 LIBS=$ac_check_lib_save_LIBS
25643 fi
25644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
25645 printf "%s\n" "$ac_cv_lib_rt_sched_yield" >&6; }
25646 if test "x$ac_cv_lib_rt_sched_yield" = xyes
25647 then :
25648 LIB_SCHED_YIELD=-lrt
25649 else $as_nop
25650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5
25651 printf %s "checking for sched_yield in -lposix4... " >&6; }
25652 if test ${ac_cv_lib_posix4_sched_yield+y}
25653 then :
25654 printf %s "(cached) " >&6
25655 else $as_nop
25656 ac_check_lib_save_LIBS=$LIBS
25657 LIBS="-lposix4 $LIBS"
25658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25659 /* end confdefs.h. */
25660
25661 /* Override any GCC internal prototype to avoid an error.
25662 Use char because int might match the return type of a GCC
25663 builtin and then its argument prototype would still apply. */
25664 char sched_yield ();
25665 int
25666 main (void)
25667 {
25668 return sched_yield ();
25669 ;
25670 return 0;
25671 }
25672 _ACEOF
25673 if ac_fn_c_try_link "$LINENO"
25674 then :
25675 ac_cv_lib_posix4_sched_yield=yes
25676 else $as_nop
25677 ac_cv_lib_posix4_sched_yield=no
25678 fi
25679 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25680 conftest$ac_exeext conftest.$ac_ext
25681 LIBS=$ac_check_lib_save_LIBS
25682 fi
25683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5
25684 printf "%s\n" "$ac_cv_lib_posix4_sched_yield" >&6; }
25685 if test "x$ac_cv_lib_posix4_sched_yield" = xyes
25686 then :
25687 LIB_SCHED_YIELD=-lposix4
25688 fi
25689
25690 fi
25691
25692
25693 fi
25694 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25695 conftest$ac_exeext conftest.$ac_ext
25696
25697
25698 gl_pthreadlib_body_done=done
25699 fi
25700
25701 LIBTHREAD=$LIBPTHREAD LTLIBTHREAD=$LIBPTHREAD
25702 LIBMULTITHREAD=$LIBPMULTITHREAD LTLIBMULTITHREAD=$LIBPMULTITHREAD
25703 if test $gl_pthread_api = yes; then
25704 if test "$gl_use_threads" = isoc+posix && test "$gl_have_isoc_threads" = yes; then
25705 gl_threads_api='isoc+posix'
25706
25707 printf "%s\n" "#define USE_ISOC_AND_POSIX_THREADS 1" >>confdefs.h
25708
25709 LIBTHREAD= LTLIBTHREAD=
25710 else
25711 gl_threads_api=posix
25712
25713 printf "%s\n" "#define USE_POSIX_THREADS 1" >>confdefs.h
25714
25715 if test -z "$LIBMULTITHREAD" && test -z "$LTLIBMULTITHREAD"; then
25716
25717 printf "%s\n" "#define USE_POSIX_THREADS_FROM_LIBC 1" >>confdefs.h
25718
25719 else
25720 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
25721
25722 printf "%s\n" "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
25723
25724 LIBTHREAD= LTLIBTHREAD=
25725 else
25726 case "$host_os" in
25727 freebsd* | dragonfly* | midnightbsd*)
25728 if test "x$LIBTHREAD" != "x$LIBMULTITHREAD"; then
25729
25730 printf "%s\n" "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
25731
25732 fi
25733 ;;
25734 esac
25735 fi
25736 fi
25737 fi
25738 fi
25739 fi
25740 if test $gl_threads_api = none; then
25741 if test "$gl_use_threads" = isoc && test "$gl_have_isoc_threads" = yes; then
25742
25743
25744
25745 if test -z "$gl_stdthreadlib_body_done"; then
25746
25747
25748 case "$host_os" in
25749 mingw*)
25750 LIBSTDTHREAD=
25751 ;;
25752 *)
25753
25754
25755 if test -z "$gl_pthreadlib_body_done"; then
25756 gl_pthread_api=no
25757 LIBPTHREAD=
25758 LIBPMULTITHREAD=
25759 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
25760 # it groks <pthread.h>. It's added above, in gl_ANYTHREADLIB_EARLY.
25761 ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
25762 if test "x$ac_cv_header_pthread_h" = xyes
25763 then :
25764 gl_have_pthread_h=yes
25765 else $as_nop
25766 gl_have_pthread_h=no
25767 fi
25768
25769 if test "$gl_have_pthread_h" = yes; then
25770 # Other possible tests:
25771 # -lpthreads (FSU threads, PCthreads)
25772 # -lgthreads
25773 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
25774 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
25775 # the second one only in libpthread, and lock.c needs it.
25776 #
25777 # If -pthread works, prefer it to -lpthread, since Ubuntu 14.04
25778 # needs -pthread for some reason. See:
25779 # https://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
25780 save_LIBS=$LIBS
25781 for gl_pthread in '' '-pthread'; do
25782 LIBS="$LIBS $gl_pthread"
25783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25784 /* end confdefs.h. */
25785 #include <pthread.h>
25786 pthread_mutex_t m;
25787 pthread_mutexattr_t ma;
25788
25789 int
25790 main (void)
25791 {
25792 pthread_mutex_lock (&m);
25793 pthread_mutexattr_init (&ma);
25794 ;
25795 return 0;
25796 }
25797 _ACEOF
25798 if ac_fn_c_try_link "$LINENO"
25799 then :
25800 gl_pthread_api=yes
25801 LIBPTHREAD=$gl_pthread
25802 LIBPMULTITHREAD=$gl_pthread
25803 fi
25804 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25805 conftest$ac_exeext conftest.$ac_ext
25806 LIBS=$save_LIBS
25807 test $gl_pthread_api = yes && break
25808 done
25809 echo "$as_me:25809: gl_pthread_api=$gl_pthread_api" >&5
25810 echo "$as_me:25810: LIBPTHREAD=$LIBPTHREAD" >&5
25811
25812 gl_pthread_in_glibc=no
25813 # On Linux with glibc >= 2.34, libc contains the fully functional
25814 # pthread functions.
25815 case "$host_os" in
25816 linux*)
25817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25818 /* end confdefs.h. */
25819 #include <features.h>
25820 #ifdef __GNU_LIBRARY__
25821 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 34) || (__GLIBC__ > 2)
25822 Lucky user
25823 #endif
25824 #endif
25825
25826 _ACEOF
25827 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25828 $EGREP "Lucky user" >/dev/null 2>&1
25829 then :
25830 gl_pthread_in_glibc=yes
25831 fi
25832 rm -rf conftest*
25833
25834 ;;
25835 esac
25836 echo "$as_me:25836: gl_pthread_in_glibc=$gl_pthread_in_glibc" >&5
25837
25838 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
25839 # since it is defined as a macro on OSF/1.)
25840 if test $gl_pthread_api = yes && test -z "$LIBPTHREAD"; then
25841 # The program links fine without libpthread. But it may actually
25842 # need to link with libpthread in order to create multiple threads.
25843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
25844 printf %s "checking for pthread_kill in -lpthread... " >&6; }
25845 if test ${ac_cv_lib_pthread_pthread_kill+y}
25846 then :
25847 printf %s "(cached) " >&6
25848 else $as_nop
25849 ac_check_lib_save_LIBS=$LIBS
25850 LIBS="-lpthread $LIBS"
25851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25852 /* end confdefs.h. */
25853
25854 /* Override any GCC internal prototype to avoid an error.
25855 Use char because int might match the return type of a GCC
25856 builtin and then its argument prototype would still apply. */
25857 char pthread_kill ();
25858 int
25859 main (void)
25860 {
25861 return pthread_kill ();
25862 ;
25863 return 0;
25864 }
25865 _ACEOF
25866 if ac_fn_c_try_link "$LINENO"
25867 then :
25868 ac_cv_lib_pthread_pthread_kill=yes
25869 else $as_nop
25870 ac_cv_lib_pthread_pthread_kill=no
25871 fi
25872 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25873 conftest$ac_exeext conftest.$ac_ext
25874 LIBS=$ac_check_lib_save_LIBS
25875 fi
25876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
25877 printf "%s\n" "$ac_cv_lib_pthread_pthread_kill" >&6; }
25878 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes
25879 then :
25880 if test $gl_pthread_in_glibc = yes; then
25881 LIBPMULTITHREAD=
25882 else
25883 LIBPMULTITHREAD=-lpthread
25884 # On Solaris and HP-UX, most pthread functions exist also in libc.
25885 # Therefore pthread_in_use() needs to actually try to create a
25886 # thread: pthread_create from libc will fail, whereas
25887 # pthread_create will actually create a thread.
25888 # On Solaris 10 or newer, this test is no longer needed, because
25889 # libc contains the fully functional pthread functions.
25890 case "$host_os" in
25891 solaris | solaris2.1-9 | solaris2.1-9.* | hpux*)
25892
25893 printf "%s\n" "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
25894
25895 esac
25896 fi
25897
25898 fi
25899
25900 elif test $gl_pthread_api != yes; then
25901 # Some library is needed. Try libpthread and libc_r.
25902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
25903 printf %s "checking for pthread_kill in -lpthread... " >&6; }
25904 if test ${ac_cv_lib_pthread_pthread_kill+y}
25905 then :
25906 printf %s "(cached) " >&6
25907 else $as_nop
25908 ac_check_lib_save_LIBS=$LIBS
25909 LIBS="-lpthread $LIBS"
25910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25911 /* end confdefs.h. */
25912
25913 /* Override any GCC internal prototype to avoid an error.
25914 Use char because int might match the return type of a GCC
25915 builtin and then its argument prototype would still apply. */
25916 char pthread_kill ();
25917 int
25918 main (void)
25919 {
25920 return pthread_kill ();
25921 ;
25922 return 0;
25923 }
25924 _ACEOF
25925 if ac_fn_c_try_link "$LINENO"
25926 then :
25927 ac_cv_lib_pthread_pthread_kill=yes
25928 else $as_nop
25929 ac_cv_lib_pthread_pthread_kill=no
25930 fi
25931 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25932 conftest$ac_exeext conftest.$ac_ext
25933 LIBS=$ac_check_lib_save_LIBS
25934 fi
25935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
25936 printf "%s\n" "$ac_cv_lib_pthread_pthread_kill" >&6; }
25937 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes
25938 then :
25939 gl_pthread_api=yes
25940 LIBPTHREAD=-lpthread
25941 LIBPMULTITHREAD=-lpthread
25942 fi
25943
25944 if test $gl_pthread_api != yes; then
25945 # For FreeBSD 4.
25946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
25947 printf %s "checking for pthread_kill in -lc_r... " >&6; }
25948 if test ${ac_cv_lib_c_r_pthread_kill+y}
25949 then :
25950 printf %s "(cached) " >&6
25951 else $as_nop
25952 ac_check_lib_save_LIBS=$LIBS
25953 LIBS="-lc_r $LIBS"
25954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25955 /* end confdefs.h. */
25956
25957 /* Override any GCC internal prototype to avoid an error.
25958 Use char because int might match the return type of a GCC
25959 builtin and then its argument prototype would still apply. */
25960 char pthread_kill ();
25961 int
25962 main (void)
25963 {
25964 return pthread_kill ();
25965 ;
25966 return 0;
25967 }
25968 _ACEOF
25969 if ac_fn_c_try_link "$LINENO"
25970 then :
25971 ac_cv_lib_c_r_pthread_kill=yes
25972 else $as_nop
25973 ac_cv_lib_c_r_pthread_kill=no
25974 fi
25975 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25976 conftest$ac_exeext conftest.$ac_ext
25977 LIBS=$ac_check_lib_save_LIBS
25978 fi
25979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
25980 printf "%s\n" "$ac_cv_lib_c_r_pthread_kill" >&6; }
25981 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes
25982 then :
25983 gl_pthread_api=yes
25984 LIBPTHREAD=-lc_r
25985 LIBPMULTITHREAD=-lc_r
25986 fi
25987
25988 fi
25989 fi
25990 echo "$as_me:25990: LIBPMULTITHREAD=$LIBPMULTITHREAD" >&5
25991 fi
25992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether POSIX threads API is available" >&5
25993 printf %s "checking whether POSIX threads API is available... " >&6; }
25994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_pthread_api" >&5
25995 printf "%s\n" "$gl_pthread_api" >&6; }
25996
25997
25998 if test $gl_pthread_api = yes; then
25999
26000 printf "%s\n" "#define HAVE_PTHREAD_API 1" >>confdefs.h
26001
26002 fi
26003
26004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26005 /* end confdefs.h. */
26006 #include <sched.h>
26007 int
26008 main (void)
26009 {
26010 sched_yield ();
26011 ;
26012 return 0;
26013 }
26014 _ACEOF
26015 if ac_fn_c_try_link "$LINENO"
26016 then :
26017 LIB_SCHED_YIELD=
26018
26019 else $as_nop
26020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
26021 printf %s "checking for sched_yield in -lrt... " >&6; }
26022 if test ${ac_cv_lib_rt_sched_yield+y}
26023 then :
26024 printf %s "(cached) " >&6
26025 else $as_nop
26026 ac_check_lib_save_LIBS=$LIBS
26027 LIBS="-lrt $LIBS"
26028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26029 /* end confdefs.h. */
26030
26031 /* Override any GCC internal prototype to avoid an error.
26032 Use char because int might match the return type of a GCC
26033 builtin and then its argument prototype would still apply. */
26034 char sched_yield ();
26035 int
26036 main (void)
26037 {
26038 return sched_yield ();
26039 ;
26040 return 0;
26041 }
26042 _ACEOF
26043 if ac_fn_c_try_link "$LINENO"
26044 then :
26045 ac_cv_lib_rt_sched_yield=yes
26046 else $as_nop
26047 ac_cv_lib_rt_sched_yield=no
26048 fi
26049 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26050 conftest$ac_exeext conftest.$ac_ext
26051 LIBS=$ac_check_lib_save_LIBS
26052 fi
26053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
26054 printf "%s\n" "$ac_cv_lib_rt_sched_yield" >&6; }
26055 if test "x$ac_cv_lib_rt_sched_yield" = xyes
26056 then :
26057 LIB_SCHED_YIELD=-lrt
26058 else $as_nop
26059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5
26060 printf %s "checking for sched_yield in -lposix4... " >&6; }
26061 if test ${ac_cv_lib_posix4_sched_yield+y}
26062 then :
26063 printf %s "(cached) " >&6
26064 else $as_nop
26065 ac_check_lib_save_LIBS=$LIBS
26066 LIBS="-lposix4 $LIBS"
26067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26068 /* end confdefs.h. */
26069
26070 /* Override any GCC internal prototype to avoid an error.
26071 Use char because int might match the return type of a GCC
26072 builtin and then its argument prototype would still apply. */
26073 char sched_yield ();
26074 int
26075 main (void)
26076 {
26077 return sched_yield ();
26078 ;
26079 return 0;
26080 }
26081 _ACEOF
26082 if ac_fn_c_try_link "$LINENO"
26083 then :
26084 ac_cv_lib_posix4_sched_yield=yes
26085 else $as_nop
26086 ac_cv_lib_posix4_sched_yield=no
26087 fi
26088 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26089 conftest$ac_exeext conftest.$ac_ext
26090 LIBS=$ac_check_lib_save_LIBS
26091 fi
26092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5
26093 printf "%s\n" "$ac_cv_lib_posix4_sched_yield" >&6; }
26094 if test "x$ac_cv_lib_posix4_sched_yield" = xyes
26095 then :
26096 LIB_SCHED_YIELD=-lposix4
26097 fi
26098
26099 fi
26100
26101
26102 fi
26103 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26104 conftest$ac_exeext conftest.$ac_ext
26105
26106
26107 gl_pthreadlib_body_done=done
26108 fi
26109
26110 if test $ac_cv_header_threads_h = yes; then
26111 ac_fn_c_check_func "$LINENO" "thrd_create" "ac_cv_func_thrd_create"
26112 if test "x$ac_cv_func_thrd_create" = xyes
26113 then :
26114 printf "%s\n" "#define HAVE_THRD_CREATE 1" >>confdefs.h
26115
26116 fi
26117
26118 if test $ac_cv_func_thrd_create = yes; then
26119 LIBSTDTHREAD=
26120 else
26121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for thrd_create in -lstdthreads" >&5
26122 printf %s "checking for thrd_create in -lstdthreads... " >&6; }
26123 if test ${ac_cv_lib_stdthreads_thrd_create+y}
26124 then :
26125 printf %s "(cached) " >&6
26126 else $as_nop
26127 ac_check_lib_save_LIBS=$LIBS
26128 LIBS="-lstdthreads $LIBS"
26129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26130 /* end confdefs.h. */
26131
26132 /* Override any GCC internal prototype to avoid an error.
26133 Use char because int might match the return type of a GCC
26134 builtin and then its argument prototype would still apply. */
26135 char thrd_create ();
26136 int
26137 main (void)
26138 {
26139 return thrd_create ();
26140 ;
26141 return 0;
26142 }
26143 _ACEOF
26144 if ac_fn_c_try_link "$LINENO"
26145 then :
26146 ac_cv_lib_stdthreads_thrd_create=yes
26147 else $as_nop
26148 ac_cv_lib_stdthreads_thrd_create=no
26149 fi
26150 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26151 conftest$ac_exeext conftest.$ac_ext
26152 LIBS=$ac_check_lib_save_LIBS
26153 fi
26154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_stdthreads_thrd_create" >&5
26155 printf "%s\n" "$ac_cv_lib_stdthreads_thrd_create" >&6; }
26156 if test "x$ac_cv_lib_stdthreads_thrd_create" = xyes
26157 then :
26158
26159 LIBSTDTHREAD='-lstdthreads -lpthread'
26160
26161 else $as_nop
26162
26163 LIBSTDTHREAD="$LIBPMULTITHREAD"
26164
26165 fi
26166
26167 fi
26168 else
26169 LIBSTDTHREAD="$LIBPMULTITHREAD $LIB_SCHED_YIELD"
26170 fi
26171 ;;
26172 esac
26173
26174
26175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ISO C threads API is available" >&5
26176 printf %s "checking whether ISO C threads API is available... " >&6; }
26177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_threads_h" >&5
26178 printf "%s\n" "$ac_cv_header_threads_h" >&6; }
26179 gl_stdthreadlib_body_done=done
26180 fi
26181
26182 LIBTHREAD=$LIBSTDTHREAD LTLIBTHREAD=$LIBSTDTHREAD
26183 LIBMULTITHREAD=$LIBSTDTHREAD LTLIBMULTITHREAD=$LIBSTDTHREAD
26184 gl_threads_api=isoc
26185
26186 printf "%s\n" "#define USE_ISOC_THREADS 1" >>confdefs.h
26187
26188 fi
26189 fi
26190 if test $gl_threads_api = none; then
26191 case "$gl_use_threads" in
26192 yes | windows | win32) # The 'win32' is for backward compatibility.
26193 if { case "$host_os" in
26194 mingw*) true;;
26195 *) false;;
26196 esac
26197 }; then
26198 gl_threads_api=windows
26199
26200 printf "%s\n" "#define USE_WINDOWS_THREADS 1" >>confdefs.h
26201
26202 fi
26203 ;;
26204 esac
26205 fi
26206 fi
26207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
26208 printf %s "checking for multithread API to use... " >&6; }
26209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
26210 printf "%s\n" "$gl_threads_api" >&6; }
26211
26212
26213
26214
26215
26216
26217
26218
26219
26220
26221
26222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether malloc (0) returns nonnull" >&5
26223 printf %s "checking whether malloc (0) returns nonnull... " >&6; }
26224 if test ${ac_cv_func_malloc_0_nonnull+y}
26225 then :
26226 printf %s "(cached) " >&6
26227 else $as_nop
26228 if test "$cross_compiling" = yes
26229 then :
26230 case "$host_os" in
26231 # Guess yes on platforms where we know the result.
26232 *-gnu* | freebsd* | netbsd* | openbsd* | bitrig* \
26233 | gnu* | *-musl* | midnightbsd* \
26234 | hpux* | solaris* | cygwin* | mingw* | msys* )
26235 ac_cv_func_malloc_0_nonnull="guessing yes" ;;
26236 # If we don't know, obey --enable-cross-guesses.
26237 *) ac_cv_func_malloc_0_nonnull="$gl_cross_guess_normal" ;;
26238 esac
26239
26240 else $as_nop
26241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26242 /* end confdefs.h. */
26243 #include <stdlib.h>
26244
26245 int
26246 main (void)
26247 {
26248 void *p = malloc (0);
26249 int result = !p;
26250 free (p);
26251 return result;
26252 ;
26253 return 0;
26254 }
26255
26256 _ACEOF
26257 if ac_fn_c_try_run "$LINENO"
26258 then :
26259 ac_cv_func_malloc_0_nonnull=yes
26260 else $as_nop
26261 ac_cv_func_malloc_0_nonnull=no
26262 fi
26263 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26264 conftest.$ac_objext conftest.beam conftest.$ac_ext
26265 fi
26266
26267
26268 fi
26269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
26270 printf "%s\n" "$ac_cv_func_malloc_0_nonnull" >&6; }
26271 case $ac_cv_func_malloc_0_nonnull in #(
26272 *yes) :
26273 gl_cv_func_malloc_0_nonnull=1 ;; #(
26274 *) :
26275 gl_cv_func_malloc_0_nonnull=0 ;;
26276 esac
26277
26278
26279 printf "%s\n" "#define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull" >>confdefs.h
26280
26281
26282
26283
26284
26285
26286
26287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
26288 printf %s "checking for a traditional japanese locale... " >&6; }
26289 if test ${gt_cv_locale_ja+y}
26290 then :
26291 printf %s "(cached) " >&6
26292 else $as_nop
26293
26294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26295 /* end confdefs.h. */
26296
26297 #include <locale.h>
26298 #include <time.h>
26299 #if HAVE_LANGINFO_CODESET
26300 # include <langinfo.h>
26301 #endif
26302 #include <stdlib.h>
26303 #include <string.h>
26304 struct tm t;
26305 char buf[16];
26306 int main ()
26307 {
26308 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
26309 imitates locale dependent behaviour by looking at the environment
26310 variables, and all locales use the UTF-8 encoding. */
26311 #if defined __BEOS__ || defined __HAIKU__
26312 return 1;
26313 #else
26314 /* Check whether the given locale name is recognized by the system. */
26315 # if defined _WIN32 && !defined __CYGWIN__
26316 /* On native Windows, setlocale(category, "") looks at the system settings,
26317 not at the environment variables. Also, when an encoding suffix such
26318 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
26319 category of the locale to "C". */
26320 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
26321 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
26322 return 1;
26323 # else
26324 if (setlocale (LC_ALL, "") == NULL) return 1;
26325 # endif
26326 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
26327 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
26328 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
26329 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
26330 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
26331 some unit tests fail.
26332 On MirBSD 10, when an unsupported locale is specified, setlocale()
26333 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
26334 # if HAVE_LANGINFO_CODESET
26335 {
26336 const char *cs = nl_langinfo (CODESET);
26337 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
26338 || strcmp (cs, "UTF-8") == 0)
26339 return 1;
26340 }
26341 # endif
26342 # ifdef __CYGWIN__
26343 /* On Cygwin, avoid locale names without encoding suffix, because the
26344 locale_charset() function relies on the encoding suffix. Note that
26345 LC_ALL is set on the command line. */
26346 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
26347 # endif
26348 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales
26349 on Cygwin 1.5.x. */
26350 if (MB_CUR_MAX == 1)
26351 return 1;
26352 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
26353 This excludes the UTF-8 encoding (except on MirBSD). */
26354 {
26355 const char *p;
26356 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
26357 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
26358 for (p = buf; *p != '\0'; p++)
26359 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
26360 return 1;
26361 }
26362 return 0;
26363 #endif
26364 }
26365
26366 _ACEOF
26367 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
26368 (eval $ac_link) 2>&5
26369 ac_status=$?
26370 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26371 test $ac_status = 0; } && test -s conftest$ac_exeext; then
26372 case "$host_os" in
26373 # Handle native Windows specially, because there setlocale() interprets
26374 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
26375 # "fr" or "fra" as "French" or "French_France.1252",
26376 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
26377 # "ja" as "Japanese" or "Japanese_Japan.932",
26378 # and similar.
26379 mingw*)
26380 # Note that on native Windows, the Japanese locale is
26381 # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
26382 # cannot use it here.
26383 gt_cv_locale_ja=none
26384 ;;
26385 *)
26386 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
26387 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
26388 # configure script would override the LC_ALL setting. Likewise for
26389 # LC_CTYPE, which is also set at the beginning of the configure script.
26390 # Test for the AIX locale name.
26391 if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
26392 gt_cv_locale_ja=ja_JP
26393 else
26394 # Test for the locale name with explicit encoding suffix.
26395 if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
26396 gt_cv_locale_ja=ja_JP.EUC-JP
26397 else
26398 # Test for the HP-UX, OSF/1, NetBSD locale name.
26399 if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
26400 gt_cv_locale_ja=ja_JP.eucJP
26401 else
26402 # Test for the IRIX, FreeBSD locale name.
26403 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
26404 gt_cv_locale_ja=ja_JP.EUC
26405 else
26406 # Test for the Solaris 7 locale name.
26407 if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
26408 gt_cv_locale_ja=ja
26409 else
26410 # Special test for NetBSD 1.6.
26411 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
26412 gt_cv_locale_ja=ja_JP.eucJP
26413 else
26414 # None found.
26415 gt_cv_locale_ja=none
26416 fi
26417 fi
26418 fi
26419 fi
26420 fi
26421 fi
26422 ;;
26423 esac
26424 fi
26425 rm -fr conftest*
26426
26427 fi
26428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
26429 printf "%s\n" "$gt_cv_locale_ja" >&6; }
26430 LOCALE_JA=$gt_cv_locale_ja
26431
26432
26433
26434
26435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
26436 printf %s "checking for a french Unicode locale... " >&6; }
26437 if test ${gt_cv_locale_fr_utf8+y}
26438 then :
26439 printf %s "(cached) " >&6
26440 else $as_nop
26441
26442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26443 /* end confdefs.h. */
26444
26445 #include <locale.h>
26446 #include <time.h>
26447 #if HAVE_LANGINFO_CODESET
26448 # include <langinfo.h>
26449 #endif
26450 #include <stdlib.h>
26451 #include <string.h>
26452 struct tm t;
26453 char buf[16];
26454 int main () {
26455 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
26456 imitates locale dependent behaviour by looking at the environment
26457 variables, and all locales use the UTF-8 encoding. */
26458 #if !(defined __BEOS__ || defined __HAIKU__)
26459 /* Check whether the given locale name is recognized by the system. */
26460 # if defined _WIN32 && !defined __CYGWIN__
26461 /* On native Windows, setlocale(category, "") looks at the system settings,
26462 not at the environment variables. Also, when an encoding suffix such
26463 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
26464 category of the locale to "C". */
26465 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
26466 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
26467 return 1;
26468 # else
26469 if (setlocale (LC_ALL, "") == NULL) return 1;
26470 # endif
26471 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
26472 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
26473 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
26474 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
26475 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
26476 some unit tests fail. */
26477 # if HAVE_LANGINFO_CODESET
26478 {
26479 const char *cs = nl_langinfo (CODESET);
26480 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
26481 return 1;
26482 }
26483 # endif
26484 # ifdef __CYGWIN__
26485 /* On Cygwin, avoid locale names without encoding suffix, because the
26486 locale_charset() function relies on the encoding suffix. Note that
26487 LC_ALL is set on the command line. */
26488 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
26489 # endif
26490 /* Check whether in the abbreviation of the second month, the second
26491 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
26492 two bytes long, with UTF-8 encoding. */
26493 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
26494 if (strftime (buf, sizeof (buf), "%b", &t) < 4
26495 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
26496 return 1;
26497 #endif
26498 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
26499 /* Check whether the decimal separator is a comma.
26500 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
26501 are nl_langinfo(RADIXCHAR) are both ".". */
26502 if (localeconv () ->decimal_point[0] != ',') return 1;
26503 #endif
26504 return 0;
26505 }
26506
26507 _ACEOF
26508 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
26509 (eval $ac_link) 2>&5
26510 ac_status=$?
26511 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26512 test $ac_status = 0; } && test -s conftest$ac_exeext; then
26513 case "$host_os" in
26514 # Handle native Windows specially, because there setlocale() interprets
26515 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
26516 # "fr" or "fra" as "French" or "French_France.1252",
26517 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
26518 # "ja" as "Japanese" or "Japanese_Japan.932",
26519 # and similar.
26520 mingw*)
26521 # Test for the hypothetical native Windows locale name.
26522 if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
26523 gt_cv_locale_fr_utf8=French_France.65001
26524 else
26525 # None found.
26526 gt_cv_locale_fr_utf8=none
26527 fi
26528 ;;
26529 *)
26530 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
26531 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
26532 # configure script would override the LC_ALL setting. Likewise for
26533 # LC_CTYPE, which is also set at the beginning of the configure script.
26534 # Test for the usual locale name.
26535 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
26536 gt_cv_locale_fr_utf8=fr_FR
26537 else
26538 # Test for the locale name with explicit encoding suffix.
26539 if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
26540 gt_cv_locale_fr_utf8=fr_FR.UTF-8
26541 else
26542 # Test for the Solaris 7 locale name.
26543 if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
26544 gt_cv_locale_fr_utf8=fr.UTF-8
26545 else
26546 # None found.
26547 gt_cv_locale_fr_utf8=none
26548 fi
26549 fi
26550 fi
26551 ;;
26552 esac
26553 fi
26554 rm -fr conftest*
26555
26556 fi
26557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
26558 printf "%s\n" "$gt_cv_locale_fr_utf8" >&6; }
26559 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
26560
26561
26562
26563
26564
26565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
26566 printf %s "checking for a transitional chinese locale... " >&6; }
26567 if test ${gt_cv_locale_zh_CN+y}
26568 then :
26569 printf %s "(cached) " >&6
26570 else $as_nop
26571
26572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26573 /* end confdefs.h. */
26574
26575 #include <locale.h>
26576 #include <stdlib.h>
26577 #include <time.h>
26578 #if HAVE_LANGINFO_CODESET
26579 # include <langinfo.h>
26580 #endif
26581 #include <stdlib.h>
26582 #include <string.h>
26583 struct tm t;
26584 char buf[16];
26585 int main ()
26586 {
26587 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
26588 imitates locale dependent behaviour by looking at the environment
26589 variables, and all locales use the UTF-8 encoding. */
26590 #if defined __BEOS__ || defined __HAIKU__
26591 return 1;
26592 #else
26593 /* Check whether the given locale name is recognized by the system. */
26594 # if defined _WIN32 && !defined __CYGWIN__
26595 /* On native Windows, setlocale(category, "") looks at the system settings,
26596 not at the environment variables. Also, when an encoding suffix such
26597 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
26598 category of the locale to "C". */
26599 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
26600 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
26601 return 1;
26602 # else
26603 if (setlocale (LC_ALL, "") == NULL) return 1;
26604 # endif
26605 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
26606 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
26607 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
26608 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
26609 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
26610 some unit tests fail.
26611 On MirBSD 10, when an unsupported locale is specified, setlocale()
26612 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
26613 # if HAVE_LANGINFO_CODESET
26614 {
26615 const char *cs = nl_langinfo (CODESET);
26616 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
26617 || strcmp (cs, "UTF-8") == 0)
26618 return 1;
26619 }
26620 # endif
26621 # ifdef __CYGWIN__
26622 /* On Cygwin, avoid locale names without encoding suffix, because the
26623 locale_charset() function relies on the encoding suffix. Note that
26624 LC_ALL is set on the command line. */
26625 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
26626 # endif
26627 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
26628 This excludes the UTF-8 encoding (except on MirBSD). */
26629 {
26630 const char *p;
26631 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
26632 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
26633 for (p = buf; *p != '\0'; p++)
26634 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
26635 return 1;
26636 }
26637 /* Check whether a typical GB18030 multibyte sequence is recognized as a
26638 single wide character. This excludes the GB2312 and GBK encodings. */
26639 if (mblen ("\203\062\332\066", 5) != 4)
26640 return 1;
26641 return 0;
26642 #endif
26643 }
26644
26645 _ACEOF
26646 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
26647 (eval $ac_link) 2>&5
26648 ac_status=$?
26649 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26650 test $ac_status = 0; } && test -s conftest$ac_exeext; then
26651 case "$host_os" in
26652 # Handle native Windows specially, because there setlocale() interprets
26653 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
26654 # "fr" or "fra" as "French" or "French_France.1252",
26655 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
26656 # "ja" as "Japanese" or "Japanese_Japan.932",
26657 # and similar.
26658 mingw*)
26659 # Test for the hypothetical native Windows locale name.
26660 if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
26661 gt_cv_locale_zh_CN=Chinese_China.54936
26662 else
26663 # None found.
26664 gt_cv_locale_zh_CN=none
26665 fi
26666 ;;
26667 solaris2.8)
26668 # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
26669 # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
26670 # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
26671 gt_cv_locale_zh_CN=none
26672 ;;
26673 *)
26674 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
26675 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
26676 # configure script would override the LC_ALL setting. Likewise for
26677 # LC_CTYPE, which is also set at the beginning of the configure script.
26678 # Test for the locale name without encoding suffix.
26679 if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
26680 gt_cv_locale_zh_CN=zh_CN
26681 else
26682 # Test for the locale name with explicit encoding suffix.
26683 if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
26684 gt_cv_locale_zh_CN=zh_CN.GB18030
26685 else
26686 # None found.
26687 gt_cv_locale_zh_CN=none
26688 fi
26689 fi
26690 ;;
26691 esac
26692 else
26693 # If there was a link error, due to mblen(), the system is so old that
26694 # it certainly doesn't have a chinese locale.
26695 gt_cv_locale_zh_CN=none
26696 fi
26697 rm -fr conftest*
26698
26699 fi
26700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
26701 printf "%s\n" "$gt_cv_locale_zh_CN" >&6; }
26702 LOCALE_ZH_CN=$gt_cv_locale_zh_CN
26703
26704
26705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
26706 printf %s "checking for inline... " >&6; }
26707 if test ${ac_cv_c_inline+y}
26708 then :
26709 printf %s "(cached) " >&6
26710 else $as_nop
26711 ac_cv_c_inline=no
26712 for ac_kw in inline __inline__ __inline; do
26713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26714 /* end confdefs.h. */
26715 #ifndef __cplusplus
26716 typedef int foo_t;
26717 static $ac_kw foo_t static_foo (void) {return 0; }
26718 $ac_kw foo_t foo (void) {return 0; }
26719 #endif
26720
26721 _ACEOF
26722 if ac_fn_c_try_compile "$LINENO"
26723 then :
26724 ac_cv_c_inline=$ac_kw
26725 fi
26726 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26727 test "$ac_cv_c_inline" != no && break
26728 done
26729
26730 fi
26731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
26732 printf "%s\n" "$ac_cv_c_inline" >&6; }
26733
26734 case $ac_cv_c_inline in
26735 inline | yes) ;;
26736 *)
26737 case $ac_cv_c_inline in
26738 no) ac_val=;;
26739 *) ac_val=$ac_cv_c_inline;;
26740 esac
26741 cat >>confdefs.h <<_ACEOF
26742 #ifndef __cplusplus
26743 #define inline $ac_val
26744 #endif
26745 _ACEOF
26746 ;;
26747 esac
26748
26749
26750
26751
26752 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
26753 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
26754 # irrelevant for anonymous mappings.
26755 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
26756 if test "x$ac_cv_func_mmap" = xyes
26757 then :
26758 gl_have_mmap=yes
26759 else $as_nop
26760 gl_have_mmap=no
26761 fi
26762
26763
26764 # Try to allow MAP_ANONYMOUS.
26765 gl_have_mmap_anonymous=no
26766 if test $gl_have_mmap = yes; then
26767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
26768 printf %s "checking for MAP_ANONYMOUS... " >&6; }
26769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26770 /* end confdefs.h. */
26771
26772 #include <sys/mman.h>
26773 #ifdef MAP_ANONYMOUS
26774 I cannot identify this map
26775 #endif
26776
26777 _ACEOF
26778 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26779 $EGREP "I cannot identify this map" >/dev/null 2>&1
26780 then :
26781 gl_have_mmap_anonymous=yes
26782 fi
26783 rm -rf conftest*
26784
26785 if test $gl_have_mmap_anonymous != yes; then
26786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26787 /* end confdefs.h. */
26788
26789 #include <sys/mman.h>
26790 #ifdef MAP_ANON
26791 I cannot identify this map
26792 #endif
26793
26794 _ACEOF
26795 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26796 $EGREP "I cannot identify this map" >/dev/null 2>&1
26797 then :
26798
26799 printf "%s\n" "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
26800
26801 gl_have_mmap_anonymous=yes
26802 fi
26803 rm -rf conftest*
26804
26805 fi
26806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
26807 printf "%s\n" "$gl_have_mmap_anonymous" >&6; }
26808 if test $gl_have_mmap_anonymous = yes; then
26809
26810 printf "%s\n" "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
26811
26812 fi
26813 fi
26814
26815
26816
26817
26818 HAVE_MBSLEN=0;
26819 HAVE_EXPLICIT_BZERO=1;
26820 HAVE_FFSL=1;
26821 HAVE_FFSLL=1;
26822 HAVE_DECL_MEMMEM=1;
26823 HAVE_MEMPCPY=1;
26824 HAVE_MEMSET_EXPLICIT=1;
26825 HAVE_DECL_MEMRCHR=1;
26826 HAVE_RAWMEMCHR=1;
26827 HAVE_STPCPY=1;
26828 HAVE_STPNCPY=1;
26829 HAVE_STRCHRNUL=1;
26830 HAVE_DECL_STRDUP=1;
26831 HAVE_DECL_STRNDUP=1;
26832 HAVE_DECL_STRNLEN=1;
26833 HAVE_STRPBRK=1;
26834 HAVE_STRSEP=1;
26835 HAVE_STRCASESTR=1;
26836 HAVE_DECL_STRTOK_R=1;
26837 HAVE_DECL_STRERROR_R=1;
26838 HAVE_STRERRORNAME_NP=1;
26839 HAVE_SIGABBREV_NP=1;
26840 HAVE_SIGDESCR_NP=1;
26841 HAVE_DECL_STRSIGNAL=1;
26842 HAVE_STRVERSCMP=1;
26843 REPLACE_FFSLL=0;
26844 REPLACE_MEMCHR=0;
26845 REPLACE_MEMMEM=0;
26846 REPLACE_STPNCPY=0;
26847 REPLACE_STRCHRNUL=0;
26848 REPLACE_STRDUP=0;
26849 REPLACE_STRNCAT=0;
26850 REPLACE_STRNDUP=0;
26851 REPLACE_STRNLEN=0;
26852 REPLACE_STRSTR=0;
26853 REPLACE_STRCASESTR=0;
26854 REPLACE_STRTOK_R=0;
26855 REPLACE_STRERROR=0;
26856 REPLACE_STRERROR_R=0;
26857 REPLACE_STRERRORNAME_NP=0;
26858 REPLACE_STRSIGNAL=0;
26859 UNDEFINE_STRTOK_R=0;
26860
26861
26862
26863
26864
26865
26866
26867
26868 # Detect platform-specific bugs in some versions of glibc:
26869 # memchr should not dereference anything with length 0
26870 # https://bugzilla.redhat.com/show_bug.cgi?id=499689
26871 # memchr should not dereference overestimated length after a match
26872 # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
26873 # https://sourceware.org/bugzilla/show_bug.cgi?id=10162
26874 # memchr should cast the second argument to 'unsigned char'.
26875 # This bug exists in Android 4.3.
26876 # Assume that memchr works on platforms that lack mprotect.
26877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
26878 printf %s "checking whether memchr works... " >&6; }
26879 if test ${gl_cv_func_memchr_works+y}
26880 then :
26881 printf %s "(cached) " >&6
26882 else $as_nop
26883 if test "$cross_compiling" = yes
26884 then :
26885 case "$host_os" in
26886 # Guess no on Android.
26887 linux*-android*) gl_cv_func_memchr_works="guessing no" ;;
26888 # Guess yes on native Windows.
26889 mingw*) gl_cv_func_memchr_works="guessing yes" ;;
26890 # If we don't know, obey --enable-cross-guesses.
26891 *) gl_cv_func_memchr_works="$gl_cross_guess_normal" ;;
26892 esac
26893
26894 else $as_nop
26895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26896 /* end confdefs.h. */
26897
26898 #include <string.h>
26899 #if HAVE_SYS_MMAN_H
26900 # include <fcntl.h>
26901 # include <unistd.h>
26902 # include <sys/types.h>
26903 # include <sys/mman.h>
26904 # ifndef MAP_FILE
26905 # define MAP_FILE 0
26906 # endif
26907 #endif
26908
26909 int
26910 main (void)
26911 {
26912
26913 int result = 0;
26914 char *fence = NULL;
26915 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
26916 # if HAVE_MAP_ANONYMOUS
26917 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
26918 const int fd = -1;
26919 # else /* !HAVE_MAP_ANONYMOUS */
26920 const int flags = MAP_FILE | MAP_PRIVATE;
26921 int fd = open ("/dev/zero", O_RDONLY, 0666);
26922 if (fd >= 0)
26923 # endif
26924 {
26925 int pagesize = getpagesize ();
26926 char *two_pages =
26927 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
26928 flags, fd, 0);
26929 if (two_pages != (char *)(-1)
26930 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
26931 fence = two_pages + pagesize;
26932 }
26933 #endif
26934 if (fence)
26935 {
26936 /* Test against bugs on glibc systems. */
26937 if (memchr (fence, 0, 0))
26938 result |= 1;
26939 strcpy (fence - 9, "12345678");
26940 if (memchr (fence - 9, 0, 79) != fence - 1)
26941 result |= 2;
26942 if (memchr (fence - 1, 0, 3) != fence - 1)
26943 result |= 4;
26944 /* Test against bug on AIX 7.2. */
26945 if (memchr (fence - 4, '6', 16) != fence - 4)
26946 result |= 8;
26947 }
26948 /* Test against bug on Android 4.3. */
26949 {
26950 char input[3];
26951 input[0] = 'a';
26952 input[1] = 'b';
26953 input[2] = 'c';
26954 if (memchr (input, 0x789abc00 | 'b', 3) != input + 1)
26955 result |= 16;
26956 }
26957 return result;
26958
26959 ;
26960 return 0;
26961 }
26962 _ACEOF
26963 if ac_fn_c_try_run "$LINENO"
26964 then :
26965 gl_cv_func_memchr_works=yes
26966 else $as_nop
26967 gl_cv_func_memchr_works=no
26968 fi
26969 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26970 conftest.$ac_objext conftest.beam conftest.$ac_ext
26971 fi
26972
26973
26974 fi
26975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
26976 printf "%s\n" "$gl_cv_func_memchr_works" >&6; }
26977 case "$gl_cv_func_memchr_works" in
26978 *yes) ;;
26979 *) REPLACE_MEMCHR=1 ;;
26980 esac
26981
26982
26983
26984 GL_GNULIB_EXPLICIT_BZERO=0
26985
26986
26987
26988 GL_GNULIB_FFSL=0
26989
26990
26991
26992 GL_GNULIB_FFSLL=0
26993
26994
26995
26996 GL_GNULIB_MEMCHR=0
26997
26998
26999
27000 GL_GNULIB_MEMMEM=0
27001
27002
27003
27004 GL_GNULIB_MEMPCPY=0
27005
27006
27007
27008 GL_GNULIB_MEMRCHR=0
27009
27010
27011
27012 GL_GNULIB_MEMSET_EXPLICIT=0
27013
27014
27015
27016 GL_GNULIB_RAWMEMCHR=0
27017
27018
27019
27020 GL_GNULIB_STPCPY=0
27021
27022
27023
27024 GL_GNULIB_STPNCPY=0
27025
27026
27027
27028 GL_GNULIB_STRCHRNUL=0
27029
27030
27031
27032 GL_GNULIB_STRDUP=0
27033
27034
27035
27036 GL_GNULIB_STRNCAT=0
27037
27038
27039
27040 GL_GNULIB_STRNDUP=0
27041
27042
27043
27044 GL_GNULIB_STRNLEN=0
27045
27046
27047
27048 GL_GNULIB_STRPBRK=0
27049
27050
27051
27052 GL_GNULIB_STRSEP=0
27053
27054
27055
27056 GL_GNULIB_STRSTR=0
27057
27058
27059
27060 GL_GNULIB_STRCASESTR=0
27061
27062
27063
27064 GL_GNULIB_STRTOK_R=0
27065
27066
27067
27068 GL_GNULIB_MBSLEN=0
27069
27070
27071
27072 GL_GNULIB_MBSNLEN=0
27073
27074
27075
27076 GL_GNULIB_MBSCHR=0
27077
27078
27079
27080 GL_GNULIB_MBSRCHR=0
27081
27082
27083
27084 GL_GNULIB_MBSSTR=0
27085
27086
27087
27088 GL_GNULIB_MBSCASECMP=0
27089
27090
27091
27092 GL_GNULIB_MBSNCASECMP=0
27093
27094
27095
27096 GL_GNULIB_MBSPCASECMP=0
27097
27098
27099
27100 GL_GNULIB_MBSCASESTR=0
27101
27102
27103
27104 GL_GNULIB_MBSCSPN=0
27105
27106
27107
27108 GL_GNULIB_MBSPBRK=0
27109
27110
27111
27112 GL_GNULIB_MBSSPN=0
27113
27114
27115
27116 GL_GNULIB_MBSSEP=0
27117
27118
27119
27120 GL_GNULIB_MBSTOK_R=0
27121
27122
27123
27124 GL_GNULIB_STRERROR=0
27125
27126
27127
27128 GL_GNULIB_STRERROR_R=0
27129
27130
27131
27132 GL_GNULIB_STRERRORNAME_NP=0
27133
27134
27135
27136 GL_GNULIB_SIGABBREV_NP=0
27137
27138
27139
27140 GL_GNULIB_SIGDESCR_NP=0
27141
27142
27143
27144 GL_GNULIB_STRSIGNAL=0
27145
27146
27147
27148 GL_GNULIB_STRVERSCMP=0
27149
27150
27151
27152 GL_GNULIB_MDA_MEMCCPY=1
27153
27154
27155
27156 GL_GNULIB_MDA_STRDUP=1
27157
27158
27159
27160
27161
27162
27163
27164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether <limits.h> defines MIN and MAX" >&5
27165 printf %s "checking whether <limits.h> defines MIN and MAX... " >&6; }
27166 if test ${gl_cv_minmax_in_limits_h+y}
27167 then :
27168 printf %s "(cached) " >&6
27169 else $as_nop
27170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27171 /* end confdefs.h. */
27172 #include <limits.h>
27173 int x = MIN (42, 17);
27174 int
27175 main (void)
27176 {
27177
27178 ;
27179 return 0;
27180 }
27181 _ACEOF
27182 if ac_fn_c_try_compile "$LINENO"
27183 then :
27184 gl_cv_minmax_in_limits_h=yes
27185 else $as_nop
27186 gl_cv_minmax_in_limits_h=no
27187 fi
27188 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27189 fi
27190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_minmax_in_limits_h" >&5
27191 printf "%s\n" "$gl_cv_minmax_in_limits_h" >&6; }
27192 if test $gl_cv_minmax_in_limits_h = yes; then
27193
27194 printf "%s\n" "#define HAVE_MINMAX_IN_LIMITS_H 1" >>confdefs.h
27195
27196 fi
27197
27198
27199
27200
27201
27202
27203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether <sys/param.h> defines MIN and MAX" >&5
27204 printf %s "checking whether <sys/param.h> defines MIN and MAX... " >&6; }
27205 if test ${gl_cv_minmax_in_sys_param_h+y}
27206 then :
27207 printf %s "(cached) " >&6
27208 else $as_nop
27209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27210 /* end confdefs.h. */
27211 #include <sys/param.h>
27212 int x = MIN (42, 17);
27213 int
27214 main (void)
27215 {
27216
27217 ;
27218 return 0;
27219 }
27220 _ACEOF
27221 if ac_fn_c_try_compile "$LINENO"
27222 then :
27223 gl_cv_minmax_in_sys_param_h=yes
27224 else $as_nop
27225 gl_cv_minmax_in_sys_param_h=no
27226 fi
27227 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27228 fi
27229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_minmax_in_sys_param_h" >&5
27230 printf "%s\n" "$gl_cv_minmax_in_sys_param_h" >&6; }
27231 if test $gl_cv_minmax_in_sys_param_h = yes; then
27232
27233 printf "%s\n" "#define HAVE_MINMAX_IN_SYS_PARAM_H 1" >>confdefs.h
27234
27235 fi
27236
27237
27238
27239
27240
27241
27242
27243
27244
27245
27246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
27247 printf %s "checking for O_CLOEXEC... " >&6; }
27248 if test ${gl_cv_macro_O_CLOEXEC+y}
27249 then :
27250 printf %s "(cached) " >&6
27251 else $as_nop
27252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27253 /* end confdefs.h. */
27254 #include <fcntl.h>
27255 #ifndef O_CLOEXEC
27256 choke me;
27257 #endif
27258
27259 int
27260 main (void)
27261 {
27262 return O_CLOEXEC;
27263 ;
27264 return 0;
27265 }
27266 _ACEOF
27267 if ac_fn_c_try_compile "$LINENO"
27268 then :
27269 gl_cv_macro_O_CLOEXEC=yes
27270 else $as_nop
27271 gl_cv_macro_O_CLOEXEC=no
27272 fi
27273 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27274 fi
27275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_macro_O_CLOEXEC" >&5
27276 printf "%s\n" "$gl_cv_macro_O_CLOEXEC" >&6; }
27277
27278
27279
27280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for promoted mode_t type" >&5
27281 printf %s "checking for promoted mode_t type... " >&6; }
27282 if test ${gl_cv_promoted_mode_t+y}
27283 then :
27284 printf %s "(cached) " >&6
27285 else $as_nop
27286
27287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27288 /* end confdefs.h. */
27289 #include <sys/types.h>
27290 int
27291 main (void)
27292 {
27293 typedef int array[2 * (sizeof (mode_t) < sizeof (int)) - 1];
27294 ;
27295 return 0;
27296 }
27297 _ACEOF
27298 if ac_fn_c_try_compile "$LINENO"
27299 then :
27300 gl_cv_promoted_mode_t='int'
27301 else $as_nop
27302 gl_cv_promoted_mode_t='mode_t'
27303 fi
27304 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27305
27306 fi
27307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_promoted_mode_t" >&5
27308 printf "%s\n" "$gl_cv_promoted_mode_t" >&6; }
27309
27310 printf "%s\n" "#define PROMOTED_MODE_T $gl_cv_promoted_mode_t" >>confdefs.h
27311
27312
27313
27314
27315
27316
27317 if test $REPLACE_MALLOC_FOR_MALLOC_POSIX = 1; then
27318 REPLACE_REALLOC_FOR_REALLOC_POSIX=1
27319 fi
27320
27321 ac_fn_check_decl "$LINENO" "alarm" "ac_cv_have_decl_alarm" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
27322 if test "x$ac_cv_have_decl_alarm" = xyes
27323 then :
27324 ac_have_decl=1
27325 else $as_nop
27326 ac_have_decl=0
27327 fi
27328 printf "%s\n" "#define HAVE_DECL_ALARM $ac_have_decl" >>confdefs.h
27329
27330
27331
27332
27333
27334
27335
27336
27337 # Check whether --with-selinux was given.
27338 if test ${with_selinux+y}
27339 then :
27340 withval=$with_selinux;
27341 else $as_nop
27342 with_selinux=maybe
27343 fi
27344
27345
27346 LIB_SELINUX=
27347 if test "$with_selinux" != no; then
27348 gl_save_LIBS=$LIBS
27349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing setfilecon" >&5
27350 printf %s "checking for library containing setfilecon... " >&6; }
27351 if test ${ac_cv_search_setfilecon+y}
27352 then :
27353 printf %s "(cached) " >&6
27354 else $as_nop
27355 ac_func_search_save_LIBS=$LIBS
27356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27357 /* end confdefs.h. */
27358
27359 /* Override any GCC internal prototype to avoid an error.
27360 Use char because int might match the return type of a GCC
27361 builtin and then its argument prototype would still apply. */
27362 char setfilecon ();
27363 int
27364 main (void)
27365 {
27366 return setfilecon ();
27367 ;
27368 return 0;
27369 }
27370 _ACEOF
27371 for ac_lib in '' selinux
27372 do
27373 if test -z "$ac_lib"; then
27374 ac_res="none required"
27375 else
27376 ac_res=-l$ac_lib
27377 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27378 fi
27379 if ac_fn_c_try_link "$LINENO"
27380 then :
27381 ac_cv_search_setfilecon=$ac_res
27382 fi
27383 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27384 conftest$ac_exeext
27385 if test ${ac_cv_search_setfilecon+y}
27386 then :
27387 break
27388 fi
27389 done
27390 if test ${ac_cv_search_setfilecon+y}
27391 then :
27392
27393 else $as_nop
27394 ac_cv_search_setfilecon=no
27395 fi
27396 rm conftest.$ac_ext
27397 LIBS=$ac_func_search_save_LIBS
27398 fi
27399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setfilecon" >&5
27400 printf "%s\n" "$ac_cv_search_setfilecon" >&6; }
27401 ac_res=$ac_cv_search_setfilecon
27402 if test "$ac_res" != no
27403 then :
27404 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27405 test "$ac_cv_search_setfilecon" = "none required" ||
27406 LIB_SELINUX=$ac_cv_search_setfilecon
27407 fi
27408
27409 LIBS=$gl_save_LIBS
27410 fi
27411
27412
27413 # Warn if SELinux is found but libselinux is absent;
27414 if test "$ac_cv_search_setfilecon" = no; then
27415 if test "$host" = "$build" && test -d /selinux; then
27416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: This system supports SELinux but libselinux is missing." >&5
27417 printf "%s\n" "$as_me: WARNING: This system supports SELinux but libselinux is missing." >&2;}
27418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: augeas will be compiled without SELinux support." >&5
27419 printf "%s\n" "$as_me: WARNING: augeas will be compiled without SELinux support." >&2;}
27420 fi
27421 with_selinux=no
27422 fi
27423
27424
27425
27426
27427
27428
27429
27430
27431 ac_fn_check_decl "$LINENO" "fcloseall" "ac_cv_have_decl_fcloseall" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
27432 if test "x$ac_cv_have_decl_fcloseall" = xyes
27433 then :
27434 ac_have_decl=1
27435 else $as_nop
27436 ac_have_decl=0
27437 fi
27438 printf "%s\n" "#define HAVE_DECL_FCLOSEALL $ac_have_decl" >>confdefs.h
27439
27440
27441
27442
27443 printf "%s\n" "#define __USE_MINGW_ANSI_STDIO 1" >>confdefs.h
27444
27445
27446
27447
27448
27449
27450
27451
27452
27453 if test $gl_cv_have_include_next = yes; then
27454 gl_cv_next_stdio_h='<'stdio.h'>'
27455 else
27456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
27457 printf %s "checking absolute name of <stdio.h>... " >&6; }
27458 if test ${gl_cv_next_stdio_h+y}
27459 then :
27460 printf %s "(cached) " >&6
27461 else $as_nop
27462
27463
27464
27465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27466 /* end confdefs.h. */
27467 #include <stdio.h>
27468 _ACEOF
27469 case "$host_os" in
27470 aix*) gl_absname_cpp="$ac_cpp -C" ;;
27471 *) gl_absname_cpp="$ac_cpp" ;;
27472 esac
27473
27474 case "$host_os" in
27475 mingw*)
27476 gl_dirsep_regex='[/\\]'
27477 ;;
27478 *)
27479 gl_dirsep_regex='\/'
27480 ;;
27481 esac
27482 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
27483 gl_header_literal_regex=`echo 'stdio.h' \
27484 | sed -e "$gl_make_literal_regex_sed"`
27485 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27486 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27487 s|^/[^/]|//&|
27488 p
27489 q
27490 }'
27491
27492 gl_cv_absolute_stdio_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27493 sed -n "$gl_absolute_header_sed"`
27494
27495 gl_header=$gl_cv_absolute_stdio_h
27496 gl_cv_next_stdio_h='"'$gl_header'"'
27497
27498
27499 fi
27500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
27501 printf "%s\n" "$gl_cv_next_stdio_h" >&6; }
27502 fi
27503 NEXT_STDIO_H=$gl_cv_next_stdio_h
27504
27505 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
27506 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27507 gl_next_as_first_directive='<'stdio.h'>'
27508 else
27509 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27510 gl_next_as_first_directive=$gl_cv_next_stdio_h
27511 fi
27512 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
27513
27514
27515
27516
27517
27518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which flavor of printf attribute matches inttypes macros" >&5
27519 printf %s "checking which flavor of printf attribute matches inttypes macros... " >&6; }
27520 if test ${gl_cv_func_printf_attribute_flavor+y}
27521 then :
27522 printf %s "(cached) " >&6
27523 else $as_nop
27524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27525 /* end confdefs.h. */
27526
27527 #define __STDC_FORMAT_MACROS 1
27528 #include <stdio.h>
27529 #include <inttypes.h>
27530 /* For non-mingw systems, compilation will trivially succeed.
27531 For mingw, compilation will succeed for older mingw (system
27532 printf, "I64d") and fail for newer mingw (gnu printf, "lld"). */
27533 #if (defined _WIN32 && ! defined __CYGWIN__) && \
27534 (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4))
27535 extern char PRIdMAX_probe[sizeof PRIdMAX == sizeof "I64d" ? 1 : -1];
27536 #endif
27537
27538 int
27539 main (void)
27540 {
27541
27542 ;
27543 return 0;
27544 }
27545 _ACEOF
27546 if ac_fn_c_try_compile "$LINENO"
27547 then :
27548 gl_cv_func_printf_attribute_flavor=system
27549 else $as_nop
27550 gl_cv_func_printf_attribute_flavor=gnu
27551 fi
27552 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27553 fi
27554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_attribute_flavor" >&5
27555 printf "%s\n" "$gl_cv_func_printf_attribute_flavor" >&6; }
27556 if test "$gl_cv_func_printf_attribute_flavor" = gnu; then
27557
27558 printf "%s\n" "#define GNULIB_PRINTF_ATTRIBUTE_FLAVOR_GNU 1" >>confdefs.h
27559
27560 fi
27561
27562
27563
27564
27565
27566
27567
27568
27569
27570
27571
27572
27573
27574 if test $ac_cv_have_decl_fcloseall = no; then
27575 HAVE_DECL_FCLOSEALL=0
27576 fi
27577
27578 ac_fn_check_decl "$LINENO" "ecvt" "ac_cv_have_decl_ecvt" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
27579 if test "x$ac_cv_have_decl_ecvt" = xyes
27580 then :
27581 ac_have_decl=1
27582 else $as_nop
27583 ac_have_decl=0
27584 fi
27585 printf "%s\n" "#define HAVE_DECL_ECVT $ac_have_decl" >>confdefs.h
27586
27587 ac_fn_check_decl "$LINENO" "fcvt" "ac_cv_have_decl_fcvt" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
27588 if test "x$ac_cv_have_decl_fcvt" = xyes
27589 then :
27590 ac_have_decl=1
27591 else $as_nop
27592 ac_have_decl=0
27593 fi
27594 printf "%s\n" "#define HAVE_DECL_FCVT $ac_have_decl" >>confdefs.h
27595
27596 ac_fn_check_decl "$LINENO" "gcvt" "ac_cv_have_decl_gcvt" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
27597 if test "x$ac_cv_have_decl_gcvt" = xyes
27598 then :
27599 ac_have_decl=1
27600 else $as_nop
27601 ac_have_decl=0
27602 fi
27603 printf "%s\n" "#define HAVE_DECL_GCVT $ac_have_decl" >>confdefs.h
27604
27605
27606
27607
27608
27609
27610
27611
27612
27613
27614
27615 if test $gl_cv_have_include_next = yes; then
27616 gl_cv_next_stdlib_h='<'stdlib.h'>'
27617 else
27618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
27619 printf %s "checking absolute name of <stdlib.h>... " >&6; }
27620 if test ${gl_cv_next_stdlib_h+y}
27621 then :
27622 printf %s "(cached) " >&6
27623 else $as_nop
27624
27625
27626
27627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27628 /* end confdefs.h. */
27629 #include <stdlib.h>
27630 _ACEOF
27631 case "$host_os" in
27632 aix*) gl_absname_cpp="$ac_cpp -C" ;;
27633 *) gl_absname_cpp="$ac_cpp" ;;
27634 esac
27635
27636 case "$host_os" in
27637 mingw*)
27638 gl_dirsep_regex='[/\\]'
27639 ;;
27640 *)
27641 gl_dirsep_regex='\/'
27642 ;;
27643 esac
27644 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
27645 gl_header_literal_regex=`echo 'stdlib.h' \
27646 | sed -e "$gl_make_literal_regex_sed"`
27647 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27648 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27649 s|^/[^/]|//&|
27650 p
27651 q
27652 }'
27653
27654 gl_cv_absolute_stdlib_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27655 sed -n "$gl_absolute_header_sed"`
27656
27657 gl_header=$gl_cv_absolute_stdlib_h
27658 gl_cv_next_stdlib_h='"'$gl_header'"'
27659
27660
27661 fi
27662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
27663 printf "%s\n" "$gl_cv_next_stdlib_h" >&6; }
27664 fi
27665 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
27666
27667 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
27668 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27669 gl_next_as_first_directive='<'stdlib.h'>'
27670 else
27671 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27672 gl_next_as_first_directive=$gl_cv_next_stdlib_h
27673 fi
27674 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
27675
27676
27677
27678
27679
27680
27681
27682
27683
27684
27685
27686
27687 if test $ac_cv_have_decl_ecvt = no; then
27688 HAVE_DECL_ECVT=0
27689 fi
27690
27691 if test $ac_cv_have_decl_fcvt = no; then
27692 HAVE_DECL_FCVT=0
27693 fi
27694
27695 if test $ac_cv_have_decl_gcvt = no; then
27696 HAVE_DECL_GCVT=0
27697 fi
27698
27699 ac_fn_check_decl "$LINENO" "stpncpy" "ac_cv_have_decl_stpncpy" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
27700 if test "x$ac_cv_have_decl_stpncpy" = xyes
27701 then :
27702 ac_have_decl=1
27703 else $as_nop
27704 ac_have_decl=0
27705 fi
27706 printf "%s\n" "#define HAVE_DECL_STPNCPY $ac_have_decl" >>confdefs.h
27707
27708
27709
27710
27711
27712
27713
27714
27715
27716
27717
27718
27719 if test $gl_cv_have_include_next = yes; then
27720 gl_cv_next_string_h='<'string.h'>'
27721 else
27722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
27723 printf %s "checking absolute name of <string.h>... " >&6; }
27724 if test ${gl_cv_next_string_h+y}
27725 then :
27726 printf %s "(cached) " >&6
27727 else $as_nop
27728
27729
27730
27731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27732 /* end confdefs.h. */
27733 #include <string.h>
27734 _ACEOF
27735 case "$host_os" in
27736 aix*) gl_absname_cpp="$ac_cpp -C" ;;
27737 *) gl_absname_cpp="$ac_cpp" ;;
27738 esac
27739
27740 case "$host_os" in
27741 mingw*)
27742 gl_dirsep_regex='[/\\]'
27743 ;;
27744 *)
27745 gl_dirsep_regex='\/'
27746 ;;
27747 esac
27748 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
27749 gl_header_literal_regex=`echo 'string.h' \
27750 | sed -e "$gl_make_literal_regex_sed"`
27751 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27752 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27753 s|^/[^/]|//&|
27754 p
27755 q
27756 }'
27757
27758 gl_cv_absolute_string_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27759 sed -n "$gl_absolute_header_sed"`
27760
27761 gl_header=$gl_cv_absolute_string_h
27762 gl_cv_next_string_h='"'$gl_header'"'
27763
27764
27765 fi
27766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
27767 printf "%s\n" "$gl_cv_next_string_h" >&6; }
27768 fi
27769 NEXT_STRING_H=$gl_cv_next_string_h
27770
27771 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
27772 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27773 gl_next_as_first_directive='<'string.h'>'
27774 else
27775 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27776 gl_next_as_first_directive=$gl_cv_next_string_h
27777 fi
27778 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
27779
27780
27781
27782
27783
27784
27785
27786
27787
27788
27789
27790 ac_fn_check_decl "$LINENO" "strndup" "ac_cv_have_decl_strndup" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
27791 if test "x$ac_cv_have_decl_strndup" = xyes
27792 then :
27793 ac_have_decl=1
27794 else $as_nop
27795 ac_have_decl=0
27796 fi
27797 printf "%s\n" "#define HAVE_DECL_STRNDUP $ac_have_decl" >>confdefs.h
27798
27799
27800 ac_fn_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
27801 if test "x$ac_cv_have_decl_strnlen" = xyes
27802 then :
27803 ac_have_decl=1
27804 else $as_nop
27805 ac_have_decl=0
27806 fi
27807 printf "%s\n" "#define HAVE_DECL_STRNLEN $ac_have_decl" >>confdefs.h
27808
27809
27810
27811
27812 if test $REPLACE_MEMCHR = 1; then
27813 REPLACE_STRSTR=1
27814 else
27815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
27816 printf %s "checking whether strstr works... " >&6; }
27817 if test ${gl_cv_func_strstr_works_always+y}
27818 then :
27819 printf %s "(cached) " >&6
27820 else $as_nop
27821 if test "$cross_compiling" = yes
27822 then :
27823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27824 /* end confdefs.h. */
27825
27826 #include <string.h> /* for __GNU_LIBRARY__ */
27827 #ifdef __GNU_LIBRARY__
27828 #include <features.h>
27829 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
27830 || defined __UCLIBC__
27831 Lucky user
27832 #endif
27833 #elif defined __CYGWIN__
27834 #include <cygwin/version.h>
27835 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
27836 Lucky user
27837 #endif
27838 #else
27839 Lucky user
27840 #endif
27841
27842 _ACEOF
27843 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27844 $EGREP "Lucky user" >/dev/null 2>&1
27845 then :
27846 gl_cv_func_strstr_works_always="guessing yes"
27847 else $as_nop
27848 gl_cv_func_strstr_works_always="$gl_cross_guess_normal"
27849 fi
27850 rm -rf conftest*
27851
27852
27853 else $as_nop
27854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27855 /* end confdefs.h. */
27856
27857 #include <string.h> /* for __GNU_LIBRARY__, strstr */
27858 #ifdef __GNU_LIBRARY__
27859 #include <features.h>
27860 #if __GLIBC__ == 2 && __GLIBC_MINOR__ == 28
27861 Unlucky user
27862 #endif
27863 #endif
27864 #define P "_EF_BF_BD"
27865 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
27866 #define NEEDLE P P P P P
27867
27868 int
27869 main (void)
27870 {
27871 return !!strstr (HAYSTACK, NEEDLE);
27872
27873 ;
27874 return 0;
27875 }
27876 _ACEOF
27877 if ac_fn_c_try_run "$LINENO"
27878 then :
27879 gl_cv_func_strstr_works_always=yes
27880 else $as_nop
27881 gl_cv_func_strstr_works_always=no
27882 fi
27883 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27884 conftest.$ac_objext conftest.beam conftest.$ac_ext
27885 fi
27886
27887
27888 fi
27889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
27890 printf "%s\n" "$gl_cv_func_strstr_works_always" >&6; }
27891 case "$gl_cv_func_strstr_works_always" in
27892 *yes) ;;
27893 *)
27894 REPLACE_STRSTR=1
27895 ;;
27896 esac
27897 fi
27898
27899
27900
27901
27902
27903
27904
27905
27906
27907
27908
27909
27910
27911 if test $gl_cv_have_include_next = yes; then
27912 gl_cv_next_sys_random_h='<'sys/random.h'>'
27913 else
27914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/random.h>" >&5
27915 printf %s "checking absolute name of <sys/random.h>... " >&6; }
27916 if test ${gl_cv_next_sys_random_h+y}
27917 then :
27918 printf %s "(cached) " >&6
27919 else $as_nop
27920
27921 if test $ac_cv_header_sys_random_h = yes; then
27922
27923
27924
27925
27926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27927 /* end confdefs.h. */
27928 #include <sys/random.h>
27929 _ACEOF
27930 case "$host_os" in
27931 aix*) gl_absname_cpp="$ac_cpp -C" ;;
27932 *) gl_absname_cpp="$ac_cpp" ;;
27933 esac
27934
27935 case "$host_os" in
27936 mingw*)
27937 gl_dirsep_regex='[/\\]'
27938 ;;
27939 *)
27940 gl_dirsep_regex='\/'
27941 ;;
27942 esac
27943 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
27944 gl_header_literal_regex=`echo 'sys/random.h' \
27945 | sed -e "$gl_make_literal_regex_sed"`
27946 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27947 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27948 s|^/[^/]|//&|
27949 p
27950 q
27951 }'
27952
27953 gl_cv_absolute_sys_random_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27954 sed -n "$gl_absolute_header_sed"`
27955
27956 gl_header=$gl_cv_absolute_sys_random_h
27957 gl_cv_next_sys_random_h='"'$gl_header'"'
27958 else
27959 gl_cv_next_sys_random_h='<'sys/random.h'>'
27960 fi
27961
27962
27963 fi
27964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_random_h" >&5
27965 printf "%s\n" "$gl_cv_next_sys_random_h" >&6; }
27966 fi
27967 NEXT_SYS_RANDOM_H=$gl_cv_next_sys_random_h
27968
27969 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
27970 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27971 gl_next_as_first_directive='<'sys/random.h'>'
27972 else
27973 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27974 gl_next_as_first_directive=$gl_cv_next_sys_random_h
27975 fi
27976 NEXT_AS_FIRST_DIRECTIVE_SYS_RANDOM_H=$gl_next_as_first_directive
27977
27978
27979
27980
27981 if test $ac_cv_header_sys_random_h = yes; then
27982 HAVE_SYS_RANDOM_H=1
27983 else
27984 HAVE_SYS_RANDOM_H=0
27985 fi
27986
27987
27988
27989 if test $ac_cv_header_sys_random_h = yes; then
27990 UNISTD_H_HAVE_SYS_RANDOM_H=1
27991 fi
27992
27993
27994
27995
27996
27997
27998
27999
28000
28001
28002
28003
28004
28005
28006
28007
28008
28009 printf "%s\n" "#define _USE_STD_STAT 1" >>confdefs.h
28010
28011
28012
28013
28014
28015
28016
28017
28018
28019
28020 if test $gl_cv_have_include_next = yes; then
28021 gl_cv_next_sys_types_h='<'sys/types.h'>'
28022 else
28023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
28024 printf %s "checking absolute name of <sys/types.h>... " >&6; }
28025 if test ${gl_cv_next_sys_types_h+y}
28026 then :
28027 printf %s "(cached) " >&6
28028 else $as_nop
28029
28030
28031
28032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28033 /* end confdefs.h. */
28034 #include <sys/types.h>
28035 _ACEOF
28036 case "$host_os" in
28037 aix*) gl_absname_cpp="$ac_cpp -C" ;;
28038 *) gl_absname_cpp="$ac_cpp" ;;
28039 esac
28040
28041 case "$host_os" in
28042 mingw*)
28043 gl_dirsep_regex='[/\\]'
28044 ;;
28045 *)
28046 gl_dirsep_regex='\/'
28047 ;;
28048 esac
28049 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
28050 gl_header_literal_regex=`echo 'sys/types.h' \
28051 | sed -e "$gl_make_literal_regex_sed"`
28052 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
28053 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
28054 s|^/[^/]|//&|
28055 p
28056 q
28057 }'
28058
28059 gl_cv_absolute_sys_types_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
28060 sed -n "$gl_absolute_header_sed"`
28061
28062 gl_header=$gl_cv_absolute_sys_types_h
28063 gl_cv_next_sys_types_h='"'$gl_header'"'
28064
28065
28066 fi
28067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
28068 printf "%s\n" "$gl_cv_next_sys_types_h" >&6; }
28069 fi
28070 NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
28071
28072 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
28073 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
28074 gl_next_as_first_directive='<'sys/types.h'>'
28075 else
28076 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
28077 gl_next_as_first_directive=$gl_cv_next_sys_types_h
28078 fi
28079 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
28080
28081
28082
28083
28084
28085
28086
28087
28088
28089
28090
28091
28092 WINDOWS_STAT_INODES=0
28093
28094
28095
28096
28097
28098
28099
28100
28101
28102
28103
28104
28105
28106
28107
28108
28109
28110
28111
28112
28113 if test $gl_cv_have_include_next = yes; then
28114 gl_cv_next_sys_wait_h='<'sys/wait.h'>'
28115 else
28116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/wait.h>" >&5
28117 printf %s "checking absolute name of <sys/wait.h>... " >&6; }
28118 if test ${gl_cv_next_sys_wait_h+y}
28119 then :
28120 printf %s "(cached) " >&6
28121 else $as_nop
28122
28123 if test $ac_cv_header_sys_wait_h = yes; then
28124
28125
28126
28127
28128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28129 /* end confdefs.h. */
28130 #include <sys/wait.h>
28131 _ACEOF
28132 case "$host_os" in
28133 aix*) gl_absname_cpp="$ac_cpp -C" ;;
28134 *) gl_absname_cpp="$ac_cpp" ;;
28135 esac
28136
28137 case "$host_os" in
28138 mingw*)
28139 gl_dirsep_regex='[/\\]'
28140 ;;
28141 *)
28142 gl_dirsep_regex='\/'
28143 ;;
28144 esac
28145 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
28146 gl_header_literal_regex=`echo 'sys/wait.h' \
28147 | sed -e "$gl_make_literal_regex_sed"`
28148 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
28149 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
28150 s|^/[^/]|//&|
28151 p
28152 q
28153 }'
28154
28155 gl_cv_absolute_sys_wait_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
28156 sed -n "$gl_absolute_header_sed"`
28157
28158 gl_header=$gl_cv_absolute_sys_wait_h
28159 gl_cv_next_sys_wait_h='"'$gl_header'"'
28160 else
28161 gl_cv_next_sys_wait_h='<'sys/wait.h'>'
28162 fi
28163
28164
28165 fi
28166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_wait_h" >&5
28167 printf "%s\n" "$gl_cv_next_sys_wait_h" >&6; }
28168 fi
28169 NEXT_SYS_WAIT_H=$gl_cv_next_sys_wait_h
28170
28171 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
28172 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
28173 gl_next_as_first_directive='<'sys/wait.h'>'
28174 else
28175 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
28176 gl_next_as_first_directive=$gl_cv_next_sys_wait_h
28177 fi
28178 NEXT_AS_FIRST_DIRECTIVE_SYS_WAIT_H=$gl_next_as_first_directive
28179
28180
28181
28182
28183
28184
28185
28186
28187
28188
28189
28190
28191
28192 GL_GNULIB_WAITPID=0
28193
28194
28195
28196
28197 HAVE_DECL_LOCALTIME_R=1;
28198 HAVE_NANOSLEEP=1;
28199 HAVE_STRPTIME=1;
28200 HAVE_TIMEGM=1;
28201 HAVE_TIMESPEC_GET=1;
28202 HAVE_TIMESPEC_GETRES=1;
28203 HAVE_TIMEZONE_T=0;
28204 REPLACE_CTIME=GNULIB_PORTCHECK;
28205 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
28206 REPLACE_MKTIME=GNULIB_PORTCHECK;
28207 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
28208 REPLACE_STRFTIME=GNULIB_PORTCHECK;
28209 REPLACE_TIMEGM=GNULIB_PORTCHECK;
28210 REPLACE_TZSET=GNULIB_PORTCHECK;
28211
28212 : ${GNULIB_GETTIMEOFDAY=0};
28213 REPLACE_GMTIME=0;
28214 REPLACE_LOCALTIME=0;
28215
28216
28217
28218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
28219 printf %s "checking for struct timespec in <time.h>... " >&6; }
28220 if test ${gl_cv_sys_struct_timespec_in_time_h+y}
28221 then :
28222 printf %s "(cached) " >&6
28223 else $as_nop
28224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28225 /* end confdefs.h. */
28226 #include <time.h>
28227
28228 int
28229 main (void)
28230 {
28231 static struct timespec x; x.tv_sec = x.tv_nsec;
28232 ;
28233 return 0;
28234 }
28235 _ACEOF
28236 if ac_fn_c_try_compile "$LINENO"
28237 then :
28238 gl_cv_sys_struct_timespec_in_time_h=yes
28239 else $as_nop
28240 gl_cv_sys_struct_timespec_in_time_h=no
28241 fi
28242 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
28243 fi
28244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
28245 printf "%s\n" "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
28246
28247 TIME_H_DEFINES_STRUCT_TIMESPEC=0
28248 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
28249 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
28250 UNISTD_H_DEFINES_STRUCT_TIMESPEC=0
28251 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
28252 TIME_H_DEFINES_STRUCT_TIMESPEC=1
28253 else
28254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
28255 printf %s "checking for struct timespec in <sys/time.h>... " >&6; }
28256 if test ${gl_cv_sys_struct_timespec_in_sys_time_h+y}
28257 then :
28258 printf %s "(cached) " >&6
28259 else $as_nop
28260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28261 /* end confdefs.h. */
28262 #include <sys/time.h>
28263
28264 int
28265 main (void)
28266 {
28267 static struct timespec x; x.tv_sec = x.tv_nsec;
28268 ;
28269 return 0;
28270 }
28271 _ACEOF
28272 if ac_fn_c_try_compile "$LINENO"
28273 then :
28274 gl_cv_sys_struct_timespec_in_sys_time_h=yes
28275 else $as_nop
28276 gl_cv_sys_struct_timespec_in_sys_time_h=no
28277 fi
28278 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
28279 fi
28280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
28281 printf "%s\n" "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
28282 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
28283 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
28284 else
28285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
28286 printf %s "checking for struct timespec in <pthread.h>... " >&6; }
28287 if test ${gl_cv_sys_struct_timespec_in_pthread_h+y}
28288 then :
28289 printf %s "(cached) " >&6
28290 else $as_nop
28291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28292 /* end confdefs.h. */
28293 #include <pthread.h>
28294
28295 int
28296 main (void)
28297 {
28298 static struct timespec x; x.tv_sec = x.tv_nsec;
28299 ;
28300 return 0;
28301 }
28302 _ACEOF
28303 if ac_fn_c_try_compile "$LINENO"
28304 then :
28305 gl_cv_sys_struct_timespec_in_pthread_h=yes
28306 else $as_nop
28307 gl_cv_sys_struct_timespec_in_pthread_h=no
28308 fi
28309 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
28310 fi
28311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
28312 printf "%s\n" "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
28313 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
28314 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
28315 else
28316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <unistd.h>" >&5
28317 printf %s "checking for struct timespec in <unistd.h>... " >&6; }
28318 if test ${gl_cv_sys_struct_timespec_in_unistd_h+y}
28319 then :
28320 printf %s "(cached) " >&6
28321 else $as_nop
28322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28323 /* end confdefs.h. */
28324 #include <unistd.h>
28325
28326 int
28327 main (void)
28328 {
28329 static struct timespec x; x.tv_sec = x.tv_nsec;
28330 ;
28331 return 0;
28332 }
28333 _ACEOF
28334 if ac_fn_c_try_compile "$LINENO"
28335 then :
28336 gl_cv_sys_struct_timespec_in_unistd_h=yes
28337 else $as_nop
28338 gl_cv_sys_struct_timespec_in_unistd_h=no
28339 fi
28340 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
28341 fi
28342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_unistd_h" >&5
28343 printf "%s\n" "$gl_cv_sys_struct_timespec_in_unistd_h" >&6; }
28344 if test $gl_cv_sys_struct_timespec_in_unistd_h = yes; then
28345 UNISTD_H_DEFINES_STRUCT_TIMESPEC=1
28346 fi
28347 fi
28348 fi
28349 fi
28350
28351
28352
28353
28354
28355
28356
28357
28358
28359
28360
28361
28362
28363
28364
28365
28366 if test $gl_cv_have_include_next = yes; then
28367 gl_cv_next_time_h='<'time.h'>'
28368 else
28369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
28370 printf %s "checking absolute name of <time.h>... " >&6; }
28371 if test ${gl_cv_next_time_h+y}
28372 then :
28373 printf %s "(cached) " >&6
28374 else $as_nop
28375
28376
28377
28378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28379 /* end confdefs.h. */
28380 #include <time.h>
28381 _ACEOF
28382 case "$host_os" in
28383 aix*) gl_absname_cpp="$ac_cpp -C" ;;
28384 *) gl_absname_cpp="$ac_cpp" ;;
28385 esac
28386
28387 case "$host_os" in
28388 mingw*)
28389 gl_dirsep_regex='[/\\]'
28390 ;;
28391 *)
28392 gl_dirsep_regex='\/'
28393 ;;
28394 esac
28395 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
28396 gl_header_literal_regex=`echo 'time.h' \
28397 | sed -e "$gl_make_literal_regex_sed"`
28398 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
28399 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
28400 s|^/[^/]|//&|
28401 p
28402 q
28403 }'
28404
28405 gl_cv_absolute_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
28406 sed -n "$gl_absolute_header_sed"`
28407
28408 gl_header=$gl_cv_absolute_time_h
28409 gl_cv_next_time_h='"'$gl_header'"'
28410
28411
28412 fi
28413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
28414 printf "%s\n" "$gl_cv_next_time_h" >&6; }
28415 fi
28416 NEXT_TIME_H=$gl_cv_next_time_h
28417
28418 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
28419 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
28420 gl_next_as_first_directive='<'time.h'>'
28421 else
28422 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
28423 gl_next_as_first_directive=$gl_cv_next_time_h
28424 fi
28425 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
28426
28427
28428
28429
28430
28431
28432
28433
28434
28435
28436
28437
28438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for TIME_UTC in <time.h>" >&5
28439 printf %s "checking for TIME_UTC in <time.h>... " >&6; }
28440 if test ${gl_cv_time_h_has_TIME_UTC+y}
28441 then :
28442 printf %s "(cached) " >&6
28443 else $as_nop
28444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28445 /* end confdefs.h. */
28446 #include <time.h>
28447
28448 int
28449 main (void)
28450 {
28451 static int x = TIME_UTC; x++;
28452 ;
28453 return 0;
28454 }
28455 _ACEOF
28456 if ac_fn_c_try_compile "$LINENO"
28457 then :
28458 gl_cv_time_h_has_TIME_UTC=yes
28459 else $as_nop
28460 gl_cv_time_h_has_TIME_UTC=no
28461 fi
28462 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
28463 fi
28464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_h_has_TIME_UTC" >&5
28465 printf "%s\n" "$gl_cv_time_h_has_TIME_UTC" >&6; }
28466 if test $gl_cv_time_h_has_TIME_UTC = yes; then
28467 TIME_H_DEFINES_TIME_UTC=1
28468 else
28469 TIME_H_DEFINES_TIME_UTC=0
28470 fi
28471
28472
28473
28474
28475 GL_GNULIB_CTIME=0
28476
28477
28478
28479 GL_GNULIB_MKTIME=0
28480
28481
28482
28483 GL_GNULIB_LOCALTIME=0
28484
28485
28486
28487 GL_GNULIB_NANOSLEEP=0
28488
28489
28490
28491 GL_GNULIB_STRFTIME=0
28492
28493
28494
28495 GL_GNULIB_STRPTIME=0
28496
28497
28498
28499 GL_GNULIB_TIMEGM=0
28500
28501
28502
28503 GL_GNULIB_TIMESPEC_GET=0
28504
28505
28506
28507 GL_GNULIB_TIMESPEC_GETRES=0
28508
28509
28510
28511 GL_GNULIB_TIME_R=0
28512
28513
28514
28515 GL_GNULIB_TIME_RZ=0
28516
28517
28518
28519 GL_GNULIB_TZSET=0
28520
28521
28522
28523 GL_GNULIB_MDA_TZSET=1
28524
28525
28526
28527 ac_fn_check_decl "$LINENO" "execvpe" "ac_cv_have_decl_execvpe" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
28528 if test "x$ac_cv_have_decl_execvpe" = xyes
28529 then :
28530 ac_have_decl=1
28531 else $as_nop
28532 ac_have_decl=0
28533 fi
28534 printf "%s\n" "#define HAVE_DECL_EXECVPE $ac_have_decl" >>confdefs.h
28535
28536
28537
28538
28539
28540
28541
28542
28543
28544
28545
28546
28547
28548 if test $gl_cv_have_include_next = yes; then
28549 gl_cv_next_unistd_h='<'unistd.h'>'
28550 else
28551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
28552 printf %s "checking absolute name of <unistd.h>... " >&6; }
28553 if test ${gl_cv_next_unistd_h+y}
28554 then :
28555 printf %s "(cached) " >&6
28556 else $as_nop
28557
28558 if test $ac_cv_header_unistd_h = yes; then
28559
28560
28561
28562
28563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28564 /* end confdefs.h. */
28565 #include <unistd.h>
28566 _ACEOF
28567 case "$host_os" in
28568 aix*) gl_absname_cpp="$ac_cpp -C" ;;
28569 *) gl_absname_cpp="$ac_cpp" ;;
28570 esac
28571
28572 case "$host_os" in
28573 mingw*)
28574 gl_dirsep_regex='[/\\]'
28575 ;;
28576 *)
28577 gl_dirsep_regex='\/'
28578 ;;
28579 esac
28580 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
28581 gl_header_literal_regex=`echo 'unistd.h' \
28582 | sed -e "$gl_make_literal_regex_sed"`
28583 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
28584 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
28585 s|^/[^/]|//&|
28586 p
28587 q
28588 }'
28589
28590 gl_cv_absolute_unistd_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
28591 sed -n "$gl_absolute_header_sed"`
28592
28593 gl_header=$gl_cv_absolute_unistd_h
28594 gl_cv_next_unistd_h='"'$gl_header'"'
28595 else
28596 gl_cv_next_unistd_h='<'unistd.h'>'
28597 fi
28598
28599
28600 fi
28601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
28602 printf "%s\n" "$gl_cv_next_unistd_h" >&6; }
28603 fi
28604 NEXT_UNISTD_H=$gl_cv_next_unistd_h
28605
28606 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
28607 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
28608 gl_next_as_first_directive='<'unistd.h'>'
28609 else
28610 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
28611 gl_next_as_first_directive=$gl_cv_next_unistd_h
28612 fi
28613 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
28614
28615
28616
28617
28618 if test $ac_cv_header_unistd_h = yes; then
28619 HAVE_UNISTD_H=1
28620 else
28621 HAVE_UNISTD_H=0
28622 fi
28623
28624
28625
28626
28627
28628
28629
28630
28631
28632
28633
28634
28635
28636 if test $ac_cv_have_decl_execvpe = no; then
28637 HAVE_DECL_EXECVPE=0
28638 fi
28639
28640
28641
28642
28643
28644 if test $ac_cv_header_features_h = yes; then
28645 HAVE_FEATURES_H=1
28646 else
28647 HAVE_FEATURES_H=0
28648 fi
28649
28650
28651
28652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
28653 printf %s "checking for inttypes.h... " >&6; }
28654 if test ${gl_cv_header_inttypes_h+y}
28655 then :
28656 printf %s "(cached) " >&6
28657 else $as_nop
28658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28659 /* end confdefs.h. */
28660
28661 #include <sys/types.h>
28662 #include <inttypes.h>
28663
28664 int
28665 main (void)
28666 {
28667 uintmax_t i = (uintmax_t) -1; return !i;
28668 ;
28669 return 0;
28670 }
28671 _ACEOF
28672 if ac_fn_c_try_compile "$LINENO"
28673 then :
28674 gl_cv_header_inttypes_h=yes
28675 else $as_nop
28676 gl_cv_header_inttypes_h=no
28677 fi
28678 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
28679 fi
28680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
28681 printf "%s\n" "$gl_cv_header_inttypes_h" >&6; }
28682 if test $gl_cv_header_inttypes_h = yes; then
28683
28684 printf "%s\n" "#define HAVE_INTTYPES_H_WITH_UINTMAX 1" >>confdefs.h
28685
28686 fi
28687
28688
28689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
28690 printf %s "checking for stdint.h... " >&6; }
28691 if test ${gl_cv_header_stdint_h+y}
28692 then :
28693 printf %s "(cached) " >&6
28694 else $as_nop
28695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28696 /* end confdefs.h. */
28697 #include <sys/types.h>
28698 #include <stdint.h>
28699 int
28700 main (void)
28701 {
28702 uintmax_t i = (uintmax_t) -1; return !i;
28703 ;
28704 return 0;
28705 }
28706 _ACEOF
28707 if ac_fn_c_try_compile "$LINENO"
28708 then :
28709 gl_cv_header_stdint_h=yes
28710 else $as_nop
28711 gl_cv_header_stdint_h=no
28712 fi
28713 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
28714 fi
28715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
28716 printf "%s\n" "$gl_cv_header_stdint_h" >&6; }
28717 if test $gl_cv_header_stdint_h = yes; then
28718
28719 printf "%s\n" "#define HAVE_STDINT_H_WITH_UINTMAX 1" >>confdefs.h
28720
28721 fi
28722
28723
28724
28725
28726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
28727 printf %s "checking for intmax_t... " >&6; }
28728 if test ${gt_cv_c_intmax_t+y}
28729 then :
28730 printf %s "(cached) " >&6
28731 else $as_nop
28732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28733 /* end confdefs.h. */
28734
28735 #include <stddef.h>
28736 #include <stdlib.h>
28737 #if HAVE_STDINT_H_WITH_UINTMAX
28738 #include <stdint.h>
28739 #endif
28740 #if HAVE_INTTYPES_H_WITH_UINTMAX
28741 #include <inttypes.h>
28742 #endif
28743
28744 int
28745 main (void)
28746 {
28747 intmax_t x = -1; return !x;
28748 ;
28749 return 0;
28750 }
28751 _ACEOF
28752 if ac_fn_c_try_compile "$LINENO"
28753 then :
28754 gt_cv_c_intmax_t=yes
28755 else $as_nop
28756 gt_cv_c_intmax_t=no
28757 fi
28758 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
28759 fi
28760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
28761 printf "%s\n" "$gt_cv_c_intmax_t" >&6; }
28762 if test $gt_cv_c_intmax_t = yes; then
28763
28764 printf "%s\n" "#define HAVE_INTMAX_T 1" >>confdefs.h
28765
28766 else
28767
28768 printf "%s\n" "#define intmax_t long long" >>confdefs.h
28769
28770 fi
28771
28772
28773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
28774 printf %s "checking where to find the exponent in a 'double'... " >&6; }
28775 if test ${gl_cv_cc_double_expbit0+y}
28776 then :
28777 printf %s "(cached) " >&6
28778 else $as_nop
28779
28780 if test "$cross_compiling" = yes
28781 then :
28782
28783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28784 /* end confdefs.h. */
28785
28786 #if defined arm || defined __arm || defined __arm__
28787 mixed_endianness
28788 #endif
28789
28790 _ACEOF
28791 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28792 $EGREP "mixed_endianness" >/dev/null 2>&1
28793 then :
28794 gl_cv_cc_double_expbit0="unknown"
28795 else $as_nop
28796
28797 :
28798 if test ${ac_cv_c_bigendian+y}
28799 then :
28800 printf %s "(cached) " >&6
28801 else $as_nop
28802 ac_cv_c_bigendian=unknown
28803 # See if we're dealing with a universal compiler.
28804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28805 /* end confdefs.h. */
28806 #ifndef __APPLE_CC__
28807 not a universal capable compiler
28808 #endif
28809 typedef int dummy;
28810
28811 _ACEOF
28812 if ac_fn_c_try_compile "$LINENO"
28813 then :
28814
28815 # Check for potential -arch flags. It is not universal unless
28816 # there are at least two -arch flags with different values.
28817 ac_arch=
28818 ac_prev=
28819 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
28820 if test -n "$ac_prev"; then
28821 case $ac_word in
28822 i?86 | x86_64 | ppc | ppc64)
28823 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
28824 ac_arch=$ac_word
28825 else
28826 ac_cv_c_bigendian=universal
28827 break
28828 fi
28829 ;;
28830 esac
28831 ac_prev=
28832 elif test "x$ac_word" = "x-arch"; then
28833 ac_prev=arch
28834 fi
28835 done
28836 fi
28837 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
28838 if test $ac_cv_c_bigendian = unknown; then
28839 # See if sys/param.h defines the BYTE_ORDER macro.
28840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28841 /* end confdefs.h. */
28842 #include <sys/types.h>
28843 #include <sys/param.h>
28844
28845 int
28846 main (void)
28847 {
28848 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
28849 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
28850 && LITTLE_ENDIAN)
28851 bogus endian macros
28852 #endif
28853
28854 ;
28855 return 0;
28856 }
28857 _ACEOF
28858 if ac_fn_c_try_compile "$LINENO"
28859 then :
28860 # It does; now see whether it defined to BIG_ENDIAN or not.
28861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28862 /* end confdefs.h. */
28863 #include <sys/types.h>
28864 #include <sys/param.h>
28865
28866 int
28867 main (void)
28868 {
28869 #if BYTE_ORDER != BIG_ENDIAN
28870 not big endian
28871 #endif
28872
28873 ;
28874 return 0;
28875 }
28876 _ACEOF
28877 if ac_fn_c_try_compile "$LINENO"
28878 then :
28879 ac_cv_c_bigendian=yes
28880 else $as_nop
28881 ac_cv_c_bigendian=no
28882 fi
28883 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
28884 fi
28885 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
28886 fi
28887 if test $ac_cv_c_bigendian = unknown; then
28888 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
28889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28890 /* end confdefs.h. */
28891 #include <limits.h>
28892
28893 int
28894 main (void)
28895 {
28896 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
28897 bogus endian macros
28898 #endif
28899
28900 ;
28901 return 0;
28902 }
28903 _ACEOF
28904 if ac_fn_c_try_compile "$LINENO"
28905 then :
28906 # It does; now see whether it defined to _BIG_ENDIAN or not.
28907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28908 /* end confdefs.h. */
28909 #include <limits.h>
28910
28911 int
28912 main (void)
28913 {
28914 #ifndef _BIG_ENDIAN
28915 not big endian
28916 #endif
28917
28918 ;
28919 return 0;
28920 }
28921 _ACEOF
28922 if ac_fn_c_try_compile "$LINENO"
28923 then :
28924 ac_cv_c_bigendian=yes
28925 else $as_nop
28926 ac_cv_c_bigendian=no
28927 fi
28928 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
28929 fi
28930 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
28931 fi
28932 if test $ac_cv_c_bigendian = unknown; then
28933 # Compile a test program.
28934 if test "$cross_compiling" = yes
28935 then :
28936 # Try to guess by grepping values from an object file.
28937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28938 /* end confdefs.h. */
28939 unsigned short int ascii_mm[] =
28940 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
28941 unsigned short int ascii_ii[] =
28942 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
28943 int use_ascii (int i) {
28944 return ascii_mm[i] + ascii_ii[i];
28945 }
28946 unsigned short int ebcdic_ii[] =
28947 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
28948 unsigned short int ebcdic_mm[] =
28949 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
28950 int use_ebcdic (int i) {
28951 return ebcdic_mm[i] + ebcdic_ii[i];
28952 }
28953 extern int foo;
28954
28955 int
28956 main (void)
28957 {
28958 return use_ascii (foo) == use_ebcdic (foo);
28959 ;
28960 return 0;
28961 }
28962 _ACEOF
28963 if ac_fn_c_try_compile "$LINENO"
28964 then :
28965 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
28966 ac_cv_c_bigendian=yes
28967 fi
28968 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
28969 if test "$ac_cv_c_bigendian" = unknown; then
28970 ac_cv_c_bigendian=no
28971 else
28972 # finding both strings is unlikely to happen, but who knows?
28973 ac_cv_c_bigendian=unknown
28974 fi
28975 fi
28976 fi
28977 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
28978 else $as_nop
28979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28980 /* end confdefs.h. */
28981 $ac_includes_default
28982 int
28983 main (void)
28984 {
28985
28986 /* Are we little or big endian? From Harbison&Steele. */
28987 union
28988 {
28989 long int l;
28990 char c[sizeof (long int)];
28991 } u;
28992 u.l = 1;
28993 return u.c[sizeof (long int) - 1] == 1;
28994
28995 ;
28996 return 0;
28997 }
28998 _ACEOF
28999 if ac_fn_c_try_run "$LINENO"
29000 then :
29001 ac_cv_c_bigendian=no
29002 else $as_nop
29003 ac_cv_c_bigendian=yes
29004 fi
29005 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29006 conftest.$ac_objext conftest.beam conftest.$ac_ext
29007 fi
29008
29009 fi
29010 fi
29011 :
29012 case $ac_cv_c_bigendian in #(
29013 yes)
29014 gl_cv_cc_double_expbit0="word 0 bit 20";; #(
29015 no)
29016 gl_cv_cc_double_expbit0="word 1 bit 20" ;; #(
29017 universal)
29018
29019 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
29020
29021 ;; #(
29022 *)
29023 gl_cv_cc_double_expbit0="unknown" ;;
29024 esac
29025
29026
29027 fi
29028 rm -rf conftest*
29029
29030
29031 else $as_nop
29032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29033 /* end confdefs.h. */
29034
29035 #include <float.h>
29036 #include <stddef.h>
29037 #include <stdio.h>
29038 #include <string.h>
29039 #define NWORDS \
29040 ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
29041 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
29042 static unsigned int ored_words[NWORDS];
29043 static unsigned int anded_words[NWORDS];
29044 static void add_to_ored_words (double x)
29045 {
29046 memory_double m;
29047 size_t i;
29048 /* Clear it first, in case sizeof (double) < sizeof (memory_double). */
29049 memset (&m, 0, sizeof (memory_double));
29050 m.value = x;
29051 for (i = 0; i < NWORDS; i++)
29052 {
29053 ored_words[i] |= m.word[i];
29054 anded_words[i] &= m.word[i];
29055 }
29056 }
29057 int main ()
29058 {
29059 size_t j;
29060 FILE *fp = fopen ("conftest.out", "w");
29061 if (fp == NULL)
29062 return 1;
29063 for (j = 0; j < NWORDS; j++)
29064 anded_words[j] = ~ (unsigned int) 0;
29065 add_to_ored_words (0.25);
29066 add_to_ored_words (0.5);
29067 add_to_ored_words (1.0);
29068 add_to_ored_words (2.0);
29069 add_to_ored_words (4.0);
29070 /* Remove bits that are common (e.g. if representation of the first mantissa
29071 bit is explicit). */
29072 for (j = 0; j < NWORDS; j++)
29073 ored_words[j] &= ~anded_words[j];
29074 /* Now find the nonzero word. */
29075 for (j = 0; j < NWORDS; j++)
29076 if (ored_words[j] != 0)
29077 break;
29078 if (j < NWORDS)
29079 {
29080 size_t i;
29081 for (i = j + 1; i < NWORDS; i++)
29082 if (ored_words[i] != 0)
29083 {
29084 fprintf (fp, "unknown");
29085 return (fclose (fp) != 0);
29086 }
29087 for (i = 0; ; i++)
29088 if ((ored_words[j] >> i) & 1)
29089 {
29090 fprintf (fp, "word %d bit %d", (int) j, (int) i);
29091 return (fclose (fp) != 0);
29092 }
29093 }
29094 fprintf (fp, "unknown");
29095 return (fclose (fp) != 0);
29096 }
29097
29098 _ACEOF
29099 if ac_fn_c_try_run "$LINENO"
29100 then :
29101 gl_cv_cc_double_expbit0=`cat conftest.out`
29102 else $as_nop
29103 gl_cv_cc_double_expbit0="unknown"
29104 fi
29105 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29106 conftest.$ac_objext conftest.beam conftest.$ac_ext
29107 fi
29108
29109 rm -f conftest.out
29110
29111 fi
29112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
29113 printf "%s\n" "$gl_cv_cc_double_expbit0" >&6; }
29114 case "$gl_cv_cc_double_expbit0" in
29115 word*bit*)
29116 word=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
29117 bit=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
29118
29119 printf "%s\n" "#define DBL_EXPBIT0_WORD $word" >>confdefs.h
29120
29121
29122 printf "%s\n" "#define DBL_EXPBIT0_BIT $bit" >>confdefs.h
29123
29124 ;;
29125 esac
29126
29127
29128
29129
29130
29131
29132
29133
29134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether snprintf returns a byte count as in C99" >&5
29135 printf %s "checking whether snprintf returns a byte count as in C99... " >&6; }
29136 if test ${gl_cv_func_snprintf_retval_c99+y}
29137 then :
29138 printf %s "(cached) " >&6
29139 else $as_nop
29140
29141 if test "$cross_compiling" = yes
29142 then :
29143 case "$host_os" in
29144 # Guess yes on glibc systems.
29145 *-gnu* | gnu*) gl_cv_func_snprintf_retval_c99="guessing yes";;
29146 # Guess yes on musl systems.
29147 *-musl*) gl_cv_func_snprintf_retval_c99="guessing yes";;
29148 # Guess yes on FreeBSD >= 5.
29149 freebsd[1-4].*) gl_cv_func_snprintf_retval_c99="guessing no";;
29150 freebsd* | kfreebsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
29151 midnightbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
29152 # Guess yes on Mac OS X >= 10.3.
29153 darwin[1-6].*) gl_cv_func_snprintf_retval_c99="guessing no";;
29154 darwin*) gl_cv_func_snprintf_retval_c99="guessing yes";;
29155 # Guess yes on OpenBSD >= 3.9.
29156 openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*)
29157 gl_cv_func_snprintf_retval_c99="guessing no";;
29158 openbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
29159 # Guess yes on Solaris >= 2.10.
29160 solaris2.[1-9][0-9]*) gl_cv_func_printf_sizes_c99="guessing yes";;
29161 solaris*) gl_cv_func_printf_sizes_c99="guessing no";;
29162 # Guess yes on AIX >= 4.
29163 aix[1-3]*) gl_cv_func_snprintf_retval_c99="guessing no";;
29164 aix*) gl_cv_func_snprintf_retval_c99="guessing yes";;
29165 # Guess yes on NetBSD >= 3.
29166 netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
29167 gl_cv_func_snprintf_retval_c99="guessing no";;
29168 netbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
29169 # Guess yes on BeOS.
29170 beos*) gl_cv_func_snprintf_retval_c99="guessing yes";;
29171 # Guess yes on Android.
29172 linux*-android*) gl_cv_func_snprintf_retval_c99="guessing yes";;
29173 # Guess yes on MSVC, no on mingw.
29174 mingw*) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29175 /* end confdefs.h. */
29176
29177 #ifdef _MSC_VER
29178 Known
29179 #endif
29180
29181 _ACEOF
29182 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29183 $EGREP "Known" >/dev/null 2>&1
29184 then :
29185 gl_cv_func_snprintf_retval_c99="guessing yes"
29186 else $as_nop
29187 gl_cv_func_snprintf_retval_c99="guessing no"
29188 fi
29189 rm -rf conftest*
29190
29191 ;;
29192 # If we don't know, obey --enable-cross-guesses.
29193 *) gl_cv_func_snprintf_retval_c99="$gl_cross_guess_normal";;
29194 esac
29195
29196 else $as_nop
29197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29198 /* end confdefs.h. */
29199
29200 #include <stdio.h>
29201 #include <string.h>
29202 #if HAVE_SNPRINTF
29203 # define my_snprintf snprintf
29204 #else
29205 # include <stdarg.h>
29206 static int my_snprintf (char *buf, int size, const char *format, ...)
29207 {
29208 va_list args;
29209 int ret;
29210 va_start (args, format);
29211 ret = vsnprintf (buf, size, format, args);
29212 va_end (args);
29213 return ret;
29214 }
29215 #endif
29216 static char buf[100];
29217 int main ()
29218 {
29219 strcpy (buf, "ABCDEF");
29220 if (my_snprintf (buf, 3, "%d %d", 4567, 89) != 7)
29221 return 1;
29222 if (my_snprintf (buf, 0, "%d %d", 4567, 89) != 7)
29223 return 2;
29224 if (my_snprintf (NULL, 0, "%d %d", 4567, 89) != 7)
29225 return 3;
29226 return 0;
29227 }
29228 _ACEOF
29229 if ac_fn_c_try_run "$LINENO"
29230 then :
29231 gl_cv_func_snprintf_retval_c99=yes
29232 else $as_nop
29233 gl_cv_func_snprintf_retval_c99=no
29234 fi
29235 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29236 conftest.$ac_objext conftest.beam conftest.$ac_ext
29237 fi
29238
29239
29240 fi
29241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_retval_c99" >&5
29242 printf "%s\n" "$gl_cv_func_snprintf_retval_c99" >&6; }
29243
29244
29245
29246
29247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether snprintf truncates the result as in C99" >&5
29248 printf %s "checking whether snprintf truncates the result as in C99... " >&6; }
29249 if test ${gl_cv_func_snprintf_truncation_c99+y}
29250 then :
29251 printf %s "(cached) " >&6
29252 else $as_nop
29253
29254 if test "$cross_compiling" = yes
29255 then :
29256
29257 case "$host_os" in
29258 # Guess yes on glibc systems.
29259 *-gnu* | gnu*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
29260 # Guess yes on musl systems.
29261 *-musl*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
29262 # Guess yes on FreeBSD >= 5.
29263 freebsd[1-4].*) gl_cv_func_snprintf_truncation_c99="guessing no";;
29264 freebsd* | kfreebsd*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
29265 midnightbsd*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
29266 # Guess yes on Mac OS X >= 10.3.
29267 darwin[1-6].*) gl_cv_func_snprintf_truncation_c99="guessing no";;
29268 darwin*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
29269 # Guess yes on OpenBSD >= 3.9.
29270 openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*)
29271 gl_cv_func_snprintf_truncation_c99="guessing no";;
29272 openbsd*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
29273 # Guess yes on Solaris >= 2.6.
29274 solaris2.[0-5] | solaris2.[0-5].*)
29275 gl_cv_func_snprintf_truncation_c99="guessing no";;
29276 solaris*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
29277 # Guess yes on AIX >= 4.
29278 aix[1-3]*) gl_cv_func_snprintf_truncation_c99="guessing no";;
29279 aix*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
29280 # Guess yes on HP-UX >= 11.
29281 hpux[7-9]* | hpux10*) gl_cv_func_snprintf_truncation_c99="guessing no";;
29282 hpux*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
29283 # Guess yes on IRIX >= 6.5.
29284 irix6.5) gl_cv_func_snprintf_truncation_c99="guessing yes";;
29285 # Guess yes on OSF/1 >= 5.
29286 osf[3-4]*) gl_cv_func_snprintf_truncation_c99="guessing no";;
29287 osf*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
29288 # Guess yes on NetBSD >= 3.
29289 netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
29290 gl_cv_func_snprintf_truncation_c99="guessing no";;
29291 netbsd*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
29292 # Guess yes on BeOS.
29293 beos*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
29294 # Guess yes on Android.
29295 linux*-android*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
29296 # Guess no on native Windows.
29297 mingw*) gl_cv_func_snprintf_truncation_c99="guessing no";;
29298 # If we don't know, obey --enable-cross-guesses.
29299 *) gl_cv_func_snprintf_truncation_c99="$gl_cross_guess_normal";;
29300 esac
29301
29302 else $as_nop
29303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29304 /* end confdefs.h. */
29305
29306 #include <stdio.h>
29307 #include <string.h>
29308 #if HAVE_SNPRINTF
29309 # define my_snprintf snprintf
29310 #else
29311 # include <stdarg.h>
29312 static int my_snprintf (char *buf, int size, const char *format, ...)
29313 {
29314 va_list args;
29315 int ret;
29316 va_start (args, format);
29317 ret = vsnprintf (buf, size, format, args);
29318 va_end (args);
29319 return ret;
29320 }
29321 #endif
29322 static char buf[100];
29323 int main ()
29324 {
29325 strcpy (buf, "ABCDEF");
29326 my_snprintf (buf, 3, "%d %d", 4567, 89);
29327 if (memcmp (buf, "45\0DEF", 6) != 0)
29328 return 1;
29329 return 0;
29330 }
29331 _ACEOF
29332 if ac_fn_c_try_run "$LINENO"
29333 then :
29334 gl_cv_func_snprintf_truncation_c99=yes
29335 else $as_nop
29336 gl_cv_func_snprintf_truncation_c99=no
29337 fi
29338 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29339 conftest.$ac_objext conftest.beam conftest.$ac_ext
29340 fi
29341
29342
29343 fi
29344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_truncation_c99" >&5
29345 printf "%s\n" "$gl_cv_func_snprintf_truncation_c99" >&6; }
29346
29347
29348
29349
29350
29351 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
29352 if test "x$ac_cv_func_snprintf" = xyes
29353 then :
29354 printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h
29355
29356 fi
29357 ac_fn_c_check_func "$LINENO" "strnlen" "ac_cv_func_strnlen"
29358 if test "x$ac_cv_func_strnlen" = xyes
29359 then :
29360 printf "%s\n" "#define HAVE_STRNLEN 1" >>confdefs.h
29361
29362 fi
29363 ac_fn_c_check_func "$LINENO" "wcslen" "ac_cv_func_wcslen"
29364 if test "x$ac_cv_func_wcslen" = xyes
29365 then :
29366 printf "%s\n" "#define HAVE_WCSLEN 1" >>confdefs.h
29367
29368 fi
29369 ac_fn_c_check_func "$LINENO" "wcsnlen" "ac_cv_func_wcsnlen"
29370 if test "x$ac_cv_func_wcsnlen" = xyes
29371 then :
29372 printf "%s\n" "#define HAVE_WCSNLEN 1" >>confdefs.h
29373
29374 fi
29375 ac_fn_c_check_func "$LINENO" "mbrtowc" "ac_cv_func_mbrtowc"
29376 if test "x$ac_cv_func_mbrtowc" = xyes
29377 then :
29378 printf "%s\n" "#define HAVE_MBRTOWC 1" >>confdefs.h
29379
29380 fi
29381 ac_fn_c_check_func "$LINENO" "wcrtomb" "ac_cv_func_wcrtomb"
29382 if test "x$ac_cv_func_wcrtomb" = xyes
29383 then :
29384 printf "%s\n" "#define HAVE_WCRTOMB 1" >>confdefs.h
29385
29386 fi
29387
29388 ac_fn_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
29389 " "$ac_c_undeclared_builtin_options" "CFLAGS"
29390 if test "x$ac_cv_have_decl__snprintf" = xyes
29391 then :
29392 ac_have_decl=1
29393 else $as_nop
29394 ac_have_decl=0
29395 fi
29396 printf "%s\n" "#define HAVE_DECL__SNPRINTF $ac_have_decl" >>confdefs.h
29397
29398
29399
29400 case "$gl_cv_func_snprintf_retval_c99" in
29401 *yes)
29402
29403 printf "%s\n" "#define HAVE_SNPRINTF_RETVAL_C99 1" >>confdefs.h
29404
29405 ;;
29406 esac
29407
29408 case "$gl_cv_func_snprintf_truncation_c99" in
29409 *yes)
29410
29411 printf "%s\n" "#define HAVE_SNPRINTF_TRUNCATION_C99 1" >>confdefs.h
29412
29413 ;;
29414 esac
29415
29416
29417
29418
29419 if test $ac_cv_header_crtdefs_h = yes; then
29420 HAVE_CRTDEFS_H=1
29421 else
29422 HAVE_CRTDEFS_H=0
29423 fi
29424
29425
29426
29427
29428
29429
29430
29431
29432
29433
29434
29435
29436
29437
29438 if test $gl_cv_have_include_next = yes; then
29439 gl_cv_next_wchar_h='<'wchar.h'>'
29440 else
29441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
29442 printf %s "checking absolute name of <wchar.h>... " >&6; }
29443 if test ${gl_cv_next_wchar_h+y}
29444 then :
29445 printf %s "(cached) " >&6
29446 else $as_nop
29447
29448 if test $ac_cv_header_wchar_h = yes; then
29449
29450
29451
29452
29453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29454 /* end confdefs.h. */
29455 #include <wchar.h>
29456 _ACEOF
29457 case "$host_os" in
29458 aix*) gl_absname_cpp="$ac_cpp -C" ;;
29459 *) gl_absname_cpp="$ac_cpp" ;;
29460 esac
29461
29462 case "$host_os" in
29463 mingw*)
29464 gl_dirsep_regex='[/\\]'
29465 ;;
29466 *)
29467 gl_dirsep_regex='\/'
29468 ;;
29469 esac
29470 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
29471 gl_header_literal_regex=`echo 'wchar.h' \
29472 | sed -e "$gl_make_literal_regex_sed"`
29473 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
29474 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
29475 s|^/[^/]|//&|
29476 p
29477 q
29478 }'
29479
29480 gl_cv_absolute_wchar_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
29481 sed -n "$gl_absolute_header_sed"`
29482
29483 gl_header=$gl_cv_absolute_wchar_h
29484 gl_cv_next_wchar_h='"'$gl_header'"'
29485 else
29486 gl_cv_next_wchar_h='<'wchar.h'>'
29487 fi
29488
29489
29490 fi
29491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
29492 printf "%s\n" "$gl_cv_next_wchar_h" >&6; }
29493 fi
29494 NEXT_WCHAR_H=$gl_cv_next_wchar_h
29495
29496 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
29497 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
29498 gl_next_as_first_directive='<'wchar.h'>'
29499 else
29500 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
29501 gl_next_as_first_directive=$gl_cv_next_wchar_h
29502 fi
29503 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
29504
29505
29506
29507
29508 if test $ac_cv_header_wchar_h = yes; then
29509 HAVE_WCHAR_H=1
29510 else
29511 HAVE_WCHAR_H=0
29512 fi
29513
29514
29515
29516
29517
29518 if test $gt_cv_c_wint_t = yes; then
29519 HAVE_WINT_T=1
29520 else
29521 HAVE_WINT_T=0
29522 fi
29523
29524
29525
29526
29527
29528
29529
29530
29531
29532
29533 ac_fn_check_decl "$LINENO" "wcsdup" "ac_cv_have_decl_wcsdup" "
29534 #include <wchar.h>
29535
29536 " "$ac_c_undeclared_builtin_options" "CFLAGS"
29537 if test "x$ac_cv_have_decl_wcsdup" = xyes
29538 then :
29539 ac_have_decl=1
29540 else $as_nop
29541 ac_have_decl=0
29542 fi
29543 printf "%s\n" "#define HAVE_DECL_WCSDUP $ac_have_decl" >>confdefs.h
29544
29545 if test $ac_cv_have_decl_wcsdup = no; then
29546 HAVE_DECL_WCSDUP=0
29547 fi
29548
29549
29550
29551 HAVE_ISWBLANK=1;
29552 HAVE_WCTYPE_T=1;
29553 HAVE_WCTRANS_T=1;
29554 REPLACE_ISWBLANK=0;
29555 REPLACE_ISWDIGIT=0;
29556 REPLACE_ISWXDIGIT=0;
29557
29558
29559
29560
29561
29562
29563
29564
29565 if test $ac_cv_func_iswcntrl = yes; then
29566 HAVE_ISWCNTRL=1
29567 else
29568 HAVE_ISWCNTRL=0
29569 fi
29570
29571
29572
29573 if test $gt_cv_c_wint_t = yes; then
29574 HAVE_WINT_T=1
29575 else
29576 HAVE_WINT_T=0
29577 fi
29578
29579
29580
29581
29582
29583
29584
29585
29586
29587
29588
29589
29590
29591 if test $gl_cv_have_include_next = yes; then
29592 gl_cv_next_wctype_h='<'wctype.h'>'
29593 else
29594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
29595 printf %s "checking absolute name of <wctype.h>... " >&6; }
29596 if test ${gl_cv_next_wctype_h+y}
29597 then :
29598 printf %s "(cached) " >&6
29599 else $as_nop
29600
29601 if test $ac_cv_header_wctype_h = yes; then
29602
29603
29604
29605
29606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29607 /* end confdefs.h. */
29608 #include <wctype.h>
29609 _ACEOF
29610 case "$host_os" in
29611 aix*) gl_absname_cpp="$ac_cpp -C" ;;
29612 *) gl_absname_cpp="$ac_cpp" ;;
29613 esac
29614
29615 case "$host_os" in
29616 mingw*)
29617 gl_dirsep_regex='[/\\]'
29618 ;;
29619 *)
29620 gl_dirsep_regex='\/'
29621 ;;
29622 esac
29623 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
29624 gl_header_literal_regex=`echo 'wctype.h' \
29625 | sed -e "$gl_make_literal_regex_sed"`
29626 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
29627 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
29628 s|^/[^/]|//&|
29629 p
29630 q
29631 }'
29632
29633 gl_cv_absolute_wctype_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
29634 sed -n "$gl_absolute_header_sed"`
29635
29636 gl_header=$gl_cv_absolute_wctype_h
29637 gl_cv_next_wctype_h='"'$gl_header'"'
29638 else
29639 gl_cv_next_wctype_h='<'wctype.h'>'
29640 fi
29641
29642
29643 fi
29644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
29645 printf "%s\n" "$gl_cv_next_wctype_h" >&6; }
29646 fi
29647 NEXT_WCTYPE_H=$gl_cv_next_wctype_h
29648
29649 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
29650 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
29651 gl_next_as_first_directive='<'wctype.h'>'
29652 else
29653 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
29654 gl_next_as_first_directive=$gl_cv_next_wctype_h
29655 fi
29656 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
29657
29658
29659
29660
29661 if test $ac_cv_header_wctype_h = yes; then
29662 if test $ac_cv_func_iswcntrl = yes; then
29663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
29664 printf %s "checking whether iswcntrl works... " >&6; }
29665 if test ${gl_cv_func_iswcntrl_works+y}
29666 then :
29667 printf %s "(cached) " >&6
29668 else $as_nop
29669
29670 if test "$cross_compiling" = yes
29671 then :
29672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29673 /* end confdefs.h. */
29674 #include <stdlib.h>
29675 #if __GNU_LIBRARY__ == 1
29676 Linux libc5 i18n is broken.
29677 #endif
29678 int
29679 main (void)
29680 {
29681
29682 ;
29683 return 0;
29684 }
29685 _ACEOF
29686 if ac_fn_c_try_compile "$LINENO"
29687 then :
29688 gl_cv_func_iswcntrl_works="guessing yes"
29689 else $as_nop
29690 gl_cv_func_iswcntrl_works="guessing no"
29691 fi
29692 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
29693
29694 else $as_nop
29695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29696 /* end confdefs.h. */
29697
29698 #include <wchar.h>
29699 #include <wctype.h>
29700 int main () { return iswprint ('x') == 0; }
29701
29702 _ACEOF
29703 if ac_fn_c_try_run "$LINENO"
29704 then :
29705 gl_cv_func_iswcntrl_works=yes
29706 else $as_nop
29707 gl_cv_func_iswcntrl_works=no
29708 fi
29709 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29710 conftest.$ac_objext conftest.beam conftest.$ac_ext
29711 fi
29712
29713
29714 fi
29715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
29716 printf "%s\n" "$gl_cv_func_iswcntrl_works" >&6; }
29717 fi
29718 HAVE_WCTYPE_H=1
29719 else
29720 HAVE_WCTYPE_H=0
29721 fi
29722
29723
29724 if test $GNULIBHEADERS_OVERRIDE_WINT_T = 1; then
29725 REPLACE_ISWCNTRL=1
29726 else
29727 case "$gl_cv_func_iswcntrl_works" in
29728 *yes) REPLACE_ISWCNTRL=0 ;;
29729 *) REPLACE_ISWCNTRL=1 ;;
29730 esac
29731 fi
29732
29733
29734 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
29735 :
29736 fi
29737
29738 if test $REPLACE_ISWCNTRL = 1; then
29739 REPLACE_TOWLOWER=1
29740 else
29741 ac_fn_c_check_func "$LINENO" "towlower" "ac_cv_func_towlower"
29742 if test "x$ac_cv_func_towlower" = xyes
29743 then :
29744 printf "%s\n" "#define HAVE_TOWLOWER 1" >>confdefs.h
29745
29746 fi
29747
29748 if test $ac_cv_func_towlower = yes; then
29749 REPLACE_TOWLOWER=0
29750 else
29751 ac_fn_check_decl "$LINENO" "towlower" "ac_cv_have_decl_towlower" "#include <wchar.h>
29752 #if HAVE_WCTYPE_H
29753 # include <wctype.h>
29754 #endif
29755
29756 " "$ac_c_undeclared_builtin_options" "CFLAGS"
29757 if test "x$ac_cv_have_decl_towlower" = xyes
29758 then :
29759 ac_have_decl=1
29760 else $as_nop
29761 ac_have_decl=0
29762 fi
29763 printf "%s\n" "#define HAVE_DECL_TOWLOWER $ac_have_decl" >>confdefs.h
29764
29765 if test $ac_cv_have_decl_towlower = yes; then
29766 REPLACE_TOWLOWER=1
29767 else
29768 REPLACE_TOWLOWER=0
29769 fi
29770 fi
29771 fi
29772
29773
29774 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_TOWLOWER = 1; then
29775 :
29776 fi
29777
29778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
29779 printf %s "checking for wctype_t... " >&6; }
29780 if test ${gl_cv_type_wctype_t+y}
29781 then :
29782 printf %s "(cached) " >&6
29783 else $as_nop
29784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29785 /* end confdefs.h. */
29786 #include <wchar.h>
29787 #if HAVE_WCTYPE_H
29788 # include <wctype.h>
29789 #endif
29790 wctype_t a;
29791
29792 int
29793 main (void)
29794 {
29795
29796 ;
29797 return 0;
29798 }
29799 _ACEOF
29800 if ac_fn_c_try_compile "$LINENO"
29801 then :
29802 gl_cv_type_wctype_t=yes
29803 else $as_nop
29804 gl_cv_type_wctype_t=no
29805 fi
29806 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
29807
29808 fi
29809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
29810 printf "%s\n" "$gl_cv_type_wctype_t" >&6; }
29811 if test $gl_cv_type_wctype_t = no; then
29812 HAVE_WCTYPE_T=0
29813 fi
29814
29815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
29816 printf %s "checking for wctrans_t... " >&6; }
29817 if test ${gl_cv_type_wctrans_t+y}
29818 then :
29819 printf %s "(cached) " >&6
29820 else $as_nop
29821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29822 /* end confdefs.h. */
29823 #include <wchar.h>
29824 #include <wctype.h>
29825 wctrans_t a;
29826
29827 int
29828 main (void)
29829 {
29830
29831 ;
29832 return 0;
29833 }
29834 _ACEOF
29835 if ac_fn_c_try_compile "$LINENO"
29836 then :
29837 gl_cv_type_wctrans_t=yes
29838 else $as_nop
29839 gl_cv_type_wctrans_t=no
29840 fi
29841 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
29842
29843 fi
29844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
29845 printf "%s\n" "$gl_cv_type_wctrans_t" >&6; }
29846 if test $gl_cv_type_wctrans_t = no; then
29847 HAVE_WCTRANS_T=0
29848 fi
29849
29850
29851
29852
29853
29854
29855
29856 GL_GNULIB_ISWBLANK=0
29857
29858
29859
29860 GL_GNULIB_ISWDIGIT=0
29861
29862
29863
29864 GL_GNULIB_ISWXDIGIT=0
29865
29866
29867
29868 GL_GNULIB_WCTYPE=0
29869
29870
29871
29872 GL_GNULIB_ISWCTYPE=0
29873
29874
29875
29876 GL_GNULIB_WCTRANS=0
29877
29878
29879
29880 GL_GNULIB_TOWCTRANS=0
29881
29882
29883
29884
29885
29886
29887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler option to allow warnings" >&5
29888 printf %s "checking for C compiler option to allow warnings... " >&6; }
29889 if test ${gl_cv_cc_wallow+y}
29890 then :
29891 printf %s "(cached) " >&6
29892 else $as_nop
29893 rm -f conftest*
29894 echo 'int dummy;' > conftest.c
29895 { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -c conftest.c 2>conftest1.err'
29896 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29897 (eval $ac_try) 2>&5
29898 ac_status=$?
29899 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29900 test $ac_status = 0; }; } >/dev/null
29901 { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -Wno-error -c conftest.c 2>conftest2.err'
29902 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29903 (eval $ac_try) 2>&5
29904 ac_status=$?
29905 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29906 test $ac_status = 0; }; } >/dev/null
29907 if test $? = 0 && test `wc -l < conftest1.err` = `wc -l < conftest2.err`; then
29908 gl_cv_cc_wallow='-Wno-error'
29909 else
29910 gl_cv_cc_wallow=none
29911 fi
29912 rm -f conftest*
29913
29914 fi
29915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_wallow" >&5
29916 printf "%s\n" "$gl_cv_cc_wallow" >&6; }
29917 case "$gl_cv_cc_wallow" in
29918 none) GL_CFLAG_ALLOW_WARNINGS='' ;;
29919 *) GL_CFLAG_ALLOW_WARNINGS="$gl_cv_cc_wallow" ;;
29920 esac
29921
29922
29923
29924 if test -n "$CXX" && test "$CXX" != no; then
29925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler option to allow warnings" >&5
29926 printf %s "checking for C++ compiler option to allow warnings... " >&6; }
29927 if test ${gl_cv_cxx_wallow+y}
29928 then :
29929 printf %s "(cached) " >&6
29930 else $as_nop
29931 rm -f conftest*
29932 echo 'int dummy;' > conftest.cc
29933 { ac_try='${CXX-c++} $CXXFLAGS $CPPFLAGS -c conftest.cc 2>conftest1.err'
29934 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29935 (eval $ac_try) 2>&5
29936 ac_status=$?
29937 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29938 test $ac_status = 0; }; } >/dev/null
29939 { ac_try='${CXX-c++} $CXXFLAGS $CPPFLAGS -Wno-error -c conftest.cc 2>conftest2.err'
29940 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29941 (eval $ac_try) 2>&5
29942 ac_status=$?
29943 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29944 test $ac_status = 0; }; } >/dev/null
29945 if test $? = 0 && test `wc -l < conftest1.err` = `wc -l < conftest2.err`; then
29946 gl_cv_cxx_wallow='-Wno-error'
29947 else
29948 gl_cv_cxx_wallow=none
29949 fi
29950 rm -f conftest*
29951
29952 fi
29953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cxx_wallow" >&5
29954 printf "%s\n" "$gl_cv_cxx_wallow" >&6; }
29955 case "$gl_cv_cxx_wallow" in
29956 none) GL_CXXFLAG_ALLOW_WARNINGS='' ;;
29957 *) GL_CXXFLAG_ALLOW_WARNINGS="$gl_cv_cxx_wallow" ;;
29958 esac
29959 else
29960 GL_CXXFLAG_ALLOW_WARNINGS=''
29961 fi
29962
29963
29964
29965 HAVE_STRUCT_SOCKADDR_STORAGE=1;
29966 HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY=1;
29967
29968 HAVE_SA_FAMILY_T=1;
29969 HAVE_ACCEPT4=1;
29970
29971
29972 if test $ac_cv_header_sys_socket_h = no; then
29973 ac_fn_c_check_header_compile "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
29974 if test "x$ac_cv_header_ws2tcpip_h" = xyes
29975 then :
29976 printf "%s\n" "#define HAVE_WS2TCPIP_H 1" >>confdefs.h
29977
29978 fi
29979
29980 fi
29981
29982
29983
29984
29985
29986 case "$host_os" in
29987 osf*)
29988
29989 printf "%s\n" "#define _POSIX_PII_SOCKET 1" >>confdefs.h
29990
29991 ;;
29992 esac
29993
29994 GL_GENERATE_SYS_SOCKET_H=false
29995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> is self-contained" >&5
29996 printf %s "checking whether <sys/socket.h> is self-contained... " >&6; }
29997 if test ${gl_cv_header_sys_socket_h_selfcontained+y}
29998 then :
29999 printf %s "(cached) " >&6
30000 else $as_nop
30001
30002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30003 /* end confdefs.h. */
30004 #include <sys/socket.h>
30005 int
30006 main (void)
30007 {
30008
30009 ;
30010 return 0;
30011 }
30012 _ACEOF
30013 if ac_fn_c_try_compile "$LINENO"
30014 then :
30015 gl_cv_header_sys_socket_h_selfcontained=yes
30016 else $as_nop
30017 gl_cv_header_sys_socket_h_selfcontained=no
30018 fi
30019 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
30020
30021 fi
30022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_selfcontained" >&5
30023 printf "%s\n" "$gl_cv_header_sys_socket_h_selfcontained" >&6; }
30024 if test $gl_cv_header_sys_socket_h_selfcontained = yes; then
30025 ac_fn_c_check_func "$LINENO" "shutdown" "ac_cv_func_shutdown"
30026 if test "x$ac_cv_func_shutdown" = xyes
30027 then :
30028 printf "%s\n" "#define HAVE_SHUTDOWN 1" >>confdefs.h
30029
30030 fi
30031
30032 if test $ac_cv_func_shutdown = yes; then
30033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> defines the SHUT_* macros" >&5
30034 printf %s "checking whether <sys/socket.h> defines the SHUT_* macros... " >&6; }
30035 if test ${gl_cv_header_sys_socket_h_shut+y}
30036 then :
30037 printf %s "(cached) " >&6
30038 else $as_nop
30039
30040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30041 /* end confdefs.h. */
30042 #include <sys/socket.h>
30043 int
30044 main (void)
30045 {
30046 int a[] = { SHUT_RD, SHUT_WR, SHUT_RDWR };
30047 ;
30048 return 0;
30049 }
30050 _ACEOF
30051 if ac_fn_c_try_compile "$LINENO"
30052 then :
30053 gl_cv_header_sys_socket_h_shut=yes
30054 else $as_nop
30055 gl_cv_header_sys_socket_h_shut=no
30056 fi
30057 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
30058
30059 fi
30060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_shut" >&5
30061 printf "%s\n" "$gl_cv_header_sys_socket_h_shut" >&6; }
30062 if test $gl_cv_header_sys_socket_h_shut = no; then
30063 GL_GENERATE_SYS_SOCKET_H=true
30064 fi
30065 fi
30066 fi
30067 # We need to check for ws2tcpip.h now.
30068
30069
30070
30071
30072
30073
30074
30075
30076
30077
30078
30079 if test $gl_cv_have_include_next = yes; then
30080 gl_cv_next_sys_socket_h='<'sys/socket.h'>'
30081 else
30082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/socket.h>" >&5
30083 printf %s "checking absolute name of <sys/socket.h>... " >&6; }
30084 if test ${gl_cv_next_sys_socket_h+y}
30085 then :
30086 printf %s "(cached) " >&6
30087 else $as_nop
30088
30089 if test $ac_cv_header_sys_socket_h = yes; then
30090
30091
30092
30093
30094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30095 /* end confdefs.h. */
30096 #include <sys/socket.h>
30097 _ACEOF
30098 case "$host_os" in
30099 aix*) gl_absname_cpp="$ac_cpp -C" ;;
30100 *) gl_absname_cpp="$ac_cpp" ;;
30101 esac
30102
30103 case "$host_os" in
30104 mingw*)
30105 gl_dirsep_regex='[/\\]'
30106 ;;
30107 *)
30108 gl_dirsep_regex='\/'
30109 ;;
30110 esac
30111 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
30112 gl_header_literal_regex=`echo 'sys/socket.h' \
30113 | sed -e "$gl_make_literal_regex_sed"`
30114 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
30115 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
30116 s|^/[^/]|//&|
30117 p
30118 q
30119 }'
30120
30121 gl_cv_absolute_sys_socket_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
30122 sed -n "$gl_absolute_header_sed"`
30123
30124 gl_header=$gl_cv_absolute_sys_socket_h
30125 gl_cv_next_sys_socket_h='"'$gl_header'"'
30126 else
30127 gl_cv_next_sys_socket_h='<'sys/socket.h'>'
30128 fi
30129
30130
30131 fi
30132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_socket_h" >&5
30133 printf "%s\n" "$gl_cv_next_sys_socket_h" >&6; }
30134 fi
30135 NEXT_SYS_SOCKET_H=$gl_cv_next_sys_socket_h
30136
30137 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
30138 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
30139 gl_next_as_first_directive='<'sys/socket.h'>'
30140 else
30141 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
30142 gl_next_as_first_directive=$gl_cv_next_sys_socket_h
30143 fi
30144 NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H=$gl_next_as_first_directive
30145
30146
30147
30148
30149 if test $ac_cv_header_sys_socket_h = yes; then
30150 HAVE_SYS_SOCKET_H=1
30151 else
30152 HAVE_SYS_SOCKET_H=0
30153 fi
30154
30155
30156
30157 if test $ac_cv_header_sys_socket_h = yes; then
30158 HAVE_WS2TCPIP_H=0
30159 else
30160 if test $ac_cv_header_ws2tcpip_h = yes; then
30161 HAVE_WS2TCPIP_H=1
30162 else
30163 HAVE_WS2TCPIP_H=0
30164 fi
30165 fi
30166
30167
30168
30169 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
30170 /* sys/types.h is not needed according to POSIX, but the
30171 sys/socket.h in i386-unknown-freebsd4.10 and
30172 powerpc-apple-darwin5.5 required it. */
30173 #include <sys/types.h>
30174 #ifdef HAVE_SYS_SOCKET_H
30175 #include <sys/socket.h>
30176 #endif
30177 #ifdef HAVE_WS2TCPIP_H
30178 #include <ws2tcpip.h>
30179 #endif
30180
30181 "
30182 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes
30183 then :
30184
30185 printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
30186
30187
30188 fi
30189 ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "
30190 /* sys/types.h is not needed according to POSIX, but the
30191 sys/socket.h in i386-unknown-freebsd4.10 and
30192 powerpc-apple-darwin5.5 required it. */
30193 #include <sys/types.h>
30194 #ifdef HAVE_SYS_SOCKET_H
30195 #include <sys/socket.h>
30196 #endif
30197 #ifdef HAVE_WS2TCPIP_H
30198 #include <ws2tcpip.h>
30199 #endif
30200
30201 "
30202 if test "x$ac_cv_type_sa_family_t" = xyes
30203 then :
30204
30205 printf "%s\n" "#define HAVE_SA_FAMILY_T 1" >>confdefs.h
30206
30207
30208 fi
30209
30210 if test $ac_cv_type_struct_sockaddr_storage = no; then
30211 HAVE_STRUCT_SOCKADDR_STORAGE=0
30212 fi
30213 if test $ac_cv_type_sa_family_t = no; then
30214 HAVE_SA_FAMILY_T=0
30215 fi
30216 if test $ac_cv_type_struct_sockaddr_storage != no; then
30217 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include <sys/types.h>
30218 #ifdef HAVE_SYS_SOCKET_H
30219 #include <sys/socket.h>
30220 #endif
30221 #ifdef HAVE_WS2TCPIP_H
30222 #include <ws2tcpip.h>
30223 #endif
30224
30225 "
30226 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes
30227 then :
30228
30229 printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1" >>confdefs.h
30230
30231
30232 else $as_nop
30233 HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY=0
30234 fi
30235
30236 fi
30237 if test $HAVE_STRUCT_SOCKADDR_STORAGE = 0 || test $HAVE_SA_FAMILY_T = 0 \
30238 || test $HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY = 0; then
30239 GL_GENERATE_SYS_SOCKET_H=true
30240 fi
30241
30242
30243
30244
30245 if test $ac_cv_header_sys_socket_h != yes; then
30246 ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
30247 if test "x$ac_cv_header_winsock2_h" = xyes
30248 then :
30249 printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h
30250
30251 fi
30252
30253 fi
30254 if test "$ac_cv_header_winsock2_h" = yes; then
30255 HAVE_WINSOCK2_H=1
30256 UNISTD_H_HAVE_WINSOCK2_H=1
30257 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
30258 else
30259 HAVE_WINSOCK2_H=0
30260 fi
30261
30262
30263
30264
30265
30266
30267
30268
30269
30270
30271
30272 GL_GNULIB_SOCKET=0
30273
30274
30275
30276 GL_GNULIB_CONNECT=0
30277
30278
30279
30280 GL_GNULIB_ACCEPT=0
30281
30282
30283
30284 GL_GNULIB_BIND=0
30285
30286
30287
30288 GL_GNULIB_GETPEERNAME=0
30289
30290
30291
30292 GL_GNULIB_GETSOCKNAME=0
30293
30294
30295
30296 GL_GNULIB_GETSOCKOPT=0
30297
30298
30299
30300 GL_GNULIB_LISTEN=0
30301
30302
30303
30304 GL_GNULIB_RECV=0
30305
30306
30307
30308 GL_GNULIB_SEND=0
30309
30310
30311
30312 GL_GNULIB_RECVFROM=0
30313
30314
30315
30316 GL_GNULIB_SENDTO=0
30317
30318
30319
30320 GL_GNULIB_SETSOCKOPT=0
30321
30322
30323
30324 GL_GNULIB_SHUTDOWN=0
30325
30326
30327
30328 GL_GNULIB_ACCEPT4=0
30329
30330
30331
30332
30333 HAVE_DECL_INET_NTOP=1;
30334 HAVE_DECL_INET_PTON=1;
30335 REPLACE_INET_NTOP=0;
30336 REPLACE_INET_PTON=0;
30337
30338
30339
30340
30341
30342
30343 if test $ac_cv_header_arpa_inet_h = yes; then
30344 HAVE_ARPA_INET_H=1
30345 else
30346 HAVE_ARPA_INET_H=0
30347 fi
30348
30349
30350
30351
30352
30353
30354
30355
30356
30357
30358 if test $gl_cv_have_include_next = yes; then
30359 gl_cv_next_arpa_inet_h='<'arpa/inet.h'>'
30360 else
30361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <arpa/inet.h>" >&5
30362 printf %s "checking absolute name of <arpa/inet.h>... " >&6; }
30363 if test ${gl_cv_next_arpa_inet_h+y}
30364 then :
30365 printf %s "(cached) " >&6
30366 else $as_nop
30367
30368 if test $ac_cv_header_arpa_inet_h = yes; then
30369
30370
30371
30372
30373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30374 /* end confdefs.h. */
30375 #include <arpa/inet.h>
30376 _ACEOF
30377 case "$host_os" in
30378 aix*) gl_absname_cpp="$ac_cpp -C" ;;
30379 *) gl_absname_cpp="$ac_cpp" ;;
30380 esac
30381
30382 case "$host_os" in
30383 mingw*)
30384 gl_dirsep_regex='[/\\]'
30385 ;;
30386 *)
30387 gl_dirsep_regex='\/'
30388 ;;
30389 esac
30390 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
30391 gl_header_literal_regex=`echo 'arpa/inet.h' \
30392 | sed -e "$gl_make_literal_regex_sed"`
30393 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
30394 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
30395 s|^/[^/]|//&|
30396 p
30397 q
30398 }'
30399
30400 gl_cv_absolute_arpa_inet_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
30401 sed -n "$gl_absolute_header_sed"`
30402
30403 gl_header=$gl_cv_absolute_arpa_inet_h
30404 gl_cv_next_arpa_inet_h='"'$gl_header'"'
30405 else
30406 gl_cv_next_arpa_inet_h='<'arpa/inet.h'>'
30407 fi
30408
30409
30410 fi
30411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_arpa_inet_h" >&5
30412 printf "%s\n" "$gl_cv_next_arpa_inet_h" >&6; }
30413 fi
30414 NEXT_ARPA_INET_H=$gl_cv_next_arpa_inet_h
30415
30416 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
30417 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
30418 gl_next_as_first_directive='<'arpa/inet.h'>'
30419 else
30420 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
30421 gl_next_as_first_directive=$gl_cv_next_arpa_inet_h
30422 fi
30423 NEXT_AS_FIRST_DIRECTIVE_ARPA_INET_H=$gl_next_as_first_directive
30424
30425
30426
30427
30428
30429
30430
30431
30432
30433 if test $ac_cv_header_sys_socket_h = yes; then
30434 HAVE_WS2TCPIP_H=0
30435 else
30436 if test $ac_cv_header_ws2tcpip_h = yes; then
30437 HAVE_WS2TCPIP_H=1
30438 else
30439 HAVE_WS2TCPIP_H=0
30440 fi
30441 fi
30442
30443
30444
30445
30446
30447
30448
30449
30450
30451 GL_GNULIB_INET_NTOP=0
30452
30453
30454
30455 GL_GNULIB_INET_PTON=0
30456
30457
30458
30459
30460
30461
30462
30463
30464
30465
30466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
30467 printf %s "checking if environ is properly declared... " >&6; }
30468 if test ${gt_cv_var_environ_declaration+y}
30469 then :
30470 printf %s "(cached) " >&6
30471 else $as_nop
30472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30473 /* end confdefs.h. */
30474 #if HAVE_UNISTD_H
30475 #include <unistd.h>
30476 #endif
30477 /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>. */
30478 #include <stdlib.h>
30479
30480 typedef struct { int foo; } foo_t;
30481 extern foo_t environ;
30482 int
30483 main (void)
30484 {
30485 environ.foo = 1;
30486 ;
30487 return 0;
30488 }
30489 _ACEOF
30490 if ac_fn_c_try_compile "$LINENO"
30491 then :
30492 gt_cv_var_environ_declaration=no
30493 else $as_nop
30494 gt_cv_var_environ_declaration=yes
30495 fi
30496 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
30497 fi
30498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
30499 printf "%s\n" "$gt_cv_var_environ_declaration" >&6; }
30500 if test $gt_cv_var_environ_declaration = yes; then
30501
30502 printf "%s\n" "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
30503
30504 fi
30505
30506
30507 if test $gt_cv_var_environ_declaration != yes; then
30508 HAVE_DECL_ENVIRON=0
30509 fi
30510
30511
30512
30513
30514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether getcwd (NULL, 0) allocates memory for result" >&5
30515 printf %s "checking whether getcwd (NULL, 0) allocates memory for result... " >&6; }
30516 if test ${gl_cv_func_getcwd_null+y}
30517 then :
30518 printf %s "(cached) " >&6
30519 else $as_nop
30520 if test "$cross_compiling" = yes
30521 then :
30522 case "$host_os" in
30523 # Guess yes on glibc systems.
30524 *-gnu* | gnu*) gl_cv_func_getcwd_null="guessing yes";;
30525 # Guess yes on musl systems.
30526 *-musl*) gl_cv_func_getcwd_null="guessing yes";;
30527 # Guess yes on Cygwin.
30528 cygwin*) gl_cv_func_getcwd_null="guessing yes";;
30529 # If we don't know, obey --enable-cross-guesses.
30530 *) gl_cv_func_getcwd_null="$gl_cross_guess_normal";;
30531 esac
30532
30533 else $as_nop
30534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30535 /* end confdefs.h. */
30536
30537 # include <stdlib.h>
30538 # if HAVE_UNISTD_H
30539 # include <unistd.h>
30540 # else /* on Windows with MSVC */
30541 # include <direct.h>
30542 # endif
30543
30544
30545 $gl_mda_defines
30546
30547 # ifndef getcwd
30548 char *getcwd ();
30549 # endif
30550
30551 int
30552 main (void)
30553 {
30554
30555 #if defined _WIN32 && ! defined __CYGWIN__
30556 /* mingw cwd does not start with '/', but _getcwd does allocate.
30557 However, mingw fails to honor non-zero size. */
30558 #else
30559 if (chdir ("/") != 0)
30560 return 1;
30561 else
30562 {
30563 char *f = getcwd (NULL, 0);
30564 if (! f)
30565 return 2;
30566 if (f[0] != '/')
30567 { free (f); return 3; }
30568 if (f[1] != '\0')
30569 { free (f); return 4; }
30570 free (f);
30571 return 0;
30572 }
30573 #endif
30574
30575 ;
30576 return 0;
30577 }
30578 _ACEOF
30579 if ac_fn_c_try_run "$LINENO"
30580 then :
30581 gl_cv_func_getcwd_null=yes
30582 else $as_nop
30583 gl_cv_func_getcwd_null=no
30584 fi
30585 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30586 conftest.$ac_objext conftest.beam conftest.$ac_ext
30587 fi
30588
30589 fi
30590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_null" >&5
30591 printf "%s\n" "$gl_cv_func_getcwd_null" >&6; }
30592
30593
30594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getcwd with POSIX signature" >&5
30595 printf %s "checking for getcwd with POSIX signature... " >&6; }
30596 if test ${gl_cv_func_getcwd_posix_signature+y}
30597 then :
30598 printf %s "(cached) " >&6
30599 else $as_nop
30600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30601 /* end confdefs.h. */
30602 #include <unistd.h>
30603
30604
30605 $gl_mda_defines
30606
30607 int
30608 main (void)
30609 {
30610 extern
30611 #ifdef __cplusplus
30612 "C"
30613 #endif
30614 char *getcwd (char *, size_t);
30615
30616 ;
30617 return 0;
30618 }
30619
30620 _ACEOF
30621 if ac_fn_c_try_compile "$LINENO"
30622 then :
30623 gl_cv_func_getcwd_posix_signature=yes
30624 else $as_nop
30625 gl_cv_func_getcwd_posix_signature=no
30626 fi
30627 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
30628
30629 fi
30630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_posix_signature" >&5
30631 printf "%s\n" "$gl_cv_func_getcwd_posix_signature" >&6; }
30632
30633
30634 HAVE_GETTIMEOFDAY=1;
30635 HAVE_STRUCT_TIMEVAL=1;
30636 HAVE_SYS_TIME_H=1;
30637 REPLACE_GETTIMEOFDAY=0;
30638 REPLACE_STRUCT_TIMEVAL=0;
30639
30640
30641
30642
30643
30644
30645
30646
30647
30648
30649
30650
30651
30652
30653 if test $gl_cv_have_include_next = yes; then
30654 gl_cv_next_sys_time_h='<'sys/time.h'>'
30655 else
30656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
30657 printf %s "checking absolute name of <sys/time.h>... " >&6; }
30658 if test ${gl_cv_next_sys_time_h+y}
30659 then :
30660 printf %s "(cached) " >&6
30661 else $as_nop
30662
30663 if test $ac_cv_header_sys_time_h = yes; then
30664
30665
30666
30667
30668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30669 /* end confdefs.h. */
30670 #include <sys/time.h>
30671 _ACEOF
30672 case "$host_os" in
30673 aix*) gl_absname_cpp="$ac_cpp -C" ;;
30674 *) gl_absname_cpp="$ac_cpp" ;;
30675 esac
30676
30677 case "$host_os" in
30678 mingw*)
30679 gl_dirsep_regex='[/\\]'
30680 ;;
30681 *)
30682 gl_dirsep_regex='\/'
30683 ;;
30684 esac
30685 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
30686 gl_header_literal_regex=`echo 'sys/time.h' \
30687 | sed -e "$gl_make_literal_regex_sed"`
30688 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
30689 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
30690 s|^/[^/]|//&|
30691 p
30692 q
30693 }'
30694
30695 gl_cv_absolute_sys_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
30696 sed -n "$gl_absolute_header_sed"`
30697
30698 gl_header=$gl_cv_absolute_sys_time_h
30699 gl_cv_next_sys_time_h='"'$gl_header'"'
30700 else
30701 gl_cv_next_sys_time_h='<'sys/time.h'>'
30702 fi
30703
30704
30705 fi
30706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
30707 printf "%s\n" "$gl_cv_next_sys_time_h" >&6; }
30708 fi
30709 NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
30710
30711 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
30712 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
30713 gl_next_as_first_directive='<'sys/time.h'>'
30714 else
30715 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
30716 gl_next_as_first_directive=$gl_cv_next_sys_time_h
30717 fi
30718 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
30719
30720
30721
30722
30723
30724 if test $ac_cv_header_sys_time_h != yes; then
30725 HAVE_SYS_TIME_H=0
30726 fi
30727
30728
30729
30730
30731
30732 if test $ac_cv_header_sys_socket_h != yes; then
30733 ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
30734 if test "x$ac_cv_header_winsock2_h" = xyes
30735 then :
30736 printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h
30737
30738 fi
30739
30740 fi
30741 if test "$ac_cv_header_winsock2_h" = yes; then
30742 HAVE_WINSOCK2_H=1
30743 UNISTD_H_HAVE_WINSOCK2_H=1
30744 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
30745 else
30746 HAVE_WINSOCK2_H=0
30747 fi
30748
30749
30750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
30751 printf %s "checking for struct timeval... " >&6; }
30752 if test ${gl_cv_sys_struct_timeval+y}
30753 then :
30754 printf %s "(cached) " >&6
30755 else $as_nop
30756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30757 /* end confdefs.h. */
30758 #if HAVE_SYS_TIME_H
30759 #include <sys/time.h>
30760 #endif
30761 #include <time.h>
30762 #if HAVE_WINSOCK2_H
30763 # include <winsock2.h>
30764 #endif
30765
30766 int
30767 main (void)
30768 {
30769 static struct timeval x; x.tv_sec = x.tv_usec;
30770 ;
30771 return 0;
30772 }
30773 _ACEOF
30774 if ac_fn_c_try_compile "$LINENO"
30775 then :
30776 gl_cv_sys_struct_timeval=yes
30777 else $as_nop
30778 gl_cv_sys_struct_timeval=no
30779 fi
30780 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
30781
30782 fi
30783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
30784 printf "%s\n" "$gl_cv_sys_struct_timeval" >&6; }
30785 if test $gl_cv_sys_struct_timeval != yes; then
30786 HAVE_STRUCT_TIMEVAL=0
30787 else
30788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
30789 printf %s "checking for wide-enough struct timeval.tv_sec member... " >&6; }
30790 if test ${gl_cv_sys_struct_timeval_tv_sec+y}
30791 then :
30792 printf %s "(cached) " >&6
30793 else $as_nop
30794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30795 /* end confdefs.h. */
30796 #if HAVE_SYS_TIME_H
30797 #include <sys/time.h>
30798 #endif
30799 #include <time.h>
30800 #if HAVE_WINSOCK2_H
30801 # include <winsock2.h>
30802 #endif
30803
30804 int
30805 main (void)
30806 {
30807 static struct timeval x;
30808 typedef int verify_tv_sec_type[
30809 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
30810 ];
30811
30812 ;
30813 return 0;
30814 }
30815 _ACEOF
30816 if ac_fn_c_try_compile "$LINENO"
30817 then :
30818 gl_cv_sys_struct_timeval_tv_sec=yes
30819 else $as_nop
30820 gl_cv_sys_struct_timeval_tv_sec=no
30821 fi
30822 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
30823
30824 fi
30825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
30826 printf "%s\n" "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
30827 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
30828 REPLACE_STRUCT_TIMEVAL=1
30829 fi
30830 fi
30831
30832
30833
30834
30835
30836
30837
30838
30839 GL_GNULIB_GETTIMEOFDAY=0
30840
30841
30842
30843
30844
30845 case "$host_os" in
30846 *-musl*)
30847 printf "%s\n" "#define MUSL_LIBC 1" >>confdefs.h
30848 ;;
30849 esac
30850
30851
30852
30853
30854
30855
30856
30857
30858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IPv4 sockets" >&5
30859 printf %s "checking for IPv4 sockets... " >&6; }
30860 if test ${gl_cv_socket_ipv4+y}
30861 then :
30862 printf %s "(cached) " >&6
30863 else $as_nop
30864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30865 /* end confdefs.h. */
30866 #include <sys/types.h>
30867 #ifdef HAVE_SYS_SOCKET_H
30868 #include <sys/socket.h>
30869 #endif
30870 #ifdef HAVE_NETINET_IN_H
30871 #include <netinet/in.h>
30872 #endif
30873 #ifdef HAVE_WINSOCK2_H
30874 #include <winsock2.h>
30875 #endif
30876 int
30877 main (void)
30878 {
30879 int x = AF_INET; struct in_addr y; struct sockaddr_in z;
30880 if (&x && &y && &z) return 0;
30881 ;
30882 return 0;
30883 }
30884 _ACEOF
30885 if ac_fn_c_try_compile "$LINENO"
30886 then :
30887 gl_cv_socket_ipv4=yes
30888 else $as_nop
30889 gl_cv_socket_ipv4=no
30890 fi
30891 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
30892 fi
30893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socket_ipv4" >&5
30894 printf "%s\n" "$gl_cv_socket_ipv4" >&6; }
30895 if test $gl_cv_socket_ipv4 = yes; then
30896
30897 printf "%s\n" "#define HAVE_IPV4 1" >>confdefs.h
30898
30899 fi
30900
30901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IPv6 sockets" >&5
30902 printf %s "checking for IPv6 sockets... " >&6; }
30903 if test ${gl_cv_socket_ipv6+y}
30904 then :
30905 printf %s "(cached) " >&6
30906 else $as_nop
30907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30908 /* end confdefs.h. */
30909 #include <sys/types.h>
30910 #ifdef HAVE_SYS_SOCKET_H
30911 #include <sys/socket.h>
30912 #endif
30913 #ifdef HAVE_NETINET_IN_H
30914 #include <netinet/in.h>
30915 #endif
30916 #ifdef HAVE_WINSOCK2_H
30917 #include <winsock2.h>
30918 #endif
30919 #ifdef HAVE_WS2TCPIP_H
30920 #include <ws2tcpip.h>
30921 #endif
30922 int
30923 main (void)
30924 {
30925 int x = AF_INET6; struct in6_addr y; struct sockaddr_in6 z;
30926 if (&x && &y && &z) return 0;
30927 ;
30928 return 0;
30929 }
30930 _ACEOF
30931 if ac_fn_c_try_compile "$LINENO"
30932 then :
30933 gl_cv_socket_ipv6=yes
30934 else $as_nop
30935 gl_cv_socket_ipv6=no
30936 fi
30937 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
30938 fi
30939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socket_ipv6" >&5
30940 printf "%s\n" "$gl_cv_socket_ipv6" >&6; }
30941 if test $gl_cv_socket_ipv6 = yes; then
30942
30943 printf "%s\n" "#define HAVE_IPV6 1" >>confdefs.h
30944
30945 fi
30946
30947
30948
30949
30950 PRIPTR_PREFIX=
30951 if $GL_GENERATE_STDINT_H; then
30952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30953 /* end confdefs.h. */
30954
30955 #ifdef _WIN64
30956 LLP64
30957 #endif
30958
30959 int
30960 main (void)
30961 {
30962
30963 ;
30964 return 0;
30965 }
30966
30967 _ACEOF
30968 if ac_fn_c_try_compile "$LINENO"
30969 then :
30970 PRIPTR_PREFIX='"l"'
30971 else $as_nop
30972 PRIPTR_PREFIX='"ll"'
30973 fi
30974 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
30975 else
30976 for glpfx in '' l ll I64; do
30977 case $glpfx in
30978 '') gltype1='int';;
30979 l) gltype1='long int';;
30980 ll) gltype1='long long int';;
30981 I64) gltype1='__int64';;
30982 esac
30983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30984 /* end confdefs.h. */
30985 #include <stdint.h>
30986 extern intptr_t foo;
30987 extern $gltype1 foo;
30988 int
30989 main (void)
30990 {
30991
30992 ;
30993 return 0;
30994 }
30995 _ACEOF
30996 if ac_fn_c_try_compile "$LINENO"
30997 then :
30998 PRIPTR_PREFIX='"'$glpfx'"'
30999 fi
31000 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
31001 test -n "$PRIPTR_PREFIX" && break
31002 done
31003 fi
31004
31005
31006
31007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5
31008 printf %s "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
31009 if test ${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+y}
31010 then :
31011 printf %s "(cached) " >&6
31012 else $as_nop
31013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31014 /* end confdefs.h. */
31015 /* Work also in C++ mode. */
31016 #define __STDC_LIMIT_MACROS 1
31017
31018 /* Work if build is not clean. */
31019 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
31020
31021 #include <limits.h>
31022 #if HAVE_STDINT_H
31023 #include <stdint.h>
31024 #endif
31025
31026 #if defined INT32_MAX && defined INTMAX_MAX
31027 #define CONDITION (INT32_MAX < INTMAX_MAX)
31028 #else
31029 #define CONDITION (sizeof (int) < sizeof (long long int))
31030 #endif
31031 int test[CONDITION ? 1 : -1];
31032 int
31033 main (void)
31034 {
31035
31036 ;
31037 return 0;
31038 }
31039 _ACEOF
31040 if ac_fn_c_try_compile "$LINENO"
31041 then :
31042 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=yes
31043 else $as_nop
31044 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=no
31045 fi
31046 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
31047 fi
31048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
31049 printf "%s\n" "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
31050 if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
31051 INT32_MAX_LT_INTMAX_MAX=1;
31052 else
31053 INT32_MAX_LT_INTMAX_MAX=0;
31054 fi
31055
31056
31057 if test $APPLE_UNIVERSAL_BUILD = 0; then
31058
31059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5
31060 printf %s "checking whether INT64_MAX == LONG_MAX... " >&6; }
31061 if test ${gl_cv_test_INT64_MAX_EQ_LONG_MAX+y}
31062 then :
31063 printf %s "(cached) " >&6
31064 else $as_nop
31065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31066 /* end confdefs.h. */
31067 /* Work also in C++ mode. */
31068 #define __STDC_LIMIT_MACROS 1
31069
31070 /* Work if build is not clean. */
31071 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
31072
31073 #include <limits.h>
31074 #if HAVE_STDINT_H
31075 #include <stdint.h>
31076 #endif
31077
31078 #if defined INT64_MAX
31079 #define CONDITION (INT64_MAX == LONG_MAX)
31080 #else
31081 #define CONDITION (sizeof (long long int) == sizeof (long int))
31082 #endif
31083 int test[CONDITION ? 1 : -1];
31084 int
31085 main (void)
31086 {
31087
31088 ;
31089 return 0;
31090 }
31091 _ACEOF
31092 if ac_fn_c_try_compile "$LINENO"
31093 then :
31094 gl_cv_test_INT64_MAX_EQ_LONG_MAX=yes
31095 else $as_nop
31096 gl_cv_test_INT64_MAX_EQ_LONG_MAX=no
31097 fi
31098 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
31099 fi
31100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
31101 printf "%s\n" "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
31102 if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
31103 INT64_MAX_EQ_LONG_MAX=1;
31104 else
31105 INT64_MAX_EQ_LONG_MAX=0;
31106 fi
31107
31108
31109 else
31110 INT64_MAX_EQ_LONG_MAX=-1
31111 fi
31112
31113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5
31114 printf %s "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
31115 if test ${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+y}
31116 then :
31117 printf %s "(cached) " >&6
31118 else $as_nop
31119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31120 /* end confdefs.h. */
31121 /* Work also in C++ mode. */
31122 #define __STDC_LIMIT_MACROS 1
31123
31124 /* Work if build is not clean. */
31125 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
31126
31127 #include <limits.h>
31128 #if HAVE_STDINT_H
31129 #include <stdint.h>
31130 #endif
31131
31132 #if defined UINT32_MAX && defined UINTMAX_MAX
31133 #define CONDITION (UINT32_MAX < UINTMAX_MAX)
31134 #else
31135 #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
31136 #endif
31137 int test[CONDITION ? 1 : -1];
31138 int
31139 main (void)
31140 {
31141
31142 ;
31143 return 0;
31144 }
31145 _ACEOF
31146 if ac_fn_c_try_compile "$LINENO"
31147 then :
31148 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=yes
31149 else $as_nop
31150 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=no
31151 fi
31152 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
31153 fi
31154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
31155 printf "%s\n" "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
31156 if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
31157 UINT32_MAX_LT_UINTMAX_MAX=1;
31158 else
31159 UINT32_MAX_LT_UINTMAX_MAX=0;
31160 fi
31161
31162
31163 if test $APPLE_UNIVERSAL_BUILD = 0; then
31164
31165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5
31166 printf %s "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
31167 if test ${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+y}
31168 then :
31169 printf %s "(cached) " >&6
31170 else $as_nop
31171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31172 /* end confdefs.h. */
31173 /* Work also in C++ mode. */
31174 #define __STDC_LIMIT_MACROS 1
31175
31176 /* Work if build is not clean. */
31177 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
31178
31179 #include <limits.h>
31180 #if HAVE_STDINT_H
31181 #include <stdint.h>
31182 #endif
31183
31184 #if defined UINT64_MAX
31185 #define CONDITION (UINT64_MAX == ULONG_MAX)
31186 #else
31187 #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
31188 #endif
31189 int test[CONDITION ? 1 : -1];
31190 int
31191 main (void)
31192 {
31193
31194 ;
31195 return 0;
31196 }
31197 _ACEOF
31198 if ac_fn_c_try_compile "$LINENO"
31199 then :
31200 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=yes
31201 else $as_nop
31202 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=no
31203 fi
31204 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
31205 fi
31206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
31207 printf "%s\n" "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
31208 if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
31209 UINT64_MAX_EQ_ULONG_MAX=1;
31210 else
31211 UINT64_MAX_EQ_ULONG_MAX=0;
31212 fi
31213
31214
31215 else
31216 UINT64_MAX_EQ_ULONG_MAX=-1
31217 fi
31218
31219
31220
31221
31222 GL_GNULIB_IOCTL=0
31223
31224
31225
31226
31227
31228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
31229 printf %s "checking for LC_MESSAGES... " >&6; }
31230 if test ${gt_cv_val_LC_MESSAGES+y}
31231 then :
31232 printf %s "(cached) " >&6
31233 else $as_nop
31234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31235 /* end confdefs.h. */
31236 #include <locale.h>
31237 int
31238 main (void)
31239 {
31240 return LC_MESSAGES
31241 ;
31242 return 0;
31243 }
31244 _ACEOF
31245 if ac_fn_c_try_link "$LINENO"
31246 then :
31247 gt_cv_val_LC_MESSAGES=yes
31248 else $as_nop
31249 gt_cv_val_LC_MESSAGES=no
31250 fi
31251 rm -f core conftest.err conftest.$ac_objext conftest.beam \
31252 conftest$ac_exeext conftest.$ac_ext
31253 fi
31254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
31255 printf "%s\n" "$gt_cv_val_LC_MESSAGES" >&6; }
31256 if test $gt_cv_val_LC_MESSAGES = yes; then
31257
31258 printf "%s\n" "#define HAVE_LC_MESSAGES 1" >>confdefs.h
31259
31260 fi
31261
31262
31263
31264
31265
31266
31267
31268
31269
31270
31271
31272
31273
31274 if test $ac_cv_func_uselocale = yes; then
31275
31276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether uselocale works" >&5
31277 printf %s "checking whether uselocale works... " >&6; }
31278 if test ${gt_cv_func_uselocale_works+y}
31279 then :
31280 printf %s "(cached) " >&6
31281 else $as_nop
31282 if test "$cross_compiling" = yes
31283 then :
31284 # Guess no on AIX and z/OS, yes otherwise.
31285 case "$host_os" in
31286 aix* | openedition*) gt_cv_func_uselocale_works="guessing no" ;;
31287 *) gt_cv_func_uselocale_works="guessing yes" ;;
31288 esac
31289
31290 else $as_nop
31291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31292 /* end confdefs.h. */
31293
31294 #include <locale.h>
31295 #if HAVE_XLOCALE_H
31296 # include <xlocale.h>
31297 #endif
31298 locale_t loc1;
31299 int main ()
31300 {
31301 uselocale (NULL);
31302 setlocale (LC_ALL, "en_US.UTF-8");
31303 return 0;
31304 }
31305 _ACEOF
31306 if ac_fn_c_try_run "$LINENO"
31307 then :
31308 gt_cv_func_uselocale_works=yes
31309 else $as_nop
31310 gt_cv_func_uselocale_works=no
31311 fi
31312 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
31313 conftest.$ac_objext conftest.beam conftest.$ac_ext
31314 fi
31315
31316
31317 fi
31318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_uselocale_works" >&5
31319 printf "%s\n" "$gt_cv_func_uselocale_works" >&6; }
31320 else
31321 gt_cv_func_uselocale_works=no
31322 fi
31323 case "$gt_cv_func_uselocale_works" in
31324 *yes)
31325 gt_working_uselocale=yes
31326
31327 printf "%s\n" "#define HAVE_WORKING_USELOCALE 1" >>confdefs.h
31328
31329 ;;
31330 *)
31331 gt_working_uselocale=no
31332 ;;
31333 esac
31334
31335
31336 case "$gt_cv_func_uselocale_works" in
31337 *yes)
31338
31339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fake locale system (OpenBSD)" >&5
31340 printf %s "checking for fake locale system (OpenBSD)... " >&6; }
31341 if test ${gt_cv_locale_fake+y}
31342 then :
31343 printf %s "(cached) " >&6
31344 else $as_nop
31345 if test "$cross_compiling" = yes
31346 then :
31347 case "$host_os" in
31348 openbsd*) gt_cv_locale_fake="guessing yes" ;;
31349 *) gt_cv_locale_fake="guessing no" ;;
31350 esac
31351
31352 else $as_nop
31353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31354 /* end confdefs.h. */
31355
31356 #include <locale.h>
31357 #if HAVE_XLOCALE_H
31358 # include <xlocale.h>
31359 #endif
31360 int main ()
31361 {
31362 locale_t loc1, loc2;
31363 if (setlocale (LC_ALL, "de_DE.UTF-8") == NULL) return 1;
31364 if (setlocale (LC_ALL, "fr_FR.UTF-8") == NULL) return 1;
31365 loc1 = newlocale (LC_ALL_MASK, "de_DE.UTF-8", (locale_t)0);
31366 loc2 = newlocale (LC_ALL_MASK, "fr_FR.UTF-8", (locale_t)0);
31367 return !(loc1 == loc2);
31368 }
31369 _ACEOF
31370 if ac_fn_c_try_run "$LINENO"
31371 then :
31372 gt_cv_locale_fake=yes
31373 else $as_nop
31374 gt_cv_locale_fake=no
31375 fi
31376 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
31377 conftest.$ac_objext conftest.beam conftest.$ac_ext
31378 fi
31379
31380
31381 fi
31382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fake" >&5
31383 printf "%s\n" "$gt_cv_locale_fake" >&6; }
31384 ;;
31385 *) gt_cv_locale_fake=no ;;
31386 esac
31387 case "$gt_cv_locale_fake" in
31388 *yes)
31389 gt_fake_locales=yes
31390
31391 printf "%s\n" "#define HAVE_FAKE_LOCALES 1" >>confdefs.h
31392
31393 ;;
31394 *)
31395 gt_fake_locales=no
31396 ;;
31397 esac
31398
31399 case "$gt_cv_func_uselocale_works" in
31400 *yes)
31401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Solaris 11.4 locale system" >&5
31402 printf %s "checking for Solaris 11.4 locale system... " >&6; }
31403 if test ${gt_cv_locale_solaris114+y}
31404 then :
31405 printf %s "(cached) " >&6
31406 else $as_nop
31407 case "$host_os" in
31408 solaris*)
31409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31410 /* end confdefs.h. */
31411
31412 #include <locale.h>
31413 struct _LC_locale_t *x;
31414 locale_t y;
31415
31416 int
31417 main (void)
31418 {
31419 *y = x;
31420 ;
31421 return 0;
31422 }
31423 _ACEOF
31424 if ac_fn_c_try_compile "$LINENO"
31425 then :
31426 gt_cv_locale_solaris114=yes
31427 else $as_nop
31428 gt_cv_locale_solaris114=no
31429 fi
31430 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
31431 ;;
31432 *) gt_cv_locale_solaris114=no ;;
31433 esac
31434
31435 fi
31436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_solaris114" >&5
31437 printf "%s\n" "$gt_cv_locale_solaris114" >&6; }
31438 ;;
31439 *) gt_cv_locale_solaris114=no ;;
31440 esac
31441 if test $gt_cv_locale_solaris114 = yes; then
31442
31443 printf "%s\n" "#define HAVE_SOLARIS114_LOCALES 1" >>confdefs.h
31444
31445 fi
31446
31447 case "$gt_cv_func_uselocale_works" in
31448 *yes)
31449 ac_fn_c_check_func "$LINENO" "getlocalename_l" "ac_cv_func_getlocalename_l"
31450 if test "x$ac_cv_func_getlocalename_l" = xyes
31451 then :
31452 printf "%s\n" "#define HAVE_GETLOCALENAME_L 1" >>confdefs.h
31453
31454 fi
31455
31456 ;;
31457 esac
31458
31459 gt_nameless_locales=no
31460 case "$host_os" in
31461 aix*)
31462 gt_nameless_locales=yes
31463
31464 printf "%s\n" "#define HAVE_NAMELESS_LOCALES 1" >>confdefs.h
31465
31466 ;;
31467 esac
31468
31469 if test $gt_working_uselocale = yes && test $gt_fake_locales = no; then
31470 gt_good_uselocale=yes
31471
31472 printf "%s\n" "#define HAVE_GOOD_USELOCALE 1" >>confdefs.h
31473
31474 else
31475 gt_good_uselocale=no
31476 fi
31477
31478 if test $gt_good_uselocale = yes && test $gt_nameless_locales = yes; then
31479 gt_localename_enhances_locale_funcs=yes
31480 LOCALENAME_ENHANCE_LOCALE_FUNCS=1
31481
31482 printf "%s\n" "#define LOCALENAME_ENHANCE_LOCALE_FUNCS 1" >>confdefs.h
31483
31484 else
31485 gt_localename_enhances_locale_funcs=no
31486 fi
31487
31488
31489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
31490 printf %s "checking for CFPreferencesCopyAppValue... " >&6; }
31491 if test ${gt_cv_func_CFPreferencesCopyAppValue+y}
31492 then :
31493 printf %s "(cached) " >&6
31494 else $as_nop
31495 gt_save_LIBS="$LIBS"
31496 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
31497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31498 /* end confdefs.h. */
31499 #include <CoreFoundation/CFPreferences.h>
31500 int
31501 main (void)
31502 {
31503 CFPreferencesCopyAppValue(NULL, NULL)
31504 ;
31505 return 0;
31506 }
31507 _ACEOF
31508 if ac_fn_c_try_link "$LINENO"
31509 then :
31510 gt_cv_func_CFPreferencesCopyAppValue=yes
31511 else $as_nop
31512 gt_cv_func_CFPreferencesCopyAppValue=no
31513 fi
31514 rm -f core conftest.err conftest.$ac_objext conftest.beam \
31515 conftest$ac_exeext conftest.$ac_ext
31516 LIBS="$gt_save_LIBS"
31517 fi
31518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
31519 printf "%s\n" "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
31520 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
31521
31522 printf "%s\n" "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
31523
31524 fi
31525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5
31526 printf %s "checking for CFLocaleCopyPreferredLanguages... " >&6; }
31527 if test ${gt_cv_func_CFLocaleCopyPreferredLanguages+y}
31528 then :
31529 printf %s "(cached) " >&6
31530 else $as_nop
31531 gt_save_LIBS="$LIBS"
31532 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
31533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31534 /* end confdefs.h. */
31535 #include <CoreFoundation/CFLocale.h>
31536 int
31537 main (void)
31538 {
31539 CFLocaleCopyPreferredLanguages();
31540 ;
31541 return 0;
31542 }
31543 _ACEOF
31544 if ac_fn_c_try_link "$LINENO"
31545 then :
31546 gt_cv_func_CFLocaleCopyPreferredLanguages=yes
31547 else $as_nop
31548 gt_cv_func_CFLocaleCopyPreferredLanguages=no
31549 fi
31550 rm -f core conftest.err conftest.$ac_objext conftest.beam \
31551 conftest$ac_exeext conftest.$ac_ext
31552 LIBS="$gt_save_LIBS"
31553 fi
31554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5
31555 printf "%s\n" "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; }
31556 if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
31557
31558 printf "%s\n" "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h
31559
31560 fi
31561 INTL_MACOSX_LIBS=
31562 if test $gt_cv_func_CFPreferencesCopyAppValue = yes \
31563 || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
31564 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
31565 fi
31566
31567
31568
31569
31570
31571
31572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library needed for semaphore functions" >&5
31573 printf %s "checking for library needed for semaphore functions... " >&6; }
31574 if test ${gl_cv_semaphore_lib+y}
31575 then :
31576 printf %s "(cached) " >&6
31577 else $as_nop
31578 save_LIBS="$LIBS"
31579 LIBS="$LIBS $LIBMULTITHREAD"
31580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31581 /* end confdefs.h. */
31582 #include <semaphore.h>
31583 int
31584 main (void)
31585 {
31586 sem_post ((sem_t *)0);
31587 ;
31588 return 0;
31589 }
31590 _ACEOF
31591 if ac_fn_c_try_link "$LINENO"
31592 then :
31593 gl_cv_semaphore_lib=none
31594 else $as_nop
31595 LIBS="$LIBS -lrt"
31596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31597 /* end confdefs.h. */
31598 #include <semaphore.h>
31599 int
31600 main (void)
31601 {
31602 sem_post ((sem_t *)0);
31603 ;
31604 return 0;
31605 }
31606 _ACEOF
31607 if ac_fn_c_try_link "$LINENO"
31608 then :
31609 gl_cv_semaphore_lib='-lrt'
31610 else $as_nop
31611 gl_cv_semaphore_lib=none
31612 fi
31613 rm -f core conftest.err conftest.$ac_objext conftest.beam \
31614 conftest$ac_exeext conftest.$ac_ext
31615
31616 fi
31617 rm -f core conftest.err conftest.$ac_objext conftest.beam \
31618 conftest$ac_exeext conftest.$ac_ext
31619 LIBS="$save_LIBS"
31620
31621 fi
31622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_semaphore_lib" >&5
31623 printf "%s\n" "$gl_cv_semaphore_lib" >&6; }
31624 if test "x$gl_cv_semaphore_lib" = xnone; then
31625 LIB_SEMAPHORE=
31626 else
31627 LIB_SEMAPHORE="$gl_cv_semaphore_lib"
31628 fi
31629
31630
31631
31632 REPLACE_STRERROR_0=0
31633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether strerror(0) succeeds" >&5
31634 printf %s "checking whether strerror(0) succeeds... " >&6; }
31635 if test ${gl_cv_func_strerror_0_works+y}
31636 then :
31637 printf %s "(cached) " >&6
31638 else $as_nop
31639 if test "$cross_compiling" = yes
31640 then :
31641 case "$host_os" in
31642 # Guess yes on glibc systems.
31643 *-gnu* | gnu*) gl_cv_func_strerror_0_works="guessing yes" ;;
31644 # Guess yes on musl systems.
31645 *-musl*) gl_cv_func_strerror_0_works="guessing yes" ;;
31646 # Guess yes on native Windows.
31647 mingw*) gl_cv_func_strerror_0_works="guessing yes" ;;
31648 # If we don't know, obey --enable-cross-guesses.
31649 *) gl_cv_func_strerror_0_works="$gl_cross_guess_normal" ;;
31650 esac
31651
31652 else $as_nop
31653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31654 /* end confdefs.h. */
31655 #include <string.h>
31656 #include <errno.h>
31657
31658 int
31659 main (void)
31660 {
31661 int result = 0;
31662 char *str;
31663 errno = 0;
31664 str = strerror (0);
31665 if (!*str) result |= 1;
31666 if (errno) result |= 2;
31667 if (strstr (str, "nknown") || strstr (str, "ndefined"))
31668 result |= 4;
31669 return result;
31670 ;
31671 return 0;
31672 }
31673 _ACEOF
31674 if ac_fn_c_try_run "$LINENO"
31675 then :
31676 gl_cv_func_strerror_0_works=yes
31677 else $as_nop
31678 gl_cv_func_strerror_0_works=no
31679 fi
31680 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
31681 conftest.$ac_objext conftest.beam conftest.$ac_ext
31682 fi
31683
31684
31685 fi
31686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_0_works" >&5
31687 printf "%s\n" "$gl_cv_func_strerror_0_works" >&6; }
31688 case "$gl_cv_func_strerror_0_works" in
31689 *yes) ;;
31690 *)
31691 REPLACE_STRERROR_0=1
31692
31693 printf "%s\n" "#define REPLACE_STRERROR_0 1" >>confdefs.h
31694
31695 ;;
31696 esac
31697
31698
31699
31700
31701
31702
31703
31704
31705
31706
31707
31708 if test $ac_cv_func_strerror_r = yes; then
31709 if test "$GL_GENERATE_ERRNO_H:$REPLACE_STRERROR_0" = false:0; then
31710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for strerror_r with POSIX signature" >&5
31711 printf %s "checking for strerror_r with POSIX signature... " >&6; }
31712 if test ${gl_cv_func_strerror_r_posix_signature+y}
31713 then :
31714 printf %s "(cached) " >&6
31715 else $as_nop
31716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31717 /* end confdefs.h. */
31718 #include <string.h>
31719 int strerror_r (int, char *, size_t);
31720
31721 int
31722 main (void)
31723 {
31724
31725 ;
31726 return 0;
31727 }
31728 _ACEOF
31729 if ac_fn_c_try_compile "$LINENO"
31730 then :
31731 gl_cv_func_strerror_r_posix_signature=yes
31732 else $as_nop
31733 gl_cv_func_strerror_r_posix_signature=no
31734 fi
31735 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
31736
31737 fi
31738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_r_posix_signature" >&5
31739 printf "%s\n" "$gl_cv_func_strerror_r_posix_signature" >&6; }
31740 if test $gl_cv_func_strerror_r_posix_signature = yes; then
31741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether strerror_r works" >&5
31742 printf %s "checking whether strerror_r works... " >&6; }
31743 if test ${gl_cv_func_strerror_r_works+y}
31744 then :
31745 printf %s "(cached) " >&6
31746 else $as_nop
31747 if test "$cross_compiling" = yes
31748 then :
31749
31750 case "$host_os" in
31751 # Guess no on AIX.
31752 aix*) gl_cv_func_strerror_r_works="guessing no";;
31753 # Guess no on HP-UX.
31754 hpux*) gl_cv_func_strerror_r_works="guessing no";;
31755 # Guess no on BSD variants.
31756 *bsd*) gl_cv_func_strerror_r_works="guessing no";;
31757 # Guess yes otherwise.
31758 *) gl_cv_func_strerror_r_works="guessing yes";;
31759 esac
31760
31761 else $as_nop
31762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31763 /* end confdefs.h. */
31764 #include <errno.h>
31765 #include <string.h>
31766
31767 int
31768 main (void)
31769 {
31770 int result = 0;
31771 char buf[79];
31772 if (strerror_r (EACCES, buf, 0) < 0)
31773 result |= 1;
31774 errno = 0;
31775 if (strerror_r (EACCES, buf, sizeof buf) != 0)
31776 result |= 2;
31777 strcpy (buf, "Unknown");
31778 if (strerror_r (0, buf, sizeof buf) != 0)
31779 result |= 4;
31780 if (errno)
31781 result |= 8;
31782 if (strstr (buf, "nknown") || strstr (buf, "ndefined"))
31783 result |= 0x10;
31784 errno = 0;
31785 *buf = 0;
31786 if (strerror_r (-3, buf, sizeof buf) < 0)
31787 result |= 0x20;
31788 if (errno)
31789 result |= 0x40;
31790 if (!*buf)
31791 result |= 0x80;
31792 return result;
31793
31794 ;
31795 return 0;
31796 }
31797 _ACEOF
31798 if ac_fn_c_try_run "$LINENO"
31799 then :
31800 gl_cv_func_strerror_r_works=yes
31801 else $as_nop
31802 gl_cv_func_strerror_r_works=no
31803 fi
31804 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
31805 conftest.$ac_objext conftest.beam conftest.$ac_ext
31806 fi
31807
31808
31809 fi
31810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_r_works" >&5
31811 printf "%s\n" "$gl_cv_func_strerror_r_works" >&6; }
31812 else
31813
31814 if test $ac_cv_func___xpg_strerror_r = yes; then
31815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether __xpg_strerror_r works" >&5
31816 printf %s "checking whether __xpg_strerror_r works... " >&6; }
31817 if test ${gl_cv_func_strerror_r_works+y}
31818 then :
31819 printf %s "(cached) " >&6
31820 else $as_nop
31821 if test "$cross_compiling" = yes
31822 then :
31823 gl_cv_func_strerror_r_works="$gl_cross_guess_normal"
31824
31825 else $as_nop
31826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31827 /* end confdefs.h. */
31828 #include <errno.h>
31829 #include <string.h>
31830 extern
31831 #ifdef __cplusplus
31832 "C"
31833 #endif
31834 int __xpg_strerror_r(int, char *, size_t);
31835
31836 int
31837 main (void)
31838 {
31839 int result = 0;
31840 char buf[256] = "^";
31841 char copy[256];
31842 char *str = strerror (-1);
31843 strcpy (copy, str);
31844 if (__xpg_strerror_r (-2, buf, 1) == 0)
31845 result |= 1;
31846 if (*buf)
31847 result |= 2;
31848 __xpg_strerror_r (-2, buf, 256);
31849 if (strcmp (str, copy))
31850 result |= 4;
31851 return result;
31852
31853 ;
31854 return 0;
31855 }
31856 _ACEOF
31857 if ac_fn_c_try_run "$LINENO"
31858 then :
31859 gl_cv_func_strerror_r_works=yes
31860 else $as_nop
31861 gl_cv_func_strerror_r_works=no
31862 fi
31863 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
31864 conftest.$ac_objext conftest.beam conftest.$ac_ext
31865 fi
31866
31867
31868 fi
31869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_r_works" >&5
31870 printf "%s\n" "$gl_cv_func_strerror_r_works" >&6; }
31871 fi
31872 fi
31873 fi
31874 fi
31875
31876 ac_fn_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
31877 if test "x$ac_cv_have_decl_strerror_r" = xyes
31878 then :
31879 ac_have_decl=1
31880 else $as_nop
31881 ac_have_decl=0
31882 fi
31883 printf "%s\n" "#define HAVE_DECL_STRERROR_R $ac_have_decl" >>confdefs.h
31884
31885
31886
31887
31888
31889
31890 if test $ac_cv_have_decl_strerror_r = no; then
31891 HAVE_DECL_STRERROR_R=0
31892 fi
31893
31894 if test $ac_cv_func_strerror_r = yes; then
31895 if test "$GL_GENERATE_ERRNO_H:$REPLACE_STRERROR_0" = false:0; then
31896 if test $gl_cv_func_strerror_r_posix_signature = yes; then
31897 case "$gl_cv_func_strerror_r_works" in
31898 *no) REPLACE_STRERROR_R=1 ;;
31899 esac
31900 else
31901 REPLACE_STRERROR_R=1
31902 fi
31903 else
31904 REPLACE_STRERROR_R=1
31905 fi
31906 fi
31907
31908
31909
31910 HAVE_PSELECT=1;
31911 REPLACE_PSELECT=0;
31912 REPLACE_SELECT=0;
31913
31914
31915
31916
31917
31918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
31919 printf %s "checking whether <sys/select.h> is self-contained... " >&6; }
31920 if test ${gl_cv_header_sys_select_h_selfcontained+y}
31921 then :
31922 printf %s "(cached) " >&6
31923 else $as_nop
31924
31925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31926 /* end confdefs.h. */
31927 #include <sys/select.h>
31928 int
31929 main (void)
31930 {
31931 struct timeval b;
31932 ;
31933 return 0;
31934 }
31935 _ACEOF
31936 if ac_fn_c_try_compile "$LINENO"
31937 then :
31938 gl_cv_header_sys_select_h_selfcontained=yes
31939 else $as_nop
31940 gl_cv_header_sys_select_h_selfcontained=no
31941 fi
31942 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
31943 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
31944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31945 /* end confdefs.h. */
31946 #include <sys/select.h>
31947 int
31948 main (void)
31949 {
31950 int memset; int bzero;
31951 ;
31952 return 0;
31953 }
31954
31955 _ACEOF
31956 if ac_fn_c_try_compile "$LINENO"
31957 then :
31958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31959 /* end confdefs.h. */
31960 #include <sys/select.h>
31961 int
31962 main (void)
31963 {
31964
31965 #undef memset
31966 #define memset nonexistent_memset
31967 extern
31968 #ifdef __cplusplus
31969 "C"
31970 #endif
31971 void *memset (void *, int, unsigned long);
31972 #undef bzero
31973 #define bzero nonexistent_bzero
31974 extern
31975 #ifdef __cplusplus
31976 "C"
31977 #endif
31978 void bzero (void *, unsigned long);
31979 fd_set fds;
31980 FD_ZERO (&fds);
31981
31982 ;
31983 return 0;
31984 }
31985
31986 _ACEOF
31987 if ac_fn_c_try_link "$LINENO"
31988 then :
31989
31990 else $as_nop
31991 gl_cv_header_sys_select_h_selfcontained=no
31992 fi
31993 rm -f core conftest.err conftest.$ac_objext conftest.beam \
31994 conftest$ac_exeext conftest.$ac_ext
31995
31996 fi
31997 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
31998 fi
31999
32000 fi
32001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
32002 printf "%s\n" "$gl_cv_header_sys_select_h_selfcontained" >&6; }
32003
32004
32005
32006
32007
32008
32009
32010
32011
32012 if test $gl_cv_have_include_next = yes; then
32013 gl_cv_next_sys_select_h='<'sys/select.h'>'
32014 else
32015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
32016 printf %s "checking absolute name of <sys/select.h>... " >&6; }
32017 if test ${gl_cv_next_sys_select_h+y}
32018 then :
32019 printf %s "(cached) " >&6
32020 else $as_nop
32021
32022 if test $ac_cv_header_sys_select_h = yes; then
32023
32024
32025
32026
32027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32028 /* end confdefs.h. */
32029 #include <sys/select.h>
32030 _ACEOF
32031 case "$host_os" in
32032 aix*) gl_absname_cpp="$ac_cpp -C" ;;
32033 *) gl_absname_cpp="$ac_cpp" ;;
32034 esac
32035
32036 case "$host_os" in
32037 mingw*)
32038 gl_dirsep_regex='[/\\]'
32039 ;;
32040 *)
32041 gl_dirsep_regex='\/'
32042 ;;
32043 esac
32044 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
32045 gl_header_literal_regex=`echo 'sys/select.h' \
32046 | sed -e "$gl_make_literal_regex_sed"`
32047 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
32048 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
32049 s|^/[^/]|//&|
32050 p
32051 q
32052 }'
32053
32054 gl_cv_absolute_sys_select_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
32055 sed -n "$gl_absolute_header_sed"`
32056
32057 gl_header=$gl_cv_absolute_sys_select_h
32058 gl_cv_next_sys_select_h='"'$gl_header'"'
32059 else
32060 gl_cv_next_sys_select_h='<'sys/select.h'>'
32061 fi
32062
32063
32064 fi
32065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
32066 printf "%s\n" "$gl_cv_next_sys_select_h" >&6; }
32067 fi
32068 NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
32069
32070 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
32071 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
32072 gl_next_as_first_directive='<'sys/select.h'>'
32073 else
32074 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
32075 gl_next_as_first_directive=$gl_cv_next_sys_select_h
32076 fi
32077 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
32078
32079
32080
32081
32082 if test $ac_cv_header_sys_select_h = yes; then
32083 HAVE_SYS_SELECT_H=1
32084 else
32085 HAVE_SYS_SELECT_H=0
32086 fi
32087
32088
32089
32090
32091
32092 if test $ac_cv_header_sys_socket_h != yes; then
32093 ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
32094 if test "x$ac_cv_header_winsock2_h" = xyes
32095 then :
32096 printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h
32097
32098 fi
32099
32100 fi
32101 if test "$ac_cv_header_winsock2_h" = yes; then
32102 HAVE_WINSOCK2_H=1
32103 UNISTD_H_HAVE_WINSOCK2_H=1
32104 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
32105 else
32106 HAVE_WINSOCK2_H=0
32107 fi
32108
32109
32110
32111
32112
32113
32114
32115
32116
32117
32118 GL_GNULIB_PSELECT=0
32119
32120
32121
32122 GL_GNULIB_SELECT=0
32123
32124
32125
32126
32127 HAVE_PTHREAD_T=1;
32128 HAVE_PTHREAD_SPINLOCK_T=1;
32129 HAVE_PTHREAD_CREATE_DETACHED=1;
32130 HAVE_PTHREAD_MUTEX_RECURSIVE=1;
32131 HAVE_PTHREAD_MUTEX_ROBUST=1;
32132 HAVE_PTHREAD_PROCESS_SHARED=1;
32133 HAVE_PTHREAD_CREATE=1;
32134 HAVE_PTHREAD_ATTR_INIT=1;
32135 HAVE_PTHREAD_ATTR_GETDETACHSTATE=1;
32136 HAVE_PTHREAD_ATTR_SETDETACHSTATE=1;
32137 HAVE_PTHREAD_ATTR_DESTROY=1;
32138 HAVE_PTHREAD_SELF=1;
32139 HAVE_PTHREAD_EQUAL=1;
32140 HAVE_PTHREAD_DETACH=1;
32141 HAVE_PTHREAD_JOIN=1;
32142 HAVE_PTHREAD_EXIT=1;
32143 HAVE_PTHREAD_ONCE=1;
32144 HAVE_PTHREAD_MUTEX_INIT=1;
32145 HAVE_PTHREAD_MUTEXATTR_INIT=1;
32146 HAVE_PTHREAD_MUTEXATTR_GETTYPE=1;
32147 HAVE_PTHREAD_MUTEXATTR_SETTYPE=1;
32148 HAVE_PTHREAD_MUTEXATTR_GETROBUST=1;
32149 HAVE_PTHREAD_MUTEXATTR_SETROBUST=1;
32150 HAVE_PTHREAD_MUTEXATTR_DESTROY=1;
32151 HAVE_PTHREAD_MUTEX_LOCK=1;
32152 HAVE_PTHREAD_MUTEX_TRYLOCK=1;
32153 HAVE_PTHREAD_MUTEX_TIMEDLOCK=1;
32154 HAVE_PTHREAD_MUTEX_UNLOCK=1;
32155 HAVE_PTHREAD_MUTEX_DESTROY=1;
32156 HAVE_PTHREAD_RWLOCK_INIT=1;
32157 HAVE_PTHREAD_RWLOCKATTR_INIT=1;
32158 HAVE_PTHREAD_RWLOCKATTR_DESTROY=1;
32159 HAVE_PTHREAD_RWLOCK_RDLOCK=1;
32160 HAVE_PTHREAD_RWLOCK_WRLOCK=1;
32161 HAVE_PTHREAD_RWLOCK_TRYRDLOCK=1;
32162 HAVE_PTHREAD_RWLOCK_TRYWRLOCK=1;
32163 HAVE_PTHREAD_RWLOCK_TIMEDRDLOCK=1;
32164 HAVE_PTHREAD_RWLOCK_TIMEDWRLOCK=1;
32165 HAVE_PTHREAD_RWLOCK_UNLOCK=1;
32166 HAVE_PTHREAD_RWLOCK_DESTROY=1;
32167 HAVE_PTHREAD_COND_INIT=1;
32168 HAVE_PTHREAD_CONDATTR_INIT=1;
32169 HAVE_PTHREAD_CONDATTR_DESTROY=1;
32170 HAVE_PTHREAD_COND_WAIT=1;
32171 HAVE_PTHREAD_COND_TIMEDWAIT=1;
32172 HAVE_PTHREAD_COND_SIGNAL=1;
32173 HAVE_PTHREAD_COND_BROADCAST=1;
32174 HAVE_PTHREAD_COND_DESTROY=1;
32175 HAVE_PTHREAD_KEY_CREATE=1;
32176 HAVE_PTHREAD_SETSPECIFIC=1;
32177 HAVE_PTHREAD_GETSPECIFIC=1;
32178 HAVE_PTHREAD_KEY_DELETE=1;
32179 HAVE_PTHREAD_SPIN_INIT=1;
32180 HAVE_PTHREAD_SPIN_LOCK=1;
32181 HAVE_PTHREAD_SPIN_TRYLOCK=1;
32182 HAVE_PTHREAD_SPIN_UNLOCK=1;
32183 HAVE_PTHREAD_SPIN_DESTROY=1;
32184 REPLACE_PTHREAD_CREATE=0;
32185 REPLACE_PTHREAD_ATTR_INIT=0;
32186 REPLACE_PTHREAD_ATTR_GETDETACHSTATE=0;
32187 REPLACE_PTHREAD_ATTR_SETDETACHSTATE=0;
32188 REPLACE_PTHREAD_ATTR_DESTROY=0;
32189 REPLACE_PTHREAD_SELF=0;
32190 REPLACE_PTHREAD_EQUAL=0;
32191 REPLACE_PTHREAD_DETACH=0;
32192 REPLACE_PTHREAD_JOIN=0;
32193 REPLACE_PTHREAD_EXIT=0;
32194 REPLACE_PTHREAD_ONCE=0;
32195 REPLACE_PTHREAD_MUTEX_INIT=0;
32196 REPLACE_PTHREAD_MUTEXATTR_INIT=0;
32197 REPLACE_PTHREAD_MUTEXATTR_GETTYPE=0;
32198 REPLACE_PTHREAD_MUTEXATTR_SETTYPE=0;
32199 REPLACE_PTHREAD_MUTEXATTR_GETROBUST=0;
32200 REPLACE_PTHREAD_MUTEXATTR_SETROBUST=0;
32201 REPLACE_PTHREAD_MUTEXATTR_DESTROY=0;
32202 REPLACE_PTHREAD_MUTEX_LOCK=0;
32203 REPLACE_PTHREAD_MUTEX_TRYLOCK=0;
32204 REPLACE_PTHREAD_MUTEX_TIMEDLOCK=0;
32205 REPLACE_PTHREAD_MUTEX_UNLOCK=0;
32206 REPLACE_PTHREAD_MUTEX_DESTROY=0;
32207 REPLACE_PTHREAD_RWLOCK_INIT=0;
32208 REPLACE_PTHREAD_RWLOCKATTR_INIT=0;
32209 REPLACE_PTHREAD_RWLOCKATTR_DESTROY=0;
32210 REPLACE_PTHREAD_RWLOCK_RDLOCK=0;
32211 REPLACE_PTHREAD_RWLOCK_WRLOCK=0;
32212 REPLACE_PTHREAD_RWLOCK_TRYRDLOCK=0;
32213 REPLACE_PTHREAD_RWLOCK_TRYWRLOCK=0;
32214 REPLACE_PTHREAD_RWLOCK_TIMEDRDLOCK=0;
32215 REPLACE_PTHREAD_RWLOCK_TIMEDWRLOCK=0;
32216 REPLACE_PTHREAD_RWLOCK_UNLOCK=0;
32217 REPLACE_PTHREAD_RWLOCK_DESTROY=0;
32218 REPLACE_PTHREAD_COND_INIT=0;
32219 REPLACE_PTHREAD_CONDATTR_INIT=0;
32220 REPLACE_PTHREAD_CONDATTR_DESTROY=0;
32221 REPLACE_PTHREAD_COND_WAIT=0;
32222 REPLACE_PTHREAD_COND_TIMEDWAIT=0;
32223 REPLACE_PTHREAD_COND_SIGNAL=0;
32224 REPLACE_PTHREAD_COND_BROADCAST=0;
32225 REPLACE_PTHREAD_COND_DESTROY=0;
32226 REPLACE_PTHREAD_KEY_CREATE=0;
32227 REPLACE_PTHREAD_SETSPECIFIC=0;
32228 REPLACE_PTHREAD_GETSPECIFIC=0;
32229 REPLACE_PTHREAD_KEY_DELETE=0;
32230 REPLACE_PTHREAD_SPIN_INIT=0;
32231 REPLACE_PTHREAD_SPIN_LOCK=0;
32232 REPLACE_PTHREAD_SPIN_TRYLOCK=0;
32233 REPLACE_PTHREAD_SPIN_UNLOCK=0;
32234 REPLACE_PTHREAD_SPIN_DESTROY=0;
32235
32236
32237
32238
32239
32240
32241
32242
32243
32244
32245
32246
32247
32248
32249
32250
32251
32252 if test $gl_cv_have_include_next = yes; then
32253 gl_cv_next_pthread_h='<'pthread.h'>'
32254 else
32255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <pthread.h>" >&5
32256 printf %s "checking absolute name of <pthread.h>... " >&6; }
32257 if test ${gl_cv_next_pthread_h+y}
32258 then :
32259 printf %s "(cached) " >&6
32260 else $as_nop
32261
32262 if test $ac_cv_header_pthread_h = yes; then
32263
32264
32265
32266
32267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32268 /* end confdefs.h. */
32269 #include <pthread.h>
32270 _ACEOF
32271 case "$host_os" in
32272 aix*) gl_absname_cpp="$ac_cpp -C" ;;
32273 *) gl_absname_cpp="$ac_cpp" ;;
32274 esac
32275
32276 case "$host_os" in
32277 mingw*)
32278 gl_dirsep_regex='[/\\]'
32279 ;;
32280 *)
32281 gl_dirsep_regex='\/'
32282 ;;
32283 esac
32284 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
32285 gl_header_literal_regex=`echo 'pthread.h' \
32286 | sed -e "$gl_make_literal_regex_sed"`
32287 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
32288 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
32289 s|^/[^/]|//&|
32290 p
32291 q
32292 }'
32293
32294 gl_cv_absolute_pthread_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
32295 sed -n "$gl_absolute_header_sed"`
32296
32297 gl_header=$gl_cv_absolute_pthread_h
32298 gl_cv_next_pthread_h='"'$gl_header'"'
32299 else
32300 gl_cv_next_pthread_h='<'pthread.h'>'
32301 fi
32302
32303
32304 fi
32305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_pthread_h" >&5
32306 printf "%s\n" "$gl_cv_next_pthread_h" >&6; }
32307 fi
32308 NEXT_PTHREAD_H=$gl_cv_next_pthread_h
32309
32310 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
32311 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
32312 gl_next_as_first_directive='<'pthread.h'>'
32313 else
32314 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
32315 gl_next_as_first_directive=$gl_cv_next_pthread_h
32316 fi
32317 NEXT_AS_FIRST_DIRECTIVE_PTHREAD_H=$gl_next_as_first_directive
32318
32319
32320
32321
32322 if test $ac_cv_header_pthread_h = yes; then
32323 HAVE_PTHREAD_H=1
32324
32325
32326 if { case "$host_os" in mingw*) true;; *) false;; esac; } \
32327 && test $gl_threads_api = windows; then
32328 HAVE_PTHREAD_H=0
32329 fi
32330
32331 else
32332 HAVE_PTHREAD_H=0
32333 fi
32334
32335
32336 ac_fn_c_check_type "$LINENO" "pthread_t" "ac_cv_type_pthread_t" "$ac_includes_default
32337 #if HAVE_PTHREAD_H
32338 #include <pthread.h>
32339 #endif
32340 "
32341 if test "x$ac_cv_type_pthread_t" = xyes
32342 then :
32343
32344 printf "%s\n" "#define HAVE_PTHREAD_T 1" >>confdefs.h
32345
32346
32347 fi
32348 ac_fn_c_check_type "$LINENO" "pthread_spinlock_t" "ac_cv_type_pthread_spinlock_t" "$ac_includes_default
32349 #if HAVE_PTHREAD_H
32350 #include <pthread.h>
32351 #endif
32352 "
32353 if test "x$ac_cv_type_pthread_spinlock_t" = xyes
32354 then :
32355
32356 printf "%s\n" "#define HAVE_PTHREAD_SPINLOCK_T 1" >>confdefs.h
32357
32358
32359 fi
32360
32361 if test $ac_cv_type_pthread_t != yes; then
32362 HAVE_PTHREAD_T=0
32363 fi
32364 if test $ac_cv_type_pthread_spinlock_t != yes; then
32365 HAVE_PTHREAD_SPINLOCK_T=0
32366 fi
32367
32368
32369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_CREATE_DETACHED" >&5
32370 printf %s "checking for PTHREAD_CREATE_DETACHED... " >&6; }
32371 if test ${gl_cv_const_PTHREAD_CREATE_DETACHED+y}
32372 then :
32373 printf %s "(cached) " >&6
32374 else $as_nop
32375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32376 /* end confdefs.h. */
32377 #include <pthread.h>
32378 int x = PTHREAD_CREATE_DETACHED;
32379
32380 int
32381 main (void)
32382 {
32383
32384 ;
32385 return 0;
32386 }
32387 _ACEOF
32388 if ac_fn_c_try_compile "$LINENO"
32389 then :
32390 gl_cv_const_PTHREAD_CREATE_DETACHED=yes
32391 else $as_nop
32392 gl_cv_const_PTHREAD_CREATE_DETACHED=no
32393 fi
32394 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
32395
32396 fi
32397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_const_PTHREAD_CREATE_DETACHED" >&5
32398 printf "%s\n" "$gl_cv_const_PTHREAD_CREATE_DETACHED" >&6; }
32399 if test $gl_cv_const_PTHREAD_CREATE_DETACHED != yes; then
32400 HAVE_PTHREAD_CREATE_DETACHED=0
32401 fi
32402
32403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_MUTEX_RECURSIVE" >&5
32404 printf %s "checking for PTHREAD_MUTEX_RECURSIVE... " >&6; }
32405 if test ${gl_cv_const_PTHREAD_MUTEX_RECURSIVE+y}
32406 then :
32407 printf %s "(cached) " >&6
32408 else $as_nop
32409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32410 /* end confdefs.h. */
32411 #include <pthread.h>
32412 int x = PTHREAD_MUTEX_RECURSIVE;
32413
32414 int
32415 main (void)
32416 {
32417
32418 ;
32419 return 0;
32420 }
32421 _ACEOF
32422 if ac_fn_c_try_compile "$LINENO"
32423 then :
32424 gl_cv_const_PTHREAD_MUTEX_RECURSIVE=yes
32425 else $as_nop
32426 gl_cv_const_PTHREAD_MUTEX_RECURSIVE=no
32427 fi
32428 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
32429
32430 fi
32431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_const_PTHREAD_MUTEX_RECURSIVE" >&5
32432 printf "%s\n" "$gl_cv_const_PTHREAD_MUTEX_RECURSIVE" >&6; }
32433 if test $gl_cv_const_PTHREAD_MUTEX_RECURSIVE != yes; then
32434 HAVE_PTHREAD_MUTEX_RECURSIVE=0
32435 fi
32436
32437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_MUTEX_ROBUST" >&5
32438 printf %s "checking for PTHREAD_MUTEX_ROBUST... " >&6; }
32439 if test ${gl_cv_const_PTHREAD_MUTEX_ROBUST+y}
32440 then :
32441 printf %s "(cached) " >&6
32442 else $as_nop
32443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32444 /* end confdefs.h. */
32445 #include <pthread.h>
32446 int x = PTHREAD_MUTEX_ROBUST;
32447
32448 int
32449 main (void)
32450 {
32451
32452 ;
32453 return 0;
32454 }
32455 _ACEOF
32456 if ac_fn_c_try_compile "$LINENO"
32457 then :
32458 gl_cv_const_PTHREAD_MUTEX_ROBUST=yes
32459 else $as_nop
32460 gl_cv_const_PTHREAD_MUTEX_ROBUST=no
32461 fi
32462 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
32463
32464 fi
32465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_const_PTHREAD_MUTEX_ROBUST" >&5
32466 printf "%s\n" "$gl_cv_const_PTHREAD_MUTEX_ROBUST" >&6; }
32467 if test $gl_cv_const_PTHREAD_MUTEX_ROBUST != yes; then
32468 HAVE_PTHREAD_MUTEX_ROBUST=0
32469 fi
32470
32471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PROCESS_SHARED" >&5
32472 printf %s "checking for PTHREAD_PROCESS_SHARED... " >&6; }
32473 if test ${gl_cv_const_PTHREAD_PROCESS_SHARED+y}
32474 then :
32475 printf %s "(cached) " >&6
32476 else $as_nop
32477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32478 /* end confdefs.h. */
32479 #include <pthread.h>
32480 int x = PTHREAD_PROCESS_SHARED;
32481
32482 int
32483 main (void)
32484 {
32485
32486 ;
32487 return 0;
32488 }
32489 _ACEOF
32490 if ac_fn_c_try_compile "$LINENO"
32491 then :
32492 gl_cv_const_PTHREAD_PROCESS_SHARED=yes
32493 else $as_nop
32494 gl_cv_const_PTHREAD_PROCESS_SHARED=no
32495 fi
32496 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
32497
32498 fi
32499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_const_PTHREAD_PROCESS_SHARED" >&5
32500 printf "%s\n" "$gl_cv_const_PTHREAD_PROCESS_SHARED" >&6; }
32501 if test $gl_cv_const_PTHREAD_PROCESS_SHARED != yes; then
32502 HAVE_PTHREAD_PROCESS_SHARED=0
32503 fi
32504
32505
32506
32507
32508
32509
32510
32511 LIB_PTHREAD="$LIBPMULTITHREAD"
32512
32513
32514
32515
32516 GL_GNULIB_PTHREAD_THREAD=0
32517
32518
32519
32520 GL_GNULIB_PTHREAD_ONCE=0
32521
32522
32523
32524 GL_GNULIB_PTHREAD_MUTEX=0
32525
32526
32527
32528 GL_GNULIB_PTHREAD_RWLOCK=0
32529
32530
32531
32532 GL_GNULIB_PTHREAD_COND=0
32533
32534
32535
32536 GL_GNULIB_PTHREAD_TSS=0
32537
32538
32539
32540 GL_GNULIB_PTHREAD_SPIN=0
32541
32542
32543
32544 GL_GNULIB_PTHREAD_MUTEX_TIMEDLOCK=0
32545
32546
32547
32548
32549 HAVE_POSIX_SIGNALBLOCKING=1;
32550 HAVE_PTHREAD_SIGMASK=1;
32551 HAVE_RAISE=1;
32552 HAVE_SIGSET_T=1;
32553 HAVE_SIGINFO_T=1;
32554 HAVE_SIGACTION=1;
32555 HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
32556
32557 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
32558
32559 HAVE_SIGHANDLER_T=1;
32560 REPLACE_PTHREAD_SIGMASK=0;
32561 REPLACE_RAISE=0;
32562
32563
32564
32565
32566 GL_GNULIB_PTHREAD_SIGMASK=0
32567
32568
32569
32570 GL_GNULIB_RAISE=0
32571
32572
32573
32574 GL_GNULIB_SIGNAL_H_SIGPIPE=0
32575
32576
32577
32578 GL_GNULIB_SIGPROCMASK=0
32579
32580
32581
32582 GL_GNULIB_SIGACTION=0
32583
32584
32585
32586
32587 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
32588 #include <signal.h>
32589 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
32590 #include <sys/types.h>
32591
32592 "
32593 if test "x$ac_cv_type_sigset_t" = xyes
32594 then :
32595
32596 printf "%s\n" "#define HAVE_SIGSET_T 1" >>confdefs.h
32597
32598 gl_cv_type_sigset_t=yes
32599 else $as_nop
32600 gl_cv_type_sigset_t=no
32601 fi
32602
32603 if test $gl_cv_type_sigset_t != yes; then
32604 HAVE_SIGSET_T=0
32605 fi
32606
32607
32608 HAVE_SCHED_YIELD=1;
32609 REPLACE_SCHED_YIELD=0;
32610
32611
32612
32613
32614
32615
32616
32617 ac_fn_c_check_header_compile "$LINENO" "sched.h" "ac_cv_header_sched_h" "#if HAVE_SYS_CDEFS_H
32618 #include <sys/cdefs.h>
32619 #endif
32620
32621 "
32622 if test "x$ac_cv_header_sched_h" = xyes
32623 then :
32624 printf "%s\n" "#define HAVE_SCHED_H 1" >>confdefs.h
32625
32626 fi
32627
32628
32629
32630
32631
32632
32633
32634
32635
32636 if test $gl_cv_have_include_next = yes; then
32637 gl_cv_next_sched_h='<'sched.h'>'
32638 else
32639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <sched.h>" >&5
32640 printf %s "checking absolute name of <sched.h>... " >&6; }
32641 if test ${gl_cv_next_sched_h+y}
32642 then :
32643 printf %s "(cached) " >&6
32644 else $as_nop
32645
32646
32647
32648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32649 /* end confdefs.h. */
32650 #include <sched.h>
32651 _ACEOF
32652 case "$host_os" in
32653 aix*) gl_absname_cpp="$ac_cpp -C" ;;
32654 *) gl_absname_cpp="$ac_cpp" ;;
32655 esac
32656
32657 case "$host_os" in
32658 mingw*)
32659 gl_dirsep_regex='[/\\]'
32660 ;;
32661 *)
32662 gl_dirsep_regex='\/'
32663 ;;
32664 esac
32665 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
32666 gl_header_literal_regex=`echo 'sched.h' \
32667 | sed -e "$gl_make_literal_regex_sed"`
32668 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
32669 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
32670 s|^/[^/]|//&|
32671 p
32672 q
32673 }'
32674
32675 gl_cv_absolute_sched_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
32676 sed -n "$gl_absolute_header_sed"`
32677
32678 gl_header=$gl_cv_absolute_sched_h
32679 gl_cv_next_sched_h='"'$gl_header'"'
32680
32681
32682 fi
32683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sched_h" >&5
32684 printf "%s\n" "$gl_cv_next_sched_h" >&6; }
32685 fi
32686 NEXT_SCHED_H=$gl_cv_next_sched_h
32687
32688 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
32689 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
32690 gl_next_as_first_directive='<'sched.h'>'
32691 else
32692 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
32693 gl_next_as_first_directive=$gl_cv_next_sched_h
32694 fi
32695 NEXT_AS_FIRST_DIRECTIVE_SCHED_H=$gl_next_as_first_directive
32696
32697
32698
32699
32700
32701 if test "$ac_cv_header_sched_h" = yes; then
32702 HAVE_SCHED_H=1
32703 else
32704 HAVE_SCHED_H=0
32705 fi
32706
32707
32708 if test "$HAVE_SCHED_H" = 1; then
32709 ac_fn_c_check_type "$LINENO" "struct sched_param" "ac_cv_type_struct_sched_param" "#if HAVE_SYS_CDEFS_H
32710 #include <sys/cdefs.h>
32711 #endif
32712 #include <sched.h>
32713
32714 "
32715 if test "x$ac_cv_type_struct_sched_param" = xyes
32716 then :
32717 HAVE_STRUCT_SCHED_PARAM=1
32718 else $as_nop
32719 HAVE_STRUCT_SCHED_PARAM=0
32720 fi
32721
32722 else
32723 HAVE_STRUCT_SCHED_PARAM=0
32724 case "$host_os" in
32725 os2*)
32726 ac_fn_c_check_type "$LINENO" "struct sched_param" "ac_cv_type_struct_sched_param" "#include <spawn.h>
32727 "
32728 if test "x$ac_cv_type_struct_sched_param" = xyes
32729 then :
32730 HAVE_STRUCT_SCHED_PARAM=1
32731 fi
32732
32733 ;;
32734 vms)
32735 ac_fn_c_check_type "$LINENO" "struct sched_param" "ac_cv_type_struct_sched_param" "#include <pthread.h>
32736 "
32737 if test "x$ac_cv_type_struct_sched_param" = xyes
32738 then :
32739 HAVE_STRUCT_SCHED_PARAM=1
32740 fi
32741
32742 ;;
32743 esac
32744 fi
32745
32746
32747 if test "$ac_cv_header_sys_cdefs_h" = yes; then
32748 HAVE_SYS_CDEFS_H=1
32749 else
32750 HAVE_SYS_CDEFS_H=0
32751 fi
32752
32753
32754
32755
32756
32757
32758
32759
32760
32761
32762 GL_GNULIB_SCHED_YIELD=0
32763
32764
32765
32766
32767
32768
32769
32770
32771 if test $ac_cv_header_sys_socket_h != yes; then
32772 ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
32773 if test "x$ac_cv_header_winsock2_h" = xyes
32774 then :
32775 printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h
32776
32777 fi
32778
32779 fi
32780 if test "$ac_cv_header_winsock2_h" = yes; then
32781 HAVE_WINSOCK2_H=1
32782 UNISTD_H_HAVE_WINSOCK2_H=1
32783 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
32784 else
32785 HAVE_WINSOCK2_H=0
32786 fi
32787
32788 LIBSOCKET=
32789 if test $HAVE_WINSOCK2_H = 1; then
32790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for WSAStartup" >&5
32791 printf %s "checking for WSAStartup... " >&6; }
32792 if test ${gl_cv_func_wsastartup+y}
32793 then :
32794 printf %s "(cached) " >&6
32795 else $as_nop
32796
32797 gl_save_LIBS="$LIBS"
32798 LIBS="$LIBS -lws2_32"
32799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32800 /* end confdefs.h. */
32801
32802 #ifdef HAVE_WINSOCK2_H
32803 # include <winsock2.h>
32804 #endif
32805 int
32806 main (void)
32807 {
32808
32809 WORD wVersionRequested = MAKEWORD(1, 1);
32810 WSADATA wsaData;
32811 int err = WSAStartup(wVersionRequested, &wsaData);
32812 WSACleanup ();
32813
32814 ;
32815 return 0;
32816 }
32817
32818 _ACEOF
32819 if ac_fn_c_try_link "$LINENO"
32820 then :
32821 gl_cv_func_wsastartup=yes
32822 else $as_nop
32823 gl_cv_func_wsastartup=no
32824 fi
32825 rm -f core conftest.err conftest.$ac_objext conftest.beam \
32826 conftest$ac_exeext conftest.$ac_ext
32827 LIBS="$gl_save_LIBS"
32828
32829 fi
32830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wsastartup" >&5
32831 printf "%s\n" "$gl_cv_func_wsastartup" >&6; }
32832 if test "$gl_cv_func_wsastartup" = "yes"; then
32833
32834 printf "%s\n" "#define WINDOWS_SOCKETS 1" >>confdefs.h
32835
32836 LIBSOCKET='-lws2_32'
32837 fi
32838 else
32839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
32840 printf %s "checking for library containing setsockopt... " >&6; }
32841 if test ${gl_cv_lib_socket+y}
32842 then :
32843 printf %s "(cached) " >&6
32844 else $as_nop
32845
32846 gl_cv_lib_socket=
32847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32848 /* end confdefs.h. */
32849 extern
32850 #ifdef __cplusplus
32851 "C"
32852 #endif
32853 char setsockopt();
32854 int
32855 main (void)
32856 {
32857 setsockopt();
32858 ;
32859 return 0;
32860 }
32861 _ACEOF
32862 if ac_fn_c_try_link "$LINENO"
32863 then :
32864
32865 else $as_nop
32866 gl_save_LIBS="$LIBS"
32867 LIBS="$gl_save_LIBS -lsocket"
32868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32869 /* end confdefs.h. */
32870 extern
32871 #ifdef __cplusplus
32872 "C"
32873 #endif
32874 char setsockopt();
32875 int
32876 main (void)
32877 {
32878 setsockopt();
32879 ;
32880 return 0;
32881 }
32882 _ACEOF
32883 if ac_fn_c_try_link "$LINENO"
32884 then :
32885 gl_cv_lib_socket="-lsocket"
32886 fi
32887 rm -f core conftest.err conftest.$ac_objext conftest.beam \
32888 conftest$ac_exeext conftest.$ac_ext
32889 if test -z "$gl_cv_lib_socket"; then
32890 LIBS="$gl_save_LIBS -lnetwork"
32891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32892 /* end confdefs.h. */
32893 extern
32894 #ifdef __cplusplus
32895 "C"
32896 #endif
32897 char setsockopt();
32898 int
32899 main (void)
32900 {
32901 setsockopt();
32902 ;
32903 return 0;
32904 }
32905 _ACEOF
32906 if ac_fn_c_try_link "$LINENO"
32907 then :
32908 gl_cv_lib_socket="-lnetwork"
32909 fi
32910 rm -f core conftest.err conftest.$ac_objext conftest.beam \
32911 conftest$ac_exeext conftest.$ac_ext
32912 if test -z "$gl_cv_lib_socket"; then
32913 LIBS="$gl_save_LIBS -lnet"
32914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32915 /* end confdefs.h. */
32916 extern
32917 #ifdef __cplusplus
32918 "C"
32919 #endif
32920 char setsockopt();
32921 int
32922 main (void)
32923 {
32924 setsockopt();
32925 ;
32926 return 0;
32927 }
32928 _ACEOF
32929 if ac_fn_c_try_link "$LINENO"
32930 then :
32931 gl_cv_lib_socket="-lnet"
32932 fi
32933 rm -f core conftest.err conftest.$ac_objext conftest.beam \
32934 conftest$ac_exeext conftest.$ac_ext
32935 fi
32936 fi
32937 LIBS="$gl_save_LIBS"
32938
32939 fi
32940 rm -f core conftest.err conftest.$ac_objext conftest.beam \
32941 conftest$ac_exeext conftest.$ac_ext
32942 if test -z "$gl_cv_lib_socket"; then
32943 gl_cv_lib_socket="none needed"
32944 fi
32945
32946 fi
32947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_lib_socket" >&5
32948 printf "%s\n" "$gl_cv_lib_socket" >&6; }
32949 if test "$gl_cv_lib_socket" != "none needed"; then
32950 LIBSOCKET="$gl_cv_lib_socket"
32951 fi
32952 fi
32953
32954
32955
32956
32957
32958
32959 :
32960
32961
32962 ac_fn_check_decl "$LINENO" "setenv" "ac_cv_have_decl_setenv" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
32963 if test "x$ac_cv_have_decl_setenv" = xyes
32964 then :
32965 ac_have_decl=1
32966 else $as_nop
32967 ac_have_decl=0
32968 fi
32969 printf "%s\n" "#define HAVE_DECL_SETENV $ac_have_decl" >>confdefs.h
32970
32971
32972
32973
32974
32975 if test $ac_cv_have_decl_setenv = no; then
32976 HAVE_DECL_SETENV=0
32977 fi
32978
32979
32980
32981
32982
32983 ac_fn_c_check_header_compile "$LINENO" "search.h" "ac_cv_header_search_h" "$ac_includes_default"
32984 if test "x$ac_cv_header_search_h" = xyes
32985 then :
32986 printf "%s\n" "#define HAVE_SEARCH_H 1" >>confdefs.h
32987
32988 fi
32989
32990 ac_fn_c_check_func "$LINENO" "tsearch" "ac_cv_func_tsearch"
32991 if test "x$ac_cv_func_tsearch" = xyes
32992 then :
32993 printf "%s\n" "#define HAVE_TSEARCH 1" >>confdefs.h
32994
32995 fi
32996
32997
32998
32999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
33000 printf %s "checking for uid_t in sys/types.h... " >&6; }
33001 if test ${ac_cv_type_uid_t+y}
33002 then :
33003 printf %s "(cached) " >&6
33004 else $as_nop
33005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33006 /* end confdefs.h. */
33007 #include <sys/types.h>
33008
33009 _ACEOF
33010 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33011 $EGREP "uid_t" >/dev/null 2>&1
33012 then :
33013 ac_cv_type_uid_t=yes
33014 else $as_nop
33015 ac_cv_type_uid_t=no
33016 fi
33017 rm -rf conftest*
33018
33019 fi
33020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
33021 printf "%s\n" "$ac_cv_type_uid_t" >&6; }
33022 if test $ac_cv_type_uid_t = no; then
33023
33024 printf "%s\n" "#define uid_t int" >>confdefs.h
33025
33026
33027 printf "%s\n" "#define gid_t int" >>confdefs.h
33028
33029 fi
33030
33031
33032
33033
33034
33035
33036
33037
33038
33039
33040
33041
33042 if test $gl_cv_have_include_next = yes; then
33043 gl_cv_next_signal_h='<'signal.h'>'
33044 else
33045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
33046 printf %s "checking absolute name of <signal.h>... " >&6; }
33047 if test ${gl_cv_next_signal_h+y}
33048 then :
33049 printf %s "(cached) " >&6
33050 else $as_nop
33051
33052
33053
33054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33055 /* end confdefs.h. */
33056 #include <signal.h>
33057 _ACEOF
33058 case "$host_os" in
33059 aix*) gl_absname_cpp="$ac_cpp -C" ;;
33060 *) gl_absname_cpp="$ac_cpp" ;;
33061 esac
33062
33063 case "$host_os" in
33064 mingw*)
33065 gl_dirsep_regex='[/\\]'
33066 ;;
33067 *)
33068 gl_dirsep_regex='\/'
33069 ;;
33070 esac
33071 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
33072 gl_header_literal_regex=`echo 'signal.h' \
33073 | sed -e "$gl_make_literal_regex_sed"`
33074 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
33075 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
33076 s|^/[^/]|//&|
33077 p
33078 q
33079 }'
33080
33081 gl_cv_absolute_signal_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
33082 sed -n "$gl_absolute_header_sed"`
33083
33084 gl_header=$gl_cv_absolute_signal_h
33085 gl_cv_next_signal_h='"'$gl_header'"'
33086
33087
33088 fi
33089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
33090 printf "%s\n" "$gl_cv_next_signal_h" >&6; }
33091 fi
33092 NEXT_SIGNAL_H=$gl_cv_next_signal_h
33093
33094 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
33095 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
33096 gl_next_as_first_directive='<'signal.h'>'
33097 else
33098 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
33099 gl_next_as_first_directive=$gl_cv_next_signal_h
33100 fi
33101 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
33102
33103
33104
33105
33106
33107 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
33108 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
33109 ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
33110 #include <signal.h>
33111
33112 "
33113 if test "x$ac_cv_type_volatile_sig_atomic_t" = xyes
33114 then :
33115
33116 else $as_nop
33117 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
33118 fi
33119
33120
33121
33122
33123
33124
33125
33126 ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
33127 #include <signal.h>
33128
33129 "
33130 if test "x$ac_cv_type_sighandler_t" = xyes
33131 then :
33132
33133 else $as_nop
33134 HAVE_SIGHANDLER_T=0
33135 fi
33136
33137
33138
33139
33140
33141
33142
33143
33144
33145
33146 if test $ac_cv_have_decl_strerror_r = yes; then
33147 # For backward compatibility's sake, define HAVE_STRERROR_R.
33148 # (We used to run AC_CHECK_FUNCS_ONCE for strerror_r, as well
33149 # as AC_CHECK_DECLS_ONCE.)
33150
33151 printf "%s\n" "#define HAVE_STRERROR_R 1" >>confdefs.h
33152
33153 fi
33154
33155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
33156 printf %s "checking whether strerror_r returns char *... " >&6; }
33157 if test ${ac_cv_func_strerror_r_char_p+y}
33158 then :
33159 printf %s "(cached) " >&6
33160 else $as_nop
33161
33162 ac_cv_func_strerror_r_char_p=no
33163 if test $ac_cv_have_decl_strerror_r = yes; then
33164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33165 /* end confdefs.h. */
33166 #include <string.h>
33167 int
33168 main (void)
33169 {
33170
33171 char buf[100];
33172 char x = *strerror_r (0, buf, sizeof buf);
33173 char *p = strerror_r (0, buf, sizeof buf);
33174 return !p || x;
33175
33176 ;
33177 return 0;
33178 }
33179 _ACEOF
33180 if ac_fn_c_try_compile "$LINENO"
33181 then :
33182 ac_cv_func_strerror_r_char_p=yes
33183 fi
33184 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
33185
33186 fi
33187
33188 fi
33189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
33190 printf "%s\n" "$ac_cv_func_strerror_r_char_p" >&6; }
33191 if test $ac_cv_func_strerror_r_char_p = yes; then
33192
33193 printf "%s\n" "#define STRERROR_R_CHAR_P 1" >>confdefs.h
33194
33195 fi
33196
33197
33198
33199
33200
33201
33202
33203 if test $ac_cv_header_sys_ioctl_h = yes; then
33204 HAVE_SYS_IOCTL_H=1
33205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether <sys/ioctl.h> declares ioctl" >&5
33206 printf %s "checking whether <sys/ioctl.h> declares ioctl... " >&6; }
33207 if test ${gl_cv_decl_ioctl_in_sys_ioctl_h+y}
33208 then :
33209 printf %s "(cached) " >&6
33210 else $as_nop
33211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33212 /* end confdefs.h. */
33213 #include <sys/ioctl.h>
33214 int
33215 main (void)
33216 {
33217 (void) ioctl;
33218 ;
33219 return 0;
33220 }
33221 _ACEOF
33222 if ac_fn_c_try_compile "$LINENO"
33223 then :
33224 gl_cv_decl_ioctl_in_sys_ioctl_h=yes
33225 else $as_nop
33226 gl_cv_decl_ioctl_in_sys_ioctl_h=no
33227 fi
33228 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
33229
33230 fi
33231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_ioctl_in_sys_ioctl_h" >&5
33232 printf "%s\n" "$gl_cv_decl_ioctl_in_sys_ioctl_h" >&6; }
33233 else
33234 HAVE_SYS_IOCTL_H=0
33235 fi
33236
33237
33238
33239
33240
33241
33242
33243
33244
33245
33246 if test $gl_cv_have_include_next = yes; then
33247 gl_cv_next_sys_ioctl_h='<'sys/ioctl.h'>'
33248 else
33249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/ioctl.h>" >&5
33250 printf %s "checking absolute name of <sys/ioctl.h>... " >&6; }
33251 if test ${gl_cv_next_sys_ioctl_h+y}
33252 then :
33253 printf %s "(cached) " >&6
33254 else $as_nop
33255
33256 if test $ac_cv_header_sys_ioctl_h = yes; then
33257
33258
33259
33260
33261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33262 /* end confdefs.h. */
33263 #include <sys/ioctl.h>
33264 _ACEOF
33265 case "$host_os" in
33266 aix*) gl_absname_cpp="$ac_cpp -C" ;;
33267 *) gl_absname_cpp="$ac_cpp" ;;
33268 esac
33269
33270 case "$host_os" in
33271 mingw*)
33272 gl_dirsep_regex='[/\\]'
33273 ;;
33274 *)
33275 gl_dirsep_regex='\/'
33276 ;;
33277 esac
33278 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
33279 gl_header_literal_regex=`echo 'sys/ioctl.h' \
33280 | sed -e "$gl_make_literal_regex_sed"`
33281 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
33282 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
33283 s|^/[^/]|//&|
33284 p
33285 q
33286 }'
33287
33288 gl_cv_absolute_sys_ioctl_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
33289 sed -n "$gl_absolute_header_sed"`
33290
33291 gl_header=$gl_cv_absolute_sys_ioctl_h
33292 gl_cv_next_sys_ioctl_h='"'$gl_header'"'
33293 else
33294 gl_cv_next_sys_ioctl_h='<'sys/ioctl.h'>'
33295 fi
33296
33297
33298 fi
33299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_ioctl_h" >&5
33300 printf "%s\n" "$gl_cv_next_sys_ioctl_h" >&6; }
33301 fi
33302 NEXT_SYS_IOCTL_H=$gl_cv_next_sys_ioctl_h
33303
33304 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
33305 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
33306 gl_next_as_first_directive='<'sys/ioctl.h'>'
33307 else
33308 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
33309 gl_next_as_first_directive=$gl_cv_next_sys_ioctl_h
33310 fi
33311 NEXT_AS_FIRST_DIRECTIVE_SYS_IOCTL_H=$gl_next_as_first_directive
33312
33313
33314
33315
33316
33317
33318
33319
33320
33321
33322
33323
33324
33325
33326
33327
33328
33329
33330
33331
33332
33333
33334
33335
33336 if test $gl_cv_have_include_next = yes; then
33337 gl_cv_next_sys_uio_h='<'sys/uio.h'>'
33338 else
33339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/uio.h>" >&5
33340 printf %s "checking absolute name of <sys/uio.h>... " >&6; }
33341 if test ${gl_cv_next_sys_uio_h+y}
33342 then :
33343 printf %s "(cached) " >&6
33344 else $as_nop
33345
33346 if test $ac_cv_header_sys_uio_h = yes; then
33347
33348
33349
33350
33351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33352 /* end confdefs.h. */
33353 #include <sys/uio.h>
33354 _ACEOF
33355 case "$host_os" in
33356 aix*) gl_absname_cpp="$ac_cpp -C" ;;
33357 *) gl_absname_cpp="$ac_cpp" ;;
33358 esac
33359
33360 case "$host_os" in
33361 mingw*)
33362 gl_dirsep_regex='[/\\]'
33363 ;;
33364 *)
33365 gl_dirsep_regex='\/'
33366 ;;
33367 esac
33368 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
33369 gl_header_literal_regex=`echo 'sys/uio.h' \
33370 | sed -e "$gl_make_literal_regex_sed"`
33371 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
33372 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
33373 s|^/[^/]|//&|
33374 p
33375 q
33376 }'
33377
33378 gl_cv_absolute_sys_uio_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
33379 sed -n "$gl_absolute_header_sed"`
33380
33381 gl_header=$gl_cv_absolute_sys_uio_h
33382 gl_cv_next_sys_uio_h='"'$gl_header'"'
33383 else
33384 gl_cv_next_sys_uio_h='<'sys/uio.h'>'
33385 fi
33386
33387
33388 fi
33389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_uio_h" >&5
33390 printf "%s\n" "$gl_cv_next_sys_uio_h" >&6; }
33391 fi
33392 NEXT_SYS_UIO_H=$gl_cv_next_sys_uio_h
33393
33394 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
33395 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
33396 gl_next_as_first_directive='<'sys/uio.h'>'
33397 else
33398 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
33399 gl_next_as_first_directive=$gl_cv_next_sys_uio_h
33400 fi
33401 NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H=$gl_next_as_first_directive
33402
33403
33404
33405
33406 if test $ac_cv_header_sys_uio_h = yes; then
33407 HAVE_SYS_UIO_H=1
33408 else
33409 HAVE_SYS_UIO_H=0
33410 fi
33411
33412
33413
33414
33415 ac_fn_check_decl "$LINENO" "unsetenv" "ac_cv_have_decl_unsetenv" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
33416 if test "x$ac_cv_have_decl_unsetenv" = xyes
33417 then :
33418 ac_have_decl=1
33419 else $as_nop
33420 ac_have_decl=0
33421 fi
33422 printf "%s\n" "#define HAVE_DECL_UNSETENV $ac_have_decl" >>confdefs.h
33423
33424
33425
33426
33427
33428
33429
33430 if test $gl_threads_api = posix; then
33431 YIELD_LIB="$LIB_SCHED_YIELD"
33432 else
33433 YIELD_LIB=
33434 fi
33435
33436
33437
33438
33439 GL_CFLAG_GNULIB_WARNINGS=''
33440 if test -n "$GL_CFLAG_ALLOW_WARNINGS"; then
33441 cat > conftest.c <<\EOF
33442 #if __GNUC__ >= 3 || (__clang_major__ + (__clang_minor__ >= 9) > 3)
33443 -Wno-cast-qual
33444 -Wno-conversion
33445 -Wno-float-equal
33446 -Wno-sign-compare
33447 -Wno-undef
33448 -Wno-unused-function
33449 -Wno-unused-parameter
33450 #endif
33451 #if __GNUC__ + (__GNUC_MINOR__ >= 9) > 4 || (__clang_major__ + (__clang_minor__ >= 9) > 3)
33452 -Wno-float-conversion
33453 #endif
33454 #if __GNUC__ >= 7 || (__clang_major__ + (__clang_minor__ >= 9) > 3)
33455 -Wimplicit-fallthrough
33456 #endif
33457 #if __GNUC__ + (__GNUC_MINOR__ >= 8) > 4 || (__clang_major__ + (__clang_minor__ >= 9) > 3)
33458 -Wno-pedantic
33459 #endif
33460 #if __GNUC__ + (__GNUC_MINOR__ >= 3) > 4 || (__clang_major__ + (__clang_minor__ >= 9) > 3)
33461 -Wno-sign-conversion
33462 -Wno-type-limits
33463 #endif
33464 #if __GNUC__ + (__GNUC_MINOR__ >= 5) > 4
33465 -Wno-unsuffixed-float-constants
33466 #endif
33467 EOF
33468 gl_command="$CC $CFLAGS $CPPFLAGS -E conftest.c > conftest.out"
33469 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gl_command\""; } >&5
33470 (eval $gl_command) 2>&5
33471 ac_status=$?
33472 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33473 test $ac_status = 0; }; then
33474 gl_options=`grep -v '#' conftest.out`
33475 for word in $gl_options; do
33476 GL_CFLAG_GNULIB_WARNINGS="$GL_CFLAG_GNULIB_WARNINGS $word"
33477 done
33478 fi
33479 rm -f conftest.c conftest.out
33480 fi
33481
33482
33483
33484
33485 if true; then
33486 GL_COND_LIBTOOL_TRUE=
33487 GL_COND_LIBTOOL_FALSE='#'
33488 else
33489 GL_COND_LIBTOOL_TRUE='#'
33490 GL_COND_LIBTOOL_FALSE=
33491 fi
33492
33493 gl_cond_libtool=true
33494 gl_m4_base='gnulib/m4'
33495
33496
33497
33498
33499
33500
33501
33502
33503
33504
33505
33506
33507 gl_source_base='gnulib/lib'
33508 gl_source_base_prefix=
33509
33510
33511 if test $ac_cv_func_alloca_works = no; then
33512 :
33513 fi
33514
33515 # Define an additional variable used in the Makefile substitution.
33516 if test $ac_cv_working_alloca_h = yes; then
33517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
33518 printf %s "checking for alloca as a compiler built-in... " >&6; }
33519 if test ${gl_cv_rpl_alloca+y}
33520 then :
33521 printf %s "(cached) " >&6
33522 else $as_nop
33523
33524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33525 /* end confdefs.h. */
33526
33527 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
33528 Need own alloca
33529 #endif
33530
33531 _ACEOF
33532 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33533 $EGREP "Need own alloca" >/dev/null 2>&1
33534 then :
33535 gl_cv_rpl_alloca=yes
33536 else $as_nop
33537 gl_cv_rpl_alloca=no
33538 fi
33539 rm -rf conftest*
33540
33541
33542 fi
33543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
33544 printf "%s\n" "$gl_cv_rpl_alloca" >&6; }
33545 if test $gl_cv_rpl_alloca = yes; then
33546
33547 printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
33548
33549 GL_GENERATE_ALLOCA_H=true
33550 else
33551 GL_GENERATE_ALLOCA_H=false
33552 fi
33553 else
33554 GL_GENERATE_ALLOCA_H=true
33555 fi
33556
33557 if test $ac_cv_working_alloca_h = yes; then
33558 HAVE_ALLOCA_H=1
33559 else
33560 HAVE_ALLOCA_H=0
33561 fi
33562
33563
33564
33565
33566
33567
33568 case "$GL_GENERATE_ALLOCA_H" in
33569 false) ALLOCA_H='' ;;
33570 true)
33571 if test -z "$ALLOCA_H"; then
33572 ALLOCA_H="${gl_source_base_prefix}alloca.h"
33573 fi
33574 ;;
33575 *) echo "*** GL_GENERATE_ALLOCA_H is not set correctly" 1>&2; exit 1 ;;
33576 esac
33577
33578
33579 if $GL_GENERATE_ALLOCA_H; then
33580 GL_GENERATE_ALLOCA_H_TRUE=
33581 GL_GENERATE_ALLOCA_H_FALSE='#'
33582 else
33583 GL_GENERATE_ALLOCA_H_TRUE='#'
33584 GL_GENERATE_ALLOCA_H_FALSE=
33585 fi
33586 :
33587 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
33588 GL_GENERATE_ALLOCA_H_TRUE='#'
33589 GL_GENERATE_ALLOCA_H_FALSE='#'
33590 fi
33591
33592
33593
33594
33595
33596
33597 :
33598
33599
33600
33601 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
33602 "
33603 if test "x$ac_cv_header_argz_h" = xyes
33604 then :
33605 printf "%s\n" "#define HAVE_ARGZ_H 1" >>confdefs.h
33606
33607 fi
33608
33609
33610 ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
33611 # include <argz.h>
33612 #endif
33613 "
33614 if test "x$ac_cv_type_error_t" = xyes
33615 then :
33616
33617 printf "%s\n" "#define HAVE_ERROR_T 1" >>confdefs.h
33618
33619
33620 else $as_nop
33621
33622 printf "%s\n" "#define error_t int" >>confdefs.h
33623
33624
33625 printf "%s\n" "#define __error_t_defined 1" >>confdefs.h
33626
33627 fi
33628
33629
33630 GL_GENERATE_ARGZ_H=false
33631 ac_fn_c_check_func "$LINENO" "argz_replace" "ac_cv_func_argz_replace"
33632 if test "x$ac_cv_func_argz_replace" = xyes
33633 then :
33634
33635 else $as_nop
33636 GL_GENERATE_ARGZ_H=true
33637 fi
33638
33639
33640 if ! $GL_GENERATE_ARGZ_H
33641 then :
33642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
33643 printf %s "checking if argz actually works... " >&6; }
33644 if test ${lt_cv_sys_argz_works+y}
33645 then :
33646 printf %s "(cached) " >&6
33647 else $as_nop
33648 case $host_os in #(
33649 *cygwin*)
33650 lt_cv_sys_argz_works=no
33651 if test "$cross_compiling" != no; then
33652 lt_cv_sys_argz_works="$gl_cross_guess_normal"
33653 else
33654 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
33655 save_IFS=$IFS
33656 IFS=-.
33657 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
33658 IFS=$save_IFS
33659 lt_os_major=${2-0}
33660 lt_os_minor=${3-0}
33661 lt_os_micro=${4-0}
33662 if test "$lt_os_major" -gt 1 \
33663 || { test "$lt_os_major" -eq 1 \
33664 && { test "$lt_os_minor" -gt 5 \
33665 || { test "$lt_os_minor" -eq 5 \
33666 && test "$lt_os_micro" -gt 24; }; }; }; then
33667 lt_cv_sys_argz_works=yes
33668 fi
33669 fi
33670 ;; #(
33671 *) lt_cv_sys_argz_works=yes ;;
33672 esac
33673 fi
33674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
33675 printf "%s\n" "$lt_cv_sys_argz_works" >&6; }
33676 if test "$lt_cv_sys_argz_works" = yes
33677 then :
33678
33679 printf "%s\n" "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
33680
33681 else $as_nop
33682 GL_GENERATE_ARGZ_H=true
33683 fi
33684 fi
33685
33686
33687
33688
33689
33690 case "$GL_GENERATE_ARGZ_H" in
33691 false) ARGZ_H='' ;;
33692 true)
33693 if test -z "$ARGZ_H"; then
33694 ARGZ_H="${gl_source_base_prefix}argz.h"
33695 fi
33696 ;;
33697 *) echo "*** GL_GENERATE_ARGZ_H is not set correctly" 1>&2; exit 1 ;;
33698 esac
33699
33700
33701 if $GL_GENERATE_ARGZ_H; then
33702 GL_GENERATE_ARGZ_H_TRUE=
33703 GL_GENERATE_ARGZ_H_FALSE='#'
33704 else
33705 GL_GENERATE_ARGZ_H_TRUE='#'
33706 GL_GENERATE_ARGZ_H_FALSE=
33707 fi
33708 :
33709 if test -z "${GL_GENERATE_ARGZ_H_TRUE}" && test -z "${GL_GENERATE_ARGZ_H_FALSE}"; then
33710 GL_GENERATE_ARGZ_H_TRUE='#'
33711 GL_GENERATE_ARGZ_H_FALSE='#'
33712 fi
33713
33714
33715
33716
33717
33718
33719
33720 if test -n "$ARGZ_H"; then
33721 GL_COND_OBJ_ARGZ_TRUE=
33722 GL_COND_OBJ_ARGZ_FALSE='#'
33723 else
33724 GL_COND_OBJ_ARGZ_TRUE='#'
33725 GL_COND_OBJ_ARGZ_FALSE=
33726 fi
33727 :
33728 if test -z "${GL_COND_OBJ_ARGZ_TRUE}" && test -z "${GL_COND_OBJ_ARGZ_FALSE}"; then
33729 GL_COND_OBJ_ARGZ_TRUE='#'
33730 GL_COND_OBJ_ARGZ_FALSE='#'
33731 fi
33732
33733
33734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for static_assert" >&5
33735 printf %s "checking for static_assert... " >&6; }
33736 if test ${gl_cv_static_assert+y}
33737 then :
33738 printf %s "(cached) " >&6
33739 else $as_nop
33740 gl_save_CFLAGS=$CFLAGS
33741 for gl_working in "yes, a keyword" "yes, an <assert.h> macro"; do
33742 case $gl_working in #(
33743 *assert.h*) :
33744 CFLAGS="$gl_save_CFLAGS -DINCLUDE_ASSERT_H" ;; #(
33745 *) :
33746 ;;
33747 esac
33748
33749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33750 /* end confdefs.h. */
33751 #if defined __clang__ && __STDC_VERSION__ < 202311
33752 #pragma clang diagnostic error "-Wc2x-extensions"
33753 #pragma clang diagnostic error "-Wc++17-extensions"
33754 #endif
33755 #ifdef INCLUDE_ASSERT_H
33756 #include <assert.h>
33757 #endif
33758 static_assert (2 + 2 == 4, "arithmetic does not work");
33759 static_assert (2 + 2 == 4);
33760
33761 int
33762 main (void)
33763 {
33764
33765 static_assert (sizeof (char) == 1, "sizeof does not work");
33766 static_assert (sizeof (char) == 1);
33767
33768 ;
33769 return 0;
33770 }
33771 _ACEOF
33772 if ac_fn_c_try_compile "$LINENO"
33773 then :
33774 gl_cv_static_assert=$gl_working
33775 else $as_nop
33776 gl_cv_static_assert=no
33777 fi
33778 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
33779 CFLAGS=$gl_save_CFLAGS
33780 test "$gl_cv_static_assert" != no && break
33781 done
33782 fi
33783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_static_assert" >&5
33784 printf "%s\n" "$gl_cv_static_assert" >&6; }
33785
33786 GL_GENERATE_ASSERT_H=false
33787 case $gl_cv_static_assert in #(
33788 yes*keyword*) :
33789
33790 printf "%s\n" "#define HAVE_C_STATIC_ASSERT 1" >>confdefs.h
33791 ;; #(
33792 no) :
33793 GL_GENERATE_ASSERT_H=true
33794
33795
33796
33797
33798
33799
33800
33801
33802 if test $gl_cv_have_include_next = yes; then
33803 gl_cv_next_assert_h='<'assert.h'>'
33804 else
33805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <assert.h>" >&5
33806 printf %s "checking absolute name of <assert.h>... " >&6; }
33807 if test ${gl_cv_next_assert_h+y}
33808 then :
33809 printf %s "(cached) " >&6
33810 else $as_nop
33811
33812
33813
33814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33815 /* end confdefs.h. */
33816 #include <assert.h>
33817 _ACEOF
33818 case "$host_os" in
33819 aix*) gl_absname_cpp="$ac_cpp -C" ;;
33820 *) gl_absname_cpp="$ac_cpp" ;;
33821 esac
33822
33823 case "$host_os" in
33824 mingw*)
33825 gl_dirsep_regex='[/\\]'
33826 ;;
33827 *)
33828 gl_dirsep_regex='\/'
33829 ;;
33830 esac
33831 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
33832 gl_header_literal_regex=`echo 'assert.h' \
33833 | sed -e "$gl_make_literal_regex_sed"`
33834 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
33835 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
33836 s|^/[^/]|//&|
33837 p
33838 q
33839 }'
33840
33841 gl_cv_absolute_assert_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
33842 sed -n "$gl_absolute_header_sed"`
33843
33844 gl_header=$gl_cv_absolute_assert_h
33845 gl_cv_next_assert_h='"'$gl_header'"'
33846
33847
33848 fi
33849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_assert_h" >&5
33850 printf "%s\n" "$gl_cv_next_assert_h" >&6; }
33851 fi
33852 NEXT_ASSERT_H=$gl_cv_next_assert_h
33853
33854 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
33855 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
33856 gl_next_as_first_directive='<'assert.h'>'
33857 else
33858 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
33859 gl_next_as_first_directive=$gl_cv_next_assert_h
33860 fi
33861 NEXT_AS_FIRST_DIRECTIVE_ASSERT_H=$gl_next_as_first_directive
33862
33863
33864
33865 ;; #(
33866 *) :
33867 ;;
33868 esac
33869
33870
33871
33872
33873
33874
33875
33876 case "$GL_GENERATE_ASSERT_H" in
33877 false) ASSERT_H='' ;;
33878 true)
33879 if test -z "$ASSERT_H"; then
33880 ASSERT_H="${gl_source_base_prefix}assert.h"
33881 fi
33882 ;;
33883 *) echo "*** GL_GENERATE_ASSERT_H is not set correctly" 1>&2; exit 1 ;;
33884 esac
33885
33886
33887 if $GL_GENERATE_ASSERT_H; then
33888 GL_GENERATE_ASSERT_H_TRUE=
33889 GL_GENERATE_ASSERT_H_FALSE='#'
33890 else
33891 GL_GENERATE_ASSERT_H_TRUE='#'
33892 GL_GENERATE_ASSERT_H_FALSE=
33893 fi
33894 :
33895 if test -z "${GL_GENERATE_ASSERT_H_TRUE}" && test -z "${GL_GENERATE_ASSERT_H_FALSE}"; then
33896 GL_GENERATE_ASSERT_H_TRUE='#'
33897 GL_GENERATE_ASSERT_H_FALSE='#'
33898 fi
33899
33900
33901
33902
33903
33904
33905
33906
33907
33908
33909
33910
33911 if test $ac_cv_func_btowc = no; then
33912 HAVE_BTOWC=0
33913 else
33914
33915
33916
33917
33918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether btowc(0) is correct" >&5
33919 printf %s "checking whether btowc(0) is correct... " >&6; }
33920 if test ${gl_cv_func_btowc_nul+y}
33921 then :
33922 printf %s "(cached) " >&6
33923 else $as_nop
33924
33925 if test "$cross_compiling" = yes
33926 then :
33927
33928 case "$host_os" in
33929 # Guess no on Cygwin.
33930 cygwin*) gl_cv_func_btowc_nul="guessing no" ;;
33931 # Guess yes on native Windows.
33932 mingw*) gl_cv_func_btowc_nul="guessing yes" ;;
33933 # Guess yes otherwise.
33934 *) gl_cv_func_btowc_nul="guessing yes" ;;
33935 esac
33936
33937 else $as_nop
33938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33939 /* end confdefs.h. */
33940
33941 #include <wchar.h>
33942 int main ()
33943 {
33944 if (btowc ('\0') != 0)
33945 return 1;
33946 return 0;
33947 }
33948 _ACEOF
33949 if ac_fn_c_try_run "$LINENO"
33950 then :
33951 gl_cv_func_btowc_nul=yes
33952 else $as_nop
33953 gl_cv_func_btowc_nul=no
33954 fi
33955 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
33956 conftest.$ac_objext conftest.beam conftest.$ac_ext
33957 fi
33958
33959
33960 fi
33961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_btowc_nul" >&5
33962 printf "%s\n" "$gl_cv_func_btowc_nul" >&6; }
33963
33964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether btowc(EOF) is correct" >&5
33965 printf %s "checking whether btowc(EOF) is correct... " >&6; }
33966 if test ${gl_cv_func_btowc_eof+y}
33967 then :
33968 printf %s "(cached) " >&6
33969 else $as_nop
33970
33971 case "$host_os" in
33972 # Guess no on IRIX.
33973 irix*) gl_cv_func_btowc_eof="guessing no" ;;
33974 # Guess yes on native Windows.
33975 mingw*) gl_cv_func_btowc_eof="guessing yes" ;;
33976 # Guess yes otherwise.
33977 *) gl_cv_func_btowc_eof="guessing yes" ;;
33978 esac
33979 if test $LOCALE_FR != none; then
33980 if test "$cross_compiling" = yes
33981 then :
33982 :
33983 else $as_nop
33984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33985 /* end confdefs.h. */
33986
33987 #include <locale.h>
33988 #include <stdio.h>
33989 #include <wchar.h>
33990 int main ()
33991 {
33992 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
33993 {
33994 if (btowc (EOF) != WEOF)
33995 return 1;
33996 }
33997 return 0;
33998 }
33999 _ACEOF
34000 if ac_fn_c_try_run "$LINENO"
34001 then :
34002 gl_cv_func_btowc_eof=yes
34003 else $as_nop
34004 gl_cv_func_btowc_eof=no
34005 fi
34006 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34007 conftest.$ac_objext conftest.beam conftest.$ac_ext
34008 fi
34009
34010 fi
34011
34012 fi
34013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_btowc_eof" >&5
34014 printf "%s\n" "$gl_cv_func_btowc_eof" >&6; }
34015
34016 case "$gl_cv_func_btowc_nul" in
34017 *yes) ;;
34018 *) REPLACE_BTOWC=1 ;;
34019 esac
34020 case "$gl_cv_func_btowc_eof" in
34021 *yes) ;;
34022 *) REPLACE_BTOWC=1 ;;
34023 esac
34024 fi
34025
34026
34027 if test $HAVE_BTOWC = 0 || test $REPLACE_BTOWC = 1; then
34028 GL_COND_OBJ_BTOWC_TRUE=
34029 GL_COND_OBJ_BTOWC_FALSE='#'
34030 else
34031 GL_COND_OBJ_BTOWC_TRUE='#'
34032 GL_COND_OBJ_BTOWC_FALSE=
34033 fi
34034 :
34035 if test -z "${GL_COND_OBJ_BTOWC_TRUE}" && test -z "${GL_COND_OBJ_BTOWC_FALSE}"; then
34036 GL_COND_OBJ_BTOWC_TRUE='#'
34037 GL_COND_OBJ_BTOWC_FALSE='#'
34038 fi
34039
34040 if test -z "$GL_COND_OBJ_BTOWC_TRUE"; then :
34041
34042
34043 :
34044
34045
34046 fi
34047
34048
34049
34050
34051
34052
34053
34054
34055
34056
34057
34058
34059
34060
34061 GL_GNULIB_BTOWC=1
34062
34063
34064
34065
34066
34067 printf "%s\n" "#define GNULIB_TEST_BTOWC 1" >>confdefs.h
34068
34069
34070
34071
34072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_expect" >&5
34073 printf %s "checking for __builtin_expect... " >&6; }
34074 if test ${gl_cv___builtin_expect+y}
34075 then :
34076 printf %s "(cached) " >&6
34077 else $as_nop
34078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34079 /* end confdefs.h. */
34080
34081 int
34082 main (int argc, char **argv)
34083 {
34084 argc = __builtin_expect (argc, 100);
34085 return argv[argc != 100][0];
34086 }
34087 _ACEOF
34088 if ac_fn_c_try_link "$LINENO"
34089 then :
34090 gl_cv___builtin_expect=yes
34091 else $as_nop
34092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34093 /* end confdefs.h. */
34094
34095 #include <builtins.h>
34096 int
34097 main (int argc, char **argv)
34098 {
34099 argc = __builtin_expect (argc, 100);
34100 return argv[argc != 100][0];
34101 }
34102 _ACEOF
34103 if ac_fn_c_try_link "$LINENO"
34104 then :
34105 gl_cv___builtin_expect="in <builtins.h>"
34106 else $as_nop
34107 gl_cv___builtin_expect=no
34108 fi
34109 rm -f core conftest.err conftest.$ac_objext conftest.beam \
34110 conftest$ac_exeext conftest.$ac_ext
34111 fi
34112 rm -f core conftest.err conftest.$ac_objext conftest.beam \
34113 conftest$ac_exeext conftest.$ac_ext
34114 fi
34115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv___builtin_expect" >&5
34116 printf "%s\n" "$gl_cv___builtin_expect" >&6; }
34117 if test "$gl_cv___builtin_expect" = yes; then
34118 printf "%s\n" "#define HAVE___BUILTIN_EXPECT 1" >>confdefs.h
34119
34120 elif test "$gl_cv___builtin_expect" = "in <builtins.h>"; then
34121 printf "%s\n" "#define HAVE___BUILTIN_EXPECT 2" >>confdefs.h
34122
34123 fi
34124
34125
34126
34127
34128
34129 REPLACE_CALLOC_FOR_CALLOC_GNU="$REPLACE_CALLOC_FOR_CALLOC_POSIX"
34130 if test $REPLACE_CALLOC_FOR_CALLOC_GNU = 0; then
34131
34132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether calloc (0, n) and calloc (n, 0) return nonnull" >&5
34133 printf %s "checking whether calloc (0, n) and calloc (n, 0) return nonnull... " >&6; }
34134 if test ${ac_cv_func_calloc_0_nonnull+y}
34135 then :
34136 printf %s "(cached) " >&6
34137 else $as_nop
34138 if test $cross_compiling != yes; then
34139 ac_cv_func_calloc_0_nonnull=yes
34140 if test "$cross_compiling" = yes
34141 then :
34142 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34143 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
34144 as_fn_error $? "cannot run test program while cross compiling
34145 See \`config.log' for more details" "$LINENO" 5; }
34146 else $as_nop
34147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34148 /* end confdefs.h. */
34149 $ac_includes_default
34150 int
34151 main (void)
34152 {
34153 int result = 0;
34154 char * volatile p = calloc (0, 0);
34155 if (!p)
34156 result |= 1;
34157 free (p);
34158 return result;
34159
34160 ;
34161 return 0;
34162 }
34163 _ACEOF
34164 if ac_fn_c_try_run "$LINENO"
34165 then :
34166
34167 else $as_nop
34168 ac_cv_func_calloc_0_nonnull=no
34169 fi
34170 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34171 conftest.$ac_objext conftest.beam conftest.$ac_ext
34172 fi
34173
34174 else
34175 case "$host_os" in
34176 # Guess yes on glibc systems.
34177 *-gnu* | gnu*) ac_cv_func_calloc_0_nonnull="guessing yes" ;;
34178 # Guess yes on musl systems.
34179 *-musl*) ac_cv_func_calloc_0_nonnull="guessing yes" ;;
34180 # Guess yes on native Windows.
34181 mingw*) ac_cv_func_calloc_0_nonnull="guessing yes" ;;
34182 # If we don't know, obey --enable-cross-guesses.
34183 *) ac_cv_func_calloc_0_nonnull="$gl_cross_guess_normal" ;;
34184 esac
34185 fi
34186
34187 fi
34188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_calloc_0_nonnull" >&5
34189 printf "%s\n" "$ac_cv_func_calloc_0_nonnull" >&6; }
34190 case $ac_cv_func_calloc_0_nonnull in #(
34191 *yes) :
34192 ;; #(
34193 *) :
34194 REPLACE_CALLOC_FOR_CALLOC_GNU=1 ;;
34195 esac
34196
34197 fi
34198
34199 if test $REPLACE_CALLOC_FOR_CALLOC_GNU = 1; then
34200
34201
34202
34203
34204
34205
34206
34207
34208 gl_LIBOBJS="$gl_LIBOBJS calloc.$ac_objext"
34209
34210 fi
34211
34212
34213
34214
34215
34216
34217
34218
34219
34220 GL_GNULIB_CALLOC_GNU=1
34221
34222
34223
34224
34225
34226 printf "%s\n" "#define GNULIB_TEST_CALLOC_GNU 1" >>confdefs.h
34227
34228
34229
34230
34231
34232
34233 if test $REPLACE_MALLOC_FOR_MALLOC_POSIX = 1; then
34234 REPLACE_CALLOC_FOR_CALLOC_POSIX=1
34235 fi
34236
34237 if test $REPLACE_CALLOC_FOR_CALLOC_POSIX = 1; then
34238
34239
34240
34241
34242
34243
34244
34245
34246 gl_LIBOBJS="$gl_LIBOBJS calloc.$ac_objext"
34247
34248 fi
34249
34250
34251
34252
34253
34254
34255
34256
34257
34258 GL_GNULIB_CALLOC_POSIX=1
34259
34260
34261
34262
34263
34264 printf "%s\n" "#define GNULIB_TEST_CALLOC_POSIX 1" >>confdefs.h
34265
34266
34267
34268
34269
34270
34271 if test $ac_cv_func_canonicalize_file_name = no; then
34272 HAVE_CANONICALIZE_FILE_NAME=0
34273 if test $ac_cv_func_realpath = no; then
34274 HAVE_REALPATH=0
34275 else
34276 case "$gl_cv_func_realpath_works" in
34277 *yes) ;;
34278 *) REPLACE_REALPATH=1 ;;
34279 esac
34280 fi
34281 else
34282 case "$gl_cv_func_realpath_works" in
34283 *yes)
34284 ;;
34285 *)
34286 REPLACE_CANONICALIZE_FILE_NAME=1
34287 REPLACE_REALPATH=1
34288 ;;
34289 esac
34290 fi
34291
34292
34293 if test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1; then
34294 GL_COND_OBJ_CANONICALIZE_LGPL_TRUE=
34295 GL_COND_OBJ_CANONICALIZE_LGPL_FALSE='#'
34296 else
34297 GL_COND_OBJ_CANONICALIZE_LGPL_TRUE='#'
34298 GL_COND_OBJ_CANONICALIZE_LGPL_FALSE=
34299 fi
34300 :
34301 if test -z "${GL_COND_OBJ_CANONICALIZE_LGPL_TRUE}" && test -z "${GL_COND_OBJ_CANONICALIZE_LGPL_FALSE}"; then
34302 GL_COND_OBJ_CANONICALIZE_LGPL_TRUE='#'
34303 GL_COND_OBJ_CANONICALIZE_LGPL_FALSE='#'
34304 fi
34305
34306
34307
34308 printf "%s\n" "#define GNULIB_CANONICALIZE_LGPL 1" >>confdefs.h
34309
34310
34311
34312
34313
34314
34315
34316
34317
34318
34319
34320 GL_GNULIB_CANONICALIZE_FILE_NAME=1
34321
34322
34323
34324
34325
34326 printf "%s\n" "#define GNULIB_TEST_CANONICALIZE_FILE_NAME 1" >>confdefs.h
34327
34328
34329
34330
34331
34332
34333
34334
34335
34336
34337
34338
34339 GL_GNULIB_REALPATH=1
34340
34341
34342
34343
34344
34345 printf "%s\n" "#define GNULIB_TEST_REALPATH 1" >>confdefs.h
34346
34347
34348
34349
34350
34351
34352 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
34353 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
34354
34355 # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all*
34356 # programs in the package would end up linked with that potentially-shared
34357 # library, inducing unnecessary run-time overhead.
34358 LIB_CLOCK_GETTIME=
34359
34360 gl_saved_libs=$LIBS
34361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
34362 printf %s "checking for library containing clock_gettime... " >&6; }
34363 if test ${ac_cv_search_clock_gettime+y}
34364 then :
34365 printf %s "(cached) " >&6
34366 else $as_nop
34367 ac_func_search_save_LIBS=$LIBS
34368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34369 /* end confdefs.h. */
34370
34371 /* Override any GCC internal prototype to avoid an error.
34372 Use char because int might match the return type of a GCC
34373 builtin and then its argument prototype would still apply. */
34374 char clock_gettime ();
34375 int
34376 main (void)
34377 {
34378 return clock_gettime ();
34379 ;
34380 return 0;
34381 }
34382 _ACEOF
34383 for ac_lib in '' rt posix4
34384 do
34385 if test -z "$ac_lib"; then
34386 ac_res="none required"
34387 else
34388 ac_res=-l$ac_lib
34389 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
34390 fi
34391 if ac_fn_c_try_link "$LINENO"
34392 then :
34393 ac_cv_search_clock_gettime=$ac_res
34394 fi
34395 rm -f core conftest.err conftest.$ac_objext conftest.beam \
34396 conftest$ac_exeext
34397 if test ${ac_cv_search_clock_gettime+y}
34398 then :
34399 break
34400 fi
34401 done
34402 if test ${ac_cv_search_clock_gettime+y}
34403 then :
34404
34405 else $as_nop
34406 ac_cv_search_clock_gettime=no
34407 fi
34408 rm conftest.$ac_ext
34409 LIBS=$ac_func_search_save_LIBS
34410 fi
34411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
34412 printf "%s\n" "$ac_cv_search_clock_gettime" >&6; }
34413 ac_res=$ac_cv_search_clock_gettime
34414 if test "$ac_res" != no
34415 then :
34416 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
34417 test "$ac_cv_search_clock_gettime" = "none required" ||
34418 LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime
34419 fi
34420
34421 ac_fn_c_check_func "$LINENO" "clock_getres" "ac_cv_func_clock_getres"
34422 if test "x$ac_cv_func_clock_getres" = xyes
34423 then :
34424 printf "%s\n" "#define HAVE_CLOCK_GETRES 1" >>confdefs.h
34425
34426 fi
34427 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
34428 if test "x$ac_cv_func_clock_gettime" = xyes
34429 then :
34430 printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
34431
34432 fi
34433 ac_fn_c_check_func "$LINENO" "clock_settime" "ac_cv_func_clock_settime"
34434 if test "x$ac_cv_func_clock_settime" = xyes
34435 then :
34436 printf "%s\n" "#define HAVE_CLOCK_SETTIME 1" >>confdefs.h
34437
34438 fi
34439
34440 LIBS=$gl_saved_libs
34441
34442
34443
34444 printf "%s\n" "#define GNULIB_TEST_CLOEXEC 1" >>confdefs.h
34445
34446
34447
34448
34449
34450
34451 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
34452 REPLACE_CLOSE=1
34453 fi
34454
34455
34456
34457
34458
34459
34460 if test $ac_cv_header_sys_socket_h != yes; then
34461 ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
34462 if test "x$ac_cv_header_winsock2_h" = xyes
34463 then :
34464 printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h
34465
34466 fi
34467
34468 fi
34469 if test "$ac_cv_header_winsock2_h" = yes; then
34470 HAVE_WINSOCK2_H=1
34471 UNISTD_H_HAVE_WINSOCK2_H=1
34472 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
34473 else
34474 HAVE_WINSOCK2_H=0
34475 fi
34476
34477
34478 if test $UNISTD_H_HAVE_WINSOCK2_H = 1; then
34479 REPLACE_CLOSE=1
34480 fi
34481
34482
34483
34484
34485 if test $REPLACE_CLOSE = 1; then
34486 GL_COND_OBJ_CLOSE_TRUE=
34487 GL_COND_OBJ_CLOSE_FALSE='#'
34488 else
34489 GL_COND_OBJ_CLOSE_TRUE='#'
34490 GL_COND_OBJ_CLOSE_FALSE=
34491 fi
34492 :
34493 if test -z "${GL_COND_OBJ_CLOSE_TRUE}" && test -z "${GL_COND_OBJ_CLOSE_FALSE}"; then
34494 GL_COND_OBJ_CLOSE_TRUE='#'
34495 GL_COND_OBJ_CLOSE_FALSE='#'
34496 fi
34497
34498
34499
34500
34501
34502
34503
34504
34505
34506
34507 GL_GNULIB_CLOSE=1
34508
34509
34510
34511
34512
34513 printf "%s\n" "#define GNULIB_TEST_CLOSE 1" >>confdefs.h
34514
34515
34516
34517
34518
34519
34520
34521
34522
34523
34524
34525
34526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
34527 printf %s "checking whether // is distinct from /... " >&6; }
34528 if test ${gl_cv_double_slash_root+y}
34529 then :
34530 printf %s "(cached) " >&6
34531 else $as_nop
34532 if test x"$cross_compiling" = xyes ; then
34533 # When cross-compiling, there is no way to tell whether // is special
34534 # short of a list of hosts. However, the only known hosts to date
34535 # that have a distinct // are Apollo DomainOS (too old to port to),
34536 # Cygwin, and z/OS. If anyone knows of another system for which // has
34537 # special semantics and is distinct from /, please report it to
34538 # <[email protected]>.
34539 case $host in
34540 *-cygwin | i370-ibm-openedition)
34541 gl_cv_double_slash_root=yes ;;
34542 *)
34543 # Be optimistic and assume that / and // are the same when we
34544 # don't know.
34545 gl_cv_double_slash_root='unknown, assuming no' ;;
34546 esac
34547 else
34548 set x `ls -di / // 2>/dev/null`
34549 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
34550 gl_cv_double_slash_root=no
34551 else
34552 gl_cv_double_slash_root=yes
34553 fi
34554 fi
34555 fi
34556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
34557 printf "%s\n" "$gl_cv_double_slash_root" >&6; }
34558 if test "$gl_cv_double_slash_root" = yes; then
34559
34560 printf "%s\n" "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
34561
34562 fi
34563
34564
34565
34566
34567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
34568 printf %s "checking whether dup2 works... " >&6; }
34569 if test ${gl_cv_func_dup2_works+y}
34570 then :
34571 printf %s "(cached) " >&6
34572 else $as_nop
34573 if test "$cross_compiling" = yes
34574 then :
34575 case "$host_os" in
34576 mingw*) # on this platform, dup2 always returns 0 for success
34577 gl_cv_func_dup2_works="guessing no" ;;
34578 cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
34579 gl_cv_func_dup2_works="guessing no" ;;
34580 aix* | freebsd*)
34581 # on AIX 7.1 and FreeBSD 6.1, dup2 (1,toobig) gives EMFILE,
34582 # not EBADF.
34583 gl_cv_func_dup2_works="guessing no" ;;
34584 haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
34585 gl_cv_func_dup2_works="guessing no" ;;
34586 *-android*) # implemented using dup3(), which fails if oldfd == newfd
34587 gl_cv_func_dup2_works="guessing no" ;;
34588 os2*) # on OS/2 kLIBC, dup2() does not work on a directory fd.
34589 gl_cv_func_dup2_works="guessing no" ;;
34590 *) gl_cv_func_dup2_works="guessing yes" ;;
34591 esac
34592 else $as_nop
34593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34594 /* end confdefs.h. */
34595
34596 #include <errno.h>
34597 #include <fcntl.h>
34598 #include <limits.h>
34599 #include <sys/resource.h>
34600 #include <unistd.h>
34601
34602
34603 $gl_mda_defines
34604
34605 #ifndef RLIM_SAVED_CUR
34606 # define RLIM_SAVED_CUR RLIM_INFINITY
34607 #endif
34608 #ifndef RLIM_SAVED_MAX
34609 # define RLIM_SAVED_MAX RLIM_INFINITY
34610 #endif
34611
34612 int
34613 main (void)
34614 {
34615 int result = 0;
34616 int bad_fd = INT_MAX;
34617 struct rlimit rlim;
34618 if (getrlimit (RLIMIT_NOFILE, &rlim) == 0
34619 && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX
34620 && rlim.rlim_cur != RLIM_INFINITY
34621 && rlim.rlim_cur != RLIM_SAVED_MAX
34622 && rlim.rlim_cur != RLIM_SAVED_CUR)
34623 bad_fd = rlim.rlim_cur;
34624 #ifdef FD_CLOEXEC
34625 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
34626 result |= 1;
34627 #endif
34628 if (dup2 (1, 1) != 1)
34629 result |= 2;
34630 #ifdef FD_CLOEXEC
34631 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
34632 result |= 4;
34633 #endif
34634 close (0);
34635 if (dup2 (0, 0) != -1)
34636 result |= 8;
34637 /* Many gnulib modules require POSIX conformance of EBADF. */
34638 if (dup2 (2, bad_fd) == -1 && errno != EBADF)
34639 result |= 16;
34640 /* Flush out some cygwin core dumps. */
34641 if (dup2 (2, -1) != -1 || errno != EBADF)
34642 result |= 32;
34643 dup2 (2, 255);
34644 dup2 (2, 256);
34645 /* On OS/2 kLIBC, dup2() does not work on a directory fd. */
34646 {
34647 int fd = open (".", O_RDONLY);
34648 if (fd == -1)
34649 result |= 64;
34650 else if (dup2 (fd, fd + 1) == -1)
34651 result |= 128;
34652 close (fd);
34653 }
34654 return result;
34655 ;
34656 return 0;
34657 }
34658
34659 _ACEOF
34660 if ac_fn_c_try_run "$LINENO"
34661 then :
34662 gl_cv_func_dup2_works=yes
34663 else $as_nop
34664 gl_cv_func_dup2_works=no
34665 fi
34666 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34667 conftest.$ac_objext conftest.beam conftest.$ac_ext
34668 fi
34669
34670
34671 fi
34672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
34673 printf "%s\n" "$gl_cv_func_dup2_works" >&6; }
34674 case "$gl_cv_func_dup2_works" in
34675 *yes) ;;
34676 *)
34677 REPLACE_DUP2=1
34678 ac_fn_c_check_func "$LINENO" "setdtablesize" "ac_cv_func_setdtablesize"
34679 if test "x$ac_cv_func_setdtablesize" = xyes
34680 then :
34681 printf "%s\n" "#define HAVE_SETDTABLESIZE 1" >>confdefs.h
34682
34683 fi
34684
34685 ;;
34686 esac
34687
34688
34689
34690 if test $REPLACE_DUP2 = 1; then
34691 GL_COND_OBJ_DUP2_TRUE=
34692 GL_COND_OBJ_DUP2_FALSE='#'
34693 else
34694 GL_COND_OBJ_DUP2_TRUE='#'
34695 GL_COND_OBJ_DUP2_FALSE=
34696 fi
34697 :
34698 if test -z "${GL_COND_OBJ_DUP2_TRUE}" && test -z "${GL_COND_OBJ_DUP2_FALSE}"; then
34699 GL_COND_OBJ_DUP2_TRUE='#'
34700 GL_COND_OBJ_DUP2_FALSE='#'
34701 fi
34702
34703 if test -z "$GL_COND_OBJ_DUP2_TRUE"; then :
34704
34705
34706
34707 fi
34708
34709
34710
34711
34712
34713
34714
34715
34716
34717 GL_GNULIB_DUP2=1
34718
34719
34720
34721
34722
34723 printf "%s\n" "#define GNULIB_TEST_DUP2 1" >>confdefs.h
34724
34725
34726
34727
34728
34729
34730
34731
34732 case "$GL_GENERATE_ERRNO_H" in
34733 false) ERRNO_H='' ;;
34734 true)
34735 if test -z "$ERRNO_H"; then
34736 ERRNO_H="${gl_source_base_prefix}errno.h"
34737 fi
34738 ;;
34739 *) echo "*** GL_GENERATE_ERRNO_H is not set correctly" 1>&2; exit 1 ;;
34740 esac
34741
34742
34743 if $GL_GENERATE_ERRNO_H; then
34744 GL_GENERATE_ERRNO_H_TRUE=
34745 GL_GENERATE_ERRNO_H_FALSE='#'
34746 else
34747 GL_GENERATE_ERRNO_H_TRUE='#'
34748 GL_GENERATE_ERRNO_H_FALSE=
34749 fi
34750 :
34751 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
34752 GL_GENERATE_ERRNO_H_TRUE='#'
34753 GL_GENERATE_ERRNO_H_FALSE='#'
34754 fi
34755
34756
34757
34758
34759
34760
34761
34762
34763
34764
34765
34766
34767 if test $ac_cv_func_fcntl = no; then
34768
34769
34770
34771 if test $ac_cv_func_fcntl = no; then
34772 HAVE_FCNTL=0
34773 else
34774 REPLACE_FCNTL=1
34775 fi
34776
34777 else
34778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether fcntl handles F_DUPFD correctly" >&5
34779 printf %s "checking whether fcntl handles F_DUPFD correctly... " >&6; }
34780 if test ${gl_cv_func_fcntl_f_dupfd_works+y}
34781 then :
34782 printf %s "(cached) " >&6
34783 else $as_nop
34784 if test "$cross_compiling" = yes
34785 then :
34786 case $host_os in
34787 aix* | cygwin* | haiku*)
34788 gl_cv_func_fcntl_f_dupfd_works="guessing no" ;;
34789 *) gl_cv_func_fcntl_f_dupfd_works="guessing yes" ;;
34790 esac
34791 else $as_nop
34792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34793 /* end confdefs.h. */
34794 #include <errno.h>
34795 #include <fcntl.h>
34796 #include <limits.h>
34797 #include <sys/resource.h>
34798 #include <unistd.h>
34799
34800
34801 $gl_mda_defines
34802
34803 #ifndef RLIM_SAVED_CUR
34804 # define RLIM_SAVED_CUR RLIM_INFINITY
34805 #endif
34806 #ifndef RLIM_SAVED_MAX
34807 # define RLIM_SAVED_MAX RLIM_INFINITY
34808 #endif
34809
34810 int
34811 main (void)
34812 {
34813 int result = 0;
34814 int bad_fd = INT_MAX;
34815 struct rlimit rlim;
34816 if (getrlimit (RLIMIT_NOFILE, &rlim) == 0
34817 && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX
34818 && rlim.rlim_cur != RLIM_INFINITY
34819 && rlim.rlim_cur != RLIM_SAVED_MAX
34820 && rlim.rlim_cur != RLIM_SAVED_CUR)
34821 bad_fd = rlim.rlim_cur;
34822 if (fcntl (0, F_DUPFD, -1) != -1) result |= 1;
34823 if (errno != EINVAL) result |= 2;
34824 if (fcntl (0, F_DUPFD, bad_fd) != -1) result |= 4;
34825 if (errno != EINVAL) result |= 8;
34826 /* On OS/2 kLIBC, F_DUPFD does not work on a directory fd */
34827 {
34828 int fd;
34829 fd = open (".", O_RDONLY);
34830 if (fd == -1)
34831 result |= 16;
34832 else if (fcntl (fd, F_DUPFD, STDERR_FILENO + 1) == -1)
34833 result |= 32;
34834
34835 close (fd);
34836 }
34837 return result;
34838 ;
34839 return 0;
34840 }
34841 _ACEOF
34842 if ac_fn_c_try_run "$LINENO"
34843 then :
34844 gl_cv_func_fcntl_f_dupfd_works=yes
34845 else $as_nop
34846 gl_cv_func_fcntl_f_dupfd_works=no
34847 fi
34848 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34849 conftest.$ac_objext conftest.beam conftest.$ac_ext
34850 fi
34851
34852 fi
34853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_works" >&5
34854 printf "%s\n" "$gl_cv_func_fcntl_f_dupfd_works" >&6; }
34855 case $gl_cv_func_fcntl_f_dupfd_works in
34856 *yes) ;;
34857 *)
34858
34859
34860 if test $ac_cv_func_fcntl = no; then
34861 HAVE_FCNTL=0
34862 else
34863 REPLACE_FCNTL=1
34864 fi
34865
34866
34867 printf "%s\n" "#define FCNTL_DUPFD_BUGGY 1" >>confdefs.h
34868 ;;
34869 esac
34870
34871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether fcntl understands F_DUPFD_CLOEXEC" >&5
34872 printf %s "checking whether fcntl understands F_DUPFD_CLOEXEC... " >&6; }
34873 if test ${gl_cv_func_fcntl_f_dupfd_cloexec+y}
34874 then :
34875 printf %s "(cached) " >&6
34876 else $as_nop
34877 if test "$cross_compiling" = yes
34878 then :
34879 case "$host_os" in
34880 # Guess no on NetBSD.
34881 netbsd*) gl_cv_func_fcntl_f_dupfd_cloexec="guessing no" ;;
34882 *) gl_cv_func_fcntl_f_dupfd_cloexec="$gl_cross_guess_normal" ;;
34883 esac
34884
34885 else $as_nop
34886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34887 /* end confdefs.h. */
34888 #include <fcntl.h>
34889 #include <unistd.h>
34890 int main (int argc, char *argv[])
34891 {
34892 if (argc == 1)
34893 /* parent process */
34894 {
34895 if (fcntl (1, F_DUPFD_CLOEXEC, 10) < 0)
34896 return 1;
34897 return execl ("./conftest", "./conftest", "child", NULL);
34898 }
34899 else
34900 /* child process */
34901 return (fcntl (10, F_GETFL) < 0 ? 0 : 42);
34902 }
34903
34904
34905 _ACEOF
34906 if ac_fn_c_try_run "$LINENO"
34907 then :
34908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34909 /* end confdefs.h. */
34910
34911 #ifdef __linux__
34912 /* The Linux kernel only added F_DUPFD_CLOEXEC in 2.6.24, so we always replace
34913 it to support the semantics on older kernels that failed with EINVAL. */
34914 choke me
34915 #endif
34916
34917 int
34918 main (void)
34919 {
34920
34921 ;
34922 return 0;
34923 }
34924 _ACEOF
34925 if ac_fn_c_try_compile "$LINENO"
34926 then :
34927 gl_cv_func_fcntl_f_dupfd_cloexec=yes
34928 else $as_nop
34929 gl_cv_func_fcntl_f_dupfd_cloexec="needs runtime check"
34930 fi
34931 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
34932
34933 else $as_nop
34934 gl_cv_func_fcntl_f_dupfd_cloexec=no
34935 fi
34936 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34937 conftest.$ac_objext conftest.beam conftest.$ac_ext
34938 fi
34939
34940
34941 fi
34942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_cloexec" >&5
34943 printf "%s\n" "$gl_cv_func_fcntl_f_dupfd_cloexec" >&6; }
34944 case "$gl_cv_func_fcntl_f_dupfd_cloexec" in
34945 *yes) ;;
34946 *)
34947
34948
34949 if test $ac_cv_func_fcntl = no; then
34950 HAVE_FCNTL=0
34951 else
34952 REPLACE_FCNTL=1
34953 fi
34954
34955 ;;
34956 esac
34957 fi
34958
34959
34960
34961 if test $HAVE_FCNTL = 0 || test $REPLACE_FCNTL = 1; then
34962 GL_COND_OBJ_FCNTL_TRUE=
34963 GL_COND_OBJ_FCNTL_FALSE='#'
34964 else
34965 GL_COND_OBJ_FCNTL_TRUE='#'
34966 GL_COND_OBJ_FCNTL_FALSE=
34967 fi
34968 :
34969 if test -z "${GL_COND_OBJ_FCNTL_TRUE}" && test -z "${GL_COND_OBJ_FCNTL_FALSE}"; then
34970 GL_COND_OBJ_FCNTL_TRUE='#'
34971 GL_COND_OBJ_FCNTL_FALSE='#'
34972 fi
34973
34974
34975
34976
34977
34978
34979
34980
34981
34982
34983 GL_GNULIB_FCNTL=1
34984
34985
34986
34987
34988
34989 printf "%s\n" "#define GNULIB_TEST_FCNTL 1" >>confdefs.h
34990
34991
34992
34993
34994
34995
34996
34997
34998
34999
35000
35001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for flexible array member" >&5
35002 printf %s "checking for flexible array member... " >&6; }
35003 if test ${ac_cv_c_flexmember+y}
35004 then :
35005 printf %s "(cached) " >&6
35006 else $as_nop
35007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35008 /* end confdefs.h. */
35009 #include <stdlib.h>
35010 #include <stdio.h>
35011 #include <stddef.h>
35012 struct m { struct m *next, **list; char name[]; };
35013 struct s { struct s *p; struct m *m; int n; double d[]; };
35014 int
35015 main (void)
35016 {
35017 int m = getchar ();
35018 size_t nbytes = offsetof (struct s, d) + m * sizeof (double);
35019 nbytes += sizeof (struct s) - 1;
35020 nbytes -= nbytes % sizeof (struct s);
35021 struct s *p = malloc (nbytes);
35022 p->p = p;
35023 p->m = NULL;
35024 p->d[0] = 0.0;
35025 return p->d != (double *) NULL;
35026 ;
35027 return 0;
35028 }
35029 _ACEOF
35030 if ac_fn_c_try_compile "$LINENO"
35031 then :
35032 ac_cv_c_flexmember=yes
35033 else $as_nop
35034 ac_cv_c_flexmember=no
35035 fi
35036 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
35037 fi
35038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5
35039 printf "%s\n" "$ac_cv_c_flexmember" >&6; }
35040 if test $ac_cv_c_flexmember = yes; then
35041
35042 printf "%s\n" "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h
35043
35044 else
35045 printf "%s\n" "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h
35046
35047 fi
35048
35049
35050
35051
35052 GL_GENERATE_FLOAT_H=false
35053 REPLACE_FLOAT_LDBL=0
35054 case "$host_os" in
35055 aix* | beos* | openbsd* | mirbsd* | irix*)
35056 GL_GENERATE_FLOAT_H=true
35057 ;;
35058 freebsd* | dragonfly*)
35059 case "$host_cpu" in
35060 i[34567]86 )
35061 GL_GENERATE_FLOAT_H=true
35062 ;;
35063 x86_64 )
35064 # On x86_64 systems, the C compiler may still be generating
35065 # 32-bit code.
35066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35067 /* end confdefs.h. */
35068 #if defined __LP64__ || defined __x86_64__ || defined __amd64__
35069 int ok;
35070 #else
35071 error fail
35072 #endif
35073
35074 _ACEOF
35075 if ac_fn_c_try_compile "$LINENO"
35076 then :
35077
35078 else $as_nop
35079 GL_GENERATE_FLOAT_H=true
35080 fi
35081 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
35082 ;;
35083 esac
35084 ;;
35085 linux*)
35086 case "$host_cpu" in
35087 powerpc*)
35088 GL_GENERATE_FLOAT_H=true
35089 ;;
35090 esac
35091 ;;
35092 esac
35093 case "$host_os" in
35094 aix* | freebsd* | dragonfly* | linux*)
35095 if $GL_GENERATE_FLOAT_H; then
35096 REPLACE_FLOAT_LDBL=1
35097 fi
35098 ;;
35099 esac
35100
35101 REPLACE_ITOLD=0
35102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
35103 printf %s "checking whether conversion from 'int' to 'long double' works... " >&6; }
35104 if test ${gl_cv_func_itold_works+y}
35105 then :
35106 printf %s "(cached) " >&6
35107 else $as_nop
35108
35109 if test "$cross_compiling" = yes
35110 then :
35111 case "$host" in
35112 sparc*-*-linux*)
35113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35114 /* end confdefs.h. */
35115 #if defined __LP64__ || defined __arch64__
35116 int ok;
35117 #else
35118 error fail
35119 #endif
35120
35121 _ACEOF
35122 if ac_fn_c_try_compile "$LINENO"
35123 then :
35124 gl_cv_func_itold_works="guessing no"
35125 else $as_nop
35126 gl_cv_func_itold_works="guessing yes"
35127 fi
35128 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
35129 ;;
35130 # Guess yes on native Windows.
35131 mingw*) gl_cv_func_itold_works="guessing yes" ;;
35132 *) gl_cv_func_itold_works="guessing yes" ;;
35133 esac
35134
35135 else $as_nop
35136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35137 /* end confdefs.h. */
35138
35139 int i = -1;
35140 volatile long double ld;
35141 int main ()
35142 {
35143 ld += i * 1.0L;
35144 if (ld > 0)
35145 return 1;
35146 return 0;
35147 }
35148 _ACEOF
35149 if ac_fn_c_try_run "$LINENO"
35150 then :
35151 gl_cv_func_itold_works=yes
35152 else $as_nop
35153 gl_cv_func_itold_works=no
35154 fi
35155 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
35156 conftest.$ac_objext conftest.beam conftest.$ac_ext
35157 fi
35158
35159
35160 fi
35161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
35162 printf "%s\n" "$gl_cv_func_itold_works" >&6; }
35163 case "$gl_cv_func_itold_works" in
35164 *no)
35165 REPLACE_ITOLD=1
35166 GL_GENERATE_FLOAT_H=true
35167 ;;
35168 esac
35169
35170 if $GL_GENERATE_FLOAT_H; then
35171
35172
35173
35174
35175
35176
35177
35178
35179 if test $gl_cv_have_include_next = yes; then
35180 gl_cv_next_float_h='<'float.h'>'
35181 else
35182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
35183 printf %s "checking absolute name of <float.h>... " >&6; }
35184 if test ${gl_cv_next_float_h+y}
35185 then :
35186 printf %s "(cached) " >&6
35187 else $as_nop
35188
35189
35190
35191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35192 /* end confdefs.h. */
35193 #include <float.h>
35194 _ACEOF
35195 case "$host_os" in
35196 aix*) gl_absname_cpp="$ac_cpp -C" ;;
35197 *) gl_absname_cpp="$ac_cpp" ;;
35198 esac
35199
35200 case "$host_os" in
35201 mingw*)
35202 gl_dirsep_regex='[/\\]'
35203 ;;
35204 *)
35205 gl_dirsep_regex='\/'
35206 ;;
35207 esac
35208 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
35209 gl_header_literal_regex=`echo 'float.h' \
35210 | sed -e "$gl_make_literal_regex_sed"`
35211 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
35212 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
35213 s|^/[^/]|//&|
35214 p
35215 q
35216 }'
35217
35218 gl_cv_absolute_float_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
35219 sed -n "$gl_absolute_header_sed"`
35220
35221 gl_header=$gl_cv_absolute_float_h
35222 gl_cv_next_float_h='"'$gl_header'"'
35223
35224
35225 fi
35226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
35227 printf "%s\n" "$gl_cv_next_float_h" >&6; }
35228 fi
35229 NEXT_FLOAT_H=$gl_cv_next_float_h
35230
35231 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
35232 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
35233 gl_next_as_first_directive='<'float.h'>'
35234 else
35235 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
35236 gl_next_as_first_directive=$gl_cv_next_float_h
35237 fi
35238 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
35239
35240
35241
35242
35243 fi
35244
35245
35246
35247
35248
35249
35250 case "$GL_GENERATE_FLOAT_H" in
35251 false) FLOAT_H='' ;;
35252 true)
35253 if test -z "$FLOAT_H"; then
35254 FLOAT_H="${gl_source_base_prefix}float.h"
35255 fi
35256 ;;
35257 *) echo "*** GL_GENERATE_FLOAT_H is not set correctly" 1>&2; exit 1 ;;
35258 esac
35259
35260
35261 if $GL_GENERATE_FLOAT_H; then
35262 GL_GENERATE_FLOAT_H_TRUE=
35263 GL_GENERATE_FLOAT_H_FALSE='#'
35264 else
35265 GL_GENERATE_FLOAT_H_TRUE='#'
35266 GL_GENERATE_FLOAT_H_FALSE=
35267 fi
35268 :
35269 if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
35270 GL_GENERATE_FLOAT_H_TRUE='#'
35271 GL_GENERATE_FLOAT_H_FALSE='#'
35272 fi
35273
35274
35275
35276
35277
35278
35279
35280 if test $REPLACE_FLOAT_LDBL = 1; then
35281 GL_COND_OBJ_FLOAT_TRUE=
35282 GL_COND_OBJ_FLOAT_FALSE='#'
35283 else
35284 GL_COND_OBJ_FLOAT_TRUE='#'
35285 GL_COND_OBJ_FLOAT_FALSE=
35286 fi
35287 :
35288 if test -z "${GL_COND_OBJ_FLOAT_TRUE}" && test -z "${GL_COND_OBJ_FLOAT_FALSE}"; then
35289 GL_COND_OBJ_FLOAT_TRUE='#'
35290 GL_COND_OBJ_FLOAT_FALSE='#'
35291 fi
35292
35293
35294 if test $REPLACE_ITOLD = 1; then
35295 GL_COND_OBJ_ITOLD_TRUE=
35296 GL_COND_OBJ_ITOLD_FALSE='#'
35297 else
35298 GL_COND_OBJ_ITOLD_TRUE='#'
35299 GL_COND_OBJ_ITOLD_FALSE=
35300 fi
35301 :
35302 if test -z "${GL_COND_OBJ_ITOLD_TRUE}" && test -z "${GL_COND_OBJ_ITOLD_FALSE}"; then
35303 GL_COND_OBJ_ITOLD_TRUE='#'
35304 GL_COND_OBJ_ITOLD_FALSE='#'
35305 fi
35306
35307
35308
35309
35310
35311 gl_fnmatch_required_lowercase=`
35312 echo $gl_fnmatch_required | LC_ALL=C tr '[A-Z]' '[a-z]'
35313 `
35314
35315 if test $ac_cv_func_fnmatch = no; then
35316 HAVE_FNMATCH=0
35317 else
35318 gl_fnmatch_cache_var="gl_cv_func_fnmatch_${gl_fnmatch_required_lowercase}"
35319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working $gl_fnmatch_required fnmatch" >&5
35320 printf %s "checking for working $gl_fnmatch_required fnmatch... " >&6; }
35321 if eval test \${$gl_fnmatch_cache_var+y}
35322 then :
35323 printf %s "(cached) " >&6
35324 else $as_nop
35325 if test $gl_fnmatch_required = GNU; then
35326 gl_fnmatch_gnu_start=
35327 gl_fnmatch_gnu_end=
35328 else
35329 gl_fnmatch_gnu_start='#if 0'
35330 gl_fnmatch_gnu_end='#endif'
35331 fi
35332 if test "$cross_compiling" = yes
35333 then :
35334 case "$host_os" in
35335 # Guess yes on musl systems.
35336 *-musl*) eval "$gl_fnmatch_cache_var=\"guessing yes\"" ;;
35337 # Guess no otherwise, even on glibc systems.
35338 *) eval "$gl_fnmatch_cache_var=\"guessing no\"" ;;
35339 esac
35340
35341 else $as_nop
35342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35343 /* end confdefs.h. */
35344 #include <fnmatch.h>
35345 static int
35346 y (char const *pattern, char const *string, int flags)
35347 {
35348 return fnmatch (pattern, string, flags) == 0;
35349 }
35350 static int
35351 n (char const *pattern, char const *string, int flags)
35352 {
35353 return fnmatch (pattern, string, flags) == FNM_NOMATCH;
35354 }
35355
35356 int
35357 main (void)
35358 {
35359 char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]";
35360 char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]";
35361 static char const A_1[] = { 'A' - 1, 0 };
35362 static char const A01[] = { 'A' + 1, 0 };
35363 static char const a_1[] = { 'a' - 1, 0 };
35364 static char const a01[] = { 'a' + 1, 0 };
35365 static char const bs_1[] = { '\\\\' - 1, 0 };
35366 static char const bs01[] = { '\\\\' + 1, 0 };
35367 int result = 0;
35368 if (!n ("a*", "", 0))
35369 return 1;
35370 if (!y ("a*", "abc", 0))
35371 return 1;
35372 if (!y ("[/b", "[/b", 0)) /*"]]"*/ /* glibc Bugzilla bug 12378 */
35373 return 1;
35374 if (!n ("d*/*1", "d/s/1", FNM_PATHNAME))
35375 return 2;
35376 if (!y ("a\\\\bc", "abc", 0))
35377 return 3;
35378 if (!n ("a\\\\bc", "abc", FNM_NOESCAPE))
35379 return 3;
35380 if (!y ("*x", ".x", 0))
35381 return 4;
35382 if (!n ("*x", ".x", FNM_PERIOD))
35383 return 4;
35384 if (!y (Apat, "\\\\", 0))
35385 return 5;
35386 if (!y (Apat, "A", 0))
35387 return 5;
35388 if (!y (apat, "\\\\", 0))
35389 return 5;
35390 if (!y (apat, "a", 0))
35391 return 5;
35392 if (!(n (Apat, A_1, 0) == ('A' < '\\\\')))
35393 return 5;
35394 if (!(n (apat, a_1, 0) == ('a' < '\\\\')))
35395 return 5;
35396 if (!(y (Apat, A01, 0) == ('A' < '\\\\')))
35397 return 5;
35398 if (!(y (apat, a01, 0) == ('a' < '\\\\')))
35399 return 5;
35400 if (!(y (Apat, bs_1, 0) == ('A' < '\\\\')))
35401 return 5;
35402 if (!(y (apat, bs_1, 0) == ('a' < '\\\\')))
35403 return 5;
35404 if (!(n (Apat, bs01, 0) == ('A' < '\\\\')))
35405 return 5;
35406 if (!(n (apat, bs01, 0) == ('a' < '\\\\')))
35407 return 5;
35408 $gl_fnmatch_gnu_start
35409 if (!y ("xxXX", "xXxX", FNM_CASEFOLD))
35410 result |= 8;
35411 if (!y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH))
35412 result |= 16;
35413 if (!n ("d*/*1", "d/s/1", FNM_FILE_NAME))
35414 result |= 32;
35415 if (!y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR))
35416 result |= 64;
35417 if (!y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR))
35418 result |= 64;
35419 if (!y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR))
35420 result |= 64;
35421 $gl_fnmatch_gnu_end
35422 return result;
35423
35424 ;
35425 return 0;
35426 }
35427 _ACEOF
35428 if ac_fn_c_try_run "$LINENO"
35429 then :
35430 eval "$gl_fnmatch_cache_var=yes"
35431 else $as_nop
35432 eval "$gl_fnmatch_cache_var=no"
35433 fi
35434 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
35435 conftest.$ac_objext conftest.beam conftest.$ac_ext
35436 fi
35437
35438
35439 fi
35440 eval ac_res=\$$gl_fnmatch_cache_var
35441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
35442 printf "%s\n" "$ac_res" >&6; }
35443 eval "gl_fnmatch_result=\"\$$gl_fnmatch_cache_var\""
35444 case "$gl_fnmatch_result" in
35445 *yes) ;;
35446 *) REPLACE_FNMATCH=1 ;;
35447 esac
35448 fi
35449 if test $HAVE_FNMATCH = 0 || test $REPLACE_FNMATCH = 1; then
35450
35451
35452
35453
35454
35455
35456 GL_GENERATE_FNMATCH_H=true
35457
35458 fi
35459
35460
35461
35462
35463
35464 case "$GL_GENERATE_FNMATCH_H" in
35465 false) FNMATCH_H='' ;;
35466 true)
35467 if test -z "$FNMATCH_H"; then
35468 FNMATCH_H="${gl_source_base_prefix}fnmatch.h"
35469 fi
35470 ;;
35471 *) echo "*** GL_GENERATE_FNMATCH_H is not set correctly" 1>&2; exit 1 ;;
35472 esac
35473
35474
35475 if $GL_GENERATE_FNMATCH_H; then
35476 GL_GENERATE_FNMATCH_H_TRUE=
35477 GL_GENERATE_FNMATCH_H_FALSE='#'
35478 else
35479 GL_GENERATE_FNMATCH_H_TRUE='#'
35480 GL_GENERATE_FNMATCH_H_FALSE=
35481 fi
35482 :
35483 if test -z "${GL_GENERATE_FNMATCH_H_TRUE}" && test -z "${GL_GENERATE_FNMATCH_H_FALSE}"; then
35484 GL_GENERATE_FNMATCH_H_TRUE='#'
35485 GL_GENERATE_FNMATCH_H_FALSE='#'
35486 fi
35487
35488
35489
35490
35491
35492 if test $HAVE_FNMATCH = 0 || test $REPLACE_FNMATCH = 1; then
35493
35494
35495
35496
35497
35498
35499
35500
35501 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
35502
35503
35504
35505
35506
35507 fi
35508
35509
35510
35511
35512
35513
35514
35515
35516
35517 GL_GNULIB_FNMATCH=1
35518
35519
35520
35521
35522
35523 printf "%s\n" "#define GNULIB_TEST_FNMATCH 1" >>confdefs.h
35524
35525
35526
35527
35528
35529
35530
35531
35532
35533
35534
35535
35536
35537 case "$GL_GENERATE_FNMATCH_H" in
35538 false) FNMATCH_H='' ;;
35539 true)
35540 if test -z "$FNMATCH_H"; then
35541 FNMATCH_H="${gl_source_base_prefix}fnmatch.h"
35542 fi
35543 ;;
35544 *) echo "*** GL_GENERATE_FNMATCH_H is not set correctly" 1>&2; exit 1 ;;
35545 esac
35546
35547
35548 if $GL_GENERATE_FNMATCH_H; then
35549 GL_GENERATE_FNMATCH_H_TRUE=
35550 GL_GENERATE_FNMATCH_H_FALSE='#'
35551 else
35552 GL_GENERATE_FNMATCH_H_TRUE='#'
35553 GL_GENERATE_FNMATCH_H_FALSE=
35554 fi
35555 :
35556 if test -z "${GL_GENERATE_FNMATCH_H_TRUE}" && test -z "${GL_GENERATE_FNMATCH_H_FALSE}"; then
35557 GL_GENERATE_FNMATCH_H_TRUE='#'
35558 GL_GENERATE_FNMATCH_H_FALSE='#'
35559 fi
35560
35561
35562
35563
35564
35565
35566
35567
35568
35569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether free is known to preserve errno" >&5
35570 printf %s "checking whether free is known to preserve errno... " >&6; }
35571 if test ${gl_cv_func_free_preserves_errno+y}
35572 then :
35573 printf %s "(cached) " >&6
35574 else $as_nop
35575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35576 /* end confdefs.h. */
35577 #include <stdlib.h>
35578
35579 int
35580 main (void)
35581 {
35582 #if 2 < __GLIBC__ + (33 <= __GLIBC_MINOR__)
35583 #elif defined __OpenBSD__
35584 #elif defined __sun
35585 #else
35586 #error "'free' is not known to preserve errno"
35587 #endif
35588
35589 ;
35590 return 0;
35591 }
35592 _ACEOF
35593 if ac_fn_c_try_compile "$LINENO"
35594 then :
35595 gl_cv_func_free_preserves_errno=yes
35596 else $as_nop
35597 gl_cv_func_free_preserves_errno=no
35598 fi
35599 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
35600
35601 fi
35602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_free_preserves_errno" >&5
35603 printf "%s\n" "$gl_cv_func_free_preserves_errno" >&6; }
35604
35605 case $gl_cv_func_free_preserves_errno in
35606 *yes)
35607
35608 printf "%s\n" "#define HAVE_FREE_POSIX 1" >>confdefs.h
35609
35610 ;;
35611 *) REPLACE_FREE=1 ;;
35612 esac
35613
35614
35615 if test $REPLACE_FREE = 1; then
35616 GL_COND_OBJ_FREE_TRUE=
35617 GL_COND_OBJ_FREE_FALSE='#'
35618 else
35619 GL_COND_OBJ_FREE_TRUE='#'
35620 GL_COND_OBJ_FREE_FALSE=
35621 fi
35622 :
35623 if test -z "${GL_COND_OBJ_FREE_TRUE}" && test -z "${GL_COND_OBJ_FREE_FALSE}"; then
35624 GL_COND_OBJ_FREE_TRUE='#'
35625 GL_COND_OBJ_FREE_FALSE='#'
35626 fi
35627
35628 if test -z "$GL_COND_OBJ_FREE_TRUE"; then :
35629
35630 :
35631
35632 fi
35633
35634
35635
35636
35637
35638
35639
35640
35641
35642 GL_GNULIB_FREE_POSIX=1
35643
35644
35645
35646
35647
35648 printf "%s\n" "#define GNULIB_TEST_FREE_POSIX 1" >>confdefs.h
35649
35650
35651
35652
35653
35654
35655
35656 case "$host_os" in
35657 mingw* | solaris*)
35658 REPLACE_FSTAT=1
35659 ;;
35660 esac
35661
35662
35663
35664
35665 if test $REPLACE_FSTAT = 1; then
35666 GL_COND_OBJ_FSTAT_TRUE=
35667 GL_COND_OBJ_FSTAT_FALSE='#'
35668 else
35669 GL_COND_OBJ_FSTAT_TRUE='#'
35670 GL_COND_OBJ_FSTAT_FALSE=
35671 fi
35672 :
35673 if test -z "${GL_COND_OBJ_FSTAT_TRUE}" && test -z "${GL_COND_OBJ_FSTAT_FALSE}"; then
35674 GL_COND_OBJ_FSTAT_TRUE='#'
35675 GL_COND_OBJ_FSTAT_FALSE='#'
35676 fi
35677
35678 if test -z "$GL_COND_OBJ_FSTAT_TRUE"; then :
35679
35680 case "$host_os" in
35681 mingw*)
35682
35683
35684
35685
35686
35687
35688
35689
35690 gl_LIBOBJS="$gl_LIBOBJS stat-w32.$ac_objext"
35691
35692 ;;
35693 esac
35694
35695
35696
35697 :
35698
35699
35700 fi
35701
35702
35703
35704
35705
35706
35707
35708
35709
35710 GL_GNULIB_FSTAT=1
35711
35712
35713
35714
35715
35716 printf "%s\n" "#define GNULIB_TEST_FSTAT 1" >>confdefs.h
35717
35718
35719
35720
35721
35722
35723
35724
35725
35726
35727
35728
35729 if test $ac_cv_func_getdelim = yes; then
35730 HAVE_GETDELIM=1
35731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working getdelim function" >&5
35732 printf %s "checking for working getdelim function... " >&6; }
35733 if test ${gl_cv_func_working_getdelim+y}
35734 then :
35735 printf %s "(cached) " >&6
35736 else $as_nop
35737 case "$host_os" in
35738 darwin*)
35739 gl_cv_func_working_getdelim=no ;;
35740 *)
35741 echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
35742 if test "$cross_compiling" = yes
35743 then :
35744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35745 /* end confdefs.h. */
35746
35747 #include <features.h>
35748 #ifdef __GNU_LIBRARY__
35749 #if (__GLIBC__ >= 2) && !defined __UCLIBC__
35750 Lucky GNU user
35751 #endif
35752 #endif
35753
35754 _ACEOF
35755 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35756 $EGREP "Lucky GNU user" >/dev/null 2>&1
35757 then :
35758 gl_cv_func_working_getdelim="guessing yes"
35759 else $as_nop
35760 case "$host_os" in
35761 *-musl*) gl_cv_func_working_getdelim="guessing yes" ;;
35762 *) gl_cv_func_working_getdelim="$gl_cross_guess_normal" ;;
35763 esac
35764
35765 fi
35766 rm -rf conftest*
35767
35768
35769 else $as_nop
35770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35771 /* end confdefs.h. */
35772
35773 # include <stdio.h>
35774 # include <stdlib.h>
35775 # include <string.h>
35776 int main ()
35777 {
35778 FILE *in = fopen ("./conftest.data", "r");
35779 if (!in)
35780 return 1;
35781 {
35782 /* Test result for a NULL buffer and a zero size.
35783 Based on a test program from Karl Heuer. */
35784 char *line = NULL;
35785 size_t siz = 0;
35786 int len = getdelim (&line, &siz, '\n', in);
35787 if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
35788 { free (line); fclose (in); return 2; }
35789 free (line);
35790 }
35791 {
35792 /* Test result for a NULL buffer and a non-zero size.
35793 This crashes on FreeBSD 8.0. */
35794 char *line = NULL;
35795 size_t siz = (size_t)(~0) / 4;
35796 if (getdelim (&line, &siz, '\n', in) == -1)
35797 { fclose (in); return 3; }
35798 free (line);
35799 }
35800 fclose (in);
35801 return 0;
35802 }
35803
35804 _ACEOF
35805 if ac_fn_c_try_run "$LINENO"
35806 then :
35807 gl_cv_func_working_getdelim=yes
35808 else $as_nop
35809 gl_cv_func_working_getdelim=no
35810 fi
35811 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
35812 conftest.$ac_objext conftest.beam conftest.$ac_ext
35813 fi
35814
35815 ;;
35816 esac
35817
35818 fi
35819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_getdelim" >&5
35820 printf "%s\n" "$gl_cv_func_working_getdelim" >&6; }
35821 case "$gl_cv_func_working_getdelim" in
35822 *yes) ;;
35823 *) REPLACE_GETDELIM=1 ;;
35824 esac
35825 else
35826 HAVE_GETDELIM=0
35827 fi
35828
35829 if test $ac_cv_have_decl_getdelim = no; then
35830 HAVE_DECL_GETDELIM=0
35831 fi
35832
35833
35834 if test $HAVE_GETDELIM = 0 || test $REPLACE_GETDELIM = 1; then
35835 GL_COND_OBJ_GETDELIM_TRUE=
35836 GL_COND_OBJ_GETDELIM_FALSE='#'
35837 else
35838 GL_COND_OBJ_GETDELIM_TRUE='#'
35839 GL_COND_OBJ_GETDELIM_FALSE=
35840 fi
35841 :
35842 if test -z "${GL_COND_OBJ_GETDELIM_TRUE}" && test -z "${GL_COND_OBJ_GETDELIM_FALSE}"; then
35843 GL_COND_OBJ_GETDELIM_TRUE='#'
35844 GL_COND_OBJ_GETDELIM_FALSE='#'
35845 fi
35846
35847 if test -z "$GL_COND_OBJ_GETDELIM_TRUE"; then :
35848
35849
35850 ac_fn_c_check_func "$LINENO" "flockfile" "ac_cv_func_flockfile"
35851 if test "x$ac_cv_func_flockfile" = xyes
35852 then :
35853 printf "%s\n" "#define HAVE_FLOCKFILE 1" >>confdefs.h
35854
35855 fi
35856 ac_fn_c_check_func "$LINENO" "funlockfile" "ac_cv_func_funlockfile"
35857 if test "x$ac_cv_func_funlockfile" = xyes
35858 then :
35859 printf "%s\n" "#define HAVE_FUNLOCKFILE 1" >>confdefs.h
35860
35861 fi
35862
35863 ac_fn_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
35864 if test "x$ac_cv_have_decl_getc_unlocked" = xyes
35865 then :
35866 ac_have_decl=1
35867 else $as_nop
35868 ac_have_decl=0
35869 fi
35870 printf "%s\n" "#define HAVE_DECL_GETC_UNLOCKED $ac_have_decl" >>confdefs.h
35871
35872
35873
35874 fi
35875
35876
35877
35878
35879
35880
35881
35882
35883
35884 GL_GNULIB_GETDELIM=1
35885
35886
35887
35888
35889
35890 printf "%s\n" "#define GNULIB_TEST_GETDELIM 1" >>confdefs.h
35891
35892
35893
35894
35895
35896
35897
35898
35899 if test $ac_cv_func_getdtablesize = yes &&
35900 test $ac_cv_have_decl_getdtablesize = yes; then
35901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether getdtablesize works" >&5
35902 printf %s "checking whether getdtablesize works... " >&6; }
35903 if test ${gl_cv_func_getdtablesize_works+y}
35904 then :
35905 printf %s "(cached) " >&6
35906 else $as_nop
35907 case "$host_os" in
35908 vms*) gl_cv_func_getdtablesize_works="no (limitation)" ;;
35909 *)
35910 if test "$cross_compiling" = yes
35911 then :
35912 case "$host_os" in
35913 cygwin*) # on cygwin 1.5.25, getdtablesize() automatically grows
35914 gl_cv_func_getdtablesize_works="guessing no" ;;
35915 *) gl_cv_func_getdtablesize_works="guessing yes" ;;
35916 esac
35917
35918 else $as_nop
35919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35920 /* end confdefs.h. */
35921
35922 #include <unistd.h>
35923
35924
35925 $gl_mda_defines
35926
35927
35928 int
35929 main (void)
35930 {
35931 int size = getdtablesize();
35932 if (dup2 (0, getdtablesize()) != -1)
35933 return 1;
35934 if (size != getdtablesize())
35935 return 2;
35936
35937 ;
35938 return 0;
35939 }
35940 _ACEOF
35941 if ac_fn_c_try_run "$LINENO"
35942 then :
35943 gl_cv_func_getdtablesize_works=yes
35944 else $as_nop
35945 gl_cv_func_getdtablesize_works=no
35946 fi
35947 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
35948 conftest.$ac_objext conftest.beam conftest.$ac_ext
35949 fi
35950
35951 ;;
35952 esac
35953
35954 fi
35955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getdtablesize_works" >&5
35956 printf "%s\n" "$gl_cv_func_getdtablesize_works" >&6; }
35957 case "$gl_cv_func_getdtablesize_works" in
35958 *yes | "no (limitation)") ;;
35959 *) REPLACE_GETDTABLESIZE=1 ;;
35960 esac
35961 else
35962 HAVE_GETDTABLESIZE=0
35963 fi
35964
35965
35966 if test $HAVE_GETDTABLESIZE = 0 || test $REPLACE_GETDTABLESIZE = 1; then
35967 GL_COND_OBJ_GETDTABLESIZE_TRUE=
35968 GL_COND_OBJ_GETDTABLESIZE_FALSE='#'
35969 else
35970 GL_COND_OBJ_GETDTABLESIZE_TRUE='#'
35971 GL_COND_OBJ_GETDTABLESIZE_FALSE=
35972 fi
35973 :
35974 if test -z "${GL_COND_OBJ_GETDTABLESIZE_TRUE}" && test -z "${GL_COND_OBJ_GETDTABLESIZE_FALSE}"; then
35975 GL_COND_OBJ_GETDTABLESIZE_TRUE='#'
35976 GL_COND_OBJ_GETDTABLESIZE_FALSE='#'
35977 fi
35978
35979 if test -z "$GL_COND_OBJ_GETDTABLESIZE_TRUE"; then :
35980
35981 :
35982
35983 fi
35984
35985
35986
35987
35988
35989
35990
35991
35992
35993 GL_GNULIB_GETDTABLESIZE=1
35994
35995
35996
35997
35998
35999 printf "%s\n" "#define GNULIB_TEST_GETDTABLESIZE 1" >>confdefs.h
36000
36001
36002
36003
36004
36005
36006
36007
36008
36009
36010 gl_getline_needs_run_time_check=no
36011 ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
36012 if test "x$ac_cv_func_getline" = xyes
36013 then :
36014 gl_getline_needs_run_time_check=yes
36015 else $as_nop
36016 am_cv_func_working_getline=no
36017 fi
36018
36019 if test $gl_getline_needs_run_time_check = yes; then
36020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working getline function" >&5
36021 printf %s "checking for working getline function... " >&6; }
36022 if test ${am_cv_func_working_getline+y}
36023 then :
36024 printf %s "(cached) " >&6
36025 else $as_nop
36026 echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
36027 if test "$cross_compiling" = yes
36028 then :
36029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36030 /* end confdefs.h. */
36031
36032 #include <features.h>
36033 #ifdef __GNU_LIBRARY__
36034 #if (__GLIBC__ >= 2) && !defined __UCLIBC__
36035 Lucky GNU user
36036 #endif
36037 #endif
36038
36039 _ACEOF
36040 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36041 $EGREP "Lucky GNU user" >/dev/null 2>&1
36042 then :
36043 am_cv_func_working_getline="guessing yes"
36044 else $as_nop
36045 case "$host_os" in
36046 *-musl*) am_cv_func_working_getline="guessing yes" ;;
36047 *) am_cv_func_working_getline="$gl_cross_guess_normal" ;;
36048 esac
36049
36050 fi
36051 rm -rf conftest*
36052
36053
36054 else $as_nop
36055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36056 /* end confdefs.h. */
36057
36058 # include <stdio.h>
36059 # include <stdlib.h>
36060 # include <string.h>
36061 int main ()
36062 {
36063 FILE *in = fopen ("./conftest.data", "r");
36064 if (!in)
36065 return 1;
36066 {
36067 /* Test result for a NULL buffer and a zero size.
36068 Based on a test program from Karl Heuer. */
36069 char *line = NULL;
36070 size_t siz = 0;
36071 int len = getline (&line, &siz, in);
36072 if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
36073 { free (line); fclose (in); return 2; }
36074 free (line);
36075 }
36076 {
36077 /* Test result for a NULL buffer and a non-zero size.
36078 This crashes on FreeBSD 8.0. */
36079 char *line = NULL;
36080 size_t siz = (size_t)(~0) / 4;
36081 if (getline (&line, &siz, in) == -1)
36082 { fclose (in); return 3; }
36083 free (line);
36084 }
36085 fclose (in);
36086 return 0;
36087 }
36088
36089 _ACEOF
36090 if ac_fn_c_try_run "$LINENO"
36091 then :
36092 am_cv_func_working_getline=yes
36093 else $as_nop
36094 am_cv_func_working_getline=no
36095 fi
36096 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
36097 conftest.$ac_objext conftest.beam conftest.$ac_ext
36098 fi
36099
36100
36101 fi
36102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_working_getline" >&5
36103 printf "%s\n" "$am_cv_func_working_getline" >&6; }
36104 fi
36105
36106 if test $ac_cv_have_decl_getline = no; then
36107 HAVE_DECL_GETLINE=0
36108 fi
36109
36110 case "$am_cv_func_working_getline" in
36111 *yes) ;;
36112 *)
36113 REPLACE_GETLINE=1
36114 ;;
36115 esac
36116
36117
36118 if test $REPLACE_GETLINE = 1; then
36119 GL_COND_OBJ_GETLINE_TRUE=
36120 GL_COND_OBJ_GETLINE_FALSE='#'
36121 else
36122 GL_COND_OBJ_GETLINE_TRUE='#'
36123 GL_COND_OBJ_GETLINE_FALSE=
36124 fi
36125 :
36126 if test -z "${GL_COND_OBJ_GETLINE_TRUE}" && test -z "${GL_COND_OBJ_GETLINE_FALSE}"; then
36127 GL_COND_OBJ_GETLINE_TRUE='#'
36128 GL_COND_OBJ_GETLINE_FALSE='#'
36129 fi
36130
36131 if test -z "$GL_COND_OBJ_GETLINE_TRUE"; then :
36132
36133
36134 :
36135
36136
36137 fi
36138
36139
36140
36141
36142
36143
36144
36145
36146
36147 GL_GNULIB_GETLINE=1
36148
36149
36150
36151
36152
36153 printf "%s\n" "#define GNULIB_TEST_GETLINE 1" >>confdefs.h
36154
36155
36156
36157
36158
36159
36160
36161
36162
36163
36164
36165
36166 REPLACE_GETOPT=0
36167 if test -n "$gl_replace_getopt"; then
36168 REPLACE_GETOPT=1
36169 fi
36170
36171 GL_GENERATE_GETOPT_H=false
36172 GL_GENERATE_GETOPT_CDEFS_H=false
36173 if test $REPLACE_GETOPT = 1; then
36174
36175
36176 if test $ac_cv_header_sys_cdefs_h = yes; then
36177 HAVE_SYS_CDEFS_H=1
36178 else
36179 HAVE_SYS_CDEFS_H=0
36180 fi
36181
36182
36183
36184 printf "%s\n" "#define __GETOPT_PREFIX rpl_" >>confdefs.h
36185
36186 GL_GENERATE_GETOPT_H=true
36187 GL_GENERATE_GETOPT_CDEFS_H=true
36188
36189 fi
36190
36191
36192
36193
36194
36195 case "$GL_GENERATE_GETOPT_H" in
36196 false) GETOPT_H='' ;;
36197 true)
36198 if test -z "$GETOPT_H"; then
36199 GETOPT_H="${gl_source_base_prefix}getopt.h"
36200 fi
36201 ;;
36202 *) echo "*** GL_GENERATE_GETOPT_H is not set correctly" 1>&2; exit 1 ;;
36203 esac
36204
36205
36206 if $GL_GENERATE_GETOPT_H; then
36207 GL_GENERATE_GETOPT_H_TRUE=
36208 GL_GENERATE_GETOPT_H_FALSE='#'
36209 else
36210 GL_GENERATE_GETOPT_H_TRUE='#'
36211 GL_GENERATE_GETOPT_H_FALSE=
36212 fi
36213 :
36214 if test -z "${GL_GENERATE_GETOPT_H_TRUE}" && test -z "${GL_GENERATE_GETOPT_H_FALSE}"; then
36215 GL_GENERATE_GETOPT_H_TRUE='#'
36216 GL_GENERATE_GETOPT_H_FALSE='#'
36217 fi
36218
36219
36220
36221
36222
36223
36224
36225
36226
36227 case "$GL_GENERATE_GETOPT_CDEFS_H" in
36228 false) GETOPT_CDEFS_H='' ;;
36229 true)
36230 if test -z "$GETOPT_CDEFS_H"; then
36231 GETOPT_CDEFS_H="${gl_source_base_prefix}getopt-cdefs.h"
36232 fi
36233 ;;
36234 *) echo "*** GL_GENERATE_GETOPT_CDEFS_H is not set correctly" 1>&2; exit 1 ;;
36235 esac
36236
36237
36238 if $GL_GENERATE_GETOPT_CDEFS_H; then
36239 GL_GENERATE_GETOPT_CDEFS_H_TRUE=
36240 GL_GENERATE_GETOPT_CDEFS_H_FALSE='#'
36241 else
36242 GL_GENERATE_GETOPT_CDEFS_H_TRUE='#'
36243 GL_GENERATE_GETOPT_CDEFS_H_FALSE=
36244 fi
36245 :
36246 if test -z "${GL_GENERATE_GETOPT_CDEFS_H_TRUE}" && test -z "${GL_GENERATE_GETOPT_CDEFS_H_FALSE}"; then
36247 GL_GENERATE_GETOPT_CDEFS_H_TRUE='#'
36248 GL_GENERATE_GETOPT_CDEFS_H_FALSE='#'
36249 fi
36250
36251
36252
36253
36254
36255
36256
36257 if test $REPLACE_GETOPT = 1; then
36258 GL_COND_OBJ_GETOPT_TRUE=
36259 GL_COND_OBJ_GETOPT_FALSE='#'
36260 else
36261 GL_COND_OBJ_GETOPT_TRUE='#'
36262 GL_COND_OBJ_GETOPT_FALSE=
36263 fi
36264 :
36265 if test -z "${GL_COND_OBJ_GETOPT_TRUE}" && test -z "${GL_COND_OBJ_GETOPT_FALSE}"; then
36266 GL_COND_OBJ_GETOPT_TRUE='#'
36267 GL_COND_OBJ_GETOPT_FALSE='#'
36268 fi
36269
36270 if test -z "$GL_COND_OBJ_GETOPT_TRUE"; then :
36271
36272
36273
36274
36275
36276
36277
36278 GL_GNULIB_UNISTD_H_GETOPT=1
36279
36280
36281
36282 fi
36283
36284
36285
36286
36287
36288
36289
36290
36291
36292 GL_GNULIB_GETOPT_POSIX=1
36293
36294
36295
36296
36297
36298 printf "%s\n" "#define GNULIB_TEST_GETOPT_POSIX 1" >>confdefs.h
36299
36300
36301
36302
36303
36304
36305
36306 if test "$ac_cv_func_getrandom" != yes; then
36307 HAVE_GETRANDOM=0
36308 else
36309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether getrandom is compatible with its GNU+BSD signature" >&5
36310 printf %s "checking whether getrandom is compatible with its GNU+BSD signature... " >&6; }
36311 if test ${gl_cv_func_getrandom_ok+y}
36312 then :
36313 printf %s "(cached) " >&6
36314 else $as_nop
36315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36316 /* end confdefs.h. */
36317 /* Additional includes are needed before <sys/random.h> on uClibc
36318 and Mac OS X. */
36319 #include <sys/types.h>
36320 #include <stdlib.h>
36321 #include <sys/random.h>
36322 ssize_t getrandom (void *, size_t, unsigned int);
36323
36324 int
36325 main (void)
36326 {
36327
36328 ;
36329 return 0;
36330 }
36331
36332 _ACEOF
36333 if ac_fn_c_try_compile "$LINENO"
36334 then :
36335 gl_cv_func_getrandom_ok=yes
36336 else $as_nop
36337 gl_cv_func_getrandom_ok=no
36338 fi
36339 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36340
36341 fi
36342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getrandom_ok" >&5
36343 printf "%s\n" "$gl_cv_func_getrandom_ok" >&6; }
36344 if test $gl_cv_func_getrandom_ok = no; then
36345 REPLACE_GETRANDOM=1
36346 fi
36347 fi
36348
36349 case "$host_os" in
36350 mingw*)
36351 ac_fn_c_check_header_compile "$LINENO" "bcrypt.h" "ac_cv_header_bcrypt_h" "#include <windows.h>
36352
36353 "
36354 if test "x$ac_cv_header_bcrypt_h" = xyes
36355 then :
36356 printf "%s\n" "#define HAVE_BCRYPT_H 1" >>confdefs.h
36357
36358 fi
36359
36360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the bcrypt library is guaranteed to be present" >&5
36361 printf %s "checking whether the bcrypt library is guaranteed to be present... " >&6; }
36362 if test ${gl_cv_lib_assume_bcrypt+y}
36363 then :
36364 printf %s "(cached) " >&6
36365 else $as_nop
36366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36367 /* end confdefs.h. */
36368 #include <windows.h>
36369 int
36370 main (void)
36371 {
36372 #if !(_WIN32_WINNT >= _WIN32_WINNT_WIN7)
36373 cannot assume it
36374 #endif
36375
36376 ;
36377 return 0;
36378 }
36379
36380 _ACEOF
36381 if ac_fn_c_try_compile "$LINENO"
36382 then :
36383 gl_cv_lib_assume_bcrypt=yes
36384 else $as_nop
36385 gl_cv_lib_assume_bcrypt=no
36386 fi
36387 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36388
36389 fi
36390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_lib_assume_bcrypt" >&5
36391 printf "%s\n" "$gl_cv_lib_assume_bcrypt" >&6; }
36392 if test $gl_cv_lib_assume_bcrypt = yes; then
36393
36394 printf "%s\n" "#define HAVE_LIB_BCRYPT 1" >>confdefs.h
36395
36396 LIB_GETRANDOM='-lbcrypt'
36397 else
36398 LIB_GETRANDOM='-ladvapi32'
36399 fi
36400 ;;
36401 *)
36402 LIB_GETRANDOM= ;;
36403 esac
36404
36405
36406
36407 if test $HAVE_GETRANDOM = 0 || test $REPLACE_GETRANDOM = 1; then
36408 GL_COND_OBJ_GETRANDOM_TRUE=
36409 GL_COND_OBJ_GETRANDOM_FALSE='#'
36410 else
36411 GL_COND_OBJ_GETRANDOM_TRUE='#'
36412 GL_COND_OBJ_GETRANDOM_FALSE=
36413 fi
36414 :
36415 if test -z "${GL_COND_OBJ_GETRANDOM_TRUE}" && test -z "${GL_COND_OBJ_GETRANDOM_FALSE}"; then
36416 GL_COND_OBJ_GETRANDOM_TRUE='#'
36417 GL_COND_OBJ_GETRANDOM_FALSE='#'
36418 fi
36419
36420
36421
36422
36423
36424
36425
36426
36427
36428
36429 GL_GNULIB_GETRANDOM=1
36430
36431
36432
36433
36434
36435 printf "%s\n" "#define GNULIB_TEST_GETRANDOM 1" >>confdefs.h
36436
36437
36438
36439
36440
36441
36442
36443
36444 LIB_HARD_LOCALE="$LIB_SETLOCALE_NULL"
36445
36446
36447
36448
36449
36450
36451
36452
36453
36454
36455
36456
36457
36458 if test $ac_cv_func_isblank = no; then
36459 HAVE_ISBLANK=0
36460 fi
36461
36462
36463 if test $HAVE_ISBLANK = 0; then
36464 GL_COND_OBJ_ISBLANK_TRUE=
36465 GL_COND_OBJ_ISBLANK_FALSE='#'
36466 else
36467 GL_COND_OBJ_ISBLANK_TRUE='#'
36468 GL_COND_OBJ_ISBLANK_FALSE=
36469 fi
36470 :
36471 if test -z "${GL_COND_OBJ_ISBLANK_TRUE}" && test -z "${GL_COND_OBJ_ISBLANK_FALSE}"; then
36472 GL_COND_OBJ_ISBLANK_TRUE='#'
36473 GL_COND_OBJ_ISBLANK_FALSE='#'
36474 fi
36475
36476
36477
36478 printf "%s\n" "#define GNULIB_ISBLANK 1" >>confdefs.h
36479
36480
36481
36482
36483
36484
36485
36486
36487
36488
36489
36490 GL_GNULIB_ISBLANK=1
36491
36492
36493
36494
36495
36496
36497
36498
36499
36500
36501
36502
36503
36504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the __inline keyword" >&5
36505 printf %s "checking whether the compiler supports the __inline keyword... " >&6; }
36506 if test ${gl_cv_c___inline+y}
36507 then :
36508 printf %s "(cached) " >&6
36509 else $as_nop
36510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36511 /* end confdefs.h. */
36512 typedef int foo_t;
36513 static __inline foo_t foo (void) { return 0; }
36514 int
36515 main (void)
36516 {
36517 return foo ();
36518 ;
36519 return 0;
36520 }
36521 _ACEOF
36522 if ac_fn_c_try_compile "$LINENO"
36523 then :
36524 gl_cv_c___inline=yes
36525 else $as_nop
36526 gl_cv_c___inline=no
36527 fi
36528 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36529 fi
36530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c___inline" >&5
36531 printf "%s\n" "$gl_cv_c___inline" >&6; }
36532 if test $gl_cv_c___inline = yes; then
36533
36534 printf "%s\n" "#define HAVE___INLINE 1" >>confdefs.h
36535
36536 fi
36537
36538
36539
36540
36541
36542
36543 case "$GL_GENERATE_LIMITS_H" in
36544 false) LIMITS_H='' ;;
36545 true)
36546 if test -z "$LIMITS_H"; then
36547 LIMITS_H="${gl_source_base_prefix}limits.h"
36548 fi
36549 ;;
36550 *) echo "*** GL_GENERATE_LIMITS_H is not set correctly" 1>&2; exit 1 ;;
36551 esac
36552
36553
36554 if $GL_GENERATE_LIMITS_H; then
36555 GL_GENERATE_LIMITS_H_TRUE=
36556 GL_GENERATE_LIMITS_H_FALSE='#'
36557 else
36558 GL_GENERATE_LIMITS_H_TRUE='#'
36559 GL_GENERATE_LIMITS_H_FALSE=
36560 fi
36561 :
36562 if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
36563 GL_GENERATE_LIMITS_H_TRUE='#'
36564 GL_GENERATE_LIMITS_H_FALSE='#'
36565 fi
36566
36567
36568
36569
36570
36571
36572
36573
36574
36575 LOCALCHARSET_TESTS_ENVIRONMENT=
36576
36577
36578
36579
36580
36581
36582
36583
36584
36585
36586
36587
36588 if test $REPLACE_STRUCT_LCONV = 1; then
36589 REPLACE_LOCALECONV=1
36590 fi
36591
36592
36593 if test $REPLACE_LOCALECONV = 1; then
36594 GL_COND_OBJ_LOCALECONV_TRUE=
36595 GL_COND_OBJ_LOCALECONV_FALSE='#'
36596 else
36597 GL_COND_OBJ_LOCALECONV_TRUE='#'
36598 GL_COND_OBJ_LOCALECONV_FALSE=
36599 fi
36600 :
36601 if test -z "${GL_COND_OBJ_LOCALECONV_TRUE}" && test -z "${GL_COND_OBJ_LOCALECONV_FALSE}"; then
36602 GL_COND_OBJ_LOCALECONV_TRUE='#'
36603 GL_COND_OBJ_LOCALECONV_FALSE='#'
36604 fi
36605
36606 if test -z "$GL_COND_OBJ_LOCALECONV_TRUE"; then :
36607
36608
36609 ac_fn_c_check_member "$LINENO" "struct lconv" "decimal_point" "ac_cv_member_struct_lconv_decimal_point" "#include <locale.h>
36610 "
36611 if test "x$ac_cv_member_struct_lconv_decimal_point" = xyes
36612 then :
36613
36614 printf "%s\n" "#define HAVE_STRUCT_LCONV_DECIMAL_POINT 1" >>confdefs.h
36615
36616
36617 fi
36618
36619
36620
36621 fi
36622
36623
36624
36625
36626
36627
36628
36629
36630
36631 GL_GNULIB_LOCALECONV=1
36632
36633
36634
36635
36636
36637 printf "%s\n" "#define GNULIB_TEST_LOCALECONV 1" >>confdefs.h
36638
36639
36640
36641
36642
36643 if test "$gl_threads_api" = posix; then
36644 # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
36645 # pthread_rwlock_* functions.
36646 has_rwlock=false
36647 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
36648 "
36649 if test "x$ac_cv_type_pthread_rwlock_t" = xyes
36650 then :
36651 has_rwlock=true
36652
36653 printf "%s\n" "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
36654
36655 fi
36656
36657 if $has_rwlock; then
36658
36659
36660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthread_rwlock_rdlock prefers a writer to a reader" >&5
36661 printf %s "checking whether pthread_rwlock_rdlock prefers a writer to a reader... " >&6; }
36662 if test ${gl_cv_pthread_rwlock_rdlock_prefer_writer+y}
36663 then :
36664 printf %s "(cached) " >&6
36665 else $as_nop
36666 save_LIBS="$LIBS"
36667 LIBS="$LIBS $LIBMULTITHREAD"
36668 if test "$cross_compiling" = yes
36669 then :
36670 case "$host_os" in
36671 # Guess no on glibc systems.
36672 *-gnu* | gnu*) gl_cv_pthread_rwlock_rdlock_prefer_writer="guessing no" ;;
36673 # Guess no on musl systems.
36674 *-musl*) gl_cv_pthread_rwlock_rdlock_prefer_writer="guessing no" ;;
36675 # Guess no on bionic systems.
36676 *-android*) gl_cv_pthread_rwlock_rdlock_prefer_writer="guessing no" ;;
36677 # Guess yes on native Windows with the mingw-w64 winpthreads library.
36678 # Guess no on native Windows with the gnulib windows-rwlock module.
36679 mingw*) if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
36680 gl_cv_pthread_rwlock_rdlock_prefer_writer="guessing yes"
36681 else
36682 gl_cv_pthread_rwlock_rdlock_prefer_writer="guessing no"
36683 fi
36684 ;;
36685 # If we don't know, obey --enable-cross-guesses.
36686 *) gl_cv_pthread_rwlock_rdlock_prefer_writer="$gl_cross_guess_normal" ;;
36687 esac
36688
36689 else $as_nop
36690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36691 /* end confdefs.h. */
36692
36693 #include <errno.h>
36694 #include <pthread.h>
36695 #include <stdlib.h>
36696 #include <unistd.h>
36697
36698 #define SUCCEED() exit (0)
36699 #define FAILURE() exit (1)
36700 #define UNEXPECTED(n) (exit (10 + (n)))
36701
36702 /* The main thread creates the waiting writer and the requesting reader threads
36703 in the default way; this guarantees that they have the same priority.
36704 We can reuse the main thread as first reader thread. */
36705
36706 static pthread_rwlock_t lock;
36707 static pthread_t reader1;
36708 static pthread_t writer;
36709 static pthread_t reader2;
36710 static pthread_t timer;
36711 /* Used to pass control from writer to reader2 and from reader2 to timer,
36712 as in a relay race.
36713 Passing control from one running thread to another running thread
36714 is most likely faster than to create the second thread. */
36715 static pthread_mutex_t baton;
36716
36717 static void *
36718 timer_func (void *ignored)
36719 {
36720 /* Step 13 (can be before or after step 12):
36721 The timer thread takes the baton, then waits a moment to make sure
36722 it can tell whether the second reader thread is blocked at step 12. */
36723 if (pthread_mutex_lock (&baton))
36724 UNEXPECTED (13);
36725 usleep (100000);
36726 /* By the time we get here, it's clear that the second reader thread is
36727 blocked at step 12. This is the desired behaviour. */
36728 SUCCEED ();
36729 }
36730
36731 static void *
36732 reader2_func (void *ignored)
36733 {
36734 int err;
36735
36736 /* Step 8 (can be before or after step 7):
36737 The second reader thread takes the baton, then waits a moment to make sure
36738 the writer thread has reached step 7. */
36739 if (pthread_mutex_lock (&baton))
36740 UNEXPECTED (8);
36741 usleep (100000);
36742 /* Step 9: The second reader thread requests the lock. */
36743 err = pthread_rwlock_tryrdlock (&lock);
36744 if (err == 0)
36745 FAILURE ();
36746 else if (err != EBUSY)
36747 UNEXPECTED (9);
36748 /* Step 10: Launch a timer, to test whether the next call blocks. */
36749 if (pthread_create (&timer, NULL, timer_func, NULL))
36750 UNEXPECTED (10);
36751 /* Step 11: Release the baton. */
36752 if (pthread_mutex_unlock (&baton))
36753 UNEXPECTED (11);
36754 /* Step 12: The second reader thread requests the lock. */
36755 err = pthread_rwlock_rdlock (&lock);
36756 if (err == 0)
36757 FAILURE ();
36758 else
36759 UNEXPECTED (12);
36760 }
36761
36762 static void *
36763 writer_func (void *ignored)
36764 {
36765 /* Step 4: Take the baton, so that the second reader thread does not go ahead
36766 too early. */
36767 if (pthread_mutex_lock (&baton))
36768 UNEXPECTED (4);
36769 /* Step 5: Create the second reader thread. */
36770 if (pthread_create (&reader2, NULL, reader2_func, NULL))
36771 UNEXPECTED (5);
36772 /* Step 6: Release the baton. */
36773 if (pthread_mutex_unlock (&baton))
36774 UNEXPECTED (6);
36775 /* Step 7: The writer thread requests the lock. */
36776 if (pthread_rwlock_wrlock (&lock))
36777 UNEXPECTED (7);
36778 return NULL;
36779 }
36780
36781 int
36782 main ()
36783 {
36784 reader1 = pthread_self ();
36785
36786 /* Step 1: The main thread initializes the lock and the baton. */
36787 if (pthread_rwlock_init (&lock, NULL))
36788 UNEXPECTED (1);
36789 if (pthread_mutex_init (&baton, NULL))
36790 UNEXPECTED (1);
36791 /* Step 2: The main thread acquires the lock as a reader. */
36792 if (pthread_rwlock_rdlock (&lock))
36793 UNEXPECTED (2);
36794 /* Step 3: Create the writer thread. */
36795 if (pthread_create (&writer, NULL, writer_func, NULL))
36796 UNEXPECTED (3);
36797 /* Job done. Go to sleep. */
36798 for (;;)
36799 {
36800 sleep (1);
36801 }
36802 }
36803
36804 _ACEOF
36805 if ac_fn_c_try_run "$LINENO"
36806 then :
36807 gl_cv_pthread_rwlock_rdlock_prefer_writer=yes
36808 else $as_nop
36809 gl_cv_pthread_rwlock_rdlock_prefer_writer=no
36810 fi
36811 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
36812 conftest.$ac_objext conftest.beam conftest.$ac_ext
36813 fi
36814
36815 LIBS="$save_LIBS"
36816
36817 fi
36818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pthread_rwlock_rdlock_prefer_writer" >&5
36819 printf "%s\n" "$gl_cv_pthread_rwlock_rdlock_prefer_writer" >&6; }
36820 case "$gl_cv_pthread_rwlock_rdlock_prefer_writer" in
36821 *yes)
36822
36823 printf "%s\n" "#define HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER 1" >>confdefs.h
36824
36825 ;;
36826 esac
36827
36828 fi
36829 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
36830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36831 /* end confdefs.h. */
36832
36833 #include <pthread.h>
36834 int
36835 main (void)
36836 {
36837
36838 #if __FreeBSD__ == 4
36839 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
36840 #elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
36841 && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
36842 error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
36843 #else
36844 int x = (int)PTHREAD_MUTEX_RECURSIVE;
36845 return !x;
36846 #endif
36847
36848 ;
36849 return 0;
36850 }
36851 _ACEOF
36852 if ac_fn_c_try_compile "$LINENO"
36853 then :
36854
36855 printf "%s\n" "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
36856
36857 fi
36858 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36859 fi
36860 :
36861
36862
36863
36864 printf "%s\n" "#define GNULIB_LOCK 1" >>confdefs.h
36865
36866
36867
36868
36869
36870
36871 if test $ac_cv_func_lstat = yes; then
36872
36873 case $host_os,$gl_cv_func_lstat_dereferences_slashed_symlink in
36874 solaris* | *no)
36875 REPLACE_LSTAT=1
36876 ;;
36877 esac
36878 else
36879 HAVE_LSTAT=0
36880 fi
36881
36882
36883 if test $REPLACE_LSTAT = 1; then
36884 GL_COND_OBJ_LSTAT_TRUE=
36885 GL_COND_OBJ_LSTAT_FALSE='#'
36886 else
36887 GL_COND_OBJ_LSTAT_TRUE='#'
36888 GL_COND_OBJ_LSTAT_FALSE=
36889 fi
36890 :
36891 if test -z "${GL_COND_OBJ_LSTAT_TRUE}" && test -z "${GL_COND_OBJ_LSTAT_FALSE}"; then
36892 GL_COND_OBJ_LSTAT_TRUE='#'
36893 GL_COND_OBJ_LSTAT_FALSE='#'
36894 fi
36895
36896 if test -z "$GL_COND_OBJ_LSTAT_TRUE"; then :
36897
36898 :
36899
36900 fi
36901
36902
36903
36904
36905
36906
36907
36908
36909
36910 GL_GNULIB_LSTAT=1
36911
36912
36913
36914
36915
36916 printf "%s\n" "#define GNULIB_TEST_LSTAT 1" >>confdefs.h
36917
36918
36919
36920
36921
36922
36923 REPLACE_MALLOC_FOR_MALLOC_GNU="$REPLACE_MALLOC_FOR_MALLOC_POSIX"
36924 if test $REPLACE_MALLOC_FOR_MALLOC_GNU = 0; then
36925
36926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether malloc (0) returns nonnull" >&5
36927 printf %s "checking whether malloc (0) returns nonnull... " >&6; }
36928 if test ${ac_cv_func_malloc_0_nonnull+y}
36929 then :
36930 printf %s "(cached) " >&6
36931 else $as_nop
36932 if test "$cross_compiling" = yes
36933 then :
36934 case "$host_os" in
36935 # Guess yes on platforms where we know the result.
36936 *-gnu* | freebsd* | netbsd* | openbsd* | bitrig* \
36937 | gnu* | *-musl* | midnightbsd* \
36938 | hpux* | solaris* | cygwin* | mingw* | msys* )
36939 ac_cv_func_malloc_0_nonnull="guessing yes" ;;
36940 # If we don't know, obey --enable-cross-guesses.
36941 *) ac_cv_func_malloc_0_nonnull="$gl_cross_guess_normal" ;;
36942 esac
36943
36944 else $as_nop
36945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36946 /* end confdefs.h. */
36947 #include <stdlib.h>
36948
36949 int
36950 main (void)
36951 {
36952 void *p = malloc (0);
36953 int result = !p;
36954 free (p);
36955 return result;
36956 ;
36957 return 0;
36958 }
36959
36960 _ACEOF
36961 if ac_fn_c_try_run "$LINENO"
36962 then :
36963 ac_cv_func_malloc_0_nonnull=yes
36964 else $as_nop
36965 ac_cv_func_malloc_0_nonnull=no
36966 fi
36967 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
36968 conftest.$ac_objext conftest.beam conftest.$ac_ext
36969 fi
36970
36971
36972 fi
36973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
36974 printf "%s\n" "$ac_cv_func_malloc_0_nonnull" >&6; }
36975 case $ac_cv_func_malloc_0_nonnull in #(
36976 *yes) :
36977 ;; #(
36978 *) :
36979 REPLACE_MALLOC_FOR_MALLOC_GNU=1 ;;
36980 esac
36981
36982 fi
36983
36984 if test $REPLACE_MALLOC_FOR_MALLOC_GNU = 1; then
36985
36986
36987
36988
36989
36990
36991
36992
36993 gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
36994
36995 fi
36996
36997
36998
36999
37000
37001
37002
37003
37004
37005 GL_GNULIB_MALLOC_GNU=1
37006
37007
37008
37009
37010
37011 printf "%s\n" "#define GNULIB_TEST_MALLOC_GNU 1" >>confdefs.h
37012
37013
37014
37015
37016 if test $REPLACE_MALLOC_FOR_MALLOC_POSIX = 1; then
37017
37018
37019
37020
37021
37022
37023
37024
37025 gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
37026
37027 fi
37028
37029
37030
37031
37032
37033
37034
37035
37036
37037 GL_GNULIB_MALLOC_POSIX=1
37038
37039
37040
37041
37042
37043 printf "%s\n" "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
37044
37045
37046
37047
37048
37049
37050
37051
37052
37053
37054
37055
37056
37057
37058
37059
37060
37061
37062
37063 if case "$host_os" in
37064 mingw*) true ;;
37065 *) test $ac_cv_func_mbsinit = yes ;;
37066 esac \
37067 && test $ac_cv_func_mbrtowc = yes; then
37068
37069
37070
37071
37072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
37073 printf %s "checking whether mbrtowc handles incomplete characters... " >&6; }
37074 if test ${gl_cv_func_mbrtowc_incomplete_state+y}
37075 then :
37076 printf %s "(cached) " >&6
37077 else $as_nop
37078
37079 case "$host_os" in
37080 # Guess no on AIX and OSF/1.
37081 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
37082 # Guess yes otherwise.
37083 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
37084 esac
37085 if test $LOCALE_JA != none; then
37086 if test "$cross_compiling" = yes
37087 then :
37088 :
37089 else $as_nop
37090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37091 /* end confdefs.h. */
37092
37093 #include <locale.h>
37094 #include <string.h>
37095 #include <wchar.h>
37096 int main ()
37097 {
37098 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
37099 {
37100 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
37101 mbstate_t state;
37102 wchar_t wc;
37103
37104 memset (&state, '\0', sizeof (mbstate_t));
37105 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
37106 if (mbsinit (&state))
37107 return 2;
37108 }
37109 return 0;
37110 }
37111 _ACEOF
37112 if ac_fn_c_try_run "$LINENO"
37113 then :
37114 gl_cv_func_mbrtowc_incomplete_state=yes
37115 else $as_nop
37116 gl_cv_func_mbrtowc_incomplete_state=no
37117 fi
37118 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
37119 conftest.$ac_objext conftest.beam conftest.$ac_ext
37120 fi
37121
37122 else
37123 if test $LOCALE_FR_UTF8 != none; then
37124 if test "$cross_compiling" = yes
37125 then :
37126 :
37127 else $as_nop
37128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37129 /* end confdefs.h. */
37130
37131 #include <locale.h>
37132 #include <string.h>
37133 #include <wchar.h>
37134 int main ()
37135 {
37136 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
37137 {
37138 const char input[] = "B\303\274\303\237er"; /* "Büßer" */
37139 mbstate_t state;
37140 wchar_t wc;
37141
37142 memset (&state, '\0', sizeof (mbstate_t));
37143 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
37144 if (mbsinit (&state))
37145 return 2;
37146 }
37147 return 0;
37148 }
37149 _ACEOF
37150 if ac_fn_c_try_run "$LINENO"
37151 then :
37152 gl_cv_func_mbrtowc_incomplete_state=yes
37153 else $as_nop
37154 gl_cv_func_mbrtowc_incomplete_state=no
37155 fi
37156 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
37157 conftest.$ac_objext conftest.beam conftest.$ac_ext
37158 fi
37159
37160 fi
37161 fi
37162
37163 fi
37164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
37165 printf "%s\n" "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
37166
37167
37168
37169
37170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
37171 printf %s "checking whether mbrtowc works as well as mbtowc... " >&6; }
37172 if test ${gl_cv_func_mbrtowc_sanitycheck+y}
37173 then :
37174 printf %s "(cached) " >&6
37175 else $as_nop
37176
37177 case "$host_os" in
37178 # Guess no on Solaris 8.
37179 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
37180 # Guess yes otherwise.
37181 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
37182 esac
37183 if test $LOCALE_ZH_CN != none; then
37184 if test "$cross_compiling" = yes
37185 then :
37186 :
37187 else $as_nop
37188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37189 /* end confdefs.h. */
37190
37191 #include <locale.h>
37192 #include <stdlib.h>
37193 #include <string.h>
37194 #include <wchar.h>
37195 int main ()
37196 {
37197 /* This fails on Solaris 8:
37198 mbrtowc returns 2, and sets wc to 0x00F0.
37199 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
37200 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
37201 {
37202 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
37203 mbstate_t state;
37204 wchar_t wc;
37205
37206 memset (&state, '\0', sizeof (mbstate_t));
37207 if (mbrtowc (&wc, input + 3, 6, &state) != 4
37208 && mbtowc (&wc, input + 3, 6) == 4)
37209 return 2;
37210 }
37211 return 0;
37212 }
37213 _ACEOF
37214 if ac_fn_c_try_run "$LINENO"
37215 then :
37216 gl_cv_func_mbrtowc_sanitycheck=yes
37217 else $as_nop
37218 gl_cv_func_mbrtowc_sanitycheck=no
37219 fi
37220 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
37221 conftest.$ac_objext conftest.beam conftest.$ac_ext
37222 fi
37223
37224 fi
37225
37226 fi
37227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
37228 printf "%s\n" "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
37229
37230 REPLACE_MBSTATE_T=0
37231 case "$gl_cv_func_mbrtowc_incomplete_state" in
37232 *yes) ;;
37233 *) REPLACE_MBSTATE_T=1 ;;
37234 esac
37235 case "$gl_cv_func_mbrtowc_sanitycheck" in
37236 *yes) ;;
37237 *) REPLACE_MBSTATE_T=1 ;;
37238 esac
37239 else
37240 REPLACE_MBSTATE_T=1
37241 fi
37242
37243
37244
37245 if test $ac_cv_func_mbrtowc = no; then
37246 HAVE_MBRTOWC=0
37247 ac_fn_check_decl "$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" "
37248 #include <wchar.h>
37249
37250 " "$ac_c_undeclared_builtin_options" "CFLAGS"
37251 if test "x$ac_cv_have_decl_mbrtowc" = xyes
37252 then :
37253 ac_have_decl=1
37254 else $as_nop
37255 ac_have_decl=0
37256 fi
37257 printf "%s\n" "#define HAVE_DECL_MBRTOWC $ac_have_decl" >>confdefs.h
37258
37259 if test $ac_cv_have_decl_mbrtowc = yes; then
37260 REPLACE_MBRTOWC=1
37261 fi
37262 else
37263 if test $REPLACE_MBSTATE_T = 1; then
37264 REPLACE_MBRTOWC=1
37265 else
37266
37267
37268
37269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL pwc argument" >&5
37270 printf %s "checking whether mbrtowc handles a NULL pwc argument... " >&6; }
37271 if test ${gl_cv_func_mbrtowc_null_arg1+y}
37272 then :
37273 printf %s "(cached) " >&6
37274 else $as_nop
37275
37276 case "$host_os" in
37277 # Guess no on Solaris.
37278 solaris*) gl_cv_func_mbrtowc_null_arg1="guessing no" ;;
37279 # Guess yes otherwise.
37280 *) gl_cv_func_mbrtowc_null_arg1="guessing yes" ;;
37281 esac
37282 if test $LOCALE_FR_UTF8 != none; then
37283 if test "$cross_compiling" = yes
37284 then :
37285 :
37286 else $as_nop
37287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37288 /* end confdefs.h. */
37289
37290 #include <locale.h>
37291 #include <stdlib.h>
37292 #include <string.h>
37293 #include <wchar.h>
37294 int main ()
37295 {
37296 int result = 0;
37297
37298 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
37299 {
37300 char input[] = "\303\237er";
37301 mbstate_t state;
37302 wchar_t wc;
37303 size_t ret;
37304
37305 memset (&state, '\0', sizeof (mbstate_t));
37306 wc = (wchar_t) 0xBADFACE;
37307 ret = mbrtowc (&wc, input, 5, &state);
37308 if (ret != 2)
37309 result |= 1;
37310 if (!mbsinit (&state))
37311 result |= 2;
37312
37313 memset (&state, '\0', sizeof (mbstate_t));
37314 ret = mbrtowc (NULL, input, 5, &state);
37315 if (ret != 2) /* Solaris 7 fails here: ret is -1. */
37316 result |= 4;
37317 if (!mbsinit (&state))
37318 result |= 8;
37319 }
37320 return result;
37321 }
37322 _ACEOF
37323 if ac_fn_c_try_run "$LINENO"
37324 then :
37325 gl_cv_func_mbrtowc_null_arg1=yes
37326 else $as_nop
37327 gl_cv_func_mbrtowc_null_arg1=no
37328 fi
37329 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
37330 conftest.$ac_objext conftest.beam conftest.$ac_ext
37331 fi
37332
37333 fi
37334
37335 fi
37336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg1" >&5
37337 printf "%s\n" "$gl_cv_func_mbrtowc_null_arg1" >&6; }
37338
37339
37340
37341
37342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
37343 printf %s "checking whether mbrtowc handles a NULL string argument... " >&6; }
37344 if test ${gl_cv_func_mbrtowc_null_arg2+y}
37345 then :
37346 printf %s "(cached) " >&6
37347 else $as_nop
37348
37349 case "$host_os" in
37350 # Guess no on OSF/1.
37351 osf*) gl_cv_func_mbrtowc_null_arg2="guessing no" ;;
37352 # Guess yes otherwise.
37353 *) gl_cv_func_mbrtowc_null_arg2="guessing yes" ;;
37354 esac
37355 if test $LOCALE_FR_UTF8 != none; then
37356 if test "$cross_compiling" = yes
37357 then :
37358 :
37359 else $as_nop
37360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37361 /* end confdefs.h. */
37362
37363 #include <locale.h>
37364 #include <string.h>
37365 #include <wchar.h>
37366 int main ()
37367 {
37368 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
37369 {
37370 mbstate_t state;
37371 wchar_t wc;
37372 int ret;
37373
37374 memset (&state, '\0', sizeof (mbstate_t));
37375 wc = (wchar_t) 0xBADFACE;
37376 mbrtowc (&wc, NULL, 5, &state);
37377 /* Check that wc was not modified. */
37378 if (wc != (wchar_t) 0xBADFACE)
37379 return 2;
37380 }
37381 return 0;
37382 }
37383 _ACEOF
37384 if ac_fn_c_try_run "$LINENO"
37385 then :
37386 gl_cv_func_mbrtowc_null_arg2=yes
37387 else $as_nop
37388 gl_cv_func_mbrtowc_null_arg2=no
37389 fi
37390 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
37391 conftest.$ac_objext conftest.beam conftest.$ac_ext
37392 fi
37393
37394 fi
37395
37396 fi
37397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg2" >&5
37398 printf "%s\n" "$gl_cv_func_mbrtowc_null_arg2" >&6; }
37399
37400
37401
37402
37403
37404
37405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
37406 printf %s "checking whether mbrtowc has a correct return value... " >&6; }
37407 if test ${gl_cv_func_mbrtowc_retval+y}
37408 then :
37409 printf %s "(cached) " >&6
37410 else $as_nop
37411
37412 case "$host_os" in
37413 # Guess no on HP-UX, Solaris, native Windows.
37414 hpux* | solaris* | mingw*) gl_cv_func_mbrtowc_retval="guessing no" ;;
37415 # Guess yes otherwise.
37416 *) gl_cv_func_mbrtowc_retval="guessing yes" ;;
37417 esac
37418 if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none \
37419 || { case "$host_os" in mingw*) true;; *) false;; esac; }; then
37420 if test "$cross_compiling" = yes
37421 then :
37422 :
37423 else $as_nop
37424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37425 /* end confdefs.h. */
37426
37427 #include <locale.h>
37428 #include <string.h>
37429 #include <wchar.h>
37430 int main ()
37431 {
37432 int result = 0;
37433 int found_some_locale = 0;
37434 /* This fails on Solaris. */
37435 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
37436 {
37437 char input[] = "B\303\274\303\237er"; /* "Büßer" */
37438 mbstate_t state;
37439 wchar_t wc;
37440
37441 memset (&state, '\0', sizeof (mbstate_t));
37442 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
37443 {
37444 input[1] = '\0';
37445 if (mbrtowc (&wc, input + 2, 5, &state) != 1)
37446 result |= 1;
37447 }
37448 found_some_locale = 1;
37449 }
37450 /* This fails on HP-UX 11.11. */
37451 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
37452 {
37453 char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
37454 mbstate_t state;
37455 wchar_t wc;
37456
37457 memset (&state, '\0', sizeof (mbstate_t));
37458 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
37459 {
37460 input[1] = '\0';
37461 if (mbrtowc (&wc, input + 2, 5, &state) != 2)
37462 result |= 2;
37463 }
37464 found_some_locale = 1;
37465 }
37466 /* This fails on native Windows. */
37467 if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
37468 {
37469 char input[] = "<\223\372\226\173\214\352>"; /* "<日本語>" */
37470 mbstate_t state;
37471 wchar_t wc;
37472
37473 memset (&state, '\0', sizeof (mbstate_t));
37474 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
37475 {
37476 input[3] = '\0';
37477 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
37478 result |= 4;
37479 }
37480 found_some_locale = 1;
37481 }
37482 if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
37483 {
37484 char input[] = "<\244\351\245\273\273\171>"; /* "<日本語>" */
37485 mbstate_t state;
37486 wchar_t wc;
37487
37488 memset (&state, '\0', sizeof (mbstate_t));
37489 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
37490 {
37491 input[3] = '\0';
37492 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
37493 result |= 8;
37494 }
37495 found_some_locale = 1;
37496 }
37497 if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
37498 {
37499 char input[] = "<\310\325\261\276\325\132>"; /* "<日本語>" */
37500 mbstate_t state;
37501 wchar_t wc;
37502
37503 memset (&state, '\0', sizeof (mbstate_t));
37504 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
37505 {
37506 input[3] = '\0';
37507 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
37508 result |= 16;
37509 }
37510 found_some_locale = 1;
37511 }
37512 return (found_some_locale ? result : 77);
37513 }
37514 _ACEOF
37515 if ac_fn_c_try_run "$LINENO"
37516 then :
37517 gl_cv_func_mbrtowc_retval=yes
37518 else $as_nop
37519 if test $? != 77; then
37520 gl_cv_func_mbrtowc_retval=no
37521 fi
37522
37523 fi
37524 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
37525 conftest.$ac_objext conftest.beam conftest.$ac_ext
37526 fi
37527
37528 fi
37529
37530 fi
37531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
37532 printf "%s\n" "$gl_cv_func_mbrtowc_retval" >&6; }
37533
37534
37535
37536
37537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
37538 printf %s "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
37539 if test ${gl_cv_func_mbrtowc_nul_retval+y}
37540 then :
37541 printf %s "(cached) " >&6
37542 else $as_nop
37543
37544 case "$host_os" in
37545 # Guess no on Solaris 8 and 9.
37546 solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
37547 # Guess yes otherwise.
37548 *) gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
37549 esac
37550 if test $LOCALE_ZH_CN != none; then
37551 if test "$cross_compiling" = yes
37552 then :
37553 :
37554 else $as_nop
37555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37556 /* end confdefs.h. */
37557
37558 #include <locale.h>
37559 #include <string.h>
37560 #include <wchar.h>
37561 int main ()
37562 {
37563 /* This fails on Solaris 8 and 9. */
37564 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
37565 {
37566 mbstate_t state;
37567 wchar_t wc;
37568
37569 memset (&state, '\0', sizeof (mbstate_t));
37570 if (mbrtowc (&wc, "", 1, &state) != 0)
37571 return 2;
37572 }
37573 return 0;
37574 }
37575 _ACEOF
37576 if ac_fn_c_try_run "$LINENO"
37577 then :
37578 gl_cv_func_mbrtowc_nul_retval=yes
37579 else $as_nop
37580 gl_cv_func_mbrtowc_nul_retval=no
37581 fi
37582 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
37583 conftest.$ac_objext conftest.beam conftest.$ac_ext
37584 fi
37585
37586 fi
37587
37588 fi
37589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
37590 printf "%s\n" "$gl_cv_func_mbrtowc_nul_retval" >&6; }
37591
37592
37593
37594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc stores incomplete characters" >&5
37595 printf %s "checking whether mbrtowc stores incomplete characters... " >&6; }
37596 if test ${gl_cv_func_mbrtowc_stores_incomplete+y}
37597 then :
37598 printf %s "(cached) " >&6
37599 else $as_nop
37600
37601 case "$host_os" in
37602 # Guess yes on native Windows.
37603 mingw*) gl_cv_func_mbrtowc_stores_incomplete="guessing yes" ;;
37604 *) gl_cv_func_mbrtowc_stores_incomplete="guessing no" ;;
37605 esac
37606 case "$host_os" in
37607 mingw*)
37608 if test "$cross_compiling" = yes
37609 then :
37610 :
37611 else $as_nop
37612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37613 /* end confdefs.h. */
37614
37615 #include <locale.h>
37616 #include <string.h>
37617 #include <wchar.h>
37618 int main ()
37619 {
37620 int result = 0;
37621 if (setlocale (LC_ALL, "French_France.65001") != NULL)
37622 {
37623 wchar_t wc = (wchar_t) 0xBADFACE;
37624 mbstate_t state;
37625
37626 memset (&state, '\0', sizeof (mbstate_t));
37627 if (mbrtowc (&wc, "\303", 1, &state) == (size_t)(-2)
37628 && wc != (wchar_t) 0xBADFACE)
37629 result |= 1;
37630 }
37631 if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
37632 {
37633 wchar_t wc = (wchar_t) 0xBADFACE;
37634 mbstate_t state;
37635
37636 memset (&state, '\0', sizeof (mbstate_t));
37637 if (mbrtowc (&wc, "\226", 1, &state) == (size_t)(-2)
37638 && wc != (wchar_t) 0xBADFACE)
37639 result |= 2;
37640 }
37641 if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
37642 {
37643 wchar_t wc = (wchar_t) 0xBADFACE;
37644 mbstate_t state;
37645
37646 memset (&state, '\0', sizeof (mbstate_t));
37647 if (mbrtowc (&wc, "\245", 1, &state) == (size_t)(-2)
37648 && wc != (wchar_t) 0xBADFACE)
37649 result |= 4;
37650 }
37651 if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
37652 {
37653 wchar_t wc = (wchar_t) 0xBADFACE;
37654 mbstate_t state;
37655
37656 memset (&state, '\0', sizeof (mbstate_t));
37657 if (mbrtowc (&wc, "\261", 1, &state) == (size_t)(-2)
37658 && wc != (wchar_t) 0xBADFACE)
37659 result |= 8;
37660 }
37661 return result;
37662 }
37663 _ACEOF
37664 if ac_fn_c_try_run "$LINENO"
37665 then :
37666 gl_cv_func_mbrtowc_stores_incomplete=no
37667 else $as_nop
37668 gl_cv_func_mbrtowc_stores_incomplete=yes
37669 fi
37670 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
37671 conftest.$ac_objext conftest.beam conftest.$ac_ext
37672 fi
37673
37674 ;;
37675 *)
37676
37677 if test $LOCALE_FR_UTF8 != none; then
37678 if test "$cross_compiling" = yes
37679 then :
37680 :
37681 else $as_nop
37682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37683 /* end confdefs.h. */
37684
37685 #include <locale.h>
37686 #include <string.h>
37687 #include <wchar.h>
37688 int main ()
37689 {
37690 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
37691 {
37692 wchar_t wc = (wchar_t) 0xBADFACE;
37693 mbstate_t state;
37694
37695 memset (&state, '\0', sizeof (mbstate_t));
37696 if (mbrtowc (&wc, "\303", 1, &state) == (size_t)(-2)
37697 && wc != (wchar_t) 0xBADFACE)
37698 return 1;
37699 }
37700 return 0;
37701 }
37702 _ACEOF
37703 if ac_fn_c_try_run "$LINENO"
37704 then :
37705 gl_cv_func_mbrtowc_stores_incomplete=no
37706 else $as_nop
37707 gl_cv_func_mbrtowc_stores_incomplete=yes
37708 fi
37709 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
37710 conftest.$ac_objext conftest.beam conftest.$ac_ext
37711 fi
37712
37713 fi
37714 ;;
37715 esac
37716
37717 fi
37718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_stores_incomplete" >&5
37719 printf "%s\n" "$gl_cv_func_mbrtowc_stores_incomplete" >&6; }
37720
37721
37722
37723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works on empty input" >&5
37724 printf %s "checking whether mbrtowc works on empty input... " >&6; }
37725 if test ${gl_cv_func_mbrtowc_empty_input+y}
37726 then :
37727 printf %s "(cached) " >&6
37728 else $as_nop
37729
37730 case "$host_os" in
37731 # Guess no on AIX and glibc systems.
37732 aix* | *-gnu* | gnu*) gl_cv_func_mbrtowc_empty_input="guessing no" ;;
37733 # Guess yes on native Windows.
37734 mingw*) gl_cv_func_mbrtowc_empty_input="guessing yes" ;;
37735 *) gl_cv_func_mbrtowc_empty_input="guessing yes" ;;
37736 esac
37737 if test "$cross_compiling" = yes
37738 then :
37739 :
37740 else $as_nop
37741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37742 /* end confdefs.h. */
37743
37744 #include <wchar.h>
37745 static wchar_t wc;
37746 static mbstate_t mbs;
37747 int
37748 main (void)
37749 {
37750 return mbrtowc (&wc, "", 0, &mbs) != (size_t) -2;
37751 }
37752 _ACEOF
37753 if ac_fn_c_try_run "$LINENO"
37754 then :
37755 gl_cv_func_mbrtowc_empty_input=yes
37756 else $as_nop
37757 gl_cv_func_mbrtowc_empty_input=no
37758 fi
37759 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
37760 conftest.$ac_objext conftest.beam conftest.$ac_ext
37761 fi
37762
37763
37764 fi
37765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_empty_input" >&5
37766 printf "%s\n" "$gl_cv_func_mbrtowc_empty_input" >&6; }
37767
37768
37769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C locale is free of encoding errors" >&5
37770 printf %s "checking whether the C locale is free of encoding errors... " >&6; }
37771 if test ${gl_cv_func_mbrtowc_C_locale_sans_EILSEQ+y}
37772 then :
37773 printf %s "(cached) " >&6
37774 else $as_nop
37775
37776 gl_cv_func_mbrtowc_C_locale_sans_EILSEQ="$gl_cross_guess_normal"
37777
37778 if test "$cross_compiling" = yes
37779 then :
37780 case "$host_os" in
37781 # Guess yes on native Windows.
37782 mingw*) gl_cv_func_mbrtowc_C_locale_sans_EILSEQ="guessing yes" ;;
37783 esac
37784
37785 else $as_nop
37786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37787 /* end confdefs.h. */
37788 #include <limits.h>
37789 #include <locale.h>
37790 #include <wchar.h>
37791
37792 int
37793 main (void)
37794 {
37795
37796 int i;
37797 char *locale = setlocale (LC_ALL, "C");
37798 if (! locale)
37799 return 2;
37800 for (i = CHAR_MIN; i <= CHAR_MAX; i++)
37801 {
37802 char c = i;
37803 wchar_t wc;
37804 mbstate_t mbs = { 0, };
37805 size_t ss = mbrtowc (&wc, &c, 1, &mbs);
37806 if (1 < ss)
37807 return 3;
37808 }
37809 return 0;
37810
37811 ;
37812 return 0;
37813 }
37814 _ACEOF
37815 if ac_fn_c_try_run "$LINENO"
37816 then :
37817 gl_cv_func_mbrtowc_C_locale_sans_EILSEQ=yes
37818 else $as_nop
37819 gl_cv_func_mbrtowc_C_locale_sans_EILSEQ=no
37820 fi
37821 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
37822 conftest.$ac_objext conftest.beam conftest.$ac_ext
37823 fi
37824
37825
37826 fi
37827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_C_locale_sans_EILSEQ" >&5
37828 printf "%s\n" "$gl_cv_func_mbrtowc_C_locale_sans_EILSEQ" >&6; }
37829
37830 case "$gl_cv_func_mbrtowc_null_arg1" in
37831 *yes) ;;
37832 *)
37833 printf "%s\n" "#define MBRTOWC_NULL_ARG1_BUG 1" >>confdefs.h
37834
37835 REPLACE_MBRTOWC=1
37836 ;;
37837 esac
37838 case "$gl_cv_func_mbrtowc_null_arg2" in
37839 *yes) ;;
37840 *)
37841 printf "%s\n" "#define MBRTOWC_NULL_ARG2_BUG 1" >>confdefs.h
37842
37843 REPLACE_MBRTOWC=1
37844 ;;
37845 esac
37846 case "$gl_cv_func_mbrtowc_retval" in
37847 *yes) ;;
37848 *)
37849 printf "%s\n" "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
37850
37851 REPLACE_MBRTOWC=1
37852 ;;
37853 esac
37854 case "$gl_cv_func_mbrtowc_nul_retval" in
37855 *yes) ;;
37856 *)
37857 printf "%s\n" "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
37858
37859 REPLACE_MBRTOWC=1
37860 ;;
37861 esac
37862 case "$gl_cv_func_mbrtowc_stores_incomplete" in
37863 *no) ;;
37864 *)
37865 printf "%s\n" "#define MBRTOWC_STORES_INCOMPLETE_BUG 1" >>confdefs.h
37866
37867 REPLACE_MBRTOWC=1
37868 ;;
37869 esac
37870 case "$gl_cv_func_mbrtowc_empty_input" in
37871 *yes) ;;
37872 *)
37873 printf "%s\n" "#define MBRTOWC_EMPTY_INPUT_BUG 1" >>confdefs.h
37874
37875 REPLACE_MBRTOWC=1
37876 ;;
37877 esac
37878 case "$gl_cv_func_mbrtowc_C_locale_sans_EILSEQ" in
37879 *yes) ;;
37880 *)
37881 printf "%s\n" "#define MBRTOWC_IN_C_LOCALE_MAYBE_EILSEQ 1" >>confdefs.h
37882
37883 REPLACE_MBRTOWC=1
37884 ;;
37885 esac
37886 fi
37887 fi
37888 if test $REPLACE_MBSTATE_T = 1; then
37889 case "$host_os" in
37890 mingw*) LIB_MBRTOWC= ;;
37891 *)
37892
37893
37894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
37895 printf %s "checking whether imported symbols can be declared weak... " >&6; }
37896 if test ${gl_cv_have_weak+y}
37897 then :
37898 printf %s "(cached) " >&6
37899 else $as_nop
37900 case "$host_os" in
37901 cygwin*)
37902 gl_cv_have_weak="guessing no"
37903 ;;
37904 *)
37905 gl_cv_have_weak=no
37906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37907 /* end confdefs.h. */
37908 extern void xyzzy ();
37909 #pragma weak xyzzy
37910 int
37911 main (void)
37912 {
37913 xyzzy();
37914 ;
37915 return 0;
37916 }
37917 _ACEOF
37918 if ac_fn_c_try_link "$LINENO"
37919 then :
37920 gl_cv_have_weak=maybe
37921 fi
37922 rm -f core conftest.err conftest.$ac_objext conftest.beam \
37923 conftest$ac_exeext conftest.$ac_ext
37924 if test $gl_cv_have_weak = maybe; then
37925 if test "$cross_compiling" = yes
37926 then :
37927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37928 /* end confdefs.h. */
37929 #ifdef __ELF__
37930 Extensible Linking Format
37931 #endif
37932
37933 _ACEOF
37934 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37935 $EGREP "Extensible Linking Format" >/dev/null 2>&1
37936 then :
37937 gl_cv_have_weak="guessing yes"
37938 else $as_nop
37939 gl_cv_have_weak="guessing no"
37940 fi
37941 rm -rf conftest*
37942
37943
37944 else $as_nop
37945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37946 /* end confdefs.h. */
37947
37948 #include <stdio.h>
37949 #pragma weak fputs
37950 int main ()
37951 {
37952 return (fputs == NULL);
37953 }
37954 _ACEOF
37955 if ac_fn_c_try_run "$LINENO"
37956 then :
37957 gl_cv_have_weak=yes
37958 else $as_nop
37959 gl_cv_have_weak=no
37960 fi
37961 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
37962 conftest.$ac_objext conftest.beam conftest.$ac_ext
37963 fi
37964
37965 fi
37966 ;;
37967 esac
37968 case " $LDFLAGS " in
37969 *" -static "*) gl_cv_have_weak=no ;;
37970 esac
37971 case "$gl_cv_have_weak" in
37972 *yes)
37973 case "$host_os" in
37974 freebsd* | dragonfly* | midnightbsd*)
37975 : > conftest1.c
37976 $CC $CPPFLAGS $CFLAGS $LDFLAGS -fPIC -shared -o libempty.so conftest1.c -lpthread >&5 2>&1
37977 cat <<EOF > conftest2.c
37978 #include <pthread.h>
37979 #pragma weak pthread_mutexattr_gettype
37980 int main ()
37981 {
37982 return (pthread_mutexattr_gettype != NULL);
37983 }
37984 EOF
37985 $CC $CPPFLAGS $CFLAGS $LDFLAGS -o conftest conftest2.c libempty.so >&5 2>&1 \
37986 || gl_cv_have_weak=no
37987 rm -f conftest1.c libempty.so conftest2.c conftest
37988 ;;
37989 esac
37990 ;;
37991 esac
37992
37993 fi
37994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
37995 printf "%s\n" "$gl_cv_have_weak" >&6; }
37996 case "$gl_cv_have_weak" in
37997 *yes)
37998
37999 printf "%s\n" "#define HAVE_WEAK_SYMBOLS 1" >>confdefs.h
38000
38001 ;;
38002 esac
38003
38004 case "$gl_cv_have_weak" in
38005 *yes) LIB_MBRTOWC= ;;
38006 *) LIB_MBRTOWC="$LIBPTHREAD" ;;
38007 esac
38008 ;;
38009 esac
38010 else
38011 LIB_MBRTOWC=
38012 fi
38013
38014
38015
38016 if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
38017 GL_COND_OBJ_MBRTOWC_TRUE=
38018 GL_COND_OBJ_MBRTOWC_FALSE='#'
38019 else
38020 GL_COND_OBJ_MBRTOWC_TRUE='#'
38021 GL_COND_OBJ_MBRTOWC_FALSE=
38022 fi
38023 :
38024 if test -z "${GL_COND_OBJ_MBRTOWC_TRUE}" && test -z "${GL_COND_OBJ_MBRTOWC_FALSE}"; then
38025 GL_COND_OBJ_MBRTOWC_TRUE='#'
38026 GL_COND_OBJ_MBRTOWC_FALSE='#'
38027 fi
38028
38029 if test -z "$GL_COND_OBJ_MBRTOWC_TRUE"; then :
38030
38031 if test $REPLACE_MBSTATE_T = 1; then
38032
38033
38034
38035
38036
38037
38038
38039
38040 gl_LIBOBJS="$gl_LIBOBJS lc-charset-dispatch.$ac_objext"
38041
38042
38043
38044
38045
38046
38047
38048
38049
38050 gl_LIBOBJS="$gl_LIBOBJS mbtowc-lock.$ac_objext"
38051
38052
38053
38054
38055 CFLAG_VISIBILITY=
38056 HAVE_VISIBILITY=0
38057 if test -n "$GCC"; then
38058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
38059 printf %s "checking whether the -Werror option is usable... " >&6; }
38060 if test ${gl_cv_cc_vis_werror+y}
38061 then :
38062 printf %s "(cached) " >&6
38063 else $as_nop
38064 gl_save_CFLAGS="$CFLAGS"
38065 CFLAGS="$CFLAGS -Werror"
38066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38067 /* end confdefs.h. */
38068
38069 int
38070 main (void)
38071 {
38072
38073 ;
38074 return 0;
38075 }
38076 _ACEOF
38077 if ac_fn_c_try_compile "$LINENO"
38078 then :
38079 gl_cv_cc_vis_werror=yes
38080 else $as_nop
38081 gl_cv_cc_vis_werror=no
38082 fi
38083 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
38084 CFLAGS="$gl_save_CFLAGS"
38085
38086 fi
38087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
38088 printf "%s\n" "$gl_cv_cc_vis_werror" >&6; }
38089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
38090 printf %s "checking for simple visibility declarations... " >&6; }
38091 if test ${gl_cv_cc_visibility+y}
38092 then :
38093 printf %s "(cached) " >&6
38094 else $as_nop
38095 gl_save_CFLAGS="$CFLAGS"
38096 CFLAGS="$CFLAGS -fvisibility=hidden"
38097 if test $gl_cv_cc_vis_werror = yes; then
38098 CFLAGS="$CFLAGS -Werror"
38099 fi
38100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38101 /* end confdefs.h. */
38102 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
38103 extern __attribute__((__visibility__("default"))) int exportedvar;
38104 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
38105 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
38106 void dummyfunc (void);
38107 int hiddenvar;
38108 int exportedvar;
38109 int hiddenfunc (void) { return 51; }
38110 int exportedfunc (void) { return 1225736919; }
38111 void dummyfunc (void) {}
38112
38113 int
38114 main (void)
38115 {
38116
38117 ;
38118 return 0;
38119 }
38120 _ACEOF
38121 if ac_fn_c_try_compile "$LINENO"
38122 then :
38123 gl_cv_cc_visibility=yes
38124 else $as_nop
38125 gl_cv_cc_visibility=no
38126 fi
38127 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
38128 CFLAGS="$gl_save_CFLAGS"
38129
38130 fi
38131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
38132 printf "%s\n" "$gl_cv_cc_visibility" >&6; }
38133 if test $gl_cv_cc_visibility = yes; then
38134 CFLAG_VISIBILITY="-fvisibility=hidden"
38135 HAVE_VISIBILITY=1
38136 fi
38137 fi
38138
38139
38140
38141 printf "%s\n" "#define HAVE_VISIBILITY $HAVE_VISIBILITY" >>confdefs.h
38142
38143
38144
38145 fi
38146
38147
38148 :
38149
38150
38151 fi
38152
38153
38154
38155
38156
38157
38158
38159
38160
38161
38162
38163
38164
38165
38166 GL_GNULIB_MBRTOWC=1
38167
38168
38169
38170
38171
38172 printf "%s\n" "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
38173
38174
38175
38176
38177
38178
38179
38180
38181
38182
38183
38184
38185
38186
38187
38188 if case "$host_os" in
38189 mingw*) true ;;
38190 *) test $ac_cv_func_mbsinit = yes ;;
38191 esac \
38192 && test $ac_cv_func_mbrtowc = yes; then
38193
38194
38195
38196
38197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
38198 printf %s "checking whether mbrtowc handles incomplete characters... " >&6; }
38199 if test ${gl_cv_func_mbrtowc_incomplete_state+y}
38200 then :
38201 printf %s "(cached) " >&6
38202 else $as_nop
38203
38204 case "$host_os" in
38205 # Guess no on AIX and OSF/1.
38206 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
38207 # Guess yes otherwise.
38208 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
38209 esac
38210 if test $LOCALE_JA != none; then
38211 if test "$cross_compiling" = yes
38212 then :
38213 :
38214 else $as_nop
38215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38216 /* end confdefs.h. */
38217
38218 #include <locale.h>
38219 #include <string.h>
38220 #include <wchar.h>
38221 int main ()
38222 {
38223 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
38224 {
38225 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
38226 mbstate_t state;
38227 wchar_t wc;
38228
38229 memset (&state, '\0', sizeof (mbstate_t));
38230 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
38231 if (mbsinit (&state))
38232 return 2;
38233 }
38234 return 0;
38235 }
38236 _ACEOF
38237 if ac_fn_c_try_run "$LINENO"
38238 then :
38239 gl_cv_func_mbrtowc_incomplete_state=yes
38240 else $as_nop
38241 gl_cv_func_mbrtowc_incomplete_state=no
38242 fi
38243 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38244 conftest.$ac_objext conftest.beam conftest.$ac_ext
38245 fi
38246
38247 else
38248 if test $LOCALE_FR_UTF8 != none; then
38249 if test "$cross_compiling" = yes
38250 then :
38251 :
38252 else $as_nop
38253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38254 /* end confdefs.h. */
38255
38256 #include <locale.h>
38257 #include <string.h>
38258 #include <wchar.h>
38259 int main ()
38260 {
38261 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
38262 {
38263 const char input[] = "B\303\274\303\237er"; /* "Büßer" */
38264 mbstate_t state;
38265 wchar_t wc;
38266
38267 memset (&state, '\0', sizeof (mbstate_t));
38268 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
38269 if (mbsinit (&state))
38270 return 2;
38271 }
38272 return 0;
38273 }
38274 _ACEOF
38275 if ac_fn_c_try_run "$LINENO"
38276 then :
38277 gl_cv_func_mbrtowc_incomplete_state=yes
38278 else $as_nop
38279 gl_cv_func_mbrtowc_incomplete_state=no
38280 fi
38281 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38282 conftest.$ac_objext conftest.beam conftest.$ac_ext
38283 fi
38284
38285 fi
38286 fi
38287
38288 fi
38289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
38290 printf "%s\n" "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
38291
38292
38293
38294
38295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
38296 printf %s "checking whether mbrtowc works as well as mbtowc... " >&6; }
38297 if test ${gl_cv_func_mbrtowc_sanitycheck+y}
38298 then :
38299 printf %s "(cached) " >&6
38300 else $as_nop
38301
38302 case "$host_os" in
38303 # Guess no on Solaris 8.
38304 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
38305 # Guess yes otherwise.
38306 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
38307 esac
38308 if test $LOCALE_ZH_CN != none; then
38309 if test "$cross_compiling" = yes
38310 then :
38311 :
38312 else $as_nop
38313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38314 /* end confdefs.h. */
38315
38316 #include <locale.h>
38317 #include <stdlib.h>
38318 #include <string.h>
38319 #include <wchar.h>
38320 int main ()
38321 {
38322 /* This fails on Solaris 8:
38323 mbrtowc returns 2, and sets wc to 0x00F0.
38324 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
38325 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
38326 {
38327 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
38328 mbstate_t state;
38329 wchar_t wc;
38330
38331 memset (&state, '\0', sizeof (mbstate_t));
38332 if (mbrtowc (&wc, input + 3, 6, &state) != 4
38333 && mbtowc (&wc, input + 3, 6) == 4)
38334 return 2;
38335 }
38336 return 0;
38337 }
38338 _ACEOF
38339 if ac_fn_c_try_run "$LINENO"
38340 then :
38341 gl_cv_func_mbrtowc_sanitycheck=yes
38342 else $as_nop
38343 gl_cv_func_mbrtowc_sanitycheck=no
38344 fi
38345 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38346 conftest.$ac_objext conftest.beam conftest.$ac_ext
38347 fi
38348
38349 fi
38350
38351 fi
38352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
38353 printf "%s\n" "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
38354
38355 REPLACE_MBSTATE_T=0
38356 case "$gl_cv_func_mbrtowc_incomplete_state" in
38357 *yes) ;;
38358 *) REPLACE_MBSTATE_T=1 ;;
38359 esac
38360 case "$gl_cv_func_mbrtowc_sanitycheck" in
38361 *yes) ;;
38362 *) REPLACE_MBSTATE_T=1 ;;
38363 esac
38364 else
38365 REPLACE_MBSTATE_T=1
38366 fi
38367
38368
38369
38370 if test $ac_cv_func_mbsinit = no; then
38371 HAVE_MBSINIT=0
38372 ac_fn_check_decl "$LINENO" "mbsinit" "ac_cv_have_decl_mbsinit" "
38373 #include <wchar.h>
38374
38375 " "$ac_c_undeclared_builtin_options" "CFLAGS"
38376 if test "x$ac_cv_have_decl_mbsinit" = xyes
38377 then :
38378 ac_have_decl=1
38379 else $as_nop
38380 ac_have_decl=0
38381 fi
38382 printf "%s\n" "#define HAVE_DECL_MBSINIT $ac_have_decl" >>confdefs.h
38383
38384 if test $ac_cv_have_decl_mbsinit = yes; then
38385 REPLACE_MBSINIT=1
38386 fi
38387 else
38388 if test $REPLACE_MBSTATE_T = 1; then
38389 REPLACE_MBSINIT=1
38390 else
38391 case "$host_os" in
38392 mingw*) REPLACE_MBSINIT=1 ;;
38393 esac
38394 fi
38395 fi
38396
38397
38398 if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
38399 GL_COND_OBJ_MBSINIT_TRUE=
38400 GL_COND_OBJ_MBSINIT_FALSE='#'
38401 else
38402 GL_COND_OBJ_MBSINIT_TRUE='#'
38403 GL_COND_OBJ_MBSINIT_FALSE=
38404 fi
38405 :
38406 if test -z "${GL_COND_OBJ_MBSINIT_TRUE}" && test -z "${GL_COND_OBJ_MBSINIT_FALSE}"; then
38407 GL_COND_OBJ_MBSINIT_TRUE='#'
38408 GL_COND_OBJ_MBSINIT_FALSE='#'
38409 fi
38410
38411 if test -z "$GL_COND_OBJ_MBSINIT_TRUE"; then :
38412
38413
38414 :
38415
38416
38417 fi
38418
38419
38420
38421
38422
38423
38424
38425
38426
38427
38428
38429
38430
38431
38432 GL_GNULIB_MBSINIT=1
38433
38434
38435
38436
38437
38438 printf "%s\n" "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
38439
38440
38441
38442
38443
38444
38445
38446
38447
38448
38449
38450
38451
38452
38453 if case "$host_os" in
38454 mingw*) true ;;
38455 *) test $ac_cv_func_mbsinit = yes ;;
38456 esac \
38457 && test $ac_cv_func_mbrtowc = yes; then
38458
38459
38460
38461
38462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
38463 printf %s "checking whether mbrtowc handles incomplete characters... " >&6; }
38464 if test ${gl_cv_func_mbrtowc_incomplete_state+y}
38465 then :
38466 printf %s "(cached) " >&6
38467 else $as_nop
38468
38469 case "$host_os" in
38470 # Guess no on AIX and OSF/1.
38471 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
38472 # Guess yes otherwise.
38473 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
38474 esac
38475 if test $LOCALE_JA != none; then
38476 if test "$cross_compiling" = yes
38477 then :
38478 :
38479 else $as_nop
38480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38481 /* end confdefs.h. */
38482
38483 #include <locale.h>
38484 #include <string.h>
38485 #include <wchar.h>
38486 int main ()
38487 {
38488 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
38489 {
38490 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
38491 mbstate_t state;
38492 wchar_t wc;
38493
38494 memset (&state, '\0', sizeof (mbstate_t));
38495 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
38496 if (mbsinit (&state))
38497 return 2;
38498 }
38499 return 0;
38500 }
38501 _ACEOF
38502 if ac_fn_c_try_run "$LINENO"
38503 then :
38504 gl_cv_func_mbrtowc_incomplete_state=yes
38505 else $as_nop
38506 gl_cv_func_mbrtowc_incomplete_state=no
38507 fi
38508 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38509 conftest.$ac_objext conftest.beam conftest.$ac_ext
38510 fi
38511
38512 else
38513 if test $LOCALE_FR_UTF8 != none; then
38514 if test "$cross_compiling" = yes
38515 then :
38516 :
38517 else $as_nop
38518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38519 /* end confdefs.h. */
38520
38521 #include <locale.h>
38522 #include <string.h>
38523 #include <wchar.h>
38524 int main ()
38525 {
38526 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
38527 {
38528 const char input[] = "B\303\274\303\237er"; /* "Büßer" */
38529 mbstate_t state;
38530 wchar_t wc;
38531
38532 memset (&state, '\0', sizeof (mbstate_t));
38533 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
38534 if (mbsinit (&state))
38535 return 2;
38536 }
38537 return 0;
38538 }
38539 _ACEOF
38540 if ac_fn_c_try_run "$LINENO"
38541 then :
38542 gl_cv_func_mbrtowc_incomplete_state=yes
38543 else $as_nop
38544 gl_cv_func_mbrtowc_incomplete_state=no
38545 fi
38546 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38547 conftest.$ac_objext conftest.beam conftest.$ac_ext
38548 fi
38549
38550 fi
38551 fi
38552
38553 fi
38554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
38555 printf "%s\n" "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
38556
38557
38558
38559
38560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
38561 printf %s "checking whether mbrtowc works as well as mbtowc... " >&6; }
38562 if test ${gl_cv_func_mbrtowc_sanitycheck+y}
38563 then :
38564 printf %s "(cached) " >&6
38565 else $as_nop
38566
38567 case "$host_os" in
38568 # Guess no on Solaris 8.
38569 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
38570 # Guess yes otherwise.
38571 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
38572 esac
38573 if test $LOCALE_ZH_CN != none; then
38574 if test "$cross_compiling" = yes
38575 then :
38576 :
38577 else $as_nop
38578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38579 /* end confdefs.h. */
38580
38581 #include <locale.h>
38582 #include <stdlib.h>
38583 #include <string.h>
38584 #include <wchar.h>
38585 int main ()
38586 {
38587 /* This fails on Solaris 8:
38588 mbrtowc returns 2, and sets wc to 0x00F0.
38589 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
38590 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
38591 {
38592 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
38593 mbstate_t state;
38594 wchar_t wc;
38595
38596 memset (&state, '\0', sizeof (mbstate_t));
38597 if (mbrtowc (&wc, input + 3, 6, &state) != 4
38598 && mbtowc (&wc, input + 3, 6) == 4)
38599 return 2;
38600 }
38601 return 0;
38602 }
38603 _ACEOF
38604 if ac_fn_c_try_run "$LINENO"
38605 then :
38606 gl_cv_func_mbrtowc_sanitycheck=yes
38607 else $as_nop
38608 gl_cv_func_mbrtowc_sanitycheck=no
38609 fi
38610 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38611 conftest.$ac_objext conftest.beam conftest.$ac_ext
38612 fi
38613
38614 fi
38615
38616 fi
38617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
38618 printf "%s\n" "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
38619
38620 REPLACE_MBSTATE_T=0
38621 case "$gl_cv_func_mbrtowc_incomplete_state" in
38622 *yes) ;;
38623 *) REPLACE_MBSTATE_T=1 ;;
38624 esac
38625 case "$gl_cv_func_mbrtowc_sanitycheck" in
38626 *yes) ;;
38627 *) REPLACE_MBSTATE_T=1 ;;
38628 esac
38629 else
38630 REPLACE_MBSTATE_T=1
38631 fi
38632
38633
38634
38635 if test $ac_cv_func_mbsrtowcs = no; then
38636 HAVE_MBSRTOWCS=0
38637 ac_fn_check_decl "$LINENO" "mbsrtowcs" "ac_cv_have_decl_mbsrtowcs" "
38638 #include <wchar.h>
38639
38640 " "$ac_c_undeclared_builtin_options" "CFLAGS"
38641 if test "x$ac_cv_have_decl_mbsrtowcs" = xyes
38642 then :
38643 ac_have_decl=1
38644 else $as_nop
38645 ac_have_decl=0
38646 fi
38647 printf "%s\n" "#define HAVE_DECL_MBSRTOWCS $ac_have_decl" >>confdefs.h
38648
38649 if test $ac_cv_have_decl_mbsrtowcs = yes; then
38650 REPLACE_MBSRTOWCS=1
38651 fi
38652 else
38653 if test $REPLACE_MBSTATE_T = 1; then
38654 REPLACE_MBSRTOWCS=1
38655 else
38656
38657
38658
38659
38660
38661
38662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbsrtowcs works" >&5
38663 printf %s "checking whether mbsrtowcs works... " >&6; }
38664 if test ${gl_cv_func_mbsrtowcs_works+y}
38665 then :
38666 printf %s "(cached) " >&6
38667 else $as_nop
38668
38669 case "$host_os" in
38670 # Guess no on HP-UX, Solaris, mingw.
38671 hpux* | solaris* | mingw*) gl_cv_func_mbsrtowcs_works="guessing no" ;;
38672 # Guess yes otherwise.
38673 *) gl_cv_func_mbsrtowcs_works="guessing yes" ;;
38674 esac
38675 if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
38676 if test "$cross_compiling" = yes
38677 then :
38678 :
38679 else $as_nop
38680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38681 /* end confdefs.h. */
38682
38683 #include <locale.h>
38684 #include <string.h>
38685 #include <wchar.h>
38686 int main ()
38687 {
38688 int result = 0;
38689 /* Test whether the function supports a NULL destination argument.
38690 This fails on native Windows. */
38691 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
38692 {
38693 const char input[] = "\337er";
38694 const char *src = input;
38695 mbstate_t state;
38696
38697 memset (&state, '\0', sizeof (mbstate_t));
38698 if (mbsrtowcs (NULL, &src, 1, &state) != 3
38699 || src != input)
38700 result |= 1;
38701 }
38702 /* Test whether the function works when started with a conversion state
38703 in non-initial state. This fails on HP-UX 11.11 and Solaris 10. */
38704 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
38705 {
38706 const char input[] = "B\303\274\303\237er";
38707 mbstate_t state;
38708
38709 memset (&state, '\0', sizeof (mbstate_t));
38710 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
38711 if (!mbsinit (&state))
38712 {
38713 const char *src = input + 2;
38714 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
38715 result |= 2;
38716 }
38717 }
38718 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
38719 {
38720 const char input[] = "<\306\374\313\334\270\354>";
38721 mbstate_t state;
38722
38723 memset (&state, '\0', sizeof (mbstate_t));
38724 if (mbrtowc (NULL, input + 3, 1, &state) == (size_t)(-2))
38725 if (!mbsinit (&state))
38726 {
38727 const char *src = input + 4;
38728 if (mbsrtowcs (NULL, &src, 10, &state) != 3)
38729 result |= 4;
38730 }
38731 }
38732 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
38733 {
38734 const char input[] = "B\250\271\201\060\211\070er";
38735 mbstate_t state;
38736
38737 memset (&state, '\0', sizeof (mbstate_t));
38738 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
38739 if (!mbsinit (&state))
38740 {
38741 const char *src = input + 2;
38742 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
38743 result |= 8;
38744 }
38745 }
38746 return result;
38747 }
38748 _ACEOF
38749 if ac_fn_c_try_run "$LINENO"
38750 then :
38751 gl_cv_func_mbsrtowcs_works=yes
38752 else $as_nop
38753 gl_cv_func_mbsrtowcs_works=no
38754 fi
38755 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38756 conftest.$ac_objext conftest.beam conftest.$ac_ext
38757 fi
38758
38759 fi
38760
38761 fi
38762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbsrtowcs_works" >&5
38763 printf "%s\n" "$gl_cv_func_mbsrtowcs_works" >&6; }
38764
38765 case "$gl_cv_func_mbsrtowcs_works" in
38766 *yes) ;;
38767 *) REPLACE_MBSRTOWCS=1 ;;
38768 esac
38769 fi
38770 fi
38771
38772
38773 if test $HAVE_MBSRTOWCS = 0 || test $REPLACE_MBSRTOWCS = 1; then
38774 GL_COND_OBJ_MBSRTOWCS_TRUE=
38775 GL_COND_OBJ_MBSRTOWCS_FALSE='#'
38776 else
38777 GL_COND_OBJ_MBSRTOWCS_TRUE='#'
38778 GL_COND_OBJ_MBSRTOWCS_FALSE=
38779 fi
38780 :
38781 if test -z "${GL_COND_OBJ_MBSRTOWCS_TRUE}" && test -z "${GL_COND_OBJ_MBSRTOWCS_FALSE}"; then
38782 GL_COND_OBJ_MBSRTOWCS_TRUE='#'
38783 GL_COND_OBJ_MBSRTOWCS_FALSE='#'
38784 fi
38785
38786 if test -z "$GL_COND_OBJ_MBSRTOWCS_TRUE"; then :
38787
38788
38789
38790
38791
38792
38793
38794
38795
38796 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs-state.$ac_objext"
38797
38798
38799 :
38800
38801
38802 fi
38803
38804
38805
38806
38807
38808
38809
38810
38811
38812
38813
38814
38815
38816
38817 GL_GNULIB_MBSRTOWCS=1
38818
38819
38820
38821
38822
38823 printf "%s\n" "#define GNULIB_TEST_MBSRTOWCS 1" >>confdefs.h
38824
38825
38826
38827
38828
38829
38830 ac_fn_c_check_func "$LINENO" "mbtowc" "ac_cv_func_mbtowc"
38831 if test "x$ac_cv_func_mbtowc" = xyes
38832 then :
38833 printf "%s\n" "#define HAVE_MBTOWC 1" >>confdefs.h
38834
38835 fi
38836
38837 if test $ac_cv_func_mbtowc = no; then
38838 HAVE_MBTOWC=0
38839 else
38840 if false; then
38841 REPLACE_MBTOWC=1
38842 fi
38843 fi
38844
38845
38846 if test $HAVE_MBTOWC = 0 || test $REPLACE_MBTOWC = 1; then
38847 GL_COND_OBJ_MBTOWC_TRUE=
38848 GL_COND_OBJ_MBTOWC_FALSE='#'
38849 else
38850 GL_COND_OBJ_MBTOWC_TRUE='#'
38851 GL_COND_OBJ_MBTOWC_FALSE=
38852 fi
38853 :
38854 if test -z "${GL_COND_OBJ_MBTOWC_TRUE}" && test -z "${GL_COND_OBJ_MBTOWC_FALSE}"; then
38855 GL_COND_OBJ_MBTOWC_TRUE='#'
38856 GL_COND_OBJ_MBTOWC_FALSE='#'
38857 fi
38858
38859 if test -z "$GL_COND_OBJ_MBTOWC_TRUE"; then :
38860
38861
38862 :
38863
38864
38865 fi
38866
38867
38868
38869
38870
38871
38872
38873
38874
38875 GL_GNULIB_MBTOWC=1
38876
38877
38878
38879
38880
38881 printf "%s\n" "#define GNULIB_TEST_MBTOWC 1" >>confdefs.h
38882
38883
38884
38885
38886
38887 if test $REPLACE_MEMCHR = 1; then
38888 GL_COND_OBJ_MEMCHR_TRUE=
38889 GL_COND_OBJ_MEMCHR_FALSE='#'
38890 else
38891 GL_COND_OBJ_MEMCHR_TRUE='#'
38892 GL_COND_OBJ_MEMCHR_FALSE=
38893 fi
38894 :
38895 if test -z "${GL_COND_OBJ_MEMCHR_TRUE}" && test -z "${GL_COND_OBJ_MEMCHR_FALSE}"; then
38896 GL_COND_OBJ_MEMCHR_TRUE='#'
38897 GL_COND_OBJ_MEMCHR_FALSE='#'
38898 fi
38899
38900 if test -z "$GL_COND_OBJ_MEMCHR_TRUE"; then :
38901
38902
38903 ac_fn_c_check_header_compile "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
38904 if test "x$ac_cv_header_bp_sym_h" = xyes
38905 then :
38906 printf "%s\n" "#define HAVE_BP_SYM_H 1" >>confdefs.h
38907
38908 fi
38909
38910
38911
38912 fi
38913
38914
38915
38916
38917
38918
38919
38920
38921
38922
38923
38924
38925
38926
38927 GL_GNULIB_MEMCHR=1
38928
38929
38930
38931
38932
38933 printf "%s\n" "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
38934
38935
38936
38937
38938
38939
38940
38941
38942
38943 ac_fn_c_check_func "$LINENO" "mempcpy" "ac_cv_func_mempcpy"
38944 if test "x$ac_cv_func_mempcpy" = xyes
38945 then :
38946 printf "%s\n" "#define HAVE_MEMPCPY 1" >>confdefs.h
38947
38948 fi
38949
38950 if test $ac_cv_func_mempcpy = no; then
38951 HAVE_MEMPCPY=0
38952 fi
38953
38954
38955 if test $HAVE_MEMPCPY = 0; then
38956 GL_COND_OBJ_MEMPCPY_TRUE=
38957 GL_COND_OBJ_MEMPCPY_FALSE='#'
38958 else
38959 GL_COND_OBJ_MEMPCPY_TRUE='#'
38960 GL_COND_OBJ_MEMPCPY_FALSE=
38961 fi
38962 :
38963 if test -z "${GL_COND_OBJ_MEMPCPY_TRUE}" && test -z "${GL_COND_OBJ_MEMPCPY_FALSE}"; then
38964 GL_COND_OBJ_MEMPCPY_TRUE='#'
38965 GL_COND_OBJ_MEMPCPY_FALSE='#'
38966 fi
38967
38968 if test -z "$GL_COND_OBJ_MEMPCPY_TRUE"; then :
38969
38970
38971 :
38972
38973
38974 fi
38975
38976
38977
38978
38979
38980
38981
38982
38983
38984
38985
38986
38987
38988
38989 GL_GNULIB_MEMPCPY=1
38990
38991
38992
38993
38994
38995 printf "%s\n" "#define GNULIB_TEST_MEMPCPY 1" >>confdefs.h
38996
38997
38998
38999
39000
39001
39002
39003
39004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mkdir handles trailing slash" >&5
39005 printf %s "checking whether mkdir handles trailing slash... " >&6; }
39006 if test ${gl_cv_func_mkdir_trailing_slash_works+y}
39007 then :
39008 printf %s "(cached) " >&6
39009 else $as_nop
39010 rm -rf conftest.dir
39011 if test "$cross_compiling" = yes
39012 then :
39013 case "$host_os" in
39014 # Guess yes on Linux systems.
39015 linux-* | linux) gl_cv_func_mkdir_trailing_slash_works="guessing yes" ;;
39016 # Guess yes on glibc systems.
39017 *-gnu* | gnu*) gl_cv_func_mkdir_trailing_slash_works="guessing yes" ;;
39018 # Guess yes on MSVC, no on mingw.
39019 mingw*) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39020 /* end confdefs.h. */
39021
39022 #ifdef _MSC_VER
39023 Known
39024 #endif
39025
39026 _ACEOF
39027 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39028 $EGREP "Known" >/dev/null 2>&1
39029 then :
39030 gl_cv_func_mkdir_trailing_slash_works="guessing yes"
39031 else $as_nop
39032 gl_cv_func_mkdir_trailing_slash_works="guessing no"
39033 fi
39034 rm -rf conftest*
39035
39036 ;;
39037 # If we don't know, obey --enable-cross-guesses.
39038 *) gl_cv_func_mkdir_trailing_slash_works="$gl_cross_guess_normal" ;;
39039 esac
39040
39041 else $as_nop
39042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39043 /* end confdefs.h. */
39044
39045 #include <sys/types.h>
39046 #include <sys/stat.h>
39047
39048
39049 $gl_mda_defines
39050
39051 int
39052 main (void)
39053 {
39054 return mkdir ("conftest.dir/", 0700);
39055 ;
39056 return 0;
39057 }
39058 _ACEOF
39059 if ac_fn_c_try_run "$LINENO"
39060 then :
39061 gl_cv_func_mkdir_trailing_slash_works=yes
39062 else $as_nop
39063 gl_cv_func_mkdir_trailing_slash_works=no
39064 fi
39065 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39066 conftest.$ac_objext conftest.beam conftest.$ac_ext
39067 fi
39068
39069 rm -rf conftest.dir
39070
39071 fi
39072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mkdir_trailing_slash_works" >&5
39073 printf "%s\n" "$gl_cv_func_mkdir_trailing_slash_works" >&6; }
39074 case "$gl_cv_func_mkdir_trailing_slash_works" in
39075 *yes) ;;
39076 *)
39077 REPLACE_MKDIR=1
39078 ;;
39079 esac
39080
39081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mkdir handles trailing dot" >&5
39082 printf %s "checking whether mkdir handles trailing dot... " >&6; }
39083 if test ${gl_cv_func_mkdir_trailing_dot_works+y}
39084 then :
39085 printf %s "(cached) " >&6
39086 else $as_nop
39087 rm -rf conftest.dir
39088 if test "$cross_compiling" = yes
39089 then :
39090 case "$host_os" in
39091 # Guess yes on glibc systems.
39092 *-gnu* | gnu*) gl_cv_func_mkdir_trailing_dot_works="guessing yes" ;;
39093 # Guess yes on musl systems.
39094 *-musl*) gl_cv_func_mkdir_trailing_dot_works="guessing yes" ;;
39095 # Guess no on native Windows.
39096 mingw*) gl_cv_func_mkdir_trailing_dot_works="guessing no" ;;
39097 # If we don't know, obey --enable-cross-guesses.
39098 *) gl_cv_func_mkdir_trailing_dot_works="$gl_cross_guess_normal" ;;
39099 esac
39100
39101 else $as_nop
39102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39103 /* end confdefs.h. */
39104
39105 #include <sys/types.h>
39106 #include <sys/stat.h>
39107
39108
39109 $gl_mda_defines
39110
39111 int
39112 main (void)
39113 {
39114 return !mkdir ("conftest.dir/./", 0700);
39115 ;
39116 return 0;
39117 }
39118 _ACEOF
39119 if ac_fn_c_try_run "$LINENO"
39120 then :
39121 gl_cv_func_mkdir_trailing_dot_works=yes
39122 else $as_nop
39123 gl_cv_func_mkdir_trailing_dot_works=no
39124 fi
39125 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39126 conftest.$ac_objext conftest.beam conftest.$ac_ext
39127 fi
39128
39129 rm -rf conftest.dir
39130
39131
39132 fi
39133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mkdir_trailing_dot_works" >&5
39134 printf "%s\n" "$gl_cv_func_mkdir_trailing_dot_works" >&6; }
39135 case "$gl_cv_func_mkdir_trailing_dot_works" in
39136 *yes) ;;
39137 *)
39138 REPLACE_MKDIR=1
39139
39140 printf "%s\n" "#define FUNC_MKDIR_DOT_BUG 1" >>confdefs.h
39141
39142 ;;
39143 esac
39144
39145
39146 if test $REPLACE_MKDIR = 1; then
39147 GL_COND_OBJ_MKDIR_TRUE=
39148 GL_COND_OBJ_MKDIR_FALSE='#'
39149 else
39150 GL_COND_OBJ_MKDIR_TRUE='#'
39151 GL_COND_OBJ_MKDIR_FALSE=
39152 fi
39153 :
39154 if test -z "${GL_COND_OBJ_MKDIR_TRUE}" && test -z "${GL_COND_OBJ_MKDIR_FALSE}"; then
39155 GL_COND_OBJ_MKDIR_TRUE='#'
39156 GL_COND_OBJ_MKDIR_FALSE='#'
39157 fi
39158
39159
39160
39161
39162
39163
39164
39165
39166
39167
39168 GL_GNULIB_MKDIR=1
39169
39170
39171
39172
39173
39174 printf "%s\n" "#define GNULIB_TEST_MKDIR 1" >>confdefs.h
39175
39176
39177
39178
39179
39180
39181
39182 if test $ac_cv_func_mkstemp = yes; then
39183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working mkstemp" >&5
39184 printf %s "checking for working mkstemp... " >&6; }
39185 if test ${gl_cv_func_working_mkstemp+y}
39186 then :
39187 printf %s "(cached) " >&6
39188 else $as_nop
39189
39190 mkdir conftest.mkstemp
39191 if test "$cross_compiling" = yes
39192 then :
39193 case "$host_os" in
39194 # Guess yes on glibc systems.
39195 *-gnu* | gnu*) gl_cv_func_working_mkstemp="guessing yes" ;;
39196 # Guess yes on musl systems.
39197 *-musl*) gl_cv_func_working_mkstemp="guessing yes" ;;
39198 # Guess no on native Windows.
39199 mingw*) gl_cv_func_working_mkstemp="guessing no" ;;
39200 # If we don't know, obey --enable-cross-guesses.
39201 *) gl_cv_func_working_mkstemp="$gl_cross_guess_normal" ;;
39202 esac
39203
39204 else $as_nop
39205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39206 /* end confdefs.h. */
39207 $ac_includes_default
39208
39209
39210 $gl_mda_defines
39211
39212 int
39213 main (void)
39214 {
39215 int result = 0;
39216 int i;
39217 off_t large = (off_t) 4294967295u;
39218 if (large < 0)
39219 large = 2147483647;
39220 umask (0);
39221 for (i = 0; i < 70; i++)
39222 {
39223 char templ[] = "conftest.mkstemp/coXXXXXX";
39224 int (*mkstemp_function) (char *) = mkstemp;
39225 int fd = mkstemp_function (templ);
39226 if (fd < 0)
39227 result |= 1;
39228 else
39229 {
39230 struct stat st;
39231 if (lseek (fd, large, SEEK_SET) != large)
39232 result |= 2;
39233 if (fstat (fd, &st) < 0)
39234 result |= 4;
39235 else if (st.st_mode & 0077)
39236 result |= 8;
39237 if (close (fd))
39238 result |= 16;
39239 }
39240 }
39241 return result;
39242 ;
39243 return 0;
39244 }
39245 _ACEOF
39246 if ac_fn_c_try_run "$LINENO"
39247 then :
39248 gl_cv_func_working_mkstemp=yes
39249 else $as_nop
39250 gl_cv_func_working_mkstemp=no
39251 fi
39252 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39253 conftest.$ac_objext conftest.beam conftest.$ac_ext
39254 fi
39255
39256 rm -rf conftest.mkstemp
39257
39258 fi
39259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mkstemp" >&5
39260 printf "%s\n" "$gl_cv_func_working_mkstemp" >&6; }
39261 case "$gl_cv_func_working_mkstemp" in
39262 *yes) ;;
39263 *)
39264 REPLACE_MKSTEMP=1
39265 ;;
39266 esac
39267 else
39268 HAVE_MKSTEMP=0
39269 fi
39270
39271
39272 if test $HAVE_MKSTEMP = 0 || test $REPLACE_MKSTEMP = 1; then
39273 GL_COND_OBJ_MKSTEMP_TRUE=
39274 GL_COND_OBJ_MKSTEMP_FALSE='#'
39275 else
39276 GL_COND_OBJ_MKSTEMP_TRUE='#'
39277 GL_COND_OBJ_MKSTEMP_FALSE=
39278 fi
39279 :
39280 if test -z "${GL_COND_OBJ_MKSTEMP_TRUE}" && test -z "${GL_COND_OBJ_MKSTEMP_FALSE}"; then
39281 GL_COND_OBJ_MKSTEMP_TRUE='#'
39282 GL_COND_OBJ_MKSTEMP_FALSE='#'
39283 fi
39284
39285 if test -z "$GL_COND_OBJ_MKSTEMP_TRUE"; then :
39286
39287
39288
39289
39290 fi
39291
39292
39293
39294
39295
39296
39297
39298
39299
39300 GL_GNULIB_MKSTEMP=1
39301
39302
39303
39304
39305
39306 printf "%s\n" "#define GNULIB_TEST_MKSTEMP 1" >>confdefs.h
39307
39308
39309
39310
39311
39312 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
39313 GL_COND_OBJ_MSVC_INVAL_TRUE=
39314 GL_COND_OBJ_MSVC_INVAL_FALSE='#'
39315 else
39316 GL_COND_OBJ_MSVC_INVAL_TRUE='#'
39317 GL_COND_OBJ_MSVC_INVAL_FALSE=
39318 fi
39319 :
39320 if test -z "${GL_COND_OBJ_MSVC_INVAL_TRUE}" && test -z "${GL_COND_OBJ_MSVC_INVAL_FALSE}"; then
39321 GL_COND_OBJ_MSVC_INVAL_TRUE='#'
39322 GL_COND_OBJ_MSVC_INVAL_FALSE='#'
39323 fi
39324
39325
39326
39327 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
39328 GL_COND_OBJ_MSVC_NOTHROW_TRUE=
39329 GL_COND_OBJ_MSVC_NOTHROW_FALSE='#'
39330 else
39331 GL_COND_OBJ_MSVC_NOTHROW_TRUE='#'
39332 GL_COND_OBJ_MSVC_NOTHROW_FALSE=
39333 fi
39334 :
39335 if test -z "${GL_COND_OBJ_MSVC_NOTHROW_TRUE}" && test -z "${GL_COND_OBJ_MSVC_NOTHROW_FALSE}"; then
39336 GL_COND_OBJ_MSVC_NOTHROW_TRUE='#'
39337 GL_COND_OBJ_MSVC_NOTHROW_FALSE='#'
39338 fi
39339
39340
39341
39342 printf "%s\n" "#define GNULIB_MSVC_NOTHROW 1" >>confdefs.h
39343
39344
39345
39346
39347
39348
39349
39350
39351
39352
39353
39354 if test $ac_cv_func_nl_langinfo = yes; then
39355 # On Irix 6.5, YESEXPR is defined, but nl_langinfo(YESEXPR) is broken.
39356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether YESEXPR works" >&5
39357 printf %s "checking whether YESEXPR works... " >&6; }
39358 if test ${gl_cv_func_nl_langinfo_yesexpr_works+y}
39359 then :
39360 printf %s "(cached) " >&6
39361 else $as_nop
39362 if test "$cross_compiling" = yes
39363 then :
39364
39365 case "$host_os" in
39366 # Guess no on irix systems.
39367 irix*) gl_cv_func_nl_langinfo_yesexpr_works="guessing no";;
39368 # Guess yes elsewhere.
39369 *) gl_cv_func_nl_langinfo_yesexpr_works="guessing yes";;
39370 esac
39371
39372 else $as_nop
39373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39374 /* end confdefs.h. */
39375 #include <langinfo.h>
39376
39377 int
39378 main (void)
39379 {
39380 return !*nl_langinfo(YESEXPR);
39381
39382 ;
39383 return 0;
39384 }
39385 _ACEOF
39386 if ac_fn_c_try_run "$LINENO"
39387 then :
39388 gl_cv_func_nl_langinfo_yesexpr_works=yes
39389 else $as_nop
39390 gl_cv_func_nl_langinfo_yesexpr_works=no
39391 fi
39392 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39393 conftest.$ac_objext conftest.beam conftest.$ac_ext
39394 fi
39395
39396
39397 fi
39398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_nl_langinfo_yesexpr_works" >&5
39399 printf "%s\n" "$gl_cv_func_nl_langinfo_yesexpr_works" >&6; }
39400 case $gl_cv_func_nl_langinfo_yesexpr_works in
39401 *yes) FUNC_NL_LANGINFO_YESEXPR_WORKS=1 ;;
39402 *) FUNC_NL_LANGINFO_YESEXPR_WORKS=0 ;;
39403 esac
39404
39405 printf "%s\n" "#define FUNC_NL_LANGINFO_YESEXPR_WORKS $FUNC_NL_LANGINFO_YESEXPR_WORKS" >>confdefs.h
39406
39407 # On Solaris 10 and Solaris 11.3, nl_langinfo is not multithread-safe.
39408 case "$host_os" in
39409 solaris*) NL_LANGINFO_MTSAFE=0 ;;
39410 *) NL_LANGINFO_MTSAFE=1 ;;
39411 esac
39412
39413 printf "%s\n" "#define NL_LANGINFO_MTSAFE $NL_LANGINFO_MTSAFE" >>confdefs.h
39414
39415 if test $HAVE_LANGINFO_CODESET = 1 \
39416 && test $HAVE_LANGINFO_T_FMT_AMPM = 1 \
39417 && test $HAVE_LANGINFO_ALTMON = 1 \
39418 && test $HAVE_LANGINFO_ERA = 1 \
39419 && test $FUNC_NL_LANGINFO_YESEXPR_WORKS = 1 \
39420 && test $NL_LANGINFO_MTSAFE = 1; then
39421 :
39422 else
39423 REPLACE_NL_LANGINFO=1
39424
39425 printf "%s\n" "#define REPLACE_NL_LANGINFO 1" >>confdefs.h
39426
39427 fi
39428 else
39429 HAVE_NL_LANGINFO=0
39430 fi
39431 if test $HAVE_NL_LANGINFO = 0 || test $HAVE_LANGINFO_CODESET = 0; then
39432 LIB_NL_LANGINFO="$LIB_SETLOCALE_NULL"
39433 else
39434 LIB_NL_LANGINFO=
39435 fi
39436
39437
39438
39439 if test $HAVE_NL_LANGINFO = 0 || test $REPLACE_NL_LANGINFO = 1; then
39440 GL_COND_OBJ_NL_LANGINFO_TRUE=
39441 GL_COND_OBJ_NL_LANGINFO_FALSE='#'
39442 else
39443 GL_COND_OBJ_NL_LANGINFO_TRUE='#'
39444 GL_COND_OBJ_NL_LANGINFO_FALSE=
39445 fi
39446 :
39447 if test -z "${GL_COND_OBJ_NL_LANGINFO_TRUE}" && test -z "${GL_COND_OBJ_NL_LANGINFO_FALSE}"; then
39448 GL_COND_OBJ_NL_LANGINFO_TRUE='#'
39449 GL_COND_OBJ_NL_LANGINFO_FALSE='#'
39450 fi
39451
39452
39453 if test $REPLACE_NL_LANGINFO = 1 && test $NL_LANGINFO_MTSAFE = 0; then
39454 GL_COND_OBJ_NL_LANGINFO_LOCK_TRUE=
39455 GL_COND_OBJ_NL_LANGINFO_LOCK_FALSE='#'
39456 else
39457 GL_COND_OBJ_NL_LANGINFO_LOCK_TRUE='#'
39458 GL_COND_OBJ_NL_LANGINFO_LOCK_FALSE=
39459 fi
39460 :
39461 if test -z "${GL_COND_OBJ_NL_LANGINFO_LOCK_TRUE}" && test -z "${GL_COND_OBJ_NL_LANGINFO_LOCK_FALSE}"; then
39462 GL_COND_OBJ_NL_LANGINFO_LOCK_TRUE='#'
39463 GL_COND_OBJ_NL_LANGINFO_LOCK_FALSE='#'
39464 fi
39465
39466 if test $REPLACE_NL_LANGINFO = 1 && test $NL_LANGINFO_MTSAFE = 0; then
39467
39468
39469
39470 CFLAG_VISIBILITY=
39471 HAVE_VISIBILITY=0
39472 if test -n "$GCC"; then
39473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
39474 printf %s "checking whether the -Werror option is usable... " >&6; }
39475 if test ${gl_cv_cc_vis_werror+y}
39476 then :
39477 printf %s "(cached) " >&6
39478 else $as_nop
39479 gl_save_CFLAGS="$CFLAGS"
39480 CFLAGS="$CFLAGS -Werror"
39481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39482 /* end confdefs.h. */
39483
39484 int
39485 main (void)
39486 {
39487
39488 ;
39489 return 0;
39490 }
39491 _ACEOF
39492 if ac_fn_c_try_compile "$LINENO"
39493 then :
39494 gl_cv_cc_vis_werror=yes
39495 else $as_nop
39496 gl_cv_cc_vis_werror=no
39497 fi
39498 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
39499 CFLAGS="$gl_save_CFLAGS"
39500
39501 fi
39502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
39503 printf "%s\n" "$gl_cv_cc_vis_werror" >&6; }
39504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
39505 printf %s "checking for simple visibility declarations... " >&6; }
39506 if test ${gl_cv_cc_visibility+y}
39507 then :
39508 printf %s "(cached) " >&6
39509 else $as_nop
39510 gl_save_CFLAGS="$CFLAGS"
39511 CFLAGS="$CFLAGS -fvisibility=hidden"
39512 if test $gl_cv_cc_vis_werror = yes; then
39513 CFLAGS="$CFLAGS -Werror"
39514 fi
39515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39516 /* end confdefs.h. */
39517 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
39518 extern __attribute__((__visibility__("default"))) int exportedvar;
39519 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
39520 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
39521 void dummyfunc (void);
39522 int hiddenvar;
39523 int exportedvar;
39524 int hiddenfunc (void) { return 51; }
39525 int exportedfunc (void) { return 1225736919; }
39526 void dummyfunc (void) {}
39527
39528 int
39529 main (void)
39530 {
39531
39532 ;
39533 return 0;
39534 }
39535 _ACEOF
39536 if ac_fn_c_try_compile "$LINENO"
39537 then :
39538 gl_cv_cc_visibility=yes
39539 else $as_nop
39540 gl_cv_cc_visibility=no
39541 fi
39542 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
39543 CFLAGS="$gl_save_CFLAGS"
39544
39545 fi
39546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
39547 printf "%s\n" "$gl_cv_cc_visibility" >&6; }
39548 if test $gl_cv_cc_visibility = yes; then
39549 CFLAG_VISIBILITY="-fvisibility=hidden"
39550 HAVE_VISIBILITY=1
39551 fi
39552 fi
39553
39554
39555
39556 printf "%s\n" "#define HAVE_VISIBILITY $HAVE_VISIBILITY" >>confdefs.h
39557
39558
39559
39560 fi
39561
39562
39563
39564
39565
39566
39567
39568
39569
39570 GL_GNULIB_NL_LANGINFO=1
39571
39572
39573
39574
39575
39576 printf "%s\n" "#define GNULIB_TEST_NL_LANGINFO 1" >>confdefs.h
39577
39578
39579
39580
39581
39582
39583 case "$host_os" in
39584 mingw* | pw*)
39585 REPLACE_OPEN=1
39586 ;;
39587 *)
39588
39589 if test "$gl_cv_macro_O_CLOEXEC" != yes; then
39590 REPLACE_OPEN=1
39591 fi
39592
39593
39594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether open recognizes a trailing slash" >&5
39595 printf %s "checking whether open recognizes a trailing slash... " >&6; }
39596 if test ${gl_cv_func_open_slash+y}
39597 then :
39598 printf %s "(cached) " >&6
39599 else $as_nop
39600 # Assume that if we have lstat, we can also check symlinks.
39601 if test $ac_cv_func_lstat = yes; then
39602 touch conftest.tmp
39603 ln -s conftest.tmp conftest.lnk
39604 fi
39605 if test "$cross_compiling" = yes
39606 then :
39607
39608 case "$host_os" in
39609 freebsd* | aix* | hpux* | solaris2.[0-9] | solaris2.[0-9].*)
39610 gl_cv_func_open_slash="guessing no" ;;
39611 *)
39612 gl_cv_func_open_slash="guessing yes" ;;
39613 esac
39614
39615 else $as_nop
39616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39617 /* end confdefs.h. */
39618
39619 #include <fcntl.h>
39620 #if HAVE_UNISTD_H
39621 # include <unistd.h>
39622 #endif
39623
39624
39625 $gl_mda_defines
39626
39627 int main ()
39628 {
39629 int result = 0;
39630 #if HAVE_LSTAT
39631 if (open ("conftest.lnk/", O_RDONLY) != -1)
39632 result |= 1;
39633 #endif
39634 if (open ("conftest.sl/", O_CREAT, 0600) >= 0)
39635 result |= 2;
39636 return result;
39637 }
39638 _ACEOF
39639 if ac_fn_c_try_run "$LINENO"
39640 then :
39641 gl_cv_func_open_slash=yes
39642 else $as_nop
39643 gl_cv_func_open_slash=no
39644 fi
39645 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39646 conftest.$ac_objext conftest.beam conftest.$ac_ext
39647 fi
39648
39649 rm -f conftest.sl conftest.tmp conftest.lnk
39650
39651 fi
39652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_open_slash" >&5
39653 printf "%s\n" "$gl_cv_func_open_slash" >&6; }
39654 case "$gl_cv_func_open_slash" in
39655 *no)
39656
39657 printf "%s\n" "#define OPEN_TRAILING_SLASH_BUG 1" >>confdefs.h
39658
39659 ;;
39660 esac
39661
39662 case "$gl_cv_func_open_slash" in
39663 *no)
39664 REPLACE_OPEN=1
39665 ;;
39666 esac
39667 ;;
39668 esac
39669
39670
39671
39672
39673 if test $REPLACE_OPEN = 1; then
39674 GL_COND_OBJ_OPEN_TRUE=
39675 GL_COND_OBJ_OPEN_FALSE='#'
39676 else
39677 GL_COND_OBJ_OPEN_TRUE='#'
39678 GL_COND_OBJ_OPEN_FALSE=
39679 fi
39680 :
39681 if test -z "${GL_COND_OBJ_OPEN_TRUE}" && test -z "${GL_COND_OBJ_OPEN_FALSE}"; then
39682 GL_COND_OBJ_OPEN_TRUE='#'
39683 GL_COND_OBJ_OPEN_FALSE='#'
39684 fi
39685
39686 if test -z "$GL_COND_OBJ_OPEN_TRUE"; then :
39687
39688
39689
39690 :
39691
39692
39693 fi
39694
39695
39696
39697
39698
39699
39700
39701
39702
39703 GL_GNULIB_OPEN=1
39704
39705
39706
39707
39708
39709 printf "%s\n" "#define GNULIB_TEST_OPEN 1" >>confdefs.h
39710
39711
39712
39713
39714
39715
39716
39717
39718
39719
39720 ac_fn_c_check_func "$LINENO" "rawmemchr" "ac_cv_func_rawmemchr"
39721 if test "x$ac_cv_func_rawmemchr" = xyes
39722 then :
39723 printf "%s\n" "#define HAVE_RAWMEMCHR 1" >>confdefs.h
39724
39725 fi
39726
39727 if test $ac_cv_func_rawmemchr = no; then
39728 HAVE_RAWMEMCHR=0
39729 fi
39730
39731
39732 if test $HAVE_RAWMEMCHR = 0; then
39733 GL_COND_OBJ_RAWMEMCHR_TRUE=
39734 GL_COND_OBJ_RAWMEMCHR_FALSE='#'
39735 else
39736 GL_COND_OBJ_RAWMEMCHR_TRUE='#'
39737 GL_COND_OBJ_RAWMEMCHR_FALSE=
39738 fi
39739 :
39740 if test -z "${GL_COND_OBJ_RAWMEMCHR_TRUE}" && test -z "${GL_COND_OBJ_RAWMEMCHR_FALSE}"; then
39741 GL_COND_OBJ_RAWMEMCHR_TRUE='#'
39742 GL_COND_OBJ_RAWMEMCHR_FALSE='#'
39743 fi
39744
39745 if test -z "$GL_COND_OBJ_RAWMEMCHR_TRUE"; then :
39746
39747 :
39748
39749 fi
39750
39751
39752
39753
39754
39755
39756
39757
39758
39759
39760
39761
39762
39763
39764 GL_GNULIB_RAWMEMCHR=1
39765
39766
39767
39768
39769
39770 printf "%s\n" "#define GNULIB_TEST_RAWMEMCHR 1" >>confdefs.h
39771
39772
39773
39774
39775
39776
39777 if test $ac_cv_func_readlink = no; then
39778 HAVE_READLINK=0
39779 else
39780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
39781 printf %s "checking whether readlink signature is correct... " >&6; }
39782 if test ${gl_cv_decl_readlink_works+y}
39783 then :
39784 printf %s "(cached) " >&6
39785 else $as_nop
39786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39787 /* end confdefs.h. */
39788 #include <unistd.h>
39789 /* Cause compilation failure if original declaration has wrong type. */
39790 ssize_t readlink (const char *, char *, size_t);
39791 int
39792 main (void)
39793 {
39794
39795 ;
39796 return 0;
39797 }
39798 _ACEOF
39799 if ac_fn_c_try_compile "$LINENO"
39800 then :
39801 gl_cv_decl_readlink_works=yes
39802 else $as_nop
39803 gl_cv_decl_readlink_works=no
39804 fi
39805 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
39806 fi
39807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
39808 printf "%s\n" "$gl_cv_decl_readlink_works" >&6; }
39809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
39810 printf %s "checking whether readlink handles trailing slash correctly... " >&6; }
39811 if test ${gl_cv_func_readlink_trailing_slash+y}
39812 then :
39813 printf %s "(cached) " >&6
39814 else $as_nop
39815 # We have readlink, so assume ln -s works.
39816 ln -s conftest.no-such conftest.link
39817 ln -s conftest.link conftest.lnk2
39818 if test "$cross_compiling" = yes
39819 then :
39820 case "$host_os" in
39821 # Guess yes on Linux or glibc systems.
39822 linux-* | linux | *-gnu* | gnu*)
39823 gl_cv_func_readlink_trailing_slash="guessing yes" ;;
39824 # Guess no on AIX or HP-UX.
39825 aix* | hpux*)
39826 gl_cv_func_readlink_trailing_slash="guessing no" ;;
39827 # If we don't know, obey --enable-cross-guesses.
39828 *)
39829 gl_cv_func_readlink_trailing_slash="$gl_cross_guess_normal" ;;
39830 esac
39831
39832 else $as_nop
39833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39834 /* end confdefs.h. */
39835 #include <unistd.h>
39836
39837 int
39838 main (void)
39839 {
39840 char buf[20];
39841 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
39842 ;
39843 return 0;
39844 }
39845 _ACEOF
39846 if ac_fn_c_try_run "$LINENO"
39847 then :
39848 gl_cv_func_readlink_trailing_slash=yes
39849 else $as_nop
39850 gl_cv_func_readlink_trailing_slash=no
39851 fi
39852 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39853 conftest.$ac_objext conftest.beam conftest.$ac_ext
39854 fi
39855
39856 rm -f conftest.link conftest.lnk2
39857 fi
39858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_trailing_slash" >&5
39859 printf "%s\n" "$gl_cv_func_readlink_trailing_slash" >&6; }
39860 case "$gl_cv_func_readlink_trailing_slash" in
39861 *yes)
39862 if test "$gl_cv_decl_readlink_works" != yes; then
39863 REPLACE_READLINK=1
39864 fi
39865 ;;
39866 *)
39867
39868 printf "%s\n" "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
39869
39870 REPLACE_READLINK=1
39871 ;;
39872 esac
39873
39874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether readlink truncates results correctly" >&5
39875 printf %s "checking whether readlink truncates results correctly... " >&6; }
39876 if test ${gl_cv_func_readlink_truncate+y}
39877 then :
39878 printf %s "(cached) " >&6
39879 else $as_nop
39880 # We have readlink, so assume ln -s works.
39881 ln -s ab conftest.link
39882 if test "$cross_compiling" = yes
39883 then :
39884 case "$host_os" in
39885 # Guess yes on Linux or glibc systems.
39886 linux-* | linux | *-gnu* | gnu*)
39887 gl_cv_func_readlink_truncate="guessing yes" ;;
39888 # Guess no on AIX or HP-UX.
39889 aix* | hpux*)
39890 gl_cv_func_readlink_truncate="guessing no" ;;
39891 # If we don't know, obey --enable-cross-guesses.
39892 *)
39893 gl_cv_func_readlink_truncate="$gl_cross_guess_normal" ;;
39894 esac
39895
39896 else $as_nop
39897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39898 /* end confdefs.h. */
39899 #include <unistd.h>
39900
39901 int
39902 main (void)
39903 {
39904 char c;
39905 return readlink ("conftest.link", &c, 1) != 1;
39906 ;
39907 return 0;
39908 }
39909 _ACEOF
39910 if ac_fn_c_try_run "$LINENO"
39911 then :
39912 gl_cv_func_readlink_truncate=yes
39913 else $as_nop
39914 gl_cv_func_readlink_truncate=no
39915 fi
39916 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39917 conftest.$ac_objext conftest.beam conftest.$ac_ext
39918 fi
39919
39920 rm -f conftest.link conftest.lnk2
39921 fi
39922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_truncate" >&5
39923 printf "%s\n" "$gl_cv_func_readlink_truncate" >&6; }
39924 case $gl_cv_func_readlink_truncate in
39925 *yes)
39926 if test "$gl_cv_decl_readlink_works" != yes; then
39927 REPLACE_READLINK=1
39928 fi
39929 ;;
39930 *)
39931
39932 printf "%s\n" "#define READLINK_TRUNCATE_BUG 1" >>confdefs.h
39933
39934 REPLACE_READLINK=1
39935 ;;
39936 esac
39937 fi
39938
39939
39940 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
39941 GL_COND_OBJ_READLINK_TRUE=
39942 GL_COND_OBJ_READLINK_FALSE='#'
39943 else
39944 GL_COND_OBJ_READLINK_TRUE='#'
39945 GL_COND_OBJ_READLINK_FALSE=
39946 fi
39947 :
39948 if test -z "${GL_COND_OBJ_READLINK_TRUE}" && test -z "${GL_COND_OBJ_READLINK_FALSE}"; then
39949 GL_COND_OBJ_READLINK_TRUE='#'
39950 GL_COND_OBJ_READLINK_FALSE='#'
39951 fi
39952
39953 if test -z "$GL_COND_OBJ_READLINK_TRUE"; then :
39954
39955
39956 :
39957
39958
39959 fi
39960
39961
39962
39963
39964
39965
39966
39967
39968
39969 GL_GNULIB_READLINK=1
39970
39971
39972
39973
39974
39975 printf "%s\n" "#define GNULIB_TEST_READLINK 1" >>confdefs.h
39976
39977
39978
39979
39980
39981
39982 if test $REPLACE_REALLOC_FOR_REALLOC_GNU = 0; then
39983
39984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether realloc (0, 0) returns nonnull" >&5
39985 printf %s "checking whether realloc (0, 0) returns nonnull... " >&6; }
39986 if test ${ac_cv_func_realloc_0_nonnull+y}
39987 then :
39988 printf %s "(cached) " >&6
39989 else $as_nop
39990 if test "$cross_compiling" = yes
39991 then :
39992 case "$host_os" in
39993 # Guess yes on platforms where we know the result.
39994 *-gnu* | freebsd* | netbsd* | openbsd* | bitrig* \
39995 | gnu* | *-musl* | midnightbsd* \
39996 | hpux* | solaris* | cygwin* | mingw* | msys* )
39997 ac_cv_func_realloc_0_nonnull="guessing yes" ;;
39998 # If we don't know, obey --enable-cross-guesses.
39999 *) ac_cv_func_realloc_0_nonnull="$gl_cross_guess_normal" ;;
40000 esac
40001
40002 else $as_nop
40003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40004 /* end confdefs.h. */
40005 #include <stdlib.h>
40006
40007 int
40008 main (void)
40009 {
40010 void *p = realloc (0, 0);
40011 int result = !p;
40012 free (p);
40013 return result;
40014 ;
40015 return 0;
40016 }
40017
40018 _ACEOF
40019 if ac_fn_c_try_run "$LINENO"
40020 then :
40021 ac_cv_func_realloc_0_nonnull=yes
40022 else $as_nop
40023 ac_cv_func_realloc_0_nonnull=no
40024 fi
40025 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
40026 conftest.$ac_objext conftest.beam conftest.$ac_ext
40027 fi
40028
40029
40030 fi
40031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
40032 printf "%s\n" "$ac_cv_func_realloc_0_nonnull" >&6; }
40033 case $ac_cv_func_realloc_0_nonnull in #(
40034 *yes) :
40035 ;; #(
40036 *) :
40037 REPLACE_REALLOC_FOR_REALLOC_GNU=1 ;;
40038 esac
40039
40040 fi
40041
40042 if test $REPLACE_REALLOC_FOR_REALLOC_GNU = 1; then
40043
40044
40045
40046
40047
40048
40049
40050
40051 gl_LIBOBJS="$gl_LIBOBJS realloc.$ac_objext"
40052
40053 fi
40054
40055
40056
40057
40058
40059
40060
40061
40062
40063 GL_GNULIB_REALLOC_GNU=1
40064
40065
40066
40067
40068
40069 printf "%s\n" "#define GNULIB_TEST_REALLOC_GNU 1" >>confdefs.h
40070
40071
40072
40073
40074
40075
40076 if test $REPLACE_MALLOC_FOR_MALLOC_POSIX = 1; then
40077 REPLACE_REALLOC_FOR_REALLOC_POSIX=1
40078 fi
40079
40080 if test $REPLACE_REALLOC_FOR_REALLOC_POSIX = 1; then
40081
40082
40083
40084
40085
40086
40087
40088
40089 gl_LIBOBJS="$gl_LIBOBJS realloc.$ac_objext"
40090
40091 fi
40092
40093
40094
40095
40096
40097
40098
40099
40100
40101 GL_GNULIB_REALLOC_POSIX=1
40102
40103
40104
40105
40106
40107 printf "%s\n" "#define GNULIB_TEST_REALLOC_POSIX 1" >>confdefs.h
40108
40109
40110
40111
40112
40113
40114
40115
40116 ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray"
40117 if test "x$ac_cv_func_reallocarray" = xyes
40118 then :
40119 printf "%s\n" "#define HAVE_REALLOCARRAY 1" >>confdefs.h
40120
40121 fi
40122
40123 if test "$ac_cv_func_reallocarray" = no; then
40124 HAVE_REALLOCARRAY=0
40125 elif test "$gl_cv_malloc_ptrdiff" = no; then
40126 REPLACE_REALLOCARRAY=1
40127 fi
40128
40129
40130 if test $HAVE_REALLOCARRAY = 0 || test $REPLACE_REALLOCARRAY = 1; then
40131 GL_COND_OBJ_REALLOCARRAY_TRUE=
40132 GL_COND_OBJ_REALLOCARRAY_FALSE='#'
40133 else
40134 GL_COND_OBJ_REALLOCARRAY_TRUE='#'
40135 GL_COND_OBJ_REALLOCARRAY_FALSE=
40136 fi
40137 :
40138 if test -z "${GL_COND_OBJ_REALLOCARRAY_TRUE}" && test -z "${GL_COND_OBJ_REALLOCARRAY_FALSE}"; then
40139 GL_COND_OBJ_REALLOCARRAY_TRUE='#'
40140 GL_COND_OBJ_REALLOCARRAY_FALSE='#'
40141 fi
40142
40143 if test -z "$GL_COND_OBJ_REALLOCARRAY_TRUE"; then :
40144
40145 :
40146
40147 fi
40148
40149
40150 printf "%s\n" "#define GNULIB_REALLOCARRAY 1" >>confdefs.h
40151
40152
40153
40154
40155
40156
40157
40158
40159
40160
40161
40162 GL_GNULIB_REALLOCARRAY=1
40163
40164
40165
40166
40167
40168 printf "%s\n" "#define GNULIB_TEST_REALLOCARRAY 1" >>confdefs.h
40169
40170
40171
40172
40173
40174 # Check whether --with-included-regex was given.
40175 if test ${with_included_regex+y}
40176 then :
40177 withval=$with_included_regex;
40178 fi
40179
40180
40181 case $with_included_regex in #(
40182 yes|no) ac_use_included_regex=$with_included_regex
40183 ;;
40184 '')
40185 # If the system regex support is good enough that it passes the
40186 # following run test, then default to *not* using the included regex.c.
40187 # If cross compiling, assume the test would fail and use the included
40188 # regex.c.
40189
40190
40191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working re_compile_pattern" >&5
40192 printf %s "checking for working re_compile_pattern... " >&6; }
40193 if test ${gl_cv_func_re_compile_pattern_working+y}
40194 then :
40195 printf %s "(cached) " >&6
40196 else $as_nop
40197 if test "$cross_compiling" = yes
40198 then :
40199 case "$host_os" in
40200 # Guess no on native Windows.
40201 mingw*) gl_cv_func_re_compile_pattern_working="guessing no" ;;
40202 # Otherwise obey --enable-cross-guesses.
40203 *) gl_cv_func_re_compile_pattern_working="$gl_cross_guess_normal" ;;
40204 esac
40205
40206 else $as_nop
40207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40208 /* end confdefs.h. */
40209 #include <regex.h>
40210
40211 #include <locale.h>
40212 #include <limits.h>
40213 #include <string.h>
40214
40215 #if defined M_CHECK_ACTION || HAVE_DECL_ALARM
40216 # include <signal.h>
40217 # include <unistd.h>
40218 #endif
40219
40220 #if HAVE_MALLOC_H
40221 # include <malloc.h>
40222 #endif
40223
40224 #ifdef M_CHECK_ACTION
40225 /* Exit with distinguishable exit code. */
40226 static void sigabrt_no_core (int sig) { raise (SIGTERM); }
40227 #endif
40228
40229 int
40230 main (void)
40231 {
40232 int result = 0;
40233 static struct re_pattern_buffer regex;
40234 unsigned char folded_chars[UCHAR_MAX + 1];
40235 int i;
40236 const char *s;
40237 struct re_registers regs;
40238
40239 /* Some builds of glibc go into an infinite loop on this
40240 test. Use alarm to force death, and mallopt to avoid
40241 malloc recursion in diagnosing the corrupted heap. */
40242 #if HAVE_DECL_ALARM
40243 signal (SIGALRM, SIG_DFL);
40244 alarm (2);
40245 #endif
40246 #ifdef M_CHECK_ACTION
40247 signal (SIGABRT, sigabrt_no_core);
40248 mallopt (M_CHECK_ACTION, 2);
40249 #endif
40250
40251 if (setlocale (LC_ALL, "en_US.UTF-8"))
40252 {
40253 {
40254 /* https://sourceware.org/ml/libc-hacker/2006-09/msg00008.html
40255 This test needs valgrind to catch the bug on Debian
40256 GNU/Linux 3.1 x86, but it might catch the bug better
40257 on other platforms and it shouldn't hurt to try the
40258 test here. */
40259 static char const pat[] = "insert into";
40260 static char const data[] =
40261 "\xFF\0\x12\xA2\xAA\xC4\xB1,K\x12\xC4\xB1*\xACK";
40262 re_set_syntax (RE_SYNTAX_GREP | RE_HAT_LISTS_NOT_NEWLINE
40263 | RE_ICASE);
40264 memset (&regex, 0, sizeof regex);
40265 s = re_compile_pattern (pat, sizeof pat - 1, &regex);
40266 if (s)
40267 result |= 1;
40268 else
40269 {
40270 if (re_search (&regex, data, sizeof data - 1,
40271 0, sizeof data - 1, &regs)
40272 != -1)
40273 result |= 1;
40274 regfree (&regex);
40275 }
40276 }
40277
40278 {
40279 /* This test is from glibc bug 15078.
40280 The test case is from Andreas Schwab in
40281 <https://sourceware.org/ml/libc-alpha/2013-01/msg00967.html>.
40282 */
40283 static char const pat[] = "[^x]x";
40284 static char const data[] =
40285 /* <U1000><U103B><U103D><U1014><U103A><U102F><U1015><U103A> */
40286 "\xe1\x80\x80"
40287 "\xe1\x80\xbb"
40288 "\xe1\x80\xbd"
40289 "\xe1\x80\x94"
40290 "\xe1\x80\xba"
40291 "\xe1\x80\xaf"
40292 "\xe1\x80\x95"
40293 "\xe1\x80\xba"
40294 "x";
40295 re_set_syntax (0);
40296 memset (&regex, 0, sizeof regex);
40297 s = re_compile_pattern (pat, sizeof pat - 1, &regex);
40298 if (s)
40299 result |= 1;
40300 else
40301 {
40302 i = re_search (&regex, data, sizeof data - 1,
40303 0, sizeof data - 1, 0);
40304 if (i != 0 && i != 21)
40305 result |= 1;
40306 regfree (&regex);
40307 }
40308 }
40309
40310 if (! setlocale (LC_ALL, "C"))
40311 return 1;
40312 }
40313
40314 /* This test is from glibc bug 3957, reported by Andrew Mackey. */
40315 re_set_syntax (RE_SYNTAX_EGREP | RE_HAT_LISTS_NOT_NEWLINE);
40316 memset (&regex, 0, sizeof regex);
40317 s = re_compile_pattern ("a[^x]b", 6, &regex);
40318 if (s)
40319 result |= 2;
40320 else
40321 {
40322 /* This should fail, but succeeds for glibc-2.5. */
40323 if (re_search (&regex, "a\nb", 3, 0, 3, &regs) != -1)
40324 result |= 2;
40325 regfree (&regex);
40326 }
40327
40328 /* This regular expression is from Spencer ere test number 75
40329 in grep-2.3. */
40330 re_set_syntax (RE_SYNTAX_POSIX_EGREP);
40331 memset (&regex, 0, sizeof regex);
40332 for (i = 0; i <= UCHAR_MAX; i++)
40333 folded_chars[i] = i;
40334 regex.translate = folded_chars;
40335 s = re_compile_pattern ("a[[:]:]]b\n", 11, &regex);
40336 /* This should fail with _Invalid character class name_ error. */
40337 if (!s)
40338 {
40339 result |= 4;
40340 regfree (&regex);
40341 }
40342
40343 /* Ensure that [b-a] is diagnosed as invalid, when
40344 using RE_NO_EMPTY_RANGES. */
40345 re_set_syntax (RE_SYNTAX_POSIX_EGREP | RE_NO_EMPTY_RANGES);
40346 memset (&regex, 0, sizeof regex);
40347 s = re_compile_pattern ("a[b-a]", 6, &regex);
40348 if (s == 0)
40349 {
40350 result |= 8;
40351 regfree (&regex);
40352 }
40353
40354 /* This should succeed, but does not for glibc-2.1.3. */
40355 memset (&regex, 0, sizeof regex);
40356 s = re_compile_pattern ("{1", 2, &regex);
40357 if (s)
40358 result |= 8;
40359 else
40360 regfree (&regex);
40361
40362 /* The following example is derived from a problem report
40363 against gawk from Jorge Stolfi <[email protected]>. */
40364 memset (&regex, 0, sizeof regex);
40365 s = re_compile_pattern ("[an\371]*n", 7, &regex);
40366 if (s)
40367 result |= 8;
40368 else
40369 {
40370 /* This should match, but does not for glibc-2.2.1. */
40371 if (re_match (&regex, "an", 2, 0, &regs) != 2)
40372 result |= 8;
40373 else
40374 {
40375 free (regs.start);
40376 free (regs.end);
40377 }
40378 regfree (&regex);
40379 }
40380
40381 memset (&regex, 0, sizeof regex);
40382 s = re_compile_pattern ("x", 1, &regex);
40383 if (s)
40384 result |= 8;
40385 else
40386 {
40387 /* glibc-2.2.93 does not work with a negative RANGE argument. */
40388 if (re_search (&regex, "wxy", 3, 2, -2, &regs) != 1)
40389 result |= 8;
40390 else
40391 {
40392 free (regs.start);
40393 free (regs.end);
40394 }
40395 regfree (&regex);
40396 }
40397
40398 /* The version of regex.c in older versions of gnulib
40399 ignored RE_ICASE. Detect that problem too. */
40400 re_set_syntax (RE_SYNTAX_EMACS | RE_ICASE);
40401 memset (&regex, 0, sizeof regex);
40402 s = re_compile_pattern ("x", 1, &regex);
40403 if (s)
40404 result |= 16;
40405 else
40406 {
40407 if (re_search (&regex, "WXY", 3, 0, 3, &regs) < 0)
40408 result |= 16;
40409 else
40410 {
40411 free (regs.start);
40412 free (regs.end);
40413 }
40414 regfree (&regex);
40415 }
40416
40417 /* Catch a bug reported by Vin Shelton in
40418 https://lists.gnu.org/r/bug-coreutils/2007-06/msg00089.html
40419 */
40420 re_set_syntax (RE_SYNTAX_POSIX_BASIC
40421 & ~RE_CONTEXT_INVALID_DUP
40422 & ~RE_NO_EMPTY_RANGES);
40423 memset (&regex, 0, sizeof regex);
40424 s = re_compile_pattern ("[[:alnum:]_-]\\\\+\$", 16, &regex);
40425 if (s)
40426 result |= 32;
40427 else
40428 regfree (&regex);
40429
40430 /* REG_STARTEND was added to glibc on 2004-01-15.
40431 Reject older versions. */
40432 if (! REG_STARTEND)
40433 result |= 64;
40434
40435 /* Matching with the compiled form of this regexp would provoke
40436 an assertion failure prior to glibc-2.28:
40437 regexec.c:1375: pop_fail_stack: Assertion 'num >= 0' failed
40438 With glibc-2.28, compilation fails and reports the invalid
40439 back reference. */
40440 re_set_syntax (RE_SYNTAX_POSIX_EGREP);
40441 memset (&regex, 0, sizeof regex);
40442 s = re_compile_pattern ("0|()0|\\\\1|0", 10, &regex);
40443 if (!s)
40444 {
40445 memset (&regs, 0, sizeof regs);
40446 i = re_search (&regex, "x", 1, 0, 1, &regs);
40447 if (i != -1)
40448 result |= 64;
40449 if (0 <= i)
40450 {
40451 free (regs.start);
40452 free (regs.end);
40453 }
40454 regfree (&regex);
40455 }
40456 else
40457 {
40458 if (strcmp (s, "Invalid back reference"))
40459 result |= 64;
40460 }
40461
40462 /* glibc bug 11053. */
40463 re_set_syntax (RE_SYNTAX_POSIX_BASIC);
40464 memset (&regex, 0, sizeof regex);
40465 static char const pat_sub2[] = "\\\\(a*\\\\)*a*\\\\1";
40466 s = re_compile_pattern (pat_sub2, sizeof pat_sub2 - 1, &regex);
40467 if (s)
40468 result |= 64;
40469 else
40470 {
40471 memset (&regs, 0, sizeof regs);
40472 static char const data[] = "a";
40473 int datalen = sizeof data - 1;
40474 i = re_search (&regex, data, datalen, 0, datalen, &regs);
40475 if (i != 0)
40476 result |= 64;
40477 else if (regs.num_regs < 2)
40478 result |= 64;
40479 else if (! (regs.start[0] == 0 && regs.end[0] == 1))
40480 result |= 64;
40481 else if (! (regs.start[1] == 0 && regs.end[1] == 0))
40482 result |= 64;
40483 regfree (&regex);
40484 free (regs.start);
40485 free (regs.end);
40486 }
40487
40488 #if 0
40489 /* It would be nice to reject hosts whose regoff_t values are too
40490 narrow (including glibc on hosts with 64-bit ptrdiff_t and
40491 32-bit int), but we should wait until glibc implements this
40492 feature. Otherwise, support for equivalence classes and
40493 multibyte collation symbols would always be broken except
40494 when compiling --without-included-regex. */
40495 if (sizeof (regoff_t) < sizeof (ptrdiff_t)
40496 || sizeof (regoff_t) < sizeof (ssize_t))
40497 result |= 64;
40498 #endif
40499
40500 return result;
40501
40502 ;
40503 return 0;
40504 }
40505 _ACEOF
40506 if ac_fn_c_try_run "$LINENO"
40507 then :
40508 gl_cv_func_re_compile_pattern_working=yes
40509 else $as_nop
40510 gl_cv_func_re_compile_pattern_working=no
40511 fi
40512 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
40513 conftest.$ac_objext conftest.beam conftest.$ac_ext
40514 fi
40515
40516
40517 fi
40518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_re_compile_pattern_working" >&5
40519 printf "%s\n" "$gl_cv_func_re_compile_pattern_working" >&6; }
40520 case "$gl_cv_func_re_compile_pattern_working" in #(
40521 *yes) ac_use_included_regex=no;; #(
40522 *no) ac_use_included_regex=yes;;
40523 esac
40524 ;;
40525 *) as_fn_error $? "Invalid value for --with-included-regex: $with_included_regex" "$LINENO" 5
40526 ;;
40527 esac
40528
40529 if test $ac_use_included_regex = yes; then
40530
40531 printf "%s\n" "#define _REGEX_INCLUDE_LIMITS_H 1" >>confdefs.h
40532
40533
40534 printf "%s\n" "#define _REGEX_LARGE_OFFSETS 1" >>confdefs.h
40535
40536
40537 printf "%s\n" "#define re_syntax_options rpl_re_syntax_options" >>confdefs.h
40538
40539
40540 printf "%s\n" "#define re_set_syntax rpl_re_set_syntax" >>confdefs.h
40541
40542
40543 printf "%s\n" "#define re_compile_pattern rpl_re_compile_pattern" >>confdefs.h
40544
40545
40546 printf "%s\n" "#define re_compile_fastmap rpl_re_compile_fastmap" >>confdefs.h
40547
40548
40549 printf "%s\n" "#define re_search rpl_re_search" >>confdefs.h
40550
40551
40552 printf "%s\n" "#define re_search_2 rpl_re_search_2" >>confdefs.h
40553
40554
40555 printf "%s\n" "#define re_match rpl_re_match" >>confdefs.h
40556
40557
40558 printf "%s\n" "#define re_match_2 rpl_re_match_2" >>confdefs.h
40559
40560
40561 printf "%s\n" "#define re_set_registers rpl_re_set_registers" >>confdefs.h
40562
40563
40564 printf "%s\n" "#define re_comp rpl_re_comp" >>confdefs.h
40565
40566
40567 printf "%s\n" "#define re_exec rpl_re_exec" >>confdefs.h
40568
40569
40570 printf "%s\n" "#define regcomp rpl_regcomp" >>confdefs.h
40571
40572
40573 printf "%s\n" "#define regexec rpl_regexec" >>confdefs.h
40574
40575
40576 printf "%s\n" "#define regerror rpl_regerror" >>confdefs.h
40577
40578
40579 printf "%s\n" "#define regfree rpl_regfree" >>confdefs.h
40580
40581 fi
40582
40583
40584 if test $ac_use_included_regex = yes; then
40585 GL_COND_OBJ_REGEX_TRUE=
40586 GL_COND_OBJ_REGEX_FALSE='#'
40587 else
40588 GL_COND_OBJ_REGEX_TRUE='#'
40589 GL_COND_OBJ_REGEX_FALSE=
40590 fi
40591 :
40592 if test -z "${GL_COND_OBJ_REGEX_TRUE}" && test -z "${GL_COND_OBJ_REGEX_FALSE}"; then
40593 GL_COND_OBJ_REGEX_TRUE='#'
40594 GL_COND_OBJ_REGEX_FALSE='#'
40595 fi
40596
40597 if test -z "$GL_COND_OBJ_REGEX_TRUE"; then :
40598
40599
40600
40601
40602
40603
40604
40605 ac_fn_c_check_header_compile "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
40606 if test "x$ac_cv_header_libintl_h" = xyes
40607 then :
40608 printf "%s\n" "#define HAVE_LIBINTL_H 1" >>confdefs.h
40609
40610 fi
40611
40612
40613 ac_fn_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
40614 " "$ac_c_undeclared_builtin_options" "CFLAGS"
40615 if test "x$ac_cv_have_decl_isblank" = xyes
40616 then :
40617 ac_have_decl=1
40618 else $as_nop
40619 ac_have_decl=0
40620 fi
40621 printf "%s\n" "#define HAVE_DECL_ISBLANK $ac_have_decl" >>confdefs.h
40622
40623
40624
40625 fi
40626
40627 :
40628
40629
40630
40631 if test "$with_selinux" != no; then
40632 ac_fn_c_check_header_compile "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default"
40633 if test "x$ac_cv_header_selinux_selinux_h" = xyes
40634 then :
40635 printf "%s\n" "#define HAVE_SELINUX_SELINUX_H 1" >>confdefs.h
40636
40637 fi
40638
40639
40640 if test "$ac_cv_header_selinux_selinux_h" = yes; then
40641 # We do have <selinux/selinux.h>, so do compile getfilecon.c
40642 # and arrange to use its wrappers.
40643
40644
40645
40646
40647
40648
40649
40650
40651
40652 if test $gl_cv_have_include_next = yes; then
40653 gl_cv_next_selinux_selinux_h='<'selinux/selinux.h'>'
40654 else
40655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <selinux/selinux.h>" >&5
40656 printf %s "checking absolute name of <selinux/selinux.h>... " >&6; }
40657 if test ${gl_cv_next_selinux_selinux_h+y}
40658 then :
40659 printf %s "(cached) " >&6
40660 else $as_nop
40661
40662 if test $ac_cv_header_selinux_selinux_h = yes; then
40663
40664
40665
40666
40667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40668 /* end confdefs.h. */
40669 #include <selinux/selinux.h>
40670 _ACEOF
40671 case "$host_os" in
40672 aix*) gl_absname_cpp="$ac_cpp -C" ;;
40673 *) gl_absname_cpp="$ac_cpp" ;;
40674 esac
40675
40676 case "$host_os" in
40677 mingw*)
40678 gl_dirsep_regex='[/\\]'
40679 ;;
40680 *)
40681 gl_dirsep_regex='\/'
40682 ;;
40683 esac
40684 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
40685 gl_header_literal_regex=`echo 'selinux/selinux.h' \
40686 | sed -e "$gl_make_literal_regex_sed"`
40687 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
40688 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
40689 s|^/[^/]|//&|
40690 p
40691 q
40692 }'
40693
40694 gl_cv_absolute_selinux_selinux_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
40695 sed -n "$gl_absolute_header_sed"`
40696
40697 gl_header=$gl_cv_absolute_selinux_selinux_h
40698 gl_cv_next_selinux_selinux_h='"'$gl_header'"'
40699 else
40700 gl_cv_next_selinux_selinux_h='<'selinux/selinux.h'>'
40701 fi
40702
40703
40704 fi
40705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_selinux_selinux_h" >&5
40706 printf "%s\n" "$gl_cv_next_selinux_selinux_h" >&6; }
40707 fi
40708 NEXT_SELINUX_SELINUX_H=$gl_cv_next_selinux_selinux_h
40709
40710 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
40711 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
40712 gl_next_as_first_directive='<'selinux/selinux.h'>'
40713 else
40714 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
40715 gl_next_as_first_directive=$gl_cv_next_selinux_selinux_h
40716 fi
40717 NEXT_AS_FIRST_DIRECTIVE_SELINUX_SELINUX_H=$gl_next_as_first_directive
40718
40719
40720
40721
40722
40723 printf "%s\n" "#define getfilecon rpl_getfilecon" >>confdefs.h
40724
40725
40726 printf "%s\n" "#define lgetfilecon rpl_lgetfilecon" >>confdefs.h
40727
40728
40729 printf "%s\n" "#define fgetfilecon rpl_fgetfilecon" >>confdefs.h
40730
40731 fi
40732
40733 case "$ac_cv_search_setfilecon:$ac_cv_header_selinux_selinux_h" in
40734 no:*) # already warned
40735 ;;
40736 *:no)
40737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: libselinux was found but selinux/selinux.h is missing." >&5
40738 printf "%s\n" "$as_me: WARNING: libselinux was found but selinux/selinux.h is missing." >&2;}
40739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: augeas will be compiled without SELinux support." >&5
40740 printf "%s\n" "$as_me: WARNING: augeas will be compiled without SELinux support." >&2;}
40741 esac
40742 else
40743 # Do as if <selinux/selinux.h> does not exist, even if
40744 # AC_CHECK_HEADERS_ONCE has already determined that it exists.
40745 printf "%s\n" "#define HAVE_SELINUX_SELINUX_H 0" >>confdefs.h
40746
40747 fi
40748
40749
40750
40751 if test "$with_selinux" != no; then
40752 for ac_header in selinux/context.h
40753 do :
40754 ac_fn_c_check_header_compile "$LINENO" "selinux/context.h" "ac_cv_header_selinux_context_h" "$ac_includes_default"
40755 if test "x$ac_cv_header_selinux_context_h" = xyes
40756 then :
40757 printf "%s\n" "#define HAVE_SELINUX_CONTEXT_H 1" >>confdefs.h
40758 GL_GENERATE_SELINUX_CONTEXT_H=false
40759 else $as_nop
40760 GL_GENERATE_SELINUX_CONTEXT_H=true
40761 fi
40762
40763 done
40764 else
40765 GL_GENERATE_SELINUX_CONTEXT_H=true
40766 fi
40767
40768
40769
40770 GL_GENERATE_SELINUX_LABEL_H=true
40771 if test "$with_selinux" != no; then
40772 for ac_header in selinux/label.h
40773 do :
40774 ac_fn_c_check_header_compile "$LINENO" "selinux/label.h" "ac_cv_header_selinux_label_h" "$ac_includes_default"
40775 if test "x$ac_cv_header_selinux_label_h" = xyes
40776 then :
40777 printf "%s\n" "#define HAVE_SELINUX_LABEL_H 1" >>confdefs.h
40778 GL_GENERATE_SELINUX_LABEL_H=false
40779 fi
40780
40781 done
40782 fi
40783
40784
40785
40786
40787
40788 case "$GL_GENERATE_SELINUX_CONTEXT_H" in
40789 false) SELINUX_CONTEXT_H='' ;;
40790 true)
40791 if test -z "$SELINUX_CONTEXT_H"; then
40792 SELINUX_CONTEXT_H="${gl_source_base_prefix}selinux/context.h"
40793 fi
40794 ;;
40795 *) echo "*** GL_GENERATE_SELINUX_CONTEXT_H is not set correctly" 1>&2; exit 1 ;;
40796 esac
40797
40798
40799 if $GL_GENERATE_SELINUX_CONTEXT_H; then
40800 GL_GENERATE_SELINUX_CONTEXT_H_TRUE=
40801 GL_GENERATE_SELINUX_CONTEXT_H_FALSE='#'
40802 else
40803 GL_GENERATE_SELINUX_CONTEXT_H_TRUE='#'
40804 GL_GENERATE_SELINUX_CONTEXT_H_FALSE=
40805 fi
40806 :
40807 if test -z "${GL_GENERATE_SELINUX_CONTEXT_H_TRUE}" && test -z "${GL_GENERATE_SELINUX_CONTEXT_H_FALSE}"; then
40808 GL_GENERATE_SELINUX_CONTEXT_H_TRUE='#'
40809 GL_GENERATE_SELINUX_CONTEXT_H_FALSE='#'
40810 fi
40811
40812
40813
40814
40815
40816
40817
40818
40819
40820 case "$GL_GENERATE_SELINUX_LABEL_H" in
40821 false) SELINUX_LABEL_H='' ;;
40822 true)
40823 if test -z "$SELINUX_LABEL_H"; then
40824 SELINUX_LABEL_H="${gl_source_base_prefix}selinux/label.h"
40825 fi
40826 ;;
40827 *) echo "*** GL_GENERATE_SELINUX_LABEL_H is not set correctly" 1>&2; exit 1 ;;
40828 esac
40829
40830
40831 if $GL_GENERATE_SELINUX_LABEL_H; then
40832 GL_GENERATE_SELINUX_LABEL_H_TRUE=
40833 GL_GENERATE_SELINUX_LABEL_H_FALSE='#'
40834 else
40835 GL_GENERATE_SELINUX_LABEL_H_TRUE='#'
40836 GL_GENERATE_SELINUX_LABEL_H_FALSE=
40837 fi
40838 :
40839 if test -z "${GL_GENERATE_SELINUX_LABEL_H_TRUE}" && test -z "${GL_GENERATE_SELINUX_LABEL_H_FALSE}"; then
40840 GL_GENERATE_SELINUX_LABEL_H_TRUE='#'
40841 GL_GENERATE_SELINUX_LABEL_H_FALSE='#'
40842 fi
40843
40844
40845
40846
40847
40848
40849
40850 if test "$with_selinux" != no && test "$ac_cv_header_selinux_selinux_h" = yes; then
40851 GL_COND_OBJ_GETFILECON_TRUE=
40852 GL_COND_OBJ_GETFILECON_FALSE='#'
40853 else
40854 GL_COND_OBJ_GETFILECON_TRUE='#'
40855 GL_COND_OBJ_GETFILECON_FALSE=
40856 fi
40857 :
40858 if test -z "${GL_COND_OBJ_GETFILECON_TRUE}" && test -z "${GL_COND_OBJ_GETFILECON_FALSE}"; then
40859 GL_COND_OBJ_GETFILECON_TRUE='#'
40860 GL_COND_OBJ_GETFILECON_FALSE='#'
40861 fi
40862
40863
40864
40865
40866
40867
40868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether setlocale (LC_ALL, NULL) is multithread-safe" >&5
40869 printf %s "checking whether setlocale (LC_ALL, NULL) is multithread-safe... " >&6; }
40870 if test ${gl_cv_func_setlocale_null_all_mtsafe+y}
40871 then :
40872 printf %s "(cached) " >&6
40873 else $as_nop
40874 case "$host_os" in
40875 # Guess no on musl libc, macOS, FreeBSD, NetBSD, OpenBSD, AIX, Haiku, Cygwin.
40876 *-musl* | darwin* | freebsd* | midnightbsd* | netbsd* | openbsd* | aix* | haiku* | cygwin*)
40877 gl_cv_func_setlocale_null_all_mtsafe=no ;;
40878 # Guess yes on glibc, HP-UX, IRIX, Solaris, native Windows.
40879 *-gnu* | gnu* | hpux* | irix* | solaris* | mingw*)
40880 gl_cv_func_setlocale_null_all_mtsafe=yes ;;
40881 # If we don't know, obey --enable-cross-guesses.
40882 *)
40883 gl_cv_func_setlocale_null_all_mtsafe="$gl_cross_guess_normal" ;;
40884 esac
40885
40886 fi
40887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setlocale_null_all_mtsafe" >&5
40888 printf "%s\n" "$gl_cv_func_setlocale_null_all_mtsafe" >&6; }
40889 case "$host_os" in
40890 mingw*) ;;
40891 *)
40892 if test $gl_pthread_api = no && test $ac_cv_header_threads_h = no; then
40893 gl_cv_func_setlocale_null_all_mtsafe="trivially yes"
40894 fi
40895 ;;
40896 esac
40897 case "$gl_cv_func_setlocale_null_all_mtsafe" in
40898 *yes) SETLOCALE_NULL_ALL_MTSAFE=1 ;;
40899 *) SETLOCALE_NULL_ALL_MTSAFE=0 ;;
40900 esac
40901
40902 printf "%s\n" "#define SETLOCALE_NULL_ALL_MTSAFE $SETLOCALE_NULL_ALL_MTSAFE" >>confdefs.h
40903
40904
40905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether setlocale (category, NULL) is multithread-safe" >&5
40906 printf %s "checking whether setlocale (category, NULL) is multithread-safe... " >&6; }
40907 if test ${gl_cv_func_setlocale_null_one_mtsafe+y}
40908 then :
40909 printf %s "(cached) " >&6
40910 else $as_nop
40911 case "$host_os" in
40912 # Guess no on OpenBSD, AIX.
40913 openbsd* | aix*)
40914 gl_cv_func_setlocale_null_one_mtsafe=no ;;
40915 # Guess yes on glibc, musl libc, macOS, FreeBSD, NetBSD, HP-UX, IRIX, Solaris, Haiku, Cygwin, native Windows.
40916 *-gnu* | gnu* | *-musl* | darwin* | freebsd* | midnightbsd* | netbsd* | hpux* | irix* | solaris* | haiku* | cygwin* | mingw*)
40917 gl_cv_func_setlocale_null_one_mtsafe=yes ;;
40918 # If we don't know, obey --enable-cross-guesses.
40919 *)
40920 gl_cv_func_setlocale_null_one_mtsafe="$gl_cross_guess_normal" ;;
40921 esac
40922
40923 fi
40924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setlocale_null_one_mtsafe" >&5
40925 printf "%s\n" "$gl_cv_func_setlocale_null_one_mtsafe" >&6; }
40926 case "$host_os" in
40927 mingw*) ;;
40928 *)
40929 if test $gl_pthread_api = no && test $ac_cv_header_threads_h = no; then
40930 gl_cv_func_setlocale_null_one_mtsafe="trivially yes"
40931 fi
40932 ;;
40933 esac
40934 case "$gl_cv_func_setlocale_null_one_mtsafe" in
40935 *yes) SETLOCALE_NULL_ONE_MTSAFE=1 ;;
40936 *) SETLOCALE_NULL_ONE_MTSAFE=0 ;;
40937 esac
40938
40939 printf "%s\n" "#define SETLOCALE_NULL_ONE_MTSAFE $SETLOCALE_NULL_ONE_MTSAFE" >>confdefs.h
40940
40941
40942 if test $SETLOCALE_NULL_ALL_MTSAFE = 0 || test $SETLOCALE_NULL_ONE_MTSAFE = 0; then
40943 case "$host_os" in
40944 mingw*) LIB_SETLOCALE_NULL= ;;
40945 *)
40946
40947
40948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
40949 printf %s "checking whether imported symbols can be declared weak... " >&6; }
40950 if test ${gl_cv_have_weak+y}
40951 then :
40952 printf %s "(cached) " >&6
40953 else $as_nop
40954 case "$host_os" in
40955 cygwin*)
40956 gl_cv_have_weak="guessing no"
40957 ;;
40958 *)
40959 gl_cv_have_weak=no
40960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40961 /* end confdefs.h. */
40962 extern void xyzzy ();
40963 #pragma weak xyzzy
40964 int
40965 main (void)
40966 {
40967 xyzzy();
40968 ;
40969 return 0;
40970 }
40971 _ACEOF
40972 if ac_fn_c_try_link "$LINENO"
40973 then :
40974 gl_cv_have_weak=maybe
40975 fi
40976 rm -f core conftest.err conftest.$ac_objext conftest.beam \
40977 conftest$ac_exeext conftest.$ac_ext
40978 if test $gl_cv_have_weak = maybe; then
40979 if test "$cross_compiling" = yes
40980 then :
40981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40982 /* end confdefs.h. */
40983 #ifdef __ELF__
40984 Extensible Linking Format
40985 #endif
40986
40987 _ACEOF
40988 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40989 $EGREP "Extensible Linking Format" >/dev/null 2>&1
40990 then :
40991 gl_cv_have_weak="guessing yes"
40992 else $as_nop
40993 gl_cv_have_weak="guessing no"
40994 fi
40995 rm -rf conftest*
40996
40997
40998 else $as_nop
40999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41000 /* end confdefs.h. */
41001
41002 #include <stdio.h>
41003 #pragma weak fputs
41004 int main ()
41005 {
41006 return (fputs == NULL);
41007 }
41008 _ACEOF
41009 if ac_fn_c_try_run "$LINENO"
41010 then :
41011 gl_cv_have_weak=yes
41012 else $as_nop
41013 gl_cv_have_weak=no
41014 fi
41015 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
41016 conftest.$ac_objext conftest.beam conftest.$ac_ext
41017 fi
41018
41019 fi
41020 ;;
41021 esac
41022 case " $LDFLAGS " in
41023 *" -static "*) gl_cv_have_weak=no ;;
41024 esac
41025 case "$gl_cv_have_weak" in
41026 *yes)
41027 case "$host_os" in
41028 freebsd* | dragonfly* | midnightbsd*)
41029 : > conftest1.c
41030 $CC $CPPFLAGS $CFLAGS $LDFLAGS -fPIC -shared -o libempty.so conftest1.c -lpthread >&5 2>&1
41031 cat <<EOF > conftest2.c
41032 #include <pthread.h>
41033 #pragma weak pthread_mutexattr_gettype
41034 int main ()
41035 {
41036 return (pthread_mutexattr_gettype != NULL);
41037 }
41038 EOF
41039 $CC $CPPFLAGS $CFLAGS $LDFLAGS -o conftest conftest2.c libempty.so >&5 2>&1 \
41040 || gl_cv_have_weak=no
41041 rm -f conftest1.c libempty.so conftest2.c conftest
41042 ;;
41043 esac
41044 ;;
41045 esac
41046
41047 fi
41048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
41049 printf "%s\n" "$gl_cv_have_weak" >&6; }
41050 case "$gl_cv_have_weak" in
41051 *yes)
41052
41053 printf "%s\n" "#define HAVE_WEAK_SYMBOLS 1" >>confdefs.h
41054
41055 ;;
41056 esac
41057
41058 case "$gl_cv_have_weak" in
41059 *yes) LIB_SETLOCALE_NULL= ;;
41060 *) LIB_SETLOCALE_NULL="$LIBPTHREAD" ;;
41061 esac
41062 ;;
41063 esac
41064 else
41065 LIB_SETLOCALE_NULL=
41066 fi
41067
41068
41069
41070 if test $SETLOCALE_NULL_ALL_MTSAFE = 0 || test $SETLOCALE_NULL_ONE_MTSAFE = 0; then
41071 GL_COND_OBJ_SETLOCALE_LOCK_TRUE=
41072 GL_COND_OBJ_SETLOCALE_LOCK_FALSE='#'
41073 else
41074 GL_COND_OBJ_SETLOCALE_LOCK_TRUE='#'
41075 GL_COND_OBJ_SETLOCALE_LOCK_FALSE=
41076 fi
41077 :
41078 if test -z "${GL_COND_OBJ_SETLOCALE_LOCK_TRUE}" && test -z "${GL_COND_OBJ_SETLOCALE_LOCK_FALSE}"; then
41079 GL_COND_OBJ_SETLOCALE_LOCK_TRUE='#'
41080 GL_COND_OBJ_SETLOCALE_LOCK_FALSE='#'
41081 fi
41082
41083 if test -z "$GL_COND_OBJ_SETLOCALE_LOCK_TRUE"; then :
41084
41085
41086
41087
41088 CFLAG_VISIBILITY=
41089 HAVE_VISIBILITY=0
41090 if test -n "$GCC"; then
41091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
41092 printf %s "checking whether the -Werror option is usable... " >&6; }
41093 if test ${gl_cv_cc_vis_werror+y}
41094 then :
41095 printf %s "(cached) " >&6
41096 else $as_nop
41097 gl_save_CFLAGS="$CFLAGS"
41098 CFLAGS="$CFLAGS -Werror"
41099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41100 /* end confdefs.h. */
41101
41102 int
41103 main (void)
41104 {
41105
41106 ;
41107 return 0;
41108 }
41109 _ACEOF
41110 if ac_fn_c_try_compile "$LINENO"
41111 then :
41112 gl_cv_cc_vis_werror=yes
41113 else $as_nop
41114 gl_cv_cc_vis_werror=no
41115 fi
41116 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
41117 CFLAGS="$gl_save_CFLAGS"
41118
41119 fi
41120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
41121 printf "%s\n" "$gl_cv_cc_vis_werror" >&6; }
41122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
41123 printf %s "checking for simple visibility declarations... " >&6; }
41124 if test ${gl_cv_cc_visibility+y}
41125 then :
41126 printf %s "(cached) " >&6
41127 else $as_nop
41128 gl_save_CFLAGS="$CFLAGS"
41129 CFLAGS="$CFLAGS -fvisibility=hidden"
41130 if test $gl_cv_cc_vis_werror = yes; then
41131 CFLAGS="$CFLAGS -Werror"
41132 fi
41133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41134 /* end confdefs.h. */
41135 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
41136 extern __attribute__((__visibility__("default"))) int exportedvar;
41137 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
41138 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
41139 void dummyfunc (void);
41140 int hiddenvar;
41141 int exportedvar;
41142 int hiddenfunc (void) { return 51; }
41143 int exportedfunc (void) { return 1225736919; }
41144 void dummyfunc (void) {}
41145
41146 int
41147 main (void)
41148 {
41149
41150 ;
41151 return 0;
41152 }
41153 _ACEOF
41154 if ac_fn_c_try_compile "$LINENO"
41155 then :
41156 gl_cv_cc_visibility=yes
41157 else $as_nop
41158 gl_cv_cc_visibility=no
41159 fi
41160 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
41161 CFLAGS="$gl_save_CFLAGS"
41162
41163 fi
41164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
41165 printf "%s\n" "$gl_cv_cc_visibility" >&6; }
41166 if test $gl_cv_cc_visibility = yes; then
41167 CFLAG_VISIBILITY="-fvisibility=hidden"
41168 HAVE_VISIBILITY=1
41169 fi
41170 fi
41171
41172
41173
41174 printf "%s\n" "#define HAVE_VISIBILITY $HAVE_VISIBILITY" >>confdefs.h
41175
41176
41177
41178
41179 fi
41180
41181
41182
41183
41184
41185
41186
41187
41188
41189 GL_GNULIB_SETLOCALE_NULL=1
41190
41191
41192
41193
41194
41195 printf "%s\n" "#define GNULIB_TEST_SETLOCALE_NULL 1" >>confdefs.h
41196
41197
41198
41199
41200 ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
41201 if test "x$ac_cv_header_stdint_h" = xyes
41202 then :
41203 printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
41204
41205 fi
41206
41207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
41208 printf %s "checking for SIZE_MAX... " >&6; }
41209 if test ${gl_cv_size_max+y}
41210 then :
41211 printf %s "(cached) " >&6
41212 else $as_nop
41213
41214 gl_cv_size_max=no
41215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41216 /* end confdefs.h. */
41217
41218 #include <limits.h>
41219 #if HAVE_STDINT_H
41220 #include <stdint.h>
41221 #endif
41222 #ifdef SIZE_MAX
41223 Found it
41224 #endif
41225
41226 _ACEOF
41227 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41228 $EGREP "Found it" >/dev/null 2>&1
41229 then :
41230 gl_cv_size_max=yes
41231 fi
41232 rm -rf conftest*
41233
41234 if test $gl_cv_size_max != yes; then
41235 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
41236 #include <limits.h>"
41237 then :
41238
41239 else $as_nop
41240 size_t_bits_minus_1=
41241 fi
41242
41243 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"
41244 then :
41245
41246 else $as_nop
41247 fits_in_uint=
41248 fi
41249
41250 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
41251 if test $fits_in_uint = 1; then
41252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41253 /* end confdefs.h. */
41254 #include <stddef.h>
41255 extern size_t foo;
41256 extern unsigned long foo;
41257
41258 int
41259 main (void)
41260 {
41261
41262 ;
41263 return 0;
41264 }
41265 _ACEOF
41266 if ac_fn_c_try_compile "$LINENO"
41267 then :
41268 fits_in_uint=0
41269 fi
41270 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
41271 fi
41272 if test $fits_in_uint = 1; then
41273 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
41274 else
41275 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
41276 fi
41277 else
41278 gl_cv_size_max='((size_t)~(size_t)0)'
41279 fi
41280 fi
41281
41282 fi
41283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
41284 printf "%s\n" "$gl_cv_size_max" >&6; }
41285 if test "$gl_cv_size_max" != yes; then
41286
41287 printf "%s\n" "#define SIZE_MAX $gl_cv_size_max" >>confdefs.h
41288
41289 fi
41290
41291
41292
41293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
41294 printf %s "checking for ssize_t... " >&6; }
41295 if test ${gt_cv_ssize_t+y}
41296 then :
41297 printf %s "(cached) " >&6
41298 else $as_nop
41299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41300 /* end confdefs.h. */
41301 #include <sys/types.h>
41302 int
41303 main (void)
41304 {
41305 int x = sizeof (ssize_t *) + sizeof (ssize_t);
41306 return !x;
41307 ;
41308 return 0;
41309 }
41310 _ACEOF
41311 if ac_fn_c_try_compile "$LINENO"
41312 then :
41313 gt_cv_ssize_t=yes
41314 else $as_nop
41315 gt_cv_ssize_t=no
41316 fi
41317 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
41318 fi
41319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
41320 printf "%s\n" "$gt_cv_ssize_t" >&6; }
41321 if test $gt_cv_ssize_t = no; then
41322
41323 printf "%s\n" "#define ssize_t int" >>confdefs.h
41324
41325 fi
41326
41327
41328
41329
41330
41331 case "$host_os" in
41332 mingw*)
41333 REPLACE_STAT=1
41334 ;;
41335 *)
41336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
41337 printf %s "checking whether stat handles trailing slashes on files... " >&6; }
41338 if test ${gl_cv_func_stat_file_slash+y}
41339 then :
41340 printf %s "(cached) " >&6
41341 else $as_nop
41342 touch conftest.tmp
41343 # Assume that if we have lstat, we can also check symlinks.
41344 if test $ac_cv_func_lstat = yes; then
41345 ln -s conftest.tmp conftest.lnk
41346 fi
41347 if test "$cross_compiling" = yes
41348 then :
41349 case "$host_os" in
41350 # Guess yes on Linux systems.
41351 linux-* | linux) gl_cv_func_stat_file_slash="guessing yes" ;;
41352 # Guess yes on glibc systems.
41353 *-gnu* | gnu*) gl_cv_func_stat_file_slash="guessing yes" ;;
41354 # If we don't know, obey --enable-cross-guesses.
41355 *) gl_cv_func_stat_file_slash="$gl_cross_guess_normal" ;;
41356 esac
41357
41358 else $as_nop
41359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41360 /* end confdefs.h. */
41361 #include <sys/stat.h>
41362
41363 int
41364 main (void)
41365 {
41366 int result = 0;
41367 struct stat st;
41368 if (!stat ("conftest.tmp/", &st))
41369 result |= 1;
41370 #if HAVE_LSTAT
41371 if (!stat ("conftest.lnk/", &st))
41372 result |= 2;
41373 #endif
41374 return result;
41375
41376 ;
41377 return 0;
41378 }
41379 _ACEOF
41380 if ac_fn_c_try_run "$LINENO"
41381 then :
41382 gl_cv_func_stat_file_slash=yes
41383 else $as_nop
41384 gl_cv_func_stat_file_slash=no
41385 fi
41386 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
41387 conftest.$ac_objext conftest.beam conftest.$ac_ext
41388 fi
41389
41390 rm -f conftest.tmp conftest.lnk
41391 fi
41392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
41393 printf "%s\n" "$gl_cv_func_stat_file_slash" >&6; }
41394 case $gl_cv_func_stat_file_slash in
41395 *no)
41396 REPLACE_STAT=1
41397
41398 printf "%s\n" "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
41399 ;;
41400 esac
41401 case $host_os in
41402 solaris*)
41403 REPLACE_FSTAT=1 ;;
41404 esac
41405 ;;
41406 esac
41407
41408
41409 if test $REPLACE_STAT = 1; then
41410 GL_COND_OBJ_STAT_TRUE=
41411 GL_COND_OBJ_STAT_FALSE='#'
41412 else
41413 GL_COND_OBJ_STAT_TRUE='#'
41414 GL_COND_OBJ_STAT_FALSE=
41415 fi
41416 :
41417 if test -z "${GL_COND_OBJ_STAT_TRUE}" && test -z "${GL_COND_OBJ_STAT_FALSE}"; then
41418 GL_COND_OBJ_STAT_TRUE='#'
41419 GL_COND_OBJ_STAT_FALSE='#'
41420 fi
41421
41422 if test -z "$GL_COND_OBJ_STAT_TRUE"; then :
41423
41424 case "$host_os" in
41425 mingw*)
41426
41427
41428
41429
41430
41431
41432
41433
41434 gl_LIBOBJS="$gl_LIBOBJS stat-w32.$ac_objext"
41435
41436 ;;
41437 esac
41438
41439
41440
41441 :
41442
41443
41444 fi
41445
41446
41447
41448
41449
41450
41451
41452
41453
41454 GL_GNULIB_STAT=1
41455
41456
41457
41458
41459
41460 printf "%s\n" "#define GNULIB_TEST_STAT 1" >>confdefs.h
41461
41462
41463
41464
41465
41466
41467
41468 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>
41469 #include <sys/stat.h>
41470 "
41471 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = xyes
41472 then :
41473
41474 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1" >>confdefs.h
41475
41476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
41477 printf %s "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
41478 if test ${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+y}
41479 then :
41480 printf %s "(cached) " >&6
41481 else $as_nop
41482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41483 /* end confdefs.h. */
41484
41485 #include <sys/types.h>
41486 #include <sys/stat.h>
41487 #if HAVE_SYS_TIME_H
41488 # include <sys/time.h>
41489 #endif
41490 #include <time.h>
41491 struct timespec ts;
41492 struct stat st;
41493
41494 int
41495 main (void)
41496 {
41497
41498 st.st_atim = ts;
41499
41500 ;
41501 return 0;
41502 }
41503 _ACEOF
41504 if ac_fn_c_try_compile "$LINENO"
41505 then :
41506 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes
41507 else $as_nop
41508 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no
41509 fi
41510 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
41511 fi
41512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
41513 printf "%s\n" "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
41514 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
41515
41516 printf "%s\n" "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
41517
41518 fi
41519 else $as_nop
41520 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>
41521 #include <sys/stat.h>
41522 "
41523 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = xyes
41524 then :
41525
41526 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1" >>confdefs.h
41527
41528
41529 else $as_nop
41530 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
41531 #include <sys/stat.h>
41532 "
41533 if test "x$ac_cv_member_struct_stat_st_atimensec" = xyes
41534 then :
41535
41536 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIMENSEC 1" >>confdefs.h
41537
41538
41539 else $as_nop
41540 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>
41541 #include <sys/stat.h>
41542 "
41543 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = xyes
41544 then :
41545
41546 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1" >>confdefs.h
41547
41548
41549 fi
41550
41551 fi
41552
41553 fi
41554
41555 fi
41556
41557
41558
41559
41560
41561 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>
41562 #include <sys/stat.h>
41563 "
41564 if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = xyes
41565 then :
41566
41567 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1" >>confdefs.h
41568
41569
41570 else $as_nop
41571 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/types.h>
41572 #include <sys/stat.h>
41573 "
41574 if test "x$ac_cv_member_struct_stat_st_birthtimensec" = xyes
41575 then :
41576
41577 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1" >>confdefs.h
41578
41579
41580 else $as_nop
41581 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>
41582 #include <sys/stat.h>
41583 "
41584 if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = xyes
41585 then :
41586
41587 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1" >>confdefs.h
41588
41589
41590 fi
41591
41592 fi
41593
41594 fi
41595
41596
41597
41598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alignas and alignof" >&5
41599 printf %s "checking for alignas and alignof... " >&6; }
41600 if test ${gl_cv_header_working_stdalign_h+y}
41601 then :
41602 printf %s "(cached) " >&6
41603 else $as_nop
41604 gl_save_CFLAGS=$CFLAGS
41605 for gl_working in "yes, keywords" "yes, <stdalign.h> macros"; do
41606 case $gl_working in #(
41607 *stdalign.h*) :
41608 CFLAGS="$gl_save_CFLAGS -DINCLUDE_STDALIGN_H" ;; #(
41609 *) :
41610 ;;
41611 esac
41612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41613 /* end confdefs.h. */
41614 #include <stdint.h>
41615 #ifdef INCLUDE_STDALIGN_H
41616 #include <stdalign.h>
41617 #endif
41618 #include <stddef.h>
41619
41620 /* Test that alignof yields a result consistent with offsetof.
41621 This catches GCC bug 52023
41622 <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */
41623 #ifdef __cplusplus
41624 template <class t> struct alignof_helper { char a; t b; };
41625 # define ao(type) offsetof (alignof_helper<type>, b)
41626 #else
41627 # define ao(type) offsetof (struct { char a; type b; }, b)
41628 #endif
41629 char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
41630 char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
41631 char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
41632
41633 /* Test alignas only on platforms where gnulib can help. */
41634 #if \
41635 ((defined __cplusplus && 201103 <= __cplusplus) \
41636 || (__TINYC__ && defined __attribute__) \
41637 || (defined __APPLE__ && defined __MACH__ \
41638 ? 4 < __GNUC__ + (1 <= __GNUC_MINOR__) \
41639 : __GNUC__) \
41640 || (__ia64 && (61200 <= __HP_cc || 61200 <= __HP_aCC)) \
41641 || __ICC || 0x590 <= __SUNPRO_C || 0x0600 <= __xlC__ \
41642 || 1300 <= _MSC_VER)
41643 struct alignas_test { char c; char alignas (8) alignas_8; };
41644 char test_alignas[offsetof (struct alignas_test, alignas_8) == 8
41645 ? 1 : -1];
41646 #endif
41647
41648 int
41649 main (void)
41650 {
41651
41652 ;
41653 return 0;
41654 }
41655 _ACEOF
41656 if ac_fn_c_try_compile "$LINENO"
41657 then :
41658 gl_cv_header_working_stdalign_h=$gl_working
41659 else $as_nop
41660 gl_cv_header_working_stdalign_h=no
41661 fi
41662 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
41663
41664 CFLAGS=$gl_save_CFLAGS
41665 test "$gl_cv_header_working_stdalign_h" != no && break
41666 done
41667 fi
41668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
41669 printf "%s\n" "$gl_cv_header_working_stdalign_h" >&6; }
41670
41671 GL_GENERATE_STDALIGN_H=false
41672 case $gl_cv_header_working_stdalign_h in #(
41673 no) :
41674 GL_GENERATE_STDALIGN_H=true ;; #(
41675 yes*keyword*) :
41676
41677 printf "%s\n" "#define HAVE_C_ALIGNASOF 1" >>confdefs.h
41678 ;; #(
41679 *) :
41680 ;;
41681 esac
41682
41683
41684
41685
41686
41687
41688
41689
41690
41691 case "$GL_GENERATE_STDALIGN_H" in
41692 false) STDALIGN_H='' ;;
41693 true)
41694 if test -z "$STDALIGN_H"; then
41695 STDALIGN_H="${gl_source_base_prefix}stdalign.h"
41696 fi
41697 ;;
41698 *) echo "*** GL_GENERATE_STDALIGN_H is not set correctly" 1>&2; exit 1 ;;
41699 esac
41700
41701
41702 if $GL_GENERATE_STDALIGN_H; then
41703 GL_GENERATE_STDALIGN_H_TRUE=
41704 GL_GENERATE_STDALIGN_H_FALSE='#'
41705 else
41706 GL_GENERATE_STDALIGN_H_TRUE='#'
41707 GL_GENERATE_STDALIGN_H_FALSE=
41708 fi
41709 :
41710 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
41711 GL_GENERATE_STDALIGN_H_TRUE='#'
41712 GL_GENERATE_STDALIGN_H_FALSE='#'
41713 fi
41714
41715
41716
41717
41718
41719
41720
41721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bool, true, false" >&5
41722 printf %s "checking for bool, true, false... " >&6; }
41723 if test ${gl_cv_c_bool+y}
41724 then :
41725 printf %s "(cached) " >&6
41726 else $as_nop
41727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41728 /* end confdefs.h. */
41729
41730 #if true == false
41731 #error "true == false"
41732 #endif
41733 extern bool b;
41734 bool b = true == false;
41735 _ACEOF
41736 if ac_fn_c_try_compile "$LINENO"
41737 then :
41738 gl_cv_c_bool=yes
41739 else $as_nop
41740 gl_cv_c_bool=no
41741 fi
41742 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
41743 fi
41744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_bool" >&5
41745 printf "%s\n" "$gl_cv_c_bool" >&6; }
41746 if test "$gl_cv_c_bool" = yes; then
41747
41748 printf "%s\n" "#define HAVE_C_BOOL 1" >>confdefs.h
41749
41750 fi
41751
41752
41753
41754
41755
41756
41757 if test $ac_cv_header_stdckdint_h = yes; then
41758 GL_GENERATE_STDCKDINT_H=false
41759 else
41760 GL_GENERATE_STDCKDINT_H=true
41761 fi
41762
41763
41764
41765
41766 case "$GL_GENERATE_STDCKDINT_H" in
41767 false) STDCKDINT_H='' ;;
41768 true)
41769 if test -z "$STDCKDINT_H"; then
41770 STDCKDINT_H="${gl_source_base_prefix}stdckdint.h"
41771 fi
41772 ;;
41773 *) echo "*** GL_GENERATE_STDCKDINT_H is not set correctly" 1>&2; exit 1 ;;
41774 esac
41775
41776
41777 if $GL_GENERATE_STDCKDINT_H; then
41778 GL_GENERATE_STDCKDINT_H_TRUE=
41779 GL_GENERATE_STDCKDINT_H_FALSE='#'
41780 else
41781 GL_GENERATE_STDCKDINT_H_TRUE='#'
41782 GL_GENERATE_STDCKDINT_H_FALSE=
41783 fi
41784 :
41785 if test -z "${GL_GENERATE_STDCKDINT_H_TRUE}" && test -z "${GL_GENERATE_STDCKDINT_H_FALSE}"; then
41786 GL_GENERATE_STDCKDINT_H_TRUE='#'
41787 GL_GENERATE_STDCKDINT_H_FALSE='#'
41788 fi
41789
41790
41791
41792
41793
41794
41795
41796
41797
41798
41799
41800
41801
41802
41803
41804
41805 case "$GL_GENERATE_STDDEF_H" in
41806 false) STDDEF_H='' ;;
41807 true)
41808 if test -z "$STDDEF_H"; then
41809 STDDEF_H="${gl_source_base_prefix}stddef.h"
41810 fi
41811 ;;
41812 *) echo "*** GL_GENERATE_STDDEF_H is not set correctly" 1>&2; exit 1 ;;
41813 esac
41814
41815
41816 if $GL_GENERATE_STDDEF_H; then
41817 GL_GENERATE_STDDEF_H_TRUE=
41818 GL_GENERATE_STDDEF_H_FALSE='#'
41819 else
41820 GL_GENERATE_STDDEF_H_TRUE='#'
41821 GL_GENERATE_STDDEF_H_FALSE=
41822 fi
41823 :
41824 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
41825 GL_GENERATE_STDDEF_H_TRUE='#'
41826 GL_GENERATE_STDDEF_H_FALSE='#'
41827 fi
41828
41829
41830
41831
41832
41833
41834
41835
41836
41837
41838
41839 case "$GL_GENERATE_STDINT_H" in
41840 false) STDINT_H='' ;;
41841 true)
41842 if test -z "$STDINT_H"; then
41843 STDINT_H="${gl_source_base_prefix}stdint.h"
41844 fi
41845 ;;
41846 *) echo "*** GL_GENERATE_STDINT_H is not set correctly" 1>&2; exit 1 ;;
41847 esac
41848
41849
41850 if $GL_GENERATE_STDINT_H; then
41851 GL_GENERATE_STDINT_H_TRUE=
41852 GL_GENERATE_STDINT_H_FALSE='#'
41853 else
41854 GL_GENERATE_STDINT_H_TRUE='#'
41855 GL_GENERATE_STDINT_H_FALSE=
41856 fi
41857 :
41858 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
41859 GL_GENERATE_STDINT_H_TRUE='#'
41860 GL_GENERATE_STDINT_H_FALSE='#'
41861 fi
41862
41863
41864
41865
41866
41867
41868
41869
41870
41871 case "$GL_GENERATE_LIMITS_H" in
41872 false) LIMITS_H='' ;;
41873 true)
41874 if test -z "$LIMITS_H"; then
41875 LIMITS_H="${gl_source_base_prefix}limits.h"
41876 fi
41877 ;;
41878 *) echo "*** GL_GENERATE_LIMITS_H is not set correctly" 1>&2; exit 1 ;;
41879 esac
41880
41881
41882 if $GL_GENERATE_LIMITS_H; then
41883 GL_GENERATE_LIMITS_H_TRUE=
41884 GL_GENERATE_LIMITS_H_FALSE='#'
41885 else
41886 GL_GENERATE_LIMITS_H_TRUE='#'
41887 GL_GENERATE_LIMITS_H_FALSE=
41888 fi
41889 :
41890 if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
41891 GL_GENERATE_LIMITS_H_TRUE='#'
41892 GL_GENERATE_LIMITS_H_FALSE='#'
41893 fi
41894
41895
41896
41897
41898
41899
41900
41901
41902
41903
41904
41905
41906
41907
41908 if test $REPLACE_STDIO_READ_FUNCS = 1; then
41909 GL_COND_OBJ_STDIO_READ_TRUE=
41910 GL_COND_OBJ_STDIO_READ_FALSE='#'
41911 else
41912 GL_COND_OBJ_STDIO_READ_TRUE='#'
41913 GL_COND_OBJ_STDIO_READ_FALSE=
41914 fi
41915 :
41916 if test -z "${GL_COND_OBJ_STDIO_READ_TRUE}" && test -z "${GL_COND_OBJ_STDIO_READ_FALSE}"; then
41917 GL_COND_OBJ_STDIO_READ_TRUE='#'
41918 GL_COND_OBJ_STDIO_READ_FALSE='#'
41919 fi
41920
41921
41922 if test $REPLACE_STDIO_WRITE_FUNCS = 1; then
41923 GL_COND_OBJ_STDIO_WRITE_TRUE=
41924 GL_COND_OBJ_STDIO_WRITE_FALSE='#'
41925 else
41926 GL_COND_OBJ_STDIO_WRITE_TRUE='#'
41927 GL_COND_OBJ_STDIO_WRITE_FALSE=
41928 fi
41929 :
41930 if test -z "${GL_COND_OBJ_STDIO_WRITE_TRUE}" && test -z "${GL_COND_OBJ_STDIO_WRITE_FALSE}"; then
41931 GL_COND_OBJ_STDIO_WRITE_TRUE='#'
41932 GL_COND_OBJ_STDIO_WRITE_FALSE='#'
41933 fi
41934
41935
41936
41937
41938
41939
41940
41941
41942
41943
41944 GL_GNULIB_FSCANF=1
41945
41946
41947
41948
41949
41950 printf "%s\n" "#define GNULIB_TEST_FSCANF 1" >>confdefs.h
41951
41952
41953
41954
41955
41956 printf "%s\n" "#define GNULIB_FSCANF 1" >>confdefs.h
41957
41958
41959
41960
41961
41962
41963
41964
41965
41966
41967
41968 GL_GNULIB_SCANF=1
41969
41970
41971
41972
41973
41974 printf "%s\n" "#define GNULIB_TEST_SCANF 1" >>confdefs.h
41975
41976
41977
41978
41979
41980 printf "%s\n" "#define GNULIB_SCANF 1" >>confdefs.h
41981
41982
41983
41984
41985
41986
41987
41988
41989
41990
41991
41992 GL_GNULIB_FGETC=1
41993
41994
41995
41996
41997
41998 printf "%s\n" "#define GNULIB_TEST_FGETC 1" >>confdefs.h
41999
42000
42001
42002
42003
42004
42005
42006
42007
42008
42009
42010
42011 GL_GNULIB_GETC=1
42012
42013
42014
42015
42016
42017 printf "%s\n" "#define GNULIB_TEST_GETC 1" >>confdefs.h
42018
42019
42020
42021
42022
42023
42024
42025
42026
42027
42028
42029
42030 GL_GNULIB_GETCHAR=1
42031
42032
42033
42034
42035
42036 printf "%s\n" "#define GNULIB_TEST_GETCHAR 1" >>confdefs.h
42037
42038
42039
42040
42041
42042
42043
42044
42045
42046
42047
42048
42049 GL_GNULIB_FGETS=1
42050
42051
42052
42053
42054
42055 printf "%s\n" "#define GNULIB_TEST_FGETS 1" >>confdefs.h
42056
42057
42058
42059
42060
42061
42062
42063
42064
42065
42066
42067
42068 GL_GNULIB_FREAD=1
42069
42070
42071
42072
42073
42074 printf "%s\n" "#define GNULIB_TEST_FREAD 1" >>confdefs.h
42075
42076
42077
42078
42079
42080
42081
42082
42083
42084
42085
42086
42087 GL_GNULIB_FPRINTF=1
42088
42089
42090
42091
42092
42093 printf "%s\n" "#define GNULIB_TEST_FPRINTF 1" >>confdefs.h
42094
42095
42096
42097
42098
42099
42100
42101
42102
42103
42104
42105
42106 GL_GNULIB_PRINTF=1
42107
42108
42109
42110
42111
42112 printf "%s\n" "#define GNULIB_TEST_PRINTF 1" >>confdefs.h
42113
42114
42115
42116
42117
42118
42119
42120
42121
42122
42123
42124
42125 GL_GNULIB_VFPRINTF=1
42126
42127
42128
42129
42130
42131 printf "%s\n" "#define GNULIB_TEST_VFPRINTF 1" >>confdefs.h
42132
42133
42134
42135
42136
42137
42138
42139
42140
42141
42142
42143
42144 GL_GNULIB_VPRINTF=1
42145
42146
42147
42148
42149
42150 printf "%s\n" "#define GNULIB_TEST_VPRINTF 1" >>confdefs.h
42151
42152
42153
42154
42155
42156
42157
42158
42159
42160
42161
42162
42163 GL_GNULIB_FPUTC=1
42164
42165
42166
42167
42168
42169 printf "%s\n" "#define GNULIB_TEST_FPUTC 1" >>confdefs.h
42170
42171
42172
42173
42174
42175
42176
42177
42178
42179
42180
42181
42182 GL_GNULIB_PUTC=1
42183
42184
42185
42186
42187
42188 printf "%s\n" "#define GNULIB_TEST_PUTC 1" >>confdefs.h
42189
42190
42191
42192
42193
42194
42195
42196
42197
42198
42199
42200
42201 GL_GNULIB_PUTCHAR=1
42202
42203
42204
42205
42206
42207 printf "%s\n" "#define GNULIB_TEST_PUTCHAR 1" >>confdefs.h
42208
42209
42210
42211
42212
42213
42214
42215
42216
42217
42218
42219
42220 GL_GNULIB_FPUTS=1
42221
42222
42223
42224
42225
42226 printf "%s\n" "#define GNULIB_TEST_FPUTS 1" >>confdefs.h
42227
42228
42229
42230
42231
42232
42233
42234
42235
42236
42237
42238
42239 GL_GNULIB_PUTS=1
42240
42241
42242
42243
42244
42245 printf "%s\n" "#define GNULIB_TEST_PUTS 1" >>confdefs.h
42246
42247
42248
42249
42250
42251
42252
42253
42254
42255
42256
42257
42258 GL_GNULIB_FWRITE=1
42259
42260
42261
42262
42263
42264 printf "%s\n" "#define GNULIB_TEST_FWRITE 1" >>confdefs.h
42265
42266
42267
42268
42269
42270
42271
42272
42273
42274
42275
42276
42277
42278
42279
42280
42281 ac_fn_c_check_func "$LINENO" "stpcpy" "ac_cv_func_stpcpy"
42282 if test "x$ac_cv_func_stpcpy" = xyes
42283 then :
42284 printf "%s\n" "#define HAVE_STPCPY 1" >>confdefs.h
42285
42286 fi
42287
42288 if test $ac_cv_func_stpcpy = no; then
42289 HAVE_STPCPY=0
42290 fi
42291
42292
42293 if test $HAVE_STPCPY = 0; then
42294 GL_COND_OBJ_STPCPY_TRUE=
42295 GL_COND_OBJ_STPCPY_FALSE='#'
42296 else
42297 GL_COND_OBJ_STPCPY_TRUE='#'
42298 GL_COND_OBJ_STPCPY_FALSE=
42299 fi
42300 :
42301 if test -z "${GL_COND_OBJ_STPCPY_TRUE}" && test -z "${GL_COND_OBJ_STPCPY_FALSE}"; then
42302 GL_COND_OBJ_STPCPY_TRUE='#'
42303 GL_COND_OBJ_STPCPY_FALSE='#'
42304 fi
42305
42306 if test -z "$GL_COND_OBJ_STPCPY_TRUE"; then :
42307
42308
42309 :
42310
42311
42312 fi
42313
42314
42315
42316
42317
42318
42319
42320
42321
42322
42323
42324
42325
42326
42327 GL_GNULIB_STPCPY=1
42328
42329
42330
42331
42332
42333 printf "%s\n" "#define GNULIB_TEST_STPCPY 1" >>confdefs.h
42334
42335
42336
42337
42338
42339
42340
42341
42342
42343
42344
42345
42346
42347
42348 if test $ac_cv_func_stpncpy = yes; then
42349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working stpncpy" >&5
42350 printf %s "checking for working stpncpy... " >&6; }
42351 if test ${gl_cv_func_stpncpy+y}
42352 then :
42353 printf %s "(cached) " >&6
42354 else $as_nop
42355
42356 if test "$cross_compiling" = yes
42357 then :
42358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42359 /* end confdefs.h. */
42360
42361 #include <features.h>
42362 #ifdef __GNU_LIBRARY__
42363 Thanks for using GNU
42364 #endif
42365
42366 _ACEOF
42367 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42368 $EGREP "Thanks for using GNU" >/dev/null 2>&1
42369 then :
42370 gl_cv_func_stpncpy="guessing yes"
42371 else $as_nop
42372 case "$host_os" in
42373 *-musl*) gl_cv_func_stpncpy="guessing yes" ;;
42374 *) gl_cv_func_stpncpy="$gl_cross_guess_normal" ;;
42375 esac
42376
42377 fi
42378 rm -rf conftest*
42379
42380
42381 else $as_nop
42382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42383 /* end confdefs.h. */
42384
42385 #include <stdlib.h>
42386 #include <string.h> /* for strcpy */
42387 /* The stpncpy prototype is missing in <string.h> on AIX 4. */
42388 #if !HAVE_DECL_STPNCPY
42389 extern
42390 # ifdef __cplusplus
42391 "C"
42392 # endif
42393 char *stpncpy (char *dest, const char *src, size_t n);
42394 #endif
42395 int main ()
42396 {
42397 int result = 0;
42398 const char *src = "Hello";
42399 char dest[10];
42400 /* AIX 4.3.3 and AIX 5.1 stpncpy() returns dest+1 here. */
42401 {
42402 strcpy (dest, "\377\377\377\377\377\377");
42403 if (stpncpy (dest, src, 2) != dest + 2)
42404 result |= 1;
42405 }
42406 /* AIX 4.3.3 and AIX 5.1 stpncpy() returns dest+4 here. */
42407 {
42408 strcpy (dest, "\377\377\377\377\377\377");
42409 if (stpncpy (dest, src, 5) != dest + 5)
42410 result |= 2;
42411 }
42412 /* AIX 4.3.3 and AIX 5.1 stpncpy() returns dest+6 here. */
42413 {
42414 strcpy (dest, "\377\377\377\377\377\377");
42415 if (stpncpy (dest, src, 7) != dest + 5)
42416 result |= 4;
42417 }
42418 return result;
42419 }
42420
42421 _ACEOF
42422 if ac_fn_c_try_run "$LINENO"
42423 then :
42424 gl_cv_func_stpncpy=yes
42425 else $as_nop
42426 gl_cv_func_stpncpy=no
42427 fi
42428 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
42429 conftest.$ac_objext conftest.beam conftest.$ac_ext
42430 fi
42431
42432
42433 fi
42434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stpncpy" >&5
42435 printf "%s\n" "$gl_cv_func_stpncpy" >&6; }
42436 case "$gl_cv_func_stpncpy" in
42437 *yes)
42438
42439 printf "%s\n" "#define HAVE_STPNCPY 1" >>confdefs.h
42440
42441 ;;
42442 *)
42443 REPLACE_STPNCPY=1
42444 ;;
42445 esac
42446 else
42447 HAVE_STPNCPY=0
42448 fi
42449
42450
42451 if test $HAVE_STPNCPY = 0 || test $REPLACE_STPNCPY = 1; then
42452 GL_COND_OBJ_STPNCPY_TRUE=
42453 GL_COND_OBJ_STPNCPY_FALSE='#'
42454 else
42455 GL_COND_OBJ_STPNCPY_TRUE='#'
42456 GL_COND_OBJ_STPNCPY_FALSE=
42457 fi
42458 :
42459 if test -z "${GL_COND_OBJ_STPNCPY_TRUE}" && test -z "${GL_COND_OBJ_STPNCPY_FALSE}"; then
42460 GL_COND_OBJ_STPNCPY_TRUE='#'
42461 GL_COND_OBJ_STPNCPY_FALSE='#'
42462 fi
42463
42464 if test -z "$GL_COND_OBJ_STPNCPY_TRUE"; then :
42465
42466
42467 :
42468
42469
42470 fi
42471
42472
42473
42474
42475
42476
42477
42478
42479
42480
42481
42482
42483
42484
42485 GL_GNULIB_STPNCPY=1
42486
42487
42488
42489
42490
42491 printf "%s\n" "#define GNULIB_TEST_STPNCPY 1" >>confdefs.h
42492
42493
42494
42495
42496
42497
42498
42499 ac_fn_c_check_func "$LINENO" "strchrnul" "ac_cv_func_strchrnul"
42500 if test "x$ac_cv_func_strchrnul" = xyes
42501 then :
42502 printf "%s\n" "#define HAVE_STRCHRNUL 1" >>confdefs.h
42503
42504 fi
42505
42506 if test $ac_cv_func_strchrnul = no; then
42507 HAVE_STRCHRNUL=0
42508 else
42509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether strchrnul works" >&5
42510 printf %s "checking whether strchrnul works... " >&6; }
42511 if test ${gl_cv_func_strchrnul_works+y}
42512 then :
42513 printf %s "(cached) " >&6
42514 else $as_nop
42515 if test "$cross_compiling" = yes
42516 then :
42517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42518 /* end confdefs.h. */
42519
42520 #if defined __CYGWIN__
42521 #include <cygwin/version.h>
42522 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 9)
42523 Lucky user
42524 #endif
42525 #else
42526 Lucky user
42527 #endif
42528
42529 _ACEOF
42530 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42531 $EGREP "Lucky user" >/dev/null 2>&1
42532 then :
42533 gl_cv_func_strchrnul_works="guessing yes"
42534 else $as_nop
42535 gl_cv_func_strchrnul_works="guessing no"
42536 fi
42537 rm -rf conftest*
42538
42539
42540 else $as_nop
42541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42542 /* end confdefs.h. */
42543
42544 #include <string.h> /* for strchrnul */
42545
42546 int
42547 main (void)
42548 {
42549 const char *buf = "a";
42550 return strchrnul (buf, 'b') != buf + 1;
42551
42552 ;
42553 return 0;
42554 }
42555 _ACEOF
42556 if ac_fn_c_try_run "$LINENO"
42557 then :
42558 gl_cv_func_strchrnul_works=yes
42559 else $as_nop
42560 gl_cv_func_strchrnul_works=no
42561 fi
42562 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
42563 conftest.$ac_objext conftest.beam conftest.$ac_ext
42564 fi
42565
42566
42567 fi
42568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strchrnul_works" >&5
42569 printf "%s\n" "$gl_cv_func_strchrnul_works" >&6; }
42570 case "$gl_cv_func_strchrnul_works" in
42571 *yes) ;;
42572 *) REPLACE_STRCHRNUL=1 ;;
42573 esac
42574 fi
42575
42576
42577 if test $HAVE_STRCHRNUL = 0 || test $REPLACE_STRCHRNUL = 1; then
42578 GL_COND_OBJ_STRCHRNUL_TRUE=
42579 GL_COND_OBJ_STRCHRNUL_FALSE='#'
42580 else
42581 GL_COND_OBJ_STRCHRNUL_TRUE='#'
42582 GL_COND_OBJ_STRCHRNUL_FALSE=
42583 fi
42584 :
42585 if test -z "${GL_COND_OBJ_STRCHRNUL_TRUE}" && test -z "${GL_COND_OBJ_STRCHRNUL_FALSE}"; then
42586 GL_COND_OBJ_STRCHRNUL_TRUE='#'
42587 GL_COND_OBJ_STRCHRNUL_FALSE='#'
42588 fi
42589
42590 if test -z "$GL_COND_OBJ_STRCHRNUL_TRUE"; then :
42591
42592 :
42593
42594 fi
42595
42596
42597
42598
42599
42600
42601
42602
42603
42604
42605
42606
42607
42608
42609 GL_GNULIB_STRCHRNUL=1
42610
42611
42612
42613
42614
42615 printf "%s\n" "#define GNULIB_TEST_STRCHRNUL 1" >>confdefs.h
42616
42617
42618
42619
42620
42621
42622
42623
42624
42625
42626
42627
42628
42629
42630
42631
42632
42633
42634
42635
42636
42637 if test $ac_cv_have_decl_strndup = no; then
42638 HAVE_DECL_STRNDUP=0
42639 fi
42640
42641 if test $ac_cv_func_strndup = yes; then
42642 HAVE_STRNDUP=1
42643 # AIX 4.3.3, AIX 5.1 have a function that fails to add the terminating '\0'.
42644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working strndup" >&5
42645 printf %s "checking for working strndup... " >&6; }
42646 if test ${gl_cv_func_strndup_works+y}
42647 then :
42648 printf %s "(cached) " >&6
42649 else $as_nop
42650 if test "$cross_compiling" = yes
42651 then :
42652
42653 case $host_os in
42654 aix | aix[3-6]*) gl_cv_func_strndup_works="guessing no";;
42655 *) gl_cv_func_strndup_works="guessing yes";;
42656 esac
42657
42658 else $as_nop
42659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42660 /* end confdefs.h. */
42661
42662 #include <string.h>
42663 #include <stdlib.h>
42664 int
42665 main (void)
42666 {
42667
42668 #if !HAVE_DECL_STRNDUP
42669 extern
42670 #ifdef __cplusplus
42671 "C"
42672 #endif
42673 char *strndup (const char *, size_t);
42674 #endif
42675 int result;
42676 char *s;
42677 s = strndup ("some longer string", 15);
42678 free (s);
42679 s = strndup ("shorter string", 13);
42680 result = s[13] != '\0';
42681 free (s);
42682 return result;
42683 ;
42684 return 0;
42685 }
42686 _ACEOF
42687 if ac_fn_c_try_run "$LINENO"
42688 then :
42689 gl_cv_func_strndup_works=yes
42690 else $as_nop
42691 gl_cv_func_strndup_works=no
42692 fi
42693 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
42694 conftest.$ac_objext conftest.beam conftest.$ac_ext
42695 fi
42696
42697 fi
42698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strndup_works" >&5
42699 printf "%s\n" "$gl_cv_func_strndup_works" >&6; }
42700 case $gl_cv_func_strndup_works in
42701 *no) REPLACE_STRNDUP=1 ;;
42702 esac
42703 else
42704 HAVE_STRNDUP=0
42705 fi
42706
42707
42708 if test $HAVE_STRNDUP = 0 || test $REPLACE_STRNDUP = 1; then
42709 GL_COND_OBJ_STRNDUP_TRUE=
42710 GL_COND_OBJ_STRNDUP_FALSE='#'
42711 else
42712 GL_COND_OBJ_STRNDUP_TRUE='#'
42713 GL_COND_OBJ_STRNDUP_FALSE=
42714 fi
42715 :
42716 if test -z "${GL_COND_OBJ_STRNDUP_TRUE}" && test -z "${GL_COND_OBJ_STRNDUP_FALSE}"; then
42717 GL_COND_OBJ_STRNDUP_TRUE='#'
42718 GL_COND_OBJ_STRNDUP_FALSE='#'
42719 fi
42720
42721
42722
42723
42724
42725
42726
42727
42728
42729
42730
42731
42732
42733
42734
42735 GL_GNULIB_STRNDUP=1
42736
42737
42738
42739
42740
42741 printf "%s\n" "#define GNULIB_TEST_STRNDUP 1" >>confdefs.h
42742
42743
42744
42745
42746
42747
42748
42749
42750
42751 if test $ac_cv_have_decl_strnlen = no; then
42752 HAVE_DECL_STRNLEN=0
42753 else
42754
42755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5
42756 printf %s "checking for working strnlen... " >&6; }
42757 if test ${ac_cv_func_strnlen_working+y}
42758 then :
42759 printf %s "(cached) " >&6
42760 else $as_nop
42761 if test "$cross_compiling" = yes
42762 then :
42763 # Guess no on AIX systems, yes otherwise.
42764 case "$host_os" in
42765 aix*) ac_cv_func_strnlen_working=no;;
42766 *) ac_cv_func_strnlen_working=yes;;
42767 esac
42768 else $as_nop
42769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42770 /* end confdefs.h. */
42771 $ac_includes_default
42772 int
42773 main (void)
42774 {
42775
42776 #define S "foobar"
42777 #define S_LEN (sizeof S - 1)
42778
42779 /* At least one implementation is buggy: that of AIX 4.3 would
42780 give strnlen (S, 1) == 3. */
42781
42782 int i;
42783 for (i = 0; i < S_LEN + 1; ++i)
42784 {
42785 int expected = i <= S_LEN ? i : S_LEN;
42786 if (strnlen (S, i) != expected)
42787 return 1;
42788 }
42789 return 0;
42790
42791 ;
42792 return 0;
42793 }
42794 _ACEOF
42795 if ac_fn_c_try_run "$LINENO"
42796 then :
42797 ac_cv_func_strnlen_working=yes
42798 else $as_nop
42799 ac_cv_func_strnlen_working=no
42800 fi
42801 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
42802 conftest.$ac_objext conftest.beam conftest.$ac_ext
42803 fi
42804
42805 fi
42806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strnlen_working" >&5
42807 printf "%s\n" "$ac_cv_func_strnlen_working" >&6; }
42808 test $ac_cv_func_strnlen_working = no && :
42809
42810
42811 if test $ac_cv_func_strnlen_working = no; then
42812 REPLACE_STRNLEN=1
42813 fi
42814 fi
42815
42816
42817 if test $HAVE_DECL_STRNLEN = 0 || test $REPLACE_STRNLEN = 1; then
42818 GL_COND_OBJ_STRNLEN_TRUE=
42819 GL_COND_OBJ_STRNLEN_FALSE='#'
42820 else
42821 GL_COND_OBJ_STRNLEN_TRUE='#'
42822 GL_COND_OBJ_STRNLEN_FALSE=
42823 fi
42824 :
42825 if test -z "${GL_COND_OBJ_STRNLEN_TRUE}" && test -z "${GL_COND_OBJ_STRNLEN_FALSE}"; then
42826 GL_COND_OBJ_STRNLEN_TRUE='#'
42827 GL_COND_OBJ_STRNLEN_FALSE='#'
42828 fi
42829
42830 if test -z "$GL_COND_OBJ_STRNLEN_TRUE"; then :
42831
42832 :
42833
42834 fi
42835
42836
42837
42838
42839
42840
42841
42842
42843
42844
42845
42846
42847
42848
42849 GL_GNULIB_STRNLEN=1
42850
42851
42852
42853
42854
42855 printf "%s\n" "#define GNULIB_TEST_STRNLEN 1" >>confdefs.h
42856
42857
42858
42859
42860
42861 if test $REPLACE_STRSTR = 0; then
42862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether strstr works in linear time" >&5
42863 printf %s "checking whether strstr works in linear time... " >&6; }
42864 if test ${gl_cv_func_strstr_linear+y}
42865 then :
42866 printf %s "(cached) " >&6
42867 else $as_nop
42868 if test "$cross_compiling" = yes
42869 then :
42870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42871 /* end confdefs.h. */
42872
42873 #include <features.h>
42874 #ifdef __GNU_LIBRARY__
42875 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
42876 && !(defined __i386__ || defined __x86_64__) \
42877 && !defined __UCLIBC__
42878 Lucky user
42879 #endif
42880 #endif
42881 #ifdef __CYGWIN__
42882 #include <cygwin/version.h>
42883 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
42884 Lucky user
42885 #endif
42886 #endif
42887
42888 _ACEOF
42889 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42890 $EGREP "Lucky user" >/dev/null 2>&1
42891 then :
42892 gl_cv_func_strstr_linear="guessing yes"
42893 else $as_nop
42894 gl_cv_func_strstr_linear="$gl_cross_guess_normal"
42895 fi
42896 rm -rf conftest*
42897
42898
42899 else $as_nop
42900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42901 /* end confdefs.h. */
42902
42903 #ifdef __MVS__
42904 /* z/OS does not deliver signals while strstr() is running (thanks to
42905 restrictions on its LE runtime), which prevents us from limiting the
42906 running time of this test. */
42907 # error "This test does not work properly on z/OS"
42908 #endif
42909 #include <signal.h> /* for signal */
42910 #include <string.h> /* for strstr */
42911 #include <stdlib.h> /* for malloc */
42912 #include <unistd.h> /* for alarm */
42913 static void quit (int sig) { _exit (sig + 128); }
42914
42915 int
42916 main (void)
42917 {
42918
42919 int result = 0;
42920 size_t m = 1000000;
42921 char *haystack = (char *) malloc (2 * m + 2);
42922 char *needle = (char *) malloc (m + 2);
42923 /* Failure to compile this test due to missing alarm is okay,
42924 since all such platforms (mingw) also have quadratic strstr. */
42925 signal (SIGALRM, quit);
42926 alarm (5);
42927 /* Check for quadratic performance. */
42928 if (haystack && needle)
42929 {
42930 memset (haystack, 'A', 2 * m);
42931 haystack[2 * m] = 'B';
42932 haystack[2 * m + 1] = 0;
42933 memset (needle, 'A', m);
42934 needle[m] = 'B';
42935 needle[m + 1] = 0;
42936 if (!strstr (haystack, needle))
42937 result |= 1;
42938 }
42939 /* Free allocated memory, in case some sanitizer is watching. */
42940 free (haystack);
42941 free (needle);
42942 return result;
42943
42944 ;
42945 return 0;
42946 }
42947 _ACEOF
42948 if ac_fn_c_try_run "$LINENO"
42949 then :
42950 gl_cv_func_strstr_linear=yes
42951 else $as_nop
42952 gl_cv_func_strstr_linear=no
42953 fi
42954 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
42955 conftest.$ac_objext conftest.beam conftest.$ac_ext
42956 fi
42957
42958
42959 fi
42960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_linear" >&5
42961 printf "%s\n" "$gl_cv_func_strstr_linear" >&6; }
42962 case "$gl_cv_func_strstr_linear" in
42963 *yes) ;;
42964 *)
42965 REPLACE_STRSTR=1
42966 ;;
42967 esac
42968 fi
42969
42970 if test $REPLACE_STRSTR = 1; then
42971
42972
42973
42974
42975
42976
42977
42978
42979 gl_LIBOBJS="$gl_LIBOBJS strstr.$ac_objext"
42980
42981 fi
42982
42983
42984
42985 if test $REPLACE_MEMCHR = 1; then
42986 REPLACE_STRSTR=1
42987 else
42988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
42989 printf %s "checking whether strstr works... " >&6; }
42990 if test ${gl_cv_func_strstr_works_always+y}
42991 then :
42992 printf %s "(cached) " >&6
42993 else $as_nop
42994 if test "$cross_compiling" = yes
42995 then :
42996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42997 /* end confdefs.h. */
42998
42999 #include <string.h> /* for __GNU_LIBRARY__ */
43000 #ifdef __GNU_LIBRARY__
43001 #include <features.h>
43002 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
43003 || defined __UCLIBC__
43004 Lucky user
43005 #endif
43006 #elif defined __CYGWIN__
43007 #include <cygwin/version.h>
43008 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
43009 Lucky user
43010 #endif
43011 #else
43012 Lucky user
43013 #endif
43014
43015 _ACEOF
43016 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43017 $EGREP "Lucky user" >/dev/null 2>&1
43018 then :
43019 gl_cv_func_strstr_works_always="guessing yes"
43020 else $as_nop
43021 gl_cv_func_strstr_works_always="$gl_cross_guess_normal"
43022 fi
43023 rm -rf conftest*
43024
43025
43026 else $as_nop
43027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43028 /* end confdefs.h. */
43029
43030 #include <string.h> /* for __GNU_LIBRARY__, strstr */
43031 #ifdef __GNU_LIBRARY__
43032 #include <features.h>
43033 #if __GLIBC__ == 2 && __GLIBC_MINOR__ == 28
43034 Unlucky user
43035 #endif
43036 #endif
43037 #define P "_EF_BF_BD"
43038 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
43039 #define NEEDLE P P P P P
43040
43041 int
43042 main (void)
43043 {
43044 return !!strstr (HAYSTACK, NEEDLE);
43045
43046 ;
43047 return 0;
43048 }
43049 _ACEOF
43050 if ac_fn_c_try_run "$LINENO"
43051 then :
43052 gl_cv_func_strstr_works_always=yes
43053 else $as_nop
43054 gl_cv_func_strstr_works_always=no
43055 fi
43056 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
43057 conftest.$ac_objext conftest.beam conftest.$ac_ext
43058 fi
43059
43060
43061 fi
43062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
43063 printf "%s\n" "$gl_cv_func_strstr_works_always" >&6; }
43064 case "$gl_cv_func_strstr_works_always" in
43065 *yes) ;;
43066 *)
43067 REPLACE_STRSTR=1
43068 ;;
43069 esac
43070 fi
43071
43072 if test $REPLACE_STRSTR = 1; then
43073
43074
43075
43076
43077
43078
43079
43080
43081 gl_LIBOBJS="$gl_LIBOBJS strstr.$ac_objext"
43082
43083 fi
43084
43085
43086
43087
43088
43089
43090
43091
43092
43093
43094
43095
43096
43097
43098 GL_GNULIB_STRSTR=1
43099
43100
43101
43102
43103
43104 printf "%s\n" "#define GNULIB_TEST_STRSTR 1" >>confdefs.h
43105
43106
43107
43108
43109
43110
43111
43112
43113
43114
43115
43116
43117
43118
43119
43120
43121
43122
43123
43124
43125
43126
43127
43128
43129
43130
43131
43132
43133
43134
43135
43136
43137
43138 :
43139
43140
43141
43142
43143 printf "%s\n" "#define GNULIB_TEMPNAME 1" >>confdefs.h
43144
43145
43146
43147
43148
43149
43150
43151
43152
43153
43154
43155
43156
43157
43158
43159
43160
43161
43162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for variable-length arrays" >&5
43163 printf %s "checking for variable-length arrays... " >&6; }
43164 if test ${ac_cv_c_vararrays+y}
43165 then :
43166 printf %s "(cached) " >&6
43167 else $as_nop
43168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43169 /* end confdefs.h. */
43170 #ifdef __STDC_NO_VLA__
43171 defined
43172 #endif
43173
43174 _ACEOF
43175 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43176 $EGREP "defined" >/dev/null 2>&1
43177 then :
43178 ac_cv_c_vararrays='no: __STDC_NO_VLA__ is defined'
43179 else $as_nop
43180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43181 /* end confdefs.h. */
43182 /* Test for VLA support. This test is partly inspired
43183 from examples in the C standard. Use at least two VLA
43184 functions to detect the GCC 3.4.3 bug described in:
43185 https://lists.gnu.org/archive/html/bug-gnulib/2014-08/msg00014.html
43186 */
43187 #ifdef __STDC_NO_VLA__
43188 syntax error;
43189 #else
43190 extern int n;
43191 int B[100];
43192 int fvla (int m, int C[m][m]);
43193
43194 int
43195 simple (int count, int all[static count])
43196 {
43197 return all[count - 1];
43198 }
43199
43200 int
43201 fvla (int m, int C[m][m])
43202 {
43203 typedef int VLA[m][m];
43204 VLA x;
43205 int D[m];
43206 static int (*q)[m] = &B;
43207 int (*s)[n] = q;
43208 return C && &x[0][0] == &D[0] && &D[0] == s[0];
43209 }
43210 #endif
43211
43212 int
43213 main (void)
43214 {
43215
43216 ;
43217 return 0;
43218 }
43219 _ACEOF
43220 if ac_fn_c_try_compile "$LINENO"
43221 then :
43222 ac_cv_c_vararrays=yes
43223 else $as_nop
43224 ac_cv_c_vararrays=no
43225 fi
43226 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
43227 fi
43228 rm -rf conftest*
43229
43230 fi
43231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_vararrays" >&5
43232 printf "%s\n" "$ac_cv_c_vararrays" >&6; }
43233 if test "$ac_cv_c_vararrays" = yes; then
43234
43235 printf "%s\n" "#define HAVE_C_VARARRAYS 1" >>confdefs.h
43236
43237 elif test "$ac_cv_c_vararrays" = no; then
43238
43239 printf "%s\n" "#define __STDC_NO_VLA__ 1" >>confdefs.h
43240
43241 fi
43242
43243
43244
43245
43246 if test $ac_cv_func_vasnprintf = no; then
43247
43248
43249
43250
43251
43252
43253
43254
43255
43256
43257 gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
43258
43259
43260
43261
43262
43263
43264
43265
43266
43267 gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
43268
43269
43270
43271
43272
43273
43274
43275
43276
43277 gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
43278
43279
43280
43281
43282
43283
43284
43285
43286
43287 gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
43288
43289 if test $ac_cv_func_vasnprintf = yes; then
43290
43291 printf "%s\n" "#define REPLACE_VASNPRINTF 1" >>confdefs.h
43292
43293 fi
43294
43295
43296
43297
43298
43299
43300
43301
43302
43303 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
43304 if test "x$ac_cv_type_ptrdiff_t" = xyes
43305 then :
43306
43307 else $as_nop
43308
43309 printf "%s\n" "#define ptrdiff_t long" >>confdefs.h
43310
43311
43312 fi
43313
43314
43315
43316
43317
43318
43319
43320 fi
43321
43322
43323 ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
43324 if test "x$ac_cv_func_vasprintf" = xyes
43325 then :
43326 printf "%s\n" "#define HAVE_VASPRINTF 1" >>confdefs.h
43327
43328 fi
43329
43330 if test $ac_cv_func_vasprintf = no; then
43331
43332
43333
43334
43335
43336
43337
43338
43339
43340 gl_LIBOBJS="$gl_LIBOBJS vasprintf.$ac_objext"
43341
43342
43343
43344
43345
43346
43347
43348
43349
43350 gl_LIBOBJS="$gl_LIBOBJS asprintf.$ac_objext"
43351
43352
43353 if test $ac_cv_func_vasprintf = yes; then
43354 REPLACE_VASPRINTF=1
43355 else
43356 HAVE_VASPRINTF=0
43357 fi
43358
43359
43360
43361
43362
43363
43364
43365
43366 fi
43367
43368
43369
43370
43371
43372
43373
43374
43375
43376
43377 GL_GNULIB_VASPRINTF=1
43378
43379
43380
43381
43382
43383 printf "%s\n" "#define GNULIB_TEST_VASPRINTF 1" >>confdefs.h
43384
43385
43386
43387
43388
43389
43390
43391
43392
43393
43394
43395
43396
43397
43398
43399
43400
43401
43402
43403
43404
43405
43406
43407
43408
43409
43410
43411 if case "$host_os" in
43412 mingw*) true ;;
43413 *) test $ac_cv_func_mbsinit = yes ;;
43414 esac \
43415 && test $ac_cv_func_mbrtowc = yes; then
43416
43417
43418
43419
43420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
43421 printf %s "checking whether mbrtowc handles incomplete characters... " >&6; }
43422 if test ${gl_cv_func_mbrtowc_incomplete_state+y}
43423 then :
43424 printf %s "(cached) " >&6
43425 else $as_nop
43426
43427 case "$host_os" in
43428 # Guess no on AIX and OSF/1.
43429 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
43430 # Guess yes otherwise.
43431 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
43432 esac
43433 if test $LOCALE_JA != none; then
43434 if test "$cross_compiling" = yes
43435 then :
43436 :
43437 else $as_nop
43438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43439 /* end confdefs.h. */
43440
43441 #include <locale.h>
43442 #include <string.h>
43443 #include <wchar.h>
43444 int main ()
43445 {
43446 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
43447 {
43448 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
43449 mbstate_t state;
43450 wchar_t wc;
43451
43452 memset (&state, '\0', sizeof (mbstate_t));
43453 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
43454 if (mbsinit (&state))
43455 return 2;
43456 }
43457 return 0;
43458 }
43459 _ACEOF
43460 if ac_fn_c_try_run "$LINENO"
43461 then :
43462 gl_cv_func_mbrtowc_incomplete_state=yes
43463 else $as_nop
43464 gl_cv_func_mbrtowc_incomplete_state=no
43465 fi
43466 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
43467 conftest.$ac_objext conftest.beam conftest.$ac_ext
43468 fi
43469
43470 else
43471 if test $LOCALE_FR_UTF8 != none; then
43472 if test "$cross_compiling" = yes
43473 then :
43474 :
43475 else $as_nop
43476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43477 /* end confdefs.h. */
43478
43479 #include <locale.h>
43480 #include <string.h>
43481 #include <wchar.h>
43482 int main ()
43483 {
43484 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
43485 {
43486 const char input[] = "B\303\274\303\237er"; /* "Büßer" */
43487 mbstate_t state;
43488 wchar_t wc;
43489
43490 memset (&state, '\0', sizeof (mbstate_t));
43491 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
43492 if (mbsinit (&state))
43493 return 2;
43494 }
43495 return 0;
43496 }
43497 _ACEOF
43498 if ac_fn_c_try_run "$LINENO"
43499 then :
43500 gl_cv_func_mbrtowc_incomplete_state=yes
43501 else $as_nop
43502 gl_cv_func_mbrtowc_incomplete_state=no
43503 fi
43504 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
43505 conftest.$ac_objext conftest.beam conftest.$ac_ext
43506 fi
43507
43508 fi
43509 fi
43510
43511 fi
43512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
43513 printf "%s\n" "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
43514
43515
43516
43517
43518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
43519 printf %s "checking whether mbrtowc works as well as mbtowc... " >&6; }
43520 if test ${gl_cv_func_mbrtowc_sanitycheck+y}
43521 then :
43522 printf %s "(cached) " >&6
43523 else $as_nop
43524
43525 case "$host_os" in
43526 # Guess no on Solaris 8.
43527 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
43528 # Guess yes otherwise.
43529 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
43530 esac
43531 if test $LOCALE_ZH_CN != none; then
43532 if test "$cross_compiling" = yes
43533 then :
43534 :
43535 else $as_nop
43536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43537 /* end confdefs.h. */
43538
43539 #include <locale.h>
43540 #include <stdlib.h>
43541 #include <string.h>
43542 #include <wchar.h>
43543 int main ()
43544 {
43545 /* This fails on Solaris 8:
43546 mbrtowc returns 2, and sets wc to 0x00F0.
43547 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
43548 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
43549 {
43550 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
43551 mbstate_t state;
43552 wchar_t wc;
43553
43554 memset (&state, '\0', sizeof (mbstate_t));
43555 if (mbrtowc (&wc, input + 3, 6, &state) != 4
43556 && mbtowc (&wc, input + 3, 6) == 4)
43557 return 2;
43558 }
43559 return 0;
43560 }
43561 _ACEOF
43562 if ac_fn_c_try_run "$LINENO"
43563 then :
43564 gl_cv_func_mbrtowc_sanitycheck=yes
43565 else $as_nop
43566 gl_cv_func_mbrtowc_sanitycheck=no
43567 fi
43568 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
43569 conftest.$ac_objext conftest.beam conftest.$ac_ext
43570 fi
43571
43572 fi
43573
43574 fi
43575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
43576 printf "%s\n" "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
43577
43578 REPLACE_MBSTATE_T=0
43579 case "$gl_cv_func_mbrtowc_incomplete_state" in
43580 *yes) ;;
43581 *) REPLACE_MBSTATE_T=1 ;;
43582 esac
43583 case "$gl_cv_func_mbrtowc_sanitycheck" in
43584 *yes) ;;
43585 *) REPLACE_MBSTATE_T=1 ;;
43586 esac
43587 else
43588 REPLACE_MBSTATE_T=1
43589 fi
43590
43591
43592
43593 if test $ac_cv_func_wcrtomb = no; then
43594 HAVE_WCRTOMB=0
43595 ac_fn_check_decl "$LINENO" "wcrtomb" "ac_cv_have_decl_wcrtomb" "
43596 #include <wchar.h>
43597
43598 " "$ac_c_undeclared_builtin_options" "CFLAGS"
43599 if test "x$ac_cv_have_decl_wcrtomb" = xyes
43600 then :
43601 ac_have_decl=1
43602 else $as_nop
43603 ac_have_decl=0
43604 fi
43605 printf "%s\n" "#define HAVE_DECL_WCRTOMB $ac_have_decl" >>confdefs.h
43606
43607 if test $ac_cv_have_decl_wcrtomb = yes; then
43608 REPLACE_WCRTOMB=1
43609 fi
43610 else
43611 if test $REPLACE_WCRTOMB = 0; then
43612
43613
43614
43615
43616
43617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether wcrtomb works in the C locale" >&5
43618 printf %s "checking whether wcrtomb works in the C locale... " >&6; }
43619 if test ${gl_cv_func_wcrtomb_works+y}
43620 then :
43621 printf %s "(cached) " >&6
43622 else $as_nop
43623 if test "$cross_compiling" = yes
43624 then :
43625 case "$host_os" in
43626 # Guess no on Android.
43627 linux*-android*) gl_cv_func_wcrtomb_works="guessing no";;
43628 # Guess yes otherwise.
43629 *) gl_cv_func_wcrtomb_works="guessing yes";;
43630 esac
43631
43632 else $as_nop
43633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43634 /* end confdefs.h. */
43635
43636 #include <string.h>
43637 #include <stdlib.h>
43638 #include <wchar.h>
43639 int main ()
43640 {
43641 mbstate_t state;
43642 char out[64];
43643 int count;
43644 memset (&state, 0, sizeof (state));
43645 out[0] = 'x';
43646 count = wcrtomb (out, L'a', &state);
43647 return !(count == 1 && out[0] == 'a');
43648 }
43649 _ACEOF
43650 if ac_fn_c_try_run "$LINENO"
43651 then :
43652 gl_cv_func_wcrtomb_works=yes
43653 else $as_nop
43654 gl_cv_func_wcrtomb_works=no
43655 fi
43656 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
43657 conftest.$ac_objext conftest.beam conftest.$ac_ext
43658 fi
43659
43660
43661 fi
43662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wcrtomb_works" >&5
43663 printf "%s\n" "$gl_cv_func_wcrtomb_works" >&6; }
43664 case "$gl_cv_func_wcrtomb_works" in
43665 *yes) ;;
43666 *)
43667 printf "%s\n" "#define WCRTOMB_C_LOCALE_BUG 1" >>confdefs.h
43668
43669 REPLACE_WCRTOMB=1 ;;
43670 esac
43671 fi
43672 if test $REPLACE_WCRTOMB = 0; then
43673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether wcrtomb return value is correct" >&5
43674 printf %s "checking whether wcrtomb return value is correct... " >&6; }
43675 if test ${gl_cv_func_wcrtomb_retval+y}
43676 then :
43677 printf %s "(cached) " >&6
43678 else $as_nop
43679
43680 case "$host_os" in
43681 # Guess no on AIX 4, OSF/1, Solaris, native Windows.
43682 aix4* | osf* | solaris* | mingw*) gl_cv_func_wcrtomb_retval="guessing no" ;;
43683 # Guess yes otherwise.
43684 *) gl_cv_func_wcrtomb_retval="guessing yes" ;;
43685 esac
43686 if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
43687 if test "$cross_compiling" = yes
43688 then :
43689 :
43690 else $as_nop
43691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43692 /* end confdefs.h. */
43693
43694 #include <locale.h>
43695 #include <string.h>
43696 #include <wchar.h>
43697 #include <stdlib.h>
43698 int main ()
43699 {
43700 int result = 0;
43701 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
43702 {
43703 if (wcrtomb (NULL, 0, NULL) != 1)
43704 result |= 1;
43705 }
43706 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
43707 {
43708 if (wcrtomb (NULL, 0, NULL) != 1)
43709 result |= 2;
43710 {
43711 wchar_t wc = (wchar_t) 0xBADFACE;
43712 if (mbtowc (&wc, "\303\274", 2) == 2)
43713 if (wcrtomb (NULL, wc, NULL) != 1)
43714 result |= 2;
43715 }
43716 }
43717 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
43718 {
43719 if (wcrtomb (NULL, 0, NULL) != 1)
43720 result |= 4;
43721 }
43722 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
43723 {
43724 if (wcrtomb (NULL, 0, NULL) != 1)
43725 result |= 8;
43726 }
43727 return result;
43728 }
43729 _ACEOF
43730 if ac_fn_c_try_run "$LINENO"
43731 then :
43732 gl_cv_func_wcrtomb_retval=yes
43733 else $as_nop
43734 gl_cv_func_wcrtomb_retval=no
43735 fi
43736 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
43737 conftest.$ac_objext conftest.beam conftest.$ac_ext
43738 fi
43739
43740 fi
43741
43742 fi
43743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wcrtomb_retval" >&5
43744 printf "%s\n" "$gl_cv_func_wcrtomb_retval" >&6; }
43745 case "$gl_cv_func_wcrtomb_retval" in
43746 *yes) ;;
43747 *)
43748 printf "%s\n" "#define WCRTOMB_RETVAL_BUG 1" >>confdefs.h
43749
43750 REPLACE_WCRTOMB=1 ;;
43751 esac
43752 fi
43753 fi
43754
43755
43756 if test $HAVE_WCRTOMB = 0 || test $REPLACE_WCRTOMB = 1; then
43757 GL_COND_OBJ_WCRTOMB_TRUE=
43758 GL_COND_OBJ_WCRTOMB_FALSE='#'
43759 else
43760 GL_COND_OBJ_WCRTOMB_TRUE='#'
43761 GL_COND_OBJ_WCRTOMB_FALSE=
43762 fi
43763 :
43764 if test -z "${GL_COND_OBJ_WCRTOMB_TRUE}" && test -z "${GL_COND_OBJ_WCRTOMB_FALSE}"; then
43765 GL_COND_OBJ_WCRTOMB_TRUE='#'
43766 GL_COND_OBJ_WCRTOMB_FALSE='#'
43767 fi
43768
43769 if test -z "$GL_COND_OBJ_WCRTOMB_TRUE"; then :
43770
43771
43772 :
43773
43774
43775 fi
43776
43777
43778
43779
43780
43781
43782
43783
43784
43785
43786
43787
43788
43789
43790 GL_GNULIB_WCRTOMB=1
43791
43792
43793
43794
43795
43796 printf "%s\n" "#define GNULIB_TEST_WCRTOMB 1" >>confdefs.h
43797
43798
43799
43800
43801
43802
43803
43804
43805
43806
43807
43808
43809 if case "$host_os" in mingw*) true;; *) false;; esac; then
43810 GL_COND_OBJ_WINDOWS_MUTEX_TRUE=
43811 GL_COND_OBJ_WINDOWS_MUTEX_FALSE='#'
43812 else
43813 GL_COND_OBJ_WINDOWS_MUTEX_TRUE='#'
43814 GL_COND_OBJ_WINDOWS_MUTEX_FALSE=
43815 fi
43816 :
43817 if test -z "${GL_COND_OBJ_WINDOWS_MUTEX_TRUE}" && test -z "${GL_COND_OBJ_WINDOWS_MUTEX_FALSE}"; then
43818 GL_COND_OBJ_WINDOWS_MUTEX_TRUE='#'
43819 GL_COND_OBJ_WINDOWS_MUTEX_FALSE='#'
43820 fi
43821
43822
43823
43824 if case "$host_os" in mingw*) true;; *) false;; esac; then
43825 GL_COND_OBJ_WINDOWS_ONCE_TRUE=
43826 GL_COND_OBJ_WINDOWS_ONCE_FALSE='#'
43827 else
43828 GL_COND_OBJ_WINDOWS_ONCE_TRUE='#'
43829 GL_COND_OBJ_WINDOWS_ONCE_FALSE=
43830 fi
43831 :
43832 if test -z "${GL_COND_OBJ_WINDOWS_ONCE_TRUE}" && test -z "${GL_COND_OBJ_WINDOWS_ONCE_FALSE}"; then
43833 GL_COND_OBJ_WINDOWS_ONCE_TRUE='#'
43834 GL_COND_OBJ_WINDOWS_ONCE_FALSE='#'
43835 fi
43836
43837
43838
43839 if case "$host_os" in mingw*) true;; *) false;; esac; then
43840 GL_COND_OBJ_WINDOWS_RECMUTEX_TRUE=
43841 GL_COND_OBJ_WINDOWS_RECMUTEX_FALSE='#'
43842 else
43843 GL_COND_OBJ_WINDOWS_RECMUTEX_TRUE='#'
43844 GL_COND_OBJ_WINDOWS_RECMUTEX_FALSE=
43845 fi
43846 :
43847 if test -z "${GL_COND_OBJ_WINDOWS_RECMUTEX_TRUE}" && test -z "${GL_COND_OBJ_WINDOWS_RECMUTEX_FALSE}"; then
43848 GL_COND_OBJ_WINDOWS_RECMUTEX_TRUE='#'
43849 GL_COND_OBJ_WINDOWS_RECMUTEX_FALSE='#'
43850 fi
43851
43852
43853
43854 if case "$host_os" in mingw*) true;; *) false;; esac; then
43855 GL_COND_OBJ_WINDOWS_RWLOCK_TRUE=
43856 GL_COND_OBJ_WINDOWS_RWLOCK_FALSE='#'
43857 else
43858 GL_COND_OBJ_WINDOWS_RWLOCK_TRUE='#'
43859 GL_COND_OBJ_WINDOWS_RWLOCK_FALSE=
43860 fi
43861 :
43862 if test -z "${GL_COND_OBJ_WINDOWS_RWLOCK_TRUE}" && test -z "${GL_COND_OBJ_WINDOWS_RWLOCK_FALSE}"; then
43863 GL_COND_OBJ_WINDOWS_RWLOCK_TRUE='#'
43864 GL_COND_OBJ_WINDOWS_RWLOCK_FALSE='#'
43865 fi
43866
43867
43868
43869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wmemchr" >&5
43870 printf %s "checking for wmemchr... " >&6; }
43871 if test ${gl_cv_func_wmemchr+y}
43872 then :
43873 printf %s "(cached) " >&6
43874 else $as_nop
43875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43876 /* end confdefs.h. */
43877 #include <wchar.h>
43878
43879 int
43880 main (void)
43881 {
43882 return ! wmemchr ((const wchar_t *) 0, (wchar_t) ' ', 0);
43883 ;
43884 return 0;
43885 }
43886
43887 _ACEOF
43888 if ac_fn_c_try_link "$LINENO"
43889 then :
43890 gl_cv_func_wmemchr=yes
43891 else $as_nop
43892 gl_cv_func_wmemchr=no
43893 fi
43894 rm -f core conftest.err conftest.$ac_objext conftest.beam \
43895 conftest$ac_exeext conftest.$ac_ext
43896
43897 fi
43898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wmemchr" >&5
43899 printf "%s\n" "$gl_cv_func_wmemchr" >&6; }
43900 if test $gl_cv_func_wmemchr = no; then
43901 HAVE_WMEMCHR=0
43902 fi
43903
43904
43905 if test $HAVE_WMEMCHR = 0; then
43906 GL_COND_OBJ_WMEMCHR_TRUE=
43907 GL_COND_OBJ_WMEMCHR_FALSE='#'
43908 else
43909 GL_COND_OBJ_WMEMCHR_TRUE='#'
43910 GL_COND_OBJ_WMEMCHR_FALSE=
43911 fi
43912 :
43913 if test -z "${GL_COND_OBJ_WMEMCHR_TRUE}" && test -z "${GL_COND_OBJ_WMEMCHR_FALSE}"; then
43914 GL_COND_OBJ_WMEMCHR_TRUE='#'
43915 GL_COND_OBJ_WMEMCHR_FALSE='#'
43916 fi
43917
43918
43919
43920
43921
43922
43923
43924
43925
43926
43927
43928
43929
43930
43931
43932 GL_GNULIB_WMEMCHR=1
43933
43934
43935
43936
43937
43938 printf "%s\n" "#define GNULIB_TEST_WMEMCHR 1" >>confdefs.h
43939
43940
43941
43942
43943
43944
43945
43946
43947
43948
43949
43950 if test $ac_cv_func_wmempcpy = no; then
43951 HAVE_WMEMPCPY=0
43952 fi
43953
43954
43955 if test $HAVE_WMEMPCPY = 0; then
43956 GL_COND_OBJ_WMEMPCPY_TRUE=
43957 GL_COND_OBJ_WMEMPCPY_FALSE='#'
43958 else
43959 GL_COND_OBJ_WMEMPCPY_TRUE='#'
43960 GL_COND_OBJ_WMEMPCPY_FALSE=
43961 fi
43962 :
43963 if test -z "${GL_COND_OBJ_WMEMPCPY_TRUE}" && test -z "${GL_COND_OBJ_WMEMPCPY_FALSE}"; then
43964 GL_COND_OBJ_WMEMPCPY_TRUE='#'
43965 GL_COND_OBJ_WMEMPCPY_FALSE='#'
43966 fi
43967
43968
43969
43970
43971
43972
43973
43974
43975
43976
43977
43978
43979
43980
43981
43982 GL_GNULIB_WMEMPCPY=1
43983
43984
43985
43986
43987
43988 printf "%s\n" "#define GNULIB_TEST_WMEMPCPY 1" >>confdefs.h
43989
43990
43991
43992
43993
43994 ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
43995 if test "x$ac_cv_header_stdint_h" = xyes
43996 then :
43997 printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
43998
43999 fi
44000
44001
44002 # End of code from modules
44003
44004
44005
44006
44007
44008
44009
44010
44011
44012
44013
44014 gltests_libdeps=
44015 gltests_ltlibdeps=
44016
44017
44018
44019
44020
44021
44022
44023
44024
44025
44026
44027
44028
44029
44030 gl_source_base='gnulib/tests'
44031 gl_source_base_prefix=
44032 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
44033
44034 gl_module_indicator_condition=$gltests_WITNESS
44035
44036
44037
44038 if test "$ac_cv_header_winsock2_h" = yes; then
44039 GL_COND_OBJ_ACCEPT_TRUE=
44040 GL_COND_OBJ_ACCEPT_FALSE='#'
44041 else
44042 GL_COND_OBJ_ACCEPT_TRUE='#'
44043 GL_COND_OBJ_ACCEPT_FALSE=
44044 fi
44045 :
44046 if test -z "${GL_COND_OBJ_ACCEPT_TRUE}" && test -z "${GL_COND_OBJ_ACCEPT_FALSE}"; then
44047 GL_COND_OBJ_ACCEPT_TRUE='#'
44048 GL_COND_OBJ_ACCEPT_FALSE='#'
44049 fi
44050
44051
44052
44053
44054
44055
44056
44057
44058
44059
44060 if test "$GL_GNULIB_ACCEPT" != 1; then
44061 if test "$GL_GNULIB_ACCEPT" = 0; then
44062 GL_GNULIB_ACCEPT=$gl_module_indicator_condition
44063 else
44064 GL_GNULIB_ACCEPT="($GL_GNULIB_ACCEPT || $gl_module_indicator_condition)"
44065 fi
44066 fi
44067
44068
44069
44070
44071
44072 printf "%s\n" "#define GNULIB_TEST_ACCEPT 1" >>confdefs.h
44073
44074
44075
44076
44077
44078
44079
44080
44081
44082
44083
44084
44085 if test "$ac_cv_header_winsock2_h" = yes; then
44086 GL_COND_OBJ_BIND_TRUE=
44087 GL_COND_OBJ_BIND_FALSE='#'
44088 else
44089 GL_COND_OBJ_BIND_TRUE='#'
44090 GL_COND_OBJ_BIND_FALSE=
44091 fi
44092 :
44093 if test -z "${GL_COND_OBJ_BIND_TRUE}" && test -z "${GL_COND_OBJ_BIND_FALSE}"; then
44094 GL_COND_OBJ_BIND_TRUE='#'
44095 GL_COND_OBJ_BIND_FALSE='#'
44096 fi
44097
44098
44099
44100
44101
44102
44103
44104
44105
44106
44107 if test "$GL_GNULIB_BIND" != 1; then
44108 if test "$GL_GNULIB_BIND" = 0; then
44109 GL_GNULIB_BIND=$gl_module_indicator_condition
44110 else
44111 GL_GNULIB_BIND="($GL_GNULIB_BIND || $gl_module_indicator_condition)"
44112 fi
44113 fi
44114
44115
44116
44117
44118
44119 printf "%s\n" "#define GNULIB_TEST_BIND 1" >>confdefs.h
44120
44121
44122
44123
44124
44125
44126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
44127 printf %s "checking for a traditional french locale... " >&6; }
44128 if test ${gt_cv_locale_fr+y}
44129 then :
44130 printf %s "(cached) " >&6
44131 else $as_nop
44132
44133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44134 /* end confdefs.h. */
44135
44136 #include <locale.h>
44137 #include <time.h>
44138 #if HAVE_LANGINFO_CODESET
44139 # include <langinfo.h>
44140 #endif
44141 #include <stdlib.h>
44142 #include <string.h>
44143 struct tm t;
44144 char buf[16];
44145 int main () {
44146 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
44147 imitates locale dependent behaviour by looking at the environment
44148 variables, and all locales use the UTF-8 encoding. */
44149 #if defined __BEOS__ || defined __HAIKU__
44150 return 1;
44151 #else
44152 /* Check whether the given locale name is recognized by the system. */
44153 # if defined _WIN32 && !defined __CYGWIN__
44154 /* On native Windows, setlocale(category, "") looks at the system settings,
44155 not at the environment variables. Also, when an encoding suffix such
44156 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
44157 category of the locale to "C". */
44158 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
44159 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
44160 return 1;
44161 # else
44162 if (setlocale (LC_ALL, "") == NULL) return 1;
44163 # endif
44164 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
44165 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
44166 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
44167 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
44168 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
44169 some unit tests fail.
44170 On MirBSD 10, when an unsupported locale is specified, setlocale()
44171 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
44172 # if HAVE_LANGINFO_CODESET
44173 {
44174 const char *cs = nl_langinfo (CODESET);
44175 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
44176 || strcmp (cs, "UTF-8") == 0)
44177 return 1;
44178 }
44179 # endif
44180 # ifdef __CYGWIN__
44181 /* On Cygwin, avoid locale names without encoding suffix, because the
44182 locale_charset() function relies on the encoding suffix. Note that
44183 LC_ALL is set on the command line. */
44184 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
44185 # endif
44186 /* Check whether in the abbreviation of the second month, the second
44187 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
44188 one byte long. This excludes the UTF-8 encoding. */
44189 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
44190 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
44191 # if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
44192 /* Check whether the decimal separator is a comma.
44193 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
44194 are nl_langinfo(RADIXCHAR) are both ".". */
44195 if (localeconv () ->decimal_point[0] != ',') return 1;
44196 # endif
44197 return 0;
44198 #endif
44199 }
44200
44201 _ACEOF
44202 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
44203 (eval $ac_link) 2>&5
44204 ac_status=$?
44205 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
44206 test $ac_status = 0; } && test -s conftest$ac_exeext; then
44207 case "$host_os" in
44208 # Handle native Windows specially, because there setlocale() interprets
44209 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
44210 # "fr" or "fra" as "French" or "French_France.1252",
44211 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
44212 # "ja" as "Japanese" or "Japanese_Japan.932",
44213 # and similar.
44214 mingw*)
44215 # Test for the native Windows locale name.
44216 if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
44217 gt_cv_locale_fr=French_France.1252
44218 else
44219 # None found.
44220 gt_cv_locale_fr=none
44221 fi
44222 ;;
44223 *)
44224 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
44225 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
44226 # configure script would override the LC_ALL setting. Likewise for
44227 # LC_CTYPE, which is also set at the beginning of the configure script.
44228 # Test for the usual locale name.
44229 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
44230 gt_cv_locale_fr=fr_FR
44231 else
44232 # Test for the locale name with explicit encoding suffix.
44233 if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
44234 gt_cv_locale_fr=fr_FR.ISO-8859-1
44235 else
44236 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
44237 if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
44238 gt_cv_locale_fr=fr_FR.ISO8859-1
44239 else
44240 # Test for the HP-UX locale name.
44241 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
44242 gt_cv_locale_fr=fr_FR.iso88591
44243 else
44244 # Test for the Solaris 7 locale name.
44245 if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
44246 gt_cv_locale_fr=fr
44247 else
44248 # None found.
44249 gt_cv_locale_fr=none
44250 fi
44251 fi
44252 fi
44253 fi
44254 fi
44255 ;;
44256 esac
44257 fi
44258 rm -fr conftest*
44259
44260 fi
44261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
44262 printf "%s\n" "$gt_cv_locale_fr" >&6; }
44263 LOCALE_FR=$gt_cv_locale_fr
44264
44265
44266
44267
44268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
44269 printf %s "checking for a french Unicode locale... " >&6; }
44270 if test ${gt_cv_locale_fr_utf8+y}
44271 then :
44272 printf %s "(cached) " >&6
44273 else $as_nop
44274
44275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44276 /* end confdefs.h. */
44277
44278 #include <locale.h>
44279 #include <time.h>
44280 #if HAVE_LANGINFO_CODESET
44281 # include <langinfo.h>
44282 #endif
44283 #include <stdlib.h>
44284 #include <string.h>
44285 struct tm t;
44286 char buf[16];
44287 int main () {
44288 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
44289 imitates locale dependent behaviour by looking at the environment
44290 variables, and all locales use the UTF-8 encoding. */
44291 #if !(defined __BEOS__ || defined __HAIKU__)
44292 /* Check whether the given locale name is recognized by the system. */
44293 # if defined _WIN32 && !defined __CYGWIN__
44294 /* On native Windows, setlocale(category, "") looks at the system settings,
44295 not at the environment variables. Also, when an encoding suffix such
44296 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
44297 category of the locale to "C". */
44298 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
44299 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
44300 return 1;
44301 # else
44302 if (setlocale (LC_ALL, "") == NULL) return 1;
44303 # endif
44304 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
44305 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
44306 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
44307 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
44308 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
44309 some unit tests fail. */
44310 # if HAVE_LANGINFO_CODESET
44311 {
44312 const char *cs = nl_langinfo (CODESET);
44313 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
44314 return 1;
44315 }
44316 # endif
44317 # ifdef __CYGWIN__
44318 /* On Cygwin, avoid locale names without encoding suffix, because the
44319 locale_charset() function relies on the encoding suffix. Note that
44320 LC_ALL is set on the command line. */
44321 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
44322 # endif
44323 /* Check whether in the abbreviation of the second month, the second
44324 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
44325 two bytes long, with UTF-8 encoding. */
44326 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
44327 if (strftime (buf, sizeof (buf), "%b", &t) < 4
44328 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
44329 return 1;
44330 #endif
44331 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
44332 /* Check whether the decimal separator is a comma.
44333 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
44334 are nl_langinfo(RADIXCHAR) are both ".". */
44335 if (localeconv () ->decimal_point[0] != ',') return 1;
44336 #endif
44337 return 0;
44338 }
44339
44340 _ACEOF
44341 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
44342 (eval $ac_link) 2>&5
44343 ac_status=$?
44344 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
44345 test $ac_status = 0; } && test -s conftest$ac_exeext; then
44346 case "$host_os" in
44347 # Handle native Windows specially, because there setlocale() interprets
44348 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
44349 # "fr" or "fra" as "French" or "French_France.1252",
44350 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
44351 # "ja" as "Japanese" or "Japanese_Japan.932",
44352 # and similar.
44353 mingw*)
44354 # Test for the hypothetical native Windows locale name.
44355 if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
44356 gt_cv_locale_fr_utf8=French_France.65001
44357 else
44358 # None found.
44359 gt_cv_locale_fr_utf8=none
44360 fi
44361 ;;
44362 *)
44363 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
44364 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
44365 # configure script would override the LC_ALL setting. Likewise for
44366 # LC_CTYPE, which is also set at the beginning of the configure script.
44367 # Test for the usual locale name.
44368 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
44369 gt_cv_locale_fr_utf8=fr_FR
44370 else
44371 # Test for the locale name with explicit encoding suffix.
44372 if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
44373 gt_cv_locale_fr_utf8=fr_FR.UTF-8
44374 else
44375 # Test for the Solaris 7 locale name.
44376 if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
44377 gt_cv_locale_fr_utf8=fr.UTF-8
44378 else
44379 # None found.
44380 gt_cv_locale_fr_utf8=none
44381 fi
44382 fi
44383 fi
44384 ;;
44385 esac
44386 fi
44387 rm -fr conftest*
44388
44389 fi
44390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
44391 printf "%s\n" "$gt_cv_locale_fr_utf8" >&6; }
44392 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
44393
44394
44395
44396
44397
44398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
44399 printf %s "checking for a traditional french locale... " >&6; }
44400 if test ${gt_cv_locale_fr+y}
44401 then :
44402 printf %s "(cached) " >&6
44403 else $as_nop
44404
44405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44406 /* end confdefs.h. */
44407
44408 #include <locale.h>
44409 #include <time.h>
44410 #if HAVE_LANGINFO_CODESET
44411 # include <langinfo.h>
44412 #endif
44413 #include <stdlib.h>
44414 #include <string.h>
44415 struct tm t;
44416 char buf[16];
44417 int main () {
44418 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
44419 imitates locale dependent behaviour by looking at the environment
44420 variables, and all locales use the UTF-8 encoding. */
44421 #if defined __BEOS__ || defined __HAIKU__
44422 return 1;
44423 #else
44424 /* Check whether the given locale name is recognized by the system. */
44425 # if defined _WIN32 && !defined __CYGWIN__
44426 /* On native Windows, setlocale(category, "") looks at the system settings,
44427 not at the environment variables. Also, when an encoding suffix such
44428 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
44429 category of the locale to "C". */
44430 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
44431 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
44432 return 1;
44433 # else
44434 if (setlocale (LC_ALL, "") == NULL) return 1;
44435 # endif
44436 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
44437 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
44438 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
44439 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
44440 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
44441 some unit tests fail.
44442 On MirBSD 10, when an unsupported locale is specified, setlocale()
44443 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
44444 # if HAVE_LANGINFO_CODESET
44445 {
44446 const char *cs = nl_langinfo (CODESET);
44447 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
44448 || strcmp (cs, "UTF-8") == 0)
44449 return 1;
44450 }
44451 # endif
44452 # ifdef __CYGWIN__
44453 /* On Cygwin, avoid locale names without encoding suffix, because the
44454 locale_charset() function relies on the encoding suffix. Note that
44455 LC_ALL is set on the command line. */
44456 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
44457 # endif
44458 /* Check whether in the abbreviation of the second month, the second
44459 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
44460 one byte long. This excludes the UTF-8 encoding. */
44461 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
44462 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
44463 # if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
44464 /* Check whether the decimal separator is a comma.
44465 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
44466 are nl_langinfo(RADIXCHAR) are both ".". */
44467 if (localeconv () ->decimal_point[0] != ',') return 1;
44468 # endif
44469 return 0;
44470 #endif
44471 }
44472
44473 _ACEOF
44474 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
44475 (eval $ac_link) 2>&5
44476 ac_status=$?
44477 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
44478 test $ac_status = 0; } && test -s conftest$ac_exeext; then
44479 case "$host_os" in
44480 # Handle native Windows specially, because there setlocale() interprets
44481 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
44482 # "fr" or "fra" as "French" or "French_France.1252",
44483 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
44484 # "ja" as "Japanese" or "Japanese_Japan.932",
44485 # and similar.
44486 mingw*)
44487 # Test for the native Windows locale name.
44488 if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
44489 gt_cv_locale_fr=French_France.1252
44490 else
44491 # None found.
44492 gt_cv_locale_fr=none
44493 fi
44494 ;;
44495 *)
44496 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
44497 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
44498 # configure script would override the LC_ALL setting. Likewise for
44499 # LC_CTYPE, which is also set at the beginning of the configure script.
44500 # Test for the usual locale name.
44501 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
44502 gt_cv_locale_fr=fr_FR
44503 else
44504 # Test for the locale name with explicit encoding suffix.
44505 if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
44506 gt_cv_locale_fr=fr_FR.ISO-8859-1
44507 else
44508 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
44509 if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
44510 gt_cv_locale_fr=fr_FR.ISO8859-1
44511 else
44512 # Test for the HP-UX locale name.
44513 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
44514 gt_cv_locale_fr=fr_FR.iso88591
44515 else
44516 # Test for the Solaris 7 locale name.
44517 if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
44518 gt_cv_locale_fr=fr
44519 else
44520 # None found.
44521 gt_cv_locale_fr=none
44522 fi
44523 fi
44524 fi
44525 fi
44526 fi
44527 ;;
44528 esac
44529 fi
44530 rm -fr conftest*
44531
44532 fi
44533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
44534 printf "%s\n" "$gt_cv_locale_fr" >&6; }
44535 LOCALE_FR=$gt_cv_locale_fr
44536
44537
44538
44539
44540
44541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a turkish Unicode locale" >&5
44542 printf %s "checking for a turkish Unicode locale... " >&6; }
44543 if test ${gt_cv_locale_tr_utf8+y}
44544 then :
44545 printf %s "(cached) " >&6
44546 else $as_nop
44547
44548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44549 /* end confdefs.h. */
44550
44551 #include <locale.h>
44552 #include <time.h>
44553 #if HAVE_LANGINFO_CODESET
44554 # include <langinfo.h>
44555 #endif
44556 #include <stdlib.h>
44557 #include <string.h>
44558 #include <wctype.h>
44559 struct tm t;
44560 char buf[16];
44561 int main () {
44562 /* On BeOS, locales are not implemented in libc. Rather, libintl
44563 imitates locale dependent behaviour by looking at the environment
44564 variables, and all locales use the UTF-8 encoding. But BeOS does not
44565 implement the Turkish upper-/lowercase mappings. Therefore, let this
44566 program return 1 on BeOS. */
44567 /* Check whether the given locale name is recognized by the system. */
44568 #if defined _WIN32 && !defined __CYGWIN__
44569 /* On native Windows, setlocale(category, "") looks at the system settings,
44570 not at the environment variables. Also, when an encoding suffix such
44571 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
44572 category of the locale to "C". */
44573 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
44574 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
44575 return 1;
44576 #else
44577 if (setlocale (LC_ALL, "") == NULL) return 1;
44578 #endif
44579 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
44580 On Mac OS X 10.3.5 (Darwin 7.5) in the tr_TR locale, nl_langinfo(CODESET)
44581 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
44582 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
44583 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
44584 some unit tests fail. */
44585 #if HAVE_LANGINFO_CODESET
44586 {
44587 const char *cs = nl_langinfo (CODESET);
44588 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
44589 return 1;
44590 }
44591 #endif
44592 #ifdef __CYGWIN__
44593 /* On Cygwin, avoid locale names without encoding suffix, because the
44594 locale_charset() function relies on the encoding suffix. Note that
44595 LC_ALL is set on the command line. */
44596 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
44597 #endif
44598 /* Check whether in the abbreviation of the eighth month, the second
44599 character (should be U+011F: LATIN SMALL LETTER G WITH BREVE) is
44600 two bytes long, with UTF-8 encoding. */
44601 t.tm_year = 1992 - 1900; t.tm_mon = 8 - 1; t.tm_mday = 19;
44602 if (strftime (buf, sizeof (buf), "%b", &t) < 4
44603 || buf[1] != (char) 0xc4 || buf[2] != (char) 0x9f)
44604 return 1;
44605 /* Check whether the upper-/lowercase mappings are as expected for
44606 Turkish. */
44607 if (towupper ('i') != 0x0130 || towlower (0x0130) != 'i'
44608 || towupper(0x0131) != 'I' || towlower ('I') != 0x0131)
44609 return 1;
44610 return 0;
44611 }
44612
44613 _ACEOF
44614 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
44615 (eval $ac_link) 2>&5
44616 ac_status=$?
44617 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
44618 test $ac_status = 0; } && test -s conftest$ac_exeext; then
44619 case "$host_os" in
44620 # Handle native Windows specially, because there setlocale() interprets
44621 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
44622 # "fr" or "fra" as "French" or "French_France.1252",
44623 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
44624 # "ja" as "Japanese" or "Japanese_Japan.932",
44625 # and similar.
44626 mingw*)
44627 # Test for the hypothetical native Windows locale name.
44628 if (LC_ALL=Turkish_Turkey.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
44629 gt_cv_locale_tr_utf8=Turkish_Turkey.65001
44630 else
44631 # None found.
44632 gt_cv_locale_tr_utf8=none
44633 fi
44634 ;;
44635 *)
44636 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
44637 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
44638 # configure script would override the LC_ALL setting. Likewise for
44639 # LC_CTYPE, which is also set at the beginning of the configure script.
44640 # Test for the usual locale name.
44641 if (LC_ALL=tr_TR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
44642 gt_cv_locale_tr_utf8=tr_TR
44643 else
44644 # Test for the locale name with explicit encoding suffix.
44645 if (LC_ALL=tr_TR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
44646 gt_cv_locale_tr_utf8=tr_TR.UTF-8
44647 else
44648 # Test for the Solaris 7 locale name.
44649 if (LC_ALL=tr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
44650 gt_cv_locale_tr_utf8=tr.UTF-8
44651 else
44652 # None found.
44653 gt_cv_locale_tr_utf8=none
44654 fi
44655 fi
44656 fi
44657 ;;
44658 esac
44659 else
44660 gt_cv_locale_tr_utf8=none
44661 fi
44662 rm -fr conftest*
44663
44664 fi
44665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_tr_utf8" >&5
44666 printf "%s\n" "$gt_cv_locale_tr_utf8" >&6; }
44667 LOCALE_TR_UTF8=$gt_cv_locale_tr_utf8
44668
44669
44670
44671
44672 if test "$ac_cv_header_winsock2_h" = yes; then
44673 GL_COND_OBJ_CONNECT_TRUE=
44674 GL_COND_OBJ_CONNECT_FALSE='#'
44675 else
44676 GL_COND_OBJ_CONNECT_TRUE='#'
44677 GL_COND_OBJ_CONNECT_FALSE=
44678 fi
44679 :
44680 if test -z "${GL_COND_OBJ_CONNECT_TRUE}" && test -z "${GL_COND_OBJ_CONNECT_FALSE}"; then
44681 GL_COND_OBJ_CONNECT_TRUE='#'
44682 GL_COND_OBJ_CONNECT_FALSE='#'
44683 fi
44684
44685
44686
44687
44688
44689
44690
44691
44692
44693
44694 if test "$GL_GNULIB_CONNECT" != 1; then
44695 if test "$GL_GNULIB_CONNECT" = 0; then
44696 GL_GNULIB_CONNECT=$gl_module_indicator_condition
44697 else
44698 GL_GNULIB_CONNECT="($GL_GNULIB_CONNECT || $gl_module_indicator_condition)"
44699 fi
44700 fi
44701
44702
44703
44704
44705
44706 printf "%s\n" "#define GNULIB_TEST_CONNECT 1" >>confdefs.h
44707
44708
44709
44710
44711
44712
44713
44714
44715
44716
44717
44718
44719
44720 if test "$GL_GNULIB_ENVIRON" != 1; then
44721 if test "$GL_GNULIB_ENVIRON" = 0; then
44722 GL_GNULIB_ENVIRON=$gl_module_indicator_condition
44723 else
44724 GL_GNULIB_ENVIRON="($GL_GNULIB_ENVIRON || $gl_module_indicator_condition)"
44725 fi
44726 fi
44727
44728
44729
44730
44731
44732 printf "%s\n" "#define GNULIB_TEST_ENVIRON 1" >>confdefs.h
44733
44734
44735
44736
44737
44738
44739
44740 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
44741 REPLACE_FDOPEN=1
44742 fi
44743
44744 if test $REPLACE_FDOPEN = 0; then
44745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether fdopen sets errno" >&5
44746 printf %s "checking whether fdopen sets errno... " >&6; }
44747 if test ${gl_cv_func_fdopen_works+y}
44748 then :
44749 printf %s "(cached) " >&6
44750 else $as_nop
44751
44752 if test "$cross_compiling" = yes
44753 then :
44754 case "$host_os" in
44755 mingw*) gl_cv_func_fdopen_works="guessing no" ;;
44756 *) gl_cv_func_fdopen_works="guessing yes" ;;
44757 esac
44758
44759 else $as_nop
44760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44761 /* end confdefs.h. */
44762
44763 #include <stdio.h>
44764 #include <errno.h>
44765
44766
44767 $gl_mda_defines
44768
44769 int
44770 main (void)
44771 {
44772 FILE *fp;
44773 errno = 0;
44774 fp = fdopen (-1, "r");
44775 if (fp == NULL && errno == 0)
44776 return 1;
44777 return 0;
44778 }
44779 _ACEOF
44780 if ac_fn_c_try_run "$LINENO"
44781 then :
44782 gl_cv_func_fdopen_works=yes
44783 else $as_nop
44784 gl_cv_func_fdopen_works=no
44785 fi
44786 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
44787 conftest.$ac_objext conftest.beam conftest.$ac_ext
44788 fi
44789
44790
44791 fi
44792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fdopen_works" >&5
44793 printf "%s\n" "$gl_cv_func_fdopen_works" >&6; }
44794 case "$gl_cv_func_fdopen_works" in
44795 *no) REPLACE_FDOPEN=1 ;;
44796 esac
44797 fi
44798
44799
44800 if test $REPLACE_FDOPEN = 1; then
44801 GL_COND_OBJ_FDOPEN_TRUE=
44802 GL_COND_OBJ_FDOPEN_FALSE='#'
44803 else
44804 GL_COND_OBJ_FDOPEN_TRUE='#'
44805 GL_COND_OBJ_FDOPEN_FALSE=
44806 fi
44807 :
44808 if test -z "${GL_COND_OBJ_FDOPEN_TRUE}" && test -z "${GL_COND_OBJ_FDOPEN_FALSE}"; then
44809 GL_COND_OBJ_FDOPEN_TRUE='#'
44810 GL_COND_OBJ_FDOPEN_FALSE='#'
44811 fi
44812
44813 if test -z "$GL_COND_OBJ_FDOPEN_TRUE"; then :
44814
44815
44816
44817 fi
44818
44819
44820
44821
44822
44823
44824
44825
44826
44827 if test "$GL_GNULIB_FDOPEN" != 1; then
44828 if test "$GL_GNULIB_FDOPEN" = 0; then
44829 GL_GNULIB_FDOPEN=$gl_module_indicator_condition
44830 else
44831 GL_GNULIB_FDOPEN="($GL_GNULIB_FDOPEN || $gl_module_indicator_condition)"
44832 fi
44833 fi
44834
44835
44836
44837
44838
44839 printf "%s\n" "#define GNULIB_TEST_FDOPEN 1" >>confdefs.h
44840
44841
44842
44843
44844
44845
44846 if test $ac_cv_func_ftruncate = yes; then
44847
44848
44849 case "$host_os" in
44850 mingw*)
44851 REPLACE_FTRUNCATE=1
44852 ;;
44853 esac
44854
44855 else
44856 HAVE_FTRUNCATE=0
44857 fi
44858
44859
44860 if test $HAVE_FTRUNCATE = 0 || test $REPLACE_FTRUNCATE = 1; then
44861 GL_COND_OBJ_FTRUNCATE_TRUE=
44862 GL_COND_OBJ_FTRUNCATE_FALSE='#'
44863 else
44864 GL_COND_OBJ_FTRUNCATE_TRUE='#'
44865 GL_COND_OBJ_FTRUNCATE_FALSE=
44866 fi
44867 :
44868 if test -z "${GL_COND_OBJ_FTRUNCATE_TRUE}" && test -z "${GL_COND_OBJ_FTRUNCATE_FALSE}"; then
44869 GL_COND_OBJ_FTRUNCATE_TRUE='#'
44870 GL_COND_OBJ_FTRUNCATE_FALSE='#'
44871 fi
44872
44873 if test -z "$GL_COND_OBJ_FTRUNCATE_TRUE"; then :
44874
44875
44876 ac_fn_c_check_func "$LINENO" "_chsize" "ac_cv_func__chsize"
44877 if test "x$ac_cv_func__chsize" = xyes
44878 then :
44879 printf "%s\n" "#define HAVE__CHSIZE 1" >>confdefs.h
44880
44881 fi
44882
44883
44884
44885 fi
44886
44887
44888
44889
44890
44891
44892
44893
44894
44895 if test "$GL_GNULIB_FTRUNCATE" != 1; then
44896 if test "$GL_GNULIB_FTRUNCATE" = 0; then
44897 GL_GNULIB_FTRUNCATE=$gl_module_indicator_condition
44898 else
44899 GL_GNULIB_FTRUNCATE="($GL_GNULIB_FTRUNCATE || $gl_module_indicator_condition)"
44900 fi
44901 fi
44902
44903
44904
44905
44906
44907 printf "%s\n" "#define GNULIB_TEST_FTRUNCATE 1" >>confdefs.h
44908
44909
44910
44911
44912
44913
44914
44915
44916 case $gl_cv_func_getcwd_null,$gl_cv_func_getcwd_posix_signature in
44917 *yes,yes) ;;
44918 *)
44919 REPLACE_GETCWD=1
44920 ;;
44921 esac
44922
44923
44924 if test $REPLACE_GETCWD = 1; then
44925 GL_COND_OBJ_GETCWD_LGPL_TRUE=
44926 GL_COND_OBJ_GETCWD_LGPL_FALSE='#'
44927 else
44928 GL_COND_OBJ_GETCWD_LGPL_TRUE='#'
44929 GL_COND_OBJ_GETCWD_LGPL_FALSE=
44930 fi
44931 :
44932 if test -z "${GL_COND_OBJ_GETCWD_LGPL_TRUE}" && test -z "${GL_COND_OBJ_GETCWD_LGPL_FALSE}"; then
44933 GL_COND_OBJ_GETCWD_LGPL_TRUE='#'
44934 GL_COND_OBJ_GETCWD_LGPL_FALSE='#'
44935 fi
44936
44937
44938
44939
44940
44941
44942
44943
44944
44945
44946 if test "$GL_GNULIB_GETCWD" != 1; then
44947 if test "$GL_GNULIB_GETCWD" = 0; then
44948 GL_GNULIB_GETCWD=$gl_module_indicator_condition
44949 else
44950 GL_GNULIB_GETCWD="($GL_GNULIB_GETCWD || $gl_module_indicator_condition)"
44951 fi
44952 fi
44953
44954
44955
44956
44957
44958 printf "%s\n" "#define GNULIB_TEST_GETCWD 1" >>confdefs.h
44959
44960
44961
44962
44963
44964
44965
44966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getpagesize" >&5
44967 printf %s "checking for getpagesize... " >&6; }
44968 if test ${gl_cv_func_getpagesize+y}
44969 then :
44970 printf %s "(cached) " >&6
44971 else $as_nop
44972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44973 /* end confdefs.h. */
44974 #include <unistd.h>
44975 int
44976 main (void)
44977 {
44978 return getpagesize();
44979 ;
44980 return 0;
44981 }
44982
44983 _ACEOF
44984 if ac_fn_c_try_link "$LINENO"
44985 then :
44986 gl_cv_func_getpagesize=yes
44987 else $as_nop
44988 gl_cv_func_getpagesize=no
44989 fi
44990 rm -f core conftest.err conftest.$ac_objext conftest.beam \
44991 conftest$ac_exeext conftest.$ac_ext
44992
44993 fi
44994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getpagesize" >&5
44995 printf "%s\n" "$gl_cv_func_getpagesize" >&6; }
44996
44997 if test $gl_cv_func_getpagesize = no; then
44998 HAVE_GETPAGESIZE=0
44999 ac_fn_c_check_header_compile "$LINENO" "OS.h" "ac_cv_header_OS_h" "$ac_includes_default"
45000 if test "x$ac_cv_header_OS_h" = xyes
45001 then :
45002 printf "%s\n" "#define HAVE_OS_H 1" >>confdefs.h
45003
45004 fi
45005
45006 if test $ac_cv_header_OS_h = yes; then
45007 HAVE_OS_H=1
45008 fi
45009 ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
45010 if test "x$ac_cv_header_sys_param_h" = xyes
45011 then :
45012 printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
45013
45014 fi
45015
45016 if test $ac_cv_header_sys_param_h = yes; then
45017 HAVE_SYS_PARAM_H=1
45018 fi
45019 fi
45020 case "$host_os" in
45021 mingw*)
45022 REPLACE_GETPAGESIZE=1
45023 ;;
45024 esac
45025 ac_fn_check_decl "$LINENO" "getpagesize" "ac_cv_have_decl_getpagesize" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
45026 if test "x$ac_cv_have_decl_getpagesize" = xyes
45027 then :
45028
45029 else $as_nop
45030 HAVE_DECL_GETPAGESIZE=0
45031 fi
45032
45033
45034 if test $REPLACE_GETPAGESIZE = 1; then
45035 GL_COND_OBJ_GETPAGESIZE_TRUE=
45036 GL_COND_OBJ_GETPAGESIZE_FALSE='#'
45037 else
45038 GL_COND_OBJ_GETPAGESIZE_TRUE='#'
45039 GL_COND_OBJ_GETPAGESIZE_FALSE=
45040 fi
45041 :
45042 if test -z "${GL_COND_OBJ_GETPAGESIZE_TRUE}" && test -z "${GL_COND_OBJ_GETPAGESIZE_FALSE}"; then
45043 GL_COND_OBJ_GETPAGESIZE_TRUE='#'
45044 GL_COND_OBJ_GETPAGESIZE_FALSE='#'
45045 fi
45046
45047
45048
45049
45050
45051
45052
45053
45054
45055
45056 if test "$GL_GNULIB_GETPAGESIZE" != 1; then
45057 if test "$GL_GNULIB_GETPAGESIZE" = 0; then
45058 GL_GNULIB_GETPAGESIZE=$gl_module_indicator_condition
45059 else
45060 GL_GNULIB_GETPAGESIZE="($GL_GNULIB_GETPAGESIZE || $gl_module_indicator_condition)"
45061 fi
45062 fi
45063
45064
45065
45066
45067
45068 printf "%s\n" "#define GNULIB_TEST_GETPAGESIZE 1" >>confdefs.h
45069
45070
45071
45072
45073
45074
45075
45076
45077
45078
45079 gl_gettimeofday_timezone=void
45080 if test $ac_cv_func_gettimeofday != yes; then
45081 HAVE_GETTIMEOFDAY=0
45082 else
45083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
45084 printf %s "checking for gettimeofday with POSIX signature... " >&6; }
45085 if test ${gl_cv_func_gettimeofday_posix_signature+y}
45086 then :
45087 printf %s "(cached) " >&6
45088 else $as_nop
45089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45090 /* end confdefs.h. */
45091 #include <sys/time.h>
45092 struct timeval c;
45093 int gettimeofday (struct timeval *restrict, void *restrict);
45094
45095 int
45096 main (void)
45097 {
45098 /* glibc uses struct timezone * rather than the POSIX void *
45099 if _GNU_SOURCE is defined. However, since the only portable
45100 use of gettimeofday uses NULL as the second parameter, and
45101 since the glibc definition is actually more typesafe, it is
45102 not worth wrapping this to get a compliant signature. */
45103 int (*f) (struct timeval *restrict, void *restrict)
45104 = gettimeofday;
45105 int x = f (&c, 0);
45106 return !(x | c.tv_sec | c.tv_usec);
45107
45108 ;
45109 return 0;
45110 }
45111 _ACEOF
45112 if ac_fn_c_try_compile "$LINENO"
45113 then :
45114 gl_cv_func_gettimeofday_posix_signature=yes
45115 else $as_nop
45116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45117 /* end confdefs.h. */
45118 #include <sys/time.h>
45119 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
45120
45121 int
45122 main (void)
45123 {
45124
45125 ;
45126 return 0;
45127 }
45128 _ACEOF
45129 if ac_fn_c_try_compile "$LINENO"
45130 then :
45131 gl_cv_func_gettimeofday_posix_signature=almost
45132 else $as_nop
45133 gl_cv_func_gettimeofday_posix_signature=no
45134 fi
45135 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
45136 fi
45137 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
45138 fi
45139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
45140 printf "%s\n" "$gl_cv_func_gettimeofday_posix_signature" >&6; }
45141 if test $gl_cv_func_gettimeofday_posix_signature = almost; then
45142 gl_gettimeofday_timezone='struct timezone'
45143 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
45144 REPLACE_GETTIMEOFDAY=1
45145 fi
45146 if test $REPLACE_STRUCT_TIMEVAL = 1; then
45147 REPLACE_GETTIMEOFDAY=1
45148 fi
45149 case "$host_os" in
45150 mingw*) REPLACE_GETTIMEOFDAY=1 ;;
45151 esac
45152 fi
45153
45154 printf "%s\n" "#define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone" >>confdefs.h
45155
45156
45157
45158 if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
45159 GL_COND_OBJ_GETTIMEOFDAY_TRUE=
45160 GL_COND_OBJ_GETTIMEOFDAY_FALSE='#'
45161 else
45162 GL_COND_OBJ_GETTIMEOFDAY_TRUE='#'
45163 GL_COND_OBJ_GETTIMEOFDAY_FALSE=
45164 fi
45165 :
45166 if test -z "${GL_COND_OBJ_GETTIMEOFDAY_TRUE}" && test -z "${GL_COND_OBJ_GETTIMEOFDAY_FALSE}"; then
45167 GL_COND_OBJ_GETTIMEOFDAY_TRUE='#'
45168 GL_COND_OBJ_GETTIMEOFDAY_FALSE='#'
45169 fi
45170
45171 if test -z "$GL_COND_OBJ_GETTIMEOFDAY_TRUE"; then :
45172
45173 :
45174
45175 fi
45176
45177
45178
45179
45180
45181
45182
45183
45184
45185 if test "$GL_GNULIB_GETTIMEOFDAY" != 1; then
45186 if test "$GL_GNULIB_GETTIMEOFDAY" = 0; then
45187 GL_GNULIB_GETTIMEOFDAY=$gl_module_indicator_condition
45188 else
45189 GL_GNULIB_GETTIMEOFDAY="($GL_GNULIB_GETTIMEOFDAY || $gl_module_indicator_condition)"
45190 fi
45191 fi
45192
45193
45194
45195
45196
45197 printf "%s\n" "#define GNULIB_TEST_GETTIMEOFDAY 1" >>confdefs.h
45198
45199
45200
45201
45202
45203
45204
45205
45206
45207
45208
45209
45210 HAVE_INET_PTON=1
45211 INET_PTON_LIB=
45212
45213
45214
45215
45216 if test $ac_cv_header_sys_socket_h != yes; then
45217 ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
45218 if test "x$ac_cv_header_winsock2_h" = xyes
45219 then :
45220 printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h
45221
45222 fi
45223
45224 fi
45225 if test "$ac_cv_header_winsock2_h" = yes; then
45226 HAVE_WINSOCK2_H=1
45227 UNISTD_H_HAVE_WINSOCK2_H=1
45228 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
45229 else
45230 HAVE_WINSOCK2_H=0
45231 fi
45232
45233
45234 if test $HAVE_WINSOCK2_H = 1; then
45235 REPLACE_INET_PTON=1
45236 ac_fn_check_decl "$LINENO" "inet_pton" "ac_cv_have_decl_inet_pton" "#include <ws2tcpip.h>
45237 " "$ac_c_undeclared_builtin_options" "CFLAGS"
45238 if test "x$ac_cv_have_decl_inet_pton" = xyes
45239 then :
45240 ac_have_decl=1
45241 else $as_nop
45242 ac_have_decl=0
45243 fi
45244 printf "%s\n" "#define HAVE_DECL_INET_PTON $ac_have_decl" >>confdefs.h
45245
45246 if test $ac_cv_have_decl_inet_pton = yes; then
45247 INET_PTON_LIB="-lws2_32"
45248 else
45249 HAVE_DECL_INET_PTON=0
45250 fi
45251 else
45252 gl_save_LIBS=$LIBS
45253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
45254 printf %s "checking for library containing inet_pton... " >&6; }
45255 if test ${ac_cv_search_inet_pton+y}
45256 then :
45257 printf %s "(cached) " >&6
45258 else $as_nop
45259 ac_func_search_save_LIBS=$LIBS
45260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45261 /* end confdefs.h. */
45262
45263 /* Override any GCC internal prototype to avoid an error.
45264 Use char because int might match the return type of a GCC
45265 builtin and then its argument prototype would still apply. */
45266 char inet_pton ();
45267 int
45268 main (void)
45269 {
45270 return inet_pton ();
45271 ;
45272 return 0;
45273 }
45274 _ACEOF
45275 for ac_lib in '' nsl resolv network
45276 do
45277 if test -z "$ac_lib"; then
45278 ac_res="none required"
45279 else
45280 ac_res=-l$ac_lib
45281 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
45282 fi
45283 if ac_fn_c_try_link "$LINENO"
45284 then :
45285 ac_cv_search_inet_pton=$ac_res
45286 fi
45287 rm -f core conftest.err conftest.$ac_objext conftest.beam \
45288 conftest$ac_exeext
45289 if test ${ac_cv_search_inet_pton+y}
45290 then :
45291 break
45292 fi
45293 done
45294 if test ${ac_cv_search_inet_pton+y}
45295 then :
45296
45297 else $as_nop
45298 ac_cv_search_inet_pton=no
45299 fi
45300 rm conftest.$ac_ext
45301 LIBS=$ac_func_search_save_LIBS
45302 fi
45303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
45304 printf "%s\n" "$ac_cv_search_inet_pton" >&6; }
45305 ac_res=$ac_cv_search_inet_pton
45306 if test "$ac_res" != no
45307 then :
45308 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
45309
45310 else $as_nop
45311 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
45312 if test "x$ac_cv_func_inet_pton" = xyes
45313 then :
45314 printf "%s\n" "#define HAVE_INET_PTON 1" >>confdefs.h
45315
45316 fi
45317
45318 if test $ac_cv_func_inet_pton = no; then
45319 HAVE_INET_PTON=0
45320 fi
45321
45322 fi
45323
45324 LIBS=$gl_save_LIBS
45325
45326 if test "$ac_cv_search_inet_pton" != "no" \
45327 && test "$ac_cv_search_inet_pton" != "none required"; then
45328 INET_PTON_LIB="$ac_cv_search_inet_pton"
45329 fi
45330
45331
45332 ac_fn_check_decl "$LINENO" "inet_pton" "ac_cv_have_decl_inet_pton" "#include <arpa/inet.h>
45333 #if HAVE_NETDB_H
45334 # include <netdb.h>
45335 #endif
45336
45337 " "$ac_c_undeclared_builtin_options" "CFLAGS"
45338 if test "x$ac_cv_have_decl_inet_pton" = xyes
45339 then :
45340 ac_have_decl=1
45341 else $as_nop
45342 ac_have_decl=0
45343 fi
45344 printf "%s\n" "#define HAVE_DECL_INET_PTON $ac_have_decl" >>confdefs.h
45345
45346 if test $ac_cv_have_decl_inet_pton = no; then
45347 HAVE_DECL_INET_PTON=0
45348 fi
45349 fi
45350
45351
45352
45353 if test $HAVE_INET_PTON = 0 || test $REPLACE_INET_PTON = 1; then
45354 GL_COND_OBJ_INET_PTON_TRUE=
45355 GL_COND_OBJ_INET_PTON_FALSE='#'
45356 else
45357 GL_COND_OBJ_INET_PTON_TRUE='#'
45358 GL_COND_OBJ_INET_PTON_FALSE=
45359 fi
45360 :
45361 if test -z "${GL_COND_OBJ_INET_PTON_TRUE}" && test -z "${GL_COND_OBJ_INET_PTON_FALSE}"; then
45362 GL_COND_OBJ_INET_PTON_TRUE='#'
45363 GL_COND_OBJ_INET_PTON_FALSE='#'
45364 fi
45365
45366 if test -z "$GL_COND_OBJ_INET_PTON_TRUE"; then :
45367
45368
45369
45370
45371
45372 fi
45373
45374
45375
45376
45377
45378
45379
45380
45381
45382 if test "$GL_GNULIB_INET_PTON" != 1; then
45383 if test "$GL_GNULIB_INET_PTON" = 0; then
45384 GL_GNULIB_INET_PTON=$gl_module_indicator_condition
45385 else
45386 GL_GNULIB_INET_PTON="($GL_GNULIB_INET_PTON || $gl_module_indicator_condition)"
45387 fi
45388 fi
45389
45390
45391
45392
45393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
45394 printf %s "checking whether byte ordering is bigendian... " >&6; }
45395 if test ${ac_cv_c_bigendian+y}
45396 then :
45397 printf %s "(cached) " >&6
45398 else $as_nop
45399 ac_cv_c_bigendian=unknown
45400 # See if we're dealing with a universal compiler.
45401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45402 /* end confdefs.h. */
45403 #ifndef __APPLE_CC__
45404 not a universal capable compiler
45405 #endif
45406 typedef int dummy;
45407
45408 _ACEOF
45409 if ac_fn_c_try_compile "$LINENO"
45410 then :
45411
45412 # Check for potential -arch flags. It is not universal unless
45413 # there are at least two -arch flags with different values.
45414 ac_arch=
45415 ac_prev=
45416 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
45417 if test -n "$ac_prev"; then
45418 case $ac_word in
45419 i?86 | x86_64 | ppc | ppc64)
45420 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
45421 ac_arch=$ac_word
45422 else
45423 ac_cv_c_bigendian=universal
45424 break
45425 fi
45426 ;;
45427 esac
45428 ac_prev=
45429 elif test "x$ac_word" = "x-arch"; then
45430 ac_prev=arch
45431 fi
45432 done
45433 fi
45434 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
45435 if test $ac_cv_c_bigendian = unknown; then
45436 # See if sys/param.h defines the BYTE_ORDER macro.
45437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45438 /* end confdefs.h. */
45439 #include <sys/types.h>
45440 #include <sys/param.h>
45441
45442 int
45443 main (void)
45444 {
45445 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
45446 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
45447 && LITTLE_ENDIAN)
45448 bogus endian macros
45449 #endif
45450
45451 ;
45452 return 0;
45453 }
45454 _ACEOF
45455 if ac_fn_c_try_compile "$LINENO"
45456 then :
45457 # It does; now see whether it defined to BIG_ENDIAN or not.
45458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45459 /* end confdefs.h. */
45460 #include <sys/types.h>
45461 #include <sys/param.h>
45462
45463 int
45464 main (void)
45465 {
45466 #if BYTE_ORDER != BIG_ENDIAN
45467 not big endian
45468 #endif
45469
45470 ;
45471 return 0;
45472 }
45473 _ACEOF
45474 if ac_fn_c_try_compile "$LINENO"
45475 then :
45476 ac_cv_c_bigendian=yes
45477 else $as_nop
45478 ac_cv_c_bigendian=no
45479 fi
45480 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
45481 fi
45482 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
45483 fi
45484 if test $ac_cv_c_bigendian = unknown; then
45485 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
45486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45487 /* end confdefs.h. */
45488 #include <limits.h>
45489
45490 int
45491 main (void)
45492 {
45493 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
45494 bogus endian macros
45495 #endif
45496
45497 ;
45498 return 0;
45499 }
45500 _ACEOF
45501 if ac_fn_c_try_compile "$LINENO"
45502 then :
45503 # It does; now see whether it defined to _BIG_ENDIAN or not.
45504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45505 /* end confdefs.h. */
45506 #include <limits.h>
45507
45508 int
45509 main (void)
45510 {
45511 #ifndef _BIG_ENDIAN
45512 not big endian
45513 #endif
45514
45515 ;
45516 return 0;
45517 }
45518 _ACEOF
45519 if ac_fn_c_try_compile "$LINENO"
45520 then :
45521 ac_cv_c_bigendian=yes
45522 else $as_nop
45523 ac_cv_c_bigendian=no
45524 fi
45525 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
45526 fi
45527 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
45528 fi
45529 if test $ac_cv_c_bigendian = unknown; then
45530 # Compile a test program.
45531 if test "$cross_compiling" = yes
45532 then :
45533 # Try to guess by grepping values from an object file.
45534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45535 /* end confdefs.h. */
45536 unsigned short int ascii_mm[] =
45537 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
45538 unsigned short int ascii_ii[] =
45539 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
45540 int use_ascii (int i) {
45541 return ascii_mm[i] + ascii_ii[i];
45542 }
45543 unsigned short int ebcdic_ii[] =
45544 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
45545 unsigned short int ebcdic_mm[] =
45546 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
45547 int use_ebcdic (int i) {
45548 return ebcdic_mm[i] + ebcdic_ii[i];
45549 }
45550 extern int foo;
45551
45552 int
45553 main (void)
45554 {
45555 return use_ascii (foo) == use_ebcdic (foo);
45556 ;
45557 return 0;
45558 }
45559 _ACEOF
45560 if ac_fn_c_try_compile "$LINENO"
45561 then :
45562 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
45563 ac_cv_c_bigendian=yes
45564 fi
45565 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
45566 if test "$ac_cv_c_bigendian" = unknown; then
45567 ac_cv_c_bigendian=no
45568 else
45569 # finding both strings is unlikely to happen, but who knows?
45570 ac_cv_c_bigendian=unknown
45571 fi
45572 fi
45573 fi
45574 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
45575 else $as_nop
45576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45577 /* end confdefs.h. */
45578 $ac_includes_default
45579 int
45580 main (void)
45581 {
45582
45583 /* Are we little or big endian? From Harbison&Steele. */
45584 union
45585 {
45586 long int l;
45587 char c[sizeof (long int)];
45588 } u;
45589 u.l = 1;
45590 return u.c[sizeof (long int) - 1] == 1;
45591
45592 ;
45593 return 0;
45594 }
45595 _ACEOF
45596 if ac_fn_c_try_run "$LINENO"
45597 then :
45598 ac_cv_c_bigendian=no
45599 else $as_nop
45600 ac_cv_c_bigendian=yes
45601 fi
45602 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
45603 conftest.$ac_objext conftest.beam conftest.$ac_ext
45604 fi
45605
45606 fi
45607 fi
45608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
45609 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
45610 case $ac_cv_c_bigendian in #(
45611 yes)
45612 printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
45613 ;; #(
45614 no)
45615 ;; #(
45616 universal)
45617
45618 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
45619
45620 ;; #(
45621 *)
45622 as_fn_error $? "unknown endianness
45623 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
45624 esac
45625
45626
45627
45628
45629
45630 HAVE_IOCTL=1
45631 if test "$ac_cv_header_winsock2_h" = yes; then
45632 HAVE_IOCTL=0
45633 else
45634 ac_fn_c_check_func "$LINENO" "ioctl" "ac_cv_func_ioctl"
45635 if test "x$ac_cv_func_ioctl" = xyes
45636 then :
45637 printf "%s\n" "#define HAVE_IOCTL 1" >>confdefs.h
45638
45639 fi
45640
45641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ioctl with POSIX signature" >&5
45642 printf %s "checking for ioctl with POSIX signature... " >&6; }
45643 if test ${gl_cv_func_ioctl_posix_signature+y}
45644 then :
45645 printf %s "(cached) " >&6
45646 else $as_nop
45647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45648 /* end confdefs.h. */
45649 #include <sys/ioctl.h>
45650 /* On some platforms, ioctl() is declared in <unistd.h>. */
45651 #include <unistd.h>
45652
45653 int
45654 main (void)
45655 {
45656 extern
45657 #ifdef __cplusplus
45658 "C"
45659 #endif
45660 int ioctl (int, int, ...);
45661
45662 ;
45663 return 0;
45664 }
45665
45666 _ACEOF
45667 if ac_fn_c_try_compile "$LINENO"
45668 then :
45669 gl_cv_func_ioctl_posix_signature=yes
45670 else $as_nop
45671 gl_cv_func_ioctl_posix_signature=no
45672 fi
45673 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
45674
45675 fi
45676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ioctl_posix_signature" >&5
45677 printf "%s\n" "$gl_cv_func_ioctl_posix_signature" >&6; }
45678 if test $gl_cv_func_ioctl_posix_signature != yes; then
45679 REPLACE_IOCTL=1
45680 fi
45681 fi
45682
45683
45684 if test $HAVE_IOCTL = 0 || test $REPLACE_IOCTL = 1; then
45685 GL_COND_OBJ_IOCTL_TRUE=
45686 GL_COND_OBJ_IOCTL_FALSE='#'
45687 else
45688 GL_COND_OBJ_IOCTL_TRUE='#'
45689 GL_COND_OBJ_IOCTL_FALSE=
45690 fi
45691 :
45692 if test -z "${GL_COND_OBJ_IOCTL_TRUE}" && test -z "${GL_COND_OBJ_IOCTL_FALSE}"; then
45693 GL_COND_OBJ_IOCTL_TRUE='#'
45694 GL_COND_OBJ_IOCTL_FALSE='#'
45695 fi
45696
45697
45698
45699
45700
45701
45702
45703
45704
45705
45706 if test "$GL_GNULIB_IOCTL" != 1; then
45707 if test "$GL_GNULIB_IOCTL" = 0; then
45708 GL_GNULIB_IOCTL=$gl_module_indicator_condition
45709 else
45710 GL_GNULIB_IOCTL="($GL_GNULIB_IOCTL || $gl_module_indicator_condition)"
45711 fi
45712 fi
45713
45714
45715
45716
45717
45718 printf "%s\n" "#define GNULIB_TEST_IOCTL 1" >>confdefs.h
45719
45720
45721
45722
45723
45724 if test "$ac_cv_header_winsock2_h" = yes; then
45725 GL_COND_OBJ_LISTEN_TRUE=
45726 GL_COND_OBJ_LISTEN_FALSE='#'
45727 else
45728 GL_COND_OBJ_LISTEN_TRUE='#'
45729 GL_COND_OBJ_LISTEN_FALSE=
45730 fi
45731 :
45732 if test -z "${GL_COND_OBJ_LISTEN_TRUE}" && test -z "${GL_COND_OBJ_LISTEN_FALSE}"; then
45733 GL_COND_OBJ_LISTEN_TRUE='#'
45734 GL_COND_OBJ_LISTEN_FALSE='#'
45735 fi
45736
45737
45738
45739
45740
45741
45742
45743
45744
45745
45746 if test "$GL_GNULIB_LISTEN" != 1; then
45747 if test "$GL_GNULIB_LISTEN" = 0; then
45748 GL_GNULIB_LISTEN=$gl_module_indicator_condition
45749 else
45750 GL_GNULIB_LISTEN="($GL_GNULIB_LISTEN || $gl_module_indicator_condition)"
45751 fi
45752 fi
45753
45754
45755
45756
45757
45758 printf "%s\n" "#define GNULIB_TEST_LISTEN 1" >>confdefs.h
45759
45760
45761
45762
45763
45764
45765
45766
45767
45768
45769
45770 if test $HAVE_LOCALE_T = 1; then
45771
45772 gl_func_newlocale="$ac_cv_func_newlocale"
45773 gl_func_duplocale="$ac_cv_func_duplocale"
45774 gl_func_freelocale="$ac_cv_func_freelocale"
45775 else
45776 gl_func_newlocale=no
45777 gl_func_duplocale=no
45778 gl_func_freelocale=no
45779 fi
45780 if test $gl_func_newlocale != yes; then
45781 HAVE_NEWLOCALE=0
45782 fi
45783 if test $gl_func_duplocale != yes; then
45784 HAVE_DUPLOCALE=0
45785 fi
45786 if test $gl_func_freelocale != yes; then
45787 HAVE_FREELOCALE=0
45788 fi
45789 if test $gt_localename_enhances_locale_funcs = yes; then
45790 REPLACE_NEWLOCALE=1
45791 REPLACE_DUPLOCALE=1
45792 REPLACE_FREELOCALE=1
45793 fi
45794
45795
45796
45797
45798
45799
45800
45801
45802
45803
45804 if test "$GL_GNULIB_LOCALENAME" != 1; then
45805 if test "$GL_GNULIB_LOCALENAME" = 0; then
45806 GL_GNULIB_LOCALENAME=$gl_module_indicator_condition
45807 else
45808 GL_GNULIB_LOCALENAME="($GL_GNULIB_LOCALENAME || $gl_module_indicator_condition)"
45809 fi
45810 fi
45811
45812
45813
45814
45815
45816 printf "%s\n" "#define GNULIB_TEST_LOCALENAME 1" >>confdefs.h
45817
45818
45819
45820
45821
45822
45823
45824
45825
45826
45827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
45828 printf %s "checking for a traditional french locale... " >&6; }
45829 if test ${gt_cv_locale_fr+y}
45830 then :
45831 printf %s "(cached) " >&6
45832 else $as_nop
45833
45834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45835 /* end confdefs.h. */
45836
45837 #include <locale.h>
45838 #include <time.h>
45839 #if HAVE_LANGINFO_CODESET
45840 # include <langinfo.h>
45841 #endif
45842 #include <stdlib.h>
45843 #include <string.h>
45844 struct tm t;
45845 char buf[16];
45846 int main () {
45847 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
45848 imitates locale dependent behaviour by looking at the environment
45849 variables, and all locales use the UTF-8 encoding. */
45850 #if defined __BEOS__ || defined __HAIKU__
45851 return 1;
45852 #else
45853 /* Check whether the given locale name is recognized by the system. */
45854 # if defined _WIN32 && !defined __CYGWIN__
45855 /* On native Windows, setlocale(category, "") looks at the system settings,
45856 not at the environment variables. Also, when an encoding suffix such
45857 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
45858 category of the locale to "C". */
45859 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
45860 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
45861 return 1;
45862 # else
45863 if (setlocale (LC_ALL, "") == NULL) return 1;
45864 # endif
45865 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
45866 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
45867 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
45868 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
45869 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
45870 some unit tests fail.
45871 On MirBSD 10, when an unsupported locale is specified, setlocale()
45872 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
45873 # if HAVE_LANGINFO_CODESET
45874 {
45875 const char *cs = nl_langinfo (CODESET);
45876 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
45877 || strcmp (cs, "UTF-8") == 0)
45878 return 1;
45879 }
45880 # endif
45881 # ifdef __CYGWIN__
45882 /* On Cygwin, avoid locale names without encoding suffix, because the
45883 locale_charset() function relies on the encoding suffix. Note that
45884 LC_ALL is set on the command line. */
45885 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
45886 # endif
45887 /* Check whether in the abbreviation of the second month, the second
45888 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
45889 one byte long. This excludes the UTF-8 encoding. */
45890 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
45891 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
45892 # if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
45893 /* Check whether the decimal separator is a comma.
45894 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
45895 are nl_langinfo(RADIXCHAR) are both ".". */
45896 if (localeconv () ->decimal_point[0] != ',') return 1;
45897 # endif
45898 return 0;
45899 #endif
45900 }
45901
45902 _ACEOF
45903 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
45904 (eval $ac_link) 2>&5
45905 ac_status=$?
45906 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
45907 test $ac_status = 0; } && test -s conftest$ac_exeext; then
45908 case "$host_os" in
45909 # Handle native Windows specially, because there setlocale() interprets
45910 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
45911 # "fr" or "fra" as "French" or "French_France.1252",
45912 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
45913 # "ja" as "Japanese" or "Japanese_Japan.932",
45914 # and similar.
45915 mingw*)
45916 # Test for the native Windows locale name.
45917 if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
45918 gt_cv_locale_fr=French_France.1252
45919 else
45920 # None found.
45921 gt_cv_locale_fr=none
45922 fi
45923 ;;
45924 *)
45925 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
45926 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
45927 # configure script would override the LC_ALL setting. Likewise for
45928 # LC_CTYPE, which is also set at the beginning of the configure script.
45929 # Test for the usual locale name.
45930 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
45931 gt_cv_locale_fr=fr_FR
45932 else
45933 # Test for the locale name with explicit encoding suffix.
45934 if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
45935 gt_cv_locale_fr=fr_FR.ISO-8859-1
45936 else
45937 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
45938 if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
45939 gt_cv_locale_fr=fr_FR.ISO8859-1
45940 else
45941 # Test for the HP-UX locale name.
45942 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
45943 gt_cv_locale_fr=fr_FR.iso88591
45944 else
45945 # Test for the Solaris 7 locale name.
45946 if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
45947 gt_cv_locale_fr=fr
45948 else
45949 # None found.
45950 gt_cv_locale_fr=none
45951 fi
45952 fi
45953 fi
45954 fi
45955 fi
45956 ;;
45957 esac
45958 fi
45959 rm -fr conftest*
45960
45961 fi
45962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
45963 printf "%s\n" "$gt_cv_locale_fr" >&6; }
45964 LOCALE_FR=$gt_cv_locale_fr
45965
45966
45967
45968
45969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
45970 printf %s "checking for a french Unicode locale... " >&6; }
45971 if test ${gt_cv_locale_fr_utf8+y}
45972 then :
45973 printf %s "(cached) " >&6
45974 else $as_nop
45975
45976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45977 /* end confdefs.h. */
45978
45979 #include <locale.h>
45980 #include <time.h>
45981 #if HAVE_LANGINFO_CODESET
45982 # include <langinfo.h>
45983 #endif
45984 #include <stdlib.h>
45985 #include <string.h>
45986 struct tm t;
45987 char buf[16];
45988 int main () {
45989 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
45990 imitates locale dependent behaviour by looking at the environment
45991 variables, and all locales use the UTF-8 encoding. */
45992 #if !(defined __BEOS__ || defined __HAIKU__)
45993 /* Check whether the given locale name is recognized by the system. */
45994 # if defined _WIN32 && !defined __CYGWIN__
45995 /* On native Windows, setlocale(category, "") looks at the system settings,
45996 not at the environment variables. Also, when an encoding suffix such
45997 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
45998 category of the locale to "C". */
45999 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
46000 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
46001 return 1;
46002 # else
46003 if (setlocale (LC_ALL, "") == NULL) return 1;
46004 # endif
46005 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
46006 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
46007 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
46008 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
46009 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
46010 some unit tests fail. */
46011 # if HAVE_LANGINFO_CODESET
46012 {
46013 const char *cs = nl_langinfo (CODESET);
46014 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
46015 return 1;
46016 }
46017 # endif
46018 # ifdef __CYGWIN__
46019 /* On Cygwin, avoid locale names without encoding suffix, because the
46020 locale_charset() function relies on the encoding suffix. Note that
46021 LC_ALL is set on the command line. */
46022 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
46023 # endif
46024 /* Check whether in the abbreviation of the second month, the second
46025 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
46026 two bytes long, with UTF-8 encoding. */
46027 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
46028 if (strftime (buf, sizeof (buf), "%b", &t) < 4
46029 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
46030 return 1;
46031 #endif
46032 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
46033 /* Check whether the decimal separator is a comma.
46034 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
46035 are nl_langinfo(RADIXCHAR) are both ".". */
46036 if (localeconv () ->decimal_point[0] != ',') return 1;
46037 #endif
46038 return 0;
46039 }
46040
46041 _ACEOF
46042 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
46043 (eval $ac_link) 2>&5
46044 ac_status=$?
46045 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
46046 test $ac_status = 0; } && test -s conftest$ac_exeext; then
46047 case "$host_os" in
46048 # Handle native Windows specially, because there setlocale() interprets
46049 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
46050 # "fr" or "fra" as "French" or "French_France.1252",
46051 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
46052 # "ja" as "Japanese" or "Japanese_Japan.932",
46053 # and similar.
46054 mingw*)
46055 # Test for the hypothetical native Windows locale name.
46056 if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
46057 gt_cv_locale_fr_utf8=French_France.65001
46058 else
46059 # None found.
46060 gt_cv_locale_fr_utf8=none
46061 fi
46062 ;;
46063 *)
46064 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
46065 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
46066 # configure script would override the LC_ALL setting. Likewise for
46067 # LC_CTYPE, which is also set at the beginning of the configure script.
46068 # Test for the usual locale name.
46069 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
46070 gt_cv_locale_fr_utf8=fr_FR
46071 else
46072 # Test for the locale name with explicit encoding suffix.
46073 if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
46074 gt_cv_locale_fr_utf8=fr_FR.UTF-8
46075 else
46076 # Test for the Solaris 7 locale name.
46077 if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
46078 gt_cv_locale_fr_utf8=fr.UTF-8
46079 else
46080 # None found.
46081 gt_cv_locale_fr_utf8=none
46082 fi
46083 fi
46084 fi
46085 ;;
46086 esac
46087 fi
46088 rm -fr conftest*
46089
46090 fi
46091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
46092 printf "%s\n" "$gt_cv_locale_fr_utf8" >&6; }
46093 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
46094
46095
46096
46097
46098
46099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
46100 printf %s "checking for a traditional japanese locale... " >&6; }
46101 if test ${gt_cv_locale_ja+y}
46102 then :
46103 printf %s "(cached) " >&6
46104 else $as_nop
46105
46106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46107 /* end confdefs.h. */
46108
46109 #include <locale.h>
46110 #include <time.h>
46111 #if HAVE_LANGINFO_CODESET
46112 # include <langinfo.h>
46113 #endif
46114 #include <stdlib.h>
46115 #include <string.h>
46116 struct tm t;
46117 char buf[16];
46118 int main ()
46119 {
46120 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
46121 imitates locale dependent behaviour by looking at the environment
46122 variables, and all locales use the UTF-8 encoding. */
46123 #if defined __BEOS__ || defined __HAIKU__
46124 return 1;
46125 #else
46126 /* Check whether the given locale name is recognized by the system. */
46127 # if defined _WIN32 && !defined __CYGWIN__
46128 /* On native Windows, setlocale(category, "") looks at the system settings,
46129 not at the environment variables. Also, when an encoding suffix such
46130 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
46131 category of the locale to "C". */
46132 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
46133 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
46134 return 1;
46135 # else
46136 if (setlocale (LC_ALL, "") == NULL) return 1;
46137 # endif
46138 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
46139 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
46140 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
46141 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
46142 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
46143 some unit tests fail.
46144 On MirBSD 10, when an unsupported locale is specified, setlocale()
46145 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
46146 # if HAVE_LANGINFO_CODESET
46147 {
46148 const char *cs = nl_langinfo (CODESET);
46149 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
46150 || strcmp (cs, "UTF-8") == 0)
46151 return 1;
46152 }
46153 # endif
46154 # ifdef __CYGWIN__
46155 /* On Cygwin, avoid locale names without encoding suffix, because the
46156 locale_charset() function relies on the encoding suffix. Note that
46157 LC_ALL is set on the command line. */
46158 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
46159 # endif
46160 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales
46161 on Cygwin 1.5.x. */
46162 if (MB_CUR_MAX == 1)
46163 return 1;
46164 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
46165 This excludes the UTF-8 encoding (except on MirBSD). */
46166 {
46167 const char *p;
46168 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
46169 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
46170 for (p = buf; *p != '\0'; p++)
46171 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
46172 return 1;
46173 }
46174 return 0;
46175 #endif
46176 }
46177
46178 _ACEOF
46179 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
46180 (eval $ac_link) 2>&5
46181 ac_status=$?
46182 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
46183 test $ac_status = 0; } && test -s conftest$ac_exeext; then
46184 case "$host_os" in
46185 # Handle native Windows specially, because there setlocale() interprets
46186 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
46187 # "fr" or "fra" as "French" or "French_France.1252",
46188 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
46189 # "ja" as "Japanese" or "Japanese_Japan.932",
46190 # and similar.
46191 mingw*)
46192 # Note that on native Windows, the Japanese locale is
46193 # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
46194 # cannot use it here.
46195 gt_cv_locale_ja=none
46196 ;;
46197 *)
46198 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
46199 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
46200 # configure script would override the LC_ALL setting. Likewise for
46201 # LC_CTYPE, which is also set at the beginning of the configure script.
46202 # Test for the AIX locale name.
46203 if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
46204 gt_cv_locale_ja=ja_JP
46205 else
46206 # Test for the locale name with explicit encoding suffix.
46207 if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
46208 gt_cv_locale_ja=ja_JP.EUC-JP
46209 else
46210 # Test for the HP-UX, OSF/1, NetBSD locale name.
46211 if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
46212 gt_cv_locale_ja=ja_JP.eucJP
46213 else
46214 # Test for the IRIX, FreeBSD locale name.
46215 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
46216 gt_cv_locale_ja=ja_JP.EUC
46217 else
46218 # Test for the Solaris 7 locale name.
46219 if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
46220 gt_cv_locale_ja=ja
46221 else
46222 # Special test for NetBSD 1.6.
46223 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
46224 gt_cv_locale_ja=ja_JP.eucJP
46225 else
46226 # None found.
46227 gt_cv_locale_ja=none
46228 fi
46229 fi
46230 fi
46231 fi
46232 fi
46233 fi
46234 ;;
46235 esac
46236 fi
46237 rm -fr conftest*
46238
46239 fi
46240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
46241 printf "%s\n" "$gt_cv_locale_ja" >&6; }
46242 LOCALE_JA=$gt_cv_locale_ja
46243
46244
46245
46246
46247
46248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
46249 printf %s "checking for a transitional chinese locale... " >&6; }
46250 if test ${gt_cv_locale_zh_CN+y}
46251 then :
46252 printf %s "(cached) " >&6
46253 else $as_nop
46254
46255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46256 /* end confdefs.h. */
46257
46258 #include <locale.h>
46259 #include <stdlib.h>
46260 #include <time.h>
46261 #if HAVE_LANGINFO_CODESET
46262 # include <langinfo.h>
46263 #endif
46264 #include <stdlib.h>
46265 #include <string.h>
46266 struct tm t;
46267 char buf[16];
46268 int main ()
46269 {
46270 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
46271 imitates locale dependent behaviour by looking at the environment
46272 variables, and all locales use the UTF-8 encoding. */
46273 #if defined __BEOS__ || defined __HAIKU__
46274 return 1;
46275 #else
46276 /* Check whether the given locale name is recognized by the system. */
46277 # if defined _WIN32 && !defined __CYGWIN__
46278 /* On native Windows, setlocale(category, "") looks at the system settings,
46279 not at the environment variables. Also, when an encoding suffix such
46280 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
46281 category of the locale to "C". */
46282 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
46283 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
46284 return 1;
46285 # else
46286 if (setlocale (LC_ALL, "") == NULL) return 1;
46287 # endif
46288 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
46289 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
46290 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
46291 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
46292 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
46293 some unit tests fail.
46294 On MirBSD 10, when an unsupported locale is specified, setlocale()
46295 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
46296 # if HAVE_LANGINFO_CODESET
46297 {
46298 const char *cs = nl_langinfo (CODESET);
46299 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
46300 || strcmp (cs, "UTF-8") == 0)
46301 return 1;
46302 }
46303 # endif
46304 # ifdef __CYGWIN__
46305 /* On Cygwin, avoid locale names without encoding suffix, because the
46306 locale_charset() function relies on the encoding suffix. Note that
46307 LC_ALL is set on the command line. */
46308 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
46309 # endif
46310 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
46311 This excludes the UTF-8 encoding (except on MirBSD). */
46312 {
46313 const char *p;
46314 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
46315 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
46316 for (p = buf; *p != '\0'; p++)
46317 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
46318 return 1;
46319 }
46320 /* Check whether a typical GB18030 multibyte sequence is recognized as a
46321 single wide character. This excludes the GB2312 and GBK encodings. */
46322 if (mblen ("\203\062\332\066", 5) != 4)
46323 return 1;
46324 return 0;
46325 #endif
46326 }
46327
46328 _ACEOF
46329 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
46330 (eval $ac_link) 2>&5
46331 ac_status=$?
46332 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
46333 test $ac_status = 0; } && test -s conftest$ac_exeext; then
46334 case "$host_os" in
46335 # Handle native Windows specially, because there setlocale() interprets
46336 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
46337 # "fr" or "fra" as "French" or "French_France.1252",
46338 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
46339 # "ja" as "Japanese" or "Japanese_Japan.932",
46340 # and similar.
46341 mingw*)
46342 # Test for the hypothetical native Windows locale name.
46343 if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
46344 gt_cv_locale_zh_CN=Chinese_China.54936
46345 else
46346 # None found.
46347 gt_cv_locale_zh_CN=none
46348 fi
46349 ;;
46350 solaris2.8)
46351 # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
46352 # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
46353 # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
46354 gt_cv_locale_zh_CN=none
46355 ;;
46356 *)
46357 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
46358 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
46359 # configure script would override the LC_ALL setting. Likewise for
46360 # LC_CTYPE, which is also set at the beginning of the configure script.
46361 # Test for the locale name without encoding suffix.
46362 if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
46363 gt_cv_locale_zh_CN=zh_CN
46364 else
46365 # Test for the locale name with explicit encoding suffix.
46366 if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
46367 gt_cv_locale_zh_CN=zh_CN.GB18030
46368 else
46369 # None found.
46370 gt_cv_locale_zh_CN=none
46371 fi
46372 fi
46373 ;;
46374 esac
46375 else
46376 # If there was a link error, due to mblen(), the system is so old that
46377 # it certainly doesn't have a chinese locale.
46378 gt_cv_locale_zh_CN=none
46379 fi
46380 rm -fr conftest*
46381
46382 fi
46383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
46384 printf "%s\n" "$gt_cv_locale_zh_CN" >&6; }
46385 LOCALE_ZH_CN=$gt_cv_locale_zh_CN
46386
46387
46388
46389
46390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
46391 printf %s "checking for a french Unicode locale... " >&6; }
46392 if test ${gt_cv_locale_fr_utf8+y}
46393 then :
46394 printf %s "(cached) " >&6
46395 else $as_nop
46396
46397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46398 /* end confdefs.h. */
46399
46400 #include <locale.h>
46401 #include <time.h>
46402 #if HAVE_LANGINFO_CODESET
46403 # include <langinfo.h>
46404 #endif
46405 #include <stdlib.h>
46406 #include <string.h>
46407 struct tm t;
46408 char buf[16];
46409 int main () {
46410 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
46411 imitates locale dependent behaviour by looking at the environment
46412 variables, and all locales use the UTF-8 encoding. */
46413 #if !(defined __BEOS__ || defined __HAIKU__)
46414 /* Check whether the given locale name is recognized by the system. */
46415 # if defined _WIN32 && !defined __CYGWIN__
46416 /* On native Windows, setlocale(category, "") looks at the system settings,
46417 not at the environment variables. Also, when an encoding suffix such
46418 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
46419 category of the locale to "C". */
46420 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
46421 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
46422 return 1;
46423 # else
46424 if (setlocale (LC_ALL, "") == NULL) return 1;
46425 # endif
46426 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
46427 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
46428 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
46429 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
46430 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
46431 some unit tests fail. */
46432 # if HAVE_LANGINFO_CODESET
46433 {
46434 const char *cs = nl_langinfo (CODESET);
46435 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
46436 return 1;
46437 }
46438 # endif
46439 # ifdef __CYGWIN__
46440 /* On Cygwin, avoid locale names without encoding suffix, because the
46441 locale_charset() function relies on the encoding suffix. Note that
46442 LC_ALL is set on the command line. */
46443 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
46444 # endif
46445 /* Check whether in the abbreviation of the second month, the second
46446 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
46447 two bytes long, with UTF-8 encoding. */
46448 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
46449 if (strftime (buf, sizeof (buf), "%b", &t) < 4
46450 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
46451 return 1;
46452 #endif
46453 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
46454 /* Check whether the decimal separator is a comma.
46455 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
46456 are nl_langinfo(RADIXCHAR) are both ".". */
46457 if (localeconv () ->decimal_point[0] != ',') return 1;
46458 #endif
46459 return 0;
46460 }
46461
46462 _ACEOF
46463 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
46464 (eval $ac_link) 2>&5
46465 ac_status=$?
46466 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
46467 test $ac_status = 0; } && test -s conftest$ac_exeext; then
46468 case "$host_os" in
46469 # Handle native Windows specially, because there setlocale() interprets
46470 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
46471 # "fr" or "fra" as "French" or "French_France.1252",
46472 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
46473 # "ja" as "Japanese" or "Japanese_Japan.932",
46474 # and similar.
46475 mingw*)
46476 # Test for the hypothetical native Windows locale name.
46477 if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
46478 gt_cv_locale_fr_utf8=French_France.65001
46479 else
46480 # None found.
46481 gt_cv_locale_fr_utf8=none
46482 fi
46483 ;;
46484 *)
46485 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
46486 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
46487 # configure script would override the LC_ALL setting. Likewise for
46488 # LC_CTYPE, which is also set at the beginning of the configure script.
46489 # Test for the usual locale name.
46490 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
46491 gt_cv_locale_fr_utf8=fr_FR
46492 else
46493 # Test for the locale name with explicit encoding suffix.
46494 if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
46495 gt_cv_locale_fr_utf8=fr_FR.UTF-8
46496 else
46497 # Test for the Solaris 7 locale name.
46498 if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
46499 gt_cv_locale_fr_utf8=fr.UTF-8
46500 else
46501 # None found.
46502 gt_cv_locale_fr_utf8=none
46503 fi
46504 fi
46505 fi
46506 ;;
46507 esac
46508 fi
46509 rm -fr conftest*
46510
46511 fi
46512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
46513 printf "%s\n" "$gt_cv_locale_fr_utf8" >&6; }
46514 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
46515
46516
46517
46518
46519
46520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
46521 printf %s "checking for a traditional french locale... " >&6; }
46522 if test ${gt_cv_locale_fr+y}
46523 then :
46524 printf %s "(cached) " >&6
46525 else $as_nop
46526
46527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46528 /* end confdefs.h. */
46529
46530 #include <locale.h>
46531 #include <time.h>
46532 #if HAVE_LANGINFO_CODESET
46533 # include <langinfo.h>
46534 #endif
46535 #include <stdlib.h>
46536 #include <string.h>
46537 struct tm t;
46538 char buf[16];
46539 int main () {
46540 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
46541 imitates locale dependent behaviour by looking at the environment
46542 variables, and all locales use the UTF-8 encoding. */
46543 #if defined __BEOS__ || defined __HAIKU__
46544 return 1;
46545 #else
46546 /* Check whether the given locale name is recognized by the system. */
46547 # if defined _WIN32 && !defined __CYGWIN__
46548 /* On native Windows, setlocale(category, "") looks at the system settings,
46549 not at the environment variables. Also, when an encoding suffix such
46550 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
46551 category of the locale to "C". */
46552 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
46553 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
46554 return 1;
46555 # else
46556 if (setlocale (LC_ALL, "") == NULL) return 1;
46557 # endif
46558 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
46559 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
46560 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
46561 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
46562 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
46563 some unit tests fail.
46564 On MirBSD 10, when an unsupported locale is specified, setlocale()
46565 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
46566 # if HAVE_LANGINFO_CODESET
46567 {
46568 const char *cs = nl_langinfo (CODESET);
46569 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
46570 || strcmp (cs, "UTF-8") == 0)
46571 return 1;
46572 }
46573 # endif
46574 # ifdef __CYGWIN__
46575 /* On Cygwin, avoid locale names without encoding suffix, because the
46576 locale_charset() function relies on the encoding suffix. Note that
46577 LC_ALL is set on the command line. */
46578 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
46579 # endif
46580 /* Check whether in the abbreviation of the second month, the second
46581 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
46582 one byte long. This excludes the UTF-8 encoding. */
46583 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
46584 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
46585 # if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
46586 /* Check whether the decimal separator is a comma.
46587 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
46588 are nl_langinfo(RADIXCHAR) are both ".". */
46589 if (localeconv () ->decimal_point[0] != ',') return 1;
46590 # endif
46591 return 0;
46592 #endif
46593 }
46594
46595 _ACEOF
46596 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
46597 (eval $ac_link) 2>&5
46598 ac_status=$?
46599 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
46600 test $ac_status = 0; } && test -s conftest$ac_exeext; then
46601 case "$host_os" in
46602 # Handle native Windows specially, because there setlocale() interprets
46603 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
46604 # "fr" or "fra" as "French" or "French_France.1252",
46605 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
46606 # "ja" as "Japanese" or "Japanese_Japan.932",
46607 # and similar.
46608 mingw*)
46609 # Test for the native Windows locale name.
46610 if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
46611 gt_cv_locale_fr=French_France.1252
46612 else
46613 # None found.
46614 gt_cv_locale_fr=none
46615 fi
46616 ;;
46617 *)
46618 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
46619 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
46620 # configure script would override the LC_ALL setting. Likewise for
46621 # LC_CTYPE, which is also set at the beginning of the configure script.
46622 # Test for the usual locale name.
46623 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
46624 gt_cv_locale_fr=fr_FR
46625 else
46626 # Test for the locale name with explicit encoding suffix.
46627 if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
46628 gt_cv_locale_fr=fr_FR.ISO-8859-1
46629 else
46630 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
46631 if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
46632 gt_cv_locale_fr=fr_FR.ISO8859-1
46633 else
46634 # Test for the HP-UX locale name.
46635 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
46636 gt_cv_locale_fr=fr_FR.iso88591
46637 else
46638 # Test for the Solaris 7 locale name.
46639 if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
46640 gt_cv_locale_fr=fr
46641 else
46642 # None found.
46643 gt_cv_locale_fr=none
46644 fi
46645 fi
46646 fi
46647 fi
46648 fi
46649 ;;
46650 esac
46651 fi
46652 rm -fr conftest*
46653
46654 fi
46655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
46656 printf "%s\n" "$gt_cv_locale_fr" >&6; }
46657 LOCALE_FR=$gt_cv_locale_fr
46658
46659
46660
46661
46662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
46663 printf %s "checking for a french Unicode locale... " >&6; }
46664 if test ${gt_cv_locale_fr_utf8+y}
46665 then :
46666 printf %s "(cached) " >&6
46667 else $as_nop
46668
46669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46670 /* end confdefs.h. */
46671
46672 #include <locale.h>
46673 #include <time.h>
46674 #if HAVE_LANGINFO_CODESET
46675 # include <langinfo.h>
46676 #endif
46677 #include <stdlib.h>
46678 #include <string.h>
46679 struct tm t;
46680 char buf[16];
46681 int main () {
46682 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
46683 imitates locale dependent behaviour by looking at the environment
46684 variables, and all locales use the UTF-8 encoding. */
46685 #if !(defined __BEOS__ || defined __HAIKU__)
46686 /* Check whether the given locale name is recognized by the system. */
46687 # if defined _WIN32 && !defined __CYGWIN__
46688 /* On native Windows, setlocale(category, "") looks at the system settings,
46689 not at the environment variables. Also, when an encoding suffix such
46690 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
46691 category of the locale to "C". */
46692 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
46693 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
46694 return 1;
46695 # else
46696 if (setlocale (LC_ALL, "") == NULL) return 1;
46697 # endif
46698 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
46699 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
46700 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
46701 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
46702 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
46703 some unit tests fail. */
46704 # if HAVE_LANGINFO_CODESET
46705 {
46706 const char *cs = nl_langinfo (CODESET);
46707 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
46708 return 1;
46709 }
46710 # endif
46711 # ifdef __CYGWIN__
46712 /* On Cygwin, avoid locale names without encoding suffix, because the
46713 locale_charset() function relies on the encoding suffix. Note that
46714 LC_ALL is set on the command line. */
46715 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
46716 # endif
46717 /* Check whether in the abbreviation of the second month, the second
46718 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
46719 two bytes long, with UTF-8 encoding. */
46720 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
46721 if (strftime (buf, sizeof (buf), "%b", &t) < 4
46722 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
46723 return 1;
46724 #endif
46725 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
46726 /* Check whether the decimal separator is a comma.
46727 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
46728 are nl_langinfo(RADIXCHAR) are both ".". */
46729 if (localeconv () ->decimal_point[0] != ',') return 1;
46730 #endif
46731 return 0;
46732 }
46733
46734 _ACEOF
46735 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
46736 (eval $ac_link) 2>&5
46737 ac_status=$?
46738 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
46739 test $ac_status = 0; } && test -s conftest$ac_exeext; then
46740 case "$host_os" in
46741 # Handle native Windows specially, because there setlocale() interprets
46742 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
46743 # "fr" or "fra" as "French" or "French_France.1252",
46744 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
46745 # "ja" as "Japanese" or "Japanese_Japan.932",
46746 # and similar.
46747 mingw*)
46748 # Test for the hypothetical native Windows locale name.
46749 if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
46750 gt_cv_locale_fr_utf8=French_France.65001
46751 else
46752 # None found.
46753 gt_cv_locale_fr_utf8=none
46754 fi
46755 ;;
46756 *)
46757 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
46758 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
46759 # configure script would override the LC_ALL setting. Likewise for
46760 # LC_CTYPE, which is also set at the beginning of the configure script.
46761 # Test for the usual locale name.
46762 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
46763 gt_cv_locale_fr_utf8=fr_FR
46764 else
46765 # Test for the locale name with explicit encoding suffix.
46766 if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
46767 gt_cv_locale_fr_utf8=fr_FR.UTF-8
46768 else
46769 # Test for the Solaris 7 locale name.
46770 if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
46771 gt_cv_locale_fr_utf8=fr.UTF-8
46772 else
46773 # None found.
46774 gt_cv_locale_fr_utf8=none
46775 fi
46776 fi
46777 fi
46778 ;;
46779 esac
46780 fi
46781 rm -fr conftest*
46782
46783 fi
46784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
46785 printf "%s\n" "$gt_cv_locale_fr_utf8" >&6; }
46786 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
46787
46788
46789
46790
46791
46792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
46793 printf %s "checking for a traditional japanese locale... " >&6; }
46794 if test ${gt_cv_locale_ja+y}
46795 then :
46796 printf %s "(cached) " >&6
46797 else $as_nop
46798
46799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46800 /* end confdefs.h. */
46801
46802 #include <locale.h>
46803 #include <time.h>
46804 #if HAVE_LANGINFO_CODESET
46805 # include <langinfo.h>
46806 #endif
46807 #include <stdlib.h>
46808 #include <string.h>
46809 struct tm t;
46810 char buf[16];
46811 int main ()
46812 {
46813 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
46814 imitates locale dependent behaviour by looking at the environment
46815 variables, and all locales use the UTF-8 encoding. */
46816 #if defined __BEOS__ || defined __HAIKU__
46817 return 1;
46818 #else
46819 /* Check whether the given locale name is recognized by the system. */
46820 # if defined _WIN32 && !defined __CYGWIN__
46821 /* On native Windows, setlocale(category, "") looks at the system settings,
46822 not at the environment variables. Also, when an encoding suffix such
46823 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
46824 category of the locale to "C". */
46825 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
46826 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
46827 return 1;
46828 # else
46829 if (setlocale (LC_ALL, "") == NULL) return 1;
46830 # endif
46831 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
46832 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
46833 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
46834 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
46835 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
46836 some unit tests fail.
46837 On MirBSD 10, when an unsupported locale is specified, setlocale()
46838 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
46839 # if HAVE_LANGINFO_CODESET
46840 {
46841 const char *cs = nl_langinfo (CODESET);
46842 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
46843 || strcmp (cs, "UTF-8") == 0)
46844 return 1;
46845 }
46846 # endif
46847 # ifdef __CYGWIN__
46848 /* On Cygwin, avoid locale names without encoding suffix, because the
46849 locale_charset() function relies on the encoding suffix. Note that
46850 LC_ALL is set on the command line. */
46851 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
46852 # endif
46853 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales
46854 on Cygwin 1.5.x. */
46855 if (MB_CUR_MAX == 1)
46856 return 1;
46857 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
46858 This excludes the UTF-8 encoding (except on MirBSD). */
46859 {
46860 const char *p;
46861 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
46862 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
46863 for (p = buf; *p != '\0'; p++)
46864 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
46865 return 1;
46866 }
46867 return 0;
46868 #endif
46869 }
46870
46871 _ACEOF
46872 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
46873 (eval $ac_link) 2>&5
46874 ac_status=$?
46875 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
46876 test $ac_status = 0; } && test -s conftest$ac_exeext; then
46877 case "$host_os" in
46878 # Handle native Windows specially, because there setlocale() interprets
46879 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
46880 # "fr" or "fra" as "French" or "French_France.1252",
46881 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
46882 # "ja" as "Japanese" or "Japanese_Japan.932",
46883 # and similar.
46884 mingw*)
46885 # Note that on native Windows, the Japanese locale is
46886 # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
46887 # cannot use it here.
46888 gt_cv_locale_ja=none
46889 ;;
46890 *)
46891 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
46892 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
46893 # configure script would override the LC_ALL setting. Likewise for
46894 # LC_CTYPE, which is also set at the beginning of the configure script.
46895 # Test for the AIX locale name.
46896 if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
46897 gt_cv_locale_ja=ja_JP
46898 else
46899 # Test for the locale name with explicit encoding suffix.
46900 if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
46901 gt_cv_locale_ja=ja_JP.EUC-JP
46902 else
46903 # Test for the HP-UX, OSF/1, NetBSD locale name.
46904 if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
46905 gt_cv_locale_ja=ja_JP.eucJP
46906 else
46907 # Test for the IRIX, FreeBSD locale name.
46908 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
46909 gt_cv_locale_ja=ja_JP.EUC
46910 else
46911 # Test for the Solaris 7 locale name.
46912 if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
46913 gt_cv_locale_ja=ja
46914 else
46915 # Special test for NetBSD 1.6.
46916 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
46917 gt_cv_locale_ja=ja_JP.eucJP
46918 else
46919 # None found.
46920 gt_cv_locale_ja=none
46921 fi
46922 fi
46923 fi
46924 fi
46925 fi
46926 fi
46927 ;;
46928 esac
46929 fi
46930 rm -fr conftest*
46931
46932 fi
46933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
46934 printf "%s\n" "$gt_cv_locale_ja" >&6; }
46935 LOCALE_JA=$gt_cv_locale_ja
46936
46937
46938
46939
46940
46941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
46942 printf %s "checking for a transitional chinese locale... " >&6; }
46943 if test ${gt_cv_locale_zh_CN+y}
46944 then :
46945 printf %s "(cached) " >&6
46946 else $as_nop
46947
46948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46949 /* end confdefs.h. */
46950
46951 #include <locale.h>
46952 #include <stdlib.h>
46953 #include <time.h>
46954 #if HAVE_LANGINFO_CODESET
46955 # include <langinfo.h>
46956 #endif
46957 #include <stdlib.h>
46958 #include <string.h>
46959 struct tm t;
46960 char buf[16];
46961 int main ()
46962 {
46963 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
46964 imitates locale dependent behaviour by looking at the environment
46965 variables, and all locales use the UTF-8 encoding. */
46966 #if defined __BEOS__ || defined __HAIKU__
46967 return 1;
46968 #else
46969 /* Check whether the given locale name is recognized by the system. */
46970 # if defined _WIN32 && !defined __CYGWIN__
46971 /* On native Windows, setlocale(category, "") looks at the system settings,
46972 not at the environment variables. Also, when an encoding suffix such
46973 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
46974 category of the locale to "C". */
46975 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
46976 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
46977 return 1;
46978 # else
46979 if (setlocale (LC_ALL, "") == NULL) return 1;
46980 # endif
46981 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
46982 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
46983 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
46984 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
46985 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
46986 some unit tests fail.
46987 On MirBSD 10, when an unsupported locale is specified, setlocale()
46988 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
46989 # if HAVE_LANGINFO_CODESET
46990 {
46991 const char *cs = nl_langinfo (CODESET);
46992 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
46993 || strcmp (cs, "UTF-8") == 0)
46994 return 1;
46995 }
46996 # endif
46997 # ifdef __CYGWIN__
46998 /* On Cygwin, avoid locale names without encoding suffix, because the
46999 locale_charset() function relies on the encoding suffix. Note that
47000 LC_ALL is set on the command line. */
47001 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
47002 # endif
47003 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
47004 This excludes the UTF-8 encoding (except on MirBSD). */
47005 {
47006 const char *p;
47007 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
47008 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
47009 for (p = buf; *p != '\0'; p++)
47010 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
47011 return 1;
47012 }
47013 /* Check whether a typical GB18030 multibyte sequence is recognized as a
47014 single wide character. This excludes the GB2312 and GBK encodings. */
47015 if (mblen ("\203\062\332\066", 5) != 4)
47016 return 1;
47017 return 0;
47018 #endif
47019 }
47020
47021 _ACEOF
47022 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
47023 (eval $ac_link) 2>&5
47024 ac_status=$?
47025 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
47026 test $ac_status = 0; } && test -s conftest$ac_exeext; then
47027 case "$host_os" in
47028 # Handle native Windows specially, because there setlocale() interprets
47029 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
47030 # "fr" or "fra" as "French" or "French_France.1252",
47031 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
47032 # "ja" as "Japanese" or "Japanese_Japan.932",
47033 # and similar.
47034 mingw*)
47035 # Test for the hypothetical native Windows locale name.
47036 if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
47037 gt_cv_locale_zh_CN=Chinese_China.54936
47038 else
47039 # None found.
47040 gt_cv_locale_zh_CN=none
47041 fi
47042 ;;
47043 solaris2.8)
47044 # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
47045 # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
47046 # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
47047 gt_cv_locale_zh_CN=none
47048 ;;
47049 *)
47050 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
47051 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
47052 # configure script would override the LC_ALL setting. Likewise for
47053 # LC_CTYPE, which is also set at the beginning of the configure script.
47054 # Test for the locale name without encoding suffix.
47055 if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
47056 gt_cv_locale_zh_CN=zh_CN
47057 else
47058 # Test for the locale name with explicit encoding suffix.
47059 if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
47060 gt_cv_locale_zh_CN=zh_CN.GB18030
47061 else
47062 # None found.
47063 gt_cv_locale_zh_CN=none
47064 fi
47065 fi
47066 ;;
47067 esac
47068 else
47069 # If there was a link error, due to mblen(), the system is so old that
47070 # it certainly doesn't have a chinese locale.
47071 gt_cv_locale_zh_CN=none
47072 fi
47073 rm -fr conftest*
47074
47075 fi
47076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
47077 printf "%s\n" "$gt_cv_locale_zh_CN" >&6; }
47078 LOCALE_ZH_CN=$gt_cv_locale_zh_CN
47079
47080
47081
47082
47083
47084
47085
47086
47087
47088
47089
47090
47091 nanosleep_save_libs=$LIBS
47092
47093 # Solaris 2.5.1 needs -lposix4 to get the nanosleep function.
47094 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
47095 LIB_NANOSLEEP=
47096
47097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
47098 printf %s "checking for library containing nanosleep... " >&6; }
47099 if test ${ac_cv_search_nanosleep+y}
47100 then :
47101 printf %s "(cached) " >&6
47102 else $as_nop
47103 ac_func_search_save_LIBS=$LIBS
47104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47105 /* end confdefs.h. */
47106
47107 /* Override any GCC internal prototype to avoid an error.
47108 Use char because int might match the return type of a GCC
47109 builtin and then its argument prototype would still apply. */
47110 char nanosleep ();
47111 int
47112 main (void)
47113 {
47114 return nanosleep ();
47115 ;
47116 return 0;
47117 }
47118 _ACEOF
47119 for ac_lib in '' rt posix4
47120 do
47121 if test -z "$ac_lib"; then
47122 ac_res="none required"
47123 else
47124 ac_res=-l$ac_lib
47125 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
47126 fi
47127 if ac_fn_c_try_link "$LINENO"
47128 then :
47129 ac_cv_search_nanosleep=$ac_res
47130 fi
47131 rm -f core conftest.err conftest.$ac_objext conftest.beam \
47132 conftest$ac_exeext
47133 if test ${ac_cv_search_nanosleep+y}
47134 then :
47135 break
47136 fi
47137 done
47138 if test ${ac_cv_search_nanosleep+y}
47139 then :
47140
47141 else $as_nop
47142 ac_cv_search_nanosleep=no
47143 fi
47144 rm conftest.$ac_ext
47145 LIBS=$ac_func_search_save_LIBS
47146 fi
47147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
47148 printf "%s\n" "$ac_cv_search_nanosleep" >&6; }
47149 ac_res=$ac_cv_search_nanosleep
47150 if test "$ac_res" != no
47151 then :
47152 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
47153 test "$ac_cv_search_nanosleep" = "none required" ||
47154 LIB_NANOSLEEP=$ac_cv_search_nanosleep
47155 fi
47156
47157 if test "x$ac_cv_search_nanosleep" != xno; then
47158
47159
47160 if test $APPLE_UNIVERSAL_BUILD = 1; then
47161 # A universal build on Apple Mac OS X platforms.
47162 # The test result would be 'no (mishandles large arguments)' in 64-bit
47163 # mode but 'yes' in 32-bit mode. But we need a configuration result that
47164 # is valid in both modes.
47165 gl_cv_func_nanosleep='no (mishandles large arguments)'
47166 fi
47167
47168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working nanosleep" >&5
47169 printf %s "checking for working nanosleep... " >&6; }
47170 if test ${gl_cv_func_nanosleep+y}
47171 then :
47172 printf %s "(cached) " >&6
47173 else $as_nop
47174
47175 if test "$cross_compiling" = yes
47176 then :
47177 case "$host_os" in
47178 linux*) # Guess it halfway works when the kernel is Linux.
47179 gl_cv_func_nanosleep='guessing no (mishandles large arguments)' ;;
47180 mingw*) # Guess no on native Windows.
47181 gl_cv_func_nanosleep='guessing no' ;;
47182 *) # If we don't know, obey --enable-cross-guesses.
47183 gl_cv_func_nanosleep="$gl_cross_guess_normal" ;;
47184 esac
47185
47186 else $as_nop
47187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47188 /* end confdefs.h. */
47189
47190 #include <errno.h>
47191 #include <limits.h>
47192 #include <signal.h>
47193 #include <time.h>
47194 #include <unistd.h>
47195 #define TYPE_SIGNED(t) (! ((t) 0 < (t) -1))
47196 #define TYPE_MAXIMUM(t) \
47197 ((t) (! TYPE_SIGNED (t) \
47198 ? (t) -1 \
47199 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
47200
47201 #if HAVE_DECL_ALARM
47202 static void
47203 check_for_SIGALRM (int sig)
47204 {
47205 if (sig != SIGALRM)
47206 _exit (1);
47207 }
47208 #endif
47209
47210 int
47211 main ()
47212 {
47213 static struct timespec ts_sleep;
47214 static struct timespec ts_remaining;
47215 /* Test for major problems first. */
47216 if (! nanosleep)
47217 return 2;
47218 ts_sleep.tv_sec = 0;
47219 ts_sleep.tv_nsec = 1;
47220 #if HAVE_DECL_ALARM
47221 {
47222 static struct sigaction act;
47223 act.sa_handler = check_for_SIGALRM;
47224 sigemptyset (&act.sa_mask);
47225 sigaction (SIGALRM, &act, NULL);
47226 alarm (1);
47227 if (nanosleep (&ts_sleep, NULL) != 0)
47228 return 3;
47229 /* Test for a minor problem: the handling of large arguments. */
47230 ts_sleep.tv_sec = TYPE_MAXIMUM (time_t);
47231 ts_sleep.tv_nsec = 999999999;
47232 alarm (1);
47233 if (nanosleep (&ts_sleep, &ts_remaining) != -1)
47234 return 4;
47235 if (errno != EINTR)
47236 return 5;
47237 if (ts_remaining.tv_sec <= TYPE_MAXIMUM (time_t) - 10)
47238 return 6;
47239 }
47240 #else /* A simpler test for native Windows. */
47241 if (nanosleep (&ts_sleep, &ts_remaining) < 0)
47242 return 3;
47243 /* Test for 32-bit mingw bug: negative nanosecond values do not
47244 cause failure. */
47245 ts_sleep.tv_sec = 1;
47246 ts_sleep.tv_nsec = -1;
47247 if (nanosleep (&ts_sleep, &ts_remaining) != -1)
47248 return 7;
47249 #endif
47250 return 0;
47251 }
47252 _ACEOF
47253 if ac_fn_c_try_run "$LINENO"
47254 then :
47255 gl_cv_func_nanosleep=yes
47256 else $as_nop
47257 case $? in
47258 4|5|6) gl_cv_func_nanosleep='no (mishandles large arguments)' ;;
47259 7) gl_cv_func_nanosleep='no (mishandles negative tv_nsec)' ;;
47260 *) gl_cv_func_nanosleep=no ;;
47261 esac
47262 fi
47263 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
47264 conftest.$ac_objext conftest.beam conftest.$ac_ext
47265 fi
47266
47267
47268 fi
47269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_nanosleep" >&5
47270 printf "%s\n" "$gl_cv_func_nanosleep" >&6; }
47271 case "$gl_cv_func_nanosleep" in
47272 *yes)
47273 REPLACE_NANOSLEEP=0
47274 ;;
47275 *)
47276 REPLACE_NANOSLEEP=1
47277 case "$gl_cv_func_nanosleep" in
47278 *"mishandles large arguments"*)
47279
47280 printf "%s\n" "#define HAVE_BUG_BIG_NANOSLEEP 1" >>confdefs.h
47281
47282 ;;
47283 esac
47284 ;;
47285 esac
47286 else
47287 HAVE_NANOSLEEP=0
47288 fi
47289 LIBS=$nanosleep_save_libs
47290
47291
47292 if test $HAVE_NANOSLEEP = 0 || test $REPLACE_NANOSLEEP = 1; then
47293 GL_COND_OBJ_NANOSLEEP_TRUE=
47294 GL_COND_OBJ_NANOSLEEP_FALSE='#'
47295 else
47296 GL_COND_OBJ_NANOSLEEP_TRUE='#'
47297 GL_COND_OBJ_NANOSLEEP_FALSE=
47298 fi
47299 :
47300 if test -z "${GL_COND_OBJ_NANOSLEEP_TRUE}" && test -z "${GL_COND_OBJ_NANOSLEEP_FALSE}"; then
47301 GL_COND_OBJ_NANOSLEEP_TRUE='#'
47302 GL_COND_OBJ_NANOSLEEP_FALSE='#'
47303 fi
47304
47305
47306
47307
47308
47309
47310
47311
47312
47313
47314 if test "$GL_GNULIB_NANOSLEEP" != 1; then
47315 if test "$GL_GNULIB_NANOSLEEP" = 0; then
47316 GL_GNULIB_NANOSLEEP=$gl_module_indicator_condition
47317 else
47318 GL_GNULIB_NANOSLEEP="($GL_GNULIB_NANOSLEEP || $gl_module_indicator_condition)"
47319 fi
47320 fi
47321
47322
47323
47324
47325
47326 printf "%s\n" "#define GNULIB_TEST_NANOSLEEP 1" >>confdefs.h
47327
47328
47329
47330
47331
47332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether <netinet/in.h> is self-contained" >&5
47333 printf %s "checking whether <netinet/in.h> is self-contained... " >&6; }
47334 if test ${gl_cv_header_netinet_in_h_selfcontained+y}
47335 then :
47336 printf %s "(cached) " >&6
47337 else $as_nop
47338
47339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47340 /* end confdefs.h. */
47341 #include <netinet/in.h>
47342 int
47343 main (void)
47344 {
47345
47346 ;
47347 return 0;
47348 }
47349 _ACEOF
47350 if ac_fn_c_try_compile "$LINENO"
47351 then :
47352 gl_cv_header_netinet_in_h_selfcontained=yes
47353 else $as_nop
47354 gl_cv_header_netinet_in_h_selfcontained=no
47355 fi
47356 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
47357
47358 fi
47359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_netinet_in_h_selfcontained" >&5
47360 printf "%s\n" "$gl_cv_header_netinet_in_h_selfcontained" >&6; }
47361 if test $gl_cv_header_netinet_in_h_selfcontained = yes; then
47362 GL_GENERATE_NETINET_IN_H=false
47363 else
47364 GL_GENERATE_NETINET_IN_H=true
47365 ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
47366 if test "x$ac_cv_header_netinet_in_h" = xyes
47367 then :
47368 printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
47369
47370 fi
47371
47372
47373
47374
47375
47376
47377
47378
47379
47380
47381 if test $gl_cv_have_include_next = yes; then
47382 gl_cv_next_netinet_in_h='<'netinet/in.h'>'
47383 else
47384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <netinet/in.h>" >&5
47385 printf %s "checking absolute name of <netinet/in.h>... " >&6; }
47386 if test ${gl_cv_next_netinet_in_h+y}
47387 then :
47388 printf %s "(cached) " >&6
47389 else $as_nop
47390
47391 if test $ac_cv_header_netinet_in_h = yes; then
47392
47393
47394
47395
47396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47397 /* end confdefs.h. */
47398 #include <netinet/in.h>
47399 _ACEOF
47400 case "$host_os" in
47401 aix*) gl_absname_cpp="$ac_cpp -C" ;;
47402 *) gl_absname_cpp="$ac_cpp" ;;
47403 esac
47404
47405 case "$host_os" in
47406 mingw*)
47407 gl_dirsep_regex='[/\\]'
47408 ;;
47409 *)
47410 gl_dirsep_regex='\/'
47411 ;;
47412 esac
47413 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
47414 gl_header_literal_regex=`echo 'netinet/in.h' \
47415 | sed -e "$gl_make_literal_regex_sed"`
47416 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
47417 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
47418 s|^/[^/]|//&|
47419 p
47420 q
47421 }'
47422
47423 gl_cv_absolute_netinet_in_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
47424 sed -n "$gl_absolute_header_sed"`
47425
47426 gl_header=$gl_cv_absolute_netinet_in_h
47427 gl_cv_next_netinet_in_h='"'$gl_header'"'
47428 else
47429 gl_cv_next_netinet_in_h='<'netinet/in.h'>'
47430 fi
47431
47432
47433 fi
47434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_netinet_in_h" >&5
47435 printf "%s\n" "$gl_cv_next_netinet_in_h" >&6; }
47436 fi
47437 NEXT_NETINET_IN_H=$gl_cv_next_netinet_in_h
47438
47439 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
47440 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
47441 gl_next_as_first_directive='<'netinet/in.h'>'
47442 else
47443 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
47444 gl_next_as_first_directive=$gl_cv_next_netinet_in_h
47445 fi
47446 NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H=$gl_next_as_first_directive
47447
47448
47449
47450
47451 if test $ac_cv_header_netinet_in_h = yes; then
47452 HAVE_NETINET_IN_H=1
47453 else
47454 HAVE_NETINET_IN_H=0
47455 fi
47456
47457 fi
47458
47459
47460
47461
47462
47463 case "$GL_GENERATE_NETINET_IN_H" in
47464 false) NETINET_IN_H='' ;;
47465 true)
47466 if test -z "$NETINET_IN_H"; then
47467 NETINET_IN_H="${gl_source_base_prefix}netinet/in.h"
47468 fi
47469 ;;
47470 *) echo "*** GL_GENERATE_NETINET_IN_H is not set correctly" 1>&2; exit 1 ;;
47471 esac
47472
47473
47474 if $GL_GENERATE_NETINET_IN_H; then
47475 GL_GENERATE_NETINET_IN_H_TRUE=
47476 GL_GENERATE_NETINET_IN_H_FALSE='#'
47477 else
47478 GL_GENERATE_NETINET_IN_H_TRUE='#'
47479 GL_GENERATE_NETINET_IN_H_FALSE=
47480 fi
47481 :
47482 if test -z "${GL_GENERATE_NETINET_IN_H_TRUE}" && test -z "${GL_GENERATE_NETINET_IN_H_FALSE}"; then
47483 GL_GENERATE_NETINET_IN_H_TRUE='#'
47484 GL_GENERATE_NETINET_IN_H_FALSE='#'
47485 fi
47486
47487
47488
47489
47490
47491
47492
47493
47494
47495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
47496 printf %s "checking for a traditional french locale... " >&6; }
47497 if test ${gt_cv_locale_fr+y}
47498 then :
47499 printf %s "(cached) " >&6
47500 else $as_nop
47501
47502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47503 /* end confdefs.h. */
47504
47505 #include <locale.h>
47506 #include <time.h>
47507 #if HAVE_LANGINFO_CODESET
47508 # include <langinfo.h>
47509 #endif
47510 #include <stdlib.h>
47511 #include <string.h>
47512 struct tm t;
47513 char buf[16];
47514 int main () {
47515 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
47516 imitates locale dependent behaviour by looking at the environment
47517 variables, and all locales use the UTF-8 encoding. */
47518 #if defined __BEOS__ || defined __HAIKU__
47519 return 1;
47520 #else
47521 /* Check whether the given locale name is recognized by the system. */
47522 # if defined _WIN32 && !defined __CYGWIN__
47523 /* On native Windows, setlocale(category, "") looks at the system settings,
47524 not at the environment variables. Also, when an encoding suffix such
47525 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
47526 category of the locale to "C". */
47527 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
47528 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
47529 return 1;
47530 # else
47531 if (setlocale (LC_ALL, "") == NULL) return 1;
47532 # endif
47533 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
47534 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
47535 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
47536 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
47537 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
47538 some unit tests fail.
47539 On MirBSD 10, when an unsupported locale is specified, setlocale()
47540 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
47541 # if HAVE_LANGINFO_CODESET
47542 {
47543 const char *cs = nl_langinfo (CODESET);
47544 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
47545 || strcmp (cs, "UTF-8") == 0)
47546 return 1;
47547 }
47548 # endif
47549 # ifdef __CYGWIN__
47550 /* On Cygwin, avoid locale names without encoding suffix, because the
47551 locale_charset() function relies on the encoding suffix. Note that
47552 LC_ALL is set on the command line. */
47553 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
47554 # endif
47555 /* Check whether in the abbreviation of the second month, the second
47556 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
47557 one byte long. This excludes the UTF-8 encoding. */
47558 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
47559 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
47560 # if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
47561 /* Check whether the decimal separator is a comma.
47562 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
47563 are nl_langinfo(RADIXCHAR) are both ".". */
47564 if (localeconv () ->decimal_point[0] != ',') return 1;
47565 # endif
47566 return 0;
47567 #endif
47568 }
47569
47570 _ACEOF
47571 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
47572 (eval $ac_link) 2>&5
47573 ac_status=$?
47574 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
47575 test $ac_status = 0; } && test -s conftest$ac_exeext; then
47576 case "$host_os" in
47577 # Handle native Windows specially, because there setlocale() interprets
47578 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
47579 # "fr" or "fra" as "French" or "French_France.1252",
47580 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
47581 # "ja" as "Japanese" or "Japanese_Japan.932",
47582 # and similar.
47583 mingw*)
47584 # Test for the native Windows locale name.
47585 if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
47586 gt_cv_locale_fr=French_France.1252
47587 else
47588 # None found.
47589 gt_cv_locale_fr=none
47590 fi
47591 ;;
47592 *)
47593 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
47594 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
47595 # configure script would override the LC_ALL setting. Likewise for
47596 # LC_CTYPE, which is also set at the beginning of the configure script.
47597 # Test for the usual locale name.
47598 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
47599 gt_cv_locale_fr=fr_FR
47600 else
47601 # Test for the locale name with explicit encoding suffix.
47602 if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
47603 gt_cv_locale_fr=fr_FR.ISO-8859-1
47604 else
47605 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
47606 if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
47607 gt_cv_locale_fr=fr_FR.ISO8859-1
47608 else
47609 # Test for the HP-UX locale name.
47610 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
47611 gt_cv_locale_fr=fr_FR.iso88591
47612 else
47613 # Test for the Solaris 7 locale name.
47614 if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
47615 gt_cv_locale_fr=fr
47616 else
47617 # None found.
47618 gt_cv_locale_fr=none
47619 fi
47620 fi
47621 fi
47622 fi
47623 fi
47624 ;;
47625 esac
47626 fi
47627 rm -fr conftest*
47628
47629 fi
47630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
47631 printf "%s\n" "$gt_cv_locale_fr" >&6; }
47632 LOCALE_FR=$gt_cv_locale_fr
47633
47634
47635
47636
47637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
47638 printf %s "checking for a french Unicode locale... " >&6; }
47639 if test ${gt_cv_locale_fr_utf8+y}
47640 then :
47641 printf %s "(cached) " >&6
47642 else $as_nop
47643
47644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47645 /* end confdefs.h. */
47646
47647 #include <locale.h>
47648 #include <time.h>
47649 #if HAVE_LANGINFO_CODESET
47650 # include <langinfo.h>
47651 #endif
47652 #include <stdlib.h>
47653 #include <string.h>
47654 struct tm t;
47655 char buf[16];
47656 int main () {
47657 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
47658 imitates locale dependent behaviour by looking at the environment
47659 variables, and all locales use the UTF-8 encoding. */
47660 #if !(defined __BEOS__ || defined __HAIKU__)
47661 /* Check whether the given locale name is recognized by the system. */
47662 # if defined _WIN32 && !defined __CYGWIN__
47663 /* On native Windows, setlocale(category, "") looks at the system settings,
47664 not at the environment variables. Also, when an encoding suffix such
47665 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
47666 category of the locale to "C". */
47667 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
47668 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
47669 return 1;
47670 # else
47671 if (setlocale (LC_ALL, "") == NULL) return 1;
47672 # endif
47673 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
47674 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
47675 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
47676 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
47677 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
47678 some unit tests fail. */
47679 # if HAVE_LANGINFO_CODESET
47680 {
47681 const char *cs = nl_langinfo (CODESET);
47682 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
47683 return 1;
47684 }
47685 # endif
47686 # ifdef __CYGWIN__
47687 /* On Cygwin, avoid locale names without encoding suffix, because the
47688 locale_charset() function relies on the encoding suffix. Note that
47689 LC_ALL is set on the command line. */
47690 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
47691 # endif
47692 /* Check whether in the abbreviation of the second month, the second
47693 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
47694 two bytes long, with UTF-8 encoding. */
47695 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
47696 if (strftime (buf, sizeof (buf), "%b", &t) < 4
47697 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
47698 return 1;
47699 #endif
47700 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
47701 /* Check whether the decimal separator is a comma.
47702 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
47703 are nl_langinfo(RADIXCHAR) are both ".". */
47704 if (localeconv () ->decimal_point[0] != ',') return 1;
47705 #endif
47706 return 0;
47707 }
47708
47709 _ACEOF
47710 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
47711 (eval $ac_link) 2>&5
47712 ac_status=$?
47713 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
47714 test $ac_status = 0; } && test -s conftest$ac_exeext; then
47715 case "$host_os" in
47716 # Handle native Windows specially, because there setlocale() interprets
47717 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
47718 # "fr" or "fra" as "French" or "French_France.1252",
47719 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
47720 # "ja" as "Japanese" or "Japanese_Japan.932",
47721 # and similar.
47722 mingw*)
47723 # Test for the hypothetical native Windows locale name.
47724 if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
47725 gt_cv_locale_fr_utf8=French_France.65001
47726 else
47727 # None found.
47728 gt_cv_locale_fr_utf8=none
47729 fi
47730 ;;
47731 *)
47732 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
47733 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
47734 # configure script would override the LC_ALL setting. Likewise for
47735 # LC_CTYPE, which is also set at the beginning of the configure script.
47736 # Test for the usual locale name.
47737 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
47738 gt_cv_locale_fr_utf8=fr_FR
47739 else
47740 # Test for the locale name with explicit encoding suffix.
47741 if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
47742 gt_cv_locale_fr_utf8=fr_FR.UTF-8
47743 else
47744 # Test for the Solaris 7 locale name.
47745 if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
47746 gt_cv_locale_fr_utf8=fr.UTF-8
47747 else
47748 # None found.
47749 gt_cv_locale_fr_utf8=none
47750 fi
47751 fi
47752 fi
47753 ;;
47754 esac
47755 fi
47756 rm -fr conftest*
47757
47758 fi
47759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
47760 printf "%s\n" "$gt_cv_locale_fr_utf8" >&6; }
47761 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
47762
47763
47764
47765
47766
47767
47768
47769 if test "$GL_GENERATE_ERRNO_H:$REPLACE_STRERROR_0" != false:0; then
47770 REPLACE_PERROR=1
47771 fi
47772 case ${gl_cv_func_strerror_r_works-unset} in
47773 unset|*yes)
47774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether perror matches strerror" >&5
47775 printf %s "checking whether perror matches strerror... " >&6; }
47776 if test ${gl_cv_func_perror_works+y}
47777 then :
47778 printf %s "(cached) " >&6
47779 else $as_nop
47780 if test "$cross_compiling" = yes
47781 then :
47782 case "$host_os" in
47783 # Guess yes on musl systems.
47784 *-musl*) gl_cv_func_perror_works="guessing yes" ;;
47785 # Guess yes on native Windows.
47786 mingw*) gl_cv_func_perror_works="guessing yes" ;;
47787 # Otherwise obey --enable-cross-guesses.
47788 *) gl_cv_func_perror_works="$gl_cross_guess_normal" ;;
47789 esac
47790
47791 else $as_nop
47792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47793 /* end confdefs.h. */
47794 #include <errno.h>
47795 #include <stdio.h>
47796 #include <stdlib.h>
47797 #include <string.h>
47798
47799 int
47800 main (void)
47801 {
47802 char *str = strerror (-1);
47803 if (!getenv("CONFTEST_OUTPUT")) return 0;
47804 if (!str) str = "";
47805 puts (str);
47806 errno = -1;
47807 perror ("");
47808 return 0;
47809
47810 ;
47811 return 0;
47812 }
47813 _ACEOF
47814 if ac_fn_c_try_run "$LINENO"
47815 then :
47816 if CONFTEST_OUTPUT=1 ./conftest$EXEEXT >conftest.txt1 2>conftest.txt2 \
47817 && cmp conftest.txt1 conftest.txt2 >/dev/null; then
47818 gl_cv_func_perror_works=yes
47819 else
47820 gl_cv_func_perror_works=no
47821 fi
47822 rm -rf conftest.txt1 conftest.txt2
47823 else $as_nop
47824 gl_cv_func_perror_works=no
47825 fi
47826 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
47827 conftest.$ac_objext conftest.beam conftest.$ac_ext
47828 fi
47829
47830
47831 fi
47832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_perror_works" >&5
47833 printf "%s\n" "$gl_cv_func_perror_works" >&6; }
47834 case "$gl_cv_func_perror_works" in
47835 *yes) ;;
47836 *) REPLACE_PERROR=1 ;;
47837 esac
47838 ;;
47839 *)
47840 REPLACE_PERROR=1
47841 ;;
47842 esac
47843
47844
47845 if test $REPLACE_PERROR = 1; then
47846 GL_COND_OBJ_PERROR_TRUE=
47847 GL_COND_OBJ_PERROR_FALSE='#'
47848 else
47849 GL_COND_OBJ_PERROR_TRUE='#'
47850 GL_COND_OBJ_PERROR_FALSE=
47851 fi
47852 :
47853 if test -z "${GL_COND_OBJ_PERROR_TRUE}" && test -z "${GL_COND_OBJ_PERROR_FALSE}"; then
47854 GL_COND_OBJ_PERROR_TRUE='#'
47855 GL_COND_OBJ_PERROR_FALSE='#'
47856 fi
47857
47858
47859
47860
47861
47862
47863
47864
47865
47866
47867
47868
47869
47870
47871
47872 if test "$GL_GNULIB_PERROR" != 1; then
47873 if test "$GL_GNULIB_PERROR" = 0; then
47874 GL_GNULIB_PERROR=$gl_module_indicator_condition
47875 else
47876 GL_GNULIB_PERROR="($GL_GNULIB_PERROR || $gl_module_indicator_condition)"
47877 fi
47878 fi
47879
47880
47881
47882
47883
47884 printf "%s\n" "#define GNULIB_TEST_PERROR 1" >>confdefs.h
47885
47886
47887
47888
47889
47890
47891
47892 if test $ac_cv_func_pipe != yes; then
47893 HAVE_PIPE=0
47894 fi
47895
47896
47897 if test $HAVE_PIPE = 0; then
47898 GL_COND_OBJ_PIPE_TRUE=
47899 GL_COND_OBJ_PIPE_FALSE='#'
47900 else
47901 GL_COND_OBJ_PIPE_TRUE='#'
47902 GL_COND_OBJ_PIPE_FALSE=
47903 fi
47904 :
47905 if test -z "${GL_COND_OBJ_PIPE_TRUE}" && test -z "${GL_COND_OBJ_PIPE_FALSE}"; then
47906 GL_COND_OBJ_PIPE_TRUE='#'
47907 GL_COND_OBJ_PIPE_FALSE='#'
47908 fi
47909
47910
47911
47912
47913
47914
47915
47916
47917
47918
47919 if test "$GL_GNULIB_PIPE" != 1; then
47920 if test "$GL_GNULIB_PIPE" = 0; then
47921 GL_GNULIB_PIPE=$gl_module_indicator_condition
47922 else
47923 GL_GNULIB_PIPE="($GL_GNULIB_PIPE || $gl_module_indicator_condition)"
47924 fi
47925 fi
47926
47927
47928
47929
47930
47931 printf "%s\n" "#define GNULIB_TEST_PIPE 1" >>confdefs.h
47932
47933
47934
47935
47936
47937
47938
47939
47940 if test $ac_cv_func_pselect = yes; then
47941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether signature of pselect conforms to POSIX" >&5
47942 printf %s "checking whether signature of pselect conforms to POSIX... " >&6; }
47943 if test ${gl_cv_sig_pselect+y}
47944 then :
47945 printf %s "(cached) " >&6
47946 else $as_nop
47947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47948 /* end confdefs.h. */
47949 #include <sys/select.h>
47950
47951 int
47952 main (void)
47953 {
47954 int (*p) (int, fd_set *, fd_set *, fd_set *restrict,
47955 struct timespec const *restrict,
47956 sigset_t const *restrict) = pselect;
47957 return !p;
47958 ;
47959 return 0;
47960 }
47961 _ACEOF
47962 if ac_fn_c_try_link "$LINENO"
47963 then :
47964 gl_cv_sig_pselect=yes
47965 else $as_nop
47966 gl_cv_sig_pselect=no
47967 fi
47968 rm -f core conftest.err conftest.$ac_objext conftest.beam \
47969 conftest$ac_exeext conftest.$ac_ext
47970 fi
47971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sig_pselect" >&5
47972 printf "%s\n" "$gl_cv_sig_pselect" >&6; }
47973
47974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pselect detects invalid fds" >&5
47975 printf %s "checking whether pselect detects invalid fds... " >&6; }
47976 if test ${gl_cv_func_pselect_detects_ebadf+y}
47977 then :
47978 printf %s "(cached) " >&6
47979 else $as_nop
47980
47981 if test "$cross_compiling" = yes
47982 then :
47983
47984 case "$host_os" in
47985 # Guess yes on Linux systems.
47986 linux-* | linux) gl_cv_func_pselect_detects_ebadf="guessing yes" ;;
47987 # Guess yes on glibc systems.
47988 *-gnu* | gnu*) gl_cv_func_pselect_detects_ebadf="guessing yes" ;;
47989 # If we don't know, obey --enable-cross-guesses.
47990 *) gl_cv_func_pselect_detects_ebadf="$gl_cross_guess_normal" ;;
47991 esac
47992
47993 else $as_nop
47994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47995 /* end confdefs.h. */
47996
47997 #include <sys/types.h>
47998 #include <sys/time.h>
47999 #if HAVE_SYS_SELECT_H
48000 # include <sys/select.h>
48001 #endif
48002 #include <unistd.h>
48003 #include <errno.h>
48004
48005
48006 $gl_mda_defines
48007
48008 int
48009 main (void)
48010 {
48011
48012 fd_set set;
48013 dup2(0, 16);
48014 FD_ZERO(&set);
48015 FD_SET(16, &set);
48016 close(16);
48017 struct timespec timeout;
48018 timeout.tv_sec = 0;
48019 timeout.tv_nsec = 5000;
48020 return pselect (17, &set, NULL, NULL, &timeout, NULL) != -1 || errno != EBADF;
48021
48022 ;
48023 return 0;
48024 }
48025 _ACEOF
48026 if ac_fn_c_try_run "$LINENO"
48027 then :
48028 gl_cv_func_pselect_detects_ebadf=yes
48029 else $as_nop
48030 gl_cv_func_pselect_detects_ebadf=no
48031 fi
48032 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
48033 conftest.$ac_objext conftest.beam conftest.$ac_ext
48034 fi
48035
48036
48037 fi
48038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pselect_detects_ebadf" >&5
48039 printf "%s\n" "$gl_cv_func_pselect_detects_ebadf" >&6; }
48040 case $gl_cv_func_pselect_detects_ebadf in
48041 *yes) ;;
48042 *) REPLACE_PSELECT=1 ;;
48043 esac
48044 fi
48045
48046 if test $ac_cv_func_pselect = no || test $gl_cv_sig_pselect = no; then
48047 REPLACE_PSELECT=1
48048 fi
48049
48050
48051 if test $HAVE_PSELECT = 0 || test $REPLACE_PSELECT = 1; then
48052 GL_COND_OBJ_PSELECT_TRUE=
48053 GL_COND_OBJ_PSELECT_FALSE='#'
48054 else
48055 GL_COND_OBJ_PSELECT_TRUE='#'
48056 GL_COND_OBJ_PSELECT_FALSE=
48057 fi
48058 :
48059 if test -z "${GL_COND_OBJ_PSELECT_TRUE}" && test -z "${GL_COND_OBJ_PSELECT_FALSE}"; then
48060 GL_COND_OBJ_PSELECT_TRUE='#'
48061 GL_COND_OBJ_PSELECT_FALSE='#'
48062 fi
48063
48064
48065
48066
48067
48068
48069
48070
48071
48072
48073 if test "$GL_GNULIB_PSELECT" != 1; then
48074 if test "$GL_GNULIB_PSELECT" = 0; then
48075 GL_GNULIB_PSELECT=$gl_module_indicator_condition
48076 else
48077 GL_GNULIB_PSELECT="($GL_GNULIB_PSELECT || $gl_module_indicator_condition)"
48078 fi
48079 fi
48080
48081
48082
48083
48084
48085 printf "%s\n" "#define GNULIB_TEST_PSELECT 1" >>confdefs.h
48086
48087
48088
48089
48090
48091
48092
48093
48094
48095
48096
48097
48098
48099
48100
48101 if { case "$host_os" in mingw*) true;; *) false;; esac; } \
48102 && test $gl_threads_api = windows; then
48103 REPLACE_PTHREAD_CREATE=1
48104 REPLACE_PTHREAD_ATTR_INIT=1
48105 REPLACE_PTHREAD_ATTR_GETDETACHSTATE=1
48106 REPLACE_PTHREAD_ATTR_SETDETACHSTATE=1
48107 REPLACE_PTHREAD_ATTR_DESTROY=1
48108 REPLACE_PTHREAD_SELF=1
48109 REPLACE_PTHREAD_EQUAL=1
48110 REPLACE_PTHREAD_DETACH=1
48111 REPLACE_PTHREAD_JOIN=1
48112 REPLACE_PTHREAD_EXIT=1
48113 else
48114 if test $HAVE_PTHREAD_H = 0; then
48115 HAVE_PTHREAD_CREATE=0
48116 HAVE_PTHREAD_ATTR_INIT=0
48117 HAVE_PTHREAD_ATTR_GETDETACHSTATE=0
48118 HAVE_PTHREAD_ATTR_SETDETACHSTATE=0
48119 HAVE_PTHREAD_ATTR_DESTROY=0
48120 HAVE_PTHREAD_SELF=0
48121 HAVE_PTHREAD_EQUAL=0
48122 HAVE_PTHREAD_DETACH=0
48123 HAVE_PTHREAD_JOIN=0
48124 HAVE_PTHREAD_EXIT=0
48125 else
48126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthread_create exists as a global function" >&5
48127 printf %s "checking whether pthread_create exists as a global function... " >&6; }
48128 if test ${gl_cv_func_pthread_create+y}
48129 then :
48130 printf %s "(cached) " >&6
48131 else $as_nop
48132 saved_LIBS="$LIBS"
48133 LIBS="$LIBS $LIBPMULTITHREAD"
48134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48135 /* end confdefs.h. */
48136 extern
48137 #ifdef __cplusplus
48138 "C"
48139 #endif
48140 int pthread_create (void);
48141 int main ()
48142 {
48143 return pthread_create ();
48144 }
48145
48146 _ACEOF
48147 if ac_fn_c_try_link "$LINENO"
48148 then :
48149 gl_cv_func_pthread_create=yes
48150 else $as_nop
48151 gl_cv_func_pthread_create=no
48152 fi
48153 rm -f core conftest.err conftest.$ac_objext conftest.beam \
48154 conftest$ac_exeext conftest.$ac_ext
48155 LIBS="$saved_LIBS"
48156
48157 fi
48158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_create" >&5
48159 printf "%s\n" "$gl_cv_func_pthread_create" >&6; }
48160 if test $gl_cv_func_pthread_create = no; then
48161 REPLACE_PTHREAD_CREATE=1
48162 REPLACE_PTHREAD_ATTR_INIT=1
48163
48164 printf "%s\n" "#define PTHREAD_CREATE_IS_INLINE 1" >>confdefs.h
48165
48166 fi
48167 fi
48168 fi
48169
48170
48171 if test $HAVE_PTHREAD_CREATE = 0 || test $REPLACE_PTHREAD_CREATE = 1; then
48172 GL_COND_OBJ_PTHREAD_THREAD_TRUE=
48173 GL_COND_OBJ_PTHREAD_THREAD_FALSE='#'
48174 else
48175 GL_COND_OBJ_PTHREAD_THREAD_TRUE='#'
48176 GL_COND_OBJ_PTHREAD_THREAD_FALSE=
48177 fi
48178 :
48179 if test -z "${GL_COND_OBJ_PTHREAD_THREAD_TRUE}" && test -z "${GL_COND_OBJ_PTHREAD_THREAD_FALSE}"; then
48180 GL_COND_OBJ_PTHREAD_THREAD_TRUE='#'
48181 GL_COND_OBJ_PTHREAD_THREAD_FALSE='#'
48182 fi
48183
48184
48185
48186
48187
48188
48189
48190
48191
48192
48193 if test "$GL_GNULIB_PTHREAD_THREAD" != 1; then
48194 if test "$GL_GNULIB_PTHREAD_THREAD" = 0; then
48195 GL_GNULIB_PTHREAD_THREAD=$gl_module_indicator_condition
48196 else
48197 GL_GNULIB_PTHREAD_THREAD="($GL_GNULIB_PTHREAD_THREAD || $gl_module_indicator_condition)"
48198 fi
48199 fi
48200
48201
48202
48203
48204
48205 printf "%s\n" "#define GNULIB_TEST_PTHREAD_THREAD 1" >>confdefs.h
48206
48207
48208
48209
48210
48211
48212
48213
48214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask is a macro" >&5
48215 printf %s "checking whether pthread_sigmask is a macro... " >&6; }
48216 if test ${gl_cv_func_pthread_sigmask_macro+y}
48217 then :
48218 printf %s "(cached) " >&6
48219 else $as_nop
48220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48221 /* end confdefs.h. */
48222
48223 #include <pthread.h>
48224 #include <signal.h>
48225 #ifdef pthread_sigmask
48226 headers_define_pthread_sigmask
48227 #endif
48228 _ACEOF
48229 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48230 $EGREP "headers_define_pthread_sigmask" >/dev/null 2>&1
48231 then :
48232 gl_cv_func_pthread_sigmask_macro=yes
48233 else $as_nop
48234 gl_cv_func_pthread_sigmask_macro=no
48235 fi
48236 rm -rf conftest*
48237
48238
48239 fi
48240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_macro" >&5
48241 printf "%s\n" "$gl_cv_func_pthread_sigmask_macro" >&6; }
48242
48243 LIB_PTHREAD_SIGMASK=
48244
48245 if test $gl_cv_func_pthread_sigmask_macro = yes; then
48246 HAVE_PTHREAD_SIGMASK=0
48247 REPLACE_PTHREAD_SIGMASK=1
48248 else
48249
48250
48251
48252 if test "$gl_threads_api" = posix; then
48253 if test $ac_cv_func_pthread_sigmask = yes; then
48254 :
48255 else
48256 if test -n "$LIBMULTITHREAD"; then
48257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_sigmask in $LIBMULTITHREAD" >&5
48258 printf %s "checking for pthread_sigmask in $LIBMULTITHREAD... " >&6; }
48259 if test ${gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD+y}
48260 then :
48261 printf %s "(cached) " >&6
48262 else $as_nop
48263 gl_save_LIBS="$LIBS"
48264 LIBS="$LIBS $LIBMULTITHREAD"
48265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48266 /* end confdefs.h. */
48267 #include <pthread.h>
48268 #include <signal.h>
48269
48270 int
48271 main (void)
48272 {
48273 return pthread_sigmask (0, (sigset_t *) 0, (sigset_t *) 0);
48274 ;
48275 return 0;
48276 }
48277
48278 _ACEOF
48279 if ac_fn_c_try_link "$LINENO"
48280 then :
48281 gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD=yes
48282 else $as_nop
48283 gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD=no
48284 fi
48285 rm -f core conftest.err conftest.$ac_objext conftest.beam \
48286 conftest$ac_exeext conftest.$ac_ext
48287 LIBS="$gl_save_LIBS"
48288
48289 fi
48290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD" >&5
48291 printf "%s\n" "$gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD" >&6; }
48292 if test $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD = yes; then
48293 LIB_PTHREAD_SIGMASK="$LIBMULTITHREAD"
48294 else
48295 HAVE_PTHREAD_SIGMASK=0
48296 fi
48297 else
48298 HAVE_PTHREAD_SIGMASK=0
48299 fi
48300 fi
48301 else
48302 if test $ac_cv_func_pthread_sigmask = yes; then
48303 REPLACE_PTHREAD_SIGMASK=1
48304 else
48305 HAVE_PTHREAD_SIGMASK=0
48306 fi
48307 fi
48308
48309 fi
48310
48311
48312
48313 if test $HAVE_PTHREAD_SIGMASK = 1; then
48314
48315
48316 if test -z "$LIB_PTHREAD_SIGMASK"; then
48317 case " $LIBS " in
48318 *' -pthread '*) ;;
48319 *' -lpthread '*) ;;
48320 *)
48321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask works without -lpthread" >&5
48322 printf %s "checking whether pthread_sigmask works without -lpthread... " >&6; }
48323 if test ${gl_cv_func_pthread_sigmask_in_libc_works+y}
48324 then :
48325 printf %s "(cached) " >&6
48326 else $as_nop
48327
48328 if test "$cross_compiling" = yes
48329 then :
48330
48331 case "$host_os" in
48332 freebsd* | midnightbsd* | hpux* | solaris | solaris2.[2-9]*)
48333 gl_cv_func_pthread_sigmask_in_libc_works="guessing no";;
48334 *)
48335 gl_cv_func_pthread_sigmask_in_libc_works="guessing yes";;
48336 esac
48337
48338 else $as_nop
48339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48340 /* end confdefs.h. */
48341
48342 #include <pthread.h>
48343 #include <signal.h>
48344 #include <stddef.h>
48345 int main ()
48346 {
48347 sigset_t set;
48348 sigemptyset (&set);
48349 return pthread_sigmask (1729, &set, NULL) != 0;
48350 }
48351 _ACEOF
48352 if ac_fn_c_try_run "$LINENO"
48353 then :
48354 gl_cv_func_pthread_sigmask_in_libc_works=no
48355 else $as_nop
48356 gl_cv_func_pthread_sigmask_in_libc_works=yes
48357 fi
48358 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
48359 conftest.$ac_objext conftest.beam conftest.$ac_ext
48360 fi
48361
48362
48363 fi
48364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_libc_works" >&5
48365 printf "%s\n" "$gl_cv_func_pthread_sigmask_in_libc_works" >&6; }
48366 case "$gl_cv_func_pthread_sigmask_in_libc_works" in
48367 *no)
48368 REPLACE_PTHREAD_SIGMASK=1
48369
48370 printf "%s\n" "#define PTHREAD_SIGMASK_INEFFECTIVE 1" >>confdefs.h
48371
48372 ;;
48373 esac;;
48374 esac
48375 fi
48376
48377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask returns error numbers" >&5
48378 printf %s "checking whether pthread_sigmask returns error numbers... " >&6; }
48379 if test ${gl_cv_func_pthread_sigmask_return_works+y}
48380 then :
48381 printf %s "(cached) " >&6
48382 else $as_nop
48383
48384 gl_save_LIBS="$LIBS"
48385 LIBS="$LIBS $LIB_PTHREAD_SIGMASK"
48386 if test "$cross_compiling" = yes
48387 then :
48388 case "$host_os" in
48389 cygwin*)
48390 gl_cv_func_pthread_sigmask_return_works="guessing no";;
48391 *)
48392 gl_cv_func_pthread_sigmask_return_works="guessing yes";;
48393 esac
48394
48395 else $as_nop
48396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48397 /* end confdefs.h. */
48398
48399 #include <pthread.h>
48400 #include <signal.h>
48401 #include <stddef.h>
48402 int main ()
48403 {
48404 sigset_t set;
48405 sigemptyset (&set);
48406 if (pthread_sigmask (1729, &set, NULL) == -1)
48407 return 1;
48408 return 0;
48409 }
48410 _ACEOF
48411 if ac_fn_c_try_run "$LINENO"
48412 then :
48413 gl_cv_func_pthread_sigmask_return_works=yes
48414 else $as_nop
48415 gl_cv_func_pthread_sigmask_return_works=no
48416 fi
48417 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
48418 conftest.$ac_objext conftest.beam conftest.$ac_ext
48419 fi
48420
48421 LIBS="$gl_save_LIBS"
48422
48423 fi
48424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_return_works" >&5
48425 printf "%s\n" "$gl_cv_func_pthread_sigmask_return_works" >&6; }
48426 case "$gl_cv_func_pthread_sigmask_return_works" in
48427 *no)
48428 REPLACE_PTHREAD_SIGMASK=1
48429
48430 printf "%s\n" "#define PTHREAD_SIGMASK_FAILS_WITH_ERRNO 1" >>confdefs.h
48431
48432 ;;
48433 esac
48434
48435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask unblocks signals correctly" >&5
48436 printf %s "checking whether pthread_sigmask unblocks signals correctly... " >&6; }
48437 if test ${gl_cv_func_pthread_sigmask_unblock_works+y}
48438 then :
48439 printf %s "(cached) " >&6
48440 else $as_nop
48441
48442 case "$host_os" in
48443 irix*)
48444 gl_cv_func_pthread_sigmask_unblock_works="guessing no";;
48445 *)
48446 gl_cv_func_pthread_sigmask_unblock_works="guessing yes";;
48447 esac
48448 gl_save_LIBS=$LIBS
48449 LIBS="$LIBS $LIBMULTITHREAD"
48450 if test "$cross_compiling" = yes
48451 then :
48452 :
48453 else $as_nop
48454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48455 /* end confdefs.h. */
48456
48457 #include <limits.h>
48458 #include <pthread.h>
48459 #include <signal.h>
48460 #include <stdio.h>
48461 #include <stdlib.h>
48462 #include <unistd.h>
48463
48464
48465 $gl_mda_defines
48466
48467 static volatile int sigint_occurred;
48468 static void
48469 sigint_handler (int sig)
48470 {
48471 sigint_occurred++;
48472 }
48473 int main ()
48474 {
48475 sigset_t set;
48476 pid_t pid = getpid ();
48477 char command[80];
48478 if (LONG_MAX < pid)
48479 return 6;
48480 signal (SIGINT, sigint_handler);
48481 sigemptyset (&set);
48482 sigaddset (&set, SIGINT);
48483 if (!(pthread_sigmask (SIG_BLOCK, &set, NULL) == 0))
48484 return 1;
48485 sprintf (command, "sh -c 'sleep 1; kill -INT %ld' &", (long) pid);
48486 if (!(system (command) == 0))
48487 return 2;
48488 sleep (2);
48489 if (!(sigint_occurred == 0))
48490 return 3;
48491 if (!(pthread_sigmask (SIG_UNBLOCK, &set, NULL) == 0))
48492 return 4;
48493 if (!(sigint_occurred == 1)) /* This fails on IRIX. */
48494 return 5;
48495 return 0;
48496 }
48497 _ACEOF
48498 if ac_fn_c_try_run "$LINENO"
48499 then :
48500 :
48501 else $as_nop
48502 gl_cv_func_pthread_sigmask_unblock_works=no
48503 fi
48504 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
48505 conftest.$ac_objext conftest.beam conftest.$ac_ext
48506 fi
48507
48508 LIBS=$gl_save_LIBS
48509
48510 fi
48511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_unblock_works" >&5
48512 printf "%s\n" "$gl_cv_func_pthread_sigmask_unblock_works" >&6; }
48513 case "$gl_cv_func_pthread_sigmask_unblock_works" in
48514 *no)
48515 REPLACE_PTHREAD_SIGMASK=1
48516
48517 printf "%s\n" "#define PTHREAD_SIGMASK_UNBLOCK_BUG 1" >>confdefs.h
48518
48519 ;;
48520 esac
48521 fi
48522
48523
48524 if test $HAVE_PTHREAD_SIGMASK = 0 || test $REPLACE_PTHREAD_SIGMASK = 1; then
48525 GL_COND_OBJ_PTHREAD_SIGMASK_TRUE=
48526 GL_COND_OBJ_PTHREAD_SIGMASK_FALSE='#'
48527 else
48528 GL_COND_OBJ_PTHREAD_SIGMASK_TRUE='#'
48529 GL_COND_OBJ_PTHREAD_SIGMASK_FALSE=
48530 fi
48531 :
48532 if test -z "${GL_COND_OBJ_PTHREAD_SIGMASK_TRUE}" && test -z "${GL_COND_OBJ_PTHREAD_SIGMASK_FALSE}"; then
48533 GL_COND_OBJ_PTHREAD_SIGMASK_TRUE='#'
48534 GL_COND_OBJ_PTHREAD_SIGMASK_FALSE='#'
48535 fi
48536
48537 if test -z "$GL_COND_OBJ_PTHREAD_SIGMASK_TRUE"; then :
48538
48539
48540 if test $HAVE_PTHREAD_SIGMASK = 1; then
48541
48542 printf "%s\n" "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h
48543
48544 fi
48545
48546
48547 fi
48548
48549
48550
48551
48552
48553
48554
48555
48556
48557 if test "$GL_GNULIB_PTHREAD_SIGMASK" != 1; then
48558 if test "$GL_GNULIB_PTHREAD_SIGMASK" = 0; then
48559 GL_GNULIB_PTHREAD_SIGMASK=$gl_module_indicator_condition
48560 else
48561 GL_GNULIB_PTHREAD_SIGMASK="($GL_GNULIB_PTHREAD_SIGMASK || $gl_module_indicator_condition)"
48562 fi
48563 fi
48564
48565
48566
48567
48568
48569 printf "%s\n" "#define GNULIB_TEST_PTHREAD_SIGMASK 1" >>confdefs.h
48570
48571
48572
48573
48574
48575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for putenv compatible with GNU and SVID" >&5
48576 printf %s "checking for putenv compatible with GNU and SVID... " >&6; }
48577 if test ${gl_cv_func_svid_putenv+y}
48578 then :
48579 printf %s "(cached) " >&6
48580 else $as_nop
48581 if test "$cross_compiling" = yes
48582 then :
48583 case "$host_os" in
48584 # Guess yes on glibc systems.
48585 *-gnu* | gnu*) gl_cv_func_svid_putenv="guessing yes" ;;
48586 # Guess yes on musl systems.
48587 *-musl*) gl_cv_func_svid_putenv="guessing yes" ;;
48588 # Guess no on native Windows.
48589 mingw*) gl_cv_func_svid_putenv="guessing no" ;;
48590 # If we don't know, obey --enable-cross-guesses.
48591 *) gl_cv_func_svid_putenv="$gl_cross_guess_normal" ;;
48592 esac
48593
48594 else $as_nop
48595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48596 /* end confdefs.h. */
48597 $ac_includes_default
48598
48599
48600 $gl_mda_defines
48601
48602 int
48603 main (void)
48604 {
48605
48606 /* Put it in env. */
48607 if (putenv ("CONFTEST_putenv=val"))
48608 return 1;
48609
48610 /* Try to remove it. */
48611 if (putenv ("CONFTEST_putenv"))
48612 return 2;
48613
48614 /* Make sure it was deleted. */
48615 if (getenv ("CONFTEST_putenv") != 0)
48616 return 3;
48617
48618 return 0;
48619
48620 ;
48621 return 0;
48622 }
48623 _ACEOF
48624 if ac_fn_c_try_run "$LINENO"
48625 then :
48626 gl_cv_func_svid_putenv=yes
48627 else $as_nop
48628 gl_cv_func_svid_putenv=no
48629 fi
48630 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
48631 conftest.$ac_objext conftest.beam conftest.$ac_ext
48632 fi
48633
48634
48635 fi
48636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_svid_putenv" >&5
48637 printf "%s\n" "$gl_cv_func_svid_putenv" >&6; }
48638 case "$gl_cv_func_svid_putenv" in
48639 *yes) ;;
48640 *)
48641 REPLACE_PUTENV=1
48642 ;;
48643 esac
48644
48645
48646 if test $REPLACE_PUTENV = 1; then
48647 GL_COND_OBJ_PUTENV_TRUE=
48648 GL_COND_OBJ_PUTENV_FALSE='#'
48649 else
48650 GL_COND_OBJ_PUTENV_TRUE='#'
48651 GL_COND_OBJ_PUTENV_FALSE=
48652 fi
48653 :
48654 if test -z "${GL_COND_OBJ_PUTENV_TRUE}" && test -z "${GL_COND_OBJ_PUTENV_FALSE}"; then
48655 GL_COND_OBJ_PUTENV_TRUE='#'
48656 GL_COND_OBJ_PUTENV_FALSE='#'
48657 fi
48658
48659 if test -z "$GL_COND_OBJ_PUTENV_TRUE"; then :
48660
48661
48662 ac_fn_check_decl "$LINENO" "_putenv" "ac_cv_have_decl__putenv" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
48663 if test "x$ac_cv_have_decl__putenv" = xyes
48664 then :
48665 ac_have_decl=1
48666 else $as_nop
48667 ac_have_decl=0
48668 fi
48669 printf "%s\n" "#define HAVE_DECL__PUTENV $ac_have_decl" >>confdefs.h
48670
48671
48672
48673 fi
48674
48675
48676
48677
48678
48679
48680
48681
48682
48683 if test "$GL_GNULIB_PUTENV" != 1; then
48684 if test "$GL_GNULIB_PUTENV" = 0; then
48685 GL_GNULIB_PUTENV=$gl_module_indicator_condition
48686 else
48687 GL_GNULIB_PUTENV="($GL_GNULIB_PUTENV || $gl_module_indicator_condition)"
48688 fi
48689 fi
48690
48691
48692
48693
48694
48695 printf "%s\n" "#define GNULIB_TEST_PUTENV 1" >>confdefs.h
48696
48697
48698
48699
48700
48701
48702 ac_fn_c_check_func "$LINENO" "raise" "ac_cv_func_raise"
48703 if test "x$ac_cv_func_raise" = xyes
48704 then :
48705 printf "%s\n" "#define HAVE_RAISE 1" >>confdefs.h
48706
48707 fi
48708
48709 if test $ac_cv_func_raise = no; then
48710 HAVE_RAISE=0
48711 else
48712
48713
48714 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
48715 REPLACE_RAISE=1
48716 fi
48717
48718
48719
48720
48721
48722 HAVE_POSIX_SIGNALBLOCKING=0
48723 if test "$gl_cv_type_sigset_t" = yes; then
48724 ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
48725 if test "x$ac_cv_func_sigprocmask" = xyes
48726 then :
48727 HAVE_POSIX_SIGNALBLOCKING=1
48728 fi
48729
48730 fi
48731
48732 if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
48733 :
48734 fi
48735
48736 fi
48737
48738
48739 if test $HAVE_RAISE = 0 || test $REPLACE_RAISE = 1; then
48740 GL_COND_OBJ_RAISE_TRUE=
48741 GL_COND_OBJ_RAISE_FALSE='#'
48742 else
48743 GL_COND_OBJ_RAISE_TRUE='#'
48744 GL_COND_OBJ_RAISE_FALSE=
48745 fi
48746 :
48747 if test -z "${GL_COND_OBJ_RAISE_TRUE}" && test -z "${GL_COND_OBJ_RAISE_FALSE}"; then
48748 GL_COND_OBJ_RAISE_TRUE='#'
48749 GL_COND_OBJ_RAISE_FALSE='#'
48750 fi
48751
48752 if test -z "$GL_COND_OBJ_RAISE_TRUE"; then :
48753
48754 :
48755
48756 fi
48757
48758
48759
48760
48761
48762
48763
48764
48765
48766 if test "$GL_GNULIB_RAISE" != 1; then
48767 if test "$GL_GNULIB_RAISE" = 0; then
48768 GL_GNULIB_RAISE=$gl_module_indicator_condition
48769 else
48770 GL_GNULIB_RAISE="($GL_GNULIB_RAISE || $gl_module_indicator_condition)"
48771 fi
48772 fi
48773
48774
48775
48776
48777
48778 printf "%s\n" "#define GNULIB_TEST_RAISE 1" >>confdefs.h
48779
48780
48781
48782
48783
48784
48785
48786
48787
48788
48789
48790
48791
48792
48793
48794
48795
48796
48797 if { case "$host_os" in mingw*) true;; *) false;; esac; } \
48798 && test $gl_threads_api = windows; then
48799 REPLACE_SCHED_YIELD=1
48800 else
48801 ac_fn_check_decl "$LINENO" "sched_yield" "ac_cv_have_decl_sched_yield" "#include <sched.h>
48802 " "$ac_c_undeclared_builtin_options" "CFLAGS"
48803 if test "x$ac_cv_have_decl_sched_yield" = xyes
48804 then :
48805
48806 else $as_nop
48807 HAVE_SCHED_YIELD=0
48808 fi
48809 fi
48810
48811
48812 if test $HAVE_SCHED_YIELD = 0 || test $REPLACE_SCHED_YIELD = 1; then
48813 GL_COND_OBJ_SCHED_YIELD_TRUE=
48814 GL_COND_OBJ_SCHED_YIELD_FALSE='#'
48815 else
48816 GL_COND_OBJ_SCHED_YIELD_TRUE='#'
48817 GL_COND_OBJ_SCHED_YIELD_FALSE=
48818 fi
48819 :
48820 if test -z "${GL_COND_OBJ_SCHED_YIELD_TRUE}" && test -z "${GL_COND_OBJ_SCHED_YIELD_FALSE}"; then
48821 GL_COND_OBJ_SCHED_YIELD_TRUE='#'
48822 GL_COND_OBJ_SCHED_YIELD_FALSE='#'
48823 fi
48824
48825
48826
48827
48828
48829
48830
48831
48832
48833
48834 if test "$GL_GNULIB_SCHED_YIELD" != 1; then
48835 if test "$GL_GNULIB_SCHED_YIELD" = 0; then
48836 GL_GNULIB_SCHED_YIELD=$gl_module_indicator_condition
48837 else
48838 GL_GNULIB_SCHED_YIELD="($GL_GNULIB_SCHED_YIELD || $gl_module_indicator_condition)"
48839 fi
48840 fi
48841
48842
48843
48844
48845
48846 printf "%s\n" "#define GNULIB_TEST_SCHED_YIELD 1" >>confdefs.h
48847
48848
48849
48850
48851
48852
48853
48854 if test "$ac_cv_header_winsock2_h" = yes; then
48855 REPLACE_SELECT=1
48856 else
48857
48858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether select supports a 0 argument" >&5
48859 printf %s "checking whether select supports a 0 argument... " >&6; }
48860 if test ${gl_cv_func_select_supports0+y}
48861 then :
48862 printf %s "(cached) " >&6
48863 else $as_nop
48864
48865 if test "$cross_compiling" = yes
48866 then :
48867
48868 case "$host_os" in
48869 # Guess no on Interix.
48870 interix*) gl_cv_func_select_supports0="guessing no";;
48871 # Guess yes otherwise.
48872 *) gl_cv_func_select_supports0="guessing yes";;
48873 esac
48874
48875 else $as_nop
48876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48877 /* end confdefs.h. */
48878
48879 #include <sys/types.h>
48880 #include <sys/time.h>
48881 #if HAVE_SYS_SELECT_H
48882 #include <sys/select.h>
48883 #endif
48884 int main ()
48885 {
48886 struct timeval timeout;
48887 timeout.tv_sec = 0;
48888 timeout.tv_usec = 5;
48889 return select (0, (fd_set *)0, (fd_set *)0, (fd_set *)0, &timeout) < 0;
48890 }
48891 _ACEOF
48892 if ac_fn_c_try_run "$LINENO"
48893 then :
48894 gl_cv_func_select_supports0=yes
48895 else $as_nop
48896 gl_cv_func_select_supports0=no
48897 fi
48898 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
48899 conftest.$ac_objext conftest.beam conftest.$ac_ext
48900 fi
48901
48902
48903 fi
48904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_select_supports0" >&5
48905 printf "%s\n" "$gl_cv_func_select_supports0" >&6; }
48906 case "$gl_cv_func_select_supports0" in
48907 *yes) ;;
48908 *) REPLACE_SELECT=1 ;;
48909 esac
48910
48911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether select detects invalid fds" >&5
48912 printf %s "checking whether select detects invalid fds... " >&6; }
48913 if test ${gl_cv_func_select_detects_ebadf+y}
48914 then :
48915 printf %s "(cached) " >&6
48916 else $as_nop
48917
48918 if test "$cross_compiling" = yes
48919 then :
48920
48921 case "$host_os" in
48922 # Guess yes on Linux systems.
48923 linux-* | linux) gl_cv_func_select_detects_ebadf="guessing yes" ;;
48924 # Guess yes on glibc systems.
48925 *-gnu* | gnu*) gl_cv_func_select_detects_ebadf="guessing yes" ;;
48926 # If we don't know, obey --enable-cross-guesses.
48927 *) gl_cv_func_select_detects_ebadf="$gl_cross_guess_normal" ;;
48928 esac
48929
48930 else $as_nop
48931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48932 /* end confdefs.h. */
48933
48934 #include <sys/types.h>
48935 #include <sys/time.h>
48936 #if HAVE_SYS_SELECT_H
48937 # include <sys/select.h>
48938 #endif
48939 #include <unistd.h>
48940 #include <errno.h>
48941
48942
48943 $gl_mda_defines
48944
48945 int
48946 main (void)
48947 {
48948
48949 fd_set set;
48950 dup2(0, 16);
48951 FD_ZERO(&set);
48952 FD_SET(16, &set);
48953 close(16);
48954 struct timeval timeout;
48955 timeout.tv_sec = 0;
48956 timeout.tv_usec = 5;
48957 return select (17, &set, NULL, NULL, &timeout) != -1 || errno != EBADF;
48958
48959 ;
48960 return 0;
48961 }
48962 _ACEOF
48963 if ac_fn_c_try_run "$LINENO"
48964 then :
48965 gl_cv_func_select_detects_ebadf=yes
48966 else $as_nop
48967 gl_cv_func_select_detects_ebadf=no
48968 fi
48969 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
48970 conftest.$ac_objext conftest.beam conftest.$ac_ext
48971 fi
48972
48973
48974 fi
48975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_select_detects_ebadf" >&5
48976 printf "%s\n" "$gl_cv_func_select_detects_ebadf" >&6; }
48977 case $gl_cv_func_select_detects_ebadf in
48978 *yes) ;;
48979 *) REPLACE_SELECT=1 ;;
48980 esac
48981 fi
48982
48983 LIB_SELECT="$LIBSOCKET"
48984 if test $REPLACE_SELECT = 1; then
48985 case "$host_os" in
48986 mingw*)
48987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48988 /* end confdefs.h. */
48989
48990 #define WIN32_LEAN_AND_MEAN
48991 #include <windows.h>
48992 int
48993 main ()
48994 {
48995 MsgWaitForMultipleObjects (0, NULL, 0, 0, 0);
48996 return 0;
48997 }
48998 _ACEOF
48999 if ac_fn_c_try_link "$LINENO"
49000 then :
49001
49002 else $as_nop
49003 LIB_SELECT="$LIB_SELECT -luser32"
49004 fi
49005 rm -f core conftest.err conftest.$ac_objext conftest.beam \
49006 conftest$ac_exeext conftest.$ac_ext
49007 ;;
49008 esac
49009 fi
49010
49011
49012
49013 if test $REPLACE_SELECT = 1; then
49014 GL_COND_OBJ_SELECT_TRUE=
49015 GL_COND_OBJ_SELECT_FALSE='#'
49016 else
49017 GL_COND_OBJ_SELECT_TRUE='#'
49018 GL_COND_OBJ_SELECT_FALSE=
49019 fi
49020 :
49021 if test -z "${GL_COND_OBJ_SELECT_TRUE}" && test -z "${GL_COND_OBJ_SELECT_FALSE}"; then
49022 GL_COND_OBJ_SELECT_TRUE='#'
49023 GL_COND_OBJ_SELECT_FALSE='#'
49024 fi
49025
49026
49027
49028
49029
49030
49031
49032
49033
49034
49035 if test "$GL_GNULIB_SELECT" != 1; then
49036 if test "$GL_GNULIB_SELECT" = 0; then
49037 GL_GNULIB_SELECT=$gl_module_indicator_condition
49038 else
49039 GL_GNULIB_SELECT="($GL_GNULIB_SELECT || $gl_module_indicator_condition)"
49040 fi
49041 fi
49042
49043
49044
49045
49046
49047 printf "%s\n" "#define GNULIB_TEST_SELECT 1" >>confdefs.h
49048
49049
49050
49051
49052
49053
49054 if test $ac_cv_func_setenv = no; then
49055 HAVE_SETENV=0
49056 else
49057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether setenv validates arguments" >&5
49058 printf %s "checking whether setenv validates arguments... " >&6; }
49059 if test ${gl_cv_func_setenv_works+y}
49060 then :
49061 printf %s "(cached) " >&6
49062 else $as_nop
49063 if test "$cross_compiling" = yes
49064 then :
49065 case "$host_os" in
49066 # Guess yes on glibc systems.
49067 *-gnu* | gnu*) gl_cv_func_setenv_works="guessing yes" ;;
49068 # Guess yes on musl systems.
49069 *-musl*) gl_cv_func_setenv_works="guessing yes" ;;
49070 # If we don't know, obey --enable-cross-guesses.
49071 *) gl_cv_func_setenv_works="$gl_cross_guess_normal" ;;
49072 esac
49073
49074 else $as_nop
49075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49076 /* end confdefs.h. */
49077
49078 #include <stdlib.h>
49079 #include <errno.h>
49080 #include <string.h>
49081
49082 int
49083 main (void)
49084 {
49085
49086 int result = 0;
49087 {
49088 if (setenv ("", "", 0) != -1)
49089 result |= 1;
49090 else if (errno != EINVAL)
49091 result |= 2;
49092 }
49093 {
49094 if (setenv ("a", "=", 1) != 0)
49095 result |= 4;
49096 else if (strcmp (getenv ("a"), "=") != 0)
49097 result |= 8;
49098 }
49099 return result;
49100
49101 ;
49102 return 0;
49103 }
49104 _ACEOF
49105 if ac_fn_c_try_run "$LINENO"
49106 then :
49107 gl_cv_func_setenv_works=yes
49108 else $as_nop
49109 gl_cv_func_setenv_works=no
49110 fi
49111 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
49112 conftest.$ac_objext conftest.beam conftest.$ac_ext
49113 fi
49114
49115 fi
49116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setenv_works" >&5
49117 printf "%s\n" "$gl_cv_func_setenv_works" >&6; }
49118 case "$gl_cv_func_setenv_works" in
49119 *yes) ;;
49120 *)
49121 REPLACE_SETENV=1
49122 ;;
49123 esac
49124 fi
49125
49126
49127 if test $HAVE_SETENV = 0 || test $REPLACE_SETENV = 1; then
49128 GL_COND_OBJ_SETENV_TRUE=
49129 GL_COND_OBJ_SETENV_FALSE='#'
49130 else
49131 GL_COND_OBJ_SETENV_TRUE='#'
49132 GL_COND_OBJ_SETENV_FALSE=
49133 fi
49134 :
49135 if test -z "${GL_COND_OBJ_SETENV_TRUE}" && test -z "${GL_COND_OBJ_SETENV_FALSE}"; then
49136 GL_COND_OBJ_SETENV_TRUE='#'
49137 GL_COND_OBJ_SETENV_FALSE='#'
49138 fi
49139
49140
49141
49142
49143
49144
49145
49146
49147
49148
49149 if test "$GL_GNULIB_SETENV" != 1; then
49150 if test "$GL_GNULIB_SETENV" = 0; then
49151 GL_GNULIB_SETENV=$gl_module_indicator_condition
49152 else
49153 GL_GNULIB_SETENV="($GL_GNULIB_SETENV || $gl_module_indicator_condition)"
49154 fi
49155 fi
49156
49157
49158
49159
49160
49161 printf "%s\n" "#define GNULIB_TEST_SETENV 1" >>confdefs.h
49162
49163
49164
49165
49166
49167
49168
49169
49170 NEED_SETLOCALE_IMPROVED=0
49171 case "$host_os" in
49172 mingw*) NEED_SETLOCALE_IMPROVED=1 ;;
49173 cygwin*)
49174 case `uname -r` in
49175 1.5.*) NEED_SETLOCALE_IMPROVED=1 ;;
49176 esac
49177 ;;
49178 *)
49179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether setlocale supports the C locale" >&5
49180 printf %s "checking whether setlocale supports the C locale... " >&6; }
49181 if test ${gl_cv_func_setlocale_works+y}
49182 then :
49183 printf %s "(cached) " >&6
49184 else $as_nop
49185 if test "$cross_compiling" = yes
49186 then :
49187 case "$host_os" in
49188 # Guess no on Android.
49189 linux*-android*) gl_cv_func_setlocale_works="guessing no";;
49190 # Guess yes otherwise.
49191 *) gl_cv_func_setlocale_works="guessing yes";;
49192 esac
49193
49194 else $as_nop
49195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49196 /* end confdefs.h. */
49197
49198 #include <locale.h>
49199 int main ()
49200 {
49201 return setlocale (LC_ALL, "C") == NULL;
49202 }
49203 _ACEOF
49204 if ac_fn_c_try_run "$LINENO"
49205 then :
49206 gl_cv_func_setlocale_works=yes
49207 else $as_nop
49208 gl_cv_func_setlocale_works=no
49209 fi
49210 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
49211 conftest.$ac_objext conftest.beam conftest.$ac_ext
49212 fi
49213
49214
49215 fi
49216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setlocale_works" >&5
49217 printf "%s\n" "$gl_cv_func_setlocale_works" >&6; }
49218 case "$gl_cv_func_setlocale_works" in
49219 *yes) ;;
49220 *) NEED_SETLOCALE_IMPROVED=1 ;;
49221 esac
49222 ;;
49223 esac
49224
49225 printf "%s\n" "#define NEED_SETLOCALE_IMPROVED $NEED_SETLOCALE_IMPROVED" >>confdefs.h
49226
49227
49228 NEED_SETLOCALE_MTSAFE=0
49229 if test $SETLOCALE_NULL_ALL_MTSAFE = 0 || test $SETLOCALE_NULL_ONE_MTSAFE = 0; then
49230 NEED_SETLOCALE_MTSAFE=1
49231 fi
49232
49233 printf "%s\n" "#define NEED_SETLOCALE_MTSAFE $NEED_SETLOCALE_MTSAFE" >>confdefs.h
49234
49235
49236 if test $NEED_SETLOCALE_IMPROVED = 1 || test $NEED_SETLOCALE_MTSAFE = 1; then
49237 REPLACE_SETLOCALE=1
49238 fi
49239
49240 if test $NEED_SETLOCALE_MTSAFE = 1; then
49241 LIB_SETLOCALE="$LIB_SETLOCALE_NULL"
49242 else
49243 LIB_SETLOCALE=
49244 fi
49245
49246
49247
49248 if test $REPLACE_SETLOCALE = 1; then
49249 GL_COND_OBJ_SETLOCALE_TRUE=
49250 GL_COND_OBJ_SETLOCALE_FALSE='#'
49251 else
49252 GL_COND_OBJ_SETLOCALE_TRUE='#'
49253 GL_COND_OBJ_SETLOCALE_FALSE=
49254 fi
49255 :
49256 if test -z "${GL_COND_OBJ_SETLOCALE_TRUE}" && test -z "${GL_COND_OBJ_SETLOCALE_FALSE}"; then
49257 GL_COND_OBJ_SETLOCALE_TRUE='#'
49258 GL_COND_OBJ_SETLOCALE_FALSE='#'
49259 fi
49260
49261 if test -z "$GL_COND_OBJ_SETLOCALE_TRUE"; then :
49262
49263
49264 :
49265
49266
49267 fi
49268
49269
49270
49271
49272
49273
49274
49275
49276
49277 if test "$GL_GNULIB_SETLOCALE" != 1; then
49278 if test "$GL_GNULIB_SETLOCALE" = 0; then
49279 GL_GNULIB_SETLOCALE=$gl_module_indicator_condition
49280 else
49281 GL_GNULIB_SETLOCALE="($GL_GNULIB_SETLOCALE || $gl_module_indicator_condition)"
49282 fi
49283 fi
49284
49285
49286
49287
49288
49289 printf "%s\n" "#define GNULIB_TEST_SETLOCALE 1" >>confdefs.h
49290
49291
49292
49293
49294
49295
49296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
49297 printf %s "checking for a traditional french locale... " >&6; }
49298 if test ${gt_cv_locale_fr+y}
49299 then :
49300 printf %s "(cached) " >&6
49301 else $as_nop
49302
49303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49304 /* end confdefs.h. */
49305
49306 #include <locale.h>
49307 #include <time.h>
49308 #if HAVE_LANGINFO_CODESET
49309 # include <langinfo.h>
49310 #endif
49311 #include <stdlib.h>
49312 #include <string.h>
49313 struct tm t;
49314 char buf[16];
49315 int main () {
49316 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
49317 imitates locale dependent behaviour by looking at the environment
49318 variables, and all locales use the UTF-8 encoding. */
49319 #if defined __BEOS__ || defined __HAIKU__
49320 return 1;
49321 #else
49322 /* Check whether the given locale name is recognized by the system. */
49323 # if defined _WIN32 && !defined __CYGWIN__
49324 /* On native Windows, setlocale(category, "") looks at the system settings,
49325 not at the environment variables. Also, when an encoding suffix such
49326 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
49327 category of the locale to "C". */
49328 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
49329 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
49330 return 1;
49331 # else
49332 if (setlocale (LC_ALL, "") == NULL) return 1;
49333 # endif
49334 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
49335 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
49336 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
49337 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
49338 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
49339 some unit tests fail.
49340 On MirBSD 10, when an unsupported locale is specified, setlocale()
49341 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
49342 # if HAVE_LANGINFO_CODESET
49343 {
49344 const char *cs = nl_langinfo (CODESET);
49345 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
49346 || strcmp (cs, "UTF-8") == 0)
49347 return 1;
49348 }
49349 # endif
49350 # ifdef __CYGWIN__
49351 /* On Cygwin, avoid locale names without encoding suffix, because the
49352 locale_charset() function relies on the encoding suffix. Note that
49353 LC_ALL is set on the command line. */
49354 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
49355 # endif
49356 /* Check whether in the abbreviation of the second month, the second
49357 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
49358 one byte long. This excludes the UTF-8 encoding. */
49359 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
49360 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
49361 # if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
49362 /* Check whether the decimal separator is a comma.
49363 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
49364 are nl_langinfo(RADIXCHAR) are both ".". */
49365 if (localeconv () ->decimal_point[0] != ',') return 1;
49366 # endif
49367 return 0;
49368 #endif
49369 }
49370
49371 _ACEOF
49372 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
49373 (eval $ac_link) 2>&5
49374 ac_status=$?
49375 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
49376 test $ac_status = 0; } && test -s conftest$ac_exeext; then
49377 case "$host_os" in
49378 # Handle native Windows specially, because there setlocale() interprets
49379 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
49380 # "fr" or "fra" as "French" or "French_France.1252",
49381 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
49382 # "ja" as "Japanese" or "Japanese_Japan.932",
49383 # and similar.
49384 mingw*)
49385 # Test for the native Windows locale name.
49386 if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
49387 gt_cv_locale_fr=French_France.1252
49388 else
49389 # None found.
49390 gt_cv_locale_fr=none
49391 fi
49392 ;;
49393 *)
49394 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
49395 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
49396 # configure script would override the LC_ALL setting. Likewise for
49397 # LC_CTYPE, which is also set at the beginning of the configure script.
49398 # Test for the usual locale name.
49399 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
49400 gt_cv_locale_fr=fr_FR
49401 else
49402 # Test for the locale name with explicit encoding suffix.
49403 if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
49404 gt_cv_locale_fr=fr_FR.ISO-8859-1
49405 else
49406 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
49407 if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
49408 gt_cv_locale_fr=fr_FR.ISO8859-1
49409 else
49410 # Test for the HP-UX locale name.
49411 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
49412 gt_cv_locale_fr=fr_FR.iso88591
49413 else
49414 # Test for the Solaris 7 locale name.
49415 if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
49416 gt_cv_locale_fr=fr
49417 else
49418 # None found.
49419 gt_cv_locale_fr=none
49420 fi
49421 fi
49422 fi
49423 fi
49424 fi
49425 ;;
49426 esac
49427 fi
49428 rm -fr conftest*
49429
49430 fi
49431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
49432 printf "%s\n" "$gt_cv_locale_fr" >&6; }
49433 LOCALE_FR=$gt_cv_locale_fr
49434
49435
49436
49437
49438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
49439 printf %s "checking for a french Unicode locale... " >&6; }
49440 if test ${gt_cv_locale_fr_utf8+y}
49441 then :
49442 printf %s "(cached) " >&6
49443 else $as_nop
49444
49445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49446 /* end confdefs.h. */
49447
49448 #include <locale.h>
49449 #include <time.h>
49450 #if HAVE_LANGINFO_CODESET
49451 # include <langinfo.h>
49452 #endif
49453 #include <stdlib.h>
49454 #include <string.h>
49455 struct tm t;
49456 char buf[16];
49457 int main () {
49458 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
49459 imitates locale dependent behaviour by looking at the environment
49460 variables, and all locales use the UTF-8 encoding. */
49461 #if !(defined __BEOS__ || defined __HAIKU__)
49462 /* Check whether the given locale name is recognized by the system. */
49463 # if defined _WIN32 && !defined __CYGWIN__
49464 /* On native Windows, setlocale(category, "") looks at the system settings,
49465 not at the environment variables. Also, when an encoding suffix such
49466 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
49467 category of the locale to "C". */
49468 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
49469 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
49470 return 1;
49471 # else
49472 if (setlocale (LC_ALL, "") == NULL) return 1;
49473 # endif
49474 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
49475 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
49476 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
49477 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
49478 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
49479 some unit tests fail. */
49480 # if HAVE_LANGINFO_CODESET
49481 {
49482 const char *cs = nl_langinfo (CODESET);
49483 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
49484 return 1;
49485 }
49486 # endif
49487 # ifdef __CYGWIN__
49488 /* On Cygwin, avoid locale names without encoding suffix, because the
49489 locale_charset() function relies on the encoding suffix. Note that
49490 LC_ALL is set on the command line. */
49491 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
49492 # endif
49493 /* Check whether in the abbreviation of the second month, the second
49494 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
49495 two bytes long, with UTF-8 encoding. */
49496 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
49497 if (strftime (buf, sizeof (buf), "%b", &t) < 4
49498 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
49499 return 1;
49500 #endif
49501 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
49502 /* Check whether the decimal separator is a comma.
49503 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
49504 are nl_langinfo(RADIXCHAR) are both ".". */
49505 if (localeconv () ->decimal_point[0] != ',') return 1;
49506 #endif
49507 return 0;
49508 }
49509
49510 _ACEOF
49511 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
49512 (eval $ac_link) 2>&5
49513 ac_status=$?
49514 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
49515 test $ac_status = 0; } && test -s conftest$ac_exeext; then
49516 case "$host_os" in
49517 # Handle native Windows specially, because there setlocale() interprets
49518 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
49519 # "fr" or "fra" as "French" or "French_France.1252",
49520 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
49521 # "ja" as "Japanese" or "Japanese_Japan.932",
49522 # and similar.
49523 mingw*)
49524 # Test for the hypothetical native Windows locale name.
49525 if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
49526 gt_cv_locale_fr_utf8=French_France.65001
49527 else
49528 # None found.
49529 gt_cv_locale_fr_utf8=none
49530 fi
49531 ;;
49532 *)
49533 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
49534 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
49535 # configure script would override the LC_ALL setting. Likewise for
49536 # LC_CTYPE, which is also set at the beginning of the configure script.
49537 # Test for the usual locale name.
49538 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
49539 gt_cv_locale_fr_utf8=fr_FR
49540 else
49541 # Test for the locale name with explicit encoding suffix.
49542 if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
49543 gt_cv_locale_fr_utf8=fr_FR.UTF-8
49544 else
49545 # Test for the Solaris 7 locale name.
49546 if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
49547 gt_cv_locale_fr_utf8=fr.UTF-8
49548 else
49549 # None found.
49550 gt_cv_locale_fr_utf8=none
49551 fi
49552 fi
49553 fi
49554 ;;
49555 esac
49556 fi
49557 rm -fr conftest*
49558
49559 fi
49560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
49561 printf "%s\n" "$gt_cv_locale_fr_utf8" >&6; }
49562 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
49563
49564
49565
49566
49567
49568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
49569 printf %s "checking for a traditional japanese locale... " >&6; }
49570 if test ${gt_cv_locale_ja+y}
49571 then :
49572 printf %s "(cached) " >&6
49573 else $as_nop
49574
49575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49576 /* end confdefs.h. */
49577
49578 #include <locale.h>
49579 #include <time.h>
49580 #if HAVE_LANGINFO_CODESET
49581 # include <langinfo.h>
49582 #endif
49583 #include <stdlib.h>
49584 #include <string.h>
49585 struct tm t;
49586 char buf[16];
49587 int main ()
49588 {
49589 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
49590 imitates locale dependent behaviour by looking at the environment
49591 variables, and all locales use the UTF-8 encoding. */
49592 #if defined __BEOS__ || defined __HAIKU__
49593 return 1;
49594 #else
49595 /* Check whether the given locale name is recognized by the system. */
49596 # if defined _WIN32 && !defined __CYGWIN__
49597 /* On native Windows, setlocale(category, "") looks at the system settings,
49598 not at the environment variables. Also, when an encoding suffix such
49599 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
49600 category of the locale to "C". */
49601 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
49602 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
49603 return 1;
49604 # else
49605 if (setlocale (LC_ALL, "") == NULL) return 1;
49606 # endif
49607 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
49608 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
49609 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
49610 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
49611 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
49612 some unit tests fail.
49613 On MirBSD 10, when an unsupported locale is specified, setlocale()
49614 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
49615 # if HAVE_LANGINFO_CODESET
49616 {
49617 const char *cs = nl_langinfo (CODESET);
49618 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
49619 || strcmp (cs, "UTF-8") == 0)
49620 return 1;
49621 }
49622 # endif
49623 # ifdef __CYGWIN__
49624 /* On Cygwin, avoid locale names without encoding suffix, because the
49625 locale_charset() function relies on the encoding suffix. Note that
49626 LC_ALL is set on the command line. */
49627 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
49628 # endif
49629 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales
49630 on Cygwin 1.5.x. */
49631 if (MB_CUR_MAX == 1)
49632 return 1;
49633 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
49634 This excludes the UTF-8 encoding (except on MirBSD). */
49635 {
49636 const char *p;
49637 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
49638 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
49639 for (p = buf; *p != '\0'; p++)
49640 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
49641 return 1;
49642 }
49643 return 0;
49644 #endif
49645 }
49646
49647 _ACEOF
49648 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
49649 (eval $ac_link) 2>&5
49650 ac_status=$?
49651 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
49652 test $ac_status = 0; } && test -s conftest$ac_exeext; then
49653 case "$host_os" in
49654 # Handle native Windows specially, because there setlocale() interprets
49655 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
49656 # "fr" or "fra" as "French" or "French_France.1252",
49657 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
49658 # "ja" as "Japanese" or "Japanese_Japan.932",
49659 # and similar.
49660 mingw*)
49661 # Note that on native Windows, the Japanese locale is
49662 # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
49663 # cannot use it here.
49664 gt_cv_locale_ja=none
49665 ;;
49666 *)
49667 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
49668 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
49669 # configure script would override the LC_ALL setting. Likewise for
49670 # LC_CTYPE, which is also set at the beginning of the configure script.
49671 # Test for the AIX locale name.
49672 if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
49673 gt_cv_locale_ja=ja_JP
49674 else
49675 # Test for the locale name with explicit encoding suffix.
49676 if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
49677 gt_cv_locale_ja=ja_JP.EUC-JP
49678 else
49679 # Test for the HP-UX, OSF/1, NetBSD locale name.
49680 if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
49681 gt_cv_locale_ja=ja_JP.eucJP
49682 else
49683 # Test for the IRIX, FreeBSD locale name.
49684 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
49685 gt_cv_locale_ja=ja_JP.EUC
49686 else
49687 # Test for the Solaris 7 locale name.
49688 if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
49689 gt_cv_locale_ja=ja
49690 else
49691 # Special test for NetBSD 1.6.
49692 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
49693 gt_cv_locale_ja=ja_JP.eucJP
49694 else
49695 # None found.
49696 gt_cv_locale_ja=none
49697 fi
49698 fi
49699 fi
49700 fi
49701 fi
49702 fi
49703 ;;
49704 esac
49705 fi
49706 rm -fr conftest*
49707
49708 fi
49709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
49710 printf "%s\n" "$gt_cv_locale_ja" >&6; }
49711 LOCALE_JA=$gt_cv_locale_ja
49712
49713
49714
49715
49716
49717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
49718 printf %s "checking for a transitional chinese locale... " >&6; }
49719 if test ${gt_cv_locale_zh_CN+y}
49720 then :
49721 printf %s "(cached) " >&6
49722 else $as_nop
49723
49724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49725 /* end confdefs.h. */
49726
49727 #include <locale.h>
49728 #include <stdlib.h>
49729 #include <time.h>
49730 #if HAVE_LANGINFO_CODESET
49731 # include <langinfo.h>
49732 #endif
49733 #include <stdlib.h>
49734 #include <string.h>
49735 struct tm t;
49736 char buf[16];
49737 int main ()
49738 {
49739 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
49740 imitates locale dependent behaviour by looking at the environment
49741 variables, and all locales use the UTF-8 encoding. */
49742 #if defined __BEOS__ || defined __HAIKU__
49743 return 1;
49744 #else
49745 /* Check whether the given locale name is recognized by the system. */
49746 # if defined _WIN32 && !defined __CYGWIN__
49747 /* On native Windows, setlocale(category, "") looks at the system settings,
49748 not at the environment variables. Also, when an encoding suffix such
49749 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
49750 category of the locale to "C". */
49751 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
49752 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
49753 return 1;
49754 # else
49755 if (setlocale (LC_ALL, "") == NULL) return 1;
49756 # endif
49757 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
49758 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
49759 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
49760 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
49761 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
49762 some unit tests fail.
49763 On MirBSD 10, when an unsupported locale is specified, setlocale()
49764 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
49765 # if HAVE_LANGINFO_CODESET
49766 {
49767 const char *cs = nl_langinfo (CODESET);
49768 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
49769 || strcmp (cs, "UTF-8") == 0)
49770 return 1;
49771 }
49772 # endif
49773 # ifdef __CYGWIN__
49774 /* On Cygwin, avoid locale names without encoding suffix, because the
49775 locale_charset() function relies on the encoding suffix. Note that
49776 LC_ALL is set on the command line. */
49777 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
49778 # endif
49779 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
49780 This excludes the UTF-8 encoding (except on MirBSD). */
49781 {
49782 const char *p;
49783 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
49784 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
49785 for (p = buf; *p != '\0'; p++)
49786 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
49787 return 1;
49788 }
49789 /* Check whether a typical GB18030 multibyte sequence is recognized as a
49790 single wide character. This excludes the GB2312 and GBK encodings. */
49791 if (mblen ("\203\062\332\066", 5) != 4)
49792 return 1;
49793 return 0;
49794 #endif
49795 }
49796
49797 _ACEOF
49798 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
49799 (eval $ac_link) 2>&5
49800 ac_status=$?
49801 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
49802 test $ac_status = 0; } && test -s conftest$ac_exeext; then
49803 case "$host_os" in
49804 # Handle native Windows specially, because there setlocale() interprets
49805 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
49806 # "fr" or "fra" as "French" or "French_France.1252",
49807 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
49808 # "ja" as "Japanese" or "Japanese_Japan.932",
49809 # and similar.
49810 mingw*)
49811 # Test for the hypothetical native Windows locale name.
49812 if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
49813 gt_cv_locale_zh_CN=Chinese_China.54936
49814 else
49815 # None found.
49816 gt_cv_locale_zh_CN=none
49817 fi
49818 ;;
49819 solaris2.8)
49820 # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
49821 # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
49822 # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
49823 gt_cv_locale_zh_CN=none
49824 ;;
49825 *)
49826 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
49827 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
49828 # configure script would override the LC_ALL setting. Likewise for
49829 # LC_CTYPE, which is also set at the beginning of the configure script.
49830 # Test for the locale name without encoding suffix.
49831 if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
49832 gt_cv_locale_zh_CN=zh_CN
49833 else
49834 # Test for the locale name with explicit encoding suffix.
49835 if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
49836 gt_cv_locale_zh_CN=zh_CN.GB18030
49837 else
49838 # None found.
49839 gt_cv_locale_zh_CN=none
49840 fi
49841 fi
49842 ;;
49843 esac
49844 else
49845 # If there was a link error, due to mblen(), the system is so old that
49846 # it certainly doesn't have a chinese locale.
49847 gt_cv_locale_zh_CN=none
49848 fi
49849 rm -fr conftest*
49850
49851 fi
49852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
49853 printf "%s\n" "$gt_cv_locale_zh_CN" >&6; }
49854 LOCALE_ZH_CN=$gt_cv_locale_zh_CN
49855
49856
49857
49858
49859 if test "$ac_cv_header_winsock2_h" = yes; then
49860 GL_COND_OBJ_SETSOCKOPT_TRUE=
49861 GL_COND_OBJ_SETSOCKOPT_FALSE='#'
49862 else
49863 GL_COND_OBJ_SETSOCKOPT_TRUE='#'
49864 GL_COND_OBJ_SETSOCKOPT_FALSE=
49865 fi
49866 :
49867 if test -z "${GL_COND_OBJ_SETSOCKOPT_TRUE}" && test -z "${GL_COND_OBJ_SETSOCKOPT_FALSE}"; then
49868 GL_COND_OBJ_SETSOCKOPT_TRUE='#'
49869 GL_COND_OBJ_SETSOCKOPT_FALSE='#'
49870 fi
49871
49872
49873
49874
49875
49876
49877
49878
49879
49880
49881 if test "$GL_GNULIB_SETSOCKOPT" != 1; then
49882 if test "$GL_GNULIB_SETSOCKOPT" = 0; then
49883 GL_GNULIB_SETSOCKOPT=$gl_module_indicator_condition
49884 else
49885 GL_GNULIB_SETSOCKOPT="($GL_GNULIB_SETSOCKOPT || $gl_module_indicator_condition)"
49886 fi
49887 fi
49888
49889
49890
49891
49892
49893 printf "%s\n" "#define GNULIB_TEST_SETSOCKOPT 1" >>confdefs.h
49894
49895
49896
49897
49898
49899
49900
49901
49902
49903
49904
49905
49906
49907 HAVE_POSIX_SIGNALBLOCKING=0
49908 if test "$gl_cv_type_sigset_t" = yes; then
49909 ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
49910 if test "x$ac_cv_func_sigprocmask" = xyes
49911 then :
49912 HAVE_POSIX_SIGNALBLOCKING=1
49913 fi
49914
49915 fi
49916
49917
49918 if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
49919 GL_COND_OBJ_SIGPROCMASK_TRUE=
49920 GL_COND_OBJ_SIGPROCMASK_FALSE='#'
49921 else
49922 GL_COND_OBJ_SIGPROCMASK_TRUE='#'
49923 GL_COND_OBJ_SIGPROCMASK_FALSE=
49924 fi
49925 :
49926 if test -z "${GL_COND_OBJ_SIGPROCMASK_TRUE}" && test -z "${GL_COND_OBJ_SIGPROCMASK_FALSE}"; then
49927 GL_COND_OBJ_SIGPROCMASK_TRUE='#'
49928 GL_COND_OBJ_SIGPROCMASK_FALSE='#'
49929 fi
49930
49931 if test -z "$GL_COND_OBJ_SIGPROCMASK_TRUE"; then :
49932
49933 :
49934
49935 fi
49936
49937
49938
49939
49940
49941
49942
49943
49944
49945 if test "$GL_GNULIB_SIGPROCMASK" != 1; then
49946 if test "$GL_GNULIB_SIGPROCMASK" = 0; then
49947 GL_GNULIB_SIGPROCMASK=$gl_module_indicator_condition
49948 else
49949 GL_GNULIB_SIGPROCMASK="($GL_GNULIB_SIGPROCMASK || $gl_module_indicator_condition)"
49950 fi
49951 fi
49952
49953
49954
49955
49956
49957 printf "%s\n" "#define GNULIB_TEST_SIGPROCMASK 1" >>confdefs.h
49958
49959
49960
49961
49962
49963 ac_fn_check_decl "$LINENO" "sleep" "ac_cv_have_decl_sleep" "#include <unistd.h>
49964 " "$ac_c_undeclared_builtin_options" "CFLAGS"
49965 if test "x$ac_cv_have_decl_sleep" = xyes
49966 then :
49967 ac_have_decl=1
49968 else $as_nop
49969 ac_have_decl=0
49970 fi
49971 printf "%s\n" "#define HAVE_DECL_SLEEP $ac_have_decl" >>confdefs.h
49972
49973
49974 if test $ac_cv_have_decl_sleep != yes; then
49975 HAVE_SLEEP=0
49976 else
49977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working sleep" >&5
49978 printf %s "checking for working sleep... " >&6; }
49979 if test ${gl_cv_func_sleep_works+y}
49980 then :
49981 printf %s "(cached) " >&6
49982 else $as_nop
49983 if test "$cross_compiling" = yes
49984 then :
49985 case "$host_os" in
49986 # Guess yes on glibc systems.
49987 *-gnu* | gnu*) gl_cv_func_sleep_works="guessing yes" ;;
49988 # Guess yes on musl systems.
49989 *-musl*) gl_cv_func_sleep_works="guessing yes" ;;
49990 # Guess no on native Windows.
49991 mingw*) gl_cv_func_sleep_works="guessing no" ;;
49992 # If we don't know, obey --enable-cross-guesses.
49993 *) gl_cv_func_sleep_works="$gl_cross_guess_normal" ;;
49994 esac
49995
49996 else $as_nop
49997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49998 /* end confdefs.h. */
49999
50000 #include <errno.h>
50001 #include <unistd.h>
50002 #include <signal.h>
50003 static void
50004 handle_alarm (int sig)
50005 {
50006 if (sig != SIGALRM)
50007 _exit (2);
50008 }
50009
50010 int
50011 main (void)
50012 {
50013
50014 /* Failure to compile this test due to missing alarm is okay,
50015 since all such platforms (mingw) also lack sleep. */
50016 unsigned int pentecost = 50 * 24 * 60 * 60; /* 50 days. */
50017 unsigned int remaining;
50018 signal (SIGALRM, handle_alarm);
50019 alarm (1);
50020 remaining = sleep (pentecost);
50021 if (remaining > pentecost)
50022 return 3;
50023 if (remaining <= pentecost - 10)
50024 return 4;
50025 return 0;
50026
50027 ;
50028 return 0;
50029 }
50030 _ACEOF
50031 if ac_fn_c_try_run "$LINENO"
50032 then :
50033 gl_cv_func_sleep_works=yes
50034 else $as_nop
50035 gl_cv_func_sleep_works=no
50036 fi
50037 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
50038 conftest.$ac_objext conftest.beam conftest.$ac_ext
50039 fi
50040
50041 fi
50042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_sleep_works" >&5
50043 printf "%s\n" "$gl_cv_func_sleep_works" >&6; }
50044 case "$gl_cv_func_sleep_works" in
50045 *yes) ;;
50046 *)
50047 REPLACE_SLEEP=1
50048 ;;
50049 esac
50050 fi
50051
50052
50053 if test $HAVE_SLEEP = 0 || test $REPLACE_SLEEP = 1; then
50054 GL_COND_OBJ_SLEEP_TRUE=
50055 GL_COND_OBJ_SLEEP_FALSE='#'
50056 else
50057 GL_COND_OBJ_SLEEP_TRUE='#'
50058 GL_COND_OBJ_SLEEP_FALSE=
50059 fi
50060 :
50061 if test -z "${GL_COND_OBJ_SLEEP_TRUE}" && test -z "${GL_COND_OBJ_SLEEP_FALSE}"; then
50062 GL_COND_OBJ_SLEEP_TRUE='#'
50063 GL_COND_OBJ_SLEEP_FALSE='#'
50064 fi
50065
50066
50067
50068
50069
50070
50071
50072
50073
50074
50075 if test "$GL_GNULIB_SLEEP" != 1; then
50076 if test "$GL_GNULIB_SLEEP" = 0; then
50077 GL_GNULIB_SLEEP=$gl_module_indicator_condition
50078 else
50079 GL_GNULIB_SLEEP="($GL_GNULIB_SLEEP || $gl_module_indicator_condition)"
50080 fi
50081 fi
50082
50083
50084
50085
50086
50087 printf "%s\n" "#define GNULIB_TEST_SLEEP 1" >>confdefs.h
50088
50089
50090
50091
50092
50093
50094 if test "$ac_cv_header_winsock2_h" = yes; then
50095 GL_COND_OBJ_SOCKET_TRUE=
50096 GL_COND_OBJ_SOCKET_FALSE='#'
50097 else
50098 GL_COND_OBJ_SOCKET_TRUE='#'
50099 GL_COND_OBJ_SOCKET_FALSE=
50100 fi
50101 :
50102 if test -z "${GL_COND_OBJ_SOCKET_TRUE}" && test -z "${GL_COND_OBJ_SOCKET_FALSE}"; then
50103 GL_COND_OBJ_SOCKET_TRUE='#'
50104 GL_COND_OBJ_SOCKET_FALSE='#'
50105 fi
50106
50107 # When this module is used, sockets may actually occur as file descriptors,
50108 # hence it is worth warning if the modules 'close' and 'ioctl' are not used.
50109
50110
50111
50112
50113
50114
50115
50116
50117
50118
50119
50120 if test "$ac_cv_header_winsock2_h" = yes; then
50121 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=1
50122 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=1
50123 fi
50124
50125
50126
50127
50128
50129
50130
50131
50132
50133 if test "$GL_GNULIB_SOCKET" != 1; then
50134 if test "$GL_GNULIB_SOCKET" = 0; then
50135 GL_GNULIB_SOCKET=$gl_module_indicator_condition
50136 else
50137 GL_GNULIB_SOCKET="($GL_GNULIB_SOCKET || $gl_module_indicator_condition)"
50138 fi
50139 fi
50140
50141
50142
50143
50144
50145 printf "%s\n" "#define GNULIB_TEST_SOCKET 1" >>confdefs.h
50146
50147
50148
50149
50150
50151 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
50152 /* <sys/types.h> is not needed according to POSIX, but the
50153 <sys/socket.h> in i386-unknown-freebsd4.10 and
50154 powerpc-apple-darwin5.5 required it. */
50155 #include <sys/types.h>
50156 #if HAVE_SYS_SOCKET_H
50157 # include <sys/socket.h>
50158 #elif HAVE_WS2TCPIP_H
50159 # include <ws2tcpip.h>
50160 #endif
50161
50162 "
50163 if test "x$ac_cv_type_socklen_t" = xyes
50164 then :
50165
50166 else $as_nop
50167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
50168 printf %s "checking for socklen_t equivalent... " >&6; }
50169 if test ${gl_cv_socklen_t_equiv+y}
50170 then :
50171 printf %s "(cached) " >&6
50172 else $as_nop
50173 # Systems have either "struct sockaddr *" or
50174 # "void *" as the second argument to getpeername
50175 gl_cv_socklen_t_equiv=
50176 for arg2 in "struct sockaddr" void; do
50177 for t in int size_t "unsigned int" "long int" "unsigned long int"; do
50178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50179 /* end confdefs.h. */
50180 #include <sys/types.h>
50181 #include <sys/socket.h>
50182
50183 int getpeername (int, $arg2 *, $t *);
50184 int
50185 main (void)
50186 {
50187 $t len;
50188 getpeername (0, 0, &len);
50189 ;
50190 return 0;
50191 }
50192 _ACEOF
50193 if ac_fn_c_try_compile "$LINENO"
50194 then :
50195 gl_cv_socklen_t_equiv="$t"
50196 fi
50197 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
50198 test "$gl_cv_socklen_t_equiv" != "" && break
50199 done
50200 test "$gl_cv_socklen_t_equiv" != "" && break
50201 done
50202 if test "$gl_cv_socklen_t_equiv" = ""; then
50203 as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5
50204 fi
50205
50206 fi
50207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
50208 printf "%s\n" "$gl_cv_socklen_t_equiv" >&6; }
50209
50210 printf "%s\n" "#define socklen_t $gl_cv_socklen_t_equiv" >>confdefs.h
50211
50212 fi
50213
50214
50215
50216
50217
50218
50219
50220
50221
50222
50223 if test "$GL_GENERATE_ERRNO_H:$REPLACE_STRERROR_0" = false:0; then
50224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
50225 printf %s "checking for working strerror function... " >&6; }
50226 if test ${gl_cv_func_working_strerror+y}
50227 then :
50228 printf %s "(cached) " >&6
50229 else $as_nop
50230 if test "$cross_compiling" = yes
50231 then :
50232 case "$host_os" in
50233 # Guess yes on glibc systems.
50234 *-gnu* | gnu*) gl_cv_func_working_strerror="guessing yes" ;;
50235 # Guess yes on musl systems.
50236 *-musl*) gl_cv_func_working_strerror="guessing yes" ;;
50237 # If we don't know, obey --enable-cross-guesses.
50238 *) gl_cv_func_working_strerror="$gl_cross_guess_normal" ;;
50239 esac
50240
50241 else $as_nop
50242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50243 /* end confdefs.h. */
50244 #include <string.h>
50245
50246 int
50247 main (void)
50248 {
50249 if (!*strerror (-2)) return 1;
50250 ;
50251 return 0;
50252 }
50253 _ACEOF
50254 if ac_fn_c_try_run "$LINENO"
50255 then :
50256 gl_cv_func_working_strerror=yes
50257 else $as_nop
50258 gl_cv_func_working_strerror=no
50259 fi
50260 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
50261 conftest.$ac_objext conftest.beam conftest.$ac_ext
50262 fi
50263
50264
50265 fi
50266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
50267 printf "%s\n" "$gl_cv_func_working_strerror" >&6; }
50268 case "$gl_cv_func_working_strerror" in
50269 *yes) ;;
50270 *)
50271 REPLACE_STRERROR=1
50272 ;;
50273 esac
50274
50275 case "$gl_cv_func_strerror_r_works" in
50276 *no) REPLACE_STRERROR=1 ;;
50277 esac
50278
50279 else
50280 REPLACE_STRERROR=1
50281 fi
50282
50283
50284 if test $REPLACE_STRERROR = 1; then
50285 GL_COND_OBJ_STRERROR_TRUE=
50286 GL_COND_OBJ_STRERROR_FALSE='#'
50287 else
50288 GL_COND_OBJ_STRERROR_TRUE='#'
50289 GL_COND_OBJ_STRERROR_FALSE=
50290 fi
50291 :
50292 if test -z "${GL_COND_OBJ_STRERROR_TRUE}" && test -z "${GL_COND_OBJ_STRERROR_FALSE}"; then
50293 GL_COND_OBJ_STRERROR_TRUE='#'
50294 GL_COND_OBJ_STRERROR_FALSE='#'
50295 fi
50296
50297
50298
50299 printf "%s\n" "#define GNULIB_STRERROR $gl_module_indicator_condition" >>confdefs.h
50300
50301
50302
50303
50304
50305
50306
50307
50308
50309
50310
50311
50312
50313
50314
50315
50316 if test "$GL_GNULIB_STRERROR" != 1; then
50317 if test "$GL_GNULIB_STRERROR" = 0; then
50318 GL_GNULIB_STRERROR=$gl_module_indicator_condition
50319 else
50320 GL_GNULIB_STRERROR="($GL_GNULIB_STRERROR || $gl_module_indicator_condition)"
50321 fi
50322 fi
50323
50324
50325
50326
50327
50328 printf "%s\n" "#define GNULIB_TEST_STRERROR 1" >>confdefs.h
50329
50330
50331
50332
50333
50334
50335 if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then
50336 GL_COND_OBJ_STRERROR_OVERRIDE_TRUE=
50337 GL_COND_OBJ_STRERROR_OVERRIDE_FALSE='#'
50338 else
50339 GL_COND_OBJ_STRERROR_OVERRIDE_TRUE='#'
50340 GL_COND_OBJ_STRERROR_OVERRIDE_FALSE=
50341 fi
50342 :
50343 if test -z "${GL_COND_OBJ_STRERROR_OVERRIDE_TRUE}" && test -z "${GL_COND_OBJ_STRERROR_OVERRIDE_FALSE}"; then
50344 GL_COND_OBJ_STRERROR_OVERRIDE_TRUE='#'
50345 GL_COND_OBJ_STRERROR_OVERRIDE_FALSE='#'
50346 fi
50347
50348 if test -z "$GL_COND_OBJ_STRERROR_OVERRIDE_TRUE"; then :
50349
50350
50351
50352
50353
50354 if test $ac_cv_header_sys_socket_h != yes; then
50355 ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
50356 if test "x$ac_cv_header_winsock2_h" = xyes
50357 then :
50358 printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h
50359
50360 fi
50361
50362 fi
50363 if test "$ac_cv_header_winsock2_h" = yes; then
50364 HAVE_WINSOCK2_H=1
50365 UNISTD_H_HAVE_WINSOCK2_H=1
50366 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
50367 else
50368 HAVE_WINSOCK2_H=0
50369 fi
50370
50371
50372
50373 fi
50374
50375
50376
50377
50378
50379 if test $ac_cv_have_decl_strerror_r = no; then
50380 HAVE_DECL_STRERROR_R=0
50381 fi
50382
50383 if test $ac_cv_func_strerror_r = yes; then
50384 if test "$GL_GENERATE_ERRNO_H:$REPLACE_STRERROR_0" = false:0; then
50385 if test $gl_cv_func_strerror_r_posix_signature = yes; then
50386 case "$gl_cv_func_strerror_r_works" in
50387 *no) REPLACE_STRERROR_R=1 ;;
50388 esac
50389 else
50390 REPLACE_STRERROR_R=1
50391 fi
50392 else
50393 REPLACE_STRERROR_R=1
50394 fi
50395 fi
50396
50397 if test $HAVE_DECL_STRERROR_R = 0 || test $REPLACE_STRERROR_R = 1
50398 then :
50399
50400
50401
50402
50403
50404
50405
50406
50407
50408 gltests_LIBOBJS="$gltests_LIBOBJS strerror_r.$ac_objext"
50409
50410
50411
50412
50413
50414
50415
50416
50417 fi
50418
50419
50420
50421
50422
50423
50424
50425
50426
50427
50428
50429
50430
50431
50432 if test "$GL_GNULIB_STRERROR_R" != 1; then
50433 if test "$GL_GNULIB_STRERROR_R" = 0; then
50434 GL_GNULIB_STRERROR_R=$gl_module_indicator_condition
50435 else
50436 GL_GNULIB_STRERROR_R="($GL_GNULIB_STRERROR_R || $gl_module_indicator_condition)"
50437 fi
50438 fi
50439
50440
50441
50442
50443
50444 printf "%s\n" "#define GNULIB_TEST_STRERROR_R 1" >>confdefs.h
50445
50446
50447
50448
50449
50450 printf "%s\n" "#define GNULIB_STRERROR_R_POSIX $gl_module_indicator_condition" >>confdefs.h
50451
50452
50453
50454
50455
50456
50457
50458
50459
50460
50461
50462
50463 if test $ac_cv_func_symlink = no; then
50464 HAVE_SYMLINK=0
50465 else
50466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
50467 printf %s "checking whether symlink handles trailing slash correctly... " >&6; }
50468 if test ${gl_cv_func_symlink_works+y}
50469 then :
50470 printf %s "(cached) " >&6
50471 else $as_nop
50472 if test "$cross_compiling" = yes
50473 then :
50474 case "$host_os" in
50475 # Guess yes on Linux systems.
50476 linux-* | linux) gl_cv_func_symlink_works="guessing yes" ;;
50477 # Guess yes on glibc systems.
50478 *-gnu* | gnu*) gl_cv_func_symlink_works="guessing yes" ;;
50479 # If we don't know, obey --enable-cross-guesses.
50480 *) gl_cv_func_symlink_works="$gl_cross_guess_normal" ;;
50481 esac
50482
50483 else $as_nop
50484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50485 /* end confdefs.h. */
50486 #include <unistd.h>
50487
50488 int
50489 main (void)
50490 {
50491 int result = 0;
50492 if (!symlink ("a", "conftest.link/"))
50493 result |= 1;
50494 if (symlink ("conftest.f", "conftest.lnk2"))
50495 result |= 2;
50496 else if (!symlink ("a", "conftest.lnk2/"))
50497 result |= 4;
50498 return result;
50499
50500 ;
50501 return 0;
50502 }
50503 _ACEOF
50504 if ac_fn_c_try_run "$LINENO"
50505 then :
50506 gl_cv_func_symlink_works=yes
50507 else $as_nop
50508 gl_cv_func_symlink_works=no
50509 fi
50510 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
50511 conftest.$ac_objext conftest.beam conftest.$ac_ext
50512 fi
50513
50514 rm -f conftest.f conftest.link conftest.lnk2
50515 fi
50516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
50517 printf "%s\n" "$gl_cv_func_symlink_works" >&6; }
50518 case "$gl_cv_func_symlink_works" in
50519 *yes) ;;
50520 *)
50521 REPLACE_SYMLINK=1
50522 ;;
50523 esac
50524 fi
50525
50526
50527 if test $HAVE_SYMLINK = 0 || test $REPLACE_SYMLINK = 1; then
50528 GL_COND_OBJ_SYMLINK_TRUE=
50529 GL_COND_OBJ_SYMLINK_FALSE='#'
50530 else
50531 GL_COND_OBJ_SYMLINK_TRUE='#'
50532 GL_COND_OBJ_SYMLINK_FALSE=
50533 fi
50534 :
50535 if test -z "${GL_COND_OBJ_SYMLINK_TRUE}" && test -z "${GL_COND_OBJ_SYMLINK_FALSE}"; then
50536 GL_COND_OBJ_SYMLINK_TRUE='#'
50537 GL_COND_OBJ_SYMLINK_FALSE='#'
50538 fi
50539
50540
50541
50542
50543
50544
50545
50546
50547
50548
50549 if test "$GL_GNULIB_SYMLINK" != 1; then
50550 if test "$GL_GNULIB_SYMLINK" = 0; then
50551 GL_GNULIB_SYMLINK=$gl_module_indicator_condition
50552 else
50553 GL_GNULIB_SYMLINK="($GL_GNULIB_SYMLINK || $gl_module_indicator_condition)"
50554 fi
50555 fi
50556
50557
50558
50559
50560
50561 printf "%s\n" "#define GNULIB_TEST_SYMLINK 1" >>confdefs.h
50562
50563
50564
50565
50566
50567
50568
50569
50570
50571
50572
50573
50574
50575
50576
50577
50578
50579
50580
50581
50582
50583
50584
50585
50586
50587
50588
50589
50590
50591
50592
50593
50594
50595
50596
50597
50598
50599
50600
50601
50602
50603
50604 if test $gl_threads_api = posix; then
50605 gl_save_LIBS="$LIBS"
50606 LIBS="$LIBS $LIBMULTITHREAD"
50607 ac_fn_c_check_func "$LINENO" "pthread_atfork" "ac_cv_func_pthread_atfork"
50608 if test "x$ac_cv_func_pthread_atfork" = xyes
50609 then :
50610 printf "%s\n" "#define HAVE_PTHREAD_ATFORK 1" >>confdefs.h
50611
50612 fi
50613
50614 LIBS="$gl_save_LIBS"
50615 fi
50616
50617 ac_fn_c_check_header_compile "$LINENO" "sys/single_threaded.h" "ac_cv_header_sys_single_threaded_h" "$ac_includes_default"
50618 if test "x$ac_cv_header_sys_single_threaded_h" = xyes
50619 then :
50620 printf "%s\n" "#define HAVE_SYS_SINGLE_THREADED_H 1" >>confdefs.h
50621
50622 fi
50623
50624
50625
50626
50627 if test $ac_cv_have_decl_unsetenv = no; then
50628 HAVE_DECL_UNSETENV=0
50629 fi
50630 ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
50631 if test "x$ac_cv_func_unsetenv" = xyes
50632 then :
50633 printf "%s\n" "#define HAVE_UNSETENV 1" >>confdefs.h
50634
50635 fi
50636
50637 if test $ac_cv_func_unsetenv = no; then
50638 HAVE_UNSETENV=0
50639 else
50640 HAVE_UNSETENV=1
50641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for unsetenv() return type" >&5
50642 printf %s "checking for unsetenv() return type... " >&6; }
50643 if test ${gt_cv_func_unsetenv_ret+y}
50644 then :
50645 printf %s "(cached) " >&6
50646 else $as_nop
50647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50648 /* end confdefs.h. */
50649
50650 #undef _BSD
50651 #define _BSD 1 /* unhide unsetenv declaration in OSF/1 5.1 <stdlib.h> */
50652 #include <stdlib.h>
50653 extern
50654 #ifdef __cplusplus
50655 "C"
50656 #endif
50657 int unsetenv (const char *name);
50658
50659 int
50660 main (void)
50661 {
50662
50663 ;
50664 return 0;
50665 }
50666 _ACEOF
50667 if ac_fn_c_try_compile "$LINENO"
50668 then :
50669 gt_cv_func_unsetenv_ret='int'
50670 else $as_nop
50671 gt_cv_func_unsetenv_ret='void'
50672 fi
50673 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
50674 fi
50675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_unsetenv_ret" >&5
50676 printf "%s\n" "$gt_cv_func_unsetenv_ret" >&6; }
50677 if test $gt_cv_func_unsetenv_ret = 'void'; then
50678
50679 printf "%s\n" "#define VOID_UNSETENV 1" >>confdefs.h
50680
50681 REPLACE_UNSETENV=1
50682 fi
50683
50684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether unsetenv obeys POSIX" >&5
50685 printf %s "checking whether unsetenv obeys POSIX... " >&6; }
50686 if test ${gl_cv_func_unsetenv_works+y}
50687 then :
50688 printf %s "(cached) " >&6
50689 else $as_nop
50690 if test "$cross_compiling" = yes
50691 then :
50692 case "$host_os" in
50693 # Guess yes on glibc systems.
50694 *-gnu*) gl_cv_func_unsetenv_works="guessing yes" ;;
50695 # If we don't know, obey --enable-cross-guesses.
50696 *) gl_cv_func_unsetenv_works="$gl_cross_guess_normal" ;;
50697 esac
50698
50699 else $as_nop
50700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50701 /* end confdefs.h. */
50702
50703 #include <stdlib.h>
50704 #include <errno.h>
50705 extern char **environ;
50706
50707
50708 $gl_mda_defines
50709
50710 int
50711 main (void)
50712 {
50713
50714 char entry1[] = "a=1";
50715 char entry2[] = "b=2";
50716 char *env[] = { entry1, entry2, NULL };
50717 if (putenv ((char *) "a=1")) return 1;
50718 if (putenv (entry2)) return 2;
50719 entry2[0] = 'a';
50720 unsetenv ("a");
50721 if (getenv ("a")) return 3;
50722 if (!unsetenv ("") || errno != EINVAL) return 4;
50723 entry2[0] = 'b';
50724 environ = env;
50725 if (!getenv ("a")) return 5;
50726 entry2[0] = 'a';
50727 unsetenv ("a");
50728 if (getenv ("a")) return 6;
50729
50730 ;
50731 return 0;
50732 }
50733 _ACEOF
50734 if ac_fn_c_try_run "$LINENO"
50735 then :
50736 gl_cv_func_unsetenv_works=yes
50737 else $as_nop
50738 gl_cv_func_unsetenv_works=no
50739 fi
50740 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
50741 conftest.$ac_objext conftest.beam conftest.$ac_ext
50742 fi
50743
50744
50745 fi
50746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unsetenv_works" >&5
50747 printf "%s\n" "$gl_cv_func_unsetenv_works" >&6; }
50748 case "$gl_cv_func_unsetenv_works" in
50749 *yes) ;;
50750 *)
50751 REPLACE_UNSETENV=1
50752 ;;
50753 esac
50754 fi
50755
50756
50757 if test $HAVE_UNSETENV = 0 || test $REPLACE_UNSETENV = 1; then
50758 GL_COND_OBJ_UNSETENV_TRUE=
50759 GL_COND_OBJ_UNSETENV_FALSE='#'
50760 else
50761 GL_COND_OBJ_UNSETENV_TRUE='#'
50762 GL_COND_OBJ_UNSETENV_FALSE=
50763 fi
50764 :
50765 if test -z "${GL_COND_OBJ_UNSETENV_TRUE}" && test -z "${GL_COND_OBJ_UNSETENV_FALSE}"; then
50766 GL_COND_OBJ_UNSETENV_TRUE='#'
50767 GL_COND_OBJ_UNSETENV_FALSE='#'
50768 fi
50769
50770 if test -z "$GL_COND_OBJ_UNSETENV_TRUE"; then :
50771
50772
50773
50774
50775
50776
50777 fi
50778
50779
50780
50781
50782
50783
50784
50785
50786
50787 if test "$GL_GNULIB_UNSETENV" != 1; then
50788 if test "$GL_GNULIB_UNSETENV" = 0; then
50789 GL_GNULIB_UNSETENV=$gl_module_indicator_condition
50790 else
50791 GL_GNULIB_UNSETENV="($GL_GNULIB_UNSETENV || $gl_module_indicator_condition)"
50792 fi
50793 fi
50794
50795
50796
50797
50798
50799 printf "%s\n" "#define GNULIB_TEST_UNSETENV 1" >>confdefs.h
50800
50801
50802
50803
50804
50805
50806
50807 ac_fn_c_check_type "$LINENO" "useconds_t" "ac_cv_type_useconds_t" "$ac_includes_default"
50808 if test "x$ac_cv_type_useconds_t" = xyes
50809 then :
50810
50811 else $as_nop
50812
50813 printf "%s\n" "#define useconds_t unsigned int" >>confdefs.h
50814
50815 fi
50816
50817 if test $ac_cv_func_usleep = no; then
50818 HAVE_USLEEP=0
50819 else
50820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether usleep allows large arguments" >&5
50821 printf %s "checking whether usleep allows large arguments... " >&6; }
50822 if test ${gl_cv_func_usleep_works+y}
50823 then :
50824 printf %s "(cached) " >&6
50825 else $as_nop
50826 if test "$cross_compiling" = yes
50827 then :
50828 case "$host_os" in
50829 # Guess yes on glibc systems.
50830 *-gnu* | gnu*) gl_cv_func_usleep_works="guessing yes" ;;
50831 # Guess yes on musl systems.
50832 *-musl*) gl_cv_func_usleep_works="guessing yes" ;;
50833 # Guess no on native Windows.
50834 mingw*) gl_cv_func_usleep_works="guessing no" ;;
50835 # If we don't know, obey --enable-cross-guesses.
50836 *) gl_cv_func_usleep_works="$gl_cross_guess_normal" ;;
50837 esac
50838
50839 else $as_nop
50840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50841 /* end confdefs.h. */
50842
50843 #include <unistd.h>
50844
50845 int
50846 main (void)
50847 {
50848 return !!usleep (1000000);
50849 ;
50850 return 0;
50851 }
50852 _ACEOF
50853 if ac_fn_c_try_run "$LINENO"
50854 then :
50855 gl_cv_func_usleep_works=yes
50856 else $as_nop
50857 gl_cv_func_usleep_works=no
50858 fi
50859 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
50860 conftest.$ac_objext conftest.beam conftest.$ac_ext
50861 fi
50862
50863 fi
50864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_usleep_works" >&5
50865 printf "%s\n" "$gl_cv_func_usleep_works" >&6; }
50866 case "$gl_cv_func_usleep_works" in
50867 *yes) ;;
50868 *)
50869 REPLACE_USLEEP=1
50870 ;;
50871 esac
50872 fi
50873
50874
50875 if test $HAVE_USLEEP = 0 || test $REPLACE_USLEEP = 1; then
50876 GL_COND_OBJ_USLEEP_TRUE=
50877 GL_COND_OBJ_USLEEP_FALSE='#'
50878 else
50879 GL_COND_OBJ_USLEEP_TRUE='#'
50880 GL_COND_OBJ_USLEEP_FALSE=
50881 fi
50882 :
50883 if test -z "${GL_COND_OBJ_USLEEP_TRUE}" && test -z "${GL_COND_OBJ_USLEEP_FALSE}"; then
50884 GL_COND_OBJ_USLEEP_TRUE='#'
50885 GL_COND_OBJ_USLEEP_FALSE='#'
50886 fi
50887
50888
50889
50890
50891
50892
50893
50894
50895
50896
50897 if test "$GL_GNULIB_USLEEP" != 1; then
50898 if test "$GL_GNULIB_USLEEP" = 0; then
50899 GL_GNULIB_USLEEP=$gl_module_indicator_condition
50900 else
50901 GL_GNULIB_USLEEP="($GL_GNULIB_USLEEP || $gl_module_indicator_condition)"
50902 fi
50903 fi
50904
50905
50906
50907
50908
50909 printf "%s\n" "#define GNULIB_TEST_USLEEP 1" >>confdefs.h
50910
50911
50912
50913
50914
50915
50916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
50917 printf %s "checking for a traditional french locale... " >&6; }
50918 if test ${gt_cv_locale_fr+y}
50919 then :
50920 printf %s "(cached) " >&6
50921 else $as_nop
50922
50923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50924 /* end confdefs.h. */
50925
50926 #include <locale.h>
50927 #include <time.h>
50928 #if HAVE_LANGINFO_CODESET
50929 # include <langinfo.h>
50930 #endif
50931 #include <stdlib.h>
50932 #include <string.h>
50933 struct tm t;
50934 char buf[16];
50935 int main () {
50936 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
50937 imitates locale dependent behaviour by looking at the environment
50938 variables, and all locales use the UTF-8 encoding. */
50939 #if defined __BEOS__ || defined __HAIKU__
50940 return 1;
50941 #else
50942 /* Check whether the given locale name is recognized by the system. */
50943 # if defined _WIN32 && !defined __CYGWIN__
50944 /* On native Windows, setlocale(category, "") looks at the system settings,
50945 not at the environment variables. Also, when an encoding suffix such
50946 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
50947 category of the locale to "C". */
50948 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
50949 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
50950 return 1;
50951 # else
50952 if (setlocale (LC_ALL, "") == NULL) return 1;
50953 # endif
50954 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
50955 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
50956 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
50957 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
50958 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
50959 some unit tests fail.
50960 On MirBSD 10, when an unsupported locale is specified, setlocale()
50961 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
50962 # if HAVE_LANGINFO_CODESET
50963 {
50964 const char *cs = nl_langinfo (CODESET);
50965 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
50966 || strcmp (cs, "UTF-8") == 0)
50967 return 1;
50968 }
50969 # endif
50970 # ifdef __CYGWIN__
50971 /* On Cygwin, avoid locale names without encoding suffix, because the
50972 locale_charset() function relies on the encoding suffix. Note that
50973 LC_ALL is set on the command line. */
50974 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
50975 # endif
50976 /* Check whether in the abbreviation of the second month, the second
50977 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
50978 one byte long. This excludes the UTF-8 encoding. */
50979 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
50980 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
50981 # if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
50982 /* Check whether the decimal separator is a comma.
50983 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
50984 are nl_langinfo(RADIXCHAR) are both ".". */
50985 if (localeconv () ->decimal_point[0] != ',') return 1;
50986 # endif
50987 return 0;
50988 #endif
50989 }
50990
50991 _ACEOF
50992 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
50993 (eval $ac_link) 2>&5
50994 ac_status=$?
50995 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
50996 test $ac_status = 0; } && test -s conftest$ac_exeext; then
50997 case "$host_os" in
50998 # Handle native Windows specially, because there setlocale() interprets
50999 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
51000 # "fr" or "fra" as "French" or "French_France.1252",
51001 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
51002 # "ja" as "Japanese" or "Japanese_Japan.932",
51003 # and similar.
51004 mingw*)
51005 # Test for the native Windows locale name.
51006 if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
51007 gt_cv_locale_fr=French_France.1252
51008 else
51009 # None found.
51010 gt_cv_locale_fr=none
51011 fi
51012 ;;
51013 *)
51014 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
51015 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
51016 # configure script would override the LC_ALL setting. Likewise for
51017 # LC_CTYPE, which is also set at the beginning of the configure script.
51018 # Test for the usual locale name.
51019 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
51020 gt_cv_locale_fr=fr_FR
51021 else
51022 # Test for the locale name with explicit encoding suffix.
51023 if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
51024 gt_cv_locale_fr=fr_FR.ISO-8859-1
51025 else
51026 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
51027 if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
51028 gt_cv_locale_fr=fr_FR.ISO8859-1
51029 else
51030 # Test for the HP-UX locale name.
51031 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
51032 gt_cv_locale_fr=fr_FR.iso88591
51033 else
51034 # Test for the Solaris 7 locale name.
51035 if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
51036 gt_cv_locale_fr=fr
51037 else
51038 # None found.
51039 gt_cv_locale_fr=none
51040 fi
51041 fi
51042 fi
51043 fi
51044 fi
51045 ;;
51046 esac
51047 fi
51048 rm -fr conftest*
51049
51050 fi
51051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
51052 printf "%s\n" "$gt_cv_locale_fr" >&6; }
51053 LOCALE_FR=$gt_cv_locale_fr
51054
51055
51056
51057
51058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
51059 printf %s "checking for a french Unicode locale... " >&6; }
51060 if test ${gt_cv_locale_fr_utf8+y}
51061 then :
51062 printf %s "(cached) " >&6
51063 else $as_nop
51064
51065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51066 /* end confdefs.h. */
51067
51068 #include <locale.h>
51069 #include <time.h>
51070 #if HAVE_LANGINFO_CODESET
51071 # include <langinfo.h>
51072 #endif
51073 #include <stdlib.h>
51074 #include <string.h>
51075 struct tm t;
51076 char buf[16];
51077 int main () {
51078 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
51079 imitates locale dependent behaviour by looking at the environment
51080 variables, and all locales use the UTF-8 encoding. */
51081 #if !(defined __BEOS__ || defined __HAIKU__)
51082 /* Check whether the given locale name is recognized by the system. */
51083 # if defined _WIN32 && !defined __CYGWIN__
51084 /* On native Windows, setlocale(category, "") looks at the system settings,
51085 not at the environment variables. Also, when an encoding suffix such
51086 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
51087 category of the locale to "C". */
51088 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
51089 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
51090 return 1;
51091 # else
51092 if (setlocale (LC_ALL, "") == NULL) return 1;
51093 # endif
51094 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
51095 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
51096 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
51097 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
51098 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
51099 some unit tests fail. */
51100 # if HAVE_LANGINFO_CODESET
51101 {
51102 const char *cs = nl_langinfo (CODESET);
51103 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
51104 return 1;
51105 }
51106 # endif
51107 # ifdef __CYGWIN__
51108 /* On Cygwin, avoid locale names without encoding suffix, because the
51109 locale_charset() function relies on the encoding suffix. Note that
51110 LC_ALL is set on the command line. */
51111 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
51112 # endif
51113 /* Check whether in the abbreviation of the second month, the second
51114 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
51115 two bytes long, with UTF-8 encoding. */
51116 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
51117 if (strftime (buf, sizeof (buf), "%b", &t) < 4
51118 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
51119 return 1;
51120 #endif
51121 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
51122 /* Check whether the decimal separator is a comma.
51123 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
51124 are nl_langinfo(RADIXCHAR) are both ".". */
51125 if (localeconv () ->decimal_point[0] != ',') return 1;
51126 #endif
51127 return 0;
51128 }
51129
51130 _ACEOF
51131 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
51132 (eval $ac_link) 2>&5
51133 ac_status=$?
51134 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
51135 test $ac_status = 0; } && test -s conftest$ac_exeext; then
51136 case "$host_os" in
51137 # Handle native Windows specially, because there setlocale() interprets
51138 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
51139 # "fr" or "fra" as "French" or "French_France.1252",
51140 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
51141 # "ja" as "Japanese" or "Japanese_Japan.932",
51142 # and similar.
51143 mingw*)
51144 # Test for the hypothetical native Windows locale name.
51145 if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
51146 gt_cv_locale_fr_utf8=French_France.65001
51147 else
51148 # None found.
51149 gt_cv_locale_fr_utf8=none
51150 fi
51151 ;;
51152 *)
51153 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
51154 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
51155 # configure script would override the LC_ALL setting. Likewise for
51156 # LC_CTYPE, which is also set at the beginning of the configure script.
51157 # Test for the usual locale name.
51158 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
51159 gt_cv_locale_fr_utf8=fr_FR
51160 else
51161 # Test for the locale name with explicit encoding suffix.
51162 if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
51163 gt_cv_locale_fr_utf8=fr_FR.UTF-8
51164 else
51165 # Test for the Solaris 7 locale name.
51166 if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
51167 gt_cv_locale_fr_utf8=fr.UTF-8
51168 else
51169 # None found.
51170 gt_cv_locale_fr_utf8=none
51171 fi
51172 fi
51173 fi
51174 ;;
51175 esac
51176 fi
51177 rm -fr conftest*
51178
51179 fi
51180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
51181 printf "%s\n" "$gt_cv_locale_fr_utf8" >&6; }
51182 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
51183
51184
51185
51186
51187
51188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
51189 printf %s "checking for a traditional japanese locale... " >&6; }
51190 if test ${gt_cv_locale_ja+y}
51191 then :
51192 printf %s "(cached) " >&6
51193 else $as_nop
51194
51195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51196 /* end confdefs.h. */
51197
51198 #include <locale.h>
51199 #include <time.h>
51200 #if HAVE_LANGINFO_CODESET
51201 # include <langinfo.h>
51202 #endif
51203 #include <stdlib.h>
51204 #include <string.h>
51205 struct tm t;
51206 char buf[16];
51207 int main ()
51208 {
51209 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
51210 imitates locale dependent behaviour by looking at the environment
51211 variables, and all locales use the UTF-8 encoding. */
51212 #if defined __BEOS__ || defined __HAIKU__
51213 return 1;
51214 #else
51215 /* Check whether the given locale name is recognized by the system. */
51216 # if defined _WIN32 && !defined __CYGWIN__
51217 /* On native Windows, setlocale(category, "") looks at the system settings,
51218 not at the environment variables. Also, when an encoding suffix such
51219 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
51220 category of the locale to "C". */
51221 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
51222 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
51223 return 1;
51224 # else
51225 if (setlocale (LC_ALL, "") == NULL) return 1;
51226 # endif
51227 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
51228 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
51229 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
51230 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
51231 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
51232 some unit tests fail.
51233 On MirBSD 10, when an unsupported locale is specified, setlocale()
51234 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
51235 # if HAVE_LANGINFO_CODESET
51236 {
51237 const char *cs = nl_langinfo (CODESET);
51238 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
51239 || strcmp (cs, "UTF-8") == 0)
51240 return 1;
51241 }
51242 # endif
51243 # ifdef __CYGWIN__
51244 /* On Cygwin, avoid locale names without encoding suffix, because the
51245 locale_charset() function relies on the encoding suffix. Note that
51246 LC_ALL is set on the command line. */
51247 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
51248 # endif
51249 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales
51250 on Cygwin 1.5.x. */
51251 if (MB_CUR_MAX == 1)
51252 return 1;
51253 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
51254 This excludes the UTF-8 encoding (except on MirBSD). */
51255 {
51256 const char *p;
51257 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
51258 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
51259 for (p = buf; *p != '\0'; p++)
51260 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
51261 return 1;
51262 }
51263 return 0;
51264 #endif
51265 }
51266
51267 _ACEOF
51268 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
51269 (eval $ac_link) 2>&5
51270 ac_status=$?
51271 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
51272 test $ac_status = 0; } && test -s conftest$ac_exeext; then
51273 case "$host_os" in
51274 # Handle native Windows specially, because there setlocale() interprets
51275 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
51276 # "fr" or "fra" as "French" or "French_France.1252",
51277 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
51278 # "ja" as "Japanese" or "Japanese_Japan.932",
51279 # and similar.
51280 mingw*)
51281 # Note that on native Windows, the Japanese locale is
51282 # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
51283 # cannot use it here.
51284 gt_cv_locale_ja=none
51285 ;;
51286 *)
51287 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
51288 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
51289 # configure script would override the LC_ALL setting. Likewise for
51290 # LC_CTYPE, which is also set at the beginning of the configure script.
51291 # Test for the AIX locale name.
51292 if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
51293 gt_cv_locale_ja=ja_JP
51294 else
51295 # Test for the locale name with explicit encoding suffix.
51296 if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
51297 gt_cv_locale_ja=ja_JP.EUC-JP
51298 else
51299 # Test for the HP-UX, OSF/1, NetBSD locale name.
51300 if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
51301 gt_cv_locale_ja=ja_JP.eucJP
51302 else
51303 # Test for the IRIX, FreeBSD locale name.
51304 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
51305 gt_cv_locale_ja=ja_JP.EUC
51306 else
51307 # Test for the Solaris 7 locale name.
51308 if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
51309 gt_cv_locale_ja=ja
51310 else
51311 # Special test for NetBSD 1.6.
51312 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
51313 gt_cv_locale_ja=ja_JP.eucJP
51314 else
51315 # None found.
51316 gt_cv_locale_ja=none
51317 fi
51318 fi
51319 fi
51320 fi
51321 fi
51322 fi
51323 ;;
51324 esac
51325 fi
51326 rm -fr conftest*
51327
51328 fi
51329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
51330 printf "%s\n" "$gt_cv_locale_ja" >&6; }
51331 LOCALE_JA=$gt_cv_locale_ja
51332
51333
51334
51335
51336
51337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
51338 printf %s "checking for a transitional chinese locale... " >&6; }
51339 if test ${gt_cv_locale_zh_CN+y}
51340 then :
51341 printf %s "(cached) " >&6
51342 else $as_nop
51343
51344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51345 /* end confdefs.h. */
51346
51347 #include <locale.h>
51348 #include <stdlib.h>
51349 #include <time.h>
51350 #if HAVE_LANGINFO_CODESET
51351 # include <langinfo.h>
51352 #endif
51353 #include <stdlib.h>
51354 #include <string.h>
51355 struct tm t;
51356 char buf[16];
51357 int main ()
51358 {
51359 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
51360 imitates locale dependent behaviour by looking at the environment
51361 variables, and all locales use the UTF-8 encoding. */
51362 #if defined __BEOS__ || defined __HAIKU__
51363 return 1;
51364 #else
51365 /* Check whether the given locale name is recognized by the system. */
51366 # if defined _WIN32 && !defined __CYGWIN__
51367 /* On native Windows, setlocale(category, "") looks at the system settings,
51368 not at the environment variables. Also, when an encoding suffix such
51369 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
51370 category of the locale to "C". */
51371 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
51372 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
51373 return 1;
51374 # else
51375 if (setlocale (LC_ALL, "") == NULL) return 1;
51376 # endif
51377 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
51378 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
51379 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
51380 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
51381 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
51382 some unit tests fail.
51383 On MirBSD 10, when an unsupported locale is specified, setlocale()
51384 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
51385 # if HAVE_LANGINFO_CODESET
51386 {
51387 const char *cs = nl_langinfo (CODESET);
51388 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
51389 || strcmp (cs, "UTF-8") == 0)
51390 return 1;
51391 }
51392 # endif
51393 # ifdef __CYGWIN__
51394 /* On Cygwin, avoid locale names without encoding suffix, because the
51395 locale_charset() function relies on the encoding suffix. Note that
51396 LC_ALL is set on the command line. */
51397 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
51398 # endif
51399 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
51400 This excludes the UTF-8 encoding (except on MirBSD). */
51401 {
51402 const char *p;
51403 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
51404 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
51405 for (p = buf; *p != '\0'; p++)
51406 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
51407 return 1;
51408 }
51409 /* Check whether a typical GB18030 multibyte sequence is recognized as a
51410 single wide character. This excludes the GB2312 and GBK encodings. */
51411 if (mblen ("\203\062\332\066", 5) != 4)
51412 return 1;
51413 return 0;
51414 #endif
51415 }
51416
51417 _ACEOF
51418 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
51419 (eval $ac_link) 2>&5
51420 ac_status=$?
51421 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
51422 test $ac_status = 0; } && test -s conftest$ac_exeext; then
51423 case "$host_os" in
51424 # Handle native Windows specially, because there setlocale() interprets
51425 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
51426 # "fr" or "fra" as "French" or "French_France.1252",
51427 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
51428 # "ja" as "Japanese" or "Japanese_Japan.932",
51429 # and similar.
51430 mingw*)
51431 # Test for the hypothetical native Windows locale name.
51432 if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
51433 gt_cv_locale_zh_CN=Chinese_China.54936
51434 else
51435 # None found.
51436 gt_cv_locale_zh_CN=none
51437 fi
51438 ;;
51439 solaris2.8)
51440 # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
51441 # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
51442 # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
51443 gt_cv_locale_zh_CN=none
51444 ;;
51445 *)
51446 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
51447 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
51448 # configure script would override the LC_ALL setting. Likewise for
51449 # LC_CTYPE, which is also set at the beginning of the configure script.
51450 # Test for the locale name without encoding suffix.
51451 if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
51452 gt_cv_locale_zh_CN=zh_CN
51453 else
51454 # Test for the locale name with explicit encoding suffix.
51455 if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
51456 gt_cv_locale_zh_CN=zh_CN.GB18030
51457 else
51458 # None found.
51459 gt_cv_locale_zh_CN=none
51460 fi
51461 fi
51462 ;;
51463 esac
51464 else
51465 # If there was a link error, due to mblen(), the system is so old that
51466 # it certainly doesn't have a chinese locale.
51467 gt_cv_locale_zh_CN=none
51468 fi
51469 rm -fr conftest*
51470
51471 fi
51472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
51473 printf "%s\n" "$gt_cv_locale_zh_CN" >&6; }
51474 LOCALE_ZH_CN=$gt_cv_locale_zh_CN
51475
51476
51477
51478
51479
51480
51481 if test $ac_cv_func_wctob = no; then
51482 HAVE_WCTOB=0
51483 HAVE_DECL_WCTOB=0
51484 else
51485 HAVE_WCTOB=1
51486
51487
51488
51489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether wctob works" >&5
51490 printf %s "checking whether wctob works... " >&6; }
51491 if test ${gl_cv_func_wctob_works+y}
51492 then :
51493 printf %s "(cached) " >&6
51494 else $as_nop
51495
51496 case "$host_os" in
51497 # Guess no on Solaris <= 9 and Cygwin.
51498 solaris2.[1-9] | solaris2.[1-9].* | cygwin*)
51499 gl_cv_func_wctob_works="guessing no" ;;
51500 # Guess no on native Windows.
51501 mingw*)
51502 gl_cv_func_wctob_works="guessing no" ;;
51503 # Guess yes otherwise.
51504 *) gl_cv_func_wctob_works="guessing yes" ;;
51505 esac
51506 case "$host_os" in
51507 cygwin*)
51508 if test "$cross_compiling" = yes
51509 then :
51510 :
51511 else $as_nop
51512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51513 /* end confdefs.h. */
51514
51515 #include <locale.h>
51516 #include <wchar.h>
51517
51518 register long global __asm__ ("%ebx");
51519
51520 int main ()
51521 {
51522 setlocale (LC_ALL, "en_US.UTF-8");
51523
51524 global = 0x12345678;
51525 if (wctob (0x00FC) != -1)
51526 return 1;
51527 if (global != 0x12345678)
51528 return 2;
51529 return 0;
51530 }
51531 _ACEOF
51532 if ac_fn_c_try_run "$LINENO"
51533 then :
51534 :
51535 else $as_nop
51536 gl_cv_func_wctob_works=no
51537 fi
51538 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
51539 conftest.$ac_objext conftest.beam conftest.$ac_ext
51540 fi
51541
51542 ;;
51543 esac
51544 if test "$gl_cv_func_wctob_works" != no && test $LOCALE_FR != none; then
51545 if test "$cross_compiling" = yes
51546 then :
51547 :
51548 else $as_nop
51549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51550 /* end confdefs.h. */
51551
51552 #include <locale.h>
51553 #include <stdlib.h>
51554 #include <wchar.h>
51555 int main ()
51556 {
51557 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
51558 {
51559 wchar_t wc;
51560
51561 if (mbtowc (&wc, "\374", 1) == 1)
51562 if (wctob (wc) != (unsigned char) '\374')
51563 return 1;
51564 }
51565 return 0;
51566 }
51567 _ACEOF
51568 if ac_fn_c_try_run "$LINENO"
51569 then :
51570 gl_cv_func_wctob_works=yes
51571 else $as_nop
51572 gl_cv_func_wctob_works=no
51573 fi
51574 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
51575 conftest.$ac_objext conftest.beam conftest.$ac_ext
51576 fi
51577
51578 fi
51579
51580 fi
51581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wctob_works" >&5
51582 printf "%s\n" "$gl_cv_func_wctob_works" >&6; }
51583 case "$gl_cv_func_wctob_works" in
51584 *yes) ;;
51585 *) REPLACE_WCTOB=1 ;;
51586 esac
51587 if test $REPLACE_WCTOB = 0; then
51588
51589 ac_fn_check_decl "$LINENO" "wctob" "ac_cv_have_decl_wctob" "
51590 #include <wchar.h>
51591
51592 " "$ac_c_undeclared_builtin_options" "CFLAGS"
51593 if test "x$ac_cv_have_decl_wctob" = xyes
51594 then :
51595 ac_have_decl=1
51596 else $as_nop
51597 ac_have_decl=0
51598 fi
51599 printf "%s\n" "#define HAVE_DECL_WCTOB $ac_have_decl" >>confdefs.h
51600
51601 if test $ac_cv_have_decl_wctob != yes; then
51602 HAVE_DECL_WCTOB=0
51603 fi
51604 fi
51605 fi
51606
51607
51608 if test $HAVE_WCTOB = 0 || test $REPLACE_WCTOB = 1; then
51609 GL_COND_OBJ_WCTOB_TRUE=
51610 GL_COND_OBJ_WCTOB_FALSE='#'
51611 else
51612 GL_COND_OBJ_WCTOB_TRUE='#'
51613 GL_COND_OBJ_WCTOB_FALSE=
51614 fi
51615 :
51616 if test -z "${GL_COND_OBJ_WCTOB_TRUE}" && test -z "${GL_COND_OBJ_WCTOB_FALSE}"; then
51617 GL_COND_OBJ_WCTOB_TRUE='#'
51618 GL_COND_OBJ_WCTOB_FALSE='#'
51619 fi
51620
51621 if test -z "$GL_COND_OBJ_WCTOB_TRUE"; then :
51622
51623
51624 :
51625
51626
51627 fi
51628
51629
51630
51631
51632
51633
51634
51635
51636
51637
51638
51639
51640
51641
51642 if test "$GL_GNULIB_WCTOB" != 1; then
51643 if test "$GL_GNULIB_WCTOB" = 0; then
51644 GL_GNULIB_WCTOB=$gl_module_indicator_condition
51645 else
51646 GL_GNULIB_WCTOB="($GL_GNULIB_WCTOB || $gl_module_indicator_condition)"
51647 fi
51648 fi
51649
51650
51651
51652
51653
51654 printf "%s\n" "#define GNULIB_TEST_WCTOB 1" >>confdefs.h
51655
51656
51657
51658
51659
51660
51661 if false; then
51662 REPLACE_WCTOMB=1
51663 fi
51664
51665
51666 if test $REPLACE_WCTOMB = 1; then
51667 GL_COND_OBJ_WCTOMB_TRUE=
51668 GL_COND_OBJ_WCTOMB_FALSE='#'
51669 else
51670 GL_COND_OBJ_WCTOMB_TRUE='#'
51671 GL_COND_OBJ_WCTOMB_FALSE=
51672 fi
51673 :
51674 if test -z "${GL_COND_OBJ_WCTOMB_TRUE}" && test -z "${GL_COND_OBJ_WCTOMB_FALSE}"; then
51675 GL_COND_OBJ_WCTOMB_TRUE='#'
51676 GL_COND_OBJ_WCTOMB_FALSE='#'
51677 fi
51678
51679 if test -z "$GL_COND_OBJ_WCTOMB_TRUE"; then :
51680
51681
51682 :
51683
51684
51685 fi
51686
51687
51688
51689
51690
51691
51692
51693
51694
51695 if test "$GL_GNULIB_WCTOMB" != 1; then
51696 if test "$GL_GNULIB_WCTOMB" = 0; then
51697 GL_GNULIB_WCTOMB=$gl_module_indicator_condition
51698 else
51699 GL_GNULIB_WCTOMB="($GL_GNULIB_WCTOMB || $gl_module_indicator_condition)"
51700 fi
51701 fi
51702
51703
51704
51705
51706
51707 printf "%s\n" "#define GNULIB_TEST_WCTOMB 1" >>confdefs.h
51708
51709
51710
51711
51712
51713 if case "$host_os" in mingw*) true;; *) false;; esac; then
51714 GL_COND_OBJ_WINDOWS_THREAD_TRUE=
51715 GL_COND_OBJ_WINDOWS_THREAD_FALSE='#'
51716 else
51717 GL_COND_OBJ_WINDOWS_THREAD_TRUE='#'
51718 GL_COND_OBJ_WINDOWS_THREAD_FALSE=
51719 fi
51720 :
51721 if test -z "${GL_COND_OBJ_WINDOWS_THREAD_TRUE}" && test -z "${GL_COND_OBJ_WINDOWS_THREAD_FALSE}"; then
51722 GL_COND_OBJ_WINDOWS_THREAD_TRUE='#'
51723 GL_COND_OBJ_WINDOWS_THREAD_FALSE='#'
51724 fi
51725
51726
51727
51728 if case "$host_os" in mingw*) true;; *) false;; esac; then
51729 GL_COND_OBJ_WINDOWS_TLS_TRUE=
51730 GL_COND_OBJ_WINDOWS_TLS_FALSE='#'
51731 else
51732 GL_COND_OBJ_WINDOWS_TLS_TRUE='#'
51733 GL_COND_OBJ_WINDOWS_TLS_FALSE=
51734 fi
51735 :
51736 if test -z "${GL_COND_OBJ_WINDOWS_TLS_TRUE}" && test -z "${GL_COND_OBJ_WINDOWS_TLS_FALSE}"; then
51737 GL_COND_OBJ_WINDOWS_TLS_TRUE='#'
51738 GL_COND_OBJ_WINDOWS_TLS_FALSE='#'
51739 fi
51740
51741
51742
51743
51744
51745
51746
51747
51748
51749
51750
51751
51752
51753
51754
51755 LIBTESTS_LIBDEPS="$gltests_libdeps"
51756
51757
51758
51759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we should run the GNUlib tests" >&5
51760 printf %s "checking if we should run the GNUlib tests... " >&6; }
51761 # Check whether --enable-gnulib-tests was given.
51762 if test ${enable_gnulib_tests+y}
51763 then :
51764 enableval=$enable_gnulib_tests; ENABLE_GNULIB_TESTS="$enableval"
51765 else $as_nop
51766 ENABLE_GNULIB_TESTS=yes
51767 fi
51768
51769 if test "x$ENABLE_GNULIB_TESTS" = "xyes"; then
51770 ENABLE_GNULIB_TESTS_TRUE=
51771 ENABLE_GNULIB_TESTS_FALSE='#'
51772 else
51773 ENABLE_GNULIB_TESTS_TRUE='#'
51774 ENABLE_GNULIB_TESTS_FALSE=
51775 fi
51776
51777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ENABLE_GNULIB_TESTS" >&5
51778 printf "%s\n" "$ENABLE_GNULIB_TESTS" >&6; }
51779
51780 PC_SELINUX=$(echo $LIB_SELINUX | sed -e 's/-l/lib/')
51781
51782
51783
51784
51785
51786
51787
51788
51789
51790 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
51791 if test -n "$ac_tool_prefix"; then
51792 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
51793 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
51794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
51795 printf %s "checking for $ac_word... " >&6; }
51796 if test ${ac_cv_path_PKG_CONFIG+y}
51797 then :
51798 printf %s "(cached) " >&6
51799 else $as_nop
51800 case $PKG_CONFIG in
51801 [\\/]* | ?:[\\/]*)
51802 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
51803 ;;
51804 *)
51805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51806 for as_dir in $PATH
51807 do
51808 IFS=$as_save_IFS
51809 case $as_dir in #(((
51810 '') as_dir=./ ;;
51811 */) ;;
51812 *) as_dir=$as_dir/ ;;
51813 esac
51814 for ac_exec_ext in '' $ac_executable_extensions; do
51815 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
51816 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
51817 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
51818 break 2
51819 fi
51820 done
51821 done
51822 IFS=$as_save_IFS
51823
51824 ;;
51825 esac
51826 fi
51827 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
51828 if test -n "$PKG_CONFIG"; then
51829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
51830 printf "%s\n" "$PKG_CONFIG" >&6; }
51831 else
51832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
51833 printf "%s\n" "no" >&6; }
51834 fi
51835
51836
51837 fi
51838 if test -z "$ac_cv_path_PKG_CONFIG"; then
51839 ac_pt_PKG_CONFIG=$PKG_CONFIG
51840 # Extract the first word of "pkg-config", so it can be a program name with args.
51841 set dummy pkg-config; ac_word=$2
51842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
51843 printf %s "checking for $ac_word... " >&6; }
51844 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
51845 then :
51846 printf %s "(cached) " >&6
51847 else $as_nop
51848 case $ac_pt_PKG_CONFIG in
51849 [\\/]* | ?:[\\/]*)
51850 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
51851 ;;
51852 *)
51853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51854 for as_dir in $PATH
51855 do
51856 IFS=$as_save_IFS
51857 case $as_dir in #(((
51858 '') as_dir=./ ;;
51859 */) ;;
51860 *) as_dir=$as_dir/ ;;
51861 esac
51862 for ac_exec_ext in '' $ac_executable_extensions; do
51863 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
51864 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
51865 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
51866 break 2
51867 fi
51868 done
51869 done
51870 IFS=$as_save_IFS
51871
51872 ;;
51873 esac
51874 fi
51875 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
51876 if test -n "$ac_pt_PKG_CONFIG"; then
51877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
51878 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
51879 else
51880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
51881 printf "%s\n" "no" >&6; }
51882 fi
51883
51884 if test "x$ac_pt_PKG_CONFIG" = x; then
51885 PKG_CONFIG=""
51886 else
51887 case $cross_compiling:$ac_tool_warned in
51888 yes:)
51889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
51890 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
51891 ac_tool_warned=yes ;;
51892 esac
51893 PKG_CONFIG=$ac_pt_PKG_CONFIG
51894 fi
51895 else
51896 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
51897 fi
51898
51899 fi
51900 if test -n "$PKG_CONFIG"; then
51901 _pkg_min_version=0.9.0
51902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
51903 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
51904 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
51905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
51906 printf "%s\n" "yes" >&6; }
51907 else
51908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
51909 printf "%s\n" "no" >&6; }
51910 PKG_CONFIG=""
51911 fi
51912 fi
51913
51914 pkg_failed=no
51915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LIBXML" >&5
51916 printf %s "checking for LIBXML... " >&6; }
51917
51918 if test -n "$LIBXML_CFLAGS"; then
51919 pkg_cv_LIBXML_CFLAGS="$LIBXML_CFLAGS"
51920 elif test -n "$PKG_CONFIG"; then
51921 if test -n "$PKG_CONFIG" && \
51922 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5
51923 ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
51924 ac_status=$?
51925 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
51926 test $ac_status = 0; }; then
51927 pkg_cv_LIBXML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0" 2>/dev/null`
51928 test "x$?" != "x0" && pkg_failed=yes
51929 else
51930 pkg_failed=yes
51931 fi
51932 else
51933 pkg_failed=untried
51934 fi
51935 if test -n "$LIBXML_LIBS"; then
51936 pkg_cv_LIBXML_LIBS="$LIBXML_LIBS"
51937 elif test -n "$PKG_CONFIG"; then
51938 if test -n "$PKG_CONFIG" && \
51939 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5
51940 ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
51941 ac_status=$?
51942 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
51943 test $ac_status = 0; }; then
51944 pkg_cv_LIBXML_LIBS=`$PKG_CONFIG --libs "libxml-2.0" 2>/dev/null`
51945 test "x$?" != "x0" && pkg_failed=yes
51946 else
51947 pkg_failed=yes
51948 fi
51949 else
51950 pkg_failed=untried
51951 fi
51952
51953
51954
51955 if test $pkg_failed = yes; then
51956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
51957 printf "%s\n" "no" >&6; }
51958
51959 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
51960 _pkg_short_errors_supported=yes
51961 else
51962 _pkg_short_errors_supported=no
51963 fi
51964 if test $_pkg_short_errors_supported = yes; then
51965 LIBXML_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0" 2>&1`
51966 else
51967 LIBXML_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0" 2>&1`
51968 fi
51969 # Put the nasty error message in config.log where it belongs
51970 echo "$LIBXML_PKG_ERRORS" >&5
51971
51972 as_fn_error $? "Package requirements (libxml-2.0) were not met:
51973
51974 $LIBXML_PKG_ERRORS
51975
51976 Consider adjusting the PKG_CONFIG_PATH environment variable if you
51977 installed software in a non-standard prefix.
51978
51979 Alternatively, you may set the environment variables LIBXML_CFLAGS
51980 and LIBXML_LIBS to avoid the need to call pkg-config.
51981 See the pkg-config man page for more details." "$LINENO" 5
51982 elif test $pkg_failed = untried; then
51983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
51984 printf "%s\n" "no" >&6; }
51985 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
51986 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
51987 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
51988 is in your PATH or set the PKG_CONFIG environment variable to the full
51989 path to pkg-config.
51990
51991 Alternatively, you may set the environment variables LIBXML_CFLAGS
51992 and LIBXML_LIBS to avoid the need to call pkg-config.
51993 See the pkg-config man page for more details.
51994
51995 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
51996 See \`config.log' for more details" "$LINENO" 5; }
51997 else
51998 LIBXML_CFLAGS=$pkg_cv_LIBXML_CFLAGS
51999 LIBXML_LIBS=$pkg_cv_LIBXML_LIBS
52000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
52001 printf "%s\n" "yes" >&6; }
52002
52003 fi
52004
52005 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
52006 if test "x$ac_cv_func_strerror_r" = xyes
52007 then :
52008 printf "%s\n" "#define HAVE_STRERROR_R 1" >>confdefs.h
52009
52010 fi
52011 ac_fn_c_check_func "$LINENO" "fsync" "ac_cv_func_fsync"
52012 if test "x$ac_cv_func_fsync" = xyes
52013 then :
52014 printf "%s\n" "#define HAVE_FSYNC 1" >>confdefs.h
52015
52016 fi
52017
52018
52019 ac_config_files="$ac_config_files Makefile gnulib/lib/Makefile gnulib/tests/Makefile src/Makefile man/Makefile tests/Makefile examples/Makefile doc/Makefile doc/naturaldocs/Makefile augeas.pc augeas.spec"
52020
52021 cat >confcache <<\_ACEOF
52022 # This file is a shell script that caches the results of configure
52023 # tests run on this system so they can be shared between configure
52024 # scripts and configure runs, see configure's option --config-cache.
52025 # It is not useful on other systems. If it contains results you don't
52026 # want to keep, you may remove or edit it.
52027 #
52028 # config.status only pays attention to the cache file if you give it
52029 # the --recheck option to rerun configure.
52030 #
52031 # `ac_cv_env_foo' variables (set or unset) will be overridden when
52032 # loading this file, other *unset* `ac_cv_foo' will be assigned the
52033 # following values.
52034
52035 _ACEOF
52036
52037 # The following way of writing the cache mishandles newlines in values,
52038 # but we know of no workaround that is simple, portable, and efficient.
52039 # So, we kill variables containing newlines.
52040 # Ultrix sh set writes to stderr and can't be redirected directly,
52041 # and sets the high bit in the cache file unless we assign to the vars.
52042 (
52043 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
52044 eval ac_val=\$$ac_var
52045 case $ac_val in #(
52046 *${as_nl}*)
52047 case $ac_var in #(
52048 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
52049 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
52050 esac
52051 case $ac_var in #(
52052 _ | IFS | as_nl) ;; #(
52053 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
52054 *) { eval $ac_var=; unset $ac_var;} ;;
52055 esac ;;
52056 esac
52057 done
52058
52059 (set) 2>&1 |
52060 case $as_nl`(ac_space=' '; set) 2>&1` in #(
52061 *${as_nl}ac_space=\ *)
52062 # `set' does not quote correctly, so add quotes: double-quote
52063 # substitution turns \\\\ into \\, and sed turns \\ into \.
52064 sed -n \
52065 "s/'/'\\\\''/g;
52066 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
52067 ;; #(
52068 *)
52069 # `set' quotes correctly as required by POSIX, so do not add quotes.
52070 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
52071 ;;
52072 esac |
52073 sort
52074 ) |
52075 sed '
52076 /^ac_cv_env_/b end
52077 t clear
52078 :clear
52079 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
52080 t end
52081 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
52082 :end' >>confcache
52083 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
52084 if test -w "$cache_file"; then
52085 if test "x$cache_file" != "x/dev/null"; then
52086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
52087 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
52088 if test ! -f "$cache_file" || test -h "$cache_file"; then
52089 cat confcache >"$cache_file"
52090 else
52091 case $cache_file in #(
52092 */* | ?:*)
52093 mv -f confcache "$cache_file"$$ &&
52094 mv -f "$cache_file"$$ "$cache_file" ;; #(
52095 *)
52096 mv -f confcache "$cache_file" ;;
52097 esac
52098 fi
52099 fi
52100 else
52101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
52102 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
52103 fi
52104 fi
52105 rm -f confcache
52106
52107 test "x$prefix" = xNONE && prefix=$ac_default_prefix
52108 # Let make expand exec_prefix.
52109 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
52110
52111 DEFS=-DHAVE_CONFIG_H
52112
52113 ac_libobjs=
52114 ac_ltlibobjs=
52115 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
52116 # 1. Remove the extension, and $U if already installed.
52117 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
52118 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
52119 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
52120 # will be set to the directory where LIBOBJS objects are built.
52121 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
52122 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
52123 done
52124 LIBOBJS=$ac_libobjs
52125
52126 LTLIBOBJS=$ac_ltlibobjs
52127
52128
52129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
52130 printf %s "checking that generated files are newer than configure... " >&6; }
52131 if test -n "$am_sleep_pid"; then
52132 # Hide warnings about reused PIDs.
52133 wait $am_sleep_pid 2>/dev/null
52134 fi
52135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
52136 printf "%s\n" "done" >&6; }
52137 if test -n "$EXEEXT"; then
52138 am__EXEEXT_TRUE=
52139 am__EXEEXT_FALSE='#'
52140 else
52141 am__EXEEXT_TRUE='#'
52142 am__EXEEXT_FALSE=
52143 fi
52144
52145 if test -z "${ND_ENABLED_TRUE}" && test -z "${ND_ENABLED_FALSE}"; then
52146 as_fn_error $? "conditional \"ND_ENABLED\" was never defined.
52147 Usually this means the macro was only invoked conditionally." "$LINENO" 5
52148 fi
52149 if test -z "${WITH_FAILMALLOC_TRUE}" && test -z "${WITH_FAILMALLOC_FALSE}"; then
52150 as_fn_error $? "conditional \"WITH_FAILMALLOC\" was never defined.
52151 Usually this means the macro was only invoked conditionally." "$LINENO" 5
52152 fi
52153 if test -z "${ENABLE_DEBUG_TRUE}" && test -z "${ENABLE_DEBUG_FALSE}"; then
52154 as_fn_error $? "conditional \"ENABLE_DEBUG\" was never defined.
52155 Usually this means the macro was only invoked conditionally." "$LINENO" 5
52156 fi
52157 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
52158 as_fn_error $? "conditional \"AMDEP\" was never defined.
52159 Usually this means the macro was only invoked conditionally." "$LINENO" 5
52160 fi
52161 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
52162 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
52163 Usually this means the macro was only invoked conditionally." "$LINENO" 5
52164 fi
52165 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
52166 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
52167 Usually this means the macro was only invoked conditionally." "$LINENO" 5
52168 fi
52169 if test -z "${USE_VERSION_SCRIPT_TRUE}" && test -z "${USE_VERSION_SCRIPT_FALSE}"; then
52170 as_fn_error $? "conditional \"USE_VERSION_SCRIPT\" was never defined.
52171 Usually this means the macro was only invoked conditionally." "$LINENO" 5
52172 fi
52173 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
52174 as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
52175 Usually this means the macro was only invoked conditionally." "$LINENO" 5
52176 fi
52177
52178
52179 gl_libobjs=
52180 gl_ltlibobjs=
52181 gl_libobjdeps=
52182 if test -n "$gl_LIBOBJS"; then
52183 # Remove the extension.
52184 sed_drop_objext='s/\.o$//;s/\.obj$//'
52185 sed_dirname1='s,//*,/,g'
52186 sed_dirname2='s,\(.\)/$,\1,'
52187 sed_dirname3='s,^[^/]*$,.,'
52188 sed_dirname4='s,\(.\)/[^/]*$,\1,'
52189 sed_basename1='s,.*/,,'
52190 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
52191 gl_libobjs="$gl_libobjs $i.$ac_objext"
52192 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
52193 i_dir=`echo "$i" | sed -e "$sed_dirname1" -e "$sed_dirname2" -e "$sed_dirname3" -e "$sed_dirname4"`
52194 i_base=`echo "$i" | sed -e "$sed_basename1"`
52195 gl_libobjdeps="$gl_libobjdeps $i_dir/\$(DEPDIR)/$i_base.Plo"
52196 done
52197 fi
52198 gl_LIBOBJS=$gl_libobjs
52199
52200 gl_LTLIBOBJS=$gl_ltlibobjs
52201
52202 gl_LIBOBJDEPS=$gl_libobjdeps
52203
52204
52205
52206
52207 gltests_libobjs=
52208 gltests_ltlibobjs=
52209 gltests_libobjdeps=
52210 if test -n "$gltests_LIBOBJS"; then
52211 # Remove the extension.
52212 sed_drop_objext='s/\.o$//;s/\.obj$//'
52213 sed_dirname1='s,//*,/,g'
52214 sed_dirname2='s,\(.\)/$,\1,'
52215 sed_dirname3='s,^[^/]*$,.,'
52216 sed_dirname4='s,\(.\)/[^/]*$,\1,'
52217 sed_basename1='s,.*/,,'
52218 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
52219 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
52220 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
52221 i_dir=`echo "$i" | sed -e "$sed_dirname1" -e "$sed_dirname2" -e "$sed_dirname3" -e "$sed_dirname4"`
52222 i_base=`echo "$i" | sed -e "$sed_basename1"`
52223 gltests_libobjdeps="$gltests_libobjdeps $i_dir/\$(DEPDIR)/$i_base.Plo"
52224 done
52225 fi
52226 gltests_LIBOBJS=$gltests_libobjs
52227
52228 gltests_LTLIBOBJS=$gltests_ltlibobjs
52229
52230 gltests_LIBOBJDEPS=$gltests_libobjdeps
52231
52232
52233 if test -z "${ENABLE_GNULIB_TESTS_TRUE}" && test -z "${ENABLE_GNULIB_TESTS_FALSE}"; then
52234 as_fn_error $? "conditional \"ENABLE_GNULIB_TESTS\" was never defined.
52235 Usually this means the macro was only invoked conditionally." "$LINENO" 5
52236 fi
52237
52238 : "${CONFIG_STATUS=./config.status}"
52239 ac_write_fail=0
52240 ac_clean_files_save=$ac_clean_files
52241 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
52242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
52243 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
52244 as_write_fail=0
52245 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
52246 #! $SHELL
52247 # Generated by $as_me.
52248 # Run this file to recreate the current configuration.
52249 # Compiler output produced by configure, useful for debugging
52250 # configure, is in config.log if it exists.
52251
52252 debug=false
52253 ac_cs_recheck=false
52254 ac_cs_silent=false
52255
52256 SHELL=\${CONFIG_SHELL-$SHELL}
52257 export SHELL
52258 _ASEOF
52259 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
52260 ## -------------------- ##
52261 ## M4sh Initialization. ##
52262 ## -------------------- ##
52263
52264 # Be more Bourne compatible
52265 DUALCASE=1; export DUALCASE # for MKS sh
52266 as_nop=:
52267 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
52268 then :
52269 emulate sh
52270 NULLCMD=:
52271 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
52272 # is contrary to our usage. Disable this feature.
52273 alias -g '${1+"$@"}'='"$@"'
52274 setopt NO_GLOB_SUBST
52275 else $as_nop
52276 case `(set -o) 2>/dev/null` in #(
52277 *posix*) :
52278 set -o posix ;; #(
52279 *) :
52280 ;;
52281 esac
52282 fi
52283
52284
52285
52286 # Reset variables that may have inherited troublesome values from
52287 # the environment.
52288
52289 # IFS needs to be set, to space, tab, and newline, in precisely that order.
52290 # (If _AS_PATH_WALK were called with IFS unset, it would have the
52291 # side effect of setting IFS to empty, thus disabling word splitting.)
52292 # Quoting is to prevent editors from complaining about space-tab.
52293 as_nl='
52294 '
52295 export as_nl
52296 IFS=" "" $as_nl"
52297
52298 PS1='$ '
52299 PS2='> '
52300 PS4='+ '
52301
52302 # Ensure predictable behavior from utilities with locale-dependent output.
52303 LC_ALL=C
52304 export LC_ALL
52305 LANGUAGE=C
52306 export LANGUAGE
52307
52308 # We cannot yet rely on "unset" to work, but we need these variables
52309 # to be unset--not just set to an empty or harmless value--now, to
52310 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
52311 # also avoids known problems related to "unset" and subshell syntax
52312 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
52313 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
52314 do eval test \${$as_var+y} \
52315 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
52316 done
52317
52318 # Ensure that fds 0, 1, and 2 are open.
52319 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
52320 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
52321 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
52322
52323 # The user is always right.
52324 if ${PATH_SEPARATOR+false} :; then
52325 PATH_SEPARATOR=:
52326 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
52327 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
52328 PATH_SEPARATOR=';'
52329 }
52330 fi
52331
52332
52333 # Find who we are. Look in the path if we contain no directory separator.
52334 as_myself=
52335 case $0 in #((
52336 *[\\/]* ) as_myself=$0 ;;
52337 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
52338 for as_dir in $PATH
52339 do
52340 IFS=$as_save_IFS
52341 case $as_dir in #(((
52342 '') as_dir=./ ;;
52343 */) ;;
52344 *) as_dir=$as_dir/ ;;
52345 esac
52346 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
52347 done
52348 IFS=$as_save_IFS
52349
52350 ;;
52351 esac
52352 # We did not find ourselves, most probably we were run as `sh COMMAND'
52353 # in which case we are not to be found in the path.
52354 if test "x$as_myself" = x; then
52355 as_myself=$0
52356 fi
52357 if test ! -f "$as_myself"; then
52358 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
52359 exit 1
52360 fi
52361
52362
52363
52364 # as_fn_error STATUS ERROR [LINENO LOG_FD]
52365 # ----------------------------------------
52366 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
52367 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
52368 # script with STATUS, using 1 if that was 0.
52369 as_fn_error ()
52370 {
52371 as_status=$1; test $as_status -eq 0 && as_status=1
52372 if test "$4"; then
52373 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
52374 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
52375 fi
52376 printf "%s\n" "$as_me: error: $2" >&2
52377 as_fn_exit $as_status
52378 } # as_fn_error
52379
52380
52381
52382 # as_fn_set_status STATUS
52383 # -----------------------
52384 # Set $? to STATUS, without forking.
52385 as_fn_set_status ()
52386 {
52387 return $1
52388 } # as_fn_set_status
52389
52390 # as_fn_exit STATUS
52391 # -----------------
52392 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
52393 as_fn_exit ()
52394 {
52395 set +e
52396 as_fn_set_status $1
52397 exit $1
52398 } # as_fn_exit
52399
52400 # as_fn_unset VAR
52401 # ---------------
52402 # Portably unset VAR.
52403 as_fn_unset ()
52404 {
52405 { eval $1=; unset $1;}
52406 }
52407 as_unset=as_fn_unset
52408
52409 # as_fn_append VAR VALUE
52410 # ----------------------
52411 # Append the text in VALUE to the end of the definition contained in VAR. Take
52412 # advantage of any shell optimizations that allow amortized linear growth over
52413 # repeated appends, instead of the typical quadratic growth present in naive
52414 # implementations.
52415 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
52416 then :
52417 eval 'as_fn_append ()
52418 {
52419 eval $1+=\$2
52420 }'
52421 else $as_nop
52422 as_fn_append ()
52423 {
52424 eval $1=\$$1\$2
52425 }
52426 fi # as_fn_append
52427
52428 # as_fn_arith ARG...
52429 # ------------------
52430 # Perform arithmetic evaluation on the ARGs, and store the result in the
52431 # global $as_val. Take advantage of shells that can avoid forks. The arguments
52432 # must be portable across $(()) and expr.
52433 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
52434 then :
52435 eval 'as_fn_arith ()
52436 {
52437 as_val=$(( $* ))
52438 }'
52439 else $as_nop
52440 as_fn_arith ()
52441 {
52442 as_val=`expr "$@" || test $? -eq 1`
52443 }
52444 fi # as_fn_arith
52445
52446
52447 if expr a : '\(a\)' >/dev/null 2>&1 &&
52448 test "X`expr 00001 : '.*\(...\)'`" = X001; then
52449 as_expr=expr
52450 else
52451 as_expr=false
52452 fi
52453
52454 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
52455 as_basename=basename
52456 else
52457 as_basename=false
52458 fi
52459
52460 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
52461 as_dirname=dirname
52462 else
52463 as_dirname=false
52464 fi
52465
52466 as_me=`$as_basename -- "$0" ||
52467 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
52468 X"$0" : 'X\(//\)$' \| \
52469 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
52470 printf "%s\n" X/"$0" |
52471 sed '/^.*\/\([^/][^/]*\)\/*$/{
52472 s//\1/
52473 q
52474 }
52475 /^X\/\(\/\/\)$/{
52476 s//\1/
52477 q
52478 }
52479 /^X\/\(\/\).*/{
52480 s//\1/
52481 q
52482 }
52483 s/.*/./; q'`
52484
52485 # Avoid depending upon Character Ranges.
52486 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
52487 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
52488 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
52489 as_cr_digits='0123456789'
52490 as_cr_alnum=$as_cr_Letters$as_cr_digits
52491
52492
52493 # Determine whether it's possible to make 'echo' print without a newline.
52494 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
52495 # for compatibility with existing Makefiles.
52496 ECHO_C= ECHO_N= ECHO_T=
52497 case `echo -n x` in #(((((
52498 -n*)
52499 case `echo 'xy\c'` in
52500 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
52501 xy) ECHO_C='\c';;
52502 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
52503 ECHO_T=' ';;
52504 esac;;
52505 *)
52506 ECHO_N='-n';;
52507 esac
52508
52509 # For backward compatibility with old third-party macros, we provide
52510 # the shell variables $as_echo and $as_echo_n. New code should use
52511 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
52512 as_echo='printf %s\n'
52513 as_echo_n='printf %s'
52514
52515 rm -f conf$$ conf$$.exe conf$$.file
52516 if test -d conf$$.dir; then
52517 rm -f conf$$.dir/conf$$.file
52518 else
52519 rm -f conf$$.dir
52520 mkdir conf$$.dir 2>/dev/null
52521 fi
52522 if (echo >conf$$.file) 2>/dev/null; then
52523 if ln -s conf$$.file conf$$ 2>/dev/null; then
52524 as_ln_s='ln -s'
52525 # ... but there are two gotchas:
52526 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
52527 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
52528 # In both cases, we have to default to `cp -pR'.
52529 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
52530 as_ln_s='cp -pR'
52531 elif ln conf$$.file conf$$ 2>/dev/null; then
52532 as_ln_s=ln
52533 else
52534 as_ln_s='cp -pR'
52535 fi
52536 else
52537 as_ln_s='cp -pR'
52538 fi
52539 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
52540 rmdir conf$$.dir 2>/dev/null
52541
52542
52543 # as_fn_mkdir_p
52544 # -------------
52545 # Create "$as_dir" as a directory, including parents if necessary.
52546 as_fn_mkdir_p ()
52547 {
52548
52549 case $as_dir in #(
52550 -*) as_dir=./$as_dir;;
52551 esac
52552 test -d "$as_dir" || eval $as_mkdir_p || {
52553 as_dirs=
52554 while :; do
52555 case $as_dir in #(
52556 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
52557 *) as_qdir=$as_dir;;
52558 esac
52559 as_dirs="'$as_qdir' $as_dirs"
52560 as_dir=`$as_dirname -- "$as_dir" ||
52561 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52562 X"$as_dir" : 'X\(//\)[^/]' \| \
52563 X"$as_dir" : 'X\(//\)$' \| \
52564 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
52565 printf "%s\n" X"$as_dir" |
52566 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
52567 s//\1/
52568 q
52569 }
52570 /^X\(\/\/\)[^/].*/{
52571 s//\1/
52572 q
52573 }
52574 /^X\(\/\/\)$/{
52575 s//\1/
52576 q
52577 }
52578 /^X\(\/\).*/{
52579 s//\1/
52580 q
52581 }
52582 s/.*/./; q'`
52583 test -d "$as_dir" && break
52584 done
52585 test -z "$as_dirs" || eval "mkdir $as_dirs"
52586 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
52587
52588
52589 } # as_fn_mkdir_p
52590 if mkdir -p . 2>/dev/null; then
52591 as_mkdir_p='mkdir -p "$as_dir"'
52592 else
52593 test -d ./-p && rmdir ./-p
52594 as_mkdir_p=false
52595 fi
52596
52597
52598 # as_fn_executable_p FILE
52599 # -----------------------
52600 # Test if FILE is an executable regular file.
52601 as_fn_executable_p ()
52602 {
52603 test -f "$1" && test -x "$1"
52604 } # as_fn_executable_p
52605 as_test_x='test -x'
52606 as_executable_p=as_fn_executable_p
52607
52608 # Sed expression to map a string onto a valid CPP name.
52609 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
52610
52611 # Sed expression to map a string onto a valid variable name.
52612 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
52613
52614
52615 exec 6>&1
52616 ## ----------------------------------- ##
52617 ## Main body of $CONFIG_STATUS script. ##
52618 ## ----------------------------------- ##
52619 _ASEOF
52620 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
52621
52622 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
52623 # Save the log message, to keep $0 and so on meaningful, and to
52624 # report actual input values of CONFIG_FILES etc. instead of their
52625 # values after options handling.
52626 ac_log="
52627 This file was extended by augeas $as_me 1.14.1, which was
52628 generated by GNU Autoconf 2.71. Invocation command line was
52629
52630 CONFIG_FILES = $CONFIG_FILES
52631 CONFIG_HEADERS = $CONFIG_HEADERS
52632 CONFIG_LINKS = $CONFIG_LINKS
52633 CONFIG_COMMANDS = $CONFIG_COMMANDS
52634 $ $0 $@
52635
52636 on `(hostname || uname -n) 2>/dev/null | sed 1q`
52637 "
52638
52639 _ACEOF
52640
52641 case $ac_config_files in *"
52642 "*) set x $ac_config_files; shift; ac_config_files=$*;;
52643 esac
52644
52645 case $ac_config_headers in *"
52646 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
52647 esac
52648
52649
52650 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
52651 # Files that config.status was made for.
52652 config_files="$ac_config_files"
52653 config_headers="$ac_config_headers"
52654 config_commands="$ac_config_commands"
52655
52656 _ACEOF
52657
52658 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
52659 ac_cs_usage="\
52660 \`$as_me' instantiates files and other configuration actions
52661 from templates according to the current configuration. Unless the files
52662 and actions are specified as TAGs, all are instantiated by default.
52663
52664 Usage: $0 [OPTION]... [TAG]...
52665
52666 -h, --help print this help, then exit
52667 -V, --version print version number and configuration settings, then exit
52668 --config print configuration, then exit
52669 -q, --quiet, --silent
52670 do not print progress messages
52671 -d, --debug don't remove temporary files
52672 --recheck update $as_me by reconfiguring in the same conditions
52673 --file=FILE[:TEMPLATE]
52674 instantiate the configuration file FILE
52675 --header=FILE[:TEMPLATE]
52676 instantiate the configuration header FILE
52677
52678 Configuration files:
52679 $config_files
52680
52681 Configuration headers:
52682 $config_headers
52683
52684 Configuration commands:
52685 $config_commands
52686
52687 Report bugs to the package provider."
52688
52689 _ACEOF
52690 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
52691 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
52692 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
52693 ac_cs_config='$ac_cs_config_escaped'
52694 ac_cs_version="\\
52695 augeas config.status 1.14.1
52696 configured by $0, generated by GNU Autoconf 2.71,
52697 with options \\"\$ac_cs_config\\"
52698
52699 Copyright (C) 2021 Free Software Foundation, Inc.
52700 This config.status script is free software; the Free Software Foundation
52701 gives unlimited permission to copy, distribute and modify it."
52702
52703 ac_pwd='$ac_pwd'
52704 srcdir='$srcdir'
52705 INSTALL='$INSTALL'
52706 MKDIR_P='$MKDIR_P'
52707 AWK='$AWK'
52708 test -n "\$AWK" || AWK=awk
52709 _ACEOF
52710
52711 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
52712 # The default lists apply if the user does not specify any file.
52713 ac_need_defaults=:
52714 while test $# != 0
52715 do
52716 case $1 in
52717 --*=?*)
52718 ac_option=`expr "X$1" : 'X\([^=]*\)='`
52719 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
52720 ac_shift=:
52721 ;;
52722 --*=)
52723 ac_option=`expr "X$1" : 'X\([^=]*\)='`
52724 ac_optarg=
52725 ac_shift=:
52726 ;;
52727 *)
52728 ac_option=$1
52729 ac_optarg=$2
52730 ac_shift=shift
52731 ;;
52732 esac
52733
52734 case $ac_option in
52735 # Handling of the options.
52736 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
52737 ac_cs_recheck=: ;;
52738 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
52739 printf "%s\n" "$ac_cs_version"; exit ;;
52740 --config | --confi | --conf | --con | --co | --c )
52741 printf "%s\n" "$ac_cs_config"; exit ;;
52742 --debug | --debu | --deb | --de | --d | -d )
52743 debug=: ;;
52744 --file | --fil | --fi | --f )
52745 $ac_shift
52746 case $ac_optarg in
52747 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
52748 '') as_fn_error $? "missing file argument" ;;
52749 esac
52750 as_fn_append CONFIG_FILES " '$ac_optarg'"
52751 ac_need_defaults=false;;
52752 --header | --heade | --head | --hea )
52753 $ac_shift
52754 case $ac_optarg in
52755 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
52756 esac
52757 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
52758 ac_need_defaults=false;;
52759 --he | --h)
52760 # Conflict between --help and --header
52761 as_fn_error $? "ambiguous option: \`$1'
52762 Try \`$0 --help' for more information.";;
52763 --help | --hel | -h )
52764 printf "%s\n" "$ac_cs_usage"; exit ;;
52765 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
52766 | -silent | --silent | --silen | --sile | --sil | --si | --s)
52767 ac_cs_silent=: ;;
52768
52769 # This is an error.
52770 -*) as_fn_error $? "unrecognized option: \`$1'
52771 Try \`$0 --help' for more information." ;;
52772
52773 *) as_fn_append ac_config_targets " $1"
52774 ac_need_defaults=false ;;
52775
52776 esac
52777 shift
52778 done
52779
52780 ac_configure_extra_args=
52781
52782 if $ac_cs_silent; then
52783 exec 6>/dev/null
52784 ac_configure_extra_args="$ac_configure_extra_args --silent"
52785 fi
52786
52787 _ACEOF
52788 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
52789 if \$ac_cs_recheck; then
52790 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
52791 shift
52792 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
52793 CONFIG_SHELL='$SHELL'
52794 export CONFIG_SHELL
52795 exec "\$@"
52796 fi
52797
52798 _ACEOF
52799 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
52800 exec 5>>config.log
52801 {
52802 echo
52803 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
52804 ## Running $as_me. ##
52805 _ASBOX
52806 printf "%s\n" "$ac_log"
52807 } >&5
52808
52809 _ACEOF
52810 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
52811 #
52812 # INIT-COMMANDS
52813 #
52814 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
52815
52816
52817 # The HP-UX ksh and POSIX shell print the target directory to stdout
52818 # if CDPATH is set.
52819 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
52820
52821 sed_quote_subst='$sed_quote_subst'
52822 double_quote_subst='$double_quote_subst'
52823 delay_variable_subst='$delay_variable_subst'
52824 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
52825 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
52826 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
52827 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
52828 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
52829 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
52830 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
52831 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
52832 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
52833 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
52834 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
52835 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
52836 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
52837 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
52838 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
52839 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
52840 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
52841 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
52842 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
52843 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
52844 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
52845 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
52846 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
52847 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
52848 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
52849 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
52850 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
52851 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
52852 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
52853 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
52854 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
52855 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
52856 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
52857 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
52858 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
52859 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
52860 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
52861 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
52862 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
52863 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
52864 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
52865 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
52866 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
52867 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
52868 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
52869 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
52870 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
52871 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
52872 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
52873 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
52874 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
52875 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
52876 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
52877 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
52878 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
52879 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
52880 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
52881 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
52882 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
52883 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
52884 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
52885 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
52886 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
52887 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
52888 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
52889 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
52890 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
52891 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
52892 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
52893 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
52894 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
52895 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
52896 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
52897 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
52898 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
52899 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
52900 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
52901 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
52902 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
52903 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
52904 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
52905 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
52906 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
52907 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
52908 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
52909 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
52910 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
52911 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
52912 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
52913 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
52914 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
52915 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
52916 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
52917 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
52918 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
52919 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
52920 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
52921 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
52922 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
52923 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
52924 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
52925 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
52926 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
52927 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
52928 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
52929 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
52930 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
52931 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
52932 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
52933 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
52934 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
52935 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
52936 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
52937 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
52938 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
52939 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
52940 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
52941 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
52942 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
52943 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
52944 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
52945 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
52946 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
52947 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
52948 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
52949 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
52950 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
52951 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
52952 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
52953 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
52954 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
52955 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
52956 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
52957 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
52958 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
52959 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
52960 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
52961
52962 LTCC='$LTCC'
52963 LTCFLAGS='$LTCFLAGS'
52964 compiler='$compiler_DEFAULT'
52965
52966 # A function that is used when there is no print builtin or printf.
52967 func_fallback_echo ()
52968 {
52969 eval 'cat <<_LTECHO_EOF
52970 \$1
52971 _LTECHO_EOF'
52972 }
52973
52974 # Quote evaled strings.
52975 for var in SHELL \
52976 ECHO \
52977 PATH_SEPARATOR \
52978 SED \
52979 GREP \
52980 EGREP \
52981 FGREP \
52982 LD \
52983 NM \
52984 LN_S \
52985 lt_SP2NL \
52986 lt_NL2SP \
52987 reload_flag \
52988 FILECMD \
52989 OBJDUMP \
52990 deplibs_check_method \
52991 file_magic_cmd \
52992 file_magic_glob \
52993 want_nocaseglob \
52994 DLLTOOL \
52995 sharedlib_from_linklib_cmd \
52996 AR \
52997 archiver_list_spec \
52998 STRIP \
52999 RANLIB \
53000 CC \
53001 CFLAGS \
53002 compiler \
53003 lt_cv_sys_global_symbol_pipe \
53004 lt_cv_sys_global_symbol_to_cdecl \
53005 lt_cv_sys_global_symbol_to_import \
53006 lt_cv_sys_global_symbol_to_c_name_address \
53007 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
53008 lt_cv_nm_interface \
53009 nm_file_list_spec \
53010 lt_cv_truncate_bin \
53011 lt_prog_compiler_no_builtin_flag \
53012 lt_prog_compiler_pic \
53013 lt_prog_compiler_wl \
53014 lt_prog_compiler_static \
53015 lt_cv_prog_compiler_c_o \
53016 need_locks \
53017 MANIFEST_TOOL \
53018 DSYMUTIL \
53019 NMEDIT \
53020 LIPO \
53021 OTOOL \
53022 OTOOL64 \
53023 shrext_cmds \
53024 export_dynamic_flag_spec \
53025 whole_archive_flag_spec \
53026 compiler_needs_object \
53027 with_gnu_ld \
53028 allow_undefined_flag \
53029 no_undefined_flag \
53030 hardcode_libdir_flag_spec \
53031 hardcode_libdir_separator \
53032 exclude_expsyms \
53033 include_expsyms \
53034 file_list_spec \
53035 variables_saved_for_relink \
53036 libname_spec \
53037 library_names_spec \
53038 soname_spec \
53039 install_override_mode \
53040 finish_eval \
53041 old_striplib \
53042 striplib; do
53043 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
53044 *[\\\\\\\`\\"\\\$]*)
53045 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
53046 ;;
53047 *)
53048 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
53049 ;;
53050 esac
53051 done
53052
53053 # Double-quote double-evaled strings.
53054 for var in reload_cmds \
53055 old_postinstall_cmds \
53056 old_postuninstall_cmds \
53057 old_archive_cmds \
53058 extract_expsyms_cmds \
53059 old_archive_from_new_cmds \
53060 old_archive_from_expsyms_cmds \
53061 archive_cmds \
53062 archive_expsym_cmds \
53063 module_cmds \
53064 module_expsym_cmds \
53065 export_symbols_cmds \
53066 prelink_cmds \
53067 postlink_cmds \
53068 postinstall_cmds \
53069 postuninstall_cmds \
53070 finish_cmds \
53071 sys_lib_search_path_spec \
53072 configure_time_dlsearch_path \
53073 configure_time_lt_sys_library_path; do
53074 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
53075 *[\\\\\\\`\\"\\\$]*)
53076 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
53077 ;;
53078 *)
53079 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
53080 ;;
53081 esac
53082 done
53083
53084 ac_aux_dir='$ac_aux_dir'
53085
53086 # See if we are running on zsh, and set the options that allow our
53087 # commands through without removal of \ escapes INIT.
53088 if test -n "\${ZSH_VERSION+set}"; then
53089 setopt NO_GLOB_SUBST
53090 fi
53091
53092
53093 PACKAGE='$PACKAGE'
53094 VERSION='$VERSION'
53095 RM='$RM'
53096 ofile='$ofile'
53097
53098
53099
53100
53101 _ACEOF
53102
53103 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
53104
53105 # Handling of arguments.
53106 for ac_config_target in $ac_config_targets
53107 do
53108 case $ac_config_target in
53109 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
53110 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
53111 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
53112 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
53113 "gnulib/lib/Makefile") CONFIG_FILES="$CONFIG_FILES gnulib/lib/Makefile" ;;
53114 "gnulib/tests/Makefile") CONFIG_FILES="$CONFIG_FILES gnulib/tests/Makefile" ;;
53115 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
53116 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
53117 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
53118 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
53119 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
53120 "doc/naturaldocs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/naturaldocs/Makefile" ;;
53121 "augeas.pc") CONFIG_FILES="$CONFIG_FILES augeas.pc" ;;
53122 "augeas.spec") CONFIG_FILES="$CONFIG_FILES augeas.spec" ;;
53123
53124 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
53125 esac
53126 done
53127
53128
53129 # If the user did not use the arguments to specify the items to instantiate,
53130 # then the envvar interface is used. Set only those that are not.
53131 # We use the long form for the default assignment because of an extremely
53132 # bizarre bug on SunOS 4.1.3.
53133 if $ac_need_defaults; then
53134 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
53135 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
53136 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
53137 fi
53138
53139 # Have a temporary directory for convenience. Make it in the build tree
53140 # simply because there is no reason against having it here, and in addition,
53141 # creating and moving files from /tmp can sometimes cause problems.
53142 # Hook for its removal unless debugging.
53143 # Note that there is a small window in which the directory will not be cleaned:
53144 # after its creation but before its name has been assigned to `$tmp'.
53145 $debug ||
53146 {
53147 tmp= ac_tmp=
53148 trap 'exit_status=$?
53149 : "${ac_tmp:=$tmp}"
53150 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
53151 ' 0
53152 trap 'as_fn_exit 1' 1 2 13 15
53153 }
53154 # Create a (secure) tmp directory for tmp files.
53155
53156 {
53157 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
53158 test -d "$tmp"
53159 } ||
53160 {
53161 tmp=./conf$$-$RANDOM
53162 (umask 077 && mkdir "$tmp")
53163 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
53164 ac_tmp=$tmp
53165
53166 # Set up the scripts for CONFIG_FILES section.
53167 # No need to generate them if there are no CONFIG_FILES.
53168 # This happens for instance with `./config.status config.h'.
53169 if test -n "$CONFIG_FILES"; then
53170
53171
53172 ac_cr=`echo X | tr X '\015'`
53173 # On cygwin, bash can eat \r inside `` if the user requested igncr.
53174 # But we know of no other shell where ac_cr would be empty at this
53175 # point, so we can use a bashism as a fallback.
53176 if test "x$ac_cr" = x; then
53177 eval ac_cr=\$\'\\r\'
53178 fi
53179 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
53180 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
53181 ac_cs_awk_cr='\\r'
53182 else
53183 ac_cs_awk_cr=$ac_cr
53184 fi
53185
53186 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
53187 _ACEOF
53188
53189
53190 {
53191 echo "cat >conf$$subs.awk <<_ACEOF" &&
53192 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
53193 echo "_ACEOF"
53194 } >conf$$subs.sh ||
53195 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
53196 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
53197 ac_delim='%!_!# '
53198 for ac_last_try in false false false false false :; do
53199 . ./conf$$subs.sh ||
53200 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
53201
53202 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
53203 if test $ac_delim_n = $ac_delim_num; then
53204 break
53205 elif $ac_last_try; then
53206 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
53207 else
53208 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
53209 fi
53210 done
53211 rm -f conf$$subs.sh
53212
53213 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
53214 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
53215 _ACEOF
53216 sed -n '
53217 h
53218 s/^/S["/; s/!.*/"]=/
53219 p
53220 g
53221 s/^[^!]*!//
53222 :repl
53223 t repl
53224 s/'"$ac_delim"'$//
53225 t delim
53226 :nl
53227 h
53228 s/\(.\{148\}\)..*/\1/
53229 t more1
53230 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
53231 p
53232 n
53233 b repl
53234 :more1
53235 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
53236 p
53237 g
53238 s/.\{148\}//
53239 t nl
53240 :delim
53241 h
53242 s/\(.\{148\}\)..*/\1/
53243 t more2
53244 s/["\\]/\\&/g; s/^/"/; s/$/"/
53245 p
53246 b
53247 :more2
53248 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
53249 p
53250 g
53251 s/.\{148\}//
53252 t delim
53253 ' <conf$$subs.awk | sed '
53254 /^[^""]/{
53255 N
53256 s/\n//
53257 }
53258 ' >>$CONFIG_STATUS || ac_write_fail=1
53259 rm -f conf$$subs.awk
53260 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
53261 _ACAWK
53262 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
53263 for (key in S) S_is_set[key] = 1
53264 FS = ""
53265
53266 }
53267 {
53268 line = $ 0
53269 nfields = split(line, field, "@")
53270 substed = 0
53271 len = length(field[1])
53272 for (i = 2; i < nfields; i++) {
53273 key = field[i]
53274 keylen = length(key)
53275 if (S_is_set[key]) {
53276 value = S[key]
53277 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
53278 len += length(value) + length(field[++i])
53279 substed = 1
53280 } else
53281 len += 1 + keylen
53282 }
53283
53284 print line
53285 }
53286
53287 _ACAWK
53288 _ACEOF
53289 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
53290 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
53291 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
53292 else
53293 cat
53294 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
53295 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
53296 _ACEOF
53297
53298 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
53299 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
53300 # trailing colons and then remove the whole line if VPATH becomes empty
53301 # (actually we leave an empty line to preserve line numbers).
53302 if test "x$srcdir" = x.; then
53303 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
53304 h
53305 s///
53306 s/^/:/
53307 s/[ ]*$/:/
53308 s/:\$(srcdir):/:/g
53309 s/:\${srcdir}:/:/g
53310 s/:@srcdir@:/:/g
53311 s/^:*//
53312 s/:*$//
53313 x
53314 s/\(=[ ]*\).*/\1/
53315 G
53316 s/\n//
53317 s/^[^=]*=[ ]*$//
53318 }'
53319 fi
53320
53321 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
53322 fi # test -n "$CONFIG_FILES"
53323
53324 # Set up the scripts for CONFIG_HEADERS section.
53325 # No need to generate them if there are no CONFIG_HEADERS.
53326 # This happens for instance with `./config.status Makefile'.
53327 if test -n "$CONFIG_HEADERS"; then
53328 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
53329 BEGIN {
53330 _ACEOF
53331
53332 # Transform confdefs.h into an awk script `defines.awk', embedded as
53333 # here-document in config.status, that substitutes the proper values into
53334 # config.h.in to produce config.h.
53335
53336 # Create a delimiter string that does not exist in confdefs.h, to ease
53337 # handling of long lines.
53338 ac_delim='%!_!# '
53339 for ac_last_try in false false :; do
53340 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
53341 if test -z "$ac_tt"; then
53342 break
53343 elif $ac_last_try; then
53344 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
53345 else
53346 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
53347 fi
53348 done
53349
53350 # For the awk script, D is an array of macro values keyed by name,
53351 # likewise P contains macro parameters if any. Preserve backslash
53352 # newline sequences.
53353
53354 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
53355 sed -n '
53356 s/.\{148\}/&'"$ac_delim"'/g
53357 t rset
53358 :rset
53359 s/^[ ]*#[ ]*define[ ][ ]*/ /
53360 t def
53361 d
53362 :def
53363 s/\\$//
53364 t bsnl
53365 s/["\\]/\\&/g
53366 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
53367 D["\1"]=" \3"/p
53368 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
53369 d
53370 :bsnl
53371 s/["\\]/\\&/g
53372 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
53373 D["\1"]=" \3\\\\\\n"\\/p
53374 t cont
53375 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
53376 t cont
53377 d
53378 :cont
53379 n
53380 s/.\{148\}/&'"$ac_delim"'/g
53381 t clear
53382 :clear
53383 s/\\$//
53384 t bsnlc
53385 s/["\\]/\\&/g; s/^/"/; s/$/"/p
53386 d
53387 :bsnlc
53388 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
53389 b cont
53390 ' <confdefs.h | sed '
53391 s/'"$ac_delim"'/"\\\
53392 "/g' >>$CONFIG_STATUS || ac_write_fail=1
53393
53394 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
53395 for (key in D) D_is_set[key] = 1
53396 FS = ""
53397 }
53398 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
53399 line = \$ 0
53400 split(line, arg, " ")
53401 if (arg[1] == "#") {
53402 defundef = arg[2]
53403 mac1 = arg[3]
53404 } else {
53405 defundef = substr(arg[1], 2)
53406 mac1 = arg[2]
53407 }
53408 split(mac1, mac2, "(") #)
53409 macro = mac2[1]
53410 prefix = substr(line, 1, index(line, defundef) - 1)
53411 if (D_is_set[macro]) {
53412 # Preserve the white space surrounding the "#".
53413 print prefix "define", macro P[macro] D[macro]
53414 next
53415 } else {
53416 # Replace #undef with comments. This is necessary, for example,
53417 # in the case of _POSIX_SOURCE, which is predefined and required
53418 # on some systems where configure will not decide to define it.
53419 if (defundef == "undef") {
53420 print "/*", prefix defundef, macro, "*/"
53421 next
53422 }
53423 }
53424 }
53425 { print }
53426 _ACAWK
53427 _ACEOF
53428 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
53429 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
53430 fi # test -n "$CONFIG_HEADERS"
53431
53432
53433 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
53434 shift
53435 for ac_tag
53436 do
53437 case $ac_tag in
53438 :[FHLC]) ac_mode=$ac_tag; continue;;
53439 esac
53440 case $ac_mode$ac_tag in
53441 :[FHL]*:*);;
53442 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
53443 :[FH]-) ac_tag=-:-;;
53444 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
53445 esac
53446 ac_save_IFS=$IFS
53447 IFS=:
53448 set x $ac_tag
53449 IFS=$ac_save_IFS
53450 shift
53451 ac_file=$1
53452 shift
53453
53454 case $ac_mode in
53455 :L) ac_source=$1;;
53456 :[FH])
53457 ac_file_inputs=
53458 for ac_f
53459 do
53460 case $ac_f in
53461 -) ac_f="$ac_tmp/stdin";;
53462 *) # Look for the file first in the build tree, then in the source tree
53463 # (if the path is not absolute). The absolute path cannot be DOS-style,
53464 # because $ac_f cannot contain `:'.
53465 test -f "$ac_f" ||
53466 case $ac_f in
53467 [\\/$]*) false;;
53468 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
53469 esac ||
53470 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
53471 esac
53472 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
53473 as_fn_append ac_file_inputs " '$ac_f'"
53474 done
53475
53476 # Let's still pretend it is `configure' which instantiates (i.e., don't
53477 # use $as_me), people would be surprised to read:
53478 # /* config.h. Generated by config.status. */
53479 configure_input='Generated from '`
53480 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
53481 `' by configure.'
53482 if test x"$ac_file" != x-; then
53483 configure_input="$ac_file. $configure_input"
53484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
53485 printf "%s\n" "$as_me: creating $ac_file" >&6;}
53486 fi
53487 # Neutralize special characters interpreted by sed in replacement strings.
53488 case $configure_input in #(
53489 *\&* | *\|* | *\\* )
53490 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
53491 sed 's/[\\\\&|]/\\\\&/g'`;; #(
53492 *) ac_sed_conf_input=$configure_input;;
53493 esac
53494
53495 case $ac_tag in
53496 *:-:* | *:-) cat >"$ac_tmp/stdin" \
53497 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
53498 esac
53499 ;;
53500 esac
53501
53502 ac_dir=`$as_dirname -- "$ac_file" ||
53503 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
53504 X"$ac_file" : 'X\(//\)[^/]' \| \
53505 X"$ac_file" : 'X\(//\)$' \| \
53506 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
53507 printf "%s\n" X"$ac_file" |
53508 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
53509 s//\1/
53510 q
53511 }
53512 /^X\(\/\/\)[^/].*/{
53513 s//\1/
53514 q
53515 }
53516 /^X\(\/\/\)$/{
53517 s//\1/
53518 q
53519 }
53520 /^X\(\/\).*/{
53521 s//\1/
53522 q
53523 }
53524 s/.*/./; q'`
53525 as_dir="$ac_dir"; as_fn_mkdir_p
53526 ac_builddir=.
53527
53528 case "$ac_dir" in
53529 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
53530 *)
53531 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
53532 # A ".." for each directory in $ac_dir_suffix.
53533 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
53534 case $ac_top_builddir_sub in
53535 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
53536 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
53537 esac ;;
53538 esac
53539 ac_abs_top_builddir=$ac_pwd
53540 ac_abs_builddir=$ac_pwd$ac_dir_suffix
53541 # for backward compatibility:
53542 ac_top_builddir=$ac_top_build_prefix
53543
53544 case $srcdir in
53545 .) # We are building in place.
53546 ac_srcdir=.
53547 ac_top_srcdir=$ac_top_builddir_sub
53548 ac_abs_top_srcdir=$ac_pwd ;;
53549 [\\/]* | ?:[\\/]* ) # Absolute name.
53550 ac_srcdir=$srcdir$ac_dir_suffix;
53551 ac_top_srcdir=$srcdir
53552 ac_abs_top_srcdir=$srcdir ;;
53553 *) # Relative name.
53554 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
53555 ac_top_srcdir=$ac_top_build_prefix$srcdir
53556 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
53557 esac
53558 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
53559
53560
53561 case $ac_mode in
53562 :F)
53563 #
53564 # CONFIG_FILE
53565 #
53566
53567 case $INSTALL in
53568 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
53569 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
53570 esac
53571 ac_MKDIR_P=$MKDIR_P
53572 case $MKDIR_P in
53573 [\\/$]* | ?:[\\/]* ) ;;
53574 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
53575 esac
53576 _ACEOF
53577
53578 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
53579 # If the template does not know about datarootdir, expand it.
53580 # FIXME: This hack should be removed a few years after 2.60.
53581 ac_datarootdir_hack=; ac_datarootdir_seen=
53582 ac_sed_dataroot='
53583 /datarootdir/ {
53584 p
53585 q
53586 }
53587 /@datadir@/p
53588 /@docdir@/p
53589 /@infodir@/p
53590 /@localedir@/p
53591 /@mandir@/p'
53592 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
53593 *datarootdir*) ac_datarootdir_seen=yes;;
53594 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
53595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
53596 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
53597 _ACEOF
53598 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
53599 ac_datarootdir_hack='
53600 s&@datadir@&$datadir&g
53601 s&@docdir@&$docdir&g
53602 s&@infodir@&$infodir&g
53603 s&@localedir@&$localedir&g
53604 s&@mandir@&$mandir&g
53605 s&\\\${datarootdir}&$datarootdir&g' ;;
53606 esac
53607 _ACEOF
53608
53609 # Neutralize VPATH when `$srcdir' = `.'.
53610 # Shell code in configure.ac might set extrasub.
53611 # FIXME: do we really want to maintain this feature?
53612 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
53613 ac_sed_extra="$ac_vpsub
53614 $extrasub
53615 _ACEOF
53616 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
53617 :t
53618 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
53619 s|@configure_input@|$ac_sed_conf_input|;t t
53620 s&@top_builddir@&$ac_top_builddir_sub&;t t
53621 s&@top_build_prefix@&$ac_top_build_prefix&;t t
53622 s&@srcdir@&$ac_srcdir&;t t
53623 s&@abs_srcdir@&$ac_abs_srcdir&;t t
53624 s&@top_srcdir@&$ac_top_srcdir&;t t
53625 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
53626 s&@builddir@&$ac_builddir&;t t
53627 s&@abs_builddir@&$ac_abs_builddir&;t t
53628 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
53629 s&@INSTALL@&$ac_INSTALL&;t t
53630 s&@MKDIR_P@&$ac_MKDIR_P&;t t
53631 $ac_datarootdir_hack
53632 "
53633 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
53634 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
53635
53636 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
53637 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
53638 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
53639 "$ac_tmp/out"`; test -z "$ac_out"; } &&
53640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
53641 which seems to be undefined. Please make sure it is defined" >&5
53642 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
53643 which seems to be undefined. Please make sure it is defined" >&2;}
53644
53645 rm -f "$ac_tmp/stdin"
53646 case $ac_file in
53647 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
53648 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
53649 esac \
53650 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
53651 ;;
53652 :H)
53653 #
53654 # CONFIG_HEADER
53655 #
53656 if test x"$ac_file" != x-; then
53657 {
53658 printf "%s\n" "/* $configure_input */" >&1 \
53659 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
53660 } >"$ac_tmp/config.h" \
53661 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
53662 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
53663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
53664 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
53665 else
53666 rm -f "$ac_file"
53667 mv "$ac_tmp/config.h" "$ac_file" \
53668 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
53669 fi
53670 else
53671 printf "%s\n" "/* $configure_input */" >&1 \
53672 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
53673 || as_fn_error $? "could not create -" "$LINENO" 5
53674 fi
53675 # Compute "$ac_file"'s index in $config_headers.
53676 _am_arg="$ac_file"
53677 _am_stamp_count=1
53678 for _am_header in $config_headers :; do
53679 case $_am_header in
53680 $_am_arg | $_am_arg:* )
53681 break ;;
53682 * )
53683 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
53684 esac
53685 done
53686 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
53687 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
53688 X"$_am_arg" : 'X\(//\)[^/]' \| \
53689 X"$_am_arg" : 'X\(//\)$' \| \
53690 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
53691 printf "%s\n" X"$_am_arg" |
53692 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
53693 s//\1/
53694 q
53695 }
53696 /^X\(\/\/\)[^/].*/{
53697 s//\1/
53698 q
53699 }
53700 /^X\(\/\/\)$/{
53701 s//\1/
53702 q
53703 }
53704 /^X\(\/\).*/{
53705 s//\1/
53706 q
53707 }
53708 s/.*/./; q'`/stamp-h$_am_stamp_count
53709 ;;
53710
53711 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
53712 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
53713 ;;
53714 esac
53715
53716
53717 case $ac_file$ac_mode in
53718 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
53719 # Older Autoconf quotes --file arguments for eval, but not when files
53720 # are listed without --file. Let's play safe and only enable the eval
53721 # if we detect the quoting.
53722 # TODO: see whether this extra hack can be removed once we start
53723 # requiring Autoconf 2.70 or later.
53724 case $CONFIG_FILES in #(
53725 *\'*) :
53726 eval set x "$CONFIG_FILES" ;; #(
53727 *) :
53728 set x $CONFIG_FILES ;; #(
53729 *) :
53730 ;;
53731 esac
53732 shift
53733 # Used to flag and report bootstrapping failures.
53734 am_rc=0
53735 for am_mf
53736 do
53737 # Strip MF so we end up with the name of the file.
53738 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
53739 # Check whether this is an Automake generated Makefile which includes
53740 # dependency-tracking related rules and includes.
53741 # Grep'ing the whole file directly is not great: AIX grep has a line
53742 # limit of 2048, but all sed's we know have understand at least 4000.
53743 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
53744 || continue
53745 am_dirpart=`$as_dirname -- "$am_mf" ||
53746 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
53747 X"$am_mf" : 'X\(//\)[^/]' \| \
53748 X"$am_mf" : 'X\(//\)$' \| \
53749 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
53750 printf "%s\n" X"$am_mf" |
53751 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
53752 s//\1/
53753 q
53754 }
53755 /^X\(\/\/\)[^/].*/{
53756 s//\1/
53757 q
53758 }
53759 /^X\(\/\/\)$/{
53760 s//\1/
53761 q
53762 }
53763 /^X\(\/\).*/{
53764 s//\1/
53765 q
53766 }
53767 s/.*/./; q'`
53768 am_filepart=`$as_basename -- "$am_mf" ||
53769 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
53770 X"$am_mf" : 'X\(//\)$' \| \
53771 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
53772 printf "%s\n" X/"$am_mf" |
53773 sed '/^.*\/\([^/][^/]*\)\/*$/{
53774 s//\1/
53775 q
53776 }
53777 /^X\/\(\/\/\)$/{
53778 s//\1/
53779 q
53780 }
53781 /^X\/\(\/\).*/{
53782 s//\1/
53783 q
53784 }
53785 s/.*/./; q'`
53786 { echo "$as_me:$LINENO: cd "$am_dirpart" \
53787 && sed -e '/# am--include-marker/d' "$am_filepart" \
53788 | $MAKE -f - am--depfiles" >&5
53789 (cd "$am_dirpart" \
53790 && sed -e '/# am--include-marker/d' "$am_filepart" \
53791 | $MAKE -f - am--depfiles) >&5 2>&5
53792 ac_status=$?
53793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53794 (exit $ac_status); } || am_rc=$?
53795 done
53796 if test $am_rc -ne 0; then
53797 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
53798 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
53799 as_fn_error $? "Something went wrong bootstrapping makefile fragments
53800 for automatic dependency tracking. If GNU make was not used, consider
53801 re-running the configure script with MAKE=\"gmake\" (or whatever is
53802 necessary). You can also try re-running configure with the
53803 '--disable-dependency-tracking' option to at least be able to build
53804 the package (albeit without support for automatic dependency tracking).
53805 See \`config.log' for more details" "$LINENO" 5; }
53806 fi
53807 { am_dirpart=; unset am_dirpart;}
53808 { am_filepart=; unset am_filepart;}
53809 { am_mf=; unset am_mf;}
53810 { am_rc=; unset am_rc;}
53811 rm -f conftest-deps.mk
53812 }
53813 ;;
53814 "libtool":C)
53815
53816 # See if we are running on zsh, and set the options that allow our
53817 # commands through without removal of \ escapes.
53818 if test -n "${ZSH_VERSION+set}"; then
53819 setopt NO_GLOB_SUBST
53820 fi
53821
53822 cfgfile=${ofile}T
53823 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
53824 $RM "$cfgfile"
53825
53826 cat <<_LT_EOF >> "$cfgfile"
53827 #! $SHELL
53828 # Generated automatically by $as_me ($PACKAGE) $VERSION
53829 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
53830 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
53831
53832 # Provide generalized library-building support services.
53833 # Written by Gordon Matzigkeit, 1996
53834
53835 # Copyright (C) 2014 Free Software Foundation, Inc.
53836 # This is free software; see the source for copying conditions. There is NO
53837 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
53838
53839 # GNU Libtool is free software; you can redistribute it and/or modify
53840 # it under the terms of the GNU General Public License as published by
53841 # the Free Software Foundation; either version 2 of of the License, or
53842 # (at your option) any later version.
53843 #
53844 # As a special exception to the GNU General Public License, if you
53845 # distribute this file as part of a program or library that is built
53846 # using GNU Libtool, you may include this file under the same
53847 # distribution terms that you use for the rest of that program.
53848 #
53849 # GNU Libtool is distributed in the hope that it will be useful, but
53850 # WITHOUT ANY WARRANTY; without even the implied warranty of
53851 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
53852 # GNU General Public License for more details.
53853 #
53854 # You should have received a copy of the GNU General Public License
53855 # along with this program. If not, see <http://www.gnu.org/licenses/>.
53856
53857
53858 # The names of the tagged configurations supported by this script.
53859 available_tags=''
53860
53861 # Configured defaults for sys_lib_dlsearch_path munging.
53862 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
53863
53864 # ### BEGIN LIBTOOL CONFIG
53865
53866 # Which release of libtool.m4 was used?
53867 macro_version=$macro_version
53868 macro_revision=$macro_revision
53869
53870 # Whether or not to build shared libraries.
53871 build_libtool_libs=$enable_shared
53872
53873 # Whether or not to build static libraries.
53874 build_old_libs=$enable_static
53875
53876 # What type of objects to build.
53877 pic_mode=$pic_mode
53878
53879 # Whether or not to optimize for fast installation.
53880 fast_install=$enable_fast_install
53881
53882 # Shared archive member basename,for filename based shared library versioning on AIX.
53883 shared_archive_member_spec=$shared_archive_member_spec
53884
53885 # Shell to use when invoking shell scripts.
53886 SHELL=$lt_SHELL
53887
53888 # An echo program that protects backslashes.
53889 ECHO=$lt_ECHO
53890
53891 # The PATH separator for the build system.
53892 PATH_SEPARATOR=$lt_PATH_SEPARATOR
53893
53894 # The host system.
53895 host_alias=$host_alias
53896 host=$host
53897 host_os=$host_os
53898
53899 # The build system.
53900 build_alias=$build_alias
53901 build=$build
53902 build_os=$build_os
53903
53904 # A sed program that does not truncate output.
53905 SED=$lt_SED
53906
53907 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
53908 Xsed="\$SED -e 1s/^X//"
53909
53910 # A grep program that handles long lines.
53911 GREP=$lt_GREP
53912
53913 # An ERE matcher.
53914 EGREP=$lt_EGREP
53915
53916 # A literal string matcher.
53917 FGREP=$lt_FGREP
53918
53919 # A BSD- or MS-compatible name lister.
53920 NM=$lt_NM
53921
53922 # Whether we need soft or hard links.
53923 LN_S=$lt_LN_S
53924
53925 # What is the maximum length of a command?
53926 max_cmd_len=$max_cmd_len
53927
53928 # Object file suffix (normally "o").
53929 objext=$ac_objext
53930
53931 # Executable file suffix (normally "").
53932 exeext=$exeext
53933
53934 # whether the shell understands "unset".
53935 lt_unset=$lt_unset
53936
53937 # turn spaces into newlines.
53938 SP2NL=$lt_lt_SP2NL
53939
53940 # turn newlines into spaces.
53941 NL2SP=$lt_lt_NL2SP
53942
53943 # convert \$build file names to \$host format.
53944 to_host_file_cmd=$lt_cv_to_host_file_cmd
53945
53946 # convert \$build files to toolchain format.
53947 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
53948
53949 # A file(cmd) program that detects file types.
53950 FILECMD=$lt_FILECMD
53951
53952 # An object symbol dumper.
53953 OBJDUMP=$lt_OBJDUMP
53954
53955 # Method to check whether dependent libraries are shared objects.
53956 deplibs_check_method=$lt_deplibs_check_method
53957
53958 # Command to use when deplibs_check_method = "file_magic".
53959 file_magic_cmd=$lt_file_magic_cmd
53960
53961 # How to find potential files when deplibs_check_method = "file_magic".
53962 file_magic_glob=$lt_file_magic_glob
53963
53964 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
53965 want_nocaseglob=$lt_want_nocaseglob
53966
53967 # DLL creation program.
53968 DLLTOOL=$lt_DLLTOOL
53969
53970 # Command to associate shared and link libraries.
53971 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
53972
53973 # The archiver.
53974 AR=$lt_AR
53975
53976 # Flags to create an archive (by configure).
53977 lt_ar_flags=$lt_ar_flags
53978
53979 # Flags to create an archive.
53980 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
53981
53982 # How to feed a file listing to the archiver.
53983 archiver_list_spec=$lt_archiver_list_spec
53984
53985 # A symbol stripping program.
53986 STRIP=$lt_STRIP
53987
53988 # Commands used to install an old-style archive.
53989 RANLIB=$lt_RANLIB
53990 old_postinstall_cmds=$lt_old_postinstall_cmds
53991 old_postuninstall_cmds=$lt_old_postuninstall_cmds
53992
53993 # Whether to use a lock for old archive extraction.
53994 lock_old_archive_extraction=$lock_old_archive_extraction
53995
53996 # A C compiler.
53997 LTCC=$lt_CC
53998
53999 # LTCC compiler flags.
54000 LTCFLAGS=$lt_CFLAGS
54001
54002 # Take the output of nm and produce a listing of raw symbols and C names.
54003 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
54004
54005 # Transform the output of nm in a proper C declaration.
54006 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
54007
54008 # Transform the output of nm into a list of symbols to manually relocate.
54009 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
54010
54011 # Transform the output of nm in a C name address pair.
54012 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
54013
54014 # Transform the output of nm in a C name address pair when lib prefix is needed.
54015 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
54016
54017 # The name lister interface.
54018 nm_interface=$lt_lt_cv_nm_interface
54019
54020 # Specify filename containing input files for \$NM.
54021 nm_file_list_spec=$lt_nm_file_list_spec
54022
54023 # The root where to search for dependent libraries,and where our libraries should be installed.
54024 lt_sysroot=$lt_sysroot
54025
54026 # Command to truncate a binary pipe.
54027 lt_truncate_bin=$lt_lt_cv_truncate_bin
54028
54029 # The name of the directory that contains temporary libtool files.
54030 objdir=$objdir
54031
54032 # Used to examine libraries when file_magic_cmd begins with "file".
54033 MAGIC_CMD=$MAGIC_CMD
54034
54035 # Must we lock files when doing compilation?
54036 need_locks=$lt_need_locks
54037
54038 # Manifest tool.
54039 MANIFEST_TOOL=$lt_MANIFEST_TOOL
54040
54041 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
54042 DSYMUTIL=$lt_DSYMUTIL
54043
54044 # Tool to change global to local symbols on Mac OS X.
54045 NMEDIT=$lt_NMEDIT
54046
54047 # Tool to manipulate fat objects and archives on Mac OS X.
54048 LIPO=$lt_LIPO
54049
54050 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
54051 OTOOL=$lt_OTOOL
54052
54053 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
54054 OTOOL64=$lt_OTOOL64
54055
54056 # Old archive suffix (normally "a").
54057 libext=$libext
54058
54059 # Shared library suffix (normally ".so").
54060 shrext_cmds=$lt_shrext_cmds
54061
54062 # The commands to extract the exported symbol list from a shared archive.
54063 extract_expsyms_cmds=$lt_extract_expsyms_cmds
54064
54065 # Variables whose values should be saved in libtool wrapper scripts and
54066 # restored at link time.
54067 variables_saved_for_relink=$lt_variables_saved_for_relink
54068
54069 # Do we need the "lib" prefix for modules?
54070 need_lib_prefix=$need_lib_prefix
54071
54072 # Do we need a version for libraries?
54073 need_version=$need_version
54074
54075 # Library versioning type.
54076 version_type=$version_type
54077
54078 # Shared library runtime path variable.
54079 runpath_var=$runpath_var
54080
54081 # Shared library path variable.
54082 shlibpath_var=$shlibpath_var
54083
54084 # Is shlibpath searched before the hard-coded library search path?
54085 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
54086
54087 # Format of library name prefix.
54088 libname_spec=$lt_libname_spec
54089
54090 # List of archive names. First name is the real one, the rest are links.
54091 # The last name is the one that the linker finds with -lNAME
54092 library_names_spec=$lt_library_names_spec
54093
54094 # The coded name of the library, if different from the real name.
54095 soname_spec=$lt_soname_spec
54096
54097 # Permission mode override for installation of shared libraries.
54098 install_override_mode=$lt_install_override_mode
54099
54100 # Command to use after installation of a shared archive.
54101 postinstall_cmds=$lt_postinstall_cmds
54102
54103 # Command to use after uninstallation of a shared archive.
54104 postuninstall_cmds=$lt_postuninstall_cmds
54105
54106 # Commands used to finish a libtool library installation in a directory.
54107 finish_cmds=$lt_finish_cmds
54108
54109 # As "finish_cmds", except a single script fragment to be evaled but
54110 # not shown.
54111 finish_eval=$lt_finish_eval
54112
54113 # Whether we should hardcode library paths into libraries.
54114 hardcode_into_libs=$hardcode_into_libs
54115
54116 # Compile-time system search path for libraries.
54117 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
54118
54119 # Detected run-time system search path for libraries.
54120 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
54121
54122 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
54123 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
54124
54125 # Whether dlopen is supported.
54126 dlopen_support=$enable_dlopen
54127
54128 # Whether dlopen of programs is supported.
54129 dlopen_self=$enable_dlopen_self
54130
54131 # Whether dlopen of statically linked programs is supported.
54132 dlopen_self_static=$enable_dlopen_self_static
54133
54134 # Commands to strip libraries.
54135 old_striplib=$lt_old_striplib
54136 striplib=$lt_striplib
54137
54138
54139 # The linker used to build libraries.
54140 LD=$lt_LD
54141
54142 # How to create reloadable object files.
54143 reload_flag=$lt_reload_flag
54144 reload_cmds=$lt_reload_cmds
54145
54146 # Commands used to build an old-style archive.
54147 old_archive_cmds=$lt_old_archive_cmds
54148
54149 # A language specific compiler.
54150 CC=$lt_compiler
54151
54152 # Is the compiler the GNU compiler?
54153 with_gcc=$GCC
54154
54155 # Compiler flag to turn off builtin functions.
54156 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
54157
54158 # Additional compiler flags for building library objects.
54159 pic_flag=$lt_lt_prog_compiler_pic
54160
54161 # How to pass a linker flag through the compiler.
54162 wl=$lt_lt_prog_compiler_wl
54163
54164 # Compiler flag to prevent dynamic linking.
54165 link_static_flag=$lt_lt_prog_compiler_static
54166
54167 # Does compiler simultaneously support -c and -o options?
54168 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
54169
54170 # Whether or not to add -lc for building shared libraries.
54171 build_libtool_need_lc=$archive_cmds_need_lc
54172
54173 # Whether or not to disallow shared libs when runtime libs are static.
54174 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
54175
54176 # Compiler flag to allow reflexive dlopens.
54177 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
54178
54179 # Compiler flag to generate shared objects directly from archives.
54180 whole_archive_flag_spec=$lt_whole_archive_flag_spec
54181
54182 # Whether the compiler copes with passing no objects directly.
54183 compiler_needs_object=$lt_compiler_needs_object
54184
54185 # Create an old-style archive from a shared archive.
54186 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
54187
54188 # Create a temporary old-style archive to link instead of a shared archive.
54189 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
54190
54191 # Commands used to build a shared archive.
54192 archive_cmds=$lt_archive_cmds
54193 archive_expsym_cmds=$lt_archive_expsym_cmds
54194
54195 # Commands used to build a loadable module if different from building
54196 # a shared archive.
54197 module_cmds=$lt_module_cmds
54198 module_expsym_cmds=$lt_module_expsym_cmds
54199
54200 # Whether we are building with GNU ld or not.
54201 with_gnu_ld=$lt_with_gnu_ld
54202
54203 # Flag that allows shared libraries with undefined symbols to be built.
54204 allow_undefined_flag=$lt_allow_undefined_flag
54205
54206 # Flag that enforces no undefined symbols.
54207 no_undefined_flag=$lt_no_undefined_flag
54208
54209 # Flag to hardcode \$libdir into a binary during linking.
54210 # This must work even if \$libdir does not exist
54211 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
54212
54213 # Whether we need a single "-rpath" flag with a separated argument.
54214 hardcode_libdir_separator=$lt_hardcode_libdir_separator
54215
54216 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
54217 # DIR into the resulting binary.
54218 hardcode_direct=$hardcode_direct
54219
54220 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
54221 # DIR into the resulting binary and the resulting library dependency is
54222 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
54223 # library is relocated.
54224 hardcode_direct_absolute=$hardcode_direct_absolute
54225
54226 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
54227 # into the resulting binary.
54228 hardcode_minus_L=$hardcode_minus_L
54229
54230 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
54231 # into the resulting binary.
54232 hardcode_shlibpath_var=$hardcode_shlibpath_var
54233
54234 # Set to "yes" if building a shared library automatically hardcodes DIR
54235 # into the library and all subsequent libraries and executables linked
54236 # against it.
54237 hardcode_automatic=$hardcode_automatic
54238
54239 # Set to yes if linker adds runtime paths of dependent libraries
54240 # to runtime path list.
54241 inherit_rpath=$inherit_rpath
54242
54243 # Whether libtool must link a program against all its dependency libraries.
54244 link_all_deplibs=$link_all_deplibs
54245
54246 # Set to "yes" if exported symbols are required.
54247 always_export_symbols=$always_export_symbols
54248
54249 # The commands to list exported symbols.
54250 export_symbols_cmds=$lt_export_symbols_cmds
54251
54252 # Symbols that should not be listed in the preloaded symbols.
54253 exclude_expsyms=$lt_exclude_expsyms
54254
54255 # Symbols that must always be exported.
54256 include_expsyms=$lt_include_expsyms
54257
54258 # Commands necessary for linking programs (against libraries) with templates.
54259 prelink_cmds=$lt_prelink_cmds
54260
54261 # Commands necessary for finishing linking programs.
54262 postlink_cmds=$lt_postlink_cmds
54263
54264 # Specify filename containing input files.
54265 file_list_spec=$lt_file_list_spec
54266
54267 # How to hardcode a shared library path into an executable.
54268 hardcode_action=$hardcode_action
54269
54270 # ### END LIBTOOL CONFIG
54271
54272 _LT_EOF
54273
54274 cat <<'_LT_EOF' >> "$cfgfile"
54275
54276 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
54277
54278 # func_munge_path_list VARIABLE PATH
54279 # -----------------------------------
54280 # VARIABLE is name of variable containing _space_ separated list of
54281 # directories to be munged by the contents of PATH, which is string
54282 # having a format:
54283 # "DIR[:DIR]:"
54284 # string "DIR[ DIR]" will be prepended to VARIABLE
54285 # ":DIR[:DIR]"
54286 # string "DIR[ DIR]" will be appended to VARIABLE
54287 # "DIRP[:DIRP]::[DIRA:]DIRA"
54288 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
54289 # "DIRA[ DIRA]" will be appended to VARIABLE
54290 # "DIR[:DIR]"
54291 # VARIABLE will be replaced by "DIR[ DIR]"
54292 func_munge_path_list ()
54293 {
54294 case x$2 in
54295 x)
54296 ;;
54297 *:)
54298 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
54299 ;;
54300 x:*)
54301 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
54302 ;;
54303 *::*)
54304 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
54305 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
54306 ;;
54307 *)
54308 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
54309 ;;
54310 esac
54311 }
54312
54313
54314 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
54315 func_cc_basename ()
54316 {
54317 for cc_temp in $*""; do
54318 case $cc_temp in
54319 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
54320 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
54321 \-*) ;;
54322 *) break;;
54323 esac
54324 done
54325 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
54326 }
54327
54328
54329 # ### END FUNCTIONS SHARED WITH CONFIGURE
54330
54331 _LT_EOF
54332
54333 case $host_os in
54334 aix3*)
54335 cat <<\_LT_EOF >> "$cfgfile"
54336 # AIX sometimes has problems with the GCC collect2 program. For some
54337 # reason, if we set the COLLECT_NAMES environment variable, the problems
54338 # vanish in a puff of smoke.
54339 if test set != "${COLLECT_NAMES+set}"; then
54340 COLLECT_NAMES=
54341 export COLLECT_NAMES
54342 fi
54343 _LT_EOF
54344 ;;
54345 esac
54346
54347
54348
54349 ltmain=$ac_aux_dir/ltmain.sh
54350
54351
54352 # We use sed instead of cat because bash on DJGPP gets confused if
54353 # if finds mixed CR/LF and LF-only lines. Since sed operates in
54354 # text mode, it properly converts lines to CR/LF. This bash problem
54355 # is reportedly fixed, but why not run on old versions too?
54356 $SED '$q' "$ltmain" >> "$cfgfile" \
54357 || (rm -f "$cfgfile"; exit 1)
54358
54359 mv -f "$cfgfile" "$ofile" ||
54360 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
54361 chmod +x "$ofile"
54362
54363 ;;
54364
54365 esac
54366 done # for ac_tag
54367
54368
54369 as_fn_exit 0
54370 _ACEOF
54371 ac_clean_files=$ac_clean_files_save
54372
54373 test $ac_write_fail = 0 ||
54374 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
54375
54376
54377 # configure is writing to config.log, and then calls config.status.
54378 # config.status does its own redirection, appending to config.log.
54379 # Unfortunately, on DOS this fails, as config.log is still kept open
54380 # by configure, so config.status won't be able to write to it; its
54381 # output is simply discarded. So we exec the FD to /dev/null,
54382 # effectively closing config.log, so it can be properly (re)opened and
54383 # appended to by config.status. When coming back to configure, we
54384 # need to make the FD available again.
54385 if test "$no_create" != yes; then
54386 ac_cs_success=:
54387 ac_config_status_args=
54388 test "$silent" = yes &&
54389 ac_config_status_args="$ac_config_status_args --quiet"
54390 exec 5>/dev/null
54391 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
54392 exec 5>>config.log
54393 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
54394 # would make configure fail if this is the last instruction.
54395 $ac_cs_success || as_fn_exit 1
54396 fi
54397 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
54398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
54399 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
54400 fi
54401
54402
54403 # Bash completion ...
54404
54405 if test -n "$bashcompdir"; then
54406 pkg_cv_bashcompdir="$bashcompdir"
54407 elif test -n "$PKG_CONFIG"; then
54408 if test -n "$PKG_CONFIG" && \
54409 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bash-completion\""; } >&5
54410 ($PKG_CONFIG --exists --print-errors "bash-completion") 2>&5
54411 ac_status=$?
54412 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
54413 test $ac_status = 0; }; then
54414 pkg_cv_bashcompdir=`$PKG_CONFIG --variable="completionsdir" "bash-completion" 2>/dev/null`
54415 test "x$?" != "x0" && pkg_failed=yes
54416 else
54417 pkg_failed=yes
54418 fi
54419 else
54420 pkg_failed=untried
54421 fi
54422 bashcompdir=$pkg_cv_bashcompdir
54423
54424 if test "x$bashcompdir" = x""
54425 then :
54426 bashcompdir="${sysconfdir}/bash_completion.d"
54427 fi
54428
54429