Re-generate gnulib import
[deliverable/binutils-gdb.git] / gdb / gnulib / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libgnu UNUSED-VERSION.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
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 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202 else
203 as_have_required=no
204 fi
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207 else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211 do
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
216 /*)
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
225 fi
226 fi
227 done;;
228 esac
229 as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
236
237
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
258 fi
259
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
271 fi
272 exit 1
273 fi
274 fi
275 fi
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
281
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
289 {
290 { eval $1=; unset $1;}
291 }
292 as_unset=as_fn_unset
293
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
298 {
299 return $1
300 } # as_fn_set_status
301
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
306 {
307 set +e
308 as_fn_set_status $1
309 exit $1
310 } # as_fn_exit
311
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
316 {
317
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
337 q
338 }
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\).*/{
348 s//\1/
349 q
350 }
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358 } # as_fn_mkdir_p
359
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
364 {
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
375 {
376 eval $1+=\$2
377 }'
378 else
379 as_fn_append ()
380 {
381 eval $1=\$$1\$2
382 }
383 fi # as_fn_append
384
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
392 {
393 as_val=$(( $* ))
394 }'
395 else
396 as_fn_arith ()
397 {
398 as_val=`expr "$@" || test $? -eq 1`
399 }
400 fi # as_fn_arith
401
402
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
409 {
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414 fi
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417 } # as_fn_error
418
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422 else
423 as_expr=false
424 fi
425
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428 else
429 as_basename=false
430 fi
431
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434 else
435 as_dirname=false
436 fi
437
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
445 q
446 }
447 /^X\/\(\/\/\)$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\).*/{
452 s//\1/
453 q
454 }
455 s/.*/./; q'`
456
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
463
464
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
471 p
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
477 b
478 :lineno
479 N
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop
483 s/-\n.*//
484 ' >$as_me.lineno &&
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
496 # Exit status is that of the last command.
497 exit
498 }
499
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
509 *)
510 ECHO_N='-n';;
511 esac
512
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516 else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
519 fi
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 as_ln_s='cp -pR'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -pR'
533 fi
534 else
535 as_ln_s='cp -pR'
536 fi
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
539
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
542 else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
545 fi
546
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
549
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
559
560 # Name of the host.
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
565 #
566 # Initializations.
567 #
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
576
577 # Identity of this package.
578 PACKAGE_NAME='libgnu'
579 PACKAGE_TARNAME='libgnu'
580 PACKAGE_VERSION='UNUSED-VERSION'
581 PACKAGE_STRING='libgnu UNUSED-VERSION'
582 PACKAGE_BUGREPORT=''
583 PACKAGE_URL=''
584
585 ac_unique_file="import/memmem.c"
586 # Factoring default headers for most tests.
587 ac_includes_default="\
588 #include <stdio.h>
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
591 #endif
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
594 #endif
595 #ifdef STDC_HEADERS
596 # include <stdlib.h>
597 # include <stddef.h>
598 #else
599 # ifdef HAVE_STDLIB_H
600 # include <stdlib.h>
601 # endif
602 #endif
603 #ifdef HAVE_STRING_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605 # include <memory.h>
606 # endif
607 # include <string.h>
608 #endif
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
611 #endif
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
614 #endif
615 #ifdef HAVE_STDINT_H
616 # include <stdint.h>
617 #endif
618 #ifdef HAVE_UNISTD_H
619 # include <unistd.h>
620 #endif"
621
622 gl_func_list=
623 gl_header_list=
624 gl_fnmatch_required=POSIX
625 ac_subst_vars='am__EXEEXT_FALSE
626 am__EXEEXT_TRUE
627 gltests_LTLIBOBJS
628 gltests_LIBOBJS
629 gl_LTLIBOBJS
630 gl_LIBOBJS
631 LTLIBOBJS
632 LIBOBJS
633 LN_S
634 AM_BACKSLASH
635 AM_DEFAULT_VERBOSITY
636 AM_DEFAULT_V
637 AM_V
638 am__fastdepCC_FALSE
639 am__fastdepCC_TRUE
640 CCDEPMODE
641 am__nodep
642 AMDEPBACKSLASH
643 AMDEP_FALSE
644 AMDEP_TRUE
645 am__quote
646 am__include
647 DEPDIR
648 am__untar
649 am__tar
650 AMTAR
651 am__leading_dot
652 SET_MAKE
653 AWK
654 mkdir_p
655 INSTALL_STRIP_PROGRAM
656 STRIP
657 install_sh
658 MAKEINFO
659 AUTOHEADER
660 AUTOMAKE
661 AUTOCONF
662 ACLOCAL
663 VERSION
664 PACKAGE
665 CYGPATH_W
666 am__isrc
667 INSTALL_DATA
668 INSTALL_SCRIPT
669 INSTALL_PROGRAM
670 LIBGNU_LTLIBDEPS
671 LIBGNU_LIBDEPS
672 gltests_WITNESS
673 REPLACE_TOWLOWER
674 REPLACE_ISWCNTRL
675 HAVE_WCTYPE_H
676 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
677 NEXT_WCTYPE_H
678 HAVE_ISWCNTRL
679 REPLACE_ISWBLANK
680 HAVE_WCTRANS_T
681 HAVE_WCTYPE_T
682 HAVE_ISWBLANK
683 GNULIB_TOWCTRANS
684 GNULIB_WCTRANS
685 GNULIB_ISWCTYPE
686 GNULIB_WCTYPE
687 GNULIB_ISWBLANK
688 HAVE_WINT_T
689 HAVE_FEATURES_H
690 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
691 NEXT_WCHAR_H
692 HAVE_UNISTD_H
693 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
694 NEXT_UNISTD_H
695 UNISTD_H_DEFINES_STRUCT_TIMESPEC
696 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
697 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
698 TIME_H_DEFINES_STRUCT_TIMESPEC
699 NEXT_AS_FIRST_DIRECTIVE_TIME_H
700 NEXT_TIME_H
701 REPLACE_LOCALTIME
702 REPLACE_GMTIME
703 REPLACE_TIMEGM
704 REPLACE_NANOSLEEP
705 REPLACE_MKTIME
706 REPLACE_LOCALTIME_R
707 HAVE_TIMEGM
708 HAVE_STRPTIME
709 HAVE_NANOSLEEP
710 HAVE_DECL_LOCALTIME_R
711 GNULIB_TIME_RZ
712 GNULIB_TIME_R
713 GNULIB_TIMEGM
714 GNULIB_STRPTIME
715 GNULIB_NANOSLEEP
716 GNULIB_MKTIME
717 WINDOWS_64_BIT_OFF_T
718 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
719 NEXT_SYS_TYPES_H
720 MKDIR_P
721 NEXT_AS_FIRST_DIRECTIVE_STRING_H
722 NEXT_STRING_H
723 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
724 NEXT_STDLIB_H
725 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
726 NEXT_STDIO_H
727 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
728 NEXT_STDDEF_H
729 GL_GENERATE_STDDEF_H_FALSE
730 GL_GENERATE_STDDEF_H_TRUE
731 STDDEF_H
732 HAVE_WCHAR_T
733 HAVE_MAX_ALIGN_T
734 REPLACE_NULL
735 HAVE__BOOL
736 GL_GENERATE_STDBOOL_H_FALSE
737 GL_GENERATE_STDBOOL_H_TRUE
738 STDBOOL_H
739 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
740 NEXT_SIGNAL_H
741 REPLACE_RAISE
742 REPLACE_PTHREAD_SIGMASK
743 HAVE_SIGHANDLER_T
744 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
745 HAVE_STRUCT_SIGACTION_SA_SIGACTION
746 HAVE_SIGACTION
747 HAVE_SIGINFO_T
748 HAVE_SIGSET_T
749 HAVE_RAISE
750 HAVE_PTHREAD_SIGMASK
751 HAVE_POSIX_SIGNALBLOCKING
752 GNULIB_SIGACTION
753 GNULIB_SIGPROCMASK
754 GNULIB_SIGNAL_H_SIGPIPE
755 GNULIB_RAISE
756 GNULIB_PTHREAD_SIGMASK
757 REPLACE_VSPRINTF
758 REPLACE_VSNPRINTF
759 REPLACE_VPRINTF
760 REPLACE_VFPRINTF
761 REPLACE_VDPRINTF
762 REPLACE_VASPRINTF
763 REPLACE_TMPFILE
764 REPLACE_STDIO_WRITE_FUNCS
765 REPLACE_STDIO_READ_FUNCS
766 REPLACE_SPRINTF
767 REPLACE_SNPRINTF
768 REPLACE_RENAMEAT
769 REPLACE_RENAME
770 REPLACE_REMOVE
771 REPLACE_PRINTF
772 REPLACE_POPEN
773 REPLACE_PERROR
774 REPLACE_OBSTACK_PRINTF
775 REPLACE_GETLINE
776 REPLACE_GETDELIM
777 REPLACE_FTELLO
778 REPLACE_FTELL
779 REPLACE_FSEEKO
780 REPLACE_FSEEK
781 REPLACE_FREOPEN
782 REPLACE_FPURGE
783 REPLACE_FPRINTF
784 REPLACE_FOPEN
785 REPLACE_FFLUSH
786 REPLACE_FDOPEN
787 REPLACE_FCLOSE
788 REPLACE_DPRINTF
789 HAVE_VDPRINTF
790 HAVE_VASPRINTF
791 HAVE_RENAMEAT
792 HAVE_POPEN
793 HAVE_PCLOSE
794 HAVE_FTELLO
795 HAVE_FSEEKO
796 HAVE_DPRINTF
797 HAVE_DECL_VSNPRINTF
798 HAVE_DECL_SNPRINTF
799 HAVE_DECL_OBSTACK_PRINTF
800 HAVE_DECL_GETLINE
801 HAVE_DECL_GETDELIM
802 HAVE_DECL_FTELLO
803 HAVE_DECL_FSEEKO
804 HAVE_DECL_FPURGE
805 GNULIB_VSPRINTF_POSIX
806 GNULIB_VSNPRINTF
807 GNULIB_VPRINTF_POSIX
808 GNULIB_VPRINTF
809 GNULIB_VFPRINTF_POSIX
810 GNULIB_VFPRINTF
811 GNULIB_VDPRINTF
812 GNULIB_VSCANF
813 GNULIB_VFSCANF
814 GNULIB_VASPRINTF
815 GNULIB_TMPFILE
816 GNULIB_STDIO_H_SIGPIPE
817 GNULIB_STDIO_H_NONBLOCKING
818 GNULIB_SPRINTF_POSIX
819 GNULIB_SNPRINTF
820 GNULIB_SCANF
821 GNULIB_RENAMEAT
822 GNULIB_RENAME
823 GNULIB_REMOVE
824 GNULIB_PUTS
825 GNULIB_PUTCHAR
826 GNULIB_PUTC
827 GNULIB_PRINTF_POSIX
828 GNULIB_PRINTF
829 GNULIB_POPEN
830 GNULIB_PERROR
831 GNULIB_PCLOSE
832 GNULIB_OBSTACK_PRINTF_POSIX
833 GNULIB_OBSTACK_PRINTF
834 GNULIB_GETLINE
835 GNULIB_GETDELIM
836 GNULIB_GETCHAR
837 GNULIB_GETC
838 GNULIB_FWRITE
839 GNULIB_FTELLO
840 GNULIB_FTELL
841 GNULIB_FSEEKO
842 GNULIB_FSEEK
843 GNULIB_FSCANF
844 GNULIB_FREOPEN
845 GNULIB_FREAD
846 GNULIB_FPUTS
847 GNULIB_FPUTC
848 GNULIB_FPURGE
849 GNULIB_FPRINTF_POSIX
850 GNULIB_FPRINTF
851 GNULIB_FOPEN
852 GNULIB_FGETS
853 GNULIB_FGETC
854 GNULIB_FFLUSH
855 GNULIB_FDOPEN
856 GNULIB_FCLOSE
857 GNULIB_DPRINTF
858 UNDEFINE_STRTOK_R
859 REPLACE_STRTOK_R
860 REPLACE_STRSIGNAL
861 REPLACE_STRNLEN
862 REPLACE_STRNDUP
863 REPLACE_STRNCAT
864 REPLACE_STRERROR_R
865 REPLACE_STRERROR
866 REPLACE_STRCHRNUL
867 REPLACE_STRCASESTR
868 REPLACE_STRSTR
869 REPLACE_STRDUP
870 REPLACE_STPNCPY
871 REPLACE_MEMMEM
872 REPLACE_MEMCHR
873 HAVE_STRVERSCMP
874 HAVE_DECL_STRSIGNAL
875 HAVE_DECL_STRERROR_R
876 HAVE_DECL_STRTOK_R
877 HAVE_STRCASESTR
878 HAVE_STRSEP
879 HAVE_STRPBRK
880 HAVE_DECL_STRNLEN
881 HAVE_DECL_STRNDUP
882 HAVE_DECL_STRDUP
883 HAVE_STRCHRNUL
884 HAVE_STPNCPY
885 HAVE_STPCPY
886 HAVE_RAWMEMCHR
887 HAVE_DECL_MEMRCHR
888 HAVE_MEMPCPY
889 HAVE_DECL_MEMMEM
890 HAVE_MEMCHR
891 HAVE_FFSLL
892 HAVE_FFSL
893 HAVE_MBSLEN
894 GNULIB_STRVERSCMP
895 GNULIB_STRSIGNAL
896 GNULIB_STRERROR_R
897 GNULIB_STRERROR
898 GNULIB_MBSTOK_R
899 GNULIB_MBSSEP
900 GNULIB_MBSSPN
901 GNULIB_MBSPBRK
902 GNULIB_MBSCSPN
903 GNULIB_MBSCASESTR
904 GNULIB_MBSPCASECMP
905 GNULIB_MBSNCASECMP
906 GNULIB_MBSCASECMP
907 GNULIB_MBSSTR
908 GNULIB_MBSRCHR
909 GNULIB_MBSCHR
910 GNULIB_MBSNLEN
911 GNULIB_MBSLEN
912 GNULIB_STRTOK_R
913 GNULIB_STRCASESTR
914 GNULIB_STRSTR
915 GNULIB_STRSEP
916 GNULIB_STRPBRK
917 GNULIB_STRNLEN
918 GNULIB_STRNDUP
919 GNULIB_STRNCAT
920 GNULIB_STRDUP
921 GNULIB_STRCHRNUL
922 GNULIB_STPNCPY
923 GNULIB_STPCPY
924 GNULIB_RAWMEMCHR
925 GNULIB_MEMRCHR
926 GNULIB_MEMPCPY
927 GNULIB_MEMMEM
928 GNULIB_MEMCHR
929 GNULIB_FFSLL
930 GNULIB_FFSL
931 LOCALE_FR
932 LOCALE_FR_UTF8
933 LOCALE_ZH_CN
934 LOCALE_JA
935 REPLACE_WCSWIDTH
936 REPLACE_WCWIDTH
937 REPLACE_WCSNRTOMBS
938 REPLACE_WCSRTOMBS
939 REPLACE_WCRTOMB
940 REPLACE_MBSNRTOWCS
941 REPLACE_MBSRTOWCS
942 REPLACE_MBRLEN
943 REPLACE_MBRTOWC
944 REPLACE_MBSINIT
945 REPLACE_WCTOB
946 REPLACE_BTOWC
947 REPLACE_MBSTATE_T
948 HAVE_DECL_WCWIDTH
949 HAVE_DECL_WCTOB
950 HAVE_WCSWIDTH
951 HAVE_WCSTOK
952 HAVE_WCSSTR
953 HAVE_WCSPBRK
954 HAVE_WCSSPN
955 HAVE_WCSCSPN
956 HAVE_WCSRCHR
957 HAVE_WCSCHR
958 HAVE_WCSDUP
959 HAVE_WCSXFRM
960 HAVE_WCSCOLL
961 HAVE_WCSNCASECMP
962 HAVE_WCSCASECMP
963 HAVE_WCSNCMP
964 HAVE_WCSCMP
965 HAVE_WCSNCAT
966 HAVE_WCSCAT
967 HAVE_WCPNCPY
968 HAVE_WCSNCPY
969 HAVE_WCPCPY
970 HAVE_WCSCPY
971 HAVE_WCSNLEN
972 HAVE_WCSLEN
973 HAVE_WMEMSET
974 HAVE_WMEMMOVE
975 HAVE_WMEMCPY
976 HAVE_WMEMCMP
977 HAVE_WMEMCHR
978 HAVE_WCSNRTOMBS
979 HAVE_WCSRTOMBS
980 HAVE_WCRTOMB
981 HAVE_MBSNRTOWCS
982 HAVE_MBSRTOWCS
983 HAVE_MBRLEN
984 HAVE_MBRTOWC
985 HAVE_MBSINIT
986 HAVE_BTOWC
987 GNULIB_WCSWIDTH
988 GNULIB_WCSTOK
989 GNULIB_WCSSTR
990 GNULIB_WCSPBRK
991 GNULIB_WCSSPN
992 GNULIB_WCSCSPN
993 GNULIB_WCSRCHR
994 GNULIB_WCSCHR
995 GNULIB_WCSDUP
996 GNULIB_WCSXFRM
997 GNULIB_WCSCOLL
998 GNULIB_WCSNCASECMP
999 GNULIB_WCSCASECMP
1000 GNULIB_WCSNCMP
1001 GNULIB_WCSCMP
1002 GNULIB_WCSNCAT
1003 GNULIB_WCSCAT
1004 GNULIB_WCPNCPY
1005 GNULIB_WCSNCPY
1006 GNULIB_WCPCPY
1007 GNULIB_WCSCPY
1008 GNULIB_WCSNLEN
1009 GNULIB_WCSLEN
1010 GNULIB_WMEMSET
1011 GNULIB_WMEMMOVE
1012 GNULIB_WMEMCPY
1013 GNULIB_WMEMCMP
1014 GNULIB_WMEMCHR
1015 GNULIB_WCWIDTH
1016 GNULIB_WCSNRTOMBS
1017 GNULIB_WCSRTOMBS
1018 GNULIB_WCRTOMB
1019 GNULIB_MBSNRTOWCS
1020 GNULIB_MBSRTOWCS
1021 GNULIB_MBRLEN
1022 GNULIB_MBRTOWC
1023 GNULIB_MBSINIT
1024 GNULIB_WCTOB
1025 GNULIB_BTOWC
1026 NEXT_AS_FIRST_DIRECTIVE_MATH_H
1027 NEXT_MATH_H
1028 LOCALCHARSET_TESTS_ENVIRONMENT
1029 GLIBC21
1030 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
1031 NEXT_INTTYPES_H
1032 UINT64_MAX_EQ_ULONG_MAX
1033 UINT32_MAX_LT_UINTMAX_MAX
1034 PRIPTR_PREFIX
1035 PRI_MACROS_BROKEN
1036 INT64_MAX_EQ_LONG_MAX
1037 INT32_MAX_LT_INTMAX_MAX
1038 REPLACE_STRTOUMAX
1039 REPLACE_STRTOIMAX
1040 HAVE_DECL_STRTOUMAX
1041 HAVE_DECL_STRTOIMAX
1042 HAVE_DECL_IMAXDIV
1043 HAVE_DECL_IMAXABS
1044 GNULIB_STRTOUMAX
1045 GNULIB_STRTOIMAX
1046 GNULIB_IMAXDIV
1047 GNULIB_IMAXABS
1048 GL_GENERATE_STDINT_H_FALSE
1049 GL_GENERATE_STDINT_H_TRUE
1050 STDINT_H
1051 HAVE_SYS_INTTYPES_H
1052 HAVE_SYS_BITYPES_H
1053 HAVE_C99_STDINT_H
1054 WINT_T_SUFFIX
1055 WCHAR_T_SUFFIX
1056 SIG_ATOMIC_T_SUFFIX
1057 SIZE_T_SUFFIX
1058 PTRDIFF_T_SUFFIX
1059 HAVE_SIGNED_WINT_T
1060 HAVE_SIGNED_WCHAR_T
1061 HAVE_SIGNED_SIG_ATOMIC_T
1062 BITSIZEOF_WINT_T
1063 BITSIZEOF_WCHAR_T
1064 BITSIZEOF_SIG_ATOMIC_T
1065 BITSIZEOF_SIZE_T
1066 BITSIZEOF_PTRDIFF_T
1067 APPLE_UNIVERSAL_BUILD
1068 HAVE_STDINT_H
1069 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
1070 NEXT_STDINT_H
1071 HAVE_SYS_TYPES_H
1072 HAVE_INTTYPES_H
1073 HAVE_WCHAR_H
1074 HAVE_UNSIGNED_LONG_LONG_INT
1075 HAVE_LONG_LONG_INT
1076 GL_GENERATE_LIMITS_H_FALSE
1077 GL_GENERATE_LIMITS_H_TRUE
1078 LIMITS_H
1079 NEXT_AS_FIRST_DIRECTIVE_LIMITS_H
1080 NEXT_LIMITS_H
1081 HAVE_SYS_CDEFS_H
1082 GL_GENERATE_GLOB_H_FALSE
1083 GL_GENERATE_GLOB_H_TRUE
1084 GLOB_H
1085 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
1086 NEXT_SYS_TIME_H
1087 REPLACE_STRUCT_TIMEVAL
1088 REPLACE_GETTIMEOFDAY
1089 HAVE_TIMEZONE_T
1090 HAVE_SYS_TIME_H
1091 HAVE_STRUCT_TIMEVAL
1092 HAVE_GETTIMEOFDAY
1093 GNULIB_GETTIMEOFDAY
1094 LTLIBINTL
1095 LIBINTL
1096 WINDOWS_64_BIT_ST_SIZE
1097 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
1098 NEXT_SYS_STAT_H
1099 REPLACE_UTIMENSAT
1100 REPLACE_STAT
1101 REPLACE_MKNOD
1102 REPLACE_MKFIFO
1103 REPLACE_MKDIR
1104 REPLACE_LSTAT
1105 REPLACE_FUTIMENS
1106 REPLACE_FSTATAT
1107 REPLACE_FSTAT
1108 HAVE_UTIMENSAT
1109 HAVE_MKNODAT
1110 HAVE_MKNOD
1111 HAVE_MKFIFOAT
1112 HAVE_MKFIFO
1113 HAVE_MKDIRAT
1114 HAVE_LSTAT
1115 HAVE_LCHMOD
1116 HAVE_FUTIMENS
1117 HAVE_FSTATAT
1118 HAVE_FCHMODAT
1119 GNULIB_UTIMENSAT
1120 GNULIB_STAT
1121 GNULIB_MKNODAT
1122 GNULIB_MKNOD
1123 GNULIB_MKFIFOAT
1124 GNULIB_MKFIFO
1125 GNULIB_MKDIRAT
1126 GNULIB_LSTAT
1127 GNULIB_LCHMOD
1128 GNULIB_FUTIMENS
1129 GNULIB_FSTATAT
1130 GNULIB_FSTAT
1131 GNULIB_FCHMODAT
1132 FREXPL_LIBM
1133 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
1134 FREXP_LIBM
1135 REPLACE_TRUNCL
1136 REPLACE_TRUNCF
1137 REPLACE_TRUNC
1138 REPLACE_SQRTL
1139 REPLACE_SIGNBIT_USING_GCC
1140 REPLACE_SIGNBIT
1141 REPLACE_ROUNDL
1142 REPLACE_ROUNDF
1143 REPLACE_ROUND
1144 REPLACE_REMAINDERL
1145 REPLACE_REMAINDERF
1146 REPLACE_REMAINDER
1147 REPLACE_NAN
1148 REPLACE_MODFL
1149 REPLACE_MODFF
1150 REPLACE_MODF
1151 REPLACE_LOGBL
1152 REPLACE_LOGBF
1153 REPLACE_LOGB
1154 REPLACE_LOG2L
1155 REPLACE_LOG2F
1156 REPLACE_LOG2
1157 REPLACE_LOG1PL
1158 REPLACE_LOG1PF
1159 REPLACE_LOG1P
1160 REPLACE_LOG10L
1161 REPLACE_LOG10F
1162 REPLACE_LOG10
1163 REPLACE_LOGL
1164 REPLACE_LOGF
1165 REPLACE_LOG
1166 REPLACE_LDEXPL
1167 REPLACE_ISNAN
1168 REPLACE_ISINF
1169 REPLACE_ISFINITE
1170 REPLACE_ILOGBF
1171 REPLACE_ILOGB
1172 REPLACE_HYPOTL
1173 REPLACE_HYPOTF
1174 REPLACE_HYPOT
1175 REPLACE_HUGE_VAL
1176 REPLACE_FREXPL
1177 REPLACE_FREXP
1178 REPLACE_FREXPF
1179 REPLACE_FMODL
1180 REPLACE_FMODF
1181 REPLACE_FMOD
1182 REPLACE_FMAL
1183 REPLACE_FMAF
1184 REPLACE_FMA
1185 REPLACE_FLOORL
1186 REPLACE_FLOORF
1187 REPLACE_FLOOR
1188 REPLACE_FABSL
1189 REPLACE_EXP2L
1190 REPLACE_EXP2
1191 REPLACE_EXPM1F
1192 REPLACE_EXPM1
1193 REPLACE_CEILL
1194 REPLACE_CEILF
1195 REPLACE_CEIL
1196 REPLACE_CBRTL
1197 REPLACE_CBRTF
1198 HAVE_DECL_TRUNCL
1199 HAVE_DECL_TRUNCF
1200 HAVE_DECL_TRUNC
1201 HAVE_DECL_TANL
1202 HAVE_DECL_SQRTL
1203 HAVE_DECL_SINL
1204 HAVE_DECL_ROUNDL
1205 HAVE_DECL_ROUNDF
1206 HAVE_DECL_ROUND
1207 HAVE_DECL_RINTF
1208 HAVE_DECL_REMAINDERL
1209 HAVE_DECL_REMAINDER
1210 HAVE_DECL_LOGB
1211 HAVE_DECL_LOG2L
1212 HAVE_DECL_LOG2F
1213 HAVE_DECL_LOG2
1214 HAVE_DECL_LOG10L
1215 HAVE_DECL_LOGL
1216 HAVE_DECL_LDEXPL
1217 HAVE_DECL_FREXPL
1218 HAVE_DECL_FLOORL
1219 HAVE_DECL_FLOORF
1220 HAVE_DECL_EXPM1L
1221 HAVE_DECL_EXP2L
1222 HAVE_DECL_EXP2F
1223 HAVE_DECL_EXP2
1224 HAVE_DECL_EXPL
1225 HAVE_DECL_COSL
1226 HAVE_DECL_COPYSIGNF
1227 HAVE_DECL_CEILL
1228 HAVE_DECL_CEILF
1229 HAVE_DECL_CBRTL
1230 HAVE_DECL_CBRTF
1231 HAVE_DECL_ATANL
1232 HAVE_DECL_ASINL
1233 HAVE_DECL_ACOSL
1234 HAVE_TANHF
1235 HAVE_TANL
1236 HAVE_TANF
1237 HAVE_SQRTL
1238 HAVE_SQRTF
1239 HAVE_SINHF
1240 HAVE_SINL
1241 HAVE_SINF
1242 HAVE_RINTL
1243 HAVE_RINT
1244 HAVE_REMAINDERF
1245 HAVE_REMAINDER
1246 HAVE_POWF
1247 HAVE_MODFL
1248 HAVE_MODFF
1249 HAVE_LOGBL
1250 HAVE_LOGBF
1251 HAVE_LOG1PL
1252 HAVE_LOG1PF
1253 HAVE_LOG1P
1254 HAVE_LOG10L
1255 HAVE_LOG10F
1256 HAVE_LOGL
1257 HAVE_LOGF
1258 HAVE_LDEXPF
1259 HAVE_ISNANL
1260 HAVE_ISNAND
1261 HAVE_ISNANF
1262 HAVE_ILOGBL
1263 HAVE_ILOGBF
1264 HAVE_ILOGB
1265 HAVE_HYPOTL
1266 HAVE_HYPOTF
1267 HAVE_FREXPF
1268 HAVE_FMODL
1269 HAVE_FMODF
1270 HAVE_FMAL
1271 HAVE_FMAF
1272 HAVE_FMA
1273 HAVE_FABSL
1274 HAVE_FABSF
1275 HAVE_EXPM1F
1276 HAVE_EXPM1
1277 HAVE_EXPL
1278 HAVE_EXPF
1279 HAVE_COSHF
1280 HAVE_COSL
1281 HAVE_COSF
1282 HAVE_COPYSIGNL
1283 HAVE_COPYSIGN
1284 HAVE_CBRTL
1285 HAVE_CBRTF
1286 HAVE_CBRT
1287 HAVE_ATAN2F
1288 HAVE_ATANL
1289 HAVE_ATANF
1290 HAVE_ASINL
1291 HAVE_ASINF
1292 HAVE_ACOSL
1293 HAVE_ACOSF
1294 GNULIB_TRUNCL
1295 GNULIB_TRUNCF
1296 GNULIB_TRUNC
1297 GNULIB_TANHF
1298 GNULIB_TANL
1299 GNULIB_TANF
1300 GNULIB_SQRTL
1301 GNULIB_SQRTF
1302 GNULIB_SINHF
1303 GNULIB_SINL
1304 GNULIB_SINF
1305 GNULIB_SIGNBIT
1306 GNULIB_ROUNDL
1307 GNULIB_ROUNDF
1308 GNULIB_ROUND
1309 GNULIB_RINTL
1310 GNULIB_RINTF
1311 GNULIB_RINT
1312 GNULIB_REMAINDERL
1313 GNULIB_REMAINDERF
1314 GNULIB_REMAINDER
1315 GNULIB_POWF
1316 GNULIB_MODFL
1317 GNULIB_MODFF
1318 GNULIB_MODF
1319 GNULIB_LOGBL
1320 GNULIB_LOGBF
1321 GNULIB_LOGB
1322 GNULIB_LOG2L
1323 GNULIB_LOG2F
1324 GNULIB_LOG2
1325 GNULIB_LOG1PL
1326 GNULIB_LOG1PF
1327 GNULIB_LOG1P
1328 GNULIB_LOG10L
1329 GNULIB_LOG10F
1330 GNULIB_LOG10
1331 GNULIB_LOGL
1332 GNULIB_LOGF
1333 GNULIB_LOG
1334 GNULIB_LDEXPL
1335 GNULIB_LDEXPF
1336 GNULIB_ISNANL
1337 GNULIB_ISNAND
1338 GNULIB_ISNANF
1339 GNULIB_ISNAN
1340 GNULIB_ISINF
1341 GNULIB_ISFINITE
1342 GNULIB_ILOGBL
1343 GNULIB_ILOGBF
1344 GNULIB_ILOGB
1345 GNULIB_HYPOTL
1346 GNULIB_HYPOTF
1347 GNULIB_HYPOT
1348 GNULIB_FREXPL
1349 GNULIB_FREXP
1350 GNULIB_FREXPF
1351 GNULIB_FMODL
1352 GNULIB_FMODF
1353 GNULIB_FMOD
1354 GNULIB_FMAL
1355 GNULIB_FMAF
1356 GNULIB_FMA
1357 GNULIB_FLOORL
1358 GNULIB_FLOORF
1359 GNULIB_FLOOR
1360 GNULIB_FABSL
1361 GNULIB_FABSF
1362 GNULIB_EXPM1L
1363 GNULIB_EXPM1F
1364 GNULIB_EXPM1
1365 GNULIB_EXP2L
1366 GNULIB_EXP2F
1367 GNULIB_EXP2
1368 GNULIB_EXPL
1369 GNULIB_EXPF
1370 GNULIB_COSHF
1371 GNULIB_COSL
1372 GNULIB_COSF
1373 GNULIB_COPYSIGNL
1374 GNULIB_COPYSIGNF
1375 GNULIB_COPYSIGN
1376 GNULIB_CEILL
1377 GNULIB_CEILF
1378 GNULIB_CEIL
1379 GNULIB_CBRTL
1380 GNULIB_CBRTF
1381 GNULIB_CBRT
1382 GNULIB_ATAN2F
1383 GNULIB_ATANL
1384 GNULIB_ATANF
1385 GNULIB_ASINL
1386 GNULIB_ASINF
1387 GNULIB_ACOSL
1388 GNULIB_ACOSF
1389 GL_GENERATE_FNMATCH_H_FALSE
1390 GL_GENERATE_FNMATCH_H_TRUE
1391 FNMATCH_H
1392 REPLACE_ITOLD
1393 GL_GENERATE_FLOAT_H_FALSE
1394 GL_GENERATE_FLOAT_H_TRUE
1395 FLOAT_H
1396 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1397 NEXT_FLOAT_H
1398 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
1399 NEXT_FCNTL_H
1400 REPLACE_OPENAT
1401 REPLACE_OPEN
1402 REPLACE_FCNTL
1403 HAVE_OPENAT
1404 HAVE_FCNTL
1405 GNULIB_OPENAT
1406 GNULIB_OPEN
1407 GNULIB_NONBLOCKING
1408 GNULIB_FCNTL
1409 EOVERFLOW_VALUE
1410 EOVERFLOW_HIDDEN
1411 ENOLINK_VALUE
1412 ENOLINK_HIDDEN
1413 EMULTIHOP_VALUE
1414 EMULTIHOP_HIDDEN
1415 GL_GENERATE_ERRNO_H_FALSE
1416 GL_GENERATE_ERRNO_H_TRUE
1417 ERRNO_H
1418 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1419 NEXT_ERRNO_H
1420 HAVE_DIRENT_H
1421 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
1422 NEXT_DIRENT_H
1423 PRAGMA_COLUMNS
1424 PRAGMA_SYSTEM_HEADER
1425 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1426 INCLUDE_NEXT
1427 pkglibexecdir
1428 runstatedir
1429 lispdir
1430 REPLACE_FDOPENDIR
1431 REPLACE_DIRFD
1432 REPLACE_CLOSEDIR
1433 REPLACE_OPENDIR
1434 HAVE_ALPHASORT
1435 HAVE_SCANDIR
1436 HAVE_FDOPENDIR
1437 HAVE_DECL_FDOPENDIR
1438 HAVE_DECL_DIRFD
1439 HAVE_CLOSEDIR
1440 HAVE_REWINDDIR
1441 HAVE_READDIR
1442 HAVE_OPENDIR
1443 GNULIB_ALPHASORT
1444 GNULIB_SCANDIR
1445 GNULIB_FDOPENDIR
1446 GNULIB_DIRFD
1447 GNULIB_CLOSEDIR
1448 GNULIB_REWINDDIR
1449 GNULIB_READDIR
1450 GNULIB_OPENDIR
1451 HAVE_WINSOCK2_H
1452 HAVE_MSVC_INVALID_PARAMETER_HANDLER
1453 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1454 UNISTD_H_HAVE_WINSOCK2_H
1455 REPLACE_WRITE
1456 REPLACE_USLEEP
1457 REPLACE_UNLINKAT
1458 REPLACE_UNLINK
1459 REPLACE_TTYNAME_R
1460 REPLACE_SYMLINKAT
1461 REPLACE_SYMLINK
1462 REPLACE_SLEEP
1463 REPLACE_RMDIR
1464 REPLACE_READLINKAT
1465 REPLACE_READLINK
1466 REPLACE_READ
1467 REPLACE_PWRITE
1468 REPLACE_PREAD
1469 REPLACE_LSEEK
1470 REPLACE_LINKAT
1471 REPLACE_LINK
1472 REPLACE_LCHOWN
1473 REPLACE_ISATTY
1474 REPLACE_GETPAGESIZE
1475 REPLACE_GETGROUPS
1476 REPLACE_GETLOGIN_R
1477 REPLACE_GETDTABLESIZE
1478 REPLACE_GETDOMAINNAME
1479 REPLACE_GETCWD
1480 REPLACE_FTRUNCATE
1481 REPLACE_FCHOWNAT
1482 REPLACE_DUP2
1483 REPLACE_DUP
1484 REPLACE_CLOSE
1485 REPLACE_CHOWN
1486 HAVE_SYS_PARAM_H
1487 HAVE_OS_H
1488 HAVE_DECL_TTYNAME_R
1489 HAVE_DECL_SETHOSTNAME
1490 HAVE_DECL_GETUSERSHELL
1491 HAVE_DECL_GETPAGESIZE
1492 HAVE_DECL_GETLOGIN_R
1493 HAVE_DECL_GETDOMAINNAME
1494 HAVE_DECL_FDATASYNC
1495 HAVE_DECL_FCHDIR
1496 HAVE_DECL_ENVIRON
1497 HAVE_USLEEP
1498 HAVE_UNLINKAT
1499 HAVE_SYMLINKAT
1500 HAVE_SYMLINK
1501 HAVE_SLEEP
1502 HAVE_SETHOSTNAME
1503 HAVE_READLINKAT
1504 HAVE_READLINK
1505 HAVE_PWRITE
1506 HAVE_PREAD
1507 HAVE_PIPE2
1508 HAVE_PIPE
1509 HAVE_LINKAT
1510 HAVE_LINK
1511 HAVE_LCHOWN
1512 HAVE_GROUP_MEMBER
1513 HAVE_GETPAGESIZE
1514 HAVE_GETLOGIN
1515 HAVE_GETHOSTNAME
1516 HAVE_GETGROUPS
1517 HAVE_GETDTABLESIZE
1518 HAVE_FTRUNCATE
1519 HAVE_FSYNC
1520 HAVE_FDATASYNC
1521 HAVE_FCHOWNAT
1522 HAVE_FCHDIR
1523 HAVE_FACCESSAT
1524 HAVE_EUIDACCESS
1525 HAVE_DUP3
1526 HAVE_DUP2
1527 HAVE_CHOWN
1528 GNULIB_WRITE
1529 GNULIB_USLEEP
1530 GNULIB_UNLINKAT
1531 GNULIB_UNLINK
1532 GNULIB_UNISTD_H_SIGPIPE
1533 GNULIB_UNISTD_H_NONBLOCKING
1534 GNULIB_TTYNAME_R
1535 GNULIB_SYMLINKAT
1536 GNULIB_SYMLINK
1537 GNULIB_SLEEP
1538 GNULIB_SETHOSTNAME
1539 GNULIB_RMDIR
1540 GNULIB_READLINKAT
1541 GNULIB_READLINK
1542 GNULIB_READ
1543 GNULIB_PWRITE
1544 GNULIB_PREAD
1545 GNULIB_PIPE2
1546 GNULIB_PIPE
1547 GNULIB_LSEEK
1548 GNULIB_LINKAT
1549 GNULIB_LINK
1550 GNULIB_LCHOWN
1551 GNULIB_ISATTY
1552 GNULIB_GROUP_MEMBER
1553 GNULIB_GETUSERSHELL
1554 GNULIB_GETPAGESIZE
1555 GNULIB_GETLOGIN_R
1556 GNULIB_GETLOGIN
1557 GNULIB_GETHOSTNAME
1558 GNULIB_GETGROUPS
1559 GNULIB_GETDTABLESIZE
1560 GNULIB_GETDOMAINNAME
1561 GNULIB_GETCWD
1562 GNULIB_FTRUNCATE
1563 GNULIB_FSYNC
1564 GNULIB_FDATASYNC
1565 GNULIB_FCHOWNAT
1566 GNULIB_FCHDIR
1567 GNULIB_FACCESSAT
1568 GNULIB_EUIDACCESS
1569 GNULIB_ENVIRON
1570 GNULIB_DUP3
1571 GNULIB_DUP2
1572 GNULIB_DUP
1573 GNULIB_CLOSE
1574 GNULIB_CHOWN
1575 GNULIB_CHDIR
1576 REPLACE_WCTOMB
1577 REPLACE_UNSETENV
1578 REPLACE_STRTOD
1579 REPLACE_SETENV
1580 REPLACE_REALPATH
1581 REPLACE_REALLOC
1582 REPLACE_RANDOM_R
1583 REPLACE_QSORT_R
1584 REPLACE_PUTENV
1585 REPLACE_PTSNAME_R
1586 REPLACE_PTSNAME
1587 REPLACE_MKSTEMP
1588 REPLACE_MBTOWC
1589 REPLACE_MALLOC
1590 REPLACE_CANONICALIZE_FILE_NAME
1591 REPLACE_CALLOC
1592 HAVE_DECL_UNSETENV
1593 HAVE_UNLOCKPT
1594 HAVE_SYS_LOADAVG_H
1595 HAVE_STRUCT_RANDOM_DATA
1596 HAVE_STRTOULL
1597 HAVE_STRTOLL
1598 HAVE_STRTOD
1599 HAVE_DECL_SETENV
1600 HAVE_SETENV
1601 HAVE_SECURE_GETENV
1602 HAVE_RPMATCH
1603 HAVE_REALPATH
1604 HAVE_RANDOM_R
1605 HAVE_RANDOM_H
1606 HAVE_RANDOM
1607 HAVE_QSORT_R
1608 HAVE_PTSNAME_R
1609 HAVE_PTSNAME
1610 HAVE_POSIX_OPENPT
1611 HAVE_MKSTEMPS
1612 HAVE_MKSTEMP
1613 HAVE_MKOSTEMPS
1614 HAVE_MKOSTEMP
1615 HAVE_MKDTEMP
1616 HAVE_GRANTPT
1617 HAVE_GETSUBOPT
1618 HAVE_DECL_GETLOADAVG
1619 HAVE_CANONICALIZE_FILE_NAME
1620 HAVE_ATOLL
1621 HAVE__EXIT
1622 GNULIB_WCTOMB
1623 GNULIB_UNSETENV
1624 GNULIB_UNLOCKPT
1625 GNULIB_SYSTEM_POSIX
1626 GNULIB_STRTOULL
1627 GNULIB_STRTOLL
1628 GNULIB_STRTOD
1629 GNULIB_SETENV
1630 GNULIB_SECURE_GETENV
1631 GNULIB_RPMATCH
1632 GNULIB_REALPATH
1633 GNULIB_REALLOC_POSIX
1634 GNULIB_RANDOM_R
1635 GNULIB_RANDOM
1636 GNULIB_QSORT_R
1637 GNULIB_PUTENV
1638 GNULIB_PTSNAME_R
1639 GNULIB_PTSNAME
1640 GNULIB_POSIX_OPENPT
1641 GNULIB_MKSTEMPS
1642 GNULIB_MKSTEMP
1643 GNULIB_MKOSTEMPS
1644 GNULIB_MKOSTEMP
1645 GNULIB_MKDTEMP
1646 GNULIB_MBTOWC
1647 GNULIB_MALLOC_POSIX
1648 GNULIB_GRANTPT
1649 GNULIB_GETSUBOPT
1650 GNULIB_GETLOADAVG
1651 GNULIB_CANONICALIZE_FILE_NAME
1652 GNULIB_CALLOC_POSIX
1653 GNULIB_ATOLL
1654 GNULIB__EXIT
1655 GL_GENERATE_ALLOCA_H_FALSE
1656 GL_GENERATE_ALLOCA_H_TRUE
1657 ALLOCA_H
1658 ALLOCA
1659 GL_COND_LIBTOOL_FALSE
1660 GL_COND_LIBTOOL_TRUE
1661 target_os
1662 target_vendor
1663 target_cpu
1664 target
1665 host_os
1666 host_vendor
1667 host_cpu
1668 host
1669 build_os
1670 build_vendor
1671 build_cpu
1672 build
1673 RANLIB
1674 ARFLAGS
1675 ac_ct_AR
1676 AR
1677 EGREP
1678 GREP
1679 CPP
1680 OBJEXT
1681 EXEEXT
1682 ac_ct_CC
1683 CPPFLAGS
1684 LDFLAGS
1685 CFLAGS
1686 CC
1687 MAINT
1688 MAINTAINER_MODE_FALSE
1689 MAINTAINER_MODE_TRUE
1690 target_alias
1691 host_alias
1692 build_alias
1693 LIBS
1694 ECHO_T
1695 ECHO_N
1696 ECHO_C
1697 DEFS
1698 mandir
1699 localedir
1700 libdir
1701 psdir
1702 pdfdir
1703 dvidir
1704 htmldir
1705 infodir
1706 docdir
1707 oldincludedir
1708 includedir
1709 localstatedir
1710 sharedstatedir
1711 sysconfdir
1712 datadir
1713 datarootdir
1714 libexecdir
1715 sbindir
1716 bindir
1717 program_transform_name
1718 prefix
1719 exec_prefix
1720 PACKAGE_URL
1721 PACKAGE_BUGREPORT
1722 PACKAGE_STRING
1723 PACKAGE_VERSION
1724 PACKAGE_TARNAME
1725 PACKAGE_NAME
1726 PATH_SEPARATOR
1727 SHELL'
1728 ac_subst_files=''
1729 ac_user_opts='
1730 enable_option_checking
1731 enable_maintainer_mode
1732 enable_largefile
1733 enable_dependency_tracking
1734 enable_silent_rules
1735 '
1736 ac_precious_vars='build_alias
1737 host_alias
1738 target_alias
1739 CC
1740 CFLAGS
1741 LDFLAGS
1742 LIBS
1743 CPPFLAGS
1744 CPP'
1745
1746
1747 # Initialize some variables set by options.
1748 ac_init_help=
1749 ac_init_version=false
1750 ac_unrecognized_opts=
1751 ac_unrecognized_sep=
1752 # The variables have the same names as the options, with
1753 # dashes changed to underlines.
1754 cache_file=/dev/null
1755 exec_prefix=NONE
1756 no_create=
1757 no_recursion=
1758 prefix=NONE
1759 program_prefix=NONE
1760 program_suffix=NONE
1761 program_transform_name=s,x,x,
1762 silent=
1763 site=
1764 srcdir=
1765 verbose=
1766 x_includes=NONE
1767 x_libraries=NONE
1768
1769 # Installation directory options.
1770 # These are left unexpanded so users can "make install exec_prefix=/foo"
1771 # and all the variables that are supposed to be based on exec_prefix
1772 # by default will actually change.
1773 # Use braces instead of parens because sh, perl, etc. also accept them.
1774 # (The list follows the same order as the GNU Coding Standards.)
1775 bindir='${exec_prefix}/bin'
1776 sbindir='${exec_prefix}/sbin'
1777 libexecdir='${exec_prefix}/libexec'
1778 datarootdir='${prefix}/share'
1779 datadir='${datarootdir}'
1780 sysconfdir='${prefix}/etc'
1781 sharedstatedir='${prefix}/com'
1782 localstatedir='${prefix}/var'
1783 includedir='${prefix}/include'
1784 oldincludedir='/usr/include'
1785 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1786 infodir='${datarootdir}/info'
1787 htmldir='${docdir}'
1788 dvidir='${docdir}'
1789 pdfdir='${docdir}'
1790 psdir='${docdir}'
1791 libdir='${exec_prefix}/lib'
1792 localedir='${datarootdir}/locale'
1793 mandir='${datarootdir}/man'
1794
1795 ac_prev=
1796 ac_dashdash=
1797 for ac_option
1798 do
1799 # If the previous option needs an argument, assign it.
1800 if test -n "$ac_prev"; then
1801 eval $ac_prev=\$ac_option
1802 ac_prev=
1803 continue
1804 fi
1805
1806 case $ac_option in
1807 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1808 *=) ac_optarg= ;;
1809 *) ac_optarg=yes ;;
1810 esac
1811
1812 # Accept the important Cygnus configure options, so we can diagnose typos.
1813
1814 case $ac_dashdash$ac_option in
1815 --)
1816 ac_dashdash=yes ;;
1817
1818 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1819 ac_prev=bindir ;;
1820 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1821 bindir=$ac_optarg ;;
1822
1823 -build | --build | --buil | --bui | --bu)
1824 ac_prev=build_alias ;;
1825 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1826 build_alias=$ac_optarg ;;
1827
1828 -cache-file | --cache-file | --cache-fil | --cache-fi \
1829 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1830 ac_prev=cache_file ;;
1831 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1832 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1833 cache_file=$ac_optarg ;;
1834
1835 --config-cache | -C)
1836 cache_file=config.cache ;;
1837
1838 -datadir | --datadir | --datadi | --datad)
1839 ac_prev=datadir ;;
1840 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1841 datadir=$ac_optarg ;;
1842
1843 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1844 | --dataroo | --dataro | --datar)
1845 ac_prev=datarootdir ;;
1846 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1847 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1848 datarootdir=$ac_optarg ;;
1849
1850 -disable-* | --disable-*)
1851 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1852 # Reject names that are not valid shell variable names.
1853 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1854 as_fn_error $? "invalid feature name: $ac_useropt"
1855 ac_useropt_orig=$ac_useropt
1856 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1857 case $ac_user_opts in
1858 *"
1859 "enable_$ac_useropt"
1860 "*) ;;
1861 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1862 ac_unrecognized_sep=', ';;
1863 esac
1864 eval enable_$ac_useropt=no ;;
1865
1866 -docdir | --docdir | --docdi | --doc | --do)
1867 ac_prev=docdir ;;
1868 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1869 docdir=$ac_optarg ;;
1870
1871 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1872 ac_prev=dvidir ;;
1873 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1874 dvidir=$ac_optarg ;;
1875
1876 -enable-* | --enable-*)
1877 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1878 # Reject names that are not valid shell variable names.
1879 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1880 as_fn_error $? "invalid feature name: $ac_useropt"
1881 ac_useropt_orig=$ac_useropt
1882 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1883 case $ac_user_opts in
1884 *"
1885 "enable_$ac_useropt"
1886 "*) ;;
1887 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1888 ac_unrecognized_sep=', ';;
1889 esac
1890 eval enable_$ac_useropt=\$ac_optarg ;;
1891
1892 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1893 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1894 | --exec | --exe | --ex)
1895 ac_prev=exec_prefix ;;
1896 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1897 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1898 | --exec=* | --exe=* | --ex=*)
1899 exec_prefix=$ac_optarg ;;
1900
1901 -gas | --gas | --ga | --g)
1902 # Obsolete; use --with-gas.
1903 with_gas=yes ;;
1904
1905 -help | --help | --hel | --he | -h)
1906 ac_init_help=long ;;
1907 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1908 ac_init_help=recursive ;;
1909 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1910 ac_init_help=short ;;
1911
1912 -host | --host | --hos | --ho)
1913 ac_prev=host_alias ;;
1914 -host=* | --host=* | --hos=* | --ho=*)
1915 host_alias=$ac_optarg ;;
1916
1917 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1918 ac_prev=htmldir ;;
1919 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1920 | --ht=*)
1921 htmldir=$ac_optarg ;;
1922
1923 -includedir | --includedir | --includedi | --included | --include \
1924 | --includ | --inclu | --incl | --inc)
1925 ac_prev=includedir ;;
1926 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1927 | --includ=* | --inclu=* | --incl=* | --inc=*)
1928 includedir=$ac_optarg ;;
1929
1930 -infodir | --infodir | --infodi | --infod | --info | --inf)
1931 ac_prev=infodir ;;
1932 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1933 infodir=$ac_optarg ;;
1934
1935 -libdir | --libdir | --libdi | --libd)
1936 ac_prev=libdir ;;
1937 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1938 libdir=$ac_optarg ;;
1939
1940 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1941 | --libexe | --libex | --libe)
1942 ac_prev=libexecdir ;;
1943 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1944 | --libexe=* | --libex=* | --libe=*)
1945 libexecdir=$ac_optarg ;;
1946
1947 -localedir | --localedir | --localedi | --localed | --locale)
1948 ac_prev=localedir ;;
1949 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1950 localedir=$ac_optarg ;;
1951
1952 -localstatedir | --localstatedir | --localstatedi | --localstated \
1953 | --localstate | --localstat | --localsta | --localst | --locals)
1954 ac_prev=localstatedir ;;
1955 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1956 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1957 localstatedir=$ac_optarg ;;
1958
1959 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1960 ac_prev=mandir ;;
1961 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1962 mandir=$ac_optarg ;;
1963
1964 -nfp | --nfp | --nf)
1965 # Obsolete; use --without-fp.
1966 with_fp=no ;;
1967
1968 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1969 | --no-cr | --no-c | -n)
1970 no_create=yes ;;
1971
1972 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1973 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1974 no_recursion=yes ;;
1975
1976 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1977 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1978 | --oldin | --oldi | --old | --ol | --o)
1979 ac_prev=oldincludedir ;;
1980 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1981 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1982 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1983 oldincludedir=$ac_optarg ;;
1984
1985 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1986 ac_prev=prefix ;;
1987 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1988 prefix=$ac_optarg ;;
1989
1990 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1991 | --program-pre | --program-pr | --program-p)
1992 ac_prev=program_prefix ;;
1993 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1994 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1995 program_prefix=$ac_optarg ;;
1996
1997 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1998 | --program-suf | --program-su | --program-s)
1999 ac_prev=program_suffix ;;
2000 -program-suffix=* | --program-suffix=* | --program-suffi=* \
2001 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
2002 program_suffix=$ac_optarg ;;
2003
2004 -program-transform-name | --program-transform-name \
2005 | --program-transform-nam | --program-transform-na \
2006 | --program-transform-n | --program-transform- \
2007 | --program-transform | --program-transfor \
2008 | --program-transfo | --program-transf \
2009 | --program-trans | --program-tran \
2010 | --progr-tra | --program-tr | --program-t)
2011 ac_prev=program_transform_name ;;
2012 -program-transform-name=* | --program-transform-name=* \
2013 | --program-transform-nam=* | --program-transform-na=* \
2014 | --program-transform-n=* | --program-transform-=* \
2015 | --program-transform=* | --program-transfor=* \
2016 | --program-transfo=* | --program-transf=* \
2017 | --program-trans=* | --program-tran=* \
2018 | --progr-tra=* | --program-tr=* | --program-t=*)
2019 program_transform_name=$ac_optarg ;;
2020
2021 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
2022 ac_prev=pdfdir ;;
2023 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
2024 pdfdir=$ac_optarg ;;
2025
2026 -psdir | --psdir | --psdi | --psd | --ps)
2027 ac_prev=psdir ;;
2028 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
2029 psdir=$ac_optarg ;;
2030
2031 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2032 | -silent | --silent | --silen | --sile | --sil)
2033 silent=yes ;;
2034
2035 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
2036 ac_prev=sbindir ;;
2037 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
2038 | --sbi=* | --sb=*)
2039 sbindir=$ac_optarg ;;
2040
2041 -sharedstatedir | --sharedstatedir | --sharedstatedi \
2042 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
2043 | --sharedst | --shareds | --shared | --share | --shar \
2044 | --sha | --sh)
2045 ac_prev=sharedstatedir ;;
2046 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
2047 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
2048 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
2049 | --sha=* | --sh=*)
2050 sharedstatedir=$ac_optarg ;;
2051
2052 -site | --site | --sit)
2053 ac_prev=site ;;
2054 -site=* | --site=* | --sit=*)
2055 site=$ac_optarg ;;
2056
2057 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
2058 ac_prev=srcdir ;;
2059 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
2060 srcdir=$ac_optarg ;;
2061
2062 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
2063 | --syscon | --sysco | --sysc | --sys | --sy)
2064 ac_prev=sysconfdir ;;
2065 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
2066 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
2067 sysconfdir=$ac_optarg ;;
2068
2069 -target | --target | --targe | --targ | --tar | --ta | --t)
2070 ac_prev=target_alias ;;
2071 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
2072 target_alias=$ac_optarg ;;
2073
2074 -v | -verbose | --verbose | --verbos | --verbo | --verb)
2075 verbose=yes ;;
2076
2077 -version | --version | --versio | --versi | --vers | -V)
2078 ac_init_version=: ;;
2079
2080 -with-* | --with-*)
2081 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
2082 # Reject names that are not valid shell variable names.
2083 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2084 as_fn_error $? "invalid package name: $ac_useropt"
2085 ac_useropt_orig=$ac_useropt
2086 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2087 case $ac_user_opts in
2088 *"
2089 "with_$ac_useropt"
2090 "*) ;;
2091 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
2092 ac_unrecognized_sep=', ';;
2093 esac
2094 eval with_$ac_useropt=\$ac_optarg ;;
2095
2096 -without-* | --without-*)
2097 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
2098 # Reject names that are not valid shell variable names.
2099 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2100 as_fn_error $? "invalid package name: $ac_useropt"
2101 ac_useropt_orig=$ac_useropt
2102 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2103 case $ac_user_opts in
2104 *"
2105 "with_$ac_useropt"
2106 "*) ;;
2107 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
2108 ac_unrecognized_sep=', ';;
2109 esac
2110 eval with_$ac_useropt=no ;;
2111
2112 --x)
2113 # Obsolete; use --with-x.
2114 with_x=yes ;;
2115
2116 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
2117 | --x-incl | --x-inc | --x-in | --x-i)
2118 ac_prev=x_includes ;;
2119 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
2120 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
2121 x_includes=$ac_optarg ;;
2122
2123 -x-libraries | --x-libraries | --x-librarie | --x-librari \
2124 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
2125 ac_prev=x_libraries ;;
2126 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
2127 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
2128 x_libraries=$ac_optarg ;;
2129
2130 -*) as_fn_error $? "unrecognized option: \`$ac_option'
2131 Try \`$0 --help' for more information"
2132 ;;
2133
2134 *=*)
2135 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
2136 # Reject names that are not valid shell variable names.
2137 case $ac_envvar in #(
2138 '' | [0-9]* | *[!_$as_cr_alnum]* )
2139 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
2140 esac
2141 eval $ac_envvar=\$ac_optarg
2142 export $ac_envvar ;;
2143
2144 *)
2145 # FIXME: should be removed in autoconf 3.0.
2146 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
2147 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
2148 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
2149 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
2150 ;;
2151
2152 esac
2153 done
2154
2155 if test -n "$ac_prev"; then
2156 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
2157 as_fn_error $? "missing argument to $ac_option"
2158 fi
2159
2160 if test -n "$ac_unrecognized_opts"; then
2161 case $enable_option_checking in
2162 no) ;;
2163 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
2164 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2165 esac
2166 fi
2167
2168 # Check all directory arguments for consistency.
2169 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
2170 datadir sysconfdir sharedstatedir localstatedir includedir \
2171 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2172 libdir localedir mandir
2173 do
2174 eval ac_val=\$$ac_var
2175 # Remove trailing slashes.
2176 case $ac_val in
2177 */ )
2178 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
2179 eval $ac_var=\$ac_val;;
2180 esac
2181 # Be sure to have absolute directory names.
2182 case $ac_val in
2183 [\\/$]* | ?:[\\/]* ) continue;;
2184 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
2185 esac
2186 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
2187 done
2188
2189 # There might be people who depend on the old broken behavior: `$host'
2190 # used to hold the argument of --host etc.
2191 # FIXME: To remove some day.
2192 build=$build_alias
2193 host=$host_alias
2194 target=$target_alias
2195
2196 # FIXME: To remove some day.
2197 if test "x$host_alias" != x; then
2198 if test "x$build_alias" = x; then
2199 cross_compiling=maybe
2200 elif test "x$build_alias" != "x$host_alias"; then
2201 cross_compiling=yes
2202 fi
2203 fi
2204
2205 ac_tool_prefix=
2206 test -n "$host_alias" && ac_tool_prefix=$host_alias-
2207
2208 test "$silent" = yes && exec 6>/dev/null
2209
2210
2211 ac_pwd=`pwd` && test -n "$ac_pwd" &&
2212 ac_ls_di=`ls -di .` &&
2213 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
2214 as_fn_error $? "working directory cannot be determined"
2215 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2216 as_fn_error $? "pwd does not report name of working directory"
2217
2218
2219 # Find the source files, if location was not specified.
2220 if test -z "$srcdir"; then
2221 ac_srcdir_defaulted=yes
2222 # Try the directory containing this script, then the parent directory.
2223 ac_confdir=`$as_dirname -- "$as_myself" ||
2224 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2225 X"$as_myself" : 'X\(//\)[^/]' \| \
2226 X"$as_myself" : 'X\(//\)$' \| \
2227 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2228 $as_echo X"$as_myself" |
2229 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2230 s//\1/
2231 q
2232 }
2233 /^X\(\/\/\)[^/].*/{
2234 s//\1/
2235 q
2236 }
2237 /^X\(\/\/\)$/{
2238 s//\1/
2239 q
2240 }
2241 /^X\(\/\).*/{
2242 s//\1/
2243 q
2244 }
2245 s/.*/./; q'`
2246 srcdir=$ac_confdir
2247 if test ! -r "$srcdir/$ac_unique_file"; then
2248 srcdir=..
2249 fi
2250 else
2251 ac_srcdir_defaulted=no
2252 fi
2253 if test ! -r "$srcdir/$ac_unique_file"; then
2254 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
2255 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
2256 fi
2257 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
2258 ac_abs_confdir=`(
2259 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
2260 pwd)`
2261 # When building in place, set srcdir=.
2262 if test "$ac_abs_confdir" = "$ac_pwd"; then
2263 srcdir=.
2264 fi
2265 # Remove unnecessary trailing slashes from srcdir.
2266 # Double slashes in file names in object file debugging info
2267 # mess up M-x gdb in Emacs.
2268 case $srcdir in
2269 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2270 esac
2271 for ac_var in $ac_precious_vars; do
2272 eval ac_env_${ac_var}_set=\${${ac_var}+set}
2273 eval ac_env_${ac_var}_value=\$${ac_var}
2274 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
2275 eval ac_cv_env_${ac_var}_value=\$${ac_var}
2276 done
2277
2278 #
2279 # Report the --help message.
2280 #
2281 if test "$ac_init_help" = "long"; then
2282 # Omit some internal or obsolete options to make the list less imposing.
2283 # This message is too long to be a string in the A/UX 3.1 sh.
2284 cat <<_ACEOF
2285 \`configure' configures libgnu UNUSED-VERSION to adapt to many kinds of systems.
2286
2287 Usage: $0 [OPTION]... [VAR=VALUE]...
2288
2289 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2290 VAR=VALUE. See below for descriptions of some of the useful variables.
2291
2292 Defaults for the options are specified in brackets.
2293
2294 Configuration:
2295 -h, --help display this help and exit
2296 --help=short display options specific to this package
2297 --help=recursive display the short help of all the included packages
2298 -V, --version display version information and exit
2299 -q, --quiet, --silent do not print \`checking ...' messages
2300 --cache-file=FILE cache test results in FILE [disabled]
2301 -C, --config-cache alias for \`--cache-file=config.cache'
2302 -n, --no-create do not create output files
2303 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2304
2305 Installation directories:
2306 --prefix=PREFIX install architecture-independent files in PREFIX
2307 [$ac_default_prefix]
2308 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2309 [PREFIX]
2310
2311 By default, \`make install' will install all the files in
2312 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2313 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2314 for instance \`--prefix=\$HOME'.
2315
2316 For better control, use the options below.
2317
2318 Fine tuning of the installation directories:
2319 --bindir=DIR user executables [EPREFIX/bin]
2320 --sbindir=DIR system admin executables [EPREFIX/sbin]
2321 --libexecdir=DIR program executables [EPREFIX/libexec]
2322 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2323 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2324 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2325 --libdir=DIR object code libraries [EPREFIX/lib]
2326 --includedir=DIR C header files [PREFIX/include]
2327 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2328 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2329 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2330 --infodir=DIR info documentation [DATAROOTDIR/info]
2331 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2332 --mandir=DIR man documentation [DATAROOTDIR/man]
2333 --docdir=DIR documentation root [DATAROOTDIR/doc/libgnu]
2334 --htmldir=DIR html documentation [DOCDIR]
2335 --dvidir=DIR dvi documentation [DOCDIR]
2336 --pdfdir=DIR pdf documentation [DOCDIR]
2337 --psdir=DIR ps documentation [DOCDIR]
2338 _ACEOF
2339
2340 cat <<\_ACEOF
2341
2342 Program names:
2343 --program-prefix=PREFIX prepend PREFIX to installed program names
2344 --program-suffix=SUFFIX append SUFFIX to installed program names
2345 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
2346
2347 System types:
2348 --build=BUILD configure for building on BUILD [guessed]
2349 --host=HOST cross-compile to build programs to run on HOST [BUILD]
2350 --target=TARGET configure for building compilers for TARGET [HOST]
2351 _ACEOF
2352 fi
2353
2354 if test -n "$ac_init_help"; then
2355 case $ac_init_help in
2356 short | recursive ) echo "Configuration of libgnu UNUSED-VERSION:";;
2357 esac
2358 cat <<\_ACEOF
2359
2360 Optional Features:
2361 --disable-option-checking ignore unrecognized --enable/--with options
2362 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2363 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2364 --enable-maintainer-mode
2365 enable make rules and dependencies not useful (and
2366 sometimes confusing) to the casual installer
2367 --disable-largefile omit support for large files
2368 --enable-dependency-tracking
2369 do not reject slow dependency extractors
2370 --disable-dependency-tracking
2371 speeds up one-time build
2372 --enable-silent-rules less verbose build output (undo: "make V=1")
2373 --disable-silent-rules verbose build output (undo: "make V=0")
2374
2375 Some influential environment variables:
2376 CC C compiler command
2377 CFLAGS C compiler flags
2378 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2379 nonstandard directory <lib dir>
2380 LIBS libraries to pass to the linker, e.g. -l<library>
2381 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2382 you have headers in a nonstandard directory <include dir>
2383 CPP C preprocessor
2384
2385 Use these variables to override the choices made by `configure' or to help
2386 it to find libraries and programs with nonstandard names/locations.
2387
2388 Report bugs to the package provider.
2389 _ACEOF
2390 ac_status=$?
2391 fi
2392
2393 if test "$ac_init_help" = "recursive"; then
2394 # If there are subdirs, report their specific --help.
2395 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2396 test -d "$ac_dir" ||
2397 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2398 continue
2399 ac_builddir=.
2400
2401 case "$ac_dir" in
2402 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2403 *)
2404 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2405 # A ".." for each directory in $ac_dir_suffix.
2406 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2407 case $ac_top_builddir_sub in
2408 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2409 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2410 esac ;;
2411 esac
2412 ac_abs_top_builddir=$ac_pwd
2413 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2414 # for backward compatibility:
2415 ac_top_builddir=$ac_top_build_prefix
2416
2417 case $srcdir in
2418 .) # We are building in place.
2419 ac_srcdir=.
2420 ac_top_srcdir=$ac_top_builddir_sub
2421 ac_abs_top_srcdir=$ac_pwd ;;
2422 [\\/]* | ?:[\\/]* ) # Absolute name.
2423 ac_srcdir=$srcdir$ac_dir_suffix;
2424 ac_top_srcdir=$srcdir
2425 ac_abs_top_srcdir=$srcdir ;;
2426 *) # Relative name.
2427 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2428 ac_top_srcdir=$ac_top_build_prefix$srcdir
2429 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2430 esac
2431 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2432
2433 cd "$ac_dir" || { ac_status=$?; continue; }
2434 # Check for guested configure.
2435 if test -f "$ac_srcdir/configure.gnu"; then
2436 echo &&
2437 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2438 elif test -f "$ac_srcdir/configure"; then
2439 echo &&
2440 $SHELL "$ac_srcdir/configure" --help=recursive
2441 else
2442 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2443 fi || ac_status=$?
2444 cd "$ac_pwd" || { ac_status=$?; break; }
2445 done
2446 fi
2447
2448 test -n "$ac_init_help" && exit $ac_status
2449 if $ac_init_version; then
2450 cat <<\_ACEOF
2451 libgnu configure UNUSED-VERSION
2452 generated by GNU Autoconf 2.69
2453
2454 Copyright (C) 2012 Free Software Foundation, Inc.
2455 This configure script is free software; the Free Software Foundation
2456 gives unlimited permission to copy, distribute and modify it.
2457 _ACEOF
2458 exit
2459 fi
2460
2461 ## ------------------------ ##
2462 ## Autoconf initialization. ##
2463 ## ------------------------ ##
2464
2465 # ac_fn_c_try_compile LINENO
2466 # --------------------------
2467 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2468 ac_fn_c_try_compile ()
2469 {
2470 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2471 rm -f conftest.$ac_objext
2472 if { { ac_try="$ac_compile"
2473 case "(($ac_try" in
2474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2475 *) ac_try_echo=$ac_try;;
2476 esac
2477 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2478 $as_echo "$ac_try_echo"; } >&5
2479 (eval "$ac_compile") 2>conftest.err
2480 ac_status=$?
2481 if test -s conftest.err; then
2482 grep -v '^ *+' conftest.err >conftest.er1
2483 cat conftest.er1 >&5
2484 mv -f conftest.er1 conftest.err
2485 fi
2486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2487 test $ac_status = 0; } && {
2488 test -z "$ac_c_werror_flag" ||
2489 test ! -s conftest.err
2490 } && test -s conftest.$ac_objext; then :
2491 ac_retval=0
2492 else
2493 $as_echo "$as_me: failed program was:" >&5
2494 sed 's/^/| /' conftest.$ac_ext >&5
2495
2496 ac_retval=1
2497 fi
2498 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2499 as_fn_set_status $ac_retval
2500
2501 } # ac_fn_c_try_compile
2502
2503 # ac_fn_c_try_cpp LINENO
2504 # ----------------------
2505 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2506 ac_fn_c_try_cpp ()
2507 {
2508 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2509 if { { ac_try="$ac_cpp conftest.$ac_ext"
2510 case "(($ac_try" in
2511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2512 *) ac_try_echo=$ac_try;;
2513 esac
2514 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2515 $as_echo "$ac_try_echo"; } >&5
2516 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2517 ac_status=$?
2518 if test -s conftest.err; then
2519 grep -v '^ *+' conftest.err >conftest.er1
2520 cat conftest.er1 >&5
2521 mv -f conftest.er1 conftest.err
2522 fi
2523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2524 test $ac_status = 0; } > conftest.i && {
2525 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2526 test ! -s conftest.err
2527 }; then :
2528 ac_retval=0
2529 else
2530 $as_echo "$as_me: failed program was:" >&5
2531 sed 's/^/| /' conftest.$ac_ext >&5
2532
2533 ac_retval=1
2534 fi
2535 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2536 as_fn_set_status $ac_retval
2537
2538 } # ac_fn_c_try_cpp
2539
2540 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2541 # -------------------------------------------------------
2542 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2543 # the include files in INCLUDES and setting the cache variable VAR
2544 # accordingly.
2545 ac_fn_c_check_header_mongrel ()
2546 {
2547 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2548 if eval \${$3+:} false; then :
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2550 $as_echo_n "checking for $2... " >&6; }
2551 if eval \${$3+:} false; then :
2552 $as_echo_n "(cached) " >&6
2553 fi
2554 eval ac_res=\$$3
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2556 $as_echo "$ac_res" >&6; }
2557 else
2558 # Is the header compilable?
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2560 $as_echo_n "checking $2 usability... " >&6; }
2561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2562 /* end confdefs.h. */
2563 $4
2564 #include <$2>
2565 _ACEOF
2566 if ac_fn_c_try_compile "$LINENO"; then :
2567 ac_header_compiler=yes
2568 else
2569 ac_header_compiler=no
2570 fi
2571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2573 $as_echo "$ac_header_compiler" >&6; }
2574
2575 # Is the header present?
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2577 $as_echo_n "checking $2 presence... " >&6; }
2578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2579 /* end confdefs.h. */
2580 #include <$2>
2581 _ACEOF
2582 if ac_fn_c_try_cpp "$LINENO"; then :
2583 ac_header_preproc=yes
2584 else
2585 ac_header_preproc=no
2586 fi
2587 rm -f conftest.err conftest.i conftest.$ac_ext
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2589 $as_echo "$ac_header_preproc" >&6; }
2590
2591 # So? What about this header?
2592 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2593 yes:no: )
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2595 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2597 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2598 ;;
2599 no:yes:* )
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2601 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2603 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2605 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2607 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2609 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2610 ;;
2611 esac
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2613 $as_echo_n "checking for $2... " >&6; }
2614 if eval \${$3+:} false; then :
2615 $as_echo_n "(cached) " >&6
2616 else
2617 eval "$3=\$ac_header_compiler"
2618 fi
2619 eval ac_res=\$$3
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2621 $as_echo "$ac_res" >&6; }
2622 fi
2623 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2624
2625 } # ac_fn_c_check_header_mongrel
2626
2627 # ac_fn_c_try_run LINENO
2628 # ----------------------
2629 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2630 # that executables *can* be run.
2631 ac_fn_c_try_run ()
2632 {
2633 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2634 if { { ac_try="$ac_link"
2635 case "(($ac_try" in
2636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2637 *) ac_try_echo=$ac_try;;
2638 esac
2639 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2640 $as_echo "$ac_try_echo"; } >&5
2641 (eval "$ac_link") 2>&5
2642 ac_status=$?
2643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2644 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2645 { { case "(($ac_try" in
2646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2647 *) ac_try_echo=$ac_try;;
2648 esac
2649 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2650 $as_echo "$ac_try_echo"; } >&5
2651 (eval "$ac_try") 2>&5
2652 ac_status=$?
2653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2654 test $ac_status = 0; }; }; then :
2655 ac_retval=0
2656 else
2657 $as_echo "$as_me: program exited with status $ac_status" >&5
2658 $as_echo "$as_me: failed program was:" >&5
2659 sed 's/^/| /' conftest.$ac_ext >&5
2660
2661 ac_retval=$ac_status
2662 fi
2663 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2664 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2665 as_fn_set_status $ac_retval
2666
2667 } # ac_fn_c_try_run
2668
2669 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2670 # -------------------------------------------------------
2671 # Tests whether HEADER exists and can be compiled using the include files in
2672 # INCLUDES, setting the cache variable VAR accordingly.
2673 ac_fn_c_check_header_compile ()
2674 {
2675 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2677 $as_echo_n "checking for $2... " >&6; }
2678 if eval \${$3+:} false; then :
2679 $as_echo_n "(cached) " >&6
2680 else
2681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2682 /* end confdefs.h. */
2683 $4
2684 #include <$2>
2685 _ACEOF
2686 if ac_fn_c_try_compile "$LINENO"; then :
2687 eval "$3=yes"
2688 else
2689 eval "$3=no"
2690 fi
2691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2692 fi
2693 eval ac_res=\$$3
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2695 $as_echo "$ac_res" >&6; }
2696 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2697
2698 } # ac_fn_c_check_header_compile
2699
2700 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2701 # -------------------------------------------
2702 # Tests whether TYPE exists after having included INCLUDES, setting cache
2703 # variable VAR accordingly.
2704 ac_fn_c_check_type ()
2705 {
2706 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2708 $as_echo_n "checking for $2... " >&6; }
2709 if eval \${$3+:} false; then :
2710 $as_echo_n "(cached) " >&6
2711 else
2712 eval "$3=no"
2713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2714 /* end confdefs.h. */
2715 $4
2716 int
2717 main ()
2718 {
2719 if (sizeof ($2))
2720 return 0;
2721 ;
2722 return 0;
2723 }
2724 _ACEOF
2725 if ac_fn_c_try_compile "$LINENO"; then :
2726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2727 /* end confdefs.h. */
2728 $4
2729 int
2730 main ()
2731 {
2732 if (sizeof (($2)))
2733 return 0;
2734 ;
2735 return 0;
2736 }
2737 _ACEOF
2738 if ac_fn_c_try_compile "$LINENO"; then :
2739
2740 else
2741 eval "$3=yes"
2742 fi
2743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2744 fi
2745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2746 fi
2747 eval ac_res=\$$3
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2749 $as_echo "$ac_res" >&6; }
2750 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2751
2752 } # ac_fn_c_check_type
2753
2754 # ac_fn_c_try_link LINENO
2755 # -----------------------
2756 # Try to link conftest.$ac_ext, and return whether this succeeded.
2757 ac_fn_c_try_link ()
2758 {
2759 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2760 rm -f conftest.$ac_objext conftest$ac_exeext
2761 if { { ac_try="$ac_link"
2762 case "(($ac_try" in
2763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2764 *) ac_try_echo=$ac_try;;
2765 esac
2766 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2767 $as_echo "$ac_try_echo"; } >&5
2768 (eval "$ac_link") 2>conftest.err
2769 ac_status=$?
2770 if test -s conftest.err; then
2771 grep -v '^ *+' conftest.err >conftest.er1
2772 cat conftest.er1 >&5
2773 mv -f conftest.er1 conftest.err
2774 fi
2775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2776 test $ac_status = 0; } && {
2777 test -z "$ac_c_werror_flag" ||
2778 test ! -s conftest.err
2779 } && test -s conftest$ac_exeext && {
2780 test "$cross_compiling" = yes ||
2781 test -x conftest$ac_exeext
2782 }; then :
2783 ac_retval=0
2784 else
2785 $as_echo "$as_me: failed program was:" >&5
2786 sed 's/^/| /' conftest.$ac_ext >&5
2787
2788 ac_retval=1
2789 fi
2790 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2791 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2792 # interfere with the next link command; also delete a directory that is
2793 # left behind by Apple's compiler. We do this before executing the actions.
2794 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2795 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2796 as_fn_set_status $ac_retval
2797
2798 } # ac_fn_c_try_link
2799
2800 # ac_fn_c_check_func LINENO FUNC VAR
2801 # ----------------------------------
2802 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2803 ac_fn_c_check_func ()
2804 {
2805 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2807 $as_echo_n "checking for $2... " >&6; }
2808 if eval \${$3+:} false; then :
2809 $as_echo_n "(cached) " >&6
2810 else
2811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2812 /* end confdefs.h. */
2813 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2814 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2815 #define $2 innocuous_$2
2816
2817 /* System header to define __stub macros and hopefully few prototypes,
2818 which can conflict with char $2 (); below.
2819 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2820 <limits.h> exists even on freestanding compilers. */
2821
2822 #ifdef __STDC__
2823 # include <limits.h>
2824 #else
2825 # include <assert.h>
2826 #endif
2827
2828 #undef $2
2829
2830 /* Override any GCC internal prototype to avoid an error.
2831 Use char because int might match the return type of a GCC
2832 builtin and then its argument prototype would still apply. */
2833 #ifdef __cplusplus
2834 extern "C"
2835 #endif
2836 char $2 ();
2837 /* The GNU C library defines this for functions which it implements
2838 to always fail with ENOSYS. Some functions are actually named
2839 something starting with __ and the normal name is an alias. */
2840 #if defined __stub_$2 || defined __stub___$2
2841 choke me
2842 #endif
2843
2844 int
2845 main ()
2846 {
2847 return $2 ();
2848 ;
2849 return 0;
2850 }
2851 _ACEOF
2852 if ac_fn_c_try_link "$LINENO"; then :
2853 eval "$3=yes"
2854 else
2855 eval "$3=no"
2856 fi
2857 rm -f core conftest.err conftest.$ac_objext \
2858 conftest$ac_exeext conftest.$ac_ext
2859 fi
2860 eval ac_res=\$$3
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2862 $as_echo "$ac_res" >&6; }
2863 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2864
2865 } # ac_fn_c_check_func
2866
2867 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2868 # ---------------------------------------------
2869 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2870 # accordingly.
2871 ac_fn_c_check_decl ()
2872 {
2873 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2874 as_decl_name=`echo $2|sed 's/ *(.*//'`
2875 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2877 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2878 if eval \${$3+:} false; then :
2879 $as_echo_n "(cached) " >&6
2880 else
2881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2882 /* end confdefs.h. */
2883 $4
2884 int
2885 main ()
2886 {
2887 #ifndef $as_decl_name
2888 #ifdef __cplusplus
2889 (void) $as_decl_use;
2890 #else
2891 (void) $as_decl_name;
2892 #endif
2893 #endif
2894
2895 ;
2896 return 0;
2897 }
2898 _ACEOF
2899 if ac_fn_c_try_compile "$LINENO"; then :
2900 eval "$3=yes"
2901 else
2902 eval "$3=no"
2903 fi
2904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2905 fi
2906 eval ac_res=\$$3
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2908 $as_echo "$ac_res" >&6; }
2909 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2910
2911 } # ac_fn_c_check_decl
2912
2913 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2914 # --------------------------------------------
2915 # Tries to find the compile-time value of EXPR in a program that includes
2916 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2917 # computed
2918 ac_fn_c_compute_int ()
2919 {
2920 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2921 if test "$cross_compiling" = yes; then
2922 # Depending upon the size, compute the lo and hi bounds.
2923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2924 /* end confdefs.h. */
2925 $4
2926 int
2927 main ()
2928 {
2929 static int test_array [1 - 2 * !(($2) >= 0)];
2930 test_array [0] = 0;
2931 return test_array [0];
2932
2933 ;
2934 return 0;
2935 }
2936 _ACEOF
2937 if ac_fn_c_try_compile "$LINENO"; then :
2938 ac_lo=0 ac_mid=0
2939 while :; do
2940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2941 /* end confdefs.h. */
2942 $4
2943 int
2944 main ()
2945 {
2946 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2947 test_array [0] = 0;
2948 return test_array [0];
2949
2950 ;
2951 return 0;
2952 }
2953 _ACEOF
2954 if ac_fn_c_try_compile "$LINENO"; then :
2955 ac_hi=$ac_mid; break
2956 else
2957 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2958 if test $ac_lo -le $ac_mid; then
2959 ac_lo= ac_hi=
2960 break
2961 fi
2962 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2963 fi
2964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2965 done
2966 else
2967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2968 /* end confdefs.h. */
2969 $4
2970 int
2971 main ()
2972 {
2973 static int test_array [1 - 2 * !(($2) < 0)];
2974 test_array [0] = 0;
2975 return test_array [0];
2976
2977 ;
2978 return 0;
2979 }
2980 _ACEOF
2981 if ac_fn_c_try_compile "$LINENO"; then :
2982 ac_hi=-1 ac_mid=-1
2983 while :; do
2984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2985 /* end confdefs.h. */
2986 $4
2987 int
2988 main ()
2989 {
2990 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2991 test_array [0] = 0;
2992 return test_array [0];
2993
2994 ;
2995 return 0;
2996 }
2997 _ACEOF
2998 if ac_fn_c_try_compile "$LINENO"; then :
2999 ac_lo=$ac_mid; break
3000 else
3001 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
3002 if test $ac_mid -le $ac_hi; then
3003 ac_lo= ac_hi=
3004 break
3005 fi
3006 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
3007 fi
3008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3009 done
3010 else
3011 ac_lo= ac_hi=
3012 fi
3013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3014 fi
3015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3016 # Binary search between lo and hi bounds.
3017 while test "x$ac_lo" != "x$ac_hi"; do
3018 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
3019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3020 /* end confdefs.h. */
3021 $4
3022 int
3023 main ()
3024 {
3025 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
3026 test_array [0] = 0;
3027 return test_array [0];
3028
3029 ;
3030 return 0;
3031 }
3032 _ACEOF
3033 if ac_fn_c_try_compile "$LINENO"; then :
3034 ac_hi=$ac_mid
3035 else
3036 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
3037 fi
3038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3039 done
3040 case $ac_lo in #((
3041 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
3042 '') ac_retval=1 ;;
3043 esac
3044 else
3045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3046 /* end confdefs.h. */
3047 $4
3048 static long int longval () { return $2; }
3049 static unsigned long int ulongval () { return $2; }
3050 #include <stdio.h>
3051 #include <stdlib.h>
3052 int
3053 main ()
3054 {
3055
3056 FILE *f = fopen ("conftest.val", "w");
3057 if (! f)
3058 return 1;
3059 if (($2) < 0)
3060 {
3061 long int i = longval ();
3062 if (i != ($2))
3063 return 1;
3064 fprintf (f, "%ld", i);
3065 }
3066 else
3067 {
3068 unsigned long int i = ulongval ();
3069 if (i != ($2))
3070 return 1;
3071 fprintf (f, "%lu", i);
3072 }
3073 /* Do not output a trailing newline, as this causes \r\n confusion
3074 on some platforms. */
3075 return ferror (f) || fclose (f) != 0;
3076
3077 ;
3078 return 0;
3079 }
3080 _ACEOF
3081 if ac_fn_c_try_run "$LINENO"; then :
3082 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
3083 else
3084 ac_retval=1
3085 fi
3086 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3087 conftest.$ac_objext conftest.beam conftest.$ac_ext
3088 rm -f conftest.val
3089
3090 fi
3091 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3092 as_fn_set_status $ac_retval
3093
3094 } # ac_fn_c_compute_int
3095 cat >config.log <<_ACEOF
3096 This file contains any messages produced by compilers while
3097 running configure, to aid debugging if configure makes a mistake.
3098
3099 It was created by libgnu $as_me UNUSED-VERSION, which was
3100 generated by GNU Autoconf 2.69. Invocation command line was
3101
3102 $ $0 $@
3103
3104 _ACEOF
3105 exec 5>>config.log
3106 {
3107 cat <<_ASUNAME
3108 ## --------- ##
3109 ## Platform. ##
3110 ## --------- ##
3111
3112 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3113 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3114 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3115 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3116 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3117
3118 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3119 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3120
3121 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3122 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3123 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3124 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3125 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3126 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3127 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3128
3129 _ASUNAME
3130
3131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3132 for as_dir in $PATH
3133 do
3134 IFS=$as_save_IFS
3135 test -z "$as_dir" && as_dir=.
3136 $as_echo "PATH: $as_dir"
3137 done
3138 IFS=$as_save_IFS
3139
3140 } >&5
3141
3142 cat >&5 <<_ACEOF
3143
3144
3145 ## ----------- ##
3146 ## Core tests. ##
3147 ## ----------- ##
3148
3149 _ACEOF
3150
3151
3152 # Keep a trace of the command line.
3153 # Strip out --no-create and --no-recursion so they do not pile up.
3154 # Strip out --silent because we don't want to record it for future runs.
3155 # Also quote any args containing shell meta-characters.
3156 # Make two passes to allow for proper duplicate-argument suppression.
3157 ac_configure_args=
3158 ac_configure_args0=
3159 ac_configure_args1=
3160 ac_must_keep_next=false
3161 for ac_pass in 1 2
3162 do
3163 for ac_arg
3164 do
3165 case $ac_arg in
3166 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3167 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3168 | -silent | --silent | --silen | --sile | --sil)
3169 continue ;;
3170 *\'*)
3171 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3172 esac
3173 case $ac_pass in
3174 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3175 2)
3176 as_fn_append ac_configure_args1 " '$ac_arg'"
3177 if test $ac_must_keep_next = true; then
3178 ac_must_keep_next=false # Got value, back to normal.
3179 else
3180 case $ac_arg in
3181 *=* | --config-cache | -C | -disable-* | --disable-* \
3182 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3183 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3184 | -with-* | --with-* | -without-* | --without-* | --x)
3185 case "$ac_configure_args0 " in
3186 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3187 esac
3188 ;;
3189 -* ) ac_must_keep_next=true ;;
3190 esac
3191 fi
3192 as_fn_append ac_configure_args " '$ac_arg'"
3193 ;;
3194 esac
3195 done
3196 done
3197 { ac_configure_args0=; unset ac_configure_args0;}
3198 { ac_configure_args1=; unset ac_configure_args1;}
3199
3200 # When interrupted or exit'd, cleanup temporary files, and complete
3201 # config.log. We remove comments because anyway the quotes in there
3202 # would cause problems or look ugly.
3203 # WARNING: Use '\'' to represent an apostrophe within the trap.
3204 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3205 trap 'exit_status=$?
3206 # Save into config.log some information that might help in debugging.
3207 {
3208 echo
3209
3210 $as_echo "## ---------------- ##
3211 ## Cache variables. ##
3212 ## ---------------- ##"
3213 echo
3214 # The following way of writing the cache mishandles newlines in values,
3215 (
3216 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3217 eval ac_val=\$$ac_var
3218 case $ac_val in #(
3219 *${as_nl}*)
3220 case $ac_var in #(
3221 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3222 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3223 esac
3224 case $ac_var in #(
3225 _ | IFS | as_nl) ;; #(
3226 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3227 *) { eval $ac_var=; unset $ac_var;} ;;
3228 esac ;;
3229 esac
3230 done
3231 (set) 2>&1 |
3232 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3233 *${as_nl}ac_space=\ *)
3234 sed -n \
3235 "s/'\''/'\''\\\\'\'''\''/g;
3236 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3237 ;; #(
3238 *)
3239 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3240 ;;
3241 esac |
3242 sort
3243 )
3244 echo
3245
3246 $as_echo "## ----------------- ##
3247 ## Output variables. ##
3248 ## ----------------- ##"
3249 echo
3250 for ac_var in $ac_subst_vars
3251 do
3252 eval ac_val=\$$ac_var
3253 case $ac_val in
3254 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3255 esac
3256 $as_echo "$ac_var='\''$ac_val'\''"
3257 done | sort
3258 echo
3259
3260 if test -n "$ac_subst_files"; then
3261 $as_echo "## ------------------- ##
3262 ## File substitutions. ##
3263 ## ------------------- ##"
3264 echo
3265 for ac_var in $ac_subst_files
3266 do
3267 eval ac_val=\$$ac_var
3268 case $ac_val in
3269 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3270 esac
3271 $as_echo "$ac_var='\''$ac_val'\''"
3272 done | sort
3273 echo
3274 fi
3275
3276 if test -s confdefs.h; then
3277 $as_echo "## ----------- ##
3278 ## confdefs.h. ##
3279 ## ----------- ##"
3280 echo
3281 cat confdefs.h
3282 echo
3283 fi
3284 test "$ac_signal" != 0 &&
3285 $as_echo "$as_me: caught signal $ac_signal"
3286 $as_echo "$as_me: exit $exit_status"
3287 } >&5
3288 rm -f core *.core core.conftest.* &&
3289 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3290 exit $exit_status
3291 ' 0
3292 for ac_signal in 1 2 13 15; do
3293 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3294 done
3295 ac_signal=0
3296
3297 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3298 rm -f -r conftest* confdefs.h
3299
3300 $as_echo "/* confdefs.h */" > confdefs.h
3301
3302 # Predefined preprocessor variables.
3303
3304 cat >>confdefs.h <<_ACEOF
3305 #define PACKAGE_NAME "$PACKAGE_NAME"
3306 _ACEOF
3307
3308 cat >>confdefs.h <<_ACEOF
3309 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3310 _ACEOF
3311
3312 cat >>confdefs.h <<_ACEOF
3313 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3314 _ACEOF
3315
3316 cat >>confdefs.h <<_ACEOF
3317 #define PACKAGE_STRING "$PACKAGE_STRING"
3318 _ACEOF
3319
3320 cat >>confdefs.h <<_ACEOF
3321 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3322 _ACEOF
3323
3324 cat >>confdefs.h <<_ACEOF
3325 #define PACKAGE_URL "$PACKAGE_URL"
3326 _ACEOF
3327
3328
3329 # Let the site file select an alternate cache file if it wants to.
3330 # Prefer an explicitly selected file to automatically selected ones.
3331 ac_site_file1=NONE
3332 ac_site_file2=NONE
3333 if test -n "$CONFIG_SITE"; then
3334 # We do not want a PATH search for config.site.
3335 case $CONFIG_SITE in #((
3336 -*) ac_site_file1=./$CONFIG_SITE;;
3337 */*) ac_site_file1=$CONFIG_SITE;;
3338 *) ac_site_file1=./$CONFIG_SITE;;
3339 esac
3340 elif test "x$prefix" != xNONE; then
3341 ac_site_file1=$prefix/share/config.site
3342 ac_site_file2=$prefix/etc/config.site
3343 else
3344 ac_site_file1=$ac_default_prefix/share/config.site
3345 ac_site_file2=$ac_default_prefix/etc/config.site
3346 fi
3347 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3348 do
3349 test "x$ac_site_file" = xNONE && continue
3350 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3352 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3353 sed 's/^/| /' "$ac_site_file" >&5
3354 . "$ac_site_file" \
3355 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3356 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3357 as_fn_error $? "failed to load site script $ac_site_file
3358 See \`config.log' for more details" "$LINENO" 5; }
3359 fi
3360 done
3361
3362 if test -r "$cache_file"; then
3363 # Some versions of bash will fail to source /dev/null (special files
3364 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3365 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3367 $as_echo "$as_me: loading cache $cache_file" >&6;}
3368 case $cache_file in
3369 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3370 *) . "./$cache_file";;
3371 esac
3372 fi
3373 else
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3375 $as_echo "$as_me: creating cache $cache_file" >&6;}
3376 >$cache_file
3377 fi
3378
3379 gl_func_list="$gl_func_list canonicalize_file_name"
3380 gl_func_list="$gl_func_list getcwd"
3381 gl_func_list="$gl_func_list readlink"
3382 gl_func_list="$gl_func_list realpath"
3383 gl_header_list="$gl_header_list sys/param.h"
3384 gl_header_list="$gl_header_list unistd.h"
3385 gl_func_list="$gl_func_list _set_invalid_parameter_handler"
3386 gl_header_list="$gl_header_list sys/socket.h"
3387 gl_func_list="$gl_func_list fchdir"
3388 gl_header_list="$gl_header_list dirent.h"
3389 gl_func_list="$gl_func_list fcntl"
3390 gl_func_list="$gl_func_list symlink"
3391 gl_func_list="$gl_func_list fdopendir"
3392 gl_func_list="$gl_func_list mempcpy"
3393 gl_func_list="$gl_func_list btowc"
3394 gl_func_list="$gl_func_list isblank"
3395 gl_func_list="$gl_func_list iswctype"
3396 gl_func_list="$gl_func_list mbsrtowcs"
3397 gl_func_list="$gl_func_list wmemchr"
3398 gl_func_list="$gl_func_list wmemcpy"
3399 gl_func_list="$gl_func_list wmempcpy"
3400 gl_header_list="$gl_header_list wctype.h"
3401 gl_fnmatch_required=GNU
3402 gl_header_list="$gl_header_list sys/stat.h"
3403 gl_func_list="$gl_func_list fstatat"
3404 gl_func_list="$gl_func_list getdtablesize"
3405 gl_func_list="$gl_func_list getlogin_r"
3406 gl_func_list="$gl_func_list getprogname"
3407 gl_func_list="$gl_func_list getexecname"
3408 gl_header_list="$gl_header_list sys/time.h"
3409 gl_func_list="$gl_func_list gettimeofday"
3410 gl_header_list="$gl_header_list sys/cdefs.h"
3411 gl_func_list="$gl_func_list getpwnam_r"
3412 gl_header_list="$gl_header_list limits.h"
3413 gl_header_list="$gl_header_list wchar.h"
3414 gl_header_list="$gl_header_list stdint.h"
3415 gl_header_list="$gl_header_list inttypes.h"
3416 gl_func_list="$gl_func_list lstat"
3417 gl_header_list="$gl_header_list math.h"
3418 gl_func_list="$gl_func_list mbsinit"
3419 gl_func_list="$gl_func_list mbrtowc"
3420 gl_header_list="$gl_header_list sys/mman.h"
3421 gl_func_list="$gl_func_list mprotect"
3422 gl_func_list="$gl_func_list mkstemp"
3423 gl_func_list="$gl_func_list openat"
3424 gl_func_list="$gl_func_list link"
3425 gl_func_list="$gl_func_list secure_getenv"
3426 gl_func_list="$gl_func_list getuid"
3427 gl_func_list="$gl_func_list geteuid"
3428 gl_func_list="$gl_func_list getgid"
3429 gl_func_list="$gl_func_list getegid"
3430 gl_func_list="$gl_func_list setenv"
3431 gl_func_list="$gl_func_list strdup"
3432 gl_func_list="$gl_func_list pipe"
3433 gl_header_list="$gl_header_list features.h"
3434 gl_func_list="$gl_func_list iswcntrl"
3435 # Check that the precious variables saved in the cache have kept the same
3436 # value.
3437 ac_cache_corrupted=false
3438 for ac_var in $ac_precious_vars; do
3439 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3440 eval ac_new_set=\$ac_env_${ac_var}_set
3441 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3442 eval ac_new_val=\$ac_env_${ac_var}_value
3443 case $ac_old_set,$ac_new_set in
3444 set,)
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3446 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3447 ac_cache_corrupted=: ;;
3448 ,set)
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3450 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3451 ac_cache_corrupted=: ;;
3452 ,);;
3453 *)
3454 if test "x$ac_old_val" != "x$ac_new_val"; then
3455 # differences in whitespace do not lead to failure.
3456 ac_old_val_w=`echo x $ac_old_val`
3457 ac_new_val_w=`echo x $ac_new_val`
3458 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3460 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3461 ac_cache_corrupted=:
3462 else
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3464 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3465 eval $ac_var=\$ac_old_val
3466 fi
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3468 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3470 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3471 fi;;
3472 esac
3473 # Pass precious variables to config.status.
3474 if test "$ac_new_set" = set; then
3475 case $ac_new_val in
3476 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3477 *) ac_arg=$ac_var=$ac_new_val ;;
3478 esac
3479 case " $ac_configure_args " in
3480 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3481 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3482 esac
3483 fi
3484 done
3485 if $ac_cache_corrupted; then
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3487 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3489 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3490 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3491 fi
3492 ## -------------------- ##
3493 ## Main body of script. ##
3494 ## -------------------- ##
3495
3496 ac_ext=c
3497 ac_cpp='$CPP $CPPFLAGS'
3498 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3499 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3500 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3501
3502
3503
3504 ac_config_headers="$ac_config_headers config.h:config.in"
3505
3506
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3508 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3509 # Check whether --enable-maintainer-mode was given.
3510 if test "${enable_maintainer_mode+set}" = set; then :
3511 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3512 else
3513 USE_MAINTAINER_MODE=no
3514 fi
3515
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3517 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3518 if test $USE_MAINTAINER_MODE = yes; then
3519 MAINTAINER_MODE_TRUE=
3520 MAINTAINER_MODE_FALSE='#'
3521 else
3522 MAINTAINER_MODE_TRUE='#'
3523 MAINTAINER_MODE_FALSE=
3524 fi
3525
3526 MAINT=$MAINTAINER_MODE_TRUE
3527
3528
3529
3530 ac_ext=c
3531 ac_cpp='$CPP $CPPFLAGS'
3532 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3533 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3534 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3535 if test -n "$ac_tool_prefix"; then
3536 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3537 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3539 $as_echo_n "checking for $ac_word... " >&6; }
3540 if ${ac_cv_prog_CC+:} false; then :
3541 $as_echo_n "(cached) " >&6
3542 else
3543 if test -n "$CC"; then
3544 ac_cv_prog_CC="$CC" # Let the user override the test.
3545 else
3546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3547 for as_dir in $PATH
3548 do
3549 IFS=$as_save_IFS
3550 test -z "$as_dir" && as_dir=.
3551 for ac_exec_ext in '' $ac_executable_extensions; do
3552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3553 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3555 break 2
3556 fi
3557 done
3558 done
3559 IFS=$as_save_IFS
3560
3561 fi
3562 fi
3563 CC=$ac_cv_prog_CC
3564 if test -n "$CC"; then
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3566 $as_echo "$CC" >&6; }
3567 else
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3569 $as_echo "no" >&6; }
3570 fi
3571
3572
3573 fi
3574 if test -z "$ac_cv_prog_CC"; then
3575 ac_ct_CC=$CC
3576 # Extract the first word of "gcc", so it can be a program name with args.
3577 set dummy gcc; ac_word=$2
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3579 $as_echo_n "checking for $ac_word... " >&6; }
3580 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3581 $as_echo_n "(cached) " >&6
3582 else
3583 if test -n "$ac_ct_CC"; then
3584 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3585 else
3586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3587 for as_dir in $PATH
3588 do
3589 IFS=$as_save_IFS
3590 test -z "$as_dir" && as_dir=.
3591 for ac_exec_ext in '' $ac_executable_extensions; do
3592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3593 ac_cv_prog_ac_ct_CC="gcc"
3594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3595 break 2
3596 fi
3597 done
3598 done
3599 IFS=$as_save_IFS
3600
3601 fi
3602 fi
3603 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3604 if test -n "$ac_ct_CC"; then
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3606 $as_echo "$ac_ct_CC" >&6; }
3607 else
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3609 $as_echo "no" >&6; }
3610 fi
3611
3612 if test "x$ac_ct_CC" = x; then
3613 CC=""
3614 else
3615 case $cross_compiling:$ac_tool_warned in
3616 yes:)
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3618 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3619 ac_tool_warned=yes ;;
3620 esac
3621 CC=$ac_ct_CC
3622 fi
3623 else
3624 CC="$ac_cv_prog_CC"
3625 fi
3626
3627 if test -z "$CC"; then
3628 if test -n "$ac_tool_prefix"; then
3629 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3630 set dummy ${ac_tool_prefix}cc; ac_word=$2
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3632 $as_echo_n "checking for $ac_word... " >&6; }
3633 if ${ac_cv_prog_CC+:} false; then :
3634 $as_echo_n "(cached) " >&6
3635 else
3636 if test -n "$CC"; then
3637 ac_cv_prog_CC="$CC" # Let the user override the test.
3638 else
3639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3640 for as_dir in $PATH
3641 do
3642 IFS=$as_save_IFS
3643 test -z "$as_dir" && as_dir=.
3644 for ac_exec_ext in '' $ac_executable_extensions; do
3645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3646 ac_cv_prog_CC="${ac_tool_prefix}cc"
3647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3648 break 2
3649 fi
3650 done
3651 done
3652 IFS=$as_save_IFS
3653
3654 fi
3655 fi
3656 CC=$ac_cv_prog_CC
3657 if test -n "$CC"; then
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3659 $as_echo "$CC" >&6; }
3660 else
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3662 $as_echo "no" >&6; }
3663 fi
3664
3665
3666 fi
3667 fi
3668 if test -z "$CC"; then
3669 # Extract the first word of "cc", so it can be a program name with args.
3670 set dummy cc; ac_word=$2
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3672 $as_echo_n "checking for $ac_word... " >&6; }
3673 if ${ac_cv_prog_CC+:} false; then :
3674 $as_echo_n "(cached) " >&6
3675 else
3676 if test -n "$CC"; then
3677 ac_cv_prog_CC="$CC" # Let the user override the test.
3678 else
3679 ac_prog_rejected=no
3680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3681 for as_dir in $PATH
3682 do
3683 IFS=$as_save_IFS
3684 test -z "$as_dir" && as_dir=.
3685 for ac_exec_ext in '' $ac_executable_extensions; do
3686 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3687 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3688 ac_prog_rejected=yes
3689 continue
3690 fi
3691 ac_cv_prog_CC="cc"
3692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3693 break 2
3694 fi
3695 done
3696 done
3697 IFS=$as_save_IFS
3698
3699 if test $ac_prog_rejected = yes; then
3700 # We found a bogon in the path, so make sure we never use it.
3701 set dummy $ac_cv_prog_CC
3702 shift
3703 if test $# != 0; then
3704 # We chose a different compiler from the bogus one.
3705 # However, it has the same basename, so the bogon will be chosen
3706 # first if we set CC to just the basename; use the full file name.
3707 shift
3708 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3709 fi
3710 fi
3711 fi
3712 fi
3713 CC=$ac_cv_prog_CC
3714 if test -n "$CC"; then
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3716 $as_echo "$CC" >&6; }
3717 else
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3719 $as_echo "no" >&6; }
3720 fi
3721
3722
3723 fi
3724 if test -z "$CC"; then
3725 if test -n "$ac_tool_prefix"; then
3726 for ac_prog in cl.exe
3727 do
3728 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3729 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3731 $as_echo_n "checking for $ac_word... " >&6; }
3732 if ${ac_cv_prog_CC+:} false; then :
3733 $as_echo_n "(cached) " >&6
3734 else
3735 if test -n "$CC"; then
3736 ac_cv_prog_CC="$CC" # Let the user override the test.
3737 else
3738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3739 for as_dir in $PATH
3740 do
3741 IFS=$as_save_IFS
3742 test -z "$as_dir" && as_dir=.
3743 for ac_exec_ext in '' $ac_executable_extensions; do
3744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3745 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3747 break 2
3748 fi
3749 done
3750 done
3751 IFS=$as_save_IFS
3752
3753 fi
3754 fi
3755 CC=$ac_cv_prog_CC
3756 if test -n "$CC"; then
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3758 $as_echo "$CC" >&6; }
3759 else
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3761 $as_echo "no" >&6; }
3762 fi
3763
3764
3765 test -n "$CC" && break
3766 done
3767 fi
3768 if test -z "$CC"; then
3769 ac_ct_CC=$CC
3770 for ac_prog in cl.exe
3771 do
3772 # Extract the first word of "$ac_prog", so it can be a program name with args.
3773 set dummy $ac_prog; ac_word=$2
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3775 $as_echo_n "checking for $ac_word... " >&6; }
3776 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3777 $as_echo_n "(cached) " >&6
3778 else
3779 if test -n "$ac_ct_CC"; then
3780 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3781 else
3782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3783 for as_dir in $PATH
3784 do
3785 IFS=$as_save_IFS
3786 test -z "$as_dir" && as_dir=.
3787 for ac_exec_ext in '' $ac_executable_extensions; do
3788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3789 ac_cv_prog_ac_ct_CC="$ac_prog"
3790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3791 break 2
3792 fi
3793 done
3794 done
3795 IFS=$as_save_IFS
3796
3797 fi
3798 fi
3799 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3800 if test -n "$ac_ct_CC"; then
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3802 $as_echo "$ac_ct_CC" >&6; }
3803 else
3804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3805 $as_echo "no" >&6; }
3806 fi
3807
3808
3809 test -n "$ac_ct_CC" && break
3810 done
3811
3812 if test "x$ac_ct_CC" = x; then
3813 CC=""
3814 else
3815 case $cross_compiling:$ac_tool_warned in
3816 yes:)
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3818 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3819 ac_tool_warned=yes ;;
3820 esac
3821 CC=$ac_ct_CC
3822 fi
3823 fi
3824
3825 fi
3826
3827
3828 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3829 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3830 as_fn_error $? "no acceptable C compiler found in \$PATH
3831 See \`config.log' for more details" "$LINENO" 5; }
3832
3833 # Provide some information about the compiler.
3834 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3835 set X $ac_compile
3836 ac_compiler=$2
3837 for ac_option in --version -v -V -qversion; do
3838 { { ac_try="$ac_compiler $ac_option >&5"
3839 case "(($ac_try" in
3840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3841 *) ac_try_echo=$ac_try;;
3842 esac
3843 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3844 $as_echo "$ac_try_echo"; } >&5
3845 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3846 ac_status=$?
3847 if test -s conftest.err; then
3848 sed '10a\
3849 ... rest of stderr output deleted ...
3850 10q' conftest.err >conftest.er1
3851 cat conftest.er1 >&5
3852 fi
3853 rm -f conftest.er1 conftest.err
3854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3855 test $ac_status = 0; }
3856 done
3857
3858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3859 /* end confdefs.h. */
3860
3861 int
3862 main ()
3863 {
3864
3865 ;
3866 return 0;
3867 }
3868 _ACEOF
3869 ac_clean_files_save=$ac_clean_files
3870 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3871 # Try to create an executable without -o first, disregard a.out.
3872 # It will help us diagnose broken compilers, and finding out an intuition
3873 # of exeext.
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3875 $as_echo_n "checking whether the C compiler works... " >&6; }
3876 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3877
3878 # The possible output files:
3879 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3880
3881 ac_rmfiles=
3882 for ac_file in $ac_files
3883 do
3884 case $ac_file in
3885 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3886 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3887 esac
3888 done
3889 rm -f $ac_rmfiles
3890
3891 if { { ac_try="$ac_link_default"
3892 case "(($ac_try" in
3893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3894 *) ac_try_echo=$ac_try;;
3895 esac
3896 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3897 $as_echo "$ac_try_echo"; } >&5
3898 (eval "$ac_link_default") 2>&5
3899 ac_status=$?
3900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3901 test $ac_status = 0; }; then :
3902 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3903 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3904 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3905 # so that the user can short-circuit this test for compilers unknown to
3906 # Autoconf.
3907 for ac_file in $ac_files ''
3908 do
3909 test -f "$ac_file" || continue
3910 case $ac_file in
3911 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3912 ;;
3913 [ab].out )
3914 # We found the default executable, but exeext='' is most
3915 # certainly right.
3916 break;;
3917 *.* )
3918 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3919 then :; else
3920 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3921 fi
3922 # We set ac_cv_exeext here because the later test for it is not
3923 # safe: cross compilers may not add the suffix if given an `-o'
3924 # argument, so we may need to know it at that point already.
3925 # Even if this section looks crufty: it has the advantage of
3926 # actually working.
3927 break;;
3928 * )
3929 break;;
3930 esac
3931 done
3932 test "$ac_cv_exeext" = no && ac_cv_exeext=
3933
3934 else
3935 ac_file=''
3936 fi
3937 if test -z "$ac_file"; then :
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3939 $as_echo "no" >&6; }
3940 $as_echo "$as_me: failed program was:" >&5
3941 sed 's/^/| /' conftest.$ac_ext >&5
3942
3943 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3944 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3945 as_fn_error 77 "C compiler cannot create executables
3946 See \`config.log' for more details" "$LINENO" 5; }
3947 else
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3949 $as_echo "yes" >&6; }
3950 fi
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3952 $as_echo_n "checking for C compiler default output file name... " >&6; }
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3954 $as_echo "$ac_file" >&6; }
3955 ac_exeext=$ac_cv_exeext
3956
3957 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3958 ac_clean_files=$ac_clean_files_save
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3960 $as_echo_n "checking for suffix of executables... " >&6; }
3961 if { { ac_try="$ac_link"
3962 case "(($ac_try" in
3963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3964 *) ac_try_echo=$ac_try;;
3965 esac
3966 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3967 $as_echo "$ac_try_echo"; } >&5
3968 (eval "$ac_link") 2>&5
3969 ac_status=$?
3970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3971 test $ac_status = 0; }; then :
3972 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3973 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3974 # work properly (i.e., refer to `conftest.exe'), while it won't with
3975 # `rm'.
3976 for ac_file in conftest.exe conftest conftest.*; do
3977 test -f "$ac_file" || continue
3978 case $ac_file in
3979 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3980 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3981 break;;
3982 * ) break;;
3983 esac
3984 done
3985 else
3986 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3987 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3988 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3989 See \`config.log' for more details" "$LINENO" 5; }
3990 fi
3991 rm -f conftest conftest$ac_cv_exeext
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3993 $as_echo "$ac_cv_exeext" >&6; }
3994
3995 rm -f conftest.$ac_ext
3996 EXEEXT=$ac_cv_exeext
3997 ac_exeext=$EXEEXT
3998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3999 /* end confdefs.h. */
4000 #include <stdio.h>
4001 int
4002 main ()
4003 {
4004 FILE *f = fopen ("conftest.out", "w");
4005 return ferror (f) || fclose (f) != 0;
4006
4007 ;
4008 return 0;
4009 }
4010 _ACEOF
4011 ac_clean_files="$ac_clean_files conftest.out"
4012 # Check that the compiler produces executables we can run. If not, either
4013 # the compiler is broken, or we cross compile.
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4015 $as_echo_n "checking whether we are cross compiling... " >&6; }
4016 if test "$cross_compiling" != yes; then
4017 { { ac_try="$ac_link"
4018 case "(($ac_try" in
4019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4020 *) ac_try_echo=$ac_try;;
4021 esac
4022 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4023 $as_echo "$ac_try_echo"; } >&5
4024 (eval "$ac_link") 2>&5
4025 ac_status=$?
4026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4027 test $ac_status = 0; }
4028 if { ac_try='./conftest$ac_cv_exeext'
4029 { { case "(($ac_try" in
4030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4031 *) ac_try_echo=$ac_try;;
4032 esac
4033 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4034 $as_echo "$ac_try_echo"; } >&5
4035 (eval "$ac_try") 2>&5
4036 ac_status=$?
4037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4038 test $ac_status = 0; }; }; then
4039 cross_compiling=no
4040 else
4041 if test "$cross_compiling" = maybe; then
4042 cross_compiling=yes
4043 else
4044 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4045 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4046 as_fn_error $? "cannot run C compiled programs.
4047 If you meant to cross compile, use \`--host'.
4048 See \`config.log' for more details" "$LINENO" 5; }
4049 fi
4050 fi
4051 fi
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4053 $as_echo "$cross_compiling" >&6; }
4054
4055 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4056 ac_clean_files=$ac_clean_files_save
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4058 $as_echo_n "checking for suffix of object files... " >&6; }
4059 if ${ac_cv_objext+:} false; then :
4060 $as_echo_n "(cached) " >&6
4061 else
4062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4063 /* end confdefs.h. */
4064
4065 int
4066 main ()
4067 {
4068
4069 ;
4070 return 0;
4071 }
4072 _ACEOF
4073 rm -f conftest.o conftest.obj
4074 if { { ac_try="$ac_compile"
4075 case "(($ac_try" in
4076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4077 *) ac_try_echo=$ac_try;;
4078 esac
4079 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4080 $as_echo "$ac_try_echo"; } >&5
4081 (eval "$ac_compile") 2>&5
4082 ac_status=$?
4083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4084 test $ac_status = 0; }; then :
4085 for ac_file in conftest.o conftest.obj conftest.*; do
4086 test -f "$ac_file" || continue;
4087 case $ac_file in
4088 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4089 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4090 break;;
4091 esac
4092 done
4093 else
4094 $as_echo "$as_me: failed program was:" >&5
4095 sed 's/^/| /' conftest.$ac_ext >&5
4096
4097 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4098 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4099 as_fn_error $? "cannot compute suffix of object files: cannot compile
4100 See \`config.log' for more details" "$LINENO" 5; }
4101 fi
4102 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4103 fi
4104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4105 $as_echo "$ac_cv_objext" >&6; }
4106 OBJEXT=$ac_cv_objext
4107 ac_objext=$OBJEXT
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4109 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4110 if ${ac_cv_c_compiler_gnu+:} false; then :
4111 $as_echo_n "(cached) " >&6
4112 else
4113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4114 /* end confdefs.h. */
4115
4116 int
4117 main ()
4118 {
4119 #ifndef __GNUC__
4120 choke me
4121 #endif
4122
4123 ;
4124 return 0;
4125 }
4126 _ACEOF
4127 if ac_fn_c_try_compile "$LINENO"; then :
4128 ac_compiler_gnu=yes
4129 else
4130 ac_compiler_gnu=no
4131 fi
4132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4133 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4134
4135 fi
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4137 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4138 if test $ac_compiler_gnu = yes; then
4139 GCC=yes
4140 else
4141 GCC=
4142 fi
4143 ac_test_CFLAGS=${CFLAGS+set}
4144 ac_save_CFLAGS=$CFLAGS
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4146 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4147 if ${ac_cv_prog_cc_g+:} false; then :
4148 $as_echo_n "(cached) " >&6
4149 else
4150 ac_save_c_werror_flag=$ac_c_werror_flag
4151 ac_c_werror_flag=yes
4152 ac_cv_prog_cc_g=no
4153 CFLAGS="-g"
4154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4155 /* end confdefs.h. */
4156
4157 int
4158 main ()
4159 {
4160
4161 ;
4162 return 0;
4163 }
4164 _ACEOF
4165 if ac_fn_c_try_compile "$LINENO"; then :
4166 ac_cv_prog_cc_g=yes
4167 else
4168 CFLAGS=""
4169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4170 /* end confdefs.h. */
4171
4172 int
4173 main ()
4174 {
4175
4176 ;
4177 return 0;
4178 }
4179 _ACEOF
4180 if ac_fn_c_try_compile "$LINENO"; then :
4181
4182 else
4183 ac_c_werror_flag=$ac_save_c_werror_flag
4184 CFLAGS="-g"
4185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4186 /* end confdefs.h. */
4187
4188 int
4189 main ()
4190 {
4191
4192 ;
4193 return 0;
4194 }
4195 _ACEOF
4196 if ac_fn_c_try_compile "$LINENO"; then :
4197 ac_cv_prog_cc_g=yes
4198 fi
4199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4200 fi
4201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4202 fi
4203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4204 ac_c_werror_flag=$ac_save_c_werror_flag
4205 fi
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4207 $as_echo "$ac_cv_prog_cc_g" >&6; }
4208 if test "$ac_test_CFLAGS" = set; then
4209 CFLAGS=$ac_save_CFLAGS
4210 elif test $ac_cv_prog_cc_g = yes; then
4211 if test "$GCC" = yes; then
4212 CFLAGS="-g -O2"
4213 else
4214 CFLAGS="-g"
4215 fi
4216 else
4217 if test "$GCC" = yes; then
4218 CFLAGS="-O2"
4219 else
4220 CFLAGS=
4221 fi
4222 fi
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4224 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4225 if ${ac_cv_prog_cc_c89+:} false; then :
4226 $as_echo_n "(cached) " >&6
4227 else
4228 ac_cv_prog_cc_c89=no
4229 ac_save_CC=$CC
4230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4231 /* end confdefs.h. */
4232 #include <stdarg.h>
4233 #include <stdio.h>
4234 struct stat;
4235 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4236 struct buf { int x; };
4237 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4238 static char *e (p, i)
4239 char **p;
4240 int i;
4241 {
4242 return p[i];
4243 }
4244 static char *f (char * (*g) (char **, int), char **p, ...)
4245 {
4246 char *s;
4247 va_list v;
4248 va_start (v,p);
4249 s = g (p, va_arg (v,int));
4250 va_end (v);
4251 return s;
4252 }
4253
4254 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4255 function prototypes and stuff, but not '\xHH' hex character constants.
4256 These don't provoke an error unfortunately, instead are silently treated
4257 as 'x'. The following induces an error, until -std is added to get
4258 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4259 array size at least. It's necessary to write '\x00'==0 to get something
4260 that's true only with -std. */
4261 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4262
4263 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4264 inside strings and character constants. */
4265 #define FOO(x) 'x'
4266 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4267
4268 int test (int i, double x);
4269 struct s1 {int (*f) (int a);};
4270 struct s2 {int (*f) (double a);};
4271 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4272 int argc;
4273 char **argv;
4274 int
4275 main ()
4276 {
4277 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4278 ;
4279 return 0;
4280 }
4281 _ACEOF
4282 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4283 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4284 do
4285 CC="$ac_save_CC $ac_arg"
4286 if ac_fn_c_try_compile "$LINENO"; then :
4287 ac_cv_prog_cc_c89=$ac_arg
4288 fi
4289 rm -f core conftest.err conftest.$ac_objext
4290 test "x$ac_cv_prog_cc_c89" != "xno" && break
4291 done
4292 rm -f conftest.$ac_ext
4293 CC=$ac_save_CC
4294
4295 fi
4296 # AC_CACHE_VAL
4297 case "x$ac_cv_prog_cc_c89" in
4298 x)
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4300 $as_echo "none needed" >&6; } ;;
4301 xno)
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4303 $as_echo "unsupported" >&6; } ;;
4304 *)
4305 CC="$CC $ac_cv_prog_cc_c89"
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4307 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4308 esac
4309 if test "x$ac_cv_prog_cc_c89" != xno; then :
4310
4311 fi
4312
4313 ac_ext=c
4314 ac_cpp='$CPP $CPPFLAGS'
4315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4318
4319 ac_aux_dir=
4320 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4321 if test -f "$ac_dir/install-sh"; then
4322 ac_aux_dir=$ac_dir
4323 ac_install_sh="$ac_aux_dir/install-sh -c"
4324 break
4325 elif test -f "$ac_dir/install.sh"; then
4326 ac_aux_dir=$ac_dir
4327 ac_install_sh="$ac_aux_dir/install.sh -c"
4328 break
4329 elif test -f "$ac_dir/shtool"; then
4330 ac_aux_dir=$ac_dir
4331 ac_install_sh="$ac_aux_dir/shtool install -c"
4332 break
4333 fi
4334 done
4335 if test -z "$ac_aux_dir"; then
4336 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4337 fi
4338
4339 # These three variables are undocumented and unsupported,
4340 # and are intended to be withdrawn in a future Autoconf release.
4341 # They can cause serious problems if a builder's source tree is in a directory
4342 # whose full name contains unusual characters.
4343 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4344 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4345 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4346
4347
4348 # Expand $ac_aux_dir to an absolute path.
4349 am_aux_dir=`cd "$ac_aux_dir" && pwd`
4350
4351 ac_ext=c
4352 ac_cpp='$CPP $CPPFLAGS'
4353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4357 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4358 if ${am_cv_prog_cc_c_o+:} false; then :
4359 $as_echo_n "(cached) " >&6
4360 else
4361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4362 /* end confdefs.h. */
4363
4364 int
4365 main ()
4366 {
4367
4368 ;
4369 return 0;
4370 }
4371 _ACEOF
4372 # Make sure it works both with $CC and with simple cc.
4373 # Following AC_PROG_CC_C_O, we do the test twice because some
4374 # compilers refuse to overwrite an existing .o file with -o,
4375 # though they will create one.
4376 am_cv_prog_cc_c_o=yes
4377 for am_i in 1 2; do
4378 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4379 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4380 ac_status=$?
4381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382 (exit $ac_status); } \
4383 && test -f conftest2.$ac_objext; then
4384 : OK
4385 else
4386 am_cv_prog_cc_c_o=no
4387 break
4388 fi
4389 done
4390 rm -f core conftest*
4391 unset am_i
4392 fi
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4394 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4395 if test "$am_cv_prog_cc_c_o" != yes; then
4396 # Losing compiler, so override with the script.
4397 # FIXME: It is wrong to rewrite CC.
4398 # But if we don't then we get into trouble of one sort or another.
4399 # A longer-term fix would be to have automake use am__CC in this case,
4400 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4401 CC="$am_aux_dir/compile $CC"
4402 fi
4403 ac_ext=c
4404 ac_cpp='$CPP $CPPFLAGS'
4405 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4406 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4407 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4408
4409
4410
4411 ac_ext=c
4412 ac_cpp='$CPP $CPPFLAGS'
4413 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4414 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4415 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4417 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4418 # On Suns, sometimes $CPP names a directory.
4419 if test -n "$CPP" && test -d "$CPP"; then
4420 CPP=
4421 fi
4422 if test -z "$CPP"; then
4423 if ${ac_cv_prog_CPP+:} false; then :
4424 $as_echo_n "(cached) " >&6
4425 else
4426 # Double quotes because CPP needs to be expanded
4427 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4428 do
4429 ac_preproc_ok=false
4430 for ac_c_preproc_warn_flag in '' yes
4431 do
4432 # Use a header file that comes with gcc, so configuring glibc
4433 # with a fresh cross-compiler works.
4434 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4435 # <limits.h> exists even on freestanding compilers.
4436 # On the NeXT, cc -E runs the code through the compiler's parser,
4437 # not just through cpp. "Syntax error" is here to catch this case.
4438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4439 /* end confdefs.h. */
4440 #ifdef __STDC__
4441 # include <limits.h>
4442 #else
4443 # include <assert.h>
4444 #endif
4445 Syntax error
4446 _ACEOF
4447 if ac_fn_c_try_cpp "$LINENO"; then :
4448
4449 else
4450 # Broken: fails on valid input.
4451 continue
4452 fi
4453 rm -f conftest.err conftest.i conftest.$ac_ext
4454
4455 # OK, works on sane cases. Now check whether nonexistent headers
4456 # can be detected and how.
4457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4458 /* end confdefs.h. */
4459 #include <ac_nonexistent.h>
4460 _ACEOF
4461 if ac_fn_c_try_cpp "$LINENO"; then :
4462 # Broken: success on invalid input.
4463 continue
4464 else
4465 # Passes both tests.
4466 ac_preproc_ok=:
4467 break
4468 fi
4469 rm -f conftest.err conftest.i conftest.$ac_ext
4470
4471 done
4472 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4473 rm -f conftest.i conftest.err conftest.$ac_ext
4474 if $ac_preproc_ok; then :
4475 break
4476 fi
4477
4478 done
4479 ac_cv_prog_CPP=$CPP
4480
4481 fi
4482 CPP=$ac_cv_prog_CPP
4483 else
4484 ac_cv_prog_CPP=$CPP
4485 fi
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4487 $as_echo "$CPP" >&6; }
4488 ac_preproc_ok=false
4489 for ac_c_preproc_warn_flag in '' yes
4490 do
4491 # Use a header file that comes with gcc, so configuring glibc
4492 # with a fresh cross-compiler works.
4493 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4494 # <limits.h> exists even on freestanding compilers.
4495 # On the NeXT, cc -E runs the code through the compiler's parser,
4496 # not just through cpp. "Syntax error" is here to catch this case.
4497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4498 /* end confdefs.h. */
4499 #ifdef __STDC__
4500 # include <limits.h>
4501 #else
4502 # include <assert.h>
4503 #endif
4504 Syntax error
4505 _ACEOF
4506 if ac_fn_c_try_cpp "$LINENO"; then :
4507
4508 else
4509 # Broken: fails on valid input.
4510 continue
4511 fi
4512 rm -f conftest.err conftest.i conftest.$ac_ext
4513
4514 # OK, works on sane cases. Now check whether nonexistent headers
4515 # can be detected and how.
4516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4517 /* end confdefs.h. */
4518 #include <ac_nonexistent.h>
4519 _ACEOF
4520 if ac_fn_c_try_cpp "$LINENO"; then :
4521 # Broken: success on invalid input.
4522 continue
4523 else
4524 # Passes both tests.
4525 ac_preproc_ok=:
4526 break
4527 fi
4528 rm -f conftest.err conftest.i conftest.$ac_ext
4529
4530 done
4531 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4532 rm -f conftest.i conftest.err conftest.$ac_ext
4533 if $ac_preproc_ok; then :
4534
4535 else
4536 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4537 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4538 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4539 See \`config.log' for more details" "$LINENO" 5; }
4540 fi
4541
4542 ac_ext=c
4543 ac_cpp='$CPP $CPPFLAGS'
4544 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4545 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4546 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4547
4548
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4550 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4551 if ${ac_cv_path_GREP+:} false; then :
4552 $as_echo_n "(cached) " >&6
4553 else
4554 if test -z "$GREP"; then
4555 ac_path_GREP_found=false
4556 # Loop through the user's path and test for each of PROGNAME-LIST
4557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4558 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4559 do
4560 IFS=$as_save_IFS
4561 test -z "$as_dir" && as_dir=.
4562 for ac_prog in grep ggrep; do
4563 for ac_exec_ext in '' $ac_executable_extensions; do
4564 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4565 as_fn_executable_p "$ac_path_GREP" || continue
4566 # Check for GNU ac_path_GREP and select it if it is found.
4567 # Check for GNU $ac_path_GREP
4568 case `"$ac_path_GREP" --version 2>&1` in
4569 *GNU*)
4570 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4571 *)
4572 ac_count=0
4573 $as_echo_n 0123456789 >"conftest.in"
4574 while :
4575 do
4576 cat "conftest.in" "conftest.in" >"conftest.tmp"
4577 mv "conftest.tmp" "conftest.in"
4578 cp "conftest.in" "conftest.nl"
4579 $as_echo 'GREP' >> "conftest.nl"
4580 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4581 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4582 as_fn_arith $ac_count + 1 && ac_count=$as_val
4583 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4584 # Best one so far, save it but keep looking for a better one
4585 ac_cv_path_GREP="$ac_path_GREP"
4586 ac_path_GREP_max=$ac_count
4587 fi
4588 # 10*(2^10) chars as input seems more than enough
4589 test $ac_count -gt 10 && break
4590 done
4591 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4592 esac
4593
4594 $ac_path_GREP_found && break 3
4595 done
4596 done
4597 done
4598 IFS=$as_save_IFS
4599 if test -z "$ac_cv_path_GREP"; then
4600 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4601 fi
4602 else
4603 ac_cv_path_GREP=$GREP
4604 fi
4605
4606 fi
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4608 $as_echo "$ac_cv_path_GREP" >&6; }
4609 GREP="$ac_cv_path_GREP"
4610
4611
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4613 $as_echo_n "checking for egrep... " >&6; }
4614 if ${ac_cv_path_EGREP+:} false; then :
4615 $as_echo_n "(cached) " >&6
4616 else
4617 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4618 then ac_cv_path_EGREP="$GREP -E"
4619 else
4620 if test -z "$EGREP"; then
4621 ac_path_EGREP_found=false
4622 # Loop through the user's path and test for each of PROGNAME-LIST
4623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4624 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4625 do
4626 IFS=$as_save_IFS
4627 test -z "$as_dir" && as_dir=.
4628 for ac_prog in egrep; do
4629 for ac_exec_ext in '' $ac_executable_extensions; do
4630 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4631 as_fn_executable_p "$ac_path_EGREP" || continue
4632 # Check for GNU ac_path_EGREP and select it if it is found.
4633 # Check for GNU $ac_path_EGREP
4634 case `"$ac_path_EGREP" --version 2>&1` in
4635 *GNU*)
4636 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4637 *)
4638 ac_count=0
4639 $as_echo_n 0123456789 >"conftest.in"
4640 while :
4641 do
4642 cat "conftest.in" "conftest.in" >"conftest.tmp"
4643 mv "conftest.tmp" "conftest.in"
4644 cp "conftest.in" "conftest.nl"
4645 $as_echo 'EGREP' >> "conftest.nl"
4646 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4647 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4648 as_fn_arith $ac_count + 1 && ac_count=$as_val
4649 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4650 # Best one so far, save it but keep looking for a better one
4651 ac_cv_path_EGREP="$ac_path_EGREP"
4652 ac_path_EGREP_max=$ac_count
4653 fi
4654 # 10*(2^10) chars as input seems more than enough
4655 test $ac_count -gt 10 && break
4656 done
4657 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4658 esac
4659
4660 $ac_path_EGREP_found && break 3
4661 done
4662 done
4663 done
4664 IFS=$as_save_IFS
4665 if test -z "$ac_cv_path_EGREP"; then
4666 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4667 fi
4668 else
4669 ac_cv_path_EGREP=$EGREP
4670 fi
4671
4672 fi
4673 fi
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4675 $as_echo "$ac_cv_path_EGREP" >&6; }
4676 EGREP="$ac_cv_path_EGREP"
4677
4678
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4680 $as_echo_n "checking for ANSI C header files... " >&6; }
4681 if ${ac_cv_header_stdc+:} false; then :
4682 $as_echo_n "(cached) " >&6
4683 else
4684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4685 /* end confdefs.h. */
4686 #include <stdlib.h>
4687 #include <stdarg.h>
4688 #include <string.h>
4689 #include <float.h>
4690
4691 int
4692 main ()
4693 {
4694
4695 ;
4696 return 0;
4697 }
4698 _ACEOF
4699 if ac_fn_c_try_compile "$LINENO"; then :
4700 ac_cv_header_stdc=yes
4701 else
4702 ac_cv_header_stdc=no
4703 fi
4704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4705
4706 if test $ac_cv_header_stdc = yes; then
4707 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4709 /* end confdefs.h. */
4710 #include <string.h>
4711
4712 _ACEOF
4713 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4714 $EGREP "memchr" >/dev/null 2>&1; then :
4715
4716 else
4717 ac_cv_header_stdc=no
4718 fi
4719 rm -f conftest*
4720
4721 fi
4722
4723 if test $ac_cv_header_stdc = yes; then
4724 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4726 /* end confdefs.h. */
4727 #include <stdlib.h>
4728
4729 _ACEOF
4730 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4731 $EGREP "free" >/dev/null 2>&1; then :
4732
4733 else
4734 ac_cv_header_stdc=no
4735 fi
4736 rm -f conftest*
4737
4738 fi
4739
4740 if test $ac_cv_header_stdc = yes; then
4741 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4742 if test "$cross_compiling" = yes; then :
4743 :
4744 else
4745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4746 /* end confdefs.h. */
4747 #include <ctype.h>
4748 #include <stdlib.h>
4749 #if ((' ' & 0x0FF) == 0x020)
4750 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4751 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4752 #else
4753 # define ISLOWER(c) \
4754 (('a' <= (c) && (c) <= 'i') \
4755 || ('j' <= (c) && (c) <= 'r') \
4756 || ('s' <= (c) && (c) <= 'z'))
4757 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4758 #endif
4759
4760 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4761 int
4762 main ()
4763 {
4764 int i;
4765 for (i = 0; i < 256; i++)
4766 if (XOR (islower (i), ISLOWER (i))
4767 || toupper (i) != TOUPPER (i))
4768 return 2;
4769 return 0;
4770 }
4771 _ACEOF
4772 if ac_fn_c_try_run "$LINENO"; then :
4773
4774 else
4775 ac_cv_header_stdc=no
4776 fi
4777 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4778 conftest.$ac_objext conftest.beam conftest.$ac_ext
4779 fi
4780
4781 fi
4782 fi
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4784 $as_echo "$ac_cv_header_stdc" >&6; }
4785 if test $ac_cv_header_stdc = yes; then
4786
4787 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4788
4789 fi
4790
4791 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4792 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4793 inttypes.h stdint.h unistd.h
4794 do :
4795 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4796 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4797 "
4798 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4799 cat >>confdefs.h <<_ACEOF
4800 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4801 _ACEOF
4802
4803 fi
4804
4805 done
4806
4807
4808
4809 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4810 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4811 MINIX=yes
4812 else
4813 MINIX=
4814 fi
4815
4816
4817 if test "$MINIX" = yes; then
4818
4819 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4820
4821
4822 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4823
4824
4825 $as_echo "#define _MINIX 1" >>confdefs.h
4826
4827
4828 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
4829
4830 fi
4831
4832
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4834 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4835 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4836 $as_echo_n "(cached) " >&6
4837 else
4838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4839 /* end confdefs.h. */
4840
4841 # define __EXTENSIONS__ 1
4842 $ac_includes_default
4843 int
4844 main ()
4845 {
4846
4847 ;
4848 return 0;
4849 }
4850 _ACEOF
4851 if ac_fn_c_try_compile "$LINENO"; then :
4852 ac_cv_safe_to_define___extensions__=yes
4853 else
4854 ac_cv_safe_to_define___extensions__=no
4855 fi
4856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4857 fi
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4859 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4860 test $ac_cv_safe_to_define___extensions__ = yes &&
4861 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4862
4863 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4864
4865 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4866
4867 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4868
4869 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4870
4871 $as_echo "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
4872
4873 $as_echo "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
4874
4875 $as_echo "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
4876
4877 $as_echo "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
4878
4879 $as_echo "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
4880
4881 $as_echo "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
4882
4883 $as_echo "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
4884
4885 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4886
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4888 $as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4889 if ${ac_cv_should_define__xopen_source+:} false; then :
4890 $as_echo_n "(cached) " >&6
4891 else
4892 ac_cv_should_define__xopen_source=no
4893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4894 /* end confdefs.h. */
4895
4896 #include <wchar.h>
4897 mbstate_t x;
4898 int
4899 main ()
4900 {
4901
4902 ;
4903 return 0;
4904 }
4905 _ACEOF
4906 if ac_fn_c_try_compile "$LINENO"; then :
4907
4908 else
4909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4910 /* end confdefs.h. */
4911
4912 #define _XOPEN_SOURCE 500
4913 #include <wchar.h>
4914 mbstate_t x;
4915 int
4916 main ()
4917 {
4918
4919 ;
4920 return 0;
4921 }
4922 _ACEOF
4923 if ac_fn_c_try_compile "$LINENO"; then :
4924 ac_cv_should_define__xopen_source=yes
4925 fi
4926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4927 fi
4928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4929 fi
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4931 $as_echo "$ac_cv_should_define__xopen_source" >&6; }
4932 test $ac_cv_should_define__xopen_source = yes &&
4933 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
4946 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
4947 if ${gl_cv_c_amsterdam_compiler+:} false; then :
4948 $as_echo_n "(cached) " >&6
4949 else
4950
4951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4952 /* end confdefs.h. */
4953
4954 #ifdef __ACK__
4955 Amsterdam
4956 #endif
4957
4958 _ACEOF
4959 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4960 $EGREP "Amsterdam" >/dev/null 2>&1; then :
4961 gl_cv_c_amsterdam_compiler=yes
4962 else
4963 gl_cv_c_amsterdam_compiler=no
4964 fi
4965 rm -f conftest*
4966
4967
4968 fi
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
4970 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
4971
4972 if test $gl_cv_c_amsterdam_compiler = yes; then
4973 if test -z "$AR"; then
4974 AR='cc -c.a'
4975 fi
4976 if test -z "$ARFLAGS"; then
4977 ARFLAGS='-o'
4978 fi
4979 else
4980 if test -n "$ac_tool_prefix"; then
4981 for ac_prog in ar lib "link -lib"
4982 do
4983 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4984 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4986 $as_echo_n "checking for $ac_word... " >&6; }
4987 if ${ac_cv_prog_AR+:} false; then :
4988 $as_echo_n "(cached) " >&6
4989 else
4990 if test -n "$AR"; then
4991 ac_cv_prog_AR="$AR" # Let the user override the test.
4992 else
4993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4994 for as_dir in $PATH
4995 do
4996 IFS=$as_save_IFS
4997 test -z "$as_dir" && as_dir=.
4998 for ac_exec_ext in '' $ac_executable_extensions; do
4999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5000 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5002 break 2
5003 fi
5004 done
5005 done
5006 IFS=$as_save_IFS
5007
5008 fi
5009 fi
5010 AR=$ac_cv_prog_AR
5011 if test -n "$AR"; then
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5013 $as_echo "$AR" >&6; }
5014 else
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5016 $as_echo "no" >&6; }
5017 fi
5018
5019
5020 test -n "$AR" && break
5021 done
5022 fi
5023 if test -z "$AR"; then
5024 ac_ct_AR=$AR
5025 for ac_prog in ar lib "link -lib"
5026 do
5027 # Extract the first word of "$ac_prog", so it can be a program name with args.
5028 set dummy $ac_prog; ac_word=$2
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5030 $as_echo_n "checking for $ac_word... " >&6; }
5031 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5032 $as_echo_n "(cached) " >&6
5033 else
5034 if test -n "$ac_ct_AR"; then
5035 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5036 else
5037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5038 for as_dir in $PATH
5039 do
5040 IFS=$as_save_IFS
5041 test -z "$as_dir" && as_dir=.
5042 for ac_exec_ext in '' $ac_executable_extensions; do
5043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5044 ac_cv_prog_ac_ct_AR="$ac_prog"
5045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5046 break 2
5047 fi
5048 done
5049 done
5050 IFS=$as_save_IFS
5051
5052 fi
5053 fi
5054 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5055 if test -n "$ac_ct_AR"; then
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5057 $as_echo "$ac_ct_AR" >&6; }
5058 else
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5060 $as_echo "no" >&6; }
5061 fi
5062
5063
5064 test -n "$ac_ct_AR" && break
5065 done
5066
5067 if test "x$ac_ct_AR" = x; then
5068 AR="false"
5069 else
5070 case $cross_compiling:$ac_tool_warned in
5071 yes:)
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5073 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5074 ac_tool_warned=yes ;;
5075 esac
5076 AR=$ac_ct_AR
5077 fi
5078 fi
5079
5080 : ${AR=ar}
5081
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5083 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
5084 if ${am_cv_ar_interface+:} false; then :
5085 $as_echo_n "(cached) " >&6
5086 else
5087 ac_ext=c
5088 ac_cpp='$CPP $CPPFLAGS'
5089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5092
5093 am_cv_ar_interface=ar
5094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5095 /* end confdefs.h. */
5096 int some_variable = 0;
5097 _ACEOF
5098 if ac_fn_c_try_compile "$LINENO"; then :
5099 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5100 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5101 (eval $am_ar_try) 2>&5
5102 ac_status=$?
5103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5104 test $ac_status = 0; }
5105 if test "$ac_status" -eq 0; then
5106 am_cv_ar_interface=ar
5107 else
5108 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5109 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5110 (eval $am_ar_try) 2>&5
5111 ac_status=$?
5112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5113 test $ac_status = 0; }
5114 if test "$ac_status" -eq 0; then
5115 am_cv_ar_interface=lib
5116 else
5117 am_cv_ar_interface=unknown
5118 fi
5119 fi
5120 rm -f conftest.lib libconftest.a
5121
5122 fi
5123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5124 ac_ext=c
5125 ac_cpp='$CPP $CPPFLAGS'
5126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5129
5130 fi
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5132 $as_echo "$am_cv_ar_interface" >&6; }
5133
5134 case $am_cv_ar_interface in
5135 ar)
5136 ;;
5137 lib)
5138 # Microsoft lib, so override with the ar-lib wrapper script.
5139 # FIXME: It is wrong to rewrite AR.
5140 # But if we don't then we get into trouble of one sort or another.
5141 # A longer-term fix would be to have automake use am__AR in this case,
5142 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5143 # similar.
5144 AR="$am_aux_dir/ar-lib $AR"
5145 ;;
5146 unknown)
5147 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5148 ;;
5149 esac
5150
5151 fi
5152
5153 if test -n "$ac_tool_prefix"; then
5154 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5155 set dummy ${ac_tool_prefix}ar; ac_word=$2
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5157 $as_echo_n "checking for $ac_word... " >&6; }
5158 if ${ac_cv_prog_AR+:} false; then :
5159 $as_echo_n "(cached) " >&6
5160 else
5161 if test -n "$AR"; then
5162 ac_cv_prog_AR="$AR" # Let the user override the test.
5163 else
5164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5165 for as_dir in $PATH
5166 do
5167 IFS=$as_save_IFS
5168 test -z "$as_dir" && as_dir=.
5169 for ac_exec_ext in '' $ac_executable_extensions; do
5170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5171 ac_cv_prog_AR="${ac_tool_prefix}ar"
5172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5173 break 2
5174 fi
5175 done
5176 done
5177 IFS=$as_save_IFS
5178
5179 fi
5180 fi
5181 AR=$ac_cv_prog_AR
5182 if test -n "$AR"; then
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5184 $as_echo "$AR" >&6; }
5185 else
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5187 $as_echo "no" >&6; }
5188 fi
5189
5190
5191 fi
5192 if test -z "$ac_cv_prog_AR"; then
5193 ac_ct_AR=$AR
5194 # Extract the first word of "ar", so it can be a program name with args.
5195 set dummy ar; ac_word=$2
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5197 $as_echo_n "checking for $ac_word... " >&6; }
5198 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5199 $as_echo_n "(cached) " >&6
5200 else
5201 if test -n "$ac_ct_AR"; then
5202 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5203 else
5204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5205 for as_dir in $PATH
5206 do
5207 IFS=$as_save_IFS
5208 test -z "$as_dir" && as_dir=.
5209 for ac_exec_ext in '' $ac_executable_extensions; do
5210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5211 ac_cv_prog_ac_ct_AR="ar"
5212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5213 break 2
5214 fi
5215 done
5216 done
5217 IFS=$as_save_IFS
5218
5219 fi
5220 fi
5221 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5222 if test -n "$ac_ct_AR"; then
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5224 $as_echo "$ac_ct_AR" >&6; }
5225 else
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5227 $as_echo "no" >&6; }
5228 fi
5229
5230 if test "x$ac_ct_AR" = x; then
5231 AR="ar"
5232 else
5233 case $cross_compiling:$ac_tool_warned in
5234 yes:)
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5236 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5237 ac_tool_warned=yes ;;
5238 esac
5239 AR=$ac_ct_AR
5240 fi
5241 else
5242 AR="$ac_cv_prog_AR"
5243 fi
5244
5245 if test -z "$ARFLAGS"; then
5246 ARFLAGS='cr'
5247 fi
5248
5249
5250
5251 if test -z "$RANLIB"; then
5252 if test $gl_cv_c_amsterdam_compiler = yes; then
5253 RANLIB=':'
5254 else
5255 if test -n "$ac_tool_prefix"; then
5256 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5257 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5259 $as_echo_n "checking for $ac_word... " >&6; }
5260 if ${ac_cv_prog_RANLIB+:} false; then :
5261 $as_echo_n "(cached) " >&6
5262 else
5263 if test -n "$RANLIB"; then
5264 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5265 else
5266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5267 for as_dir in $PATH
5268 do
5269 IFS=$as_save_IFS
5270 test -z "$as_dir" && as_dir=.
5271 for ac_exec_ext in '' $ac_executable_extensions; do
5272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5273 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5275 break 2
5276 fi
5277 done
5278 done
5279 IFS=$as_save_IFS
5280
5281 fi
5282 fi
5283 RANLIB=$ac_cv_prog_RANLIB
5284 if test -n "$RANLIB"; then
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5286 $as_echo "$RANLIB" >&6; }
5287 else
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5289 $as_echo "no" >&6; }
5290 fi
5291
5292
5293 fi
5294 if test -z "$ac_cv_prog_RANLIB"; then
5295 ac_ct_RANLIB=$RANLIB
5296 # Extract the first word of "ranlib", so it can be a program name with args.
5297 set dummy ranlib; ac_word=$2
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5299 $as_echo_n "checking for $ac_word... " >&6; }
5300 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5301 $as_echo_n "(cached) " >&6
5302 else
5303 if test -n "$ac_ct_RANLIB"; then
5304 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5305 else
5306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5307 for as_dir in $PATH
5308 do
5309 IFS=$as_save_IFS
5310 test -z "$as_dir" && as_dir=.
5311 for ac_exec_ext in '' $ac_executable_extensions; do
5312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5313 ac_cv_prog_ac_ct_RANLIB="ranlib"
5314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5315 break 2
5316 fi
5317 done
5318 done
5319 IFS=$as_save_IFS
5320
5321 fi
5322 fi
5323 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5324 if test -n "$ac_ct_RANLIB"; then
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5326 $as_echo "$ac_ct_RANLIB" >&6; }
5327 else
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5329 $as_echo "no" >&6; }
5330 fi
5331
5332 if test "x$ac_ct_RANLIB" = x; then
5333 RANLIB=":"
5334 else
5335 case $cross_compiling:$ac_tool_warned in
5336 yes:)
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5338 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5339 ac_tool_warned=yes ;;
5340 esac
5341 RANLIB=$ac_ct_RANLIB
5342 fi
5343 else
5344 RANLIB="$ac_cv_prog_RANLIB"
5345 fi
5346
5347 fi
5348 fi
5349
5350
5351 # Make sure we can run config.sub.
5352 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5353 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5354
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5356 $as_echo_n "checking build system type... " >&6; }
5357 if ${ac_cv_build+:} false; then :
5358 $as_echo_n "(cached) " >&6
5359 else
5360 ac_build_alias=$build_alias
5361 test "x$ac_build_alias" = x &&
5362 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5363 test "x$ac_build_alias" = x &&
5364 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5365 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5366 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5367
5368 fi
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5370 $as_echo "$ac_cv_build" >&6; }
5371 case $ac_cv_build in
5372 *-*-*) ;;
5373 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5374 esac
5375 build=$ac_cv_build
5376 ac_save_IFS=$IFS; IFS='-'
5377 set x $ac_cv_build
5378 shift
5379 build_cpu=$1
5380 build_vendor=$2
5381 shift; shift
5382 # Remember, the first character of IFS is used to create $*,
5383 # except with old shells:
5384 build_os=$*
5385 IFS=$ac_save_IFS
5386 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5387
5388
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5390 $as_echo_n "checking host system type... " >&6; }
5391 if ${ac_cv_host+:} false; then :
5392 $as_echo_n "(cached) " >&6
5393 else
5394 if test "x$host_alias" = x; then
5395 ac_cv_host=$ac_cv_build
5396 else
5397 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5398 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5399 fi
5400
5401 fi
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5403 $as_echo "$ac_cv_host" >&6; }
5404 case $ac_cv_host in
5405 *-*-*) ;;
5406 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5407 esac
5408 host=$ac_cv_host
5409 ac_save_IFS=$IFS; IFS='-'
5410 set x $ac_cv_host
5411 shift
5412 host_cpu=$1
5413 host_vendor=$2
5414 shift; shift
5415 # Remember, the first character of IFS is used to create $*,
5416 # except with old shells:
5417 host_os=$*
5418 IFS=$ac_save_IFS
5419 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5420
5421
5422
5423
5424
5425 # IEEE behaviour is the default on all CPUs except Alpha and SH
5426 # (according to the test results of Bruno Haible's ieeefp/fenv_default.m4
5427 # and the GCC 4.1.2 manual).
5428 case "$host_cpu" in
5429 alpha*)
5430 # On Alpha systems, a compiler option provides the behaviour.
5431 # See the ieee(3) manual page, also available at
5432 # <http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V51B_HTML/MAN/MAN3/0600____.HTM>
5433 if test -n "$GCC"; then
5434 # GCC has the option -mieee.
5435 # For full IEEE compliance (rarely needed), use option -mieee-with-inexact.
5436 CPPFLAGS="$CPPFLAGS -mieee"
5437 else
5438 # Compaq (ex-DEC) C has the option -ieee, equivalent to -ieee_with_no_inexact.
5439 # For full IEEE compliance (rarely needed), use option -ieee_with_inexact.
5440 CPPFLAGS="$CPPFLAGS -ieee"
5441 fi
5442 ;;
5443 sh*)
5444 if test -n "$GCC"; then
5445 # GCC has the option -mieee.
5446 CPPFLAGS="$CPPFLAGS -mieee"
5447 fi
5448 ;;
5449 esac
5450
5451 # Check whether --enable-largefile was given.
5452 if test "${enable_largefile+set}" = set; then :
5453 enableval=$enable_largefile;
5454 fi
5455
5456 if test "$enable_largefile" != no; then
5457
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5459 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5460 if ${ac_cv_sys_largefile_CC+:} false; then :
5461 $as_echo_n "(cached) " >&6
5462 else
5463 ac_cv_sys_largefile_CC=no
5464 if test "$GCC" != yes; then
5465 ac_save_CC=$CC
5466 while :; do
5467 # IRIX 6.2 and later do not support large files by default,
5468 # so use the C compiler's -n32 option if that helps.
5469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5470 /* end confdefs.h. */
5471 #include <sys/types.h>
5472 /* Check that off_t can represent 2**63 - 1 correctly.
5473 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5474 since some C++ compilers masquerading as C compilers
5475 incorrectly reject 9223372036854775807. */
5476 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5477 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5478 && LARGE_OFF_T % 2147483647 == 1)
5479 ? 1 : -1];
5480 int
5481 main ()
5482 {
5483
5484 ;
5485 return 0;
5486 }
5487 _ACEOF
5488 if ac_fn_c_try_compile "$LINENO"; then :
5489 break
5490 fi
5491 rm -f core conftest.err conftest.$ac_objext
5492 CC="$CC -n32"
5493 if ac_fn_c_try_compile "$LINENO"; then :
5494 ac_cv_sys_largefile_CC=' -n32'; break
5495 fi
5496 rm -f core conftest.err conftest.$ac_objext
5497 break
5498 done
5499 CC=$ac_save_CC
5500 rm -f conftest.$ac_ext
5501 fi
5502 fi
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5504 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5505 if test "$ac_cv_sys_largefile_CC" != no; then
5506 CC=$CC$ac_cv_sys_largefile_CC
5507 fi
5508
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5510 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5511 if ${ac_cv_sys_file_offset_bits+:} false; then :
5512 $as_echo_n "(cached) " >&6
5513 else
5514 while :; do
5515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5516 /* end confdefs.h. */
5517 #include <sys/types.h>
5518 /* Check that off_t can represent 2**63 - 1 correctly.
5519 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5520 since some C++ compilers masquerading as C compilers
5521 incorrectly reject 9223372036854775807. */
5522 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5523 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5524 && LARGE_OFF_T % 2147483647 == 1)
5525 ? 1 : -1];
5526 int
5527 main ()
5528 {
5529
5530 ;
5531 return 0;
5532 }
5533 _ACEOF
5534 if ac_fn_c_try_compile "$LINENO"; then :
5535 ac_cv_sys_file_offset_bits=no; break
5536 fi
5537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5539 /* end confdefs.h. */
5540 #define _FILE_OFFSET_BITS 64
5541 #include <sys/types.h>
5542 /* Check that off_t can represent 2**63 - 1 correctly.
5543 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5544 since some C++ compilers masquerading as C compilers
5545 incorrectly reject 9223372036854775807. */
5546 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5547 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5548 && LARGE_OFF_T % 2147483647 == 1)
5549 ? 1 : -1];
5550 int
5551 main ()
5552 {
5553
5554 ;
5555 return 0;
5556 }
5557 _ACEOF
5558 if ac_fn_c_try_compile "$LINENO"; then :
5559 ac_cv_sys_file_offset_bits=64; break
5560 fi
5561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5562 ac_cv_sys_file_offset_bits=unknown
5563 break
5564 done
5565 fi
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5567 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5568 case $ac_cv_sys_file_offset_bits in #(
5569 no | unknown) ;;
5570 *)
5571 cat >>confdefs.h <<_ACEOF
5572 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5573 _ACEOF
5574 ;;
5575 esac
5576 rm -rf conftest*
5577 if test $ac_cv_sys_file_offset_bits = unknown; then
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5579 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5580 if ${ac_cv_sys_large_files+:} false; then :
5581 $as_echo_n "(cached) " >&6
5582 else
5583 while :; do
5584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5585 /* end confdefs.h. */
5586 #include <sys/types.h>
5587 /* Check that off_t can represent 2**63 - 1 correctly.
5588 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5589 since some C++ compilers masquerading as C compilers
5590 incorrectly reject 9223372036854775807. */
5591 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5592 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5593 && LARGE_OFF_T % 2147483647 == 1)
5594 ? 1 : -1];
5595 int
5596 main ()
5597 {
5598
5599 ;
5600 return 0;
5601 }
5602 _ACEOF
5603 if ac_fn_c_try_compile "$LINENO"; then :
5604 ac_cv_sys_large_files=no; break
5605 fi
5606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5608 /* end confdefs.h. */
5609 #define _LARGE_FILES 1
5610 #include <sys/types.h>
5611 /* Check that off_t can represent 2**63 - 1 correctly.
5612 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5613 since some C++ compilers masquerading as C compilers
5614 incorrectly reject 9223372036854775807. */
5615 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5616 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5617 && LARGE_OFF_T % 2147483647 == 1)
5618 ? 1 : -1];
5619 int
5620 main ()
5621 {
5622
5623 ;
5624 return 0;
5625 }
5626 _ACEOF
5627 if ac_fn_c_try_compile "$LINENO"; then :
5628 ac_cv_sys_large_files=1; break
5629 fi
5630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5631 ac_cv_sys_large_files=unknown
5632 break
5633 done
5634 fi
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5636 $as_echo "$ac_cv_sys_large_files" >&6; }
5637 case $ac_cv_sys_large_files in #(
5638 no | unknown) ;;
5639 *)
5640 cat >>confdefs.h <<_ACEOF
5641 #define _LARGE_FILES $ac_cv_sys_large_files
5642 _ACEOF
5643 ;;
5644 esac
5645 rm -rf conftest*
5646 fi
5647
5648
5649 $as_echo "#define _DARWIN_USE_64_BIT_INODE 1" >>confdefs.h
5650
5651 fi
5652
5653
5654
5655 # Pre-early section.
5656
5657
5658
5659 # Code from module absolute-header:
5660 # Code from module alloca:
5661 # Code from module alloca-opt:
5662 # Code from module assure:
5663 # Code from module at-internal:
5664 # Code from module canonicalize-lgpl:
5665 # Code from module chdir:
5666 # Code from module chdir-long:
5667 # Code from module cloexec:
5668 # Code from module close:
5669 # Code from module closedir:
5670 # Code from module configmake:
5671 # Code from module d-ino:
5672 # Code from module d-type:
5673 # Code from module dirent:
5674 # Code from module dirfd:
5675 # Code from module dirname-lgpl:
5676 # Code from module dosname:
5677 # Code from module double-slash-root:
5678 # Code from module dup:
5679 # Code from module dup2:
5680 # Code from module environ:
5681 # Code from module errno:
5682 # Code from module error:
5683 # Code from module exitfail:
5684 # Code from module extensions:
5685 # Code from module extern-inline:
5686 # Code from module fchdir:
5687 # Code from module fcntl:
5688 # Code from module fcntl-h:
5689 # Code from module fd-hook:
5690 # Code from module fdopendir:
5691 # Code from module filename:
5692 # Code from module filenamecat-lgpl:
5693 # Code from module flexmember:
5694 # Code from module float:
5695 # Code from module fnmatch:
5696 # Code from module fnmatch-gnu:
5697 # Code from module fpieee:
5698
5699 # Code from module fpucw:
5700 # Code from module frexp:
5701 # Code from module frexpl:
5702 # Code from module fstat:
5703 # Code from module fstatat:
5704 # Code from module getcwd:
5705 # Code from module getcwd-lgpl:
5706 # Code from module getdtablesize:
5707 # Code from module getlogin_r:
5708 # Code from module getprogname:
5709 # Code from module gettext-h:
5710 # Code from module gettimeofday:
5711 # Code from module glob:
5712 # Code from module hard-locale:
5713 # Code from module include_next:
5714 # Code from module intprops:
5715 # Code from module inttypes:
5716 # Code from module inttypes-incomplete:
5717 # Code from module isnand-nolibm:
5718 # Code from module isnanl-nolibm:
5719 # Code from module largefile:
5720
5721 # Code from module limits-h:
5722 # Code from module localcharset:
5723 # Code from module lstat:
5724 # Code from module malloc-posix:
5725 # Code from module malloca:
5726 # Code from module math:
5727 # Code from module mbrtowc:
5728 # Code from module mbsinit:
5729 # Code from module mbsrtowcs:
5730 # Code from module memchr:
5731 # Code from module memmem:
5732 # Code from module memmem-simple:
5733 # Code from module mempcpy:
5734 # Code from module memrchr:
5735 # Code from module mkstemp:
5736 # Code from module msvc-inval:
5737 # Code from module msvc-nothrow:
5738 # Code from module multiarch:
5739 # Code from module nocrash:
5740 # Code from module open:
5741 # Code from module openat:
5742 # Code from module openat-die:
5743 # Code from module openat-h:
5744 # Code from module opendir:
5745 # Code from module pathmax:
5746 # Code from module rawmemchr:
5747 # Code from module readdir:
5748 # Code from module readlink:
5749 # Code from module realloc-posix:
5750 # Code from module rename:
5751 # Code from module rewinddir:
5752 # Code from module rmdir:
5753 # Code from module same-inode:
5754 # Code from module save-cwd:
5755 # Code from module secure_getenv:
5756 # Code from module setenv:
5757 # Code from module signal-h:
5758 # Code from module snippet/_Noreturn:
5759 # Code from module snippet/arg-nonnull:
5760 # Code from module snippet/c++defs:
5761 # Code from module snippet/warn-on-use:
5762 # Code from module ssize_t:
5763 # Code from module stat:
5764 # Code from module stdbool:
5765 # Code from module stddef:
5766 # Code from module stdint:
5767 # Code from module stdio:
5768 # Code from module stdlib:
5769 # Code from module strchrnul:
5770 # Code from module strdup-posix:
5771 # Code from module streq:
5772 # Code from module strerror:
5773 # Code from module strerror-override:
5774 # Code from module string:
5775 # Code from module strnlen1:
5776 # Code from module strstr:
5777 # Code from module strstr-simple:
5778 # Code from module strtok_r:
5779 # Code from module sys_stat:
5780 # Code from module sys_time:
5781 # Code from module sys_types:
5782 # Code from module tempname:
5783 # Code from module time:
5784 # Code from module unistd:
5785 # Code from module unistd-safer:
5786 # Code from module unsetenv:
5787 # Code from module update-copyright:
5788 # Code from module verify:
5789 # Code from module wchar:
5790 # Code from module wctype-h:
5791
5792 ac_ext=c
5793 ac_cpp='$CPP $CPPFLAGS'
5794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5797 if test -n "$ac_tool_prefix"; then
5798 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5799 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5801 $as_echo_n "checking for $ac_word... " >&6; }
5802 if ${ac_cv_prog_CC+:} false; then :
5803 $as_echo_n "(cached) " >&6
5804 else
5805 if test -n "$CC"; then
5806 ac_cv_prog_CC="$CC" # Let the user override the test.
5807 else
5808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5809 for as_dir in $PATH
5810 do
5811 IFS=$as_save_IFS
5812 test -z "$as_dir" && as_dir=.
5813 for ac_exec_ext in '' $ac_executable_extensions; do
5814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5815 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5817 break 2
5818 fi
5819 done
5820 done
5821 IFS=$as_save_IFS
5822
5823 fi
5824 fi
5825 CC=$ac_cv_prog_CC
5826 if test -n "$CC"; then
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5828 $as_echo "$CC" >&6; }
5829 else
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5831 $as_echo "no" >&6; }
5832 fi
5833
5834
5835 fi
5836 if test -z "$ac_cv_prog_CC"; then
5837 ac_ct_CC=$CC
5838 # Extract the first word of "gcc", so it can be a program name with args.
5839 set dummy gcc; ac_word=$2
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5841 $as_echo_n "checking for $ac_word... " >&6; }
5842 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5843 $as_echo_n "(cached) " >&6
5844 else
5845 if test -n "$ac_ct_CC"; then
5846 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5847 else
5848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5849 for as_dir in $PATH
5850 do
5851 IFS=$as_save_IFS
5852 test -z "$as_dir" && as_dir=.
5853 for ac_exec_ext in '' $ac_executable_extensions; do
5854 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5855 ac_cv_prog_ac_ct_CC="gcc"
5856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5857 break 2
5858 fi
5859 done
5860 done
5861 IFS=$as_save_IFS
5862
5863 fi
5864 fi
5865 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5866 if test -n "$ac_ct_CC"; then
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5868 $as_echo "$ac_ct_CC" >&6; }
5869 else
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5871 $as_echo "no" >&6; }
5872 fi
5873
5874 if test "x$ac_ct_CC" = x; then
5875 CC=""
5876 else
5877 case $cross_compiling:$ac_tool_warned in
5878 yes:)
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5880 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5881 ac_tool_warned=yes ;;
5882 esac
5883 CC=$ac_ct_CC
5884 fi
5885 else
5886 CC="$ac_cv_prog_CC"
5887 fi
5888
5889 if test -z "$CC"; then
5890 if test -n "$ac_tool_prefix"; then
5891 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5892 set dummy ${ac_tool_prefix}cc; ac_word=$2
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5894 $as_echo_n "checking for $ac_word... " >&6; }
5895 if ${ac_cv_prog_CC+:} false; then :
5896 $as_echo_n "(cached) " >&6
5897 else
5898 if test -n "$CC"; then
5899 ac_cv_prog_CC="$CC" # Let the user override the test.
5900 else
5901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5902 for as_dir in $PATH
5903 do
5904 IFS=$as_save_IFS
5905 test -z "$as_dir" && as_dir=.
5906 for ac_exec_ext in '' $ac_executable_extensions; do
5907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5908 ac_cv_prog_CC="${ac_tool_prefix}cc"
5909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5910 break 2
5911 fi
5912 done
5913 done
5914 IFS=$as_save_IFS
5915
5916 fi
5917 fi
5918 CC=$ac_cv_prog_CC
5919 if test -n "$CC"; then
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5921 $as_echo "$CC" >&6; }
5922 else
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5924 $as_echo "no" >&6; }
5925 fi
5926
5927
5928 fi
5929 fi
5930 if test -z "$CC"; then
5931 # Extract the first word of "cc", so it can be a program name with args.
5932 set dummy cc; ac_word=$2
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5934 $as_echo_n "checking for $ac_word... " >&6; }
5935 if ${ac_cv_prog_CC+:} false; then :
5936 $as_echo_n "(cached) " >&6
5937 else
5938 if test -n "$CC"; then
5939 ac_cv_prog_CC="$CC" # Let the user override the test.
5940 else
5941 ac_prog_rejected=no
5942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5943 for as_dir in $PATH
5944 do
5945 IFS=$as_save_IFS
5946 test -z "$as_dir" && as_dir=.
5947 for ac_exec_ext in '' $ac_executable_extensions; do
5948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5949 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5950 ac_prog_rejected=yes
5951 continue
5952 fi
5953 ac_cv_prog_CC="cc"
5954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5955 break 2
5956 fi
5957 done
5958 done
5959 IFS=$as_save_IFS
5960
5961 if test $ac_prog_rejected = yes; then
5962 # We found a bogon in the path, so make sure we never use it.
5963 set dummy $ac_cv_prog_CC
5964 shift
5965 if test $# != 0; then
5966 # We chose a different compiler from the bogus one.
5967 # However, it has the same basename, so the bogon will be chosen
5968 # first if we set CC to just the basename; use the full file name.
5969 shift
5970 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5971 fi
5972 fi
5973 fi
5974 fi
5975 CC=$ac_cv_prog_CC
5976 if test -n "$CC"; then
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5978 $as_echo "$CC" >&6; }
5979 else
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5981 $as_echo "no" >&6; }
5982 fi
5983
5984
5985 fi
5986 if test -z "$CC"; then
5987 if test -n "$ac_tool_prefix"; then
5988 for ac_prog in cl.exe
5989 do
5990 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5991 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5993 $as_echo_n "checking for $ac_word... " >&6; }
5994 if ${ac_cv_prog_CC+:} false; then :
5995 $as_echo_n "(cached) " >&6
5996 else
5997 if test -n "$CC"; then
5998 ac_cv_prog_CC="$CC" # Let the user override the test.
5999 else
6000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6001 for as_dir in $PATH
6002 do
6003 IFS=$as_save_IFS
6004 test -z "$as_dir" && as_dir=.
6005 for ac_exec_ext in '' $ac_executable_extensions; do
6006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6007 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6009 break 2
6010 fi
6011 done
6012 done
6013 IFS=$as_save_IFS
6014
6015 fi
6016 fi
6017 CC=$ac_cv_prog_CC
6018 if test -n "$CC"; then
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6020 $as_echo "$CC" >&6; }
6021 else
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6023 $as_echo "no" >&6; }
6024 fi
6025
6026
6027 test -n "$CC" && break
6028 done
6029 fi
6030 if test -z "$CC"; then
6031 ac_ct_CC=$CC
6032 for ac_prog in cl.exe
6033 do
6034 # Extract the first word of "$ac_prog", so it can be a program name with args.
6035 set dummy $ac_prog; ac_word=$2
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6037 $as_echo_n "checking for $ac_word... " >&6; }
6038 if ${ac_cv_prog_ac_ct_CC+:} false; then :
6039 $as_echo_n "(cached) " >&6
6040 else
6041 if test -n "$ac_ct_CC"; then
6042 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6043 else
6044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6045 for as_dir in $PATH
6046 do
6047 IFS=$as_save_IFS
6048 test -z "$as_dir" && as_dir=.
6049 for ac_exec_ext in '' $ac_executable_extensions; do
6050 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6051 ac_cv_prog_ac_ct_CC="$ac_prog"
6052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6053 break 2
6054 fi
6055 done
6056 done
6057 IFS=$as_save_IFS
6058
6059 fi
6060 fi
6061 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6062 if test -n "$ac_ct_CC"; then
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6064 $as_echo "$ac_ct_CC" >&6; }
6065 else
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6067 $as_echo "no" >&6; }
6068 fi
6069
6070
6071 test -n "$ac_ct_CC" && break
6072 done
6073
6074 if test "x$ac_ct_CC" = x; then
6075 CC=""
6076 else
6077 case $cross_compiling:$ac_tool_warned in
6078 yes:)
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6080 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6081 ac_tool_warned=yes ;;
6082 esac
6083 CC=$ac_ct_CC
6084 fi
6085 fi
6086
6087 fi
6088
6089
6090 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6091 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6092 as_fn_error $? "no acceptable C compiler found in \$PATH
6093 See \`config.log' for more details" "$LINENO" 5; }
6094
6095 # Provide some information about the compiler.
6096 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6097 set X $ac_compile
6098 ac_compiler=$2
6099 for ac_option in --version -v -V -qversion; do
6100 { { ac_try="$ac_compiler $ac_option >&5"
6101 case "(($ac_try" in
6102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6103 *) ac_try_echo=$ac_try;;
6104 esac
6105 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6106 $as_echo "$ac_try_echo"; } >&5
6107 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6108 ac_status=$?
6109 if test -s conftest.err; then
6110 sed '10a\
6111 ... rest of stderr output deleted ...
6112 10q' conftest.err >conftest.er1
6113 cat conftest.er1 >&5
6114 fi
6115 rm -f conftest.er1 conftest.err
6116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6117 test $ac_status = 0; }
6118 done
6119
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6121 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6122 if ${ac_cv_c_compiler_gnu+:} false; then :
6123 $as_echo_n "(cached) " >&6
6124 else
6125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6126 /* end confdefs.h. */
6127
6128 int
6129 main ()
6130 {
6131 #ifndef __GNUC__
6132 choke me
6133 #endif
6134
6135 ;
6136 return 0;
6137 }
6138 _ACEOF
6139 if ac_fn_c_try_compile "$LINENO"; then :
6140 ac_compiler_gnu=yes
6141 else
6142 ac_compiler_gnu=no
6143 fi
6144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6145 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6146
6147 fi
6148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6149 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
6150 if test $ac_compiler_gnu = yes; then
6151 GCC=yes
6152 else
6153 GCC=
6154 fi
6155 ac_test_CFLAGS=${CFLAGS+set}
6156 ac_save_CFLAGS=$CFLAGS
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6158 $as_echo_n "checking whether $CC accepts -g... " >&6; }
6159 if ${ac_cv_prog_cc_g+:} false; then :
6160 $as_echo_n "(cached) " >&6
6161 else
6162 ac_save_c_werror_flag=$ac_c_werror_flag
6163 ac_c_werror_flag=yes
6164 ac_cv_prog_cc_g=no
6165 CFLAGS="-g"
6166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6167 /* end confdefs.h. */
6168
6169 int
6170 main ()
6171 {
6172
6173 ;
6174 return 0;
6175 }
6176 _ACEOF
6177 if ac_fn_c_try_compile "$LINENO"; then :
6178 ac_cv_prog_cc_g=yes
6179 else
6180 CFLAGS=""
6181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6182 /* end confdefs.h. */
6183
6184 int
6185 main ()
6186 {
6187
6188 ;
6189 return 0;
6190 }
6191 _ACEOF
6192 if ac_fn_c_try_compile "$LINENO"; then :
6193
6194 else
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 ()
6202 {
6203
6204 ;
6205 return 0;
6206 }
6207 _ACEOF
6208 if ac_fn_c_try_compile "$LINENO"; then :
6209 ac_cv_prog_cc_g=yes
6210 fi
6211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6212 fi
6213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6214 fi
6215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6216 ac_c_werror_flag=$ac_save_c_werror_flag
6217 fi
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6219 $as_echo "$ac_cv_prog_cc_g" >&6; }
6220 if test "$ac_test_CFLAGS" = set; then
6221 CFLAGS=$ac_save_CFLAGS
6222 elif test $ac_cv_prog_cc_g = yes; then
6223 if test "$GCC" = yes; then
6224 CFLAGS="-g -O2"
6225 else
6226 CFLAGS="-g"
6227 fi
6228 else
6229 if test "$GCC" = yes; then
6230 CFLAGS="-O2"
6231 else
6232 CFLAGS=
6233 fi
6234 fi
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6236 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6237 if ${ac_cv_prog_cc_c89+:} false; then :
6238 $as_echo_n "(cached) " >&6
6239 else
6240 ac_cv_prog_cc_c89=no
6241 ac_save_CC=$CC
6242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6243 /* end confdefs.h. */
6244 #include <stdarg.h>
6245 #include <stdio.h>
6246 struct stat;
6247 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6248 struct buf { int x; };
6249 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6250 static char *e (p, i)
6251 char **p;
6252 int i;
6253 {
6254 return p[i];
6255 }
6256 static char *f (char * (*g) (char **, int), char **p, ...)
6257 {
6258 char *s;
6259 va_list v;
6260 va_start (v,p);
6261 s = g (p, va_arg (v,int));
6262 va_end (v);
6263 return s;
6264 }
6265
6266 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6267 function prototypes and stuff, but not '\xHH' hex character constants.
6268 These don't provoke an error unfortunately, instead are silently treated
6269 as 'x'. The following induces an error, until -std is added to get
6270 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6271 array size at least. It's necessary to write '\x00'==0 to get something
6272 that's true only with -std. */
6273 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6274
6275 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6276 inside strings and character constants. */
6277 #define FOO(x) 'x'
6278 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6279
6280 int test (int i, double x);
6281 struct s1 {int (*f) (int a);};
6282 struct s2 {int (*f) (double a);};
6283 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6284 int argc;
6285 char **argv;
6286 int
6287 main ()
6288 {
6289 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6290 ;
6291 return 0;
6292 }
6293 _ACEOF
6294 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6295 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6296 do
6297 CC="$ac_save_CC $ac_arg"
6298 if ac_fn_c_try_compile "$LINENO"; then :
6299 ac_cv_prog_cc_c89=$ac_arg
6300 fi
6301 rm -f core conftest.err conftest.$ac_objext
6302 test "x$ac_cv_prog_cc_c89" != "xno" && break
6303 done
6304 rm -f conftest.$ac_ext
6305 CC=$ac_save_CC
6306
6307 fi
6308 # AC_CACHE_VAL
6309 case "x$ac_cv_prog_cc_c89" in
6310 x)
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6312 $as_echo "none needed" >&6; } ;;
6313 xno)
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6315 $as_echo "unsupported" >&6; } ;;
6316 *)
6317 CC="$CC $ac_cv_prog_cc_c89"
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6319 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6320 esac
6321 if test "x$ac_cv_prog_cc_c89" != xno; then :
6322
6323 fi
6324
6325 ac_ext=c
6326 ac_cpp='$CPP $CPPFLAGS'
6327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6330
6331 ac_ext=c
6332 ac_cpp='$CPP $CPPFLAGS'
6333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6337 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
6338 if ${am_cv_prog_cc_c_o+:} false; then :
6339 $as_echo_n "(cached) " >&6
6340 else
6341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6342 /* end confdefs.h. */
6343
6344 int
6345 main ()
6346 {
6347
6348 ;
6349 return 0;
6350 }
6351 _ACEOF
6352 # Make sure it works both with $CC and with simple cc.
6353 # Following AC_PROG_CC_C_O, we do the test twice because some
6354 # compilers refuse to overwrite an existing .o file with -o,
6355 # though they will create one.
6356 am_cv_prog_cc_c_o=yes
6357 for am_i in 1 2; do
6358 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6359 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6360 ac_status=$?
6361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362 (exit $ac_status); } \
6363 && test -f conftest2.$ac_objext; then
6364 : OK
6365 else
6366 am_cv_prog_cc_c_o=no
6367 break
6368 fi
6369 done
6370 rm -f core conftest*
6371 unset am_i
6372 fi
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6374 $as_echo "$am_cv_prog_cc_c_o" >&6; }
6375 if test "$am_cv_prog_cc_c_o" != yes; then
6376 # Losing compiler, so override with the script.
6377 # FIXME: It is wrong to rewrite CC.
6378 # But if we don't then we get into trouble of one sort or another.
6379 # A longer-term fix would be to have automake use am__CC in this case,
6380 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6381 CC="$am_aux_dir/compile $CC"
6382 fi
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
6389
6390 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
6391
6392
6393 ac_aux_dir=
6394 for ac_dir in ../.. "$srcdir"/../..; do
6395 if test -f "$ac_dir/install-sh"; then
6396 ac_aux_dir=$ac_dir
6397 ac_install_sh="$ac_aux_dir/install-sh -c"
6398 break
6399 elif test -f "$ac_dir/install.sh"; then
6400 ac_aux_dir=$ac_dir
6401 ac_install_sh="$ac_aux_dir/install.sh -c"
6402 break
6403 elif test -f "$ac_dir/shtool"; then
6404 ac_aux_dir=$ac_dir
6405 ac_install_sh="$ac_aux_dir/shtool install -c"
6406 break
6407 fi
6408 done
6409 if test -z "$ac_aux_dir"; then
6410 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5
6411 fi
6412
6413 # These three variables are undocumented and unsupported,
6414 # and are intended to be withdrawn in a future Autoconf release.
6415 # They can cause serious problems if a builder's source tree is in a directory
6416 # whose full name contains unusual characters.
6417 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
6418 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
6419 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
6420
6421
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
6423 $as_echo_n "checking target system type... " >&6; }
6424 if ${ac_cv_target+:} false; then :
6425 $as_echo_n "(cached) " >&6
6426 else
6427 if test "x$target_alias" = x; then
6428 ac_cv_target=$ac_cv_host
6429 else
6430 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
6431 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
6432 fi
6433
6434 fi
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
6436 $as_echo "$ac_cv_target" >&6; }
6437 case $ac_cv_target in
6438 *-*-*) ;;
6439 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
6440 esac
6441 target=$ac_cv_target
6442 ac_save_IFS=$IFS; IFS='-'
6443 set x $ac_cv_target
6444 shift
6445 target_cpu=$1
6446 target_vendor=$2
6447 shift; shift
6448 # Remember, the first character of IFS is used to create $*,
6449 # except with old shells:
6450 target_os=$*
6451 IFS=$ac_save_IFS
6452 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
6453
6454
6455 # The aliases save the names the user supplied, while $host etc.
6456 # will get canonicalized.
6457 test -n "$target_alias" &&
6458 test "$program_prefix$program_suffix$program_transform_name" = \
6459 NONENONEs,x,x, &&
6460 program_prefix=${target_alias}-
6461
6462
6463
6464
6465
6466
6467
6468 LIBC_FATAL_STDERR_=1
6469 export LIBC_FATAL_STDERR_
6470
6471 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6472 if test "x$ac_cv_type_size_t" = xyes; then :
6473
6474 else
6475
6476 cat >>confdefs.h <<_ACEOF
6477 #define size_t unsigned int
6478 _ACEOF
6479
6480 fi
6481
6482 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6483 # for constant arguments. Useless!
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6485 $as_echo_n "checking for working alloca.h... " >&6; }
6486 if ${ac_cv_working_alloca_h+:} false; then :
6487 $as_echo_n "(cached) " >&6
6488 else
6489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6490 /* end confdefs.h. */
6491 #include <alloca.h>
6492 int
6493 main ()
6494 {
6495 char *p = (char *) alloca (2 * sizeof (int));
6496 if (p) return 0;
6497 ;
6498 return 0;
6499 }
6500 _ACEOF
6501 if ac_fn_c_try_link "$LINENO"; then :
6502 ac_cv_working_alloca_h=yes
6503 else
6504 ac_cv_working_alloca_h=no
6505 fi
6506 rm -f core conftest.err conftest.$ac_objext \
6507 conftest$ac_exeext conftest.$ac_ext
6508 fi
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6510 $as_echo "$ac_cv_working_alloca_h" >&6; }
6511 if test $ac_cv_working_alloca_h = yes; then
6512
6513 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6514
6515 fi
6516
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6518 $as_echo_n "checking for alloca... " >&6; }
6519 if ${ac_cv_func_alloca_works+:} false; then :
6520 $as_echo_n "(cached) " >&6
6521 else
6522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6523 /* end confdefs.h. */
6524 #ifdef __GNUC__
6525 # define alloca __builtin_alloca
6526 #else
6527 # ifdef _MSC_VER
6528 # include <malloc.h>
6529 # define alloca _alloca
6530 # else
6531 # ifdef HAVE_ALLOCA_H
6532 # include <alloca.h>
6533 # else
6534 # ifdef _AIX
6535 #pragma alloca
6536 # else
6537 # ifndef alloca /* predefined by HP cc +Olibcalls */
6538 void *alloca (size_t);
6539 # endif
6540 # endif
6541 # endif
6542 # endif
6543 #endif
6544
6545 int
6546 main ()
6547 {
6548 char *p = (char *) alloca (1);
6549 if (p) return 0;
6550 ;
6551 return 0;
6552 }
6553 _ACEOF
6554 if ac_fn_c_try_link "$LINENO"; then :
6555 ac_cv_func_alloca_works=yes
6556 else
6557 ac_cv_func_alloca_works=no
6558 fi
6559 rm -f core conftest.err conftest.$ac_objext \
6560 conftest$ac_exeext conftest.$ac_ext
6561 fi
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6563 $as_echo "$ac_cv_func_alloca_works" >&6; }
6564
6565 if test $ac_cv_func_alloca_works = yes; then
6566
6567 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6568
6569 else
6570 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6571 # that cause trouble. Some versions do not even contain alloca or
6572 # contain a buggy version. If you still want to use their alloca,
6573 # use ar to extract alloca.o from them instead of compiling alloca.c.
6574
6575
6576
6577
6578
6579 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6580
6581 $as_echo "#define C_ALLOCA 1" >>confdefs.h
6582
6583
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6585 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6586 if ${ac_cv_os_cray+:} false; then :
6587 $as_echo_n "(cached) " >&6
6588 else
6589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6590 /* end confdefs.h. */
6591 #if defined CRAY && ! defined CRAY2
6592 webecray
6593 #else
6594 wenotbecray
6595 #endif
6596
6597 _ACEOF
6598 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6599 $EGREP "webecray" >/dev/null 2>&1; then :
6600 ac_cv_os_cray=yes
6601 else
6602 ac_cv_os_cray=no
6603 fi
6604 rm -f conftest*
6605
6606 fi
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6608 $as_echo "$ac_cv_os_cray" >&6; }
6609 if test $ac_cv_os_cray = yes; then
6610 for ac_func in _getb67 GETB67 getb67; do
6611 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6612 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6613 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6614
6615 cat >>confdefs.h <<_ACEOF
6616 #define CRAY_STACKSEG_END $ac_func
6617 _ACEOF
6618
6619 break
6620 fi
6621
6622 done
6623 fi
6624
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6626 $as_echo_n "checking stack direction for C alloca... " >&6; }
6627 if ${ac_cv_c_stack_direction+:} false; then :
6628 $as_echo_n "(cached) " >&6
6629 else
6630 if test "$cross_compiling" = yes; then :
6631 ac_cv_c_stack_direction=0
6632 else
6633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6634 /* end confdefs.h. */
6635 $ac_includes_default
6636 int
6637 find_stack_direction (int *addr, int depth)
6638 {
6639 int dir, dummy = 0;
6640 if (! addr)
6641 addr = &dummy;
6642 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
6643 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
6644 return dir + dummy;
6645 }
6646
6647 int
6648 main (int argc, char **argv)
6649 {
6650 return find_stack_direction (0, argc + !argv + 20) < 0;
6651 }
6652 _ACEOF
6653 if ac_fn_c_try_run "$LINENO"; then :
6654 ac_cv_c_stack_direction=1
6655 else
6656 ac_cv_c_stack_direction=-1
6657 fi
6658 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6659 conftest.$ac_objext conftest.beam conftest.$ac_ext
6660 fi
6661
6662 fi
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6664 $as_echo "$ac_cv_c_stack_direction" >&6; }
6665 cat >>confdefs.h <<_ACEOF
6666 #define STACK_DIRECTION $ac_cv_c_stack_direction
6667 _ACEOF
6668
6669
6670 fi
6671
6672
6673 GNULIB__EXIT=0;
6674 GNULIB_ATOLL=0;
6675 GNULIB_CALLOC_POSIX=0;
6676 GNULIB_CANONICALIZE_FILE_NAME=0;
6677 GNULIB_GETLOADAVG=0;
6678 GNULIB_GETSUBOPT=0;
6679 GNULIB_GRANTPT=0;
6680 GNULIB_MALLOC_POSIX=0;
6681 GNULIB_MBTOWC=0;
6682 GNULIB_MKDTEMP=0;
6683 GNULIB_MKOSTEMP=0;
6684 GNULIB_MKOSTEMPS=0;
6685 GNULIB_MKSTEMP=0;
6686 GNULIB_MKSTEMPS=0;
6687 GNULIB_POSIX_OPENPT=0;
6688 GNULIB_PTSNAME=0;
6689 GNULIB_PTSNAME_R=0;
6690 GNULIB_PUTENV=0;
6691 GNULIB_QSORT_R=0;
6692 GNULIB_RANDOM=0;
6693 GNULIB_RANDOM_R=0;
6694 GNULIB_REALLOC_POSIX=0;
6695 GNULIB_REALPATH=0;
6696 GNULIB_RPMATCH=0;
6697 GNULIB_SECURE_GETENV=0;
6698 GNULIB_SETENV=0;
6699 GNULIB_STRTOD=0;
6700 GNULIB_STRTOLL=0;
6701 GNULIB_STRTOULL=0;
6702 GNULIB_SYSTEM_POSIX=0;
6703 GNULIB_UNLOCKPT=0;
6704 GNULIB_UNSETENV=0;
6705 GNULIB_WCTOMB=0;
6706 HAVE__EXIT=1;
6707 HAVE_ATOLL=1;
6708 HAVE_CANONICALIZE_FILE_NAME=1;
6709 HAVE_DECL_GETLOADAVG=1;
6710 HAVE_GETSUBOPT=1;
6711 HAVE_GRANTPT=1;
6712 HAVE_MKDTEMP=1;
6713 HAVE_MKOSTEMP=1;
6714 HAVE_MKOSTEMPS=1;
6715 HAVE_MKSTEMP=1;
6716 HAVE_MKSTEMPS=1;
6717 HAVE_POSIX_OPENPT=1;
6718 HAVE_PTSNAME=1;
6719 HAVE_PTSNAME_R=1;
6720 HAVE_QSORT_R=1;
6721 HAVE_RANDOM=1;
6722 HAVE_RANDOM_H=1;
6723 HAVE_RANDOM_R=1;
6724 HAVE_REALPATH=1;
6725 HAVE_RPMATCH=1;
6726 HAVE_SECURE_GETENV=1;
6727 HAVE_SETENV=1;
6728 HAVE_DECL_SETENV=1;
6729 HAVE_STRTOD=1;
6730 HAVE_STRTOLL=1;
6731 HAVE_STRTOULL=1;
6732 HAVE_STRUCT_RANDOM_DATA=1;
6733 HAVE_SYS_LOADAVG_H=0;
6734 HAVE_UNLOCKPT=1;
6735 HAVE_DECL_UNSETENV=1;
6736 REPLACE_CALLOC=0;
6737 REPLACE_CANONICALIZE_FILE_NAME=0;
6738 REPLACE_MALLOC=0;
6739 REPLACE_MBTOWC=0;
6740 REPLACE_MKSTEMP=0;
6741 REPLACE_PTSNAME=0;
6742 REPLACE_PTSNAME_R=0;
6743 REPLACE_PUTENV=0;
6744 REPLACE_QSORT_R=0;
6745 REPLACE_RANDOM_R=0;
6746 REPLACE_REALLOC=0;
6747 REPLACE_REALPATH=0;
6748 REPLACE_SETENV=0;
6749 REPLACE_STRTOD=0;
6750 REPLACE_UNSETENV=0;
6751 REPLACE_WCTOMB=0;
6752
6753
6754
6755
6756
6757 for ac_func in $gl_func_list
6758 do :
6759 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6760 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6761 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6762 cat >>confdefs.h <<_ACEOF
6763 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6764 _ACEOF
6765
6766 fi
6767 done
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
6786 $as_echo_n "checking whether // is distinct from /... " >&6; }
6787 if ${gl_cv_double_slash_root+:} false; then :
6788 $as_echo_n "(cached) " >&6
6789 else
6790 if test x"$cross_compiling" = xyes ; then
6791 # When cross-compiling, there is no way to tell whether // is special
6792 # short of a list of hosts. However, the only known hosts to date
6793 # that have a distinct // are Apollo DomainOS (too old to port to),
6794 # Cygwin, and z/OS. If anyone knows of another system for which // has
6795 # special semantics and is distinct from /, please report it to
6796 # <bug-gnulib@gnu.org>.
6797 case $host in
6798 *-cygwin | i370-ibm-openedition)
6799 gl_cv_double_slash_root=yes ;;
6800 *)
6801 # Be optimistic and assume that / and // are the same when we
6802 # don't know.
6803 gl_cv_double_slash_root='unknown, assuming no' ;;
6804 esac
6805 else
6806 set x `ls -di / // 2>/dev/null`
6807 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
6808 gl_cv_double_slash_root=no
6809 else
6810 gl_cv_double_slash_root=yes
6811 fi
6812 fi
6813 fi
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
6815 $as_echo "$gl_cv_double_slash_root" >&6; }
6816 if test "$gl_cv_double_slash_root" = yes; then
6817
6818 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
6819
6820 fi
6821
6822
6823
6824
6825
6826
6827
6828
6829 :
6830
6831
6832
6833
6834
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether realpath works" >&5
6836 $as_echo_n "checking whether realpath works... " >&6; }
6837 if ${gl_cv_func_realpath_works+:} false; then :
6838 $as_echo_n "(cached) " >&6
6839 else
6840
6841 touch conftest.a
6842 mkdir conftest.d
6843 if test "$cross_compiling" = yes; then :
6844 case "$host_os" in
6845 # Guess yes on glibc systems.
6846 *-gnu* | gnu*) gl_cv_func_realpath_works="guessing yes" ;;
6847 # If we don't know, assume the worst.
6848 *) gl_cv_func_realpath_works="guessing no" ;;
6849 esac
6850
6851 else
6852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6853 /* end confdefs.h. */
6854
6855
6856
6857 #include <stdlib.h>
6858 #if defined __MACH__ && defined __APPLE__
6859 /* Avoid a crash on Mac OS X. */
6860 #include <mach/mach.h>
6861 #include <mach/mach_error.h>
6862 #include <mach/thread_status.h>
6863 #include <mach/exception.h>
6864 #include <mach/task.h>
6865 #include <pthread.h>
6866 /* The exception port on which our thread listens. */
6867 static mach_port_t our_exception_port;
6868 /* The main function of the thread listening for exceptions of type
6869 EXC_BAD_ACCESS. */
6870 static void *
6871 mach_exception_thread (void *arg)
6872 {
6873 /* Buffer for a message to be received. */
6874 struct {
6875 mach_msg_header_t head;
6876 mach_msg_body_t msgh_body;
6877 char data[1024];
6878 } msg;
6879 mach_msg_return_t retval;
6880 /* Wait for a message on the exception port. */
6881 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
6882 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
6883 if (retval != MACH_MSG_SUCCESS)
6884 abort ();
6885 exit (1);
6886 }
6887 static void
6888 nocrash_init (void)
6889 {
6890 mach_port_t self = mach_task_self ();
6891 /* Allocate a port on which the thread shall listen for exceptions. */
6892 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
6893 == KERN_SUCCESS) {
6894 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
6895 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
6896 MACH_MSG_TYPE_MAKE_SEND)
6897 == KERN_SUCCESS) {
6898 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
6899 for us. */
6900 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
6901 /* Create the thread listening on the exception port. */
6902 pthread_attr_t attr;
6903 pthread_t thread;
6904 if (pthread_attr_init (&attr) == 0
6905 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
6906 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
6907 pthread_attr_destroy (&attr);
6908 /* Replace the exception port info for these exceptions with our own.
6909 Note that we replace the exception port for the entire task, not only
6910 for a particular thread. This has the effect that when our exception
6911 port gets the message, the thread specific exception port has already
6912 been asked, and we don't need to bother about it.
6913 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
6914 task_set_exception_ports (self, mask, our_exception_port,
6915 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
6916 }
6917 }
6918 }
6919 }
6920 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
6921 /* Avoid a crash on native Windows. */
6922 #define WIN32_LEAN_AND_MEAN
6923 #include <windows.h>
6924 #include <winerror.h>
6925 static LONG WINAPI
6926 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
6927 {
6928 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
6929 {
6930 case EXCEPTION_ACCESS_VIOLATION:
6931 case EXCEPTION_IN_PAGE_ERROR:
6932 case EXCEPTION_STACK_OVERFLOW:
6933 case EXCEPTION_GUARD_PAGE:
6934 case EXCEPTION_PRIV_INSTRUCTION:
6935 case EXCEPTION_ILLEGAL_INSTRUCTION:
6936 case EXCEPTION_DATATYPE_MISALIGNMENT:
6937 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
6938 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
6939 exit (1);
6940 }
6941 return EXCEPTION_CONTINUE_SEARCH;
6942 }
6943 static void
6944 nocrash_init (void)
6945 {
6946 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
6947 }
6948 #else
6949 /* Avoid a crash on POSIX systems. */
6950 #include <signal.h>
6951 #include <unistd.h>
6952 /* A POSIX signal handler. */
6953 static void
6954 exception_handler (int sig)
6955 {
6956 _exit (1);
6957 }
6958 static void
6959 nocrash_init (void)
6960 {
6961 #ifdef SIGSEGV
6962 signal (SIGSEGV, exception_handler);
6963 #endif
6964 #ifdef SIGBUS
6965 signal (SIGBUS, exception_handler);
6966 #endif
6967 }
6968 #endif
6969
6970 #include <stdlib.h>
6971 #include <string.h>
6972
6973 int
6974 main ()
6975 {
6976
6977 int result = 0;
6978 {
6979 char *name = realpath ("conftest.a", NULL);
6980 if (!(name && *name == '/'))
6981 result |= 1;
6982 free (name);
6983 }
6984 {
6985 char *name = realpath ("conftest.b/../conftest.a", NULL);
6986 if (name != NULL)
6987 result |= 2;
6988 free (name);
6989 }
6990 {
6991 char *name = realpath ("conftest.a/", NULL);
6992 if (name != NULL)
6993 result |= 4;
6994 free (name);
6995 }
6996 {
6997 char *name1 = realpath (".", NULL);
6998 char *name2 = realpath ("conftest.d//./..", NULL);
6999 if (! name1 || ! name2 || strcmp (name1, name2))
7000 result |= 8;
7001 free (name1);
7002 free (name2);
7003 }
7004 return result;
7005
7006 ;
7007 return 0;
7008 }
7009
7010 _ACEOF
7011 if ac_fn_c_try_run "$LINENO"; then :
7012 gl_cv_func_realpath_works=yes
7013 else
7014 gl_cv_func_realpath_works=no
7015 fi
7016 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7017 conftest.$ac_objext conftest.beam conftest.$ac_ext
7018 fi
7019
7020 rm -rf conftest.a conftest.d
7021
7022 fi
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_realpath_works" >&5
7024 $as_echo "$gl_cv_func_realpath_works" >&6; }
7025 case "$gl_cv_func_realpath_works" in
7026 *yes)
7027
7028 $as_echo "#define FUNC_REALPATH_WORKS 1" >>confdefs.h
7029
7030 ;;
7031 esac
7032
7033
7034
7035
7036
7037 for ac_header in $gl_header_list
7038 do :
7039 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7040 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7041 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7042 cat >>confdefs.h <<_ACEOF
7043 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7044 _ACEOF
7045
7046 fi
7047
7048 done
7049
7050
7051
7052
7053
7054
7055
7056
7057 :
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072 :
7073
7074
7075
7076
7077
7078
7079
7080 GNULIB_CHDIR=0;
7081 GNULIB_CHOWN=0;
7082 GNULIB_CLOSE=0;
7083 GNULIB_DUP=0;
7084 GNULIB_DUP2=0;
7085 GNULIB_DUP3=0;
7086 GNULIB_ENVIRON=0;
7087 GNULIB_EUIDACCESS=0;
7088 GNULIB_FACCESSAT=0;
7089 GNULIB_FCHDIR=0;
7090 GNULIB_FCHOWNAT=0;
7091 GNULIB_FDATASYNC=0;
7092 GNULIB_FSYNC=0;
7093 GNULIB_FTRUNCATE=0;
7094 GNULIB_GETCWD=0;
7095 GNULIB_GETDOMAINNAME=0;
7096 GNULIB_GETDTABLESIZE=0;
7097 GNULIB_GETGROUPS=0;
7098 GNULIB_GETHOSTNAME=0;
7099 GNULIB_GETLOGIN=0;
7100 GNULIB_GETLOGIN_R=0;
7101 GNULIB_GETPAGESIZE=0;
7102 GNULIB_GETUSERSHELL=0;
7103 GNULIB_GROUP_MEMBER=0;
7104 GNULIB_ISATTY=0;
7105 GNULIB_LCHOWN=0;
7106 GNULIB_LINK=0;
7107 GNULIB_LINKAT=0;
7108 GNULIB_LSEEK=0;
7109 GNULIB_PIPE=0;
7110 GNULIB_PIPE2=0;
7111 GNULIB_PREAD=0;
7112 GNULIB_PWRITE=0;
7113 GNULIB_READ=0;
7114 GNULIB_READLINK=0;
7115 GNULIB_READLINKAT=0;
7116 GNULIB_RMDIR=0;
7117 GNULIB_SETHOSTNAME=0;
7118 GNULIB_SLEEP=0;
7119 GNULIB_SYMLINK=0;
7120 GNULIB_SYMLINKAT=0;
7121 GNULIB_TTYNAME_R=0;
7122 GNULIB_UNISTD_H_NONBLOCKING=0;
7123 GNULIB_UNISTD_H_SIGPIPE=0;
7124 GNULIB_UNLINK=0;
7125 GNULIB_UNLINKAT=0;
7126 GNULIB_USLEEP=0;
7127 GNULIB_WRITE=0;
7128 HAVE_CHOWN=1;
7129 HAVE_DUP2=1;
7130 HAVE_DUP3=1;
7131 HAVE_EUIDACCESS=1;
7132 HAVE_FACCESSAT=1;
7133 HAVE_FCHDIR=1;
7134 HAVE_FCHOWNAT=1;
7135 HAVE_FDATASYNC=1;
7136 HAVE_FSYNC=1;
7137 HAVE_FTRUNCATE=1;
7138 HAVE_GETDTABLESIZE=1;
7139 HAVE_GETGROUPS=1;
7140 HAVE_GETHOSTNAME=1;
7141 HAVE_GETLOGIN=1;
7142 HAVE_GETPAGESIZE=1;
7143 HAVE_GROUP_MEMBER=1;
7144 HAVE_LCHOWN=1;
7145 HAVE_LINK=1;
7146 HAVE_LINKAT=1;
7147 HAVE_PIPE=1;
7148 HAVE_PIPE2=1;
7149 HAVE_PREAD=1;
7150 HAVE_PWRITE=1;
7151 HAVE_READLINK=1;
7152 HAVE_READLINKAT=1;
7153 HAVE_SETHOSTNAME=1;
7154 HAVE_SLEEP=1;
7155 HAVE_SYMLINK=1;
7156 HAVE_SYMLINKAT=1;
7157 HAVE_UNLINKAT=1;
7158 HAVE_USLEEP=1;
7159 HAVE_DECL_ENVIRON=1;
7160 HAVE_DECL_FCHDIR=1;
7161 HAVE_DECL_FDATASYNC=1;
7162 HAVE_DECL_GETDOMAINNAME=1;
7163 HAVE_DECL_GETLOGIN_R=1;
7164 HAVE_DECL_GETPAGESIZE=1;
7165 HAVE_DECL_GETUSERSHELL=1;
7166 HAVE_DECL_SETHOSTNAME=1;
7167 HAVE_DECL_TTYNAME_R=1;
7168 HAVE_OS_H=0;
7169 HAVE_SYS_PARAM_H=0;
7170 REPLACE_CHOWN=0;
7171 REPLACE_CLOSE=0;
7172 REPLACE_DUP=0;
7173 REPLACE_DUP2=0;
7174 REPLACE_FCHOWNAT=0;
7175 REPLACE_FTRUNCATE=0;
7176 REPLACE_GETCWD=0;
7177 REPLACE_GETDOMAINNAME=0;
7178 REPLACE_GETDTABLESIZE=0;
7179 REPLACE_GETLOGIN_R=0;
7180 REPLACE_GETGROUPS=0;
7181 REPLACE_GETPAGESIZE=0;
7182 REPLACE_ISATTY=0;
7183 REPLACE_LCHOWN=0;
7184 REPLACE_LINK=0;
7185 REPLACE_LINKAT=0;
7186 REPLACE_LSEEK=0;
7187 REPLACE_PREAD=0;
7188 REPLACE_PWRITE=0;
7189 REPLACE_READ=0;
7190 REPLACE_READLINK=0;
7191 REPLACE_READLINKAT=0;
7192 REPLACE_RMDIR=0;
7193 REPLACE_SLEEP=0;
7194 REPLACE_SYMLINK=0;
7195 REPLACE_SYMLINKAT=0;
7196 REPLACE_TTYNAME_R=0;
7197 REPLACE_UNLINK=0;
7198 REPLACE_UNLINKAT=0;
7199 REPLACE_USLEEP=0;
7200 REPLACE_WRITE=0;
7201 UNISTD_H_HAVE_WINSOCK2_H=0;
7202 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212 :
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229 :
7230
7231
7232
7233
7234
7235 if test $ac_cv_func__set_invalid_parameter_handler = yes; then
7236 HAVE_MSVC_INVALID_PARAMETER_HANDLER=1
7237
7238 $as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
7239
7240 else
7241 HAVE_MSVC_INVALID_PARAMETER_HANDLER=0
7242 fi
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256 GNULIB_OPENDIR=0;
7257 GNULIB_READDIR=0;
7258 GNULIB_REWINDDIR=0;
7259 GNULIB_CLOSEDIR=0;
7260 GNULIB_DIRFD=0;
7261 GNULIB_FDOPENDIR=0;
7262 GNULIB_SCANDIR=0;
7263 GNULIB_ALPHASORT=0;
7264 HAVE_OPENDIR=1;
7265 HAVE_READDIR=1;
7266 HAVE_REWINDDIR=1;
7267 HAVE_CLOSEDIR=1;
7268 HAVE_DECL_DIRFD=1;
7269 HAVE_DECL_FDOPENDIR=1;
7270 HAVE_FDOPENDIR=1;
7271 HAVE_SCANDIR=1;
7272 HAVE_ALPHASORT=1;
7273 REPLACE_OPENDIR=0;
7274 REPLACE_CLOSEDIR=0;
7275 REPLACE_DIRFD=0;
7276 REPLACE_FDOPENDIR=0;
7277
7278
7279
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
7281 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
7282 if ${gl_cv_have_include_next+:} false; then :
7283 $as_echo_n "(cached) " >&6
7284 else
7285 rm -rf conftestd1a conftestd1b conftestd2
7286 mkdir conftestd1a conftestd1b conftestd2
7287 cat <<EOF > conftestd1a/conftest.h
7288 #define DEFINED_IN_CONFTESTD1
7289 #include_next <conftest.h>
7290 #ifdef DEFINED_IN_CONFTESTD2
7291 int foo;
7292 #else
7293 #error "include_next doesn't work"
7294 #endif
7295 EOF
7296 cat <<EOF > conftestd1b/conftest.h
7297 #define DEFINED_IN_CONFTESTD1
7298 #include <stdio.h>
7299 #include_next <conftest.h>
7300 #ifdef DEFINED_IN_CONFTESTD2
7301 int foo;
7302 #else
7303 #error "include_next doesn't work"
7304 #endif
7305 EOF
7306 cat <<EOF > conftestd2/conftest.h
7307 #ifndef DEFINED_IN_CONFTESTD1
7308 #error "include_next test doesn't work"
7309 #endif
7310 #define DEFINED_IN_CONFTESTD2
7311 EOF
7312 gl_save_CPPFLAGS="$CPPFLAGS"
7313 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
7314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7315 /* end confdefs.h. */
7316 #include <conftest.h>
7317 _ACEOF
7318 if ac_fn_c_try_compile "$LINENO"; then :
7319 gl_cv_have_include_next=yes
7320 else
7321 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
7322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7323 /* end confdefs.h. */
7324 #include <conftest.h>
7325 _ACEOF
7326 if ac_fn_c_try_compile "$LINENO"; then :
7327 gl_cv_have_include_next=buggy
7328 else
7329 gl_cv_have_include_next=no
7330 fi
7331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7332
7333 fi
7334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7335 CPPFLAGS="$gl_save_CPPFLAGS"
7336 rm -rf conftestd1a conftestd1b conftestd2
7337
7338 fi
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
7340 $as_echo "$gl_cv_have_include_next" >&6; }
7341 PRAGMA_SYSTEM_HEADER=
7342 if test $gl_cv_have_include_next = yes; then
7343 INCLUDE_NEXT=include_next
7344 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
7345 if test -n "$GCC"; then
7346 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
7347 fi
7348 else
7349 if test $gl_cv_have_include_next = buggy; then
7350 INCLUDE_NEXT=include
7351 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
7352 else
7353 INCLUDE_NEXT=include
7354 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
7355 fi
7356 fi
7357
7358
7359
7360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
7361 $as_echo_n "checking whether system header files limit the line length... " >&6; }
7362 if ${gl_cv_pragma_columns+:} false; then :
7363 $as_echo_n "(cached) " >&6
7364 else
7365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7366 /* end confdefs.h. */
7367
7368 #ifdef __TANDEM
7369 choke me
7370 #endif
7371
7372 _ACEOF
7373 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7374 $EGREP "choke me" >/dev/null 2>&1; then :
7375 gl_cv_pragma_columns=yes
7376 else
7377 gl_cv_pragma_columns=no
7378 fi
7379 rm -f conftest*
7380
7381
7382 fi
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
7384 $as_echo "$gl_cv_pragma_columns" >&6; }
7385 if test $gl_cv_pragma_columns = yes; then
7386 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
7387 else
7388 PRAGMA_COLUMNS=
7389 fi
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402 :
7403
7404
7405
7406
7407
7408
7409
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
7411 $as_echo_n "checking if environ is properly declared... " >&6; }
7412 if ${gt_cv_var_environ_declaration+:} false; then :
7413 $as_echo_n "(cached) " >&6
7414 else
7415
7416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7417 /* end confdefs.h. */
7418 #if HAVE_UNISTD_H
7419 #include <unistd.h>
7420 #endif
7421 /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>. */
7422 #include <stdlib.h>
7423
7424 extern struct { int foo; } environ;
7425 int
7426 main ()
7427 {
7428 environ.foo = 1;
7429 ;
7430 return 0;
7431 }
7432 _ACEOF
7433 if ac_fn_c_try_compile "$LINENO"; then :
7434 gt_cv_var_environ_declaration=no
7435 else
7436 gt_cv_var_environ_declaration=yes
7437 fi
7438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7439 fi
7440
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
7442 $as_echo "$gt_cv_var_environ_declaration" >&6; }
7443 if test $gt_cv_var_environ_declaration = yes; then
7444
7445 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
7446
7447 fi
7448
7449
7450 if test $gt_cv_var_environ_declaration != yes; then
7451 HAVE_DECL_ENVIRON=0
7452 fi
7453
7454
7455
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
7457 $as_echo_n "checking for complete errno.h... " >&6; }
7458 if ${gl_cv_header_errno_h_complete+:} false; then :
7459 $as_echo_n "(cached) " >&6
7460 else
7461
7462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7463 /* end confdefs.h. */
7464
7465 #include <errno.h>
7466 #if !defined ETXTBSY
7467 booboo
7468 #endif
7469 #if !defined ENOMSG
7470 booboo
7471 #endif
7472 #if !defined EIDRM
7473 booboo
7474 #endif
7475 #if !defined ENOLINK
7476 booboo
7477 #endif
7478 #if !defined EPROTO
7479 booboo
7480 #endif
7481 #if !defined EMULTIHOP
7482 booboo
7483 #endif
7484 #if !defined EBADMSG
7485 booboo
7486 #endif
7487 #if !defined EOVERFLOW
7488 booboo
7489 #endif
7490 #if !defined ENOTSUP
7491 booboo
7492 #endif
7493 #if !defined ENETRESET
7494 booboo
7495 #endif
7496 #if !defined ECONNABORTED
7497 booboo
7498 #endif
7499 #if !defined ESTALE
7500 booboo
7501 #endif
7502 #if !defined EDQUOT
7503 booboo
7504 #endif
7505 #if !defined ECANCELED
7506 booboo
7507 #endif
7508 #if !defined EOWNERDEAD
7509 booboo
7510 #endif
7511 #if !defined ENOTRECOVERABLE
7512 booboo
7513 #endif
7514 #if !defined EILSEQ
7515 booboo
7516 #endif
7517
7518 _ACEOF
7519 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7520 $EGREP "booboo" >/dev/null 2>&1; then :
7521 gl_cv_header_errno_h_complete=no
7522 else
7523 gl_cv_header_errno_h_complete=yes
7524 fi
7525 rm -f conftest*
7526
7527
7528 fi
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
7530 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
7531 if test $gl_cv_header_errno_h_complete = yes; then
7532 ERRNO_H=''
7533 else
7534
7535
7536
7537
7538
7539
7540
7541
7542 if test $gl_cv_have_include_next = yes; then
7543 gl_cv_next_errno_h='<'errno.h'>'
7544 else
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
7546 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
7547 if ${gl_cv_next_errno_h+:} false; then :
7548 $as_echo_n "(cached) " >&6
7549 else
7550
7551
7552
7553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7554 /* end confdefs.h. */
7555 #include <errno.h>
7556 _ACEOF
7557 case "$host_os" in
7558 aix*) gl_absname_cpp="$ac_cpp -C" ;;
7559 *) gl_absname_cpp="$ac_cpp" ;;
7560 esac
7561
7562 case "$host_os" in
7563 mingw*)
7564 gl_dirsep_regex='[/\\]'
7565 ;;
7566 *)
7567 gl_dirsep_regex='\/'
7568 ;;
7569 esac
7570 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
7571 gl_header_literal_regex=`echo 'errno.h' \
7572 | sed -e "$gl_make_literal_regex_sed"`
7573 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
7574 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
7575 s|^/[^/]|//&|
7576 p
7577 q
7578 }'
7579
7580 gl_cv_absolute_errno_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7581 sed -n "$gl_absolute_header_sed"`
7582
7583 gl_header=$gl_cv_absolute_errno_h
7584 gl_cv_next_errno_h='"'$gl_header'"'
7585
7586
7587 fi
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
7589 $as_echo "$gl_cv_next_errno_h" >&6; }
7590 fi
7591 NEXT_ERRNO_H=$gl_cv_next_errno_h
7592
7593 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
7594 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7595 gl_next_as_first_directive='<'errno.h'>'
7596 else
7597 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7598 gl_next_as_first_directive=$gl_cv_next_errno_h
7599 fi
7600 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
7601
7602
7603
7604
7605 ERRNO_H='errno.h'
7606 fi
7607
7608 if test -n "$ERRNO_H"; then
7609 GL_GENERATE_ERRNO_H_TRUE=
7610 GL_GENERATE_ERRNO_H_FALSE='#'
7611 else
7612 GL_GENERATE_ERRNO_H_TRUE='#'
7613 GL_GENERATE_ERRNO_H_FALSE=
7614 fi
7615
7616
7617 if test -n "$ERRNO_H"; then
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
7619 $as_echo_n "checking for EMULTIHOP value... " >&6; }
7620 if ${gl_cv_header_errno_h_EMULTIHOP+:} false; then :
7621 $as_echo_n "(cached) " >&6
7622 else
7623
7624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7625 /* end confdefs.h. */
7626
7627 #include <errno.h>
7628 #ifdef EMULTIHOP
7629 yes
7630 #endif
7631
7632 _ACEOF
7633 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7634 $EGREP "yes" >/dev/null 2>&1; then :
7635 gl_cv_header_errno_h_EMULTIHOP=yes
7636 else
7637 gl_cv_header_errno_h_EMULTIHOP=no
7638 fi
7639 rm -f conftest*
7640
7641 if test $gl_cv_header_errno_h_EMULTIHOP = no; then
7642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7643 /* end confdefs.h. */
7644
7645 #define _XOPEN_SOURCE_EXTENDED 1
7646 #include <errno.h>
7647 #ifdef EMULTIHOP
7648 yes
7649 #endif
7650
7651 _ACEOF
7652 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7653 $EGREP "yes" >/dev/null 2>&1; then :
7654 gl_cv_header_errno_h_EMULTIHOP=hidden
7655 fi
7656 rm -f conftest*
7657
7658 if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
7659 if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
7660 #define _XOPEN_SOURCE_EXTENDED 1
7661 #include <errno.h>
7662 /* The following two lines are a workaround against an autoconf-2.52 bug. */
7663 #include <stdio.h>
7664 #include <stdlib.h>
7665 "; then :
7666
7667 fi
7668
7669 fi
7670 fi
7671
7672 fi
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
7674 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
7675 case $gl_cv_header_errno_h_EMULTIHOP in
7676 yes | no)
7677 EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
7678 ;;
7679 *)
7680 EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
7681 ;;
7682 esac
7683
7684
7685 fi
7686
7687
7688 if test -n "$ERRNO_H"; then
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
7690 $as_echo_n "checking for ENOLINK value... " >&6; }
7691 if ${gl_cv_header_errno_h_ENOLINK+:} false; then :
7692 $as_echo_n "(cached) " >&6
7693 else
7694
7695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7696 /* end confdefs.h. */
7697
7698 #include <errno.h>
7699 #ifdef ENOLINK
7700 yes
7701 #endif
7702
7703 _ACEOF
7704 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7705 $EGREP "yes" >/dev/null 2>&1; then :
7706 gl_cv_header_errno_h_ENOLINK=yes
7707 else
7708 gl_cv_header_errno_h_ENOLINK=no
7709 fi
7710 rm -f conftest*
7711
7712 if test $gl_cv_header_errno_h_ENOLINK = no; then
7713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7714 /* end confdefs.h. */
7715
7716 #define _XOPEN_SOURCE_EXTENDED 1
7717 #include <errno.h>
7718 #ifdef ENOLINK
7719 yes
7720 #endif
7721
7722 _ACEOF
7723 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7724 $EGREP "yes" >/dev/null 2>&1; then :
7725 gl_cv_header_errno_h_ENOLINK=hidden
7726 fi
7727 rm -f conftest*
7728
7729 if test $gl_cv_header_errno_h_ENOLINK = hidden; then
7730 if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
7731 #define _XOPEN_SOURCE_EXTENDED 1
7732 #include <errno.h>
7733 /* The following two lines are a workaround against an autoconf-2.52 bug. */
7734 #include <stdio.h>
7735 #include <stdlib.h>
7736 "; then :
7737
7738 fi
7739
7740 fi
7741 fi
7742
7743 fi
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
7745 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
7746 case $gl_cv_header_errno_h_ENOLINK in
7747 yes | no)
7748 ENOLINK_HIDDEN=0; ENOLINK_VALUE=
7749 ;;
7750 *)
7751 ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
7752 ;;
7753 esac
7754
7755
7756 fi
7757
7758
7759 if test -n "$ERRNO_H"; then
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
7761 $as_echo_n "checking for EOVERFLOW value... " >&6; }
7762 if ${gl_cv_header_errno_h_EOVERFLOW+:} false; then :
7763 $as_echo_n "(cached) " >&6
7764 else
7765
7766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7767 /* end confdefs.h. */
7768
7769 #include <errno.h>
7770 #ifdef EOVERFLOW
7771 yes
7772 #endif
7773
7774 _ACEOF
7775 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7776 $EGREP "yes" >/dev/null 2>&1; then :
7777 gl_cv_header_errno_h_EOVERFLOW=yes
7778 else
7779 gl_cv_header_errno_h_EOVERFLOW=no
7780 fi
7781 rm -f conftest*
7782
7783 if test $gl_cv_header_errno_h_EOVERFLOW = no; then
7784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7785 /* end confdefs.h. */
7786
7787 #define _XOPEN_SOURCE_EXTENDED 1
7788 #include <errno.h>
7789 #ifdef EOVERFLOW
7790 yes
7791 #endif
7792
7793 _ACEOF
7794 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7795 $EGREP "yes" >/dev/null 2>&1; then :
7796 gl_cv_header_errno_h_EOVERFLOW=hidden
7797 fi
7798 rm -f conftest*
7799
7800 if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
7801 if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
7802 #define _XOPEN_SOURCE_EXTENDED 1
7803 #include <errno.h>
7804 /* The following two lines are a workaround against an autoconf-2.52 bug. */
7805 #include <stdio.h>
7806 #include <stdlib.h>
7807 "; then :
7808
7809 fi
7810
7811 fi
7812 fi
7813
7814 fi
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
7816 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
7817 case $gl_cv_header_errno_h_EOVERFLOW in
7818 yes | no)
7819 EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
7820 ;;
7821 *)
7822 EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
7823 ;;
7824 esac
7825
7826
7827 fi
7828
7829
7830 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
7831 if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
7832 ac_have_decl=1
7833 else
7834 ac_have_decl=0
7835 fi
7836
7837 cat >>confdefs.h <<_ACEOF
7838 #define HAVE_DECL_STRERROR_R $ac_have_decl
7839 _ACEOF
7840
7841 for ac_func in strerror_r
7842 do :
7843 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
7844 if test "x$ac_cv_func_strerror_r" = xyes; then :
7845 cat >>confdefs.h <<_ACEOF
7846 #define HAVE_STRERROR_R 1
7847 _ACEOF
7848
7849 fi
7850 done
7851
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
7853 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
7854 if ${ac_cv_func_strerror_r_char_p+:} false; then :
7855 $as_echo_n "(cached) " >&6
7856 else
7857
7858 ac_cv_func_strerror_r_char_p=no
7859 if test $ac_cv_have_decl_strerror_r = yes; then
7860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7861 /* end confdefs.h. */
7862 $ac_includes_default
7863 int
7864 main ()
7865 {
7866
7867 char buf[100];
7868 char x = *strerror_r (0, buf, sizeof buf);
7869 char *p = strerror_r (0, buf, sizeof buf);
7870 return !p || x;
7871
7872 ;
7873 return 0;
7874 }
7875 _ACEOF
7876 if ac_fn_c_try_compile "$LINENO"; then :
7877 ac_cv_func_strerror_r_char_p=yes
7878 fi
7879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7880 else
7881 # strerror_r is not declared. Choose between
7882 # systems that have relatively inaccessible declarations for the
7883 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
7884 # former has a strerror_r that returns char*, while the latter
7885 # has a strerror_r that returns `int'.
7886 # This test should segfault on the DEC system.
7887 if test "$cross_compiling" = yes; then :
7888 :
7889 else
7890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7891 /* end confdefs.h. */
7892 $ac_includes_default
7893 extern char *strerror_r ();
7894 int
7895 main ()
7896 {
7897 char buf[100];
7898 char x = *strerror_r (0, buf, sizeof buf);
7899 return ! isalpha (x);
7900 ;
7901 return 0;
7902 }
7903 _ACEOF
7904 if ac_fn_c_try_run "$LINENO"; then :
7905 ac_cv_func_strerror_r_char_p=yes
7906 fi
7907 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7908 conftest.$ac_objext conftest.beam conftest.$ac_ext
7909 fi
7910
7911 fi
7912
7913 fi
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
7915 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
7916 if test $ac_cv_func_strerror_r_char_p = yes; then
7917
7918 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
7919
7920 fi
7921
7922
7923
7924
7925
7926 ac_fn_c_check_decl "$LINENO" "fchdir" "ac_cv_have_decl_fchdir" "$ac_includes_default"
7927 if test "x$ac_cv_have_decl_fchdir" = xyes; then :
7928 ac_have_decl=1
7929 else
7930 ac_have_decl=0
7931 fi
7932
7933 cat >>confdefs.h <<_ACEOF
7934 #define HAVE_DECL_FCHDIR $ac_have_decl
7935 _ACEOF
7936
7937
7938
7939 GNULIB_FCNTL=0;
7940 GNULIB_NONBLOCKING=0;
7941 GNULIB_OPEN=0;
7942 GNULIB_OPENAT=0;
7943 HAVE_FCNTL=1;
7944 HAVE_OPENAT=1;
7945 REPLACE_FCNTL=0;
7946 REPLACE_OPEN=0;
7947 REPLACE_OPENAT=0;
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963 :
7964
7965
7966
7967
7968
7969
7970 :
7971
7972
7973
7974
7975
7976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
7977 $as_echo_n "checking for working fcntl.h... " >&6; }
7978 if ${gl_cv_header_working_fcntl_h+:} false; then :
7979 $as_echo_n "(cached) " >&6
7980 else
7981 if test "$cross_compiling" = yes; then :
7982 gl_cv_header_working_fcntl_h=cross-compiling
7983 else
7984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7985 /* end confdefs.h. */
7986 #include <sys/types.h>
7987 #include <sys/stat.h>
7988 #if HAVE_UNISTD_H
7989 # include <unistd.h>
7990 #else /* on Windows with MSVC */
7991 # include <io.h>
7992 # include <stdlib.h>
7993 # defined sleep(n) _sleep ((n) * 1000)
7994 #endif
7995 #include <fcntl.h>
7996 #ifndef O_NOATIME
7997 #define O_NOATIME 0
7998 #endif
7999 #ifndef O_NOFOLLOW
8000 #define O_NOFOLLOW 0
8001 #endif
8002 static int const constants[] =
8003 {
8004 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
8005 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
8006 };
8007
8008 int
8009 main ()
8010 {
8011
8012 int result = !constants;
8013 #if HAVE_SYMLINK
8014 {
8015 static char const sym[] = "conftest.sym";
8016 if (symlink ("/dev/null", sym) != 0)
8017 result |= 2;
8018 else
8019 {
8020 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
8021 if (fd >= 0)
8022 {
8023 close (fd);
8024 result |= 4;
8025 }
8026 }
8027 if (unlink (sym) != 0 || symlink (".", sym) != 0)
8028 result |= 2;
8029 else
8030 {
8031 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
8032 if (fd >= 0)
8033 {
8034 close (fd);
8035 result |= 4;
8036 }
8037 }
8038 unlink (sym);
8039 }
8040 #endif
8041 {
8042 static char const file[] = "confdefs.h";
8043 int fd = open (file, O_RDONLY | O_NOATIME);
8044 if (fd < 0)
8045 result |= 8;
8046 else
8047 {
8048 struct stat st0;
8049 if (fstat (fd, &st0) != 0)
8050 result |= 16;
8051 else
8052 {
8053 char c;
8054 sleep (1);
8055 if (read (fd, &c, 1) != 1)
8056 result |= 24;
8057 else
8058 {
8059 if (close (fd) != 0)
8060 result |= 32;
8061 else
8062 {
8063 struct stat st1;
8064 if (stat (file, &st1) != 0)
8065 result |= 40;
8066 else
8067 if (st0.st_atime != st1.st_atime)
8068 result |= 64;
8069 }
8070 }
8071 }
8072 }
8073 }
8074 return result;
8075 ;
8076 return 0;
8077 }
8078 _ACEOF
8079 if ac_fn_c_try_run "$LINENO"; then :
8080 gl_cv_header_working_fcntl_h=yes
8081 else
8082 case $? in #(
8083 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
8084 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
8085 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
8086 *) gl_cv_header_working_fcntl_h='no';;
8087 esac
8088 fi
8089 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8090 conftest.$ac_objext conftest.beam conftest.$ac_ext
8091 fi
8092
8093 fi
8094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
8095 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
8096
8097 case $gl_cv_header_working_fcntl_h in #(
8098 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
8099 *) ac_val=1;;
8100 esac
8101
8102 cat >>confdefs.h <<_ACEOF
8103 #define HAVE_WORKING_O_NOATIME $ac_val
8104 _ACEOF
8105
8106
8107 case $gl_cv_header_working_fcntl_h in #(
8108 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
8109 *) ac_val=1;;
8110 esac
8111
8112 cat >>confdefs.h <<_ACEOF
8113 #define HAVE_WORKING_O_NOFOLLOW $ac_val
8114 _ACEOF
8115
8116
8117 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8118 if test "x$ac_cv_type_pid_t" = xyes; then :
8119
8120 else
8121
8122 cat >>confdefs.h <<_ACEOF
8123 #define pid_t int
8124 _ACEOF
8125
8126 fi
8127
8128 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
8129 if test "x$ac_cv_type_mode_t" = xyes; then :
8130
8131 else
8132
8133 cat >>confdefs.h <<_ACEOF
8134 #define mode_t int
8135 _ACEOF
8136
8137 fi
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
8152 $as_echo_n "checking for mbstate_t... " >&6; }
8153 if ${ac_cv_type_mbstate_t+:} false; then :
8154 $as_echo_n "(cached) " >&6
8155 else
8156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8157 /* end confdefs.h. */
8158 $ac_includes_default
8159 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
8160 <wchar.h>.
8161 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8162 included before <wchar.h>. */
8163 #include <stddef.h>
8164 #include <stdio.h>
8165 #include <time.h>
8166 #include <wchar.h>
8167 int
8168 main ()
8169 {
8170 mbstate_t x; return sizeof x;
8171 ;
8172 return 0;
8173 }
8174 _ACEOF
8175 if ac_fn_c_try_compile "$LINENO"; then :
8176 ac_cv_type_mbstate_t=yes
8177 else
8178 ac_cv_type_mbstate_t=no
8179 fi
8180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8181 fi
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
8183 $as_echo "$ac_cv_type_mbstate_t" >&6; }
8184 if test $ac_cv_type_mbstate_t = yes; then
8185
8186 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
8187
8188 else
8189
8190 $as_echo "#define mbstate_t int" >>confdefs.h
8191
8192 fi
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235 GNULIB_ACOSF=0;
8236 GNULIB_ACOSL=0;
8237 GNULIB_ASINF=0;
8238 GNULIB_ASINL=0;
8239 GNULIB_ATANF=0;
8240 GNULIB_ATANL=0;
8241 GNULIB_ATAN2F=0;
8242 GNULIB_CBRT=0;
8243 GNULIB_CBRTF=0;
8244 GNULIB_CBRTL=0;
8245 GNULIB_CEIL=0;
8246 GNULIB_CEILF=0;
8247 GNULIB_CEILL=0;
8248 GNULIB_COPYSIGN=0;
8249 GNULIB_COPYSIGNF=0;
8250 GNULIB_COPYSIGNL=0;
8251 GNULIB_COSF=0;
8252 GNULIB_COSL=0;
8253 GNULIB_COSHF=0;
8254 GNULIB_EXPF=0;
8255 GNULIB_EXPL=0;
8256 GNULIB_EXP2=0;
8257 GNULIB_EXP2F=0;
8258 GNULIB_EXP2L=0;
8259 GNULIB_EXPM1=0;
8260 GNULIB_EXPM1F=0;
8261 GNULIB_EXPM1L=0;
8262 GNULIB_FABSF=0;
8263 GNULIB_FABSL=0;
8264 GNULIB_FLOOR=0;
8265 GNULIB_FLOORF=0;
8266 GNULIB_FLOORL=0;
8267 GNULIB_FMA=0;
8268 GNULIB_FMAF=0;
8269 GNULIB_FMAL=0;
8270 GNULIB_FMOD=0;
8271 GNULIB_FMODF=0;
8272 GNULIB_FMODL=0;
8273 GNULIB_FREXPF=0;
8274 GNULIB_FREXP=0;
8275 GNULIB_FREXPL=0;
8276 GNULIB_HYPOT=0;
8277 GNULIB_HYPOTF=0;
8278 GNULIB_HYPOTL=0;
8279 GNULIB_ILOGB=0;
8280 GNULIB_ILOGBF=0;
8281 GNULIB_ILOGBL=0;
8282 GNULIB_ISFINITE=0;
8283 GNULIB_ISINF=0;
8284 GNULIB_ISNAN=0;
8285 GNULIB_ISNANF=0;
8286 GNULIB_ISNAND=0;
8287 GNULIB_ISNANL=0;
8288 GNULIB_LDEXPF=0;
8289 GNULIB_LDEXPL=0;
8290 GNULIB_LOG=0;
8291 GNULIB_LOGF=0;
8292 GNULIB_LOGL=0;
8293 GNULIB_LOG10=0;
8294 GNULIB_LOG10F=0;
8295 GNULIB_LOG10L=0;
8296 GNULIB_LOG1P=0;
8297 GNULIB_LOG1PF=0;
8298 GNULIB_LOG1PL=0;
8299 GNULIB_LOG2=0;
8300 GNULIB_LOG2F=0;
8301 GNULIB_LOG2L=0;
8302 GNULIB_LOGB=0;
8303 GNULIB_LOGBF=0;
8304 GNULIB_LOGBL=0;
8305 GNULIB_MODF=0;
8306 GNULIB_MODFF=0;
8307 GNULIB_MODFL=0;
8308 GNULIB_POWF=0;
8309 GNULIB_REMAINDER=0;
8310 GNULIB_REMAINDERF=0;
8311 GNULIB_REMAINDERL=0;
8312 GNULIB_RINT=0;
8313 GNULIB_RINTF=0;
8314 GNULIB_RINTL=0;
8315 GNULIB_ROUND=0;
8316 GNULIB_ROUNDF=0;
8317 GNULIB_ROUNDL=0;
8318 GNULIB_SIGNBIT=0;
8319 GNULIB_SINF=0;
8320 GNULIB_SINL=0;
8321 GNULIB_SINHF=0;
8322 GNULIB_SQRTF=0;
8323 GNULIB_SQRTL=0;
8324 GNULIB_TANF=0;
8325 GNULIB_TANL=0;
8326 GNULIB_TANHF=0;
8327 GNULIB_TRUNC=0;
8328 GNULIB_TRUNCF=0;
8329 GNULIB_TRUNCL=0;
8330 HAVE_ACOSF=1;
8331 HAVE_ACOSL=1;
8332 HAVE_ASINF=1;
8333 HAVE_ASINL=1;
8334 HAVE_ATANF=1;
8335 HAVE_ATANL=1;
8336 HAVE_ATAN2F=1;
8337 HAVE_CBRT=1;
8338 HAVE_CBRTF=1;
8339 HAVE_CBRTL=1;
8340 HAVE_COPYSIGN=1;
8341 HAVE_COPYSIGNL=1;
8342 HAVE_COSF=1;
8343 HAVE_COSL=1;
8344 HAVE_COSHF=1;
8345 HAVE_EXPF=1;
8346 HAVE_EXPL=1;
8347 HAVE_EXPM1=1;
8348 HAVE_EXPM1F=1;
8349 HAVE_FABSF=1;
8350 HAVE_FABSL=1;
8351 HAVE_FMA=1;
8352 HAVE_FMAF=1;
8353 HAVE_FMAL=1;
8354 HAVE_FMODF=1;
8355 HAVE_FMODL=1;
8356 HAVE_FREXPF=1;
8357 HAVE_HYPOTF=1;
8358 HAVE_HYPOTL=1;
8359 HAVE_ILOGB=1;
8360 HAVE_ILOGBF=1;
8361 HAVE_ILOGBL=1;
8362 HAVE_ISNANF=1;
8363 HAVE_ISNAND=1;
8364 HAVE_ISNANL=1;
8365 HAVE_LDEXPF=1;
8366 HAVE_LOGF=1;
8367 HAVE_LOGL=1;
8368 HAVE_LOG10F=1;
8369 HAVE_LOG10L=1;
8370 HAVE_LOG1P=1;
8371 HAVE_LOG1PF=1;
8372 HAVE_LOG1PL=1;
8373 HAVE_LOGBF=1;
8374 HAVE_LOGBL=1;
8375 HAVE_MODFF=1;
8376 HAVE_MODFL=1;
8377 HAVE_POWF=1;
8378 HAVE_REMAINDER=1;
8379 HAVE_REMAINDERF=1;
8380 HAVE_RINT=1;
8381 HAVE_RINTL=1;
8382 HAVE_SINF=1;
8383 HAVE_SINL=1;
8384 HAVE_SINHF=1;
8385 HAVE_SQRTF=1;
8386 HAVE_SQRTL=1;
8387 HAVE_TANF=1;
8388 HAVE_TANL=1;
8389 HAVE_TANHF=1;
8390 HAVE_DECL_ACOSL=1;
8391 HAVE_DECL_ASINL=1;
8392 HAVE_DECL_ATANL=1;
8393 HAVE_DECL_CBRTF=1;
8394 HAVE_DECL_CBRTL=1;
8395 HAVE_DECL_CEILF=1;
8396 HAVE_DECL_CEILL=1;
8397 HAVE_DECL_COPYSIGNF=1;
8398 HAVE_DECL_COSL=1;
8399 HAVE_DECL_EXPL=1;
8400 HAVE_DECL_EXP2=1;
8401 HAVE_DECL_EXP2F=1;
8402 HAVE_DECL_EXP2L=1;
8403 HAVE_DECL_EXPM1L=1;
8404 HAVE_DECL_FLOORF=1;
8405 HAVE_DECL_FLOORL=1;
8406 HAVE_DECL_FREXPL=1;
8407 HAVE_DECL_LDEXPL=1;
8408 HAVE_DECL_LOGL=1;
8409 HAVE_DECL_LOG10L=1;
8410 HAVE_DECL_LOG2=1;
8411 HAVE_DECL_LOG2F=1;
8412 HAVE_DECL_LOG2L=1;
8413 HAVE_DECL_LOGB=1;
8414 HAVE_DECL_REMAINDER=1;
8415 HAVE_DECL_REMAINDERL=1;
8416 HAVE_DECL_RINTF=1;
8417 HAVE_DECL_ROUND=1;
8418 HAVE_DECL_ROUNDF=1;
8419 HAVE_DECL_ROUNDL=1;
8420 HAVE_DECL_SINL=1;
8421 HAVE_DECL_SQRTL=1;
8422 HAVE_DECL_TANL=1;
8423 HAVE_DECL_TRUNC=1;
8424 HAVE_DECL_TRUNCF=1;
8425 HAVE_DECL_TRUNCL=1;
8426 REPLACE_CBRTF=0;
8427 REPLACE_CBRTL=0;
8428 REPLACE_CEIL=0;
8429 REPLACE_CEILF=0;
8430 REPLACE_CEILL=0;
8431 REPLACE_EXPM1=0;
8432 REPLACE_EXPM1F=0;
8433 REPLACE_EXP2=0;
8434 REPLACE_EXP2L=0;
8435 REPLACE_FABSL=0;
8436 REPLACE_FLOOR=0;
8437 REPLACE_FLOORF=0;
8438 REPLACE_FLOORL=0;
8439 REPLACE_FMA=0;
8440 REPLACE_FMAF=0;
8441 REPLACE_FMAL=0;
8442 REPLACE_FMOD=0;
8443 REPLACE_FMODF=0;
8444 REPLACE_FMODL=0;
8445 REPLACE_FREXPF=0;
8446 REPLACE_FREXP=0;
8447 REPLACE_FREXPL=0;
8448 REPLACE_HUGE_VAL=0;
8449 REPLACE_HYPOT=0;
8450 REPLACE_HYPOTF=0;
8451 REPLACE_HYPOTL=0;
8452 REPLACE_ILOGB=0;
8453 REPLACE_ILOGBF=0;
8454 REPLACE_ISFINITE=0;
8455 REPLACE_ISINF=0;
8456 REPLACE_ISNAN=0;
8457 REPLACE_LDEXPL=0;
8458 REPLACE_LOG=0;
8459 REPLACE_LOGF=0;
8460 REPLACE_LOGL=0;
8461 REPLACE_LOG10=0;
8462 REPLACE_LOG10F=0;
8463 REPLACE_LOG10L=0;
8464 REPLACE_LOG1P=0;
8465 REPLACE_LOG1PF=0;
8466 REPLACE_LOG1PL=0;
8467 REPLACE_LOG2=0;
8468 REPLACE_LOG2F=0;
8469 REPLACE_LOG2L=0;
8470 REPLACE_LOGB=0;
8471 REPLACE_LOGBF=0;
8472 REPLACE_LOGBL=0;
8473 REPLACE_MODF=0;
8474 REPLACE_MODFF=0;
8475 REPLACE_MODFL=0;
8476 REPLACE_NAN=0;
8477 REPLACE_REMAINDER=0;
8478 REPLACE_REMAINDERF=0;
8479 REPLACE_REMAINDERL=0;
8480 REPLACE_ROUND=0;
8481 REPLACE_ROUNDF=0;
8482 REPLACE_ROUNDL=0;
8483 REPLACE_SIGNBIT=0;
8484 REPLACE_SIGNBIT_USING_GCC=0;
8485 REPLACE_SQRTL=0;
8486 REPLACE_TRUNC=0;
8487 REPLACE_TRUNCF=0;
8488 REPLACE_TRUNCL=0;
8489
8490
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used without linking with libm" >&5
8492 $as_echo_n "checking whether frexp() can be used without linking with libm... " >&6; }
8493 if ${gl_cv_func_frexp_no_libm+:} false; then :
8494 $as_echo_n "(cached) " >&6
8495 else
8496
8497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8498 /* end confdefs.h. */
8499 #include <math.h>
8500 double x;
8501 int
8502 main ()
8503 {
8504 int e; return frexp (x, &e) > 0;
8505 ;
8506 return 0;
8507 }
8508 _ACEOF
8509 if ac_fn_c_try_link "$LINENO"; then :
8510 gl_cv_func_frexp_no_libm=yes
8511 else
8512 gl_cv_func_frexp_no_libm=no
8513 fi
8514 rm -f core conftest.err conftest.$ac_objext \
8515 conftest$ac_exeext conftest.$ac_ext
8516
8517 fi
8518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_no_libm" >&5
8519 $as_echo "$gl_cv_func_frexp_no_libm" >&6; }
8520
8521
8522 ac_fn_c_check_decl "$LINENO" "alarm" "ac_cv_have_decl_alarm" "$ac_includes_default"
8523 if test "x$ac_cv_have_decl_alarm" = xyes; then :
8524 ac_have_decl=1
8525 else
8526 ac_have_decl=0
8527 fi
8528
8529 cat >>confdefs.h <<_ACEOF
8530 #define HAVE_DECL_ALARM $ac_have_decl
8531 _ACEOF
8532
8533
8534
8535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long double and double are the same" >&5
8536 $as_echo_n "checking whether long double and double are the same... " >&6; }
8537 if ${gl_cv_long_double_equals_double+:} false; then :
8538 $as_echo_n "(cached) " >&6
8539 else
8540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8541 /* end confdefs.h. */
8542 #include <float.h>
8543 int
8544 main ()
8545 {
8546 typedef int check[sizeof (long double) == sizeof (double)
8547 && LDBL_MANT_DIG == DBL_MANT_DIG
8548 && LDBL_MAX_EXP == DBL_MAX_EXP
8549 && LDBL_MIN_EXP == DBL_MIN_EXP
8550 ? 1 : -1];
8551
8552 ;
8553 return 0;
8554 }
8555 _ACEOF
8556 if ac_fn_c_try_compile "$LINENO"; then :
8557 gl_cv_long_double_equals_double=yes
8558 else
8559 gl_cv_long_double_equals_double=no
8560 fi
8561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8562
8563 fi
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_long_double_equals_double" >&5
8565 $as_echo "$gl_cv_long_double_equals_double" >&6; }
8566 if test $gl_cv_long_double_equals_double = yes; then
8567
8568 $as_echo "#define HAVE_SAME_LONG_DOUBLE_AS_DOUBLE 1" >>confdefs.h
8569
8570 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=1
8571 else
8572 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=0
8573 fi
8574
8575
8576
8577 GNULIB_FCHMODAT=0;
8578 GNULIB_FSTAT=0;
8579 GNULIB_FSTATAT=0;
8580 GNULIB_FUTIMENS=0;
8581 GNULIB_LCHMOD=0;
8582 GNULIB_LSTAT=0;
8583 GNULIB_MKDIRAT=0;
8584 GNULIB_MKFIFO=0;
8585 GNULIB_MKFIFOAT=0;
8586 GNULIB_MKNOD=0;
8587 GNULIB_MKNODAT=0;
8588 GNULIB_STAT=0;
8589 GNULIB_UTIMENSAT=0;
8590 HAVE_FCHMODAT=1;
8591 HAVE_FSTATAT=1;
8592 HAVE_FUTIMENS=1;
8593 HAVE_LCHMOD=1;
8594 HAVE_LSTAT=1;
8595 HAVE_MKDIRAT=1;
8596 HAVE_MKFIFO=1;
8597 HAVE_MKFIFOAT=1;
8598 HAVE_MKNOD=1;
8599 HAVE_MKNODAT=1;
8600 HAVE_UTIMENSAT=1;
8601 REPLACE_FSTAT=0;
8602 REPLACE_FSTATAT=0;
8603 REPLACE_FUTIMENS=0;
8604 REPLACE_LSTAT=0;
8605 REPLACE_MKDIR=0;
8606 REPLACE_MKFIFO=0;
8607 REPLACE_MKNOD=0;
8608 REPLACE_STAT=0;
8609 REPLACE_UTIMENSAT=0;
8610
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
8612 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
8613 if ${ac_cv_header_stat_broken+:} false; then :
8614 $as_echo_n "(cached) " >&6
8615 else
8616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8617 /* end confdefs.h. */
8618 #include <sys/types.h>
8619 #include <sys/stat.h>
8620
8621 #if defined S_ISBLK && defined S_IFDIR
8622 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
8623 #endif
8624
8625 #if defined S_ISBLK && defined S_IFCHR
8626 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
8627 #endif
8628
8629 #if defined S_ISLNK && defined S_IFREG
8630 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
8631 #endif
8632
8633 #if defined S_ISSOCK && defined S_IFREG
8634 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
8635 #endif
8636
8637 _ACEOF
8638 if ac_fn_c_try_compile "$LINENO"; then :
8639 ac_cv_header_stat_broken=no
8640 else
8641 ac_cv_header_stat_broken=yes
8642 fi
8643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8644 fi
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
8646 $as_echo "$ac_cv_header_stat_broken" >&6; }
8647 if test $ac_cv_header_stat_broken = yes; then
8648
8649 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
8650
8651 fi
8652
8653
8654
8655
8656
8657
8658
8659
8660 case "$host_os" in
8661 mingw*)
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
8663 $as_echo_n "checking for 64-bit off_t... " >&6; }
8664 if ${gl_cv_type_off_t_64+:} false; then :
8665 $as_echo_n "(cached) " >&6
8666 else
8667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8668 /* end confdefs.h. */
8669 #include <sys/types.h>
8670 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
8671
8672 int
8673 main ()
8674 {
8675
8676 ;
8677 return 0;
8678 }
8679 _ACEOF
8680 if ac_fn_c_try_compile "$LINENO"; then :
8681 gl_cv_type_off_t_64=yes
8682 else
8683 gl_cv_type_off_t_64=no
8684 fi
8685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8686
8687 fi
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
8689 $as_echo "$gl_cv_type_off_t_64" >&6; }
8690 if test $gl_cv_type_off_t_64 = no; then
8691 WINDOWS_64_BIT_OFF_T=1
8692 else
8693 WINDOWS_64_BIT_OFF_T=0
8694 fi
8695 WINDOWS_64_BIT_ST_SIZE=1
8696 ;;
8697 *)
8698 WINDOWS_64_BIT_OFF_T=0
8699 WINDOWS_64_BIT_ST_SIZE=0
8700 ;;
8701 esac
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714 :
8715
8716
8717
8718
8719
8720
8721
8722
8723 if test $gl_cv_have_include_next = yes; then
8724 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
8725 else
8726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
8727 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
8728 if ${gl_cv_next_sys_stat_h+:} false; then :
8729 $as_echo_n "(cached) " >&6
8730 else
8731
8732 if test $ac_cv_header_sys_stat_h = yes; then
8733
8734
8735
8736
8737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8738 /* end confdefs.h. */
8739 #include <sys/stat.h>
8740 _ACEOF
8741 case "$host_os" in
8742 aix*) gl_absname_cpp="$ac_cpp -C" ;;
8743 *) gl_absname_cpp="$ac_cpp" ;;
8744 esac
8745
8746 case "$host_os" in
8747 mingw*)
8748 gl_dirsep_regex='[/\\]'
8749 ;;
8750 *)
8751 gl_dirsep_regex='\/'
8752 ;;
8753 esac
8754 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
8755 gl_header_literal_regex=`echo 'sys/stat.h' \
8756 | sed -e "$gl_make_literal_regex_sed"`
8757 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
8758 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
8759 s|^/[^/]|//&|
8760 p
8761 q
8762 }'
8763
8764 gl_cv_absolute_sys_stat_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
8765 sed -n "$gl_absolute_header_sed"`
8766
8767 gl_header=$gl_cv_absolute_sys_stat_h
8768 gl_cv_next_sys_stat_h='"'$gl_header'"'
8769 else
8770 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
8771 fi
8772
8773
8774 fi
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
8776 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
8777 fi
8778 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
8779
8780 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
8781 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
8782 gl_next_as_first_directive='<'sys/stat.h'>'
8783 else
8784 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
8785 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
8786 fi
8787 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797
8798
8799 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
8800
8801 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
8802
8803 fi
8804
8805 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
8806 #include <sys/stat.h>
8807 "
8808 if test "x$ac_cv_type_nlink_t" = xyes; then :
8809
8810 else
8811
8812 $as_echo "#define nlink_t int" >>confdefs.h
8813
8814 fi
8815
8816
8817
8818 for gl_func in fchmodat fstat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat mknod mknodat stat utimensat; do
8819 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
8820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
8821 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
8822 if eval \${$as_gl_Symbol+:} false; then :
8823 $as_echo_n "(cached) " >&6
8824 else
8825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8826 /* end confdefs.h. */
8827 #include <sys/stat.h>
8828
8829 int
8830 main ()
8831 {
8832 #undef $gl_func
8833 (void) $gl_func;
8834 ;
8835 return 0;
8836 }
8837 _ACEOF
8838 if ac_fn_c_try_compile "$LINENO"; then :
8839 eval "$as_gl_Symbol=yes"
8840 else
8841 eval "$as_gl_Symbol=no"
8842 fi
8843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8844 fi
8845 eval ac_res=\$$as_gl_Symbol
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8847 $as_echo "$ac_res" >&6; }
8848 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
8849 cat >>confdefs.h <<_ACEOF
8850 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
8851 _ACEOF
8852
8853 eval ac_cv_have_decl_$gl_func=yes
8854 fi
8855 done
8856
8857
8858
8859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
8860 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
8861 if ${gl_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
8862 $as_echo_n "(cached) " >&6
8863 else
8864 rm -f conftest.sym conftest.file
8865 echo >conftest.file
8866 if test "$cross_compiling" = yes; then :
8867 case "$host_os" in
8868 *-gnu*)
8869 # Guess yes on glibc systems.
8870 gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
8871 *)
8872 # If we don't know, assume the worst.
8873 gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
8874 esac
8875
8876 else
8877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8878 /* end confdefs.h. */
8879 $ac_includes_default
8880 int
8881 main ()
8882 {
8883 struct stat sbuf;
8884 if (symlink ("conftest.file", "conftest.sym") != 0)
8885 return 1;
8886 /* Linux will dereference the symlink and fail, as required by
8887 POSIX. That is better in the sense that it means we will not
8888 have to compile and use the lstat wrapper. */
8889 return lstat ("conftest.sym/", &sbuf) == 0;
8890
8891 ;
8892 return 0;
8893 }
8894 _ACEOF
8895 if ac_fn_c_try_run "$LINENO"; then :
8896 gl_cv_func_lstat_dereferences_slashed_symlink=yes
8897 else
8898 gl_cv_func_lstat_dereferences_slashed_symlink=no
8899 fi
8900 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8901 conftest.$ac_objext conftest.beam conftest.$ac_ext
8902 fi
8903
8904 rm -f conftest.sym conftest.file
8905
8906 fi
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
8908 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
8909 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
8910 *yes)
8911
8912 cat >>confdefs.h <<_ACEOF
8913 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
8914 _ACEOF
8915
8916 ;;
8917 esac
8918
8919
8920
8921
8922
8923
8924
8925
8926 :
8927
8928
8929
8930
8931
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd (NULL, 0) allocates memory for result" >&5
8933 $as_echo_n "checking whether getcwd (NULL, 0) allocates memory for result... " >&6; }
8934 if ${gl_cv_func_getcwd_null+:} false; then :
8935 $as_echo_n "(cached) " >&6
8936 else
8937 if test "$cross_compiling" = yes; then :
8938 case "$host_os" in
8939 # Guess yes on glibc systems.
8940 *-gnu*) gl_cv_func_getcwd_null="guessing yes";;
8941 # Guess yes on Cygwin.
8942 cygwin*) gl_cv_func_getcwd_null="guessing yes";;
8943 # If we don't know, assume the worst.
8944 *) gl_cv_func_getcwd_null="guessing no";;
8945 esac
8946
8947 else
8948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8949 /* end confdefs.h. */
8950
8951 # include <stdlib.h>
8952 # if HAVE_UNISTD_H
8953 # include <unistd.h>
8954 # else /* on Windows with MSVC */
8955 # include <direct.h>
8956 # endif
8957 # ifndef getcwd
8958 char *getcwd ();
8959 # endif
8960
8961 int
8962 main ()
8963 {
8964
8965 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
8966 /* mingw cwd does not start with '/', but getcwd does allocate.
8967 However, mingw fails to honor non-zero size. */
8968 #else
8969 if (chdir ("/") != 0)
8970 return 1;
8971 else
8972 {
8973 char *f = getcwd (NULL, 0);
8974 if (! f)
8975 return 2;
8976 if (f[0] != '/')
8977 return 3;
8978 if (f[1] != '\0')
8979 return 4;
8980 free (f);
8981 return 0;
8982 }
8983 #endif
8984
8985 ;
8986 return 0;
8987 }
8988 _ACEOF
8989 if ac_fn_c_try_run "$LINENO"; then :
8990 gl_cv_func_getcwd_null=yes
8991 else
8992 gl_cv_func_getcwd_null=no
8993 fi
8994 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8995 conftest.$ac_objext conftest.beam conftest.$ac_ext
8996 fi
8997
8998 fi
8999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_null" >&5
9000 $as_echo "$gl_cv_func_getcwd_null" >&6; }
9001
9002
9003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getcwd with POSIX signature" >&5
9004 $as_echo_n "checking for getcwd with POSIX signature... " >&6; }
9005 if ${gl_cv_func_getcwd_posix_signature+:} false; then :
9006 $as_echo_n "(cached) " >&6
9007 else
9008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9009 /* end confdefs.h. */
9010 #include <unistd.h>
9011 int
9012 main ()
9013 {
9014 extern
9015 #ifdef __cplusplus
9016 "C"
9017 #endif
9018 char *getcwd (char *, size_t);
9019
9020 ;
9021 return 0;
9022 }
9023
9024 _ACEOF
9025 if ac_fn_c_try_compile "$LINENO"; then :
9026 gl_cv_func_getcwd_posix_signature=yes
9027 else
9028 gl_cv_func_getcwd_posix_signature=no
9029 fi
9030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9031
9032 fi
9033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_posix_signature" >&5
9034 $as_echo "$gl_cv_func_getcwd_posix_signature" >&6; }
9035
9036
9037 ac_fn_c_check_decl "$LINENO" "getcwd" "ac_cv_have_decl_getcwd" "$ac_includes_default"
9038 if test "x$ac_cv_have_decl_getcwd" = xyes; then :
9039 ac_have_decl=1
9040 else
9041 ac_have_decl=0
9042 fi
9043
9044 cat >>confdefs.h <<_ACEOF
9045 #define HAVE_DECL_GETCWD $ac_have_decl
9046 _ACEOF
9047
9048
9049
9050
9051
9052
9053
9054
9055 ac_fn_c_check_decl "$LINENO" "getdtablesize" "ac_cv_have_decl_getdtablesize" "$ac_includes_default"
9056 if test "x$ac_cv_have_decl_getdtablesize" = xyes; then :
9057 ac_have_decl=1
9058 else
9059 ac_have_decl=0
9060 fi
9061
9062 cat >>confdefs.h <<_ACEOF
9063 #define HAVE_DECL_GETDTABLESIZE $ac_have_decl
9064 _ACEOF
9065
9066
9067
9068 ac_fn_c_check_decl "$LINENO" "getlogin_r" "ac_cv_have_decl_getlogin_r" "$ac_includes_default"
9069 if test "x$ac_cv_have_decl_getlogin_r" = xyes; then :
9070 ac_have_decl=1
9071 else
9072 ac_have_decl=0
9073 fi
9074
9075 cat >>confdefs.h <<_ACEOF
9076 #define HAVE_DECL_GETLOGIN_R $ac_have_decl
9077 _ACEOF
9078
9079
9080
9081
9082
9083
9084
9085
9086 ac_fn_c_check_decl "$LINENO" "getlogin" "ac_cv_have_decl_getlogin" "$ac_includes_default"
9087 if test "x$ac_cv_have_decl_getlogin" = xyes; then :
9088 ac_have_decl=1
9089 else
9090 ac_have_decl=0
9091 fi
9092
9093 cat >>confdefs.h <<_ACEOF
9094 #define HAVE_DECL_GETLOGIN $ac_have_decl
9095 _ACEOF
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
9109 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
9110 if ${ac_cv_c_restrict+:} false; then :
9111 $as_echo_n "(cached) " >&6
9112 else
9113 ac_cv_c_restrict=no
9114 # The order here caters to the fact that C++ does not require restrict.
9115 for ac_kw in __restrict __restrict__ _Restrict restrict; do
9116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9117 /* end confdefs.h. */
9118 typedef int *int_ptr;
9119 int foo (int_ptr $ac_kw ip) { return ip[0]; }
9120 int bar (int [$ac_kw]); /* Catch GCC bug 14050. */
9121 int bar (int ip[$ac_kw]) { return ip[0]; }
9122
9123 int
9124 main ()
9125 {
9126 int s[1];
9127 int *$ac_kw t = s;
9128 t[0] = 0;
9129 return foo (t) + bar (t);
9130
9131 ;
9132 return 0;
9133 }
9134 _ACEOF
9135 if ac_fn_c_try_compile "$LINENO"; then :
9136 ac_cv_c_restrict=$ac_kw
9137 fi
9138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9139 test "$ac_cv_c_restrict" != no && break
9140 done
9141
9142 fi
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
9144 $as_echo "$ac_cv_c_restrict" >&6; }
9145
9146 case $ac_cv_c_restrict in
9147 restrict) ;;
9148 no) $as_echo "#define restrict /**/" >>confdefs.h
9149 ;;
9150 *) cat >>confdefs.h <<_ACEOF
9151 #define restrict $ac_cv_c_restrict
9152 _ACEOF
9153 ;;
9154 esac
9155
9156
9157 GNULIB_GETTIMEOFDAY=0;
9158 HAVE_GETTIMEOFDAY=1;
9159 HAVE_STRUCT_TIMEVAL=1;
9160 HAVE_SYS_TIME_H=1;
9161 HAVE_TIMEZONE_T=0;
9162 REPLACE_GETTIMEOFDAY=0;
9163 REPLACE_STRUCT_TIMEVAL=0;
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174 :
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186 :
9187
9188
9189
9190
9191
9192
9193
9194
9195 if test $gl_cv_have_include_next = yes; then
9196 gl_cv_next_sys_time_h='<'sys/time.h'>'
9197 else
9198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
9199 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
9200 if ${gl_cv_next_sys_time_h+:} false; then :
9201 $as_echo_n "(cached) " >&6
9202 else
9203
9204 if test $ac_cv_header_sys_time_h = yes; then
9205
9206
9207
9208
9209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9210 /* end confdefs.h. */
9211 #include <sys/time.h>
9212 _ACEOF
9213 case "$host_os" in
9214 aix*) gl_absname_cpp="$ac_cpp -C" ;;
9215 *) gl_absname_cpp="$ac_cpp" ;;
9216 esac
9217
9218 case "$host_os" in
9219 mingw*)
9220 gl_dirsep_regex='[/\\]'
9221 ;;
9222 *)
9223 gl_dirsep_regex='\/'
9224 ;;
9225 esac
9226 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
9227 gl_header_literal_regex=`echo 'sys/time.h' \
9228 | sed -e "$gl_make_literal_regex_sed"`
9229 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9230 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9231 s|^/[^/]|//&|
9232 p
9233 q
9234 }'
9235
9236 gl_cv_absolute_sys_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9237 sed -n "$gl_absolute_header_sed"`
9238
9239 gl_header=$gl_cv_absolute_sys_time_h
9240 gl_cv_next_sys_time_h='"'$gl_header'"'
9241 else
9242 gl_cv_next_sys_time_h='<'sys/time.h'>'
9243 fi
9244
9245
9246 fi
9247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
9248 $as_echo "$gl_cv_next_sys_time_h" >&6; }
9249 fi
9250 NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
9251
9252 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
9253 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9254 gl_next_as_first_directive='<'sys/time.h'>'
9255 else
9256 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9257 gl_next_as_first_directive=$gl_cv_next_sys_time_h
9258 fi
9259 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
9260
9261
9262
9263
9264
9265 if test $ac_cv_header_sys_time_h != yes; then
9266 HAVE_SYS_TIME_H=0
9267 fi
9268
9269
9270
9271
9272
9273 :
9274
9275
9276
9277
9278
9279 if test $ac_cv_header_sys_socket_h != yes; then
9280 for ac_header in winsock2.h
9281 do :
9282 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
9283 if test "x$ac_cv_header_winsock2_h" = xyes; then :
9284 cat >>confdefs.h <<_ACEOF
9285 #define HAVE_WINSOCK2_H 1
9286 _ACEOF
9287
9288 fi
9289
9290 done
9291
9292 fi
9293 if test "$ac_cv_header_winsock2_h" = yes; then
9294 HAVE_WINSOCK2_H=1
9295 UNISTD_H_HAVE_WINSOCK2_H=1
9296 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
9297 else
9298 HAVE_WINSOCK2_H=0
9299 fi
9300
9301
9302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
9303 $as_echo_n "checking for struct timeval... " >&6; }
9304 if ${gl_cv_sys_struct_timeval+:} false; then :
9305 $as_echo_n "(cached) " >&6
9306 else
9307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9308 /* end confdefs.h. */
9309 #if HAVE_SYS_TIME_H
9310 #include <sys/time.h>
9311 #endif
9312 #include <time.h>
9313 #if HAVE_WINSOCK2_H
9314 # include <winsock2.h>
9315 #endif
9316
9317 int
9318 main ()
9319 {
9320 static struct timeval x; x.tv_sec = x.tv_usec;
9321 ;
9322 return 0;
9323 }
9324 _ACEOF
9325 if ac_fn_c_try_compile "$LINENO"; then :
9326 gl_cv_sys_struct_timeval=yes
9327 else
9328 gl_cv_sys_struct_timeval=no
9329 fi
9330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9331
9332 fi
9333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
9334 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
9335 if test $gl_cv_sys_struct_timeval != yes; then
9336 HAVE_STRUCT_TIMEVAL=0
9337 else
9338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
9339 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
9340 if ${gl_cv_sys_struct_timeval_tv_sec+:} false; then :
9341 $as_echo_n "(cached) " >&6
9342 else
9343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9344 /* end confdefs.h. */
9345 #if HAVE_SYS_TIME_H
9346 #include <sys/time.h>
9347 #endif
9348 #include <time.h>
9349 #if HAVE_WINSOCK2_H
9350 # include <winsock2.h>
9351 #endif
9352
9353 int
9354 main ()
9355 {
9356 static struct timeval x;
9357 typedef int verify_tv_sec_type[
9358 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
9359 ];
9360
9361 ;
9362 return 0;
9363 }
9364 _ACEOF
9365 if ac_fn_c_try_compile "$LINENO"; then :
9366 gl_cv_sys_struct_timeval_tv_sec=yes
9367 else
9368 gl_cv_sys_struct_timeval_tv_sec=no
9369 fi
9370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9371
9372 fi
9373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
9374 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
9375 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
9376 REPLACE_STRUCT_TIMEVAL=1
9377 fi
9378 fi
9379
9380
9381 for gl_func in gettimeofday; do
9382 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
9383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
9384 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
9385 if eval \${$as_gl_Symbol+:} false; then :
9386 $as_echo_n "(cached) " >&6
9387 else
9388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9389 /* end confdefs.h. */
9390
9391 #if HAVE_SYS_TIME_H
9392 # include <sys/time.h>
9393 #endif
9394 #include <time.h>
9395
9396 int
9397 main ()
9398 {
9399 #undef $gl_func
9400 (void) $gl_func;
9401 ;
9402 return 0;
9403 }
9404 _ACEOF
9405 if ac_fn_c_try_compile "$LINENO"; then :
9406 eval "$as_gl_Symbol=yes"
9407 else
9408 eval "$as_gl_Symbol=no"
9409 fi
9410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9411 fi
9412 eval ac_res=\$$as_gl_Symbol
9413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9414 $as_echo "$ac_res" >&6; }
9415 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
9416 cat >>confdefs.h <<_ACEOF
9417 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
9418 _ACEOF
9419
9420 eval ac_cv_have_decl_$gl_func=yes
9421 fi
9422 done
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455 :
9456
9457
9458
9459
9460
9461
9462
9463
9464 if test $gl_cv_have_include_next = yes; then
9465 gl_cv_next_limits_h='<'limits.h'>'
9466 else
9467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <limits.h>" >&5
9468 $as_echo_n "checking absolute name of <limits.h>... " >&6; }
9469 if ${gl_cv_next_limits_h+:} false; then :
9470 $as_echo_n "(cached) " >&6
9471 else
9472
9473 if test $ac_cv_header_limits_h = yes; then
9474
9475
9476
9477
9478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9479 /* end confdefs.h. */
9480 #include <limits.h>
9481 _ACEOF
9482 case "$host_os" in
9483 aix*) gl_absname_cpp="$ac_cpp -C" ;;
9484 *) gl_absname_cpp="$ac_cpp" ;;
9485 esac
9486
9487 case "$host_os" in
9488 mingw*)
9489 gl_dirsep_regex='[/\\]'
9490 ;;
9491 *)
9492 gl_dirsep_regex='\/'
9493 ;;
9494 esac
9495 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
9496 gl_header_literal_regex=`echo 'limits.h' \
9497 | sed -e "$gl_make_literal_regex_sed"`
9498 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9499 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9500 s|^/[^/]|//&|
9501 p
9502 q
9503 }'
9504
9505 gl_cv_absolute_limits_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9506 sed -n "$gl_absolute_header_sed"`
9507
9508 gl_header=$gl_cv_absolute_limits_h
9509 gl_cv_next_limits_h='"'$gl_header'"'
9510 else
9511 gl_cv_next_limits_h='<'limits.h'>'
9512 fi
9513
9514
9515 fi
9516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_limits_h" >&5
9517 $as_echo "$gl_cv_next_limits_h" >&6; }
9518 fi
9519 NEXT_LIMITS_H=$gl_cv_next_limits_h
9520
9521 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
9522 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9523 gl_next_as_first_directive='<'limits.h'>'
9524 else
9525 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9526 gl_next_as_first_directive=$gl_cv_next_limits_h
9527 fi
9528 NEXT_AS_FIRST_DIRECTIVE_LIMITS_H=$gl_next_as_first_directive
9529
9530
9531
9532
9533
9534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether limits.h has ULLONG_WIDTH etc." >&5
9535 $as_echo_n "checking whether limits.h has ULLONG_WIDTH etc.... " >&6; }
9536 if ${gl_cv_header_limits_width+:} false; then :
9537 $as_echo_n "(cached) " >&6
9538 else
9539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9540 /* end confdefs.h. */
9541 #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
9542 #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
9543 #endif
9544 #include <limits.h>
9545 int ullw = ULLONG_WIDTH;
9546 int
9547 main ()
9548 {
9549
9550 ;
9551 return 0;
9552 }
9553 _ACEOF
9554 if ac_fn_c_try_compile "$LINENO"; then :
9555 gl_cv_header_limits_width=yes
9556 else
9557 gl_cv_header_limits_width=no
9558 fi
9559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9560 fi
9561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_limits_width" >&5
9562 $as_echo "$gl_cv_header_limits_width" >&6; }
9563 if test "$gl_cv_header_limits_width" = yes; then
9564 LIMITS_H=
9565 else
9566 LIMITS_H=limits.h
9567 fi
9568
9569 if test -n "$LIMITS_H"; then
9570 GL_GENERATE_LIMITS_H_TRUE=
9571 GL_GENERATE_LIMITS_H_FALSE='#'
9572 else
9573 GL_GENERATE_LIMITS_H_TRUE='#'
9574 GL_GENERATE_LIMITS_H_FALSE=
9575 fi
9576
9577
9578
9579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
9580 $as_echo_n "checking for unsigned long long int... " >&6; }
9581 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
9582 $as_echo_n "(cached) " >&6
9583 else
9584 ac_cv_type_unsigned_long_long_int=yes
9585 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
9586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9587 /* end confdefs.h. */
9588
9589 /* For now, do not test the preprocessor; as of 2007 there are too many
9590 implementations with broken preprocessors. Perhaps this can
9591 be revisited in 2012. In the meantime, code should not expect
9592 #if to work with literals wider than 32 bits. */
9593 /* Test literals. */
9594 long long int ll = 9223372036854775807ll;
9595 long long int nll = -9223372036854775807LL;
9596 unsigned long long int ull = 18446744073709551615ULL;
9597 /* Test constant expressions. */
9598 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
9599 ? 1 : -1)];
9600 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
9601 ? 1 : -1)];
9602 int i = 63;
9603 int
9604 main ()
9605 {
9606 /* Test availability of runtime routines for shift and division. */
9607 long long int llmax = 9223372036854775807ll;
9608 unsigned long long int ullmax = 18446744073709551615ull;
9609 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
9610 | (llmax / ll) | (llmax % ll)
9611 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
9612 | (ullmax / ull) | (ullmax % ull));
9613 ;
9614 return 0;
9615 }
9616
9617 _ACEOF
9618 if ac_fn_c_try_link "$LINENO"; then :
9619
9620 else
9621 ac_cv_type_unsigned_long_long_int=no
9622 fi
9623 rm -f core conftest.err conftest.$ac_objext \
9624 conftest$ac_exeext conftest.$ac_ext
9625 fi
9626 fi
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
9628 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
9629 if test $ac_cv_type_unsigned_long_long_int = yes; then
9630
9631 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
9632
9633 fi
9634
9635
9636
9637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
9638 $as_echo_n "checking for long long int... " >&6; }
9639 if ${ac_cv_type_long_long_int+:} false; then :
9640 $as_echo_n "(cached) " >&6
9641 else
9642 ac_cv_type_long_long_int=yes
9643 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
9644 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
9645 if test $ac_cv_type_long_long_int = yes; then
9646 if test "$cross_compiling" = yes; then :
9647 :
9648 else
9649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9650 /* end confdefs.h. */
9651 #include <limits.h>
9652 #ifndef LLONG_MAX
9653 # define HALF \
9654 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
9655 # define LLONG_MAX (HALF - 1 + HALF)
9656 #endif
9657 int
9658 main ()
9659 {
9660 long long int n = 1;
9661 int i;
9662 for (i = 0; ; i++)
9663 {
9664 long long int m = n << i;
9665 if (m >> i != n)
9666 return 1;
9667 if (LLONG_MAX / 2 < m)
9668 break;
9669 }
9670 return 0;
9671 ;
9672 return 0;
9673 }
9674 _ACEOF
9675 if ac_fn_c_try_run "$LINENO"; then :
9676
9677 else
9678 ac_cv_type_long_long_int=no
9679 fi
9680 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9681 conftest.$ac_objext conftest.beam conftest.$ac_ext
9682 fi
9683
9684 fi
9685 fi
9686 fi
9687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
9688 $as_echo "$ac_cv_type_long_long_int" >&6; }
9689 if test $ac_cv_type_long_long_int = yes; then
9690
9691 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
9692
9693 fi
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706 gl_cv_c_multiarch=no
9707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9708 /* end confdefs.h. */
9709 #ifndef __APPLE_CC__
9710 not a universal capable compiler
9711 #endif
9712 typedef int dummy;
9713
9714 _ACEOF
9715 if ac_fn_c_try_compile "$LINENO"; then :
9716
9717 arch=
9718 prev=
9719 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
9720 if test -n "$prev"; then
9721 case $word in
9722 i?86 | x86_64 | ppc | ppc64)
9723 if test -z "$arch" || test "$arch" = "$word"; then
9724 arch="$word"
9725 else
9726 gl_cv_c_multiarch=yes
9727 fi
9728 ;;
9729 esac
9730 prev=
9731 else
9732 if test "x$word" = "x-arch"; then
9733 prev=arch
9734 fi
9735 fi
9736 done
9737
9738 fi
9739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9740 if test $gl_cv_c_multiarch = yes; then
9741 APPLE_UNIVERSAL_BUILD=1
9742 else
9743 APPLE_UNIVERSAL_BUILD=0
9744 fi
9745
9746
9747
9748
9749
9750
9751
9752 if test $ac_cv_type_long_long_int = yes; then
9753 HAVE_LONG_LONG_INT=1
9754 else
9755 HAVE_LONG_LONG_INT=0
9756 fi
9757
9758
9759 if test $ac_cv_type_unsigned_long_long_int = yes; then
9760 HAVE_UNSIGNED_LONG_LONG_INT=1
9761 else
9762 HAVE_UNSIGNED_LONG_LONG_INT=0
9763 fi
9764
9765
9766
9767 :
9768
9769
9770
9771
9772
9773 if test $ac_cv_header_wchar_h = yes; then
9774 HAVE_WCHAR_H=1
9775 else
9776 HAVE_WCHAR_H=0
9777 fi
9778
9779
9780 if test $ac_cv_header_inttypes_h = yes; then
9781 HAVE_INTTYPES_H=1
9782 else
9783 HAVE_INTTYPES_H=0
9784 fi
9785
9786
9787 if test $ac_cv_header_sys_types_h = yes; then
9788 HAVE_SYS_TYPES_H=1
9789 else
9790 HAVE_SYS_TYPES_H=0
9791 fi
9792
9793
9794
9795
9796
9797
9798
9799
9800 :
9801
9802
9803
9804
9805
9806
9807
9808
9809 if test $gl_cv_have_include_next = yes; then
9810 gl_cv_next_stdint_h='<'stdint.h'>'
9811 else
9812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
9813 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
9814 if ${gl_cv_next_stdint_h+:} false; then :
9815 $as_echo_n "(cached) " >&6
9816 else
9817
9818 if test $ac_cv_header_stdint_h = yes; then
9819
9820
9821
9822
9823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9824 /* end confdefs.h. */
9825 #include <stdint.h>
9826 _ACEOF
9827 case "$host_os" in
9828 aix*) gl_absname_cpp="$ac_cpp -C" ;;
9829 *) gl_absname_cpp="$ac_cpp" ;;
9830 esac
9831
9832 case "$host_os" in
9833 mingw*)
9834 gl_dirsep_regex='[/\\]'
9835 ;;
9836 *)
9837 gl_dirsep_regex='\/'
9838 ;;
9839 esac
9840 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
9841 gl_header_literal_regex=`echo 'stdint.h' \
9842 | sed -e "$gl_make_literal_regex_sed"`
9843 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9844 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9845 s|^/[^/]|//&|
9846 p
9847 q
9848 }'
9849
9850 gl_cv_absolute_stdint_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9851 sed -n "$gl_absolute_header_sed"`
9852
9853 gl_header=$gl_cv_absolute_stdint_h
9854 gl_cv_next_stdint_h='"'$gl_header'"'
9855 else
9856 gl_cv_next_stdint_h='<'stdint.h'>'
9857 fi
9858
9859
9860 fi
9861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
9862 $as_echo "$gl_cv_next_stdint_h" >&6; }
9863 fi
9864 NEXT_STDINT_H=$gl_cv_next_stdint_h
9865
9866 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
9867 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9868 gl_next_as_first_directive='<'stdint.h'>'
9869 else
9870 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9871 gl_next_as_first_directive=$gl_cv_next_stdint_h
9872 fi
9873 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
9874
9875
9876
9877
9878 if test $ac_cv_header_stdint_h = yes; then
9879 HAVE_STDINT_H=1
9880 else
9881 HAVE_STDINT_H=0
9882 fi
9883
9884
9885 if test $ac_cv_header_stdint_h = yes; then
9886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
9887 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
9888 if ${gl_cv_header_working_stdint_h+:} false; then :
9889 $as_echo_n "(cached) " >&6
9890 else
9891 gl_cv_header_working_stdint_h=no
9892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9893 /* end confdefs.h. */
9894
9895
9896 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
9897 #define __STDC_CONSTANT_MACROS 1
9898 #define __STDC_LIMIT_MACROS 1
9899 #include <stdint.h>
9900 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
9901 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
9902 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
9903 #endif
9904
9905
9906 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9907 included before <wchar.h>. */
9908 #include <stddef.h>
9909 #include <signal.h>
9910 #if HAVE_WCHAR_H
9911 # include <stdio.h>
9912 # include <time.h>
9913 # include <wchar.h>
9914 #endif
9915
9916
9917 #ifdef INT8_MAX
9918 int8_t a1 = INT8_MAX;
9919 int8_t a1min = INT8_MIN;
9920 #endif
9921 #ifdef INT16_MAX
9922 int16_t a2 = INT16_MAX;
9923 int16_t a2min = INT16_MIN;
9924 #endif
9925 #ifdef INT32_MAX
9926 int32_t a3 = INT32_MAX;
9927 int32_t a3min = INT32_MIN;
9928 #endif
9929 #ifdef INT64_MAX
9930 int64_t a4 = INT64_MAX;
9931 int64_t a4min = INT64_MIN;
9932 #endif
9933 #ifdef UINT8_MAX
9934 uint8_t b1 = UINT8_MAX;
9935 #else
9936 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
9937 #endif
9938 #ifdef UINT16_MAX
9939 uint16_t b2 = UINT16_MAX;
9940 #endif
9941 #ifdef UINT32_MAX
9942 uint32_t b3 = UINT32_MAX;
9943 #endif
9944 #ifdef UINT64_MAX
9945 uint64_t b4 = UINT64_MAX;
9946 #endif
9947 int_least8_t c1 = INT8_C (0x7f);
9948 int_least8_t c1max = INT_LEAST8_MAX;
9949 int_least8_t c1min = INT_LEAST8_MIN;
9950 int_least16_t c2 = INT16_C (0x7fff);
9951 int_least16_t c2max = INT_LEAST16_MAX;
9952 int_least16_t c2min = INT_LEAST16_MIN;
9953 int_least32_t c3 = INT32_C (0x7fffffff);
9954 int_least32_t c3max = INT_LEAST32_MAX;
9955 int_least32_t c3min = INT_LEAST32_MIN;
9956 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
9957 int_least64_t c4max = INT_LEAST64_MAX;
9958 int_least64_t c4min = INT_LEAST64_MIN;
9959 uint_least8_t d1 = UINT8_C (0xff);
9960 uint_least8_t d1max = UINT_LEAST8_MAX;
9961 uint_least16_t d2 = UINT16_C (0xffff);
9962 uint_least16_t d2max = UINT_LEAST16_MAX;
9963 uint_least32_t d3 = UINT32_C (0xffffffff);
9964 uint_least32_t d3max = UINT_LEAST32_MAX;
9965 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
9966 uint_least64_t d4max = UINT_LEAST64_MAX;
9967 int_fast8_t e1 = INT_FAST8_MAX;
9968 int_fast8_t e1min = INT_FAST8_MIN;
9969 int_fast16_t e2 = INT_FAST16_MAX;
9970 int_fast16_t e2min = INT_FAST16_MIN;
9971 int_fast32_t e3 = INT_FAST32_MAX;
9972 int_fast32_t e3min = INT_FAST32_MIN;
9973 int_fast64_t e4 = INT_FAST64_MAX;
9974 int_fast64_t e4min = INT_FAST64_MIN;
9975 uint_fast8_t f1 = UINT_FAST8_MAX;
9976 uint_fast16_t f2 = UINT_FAST16_MAX;
9977 uint_fast32_t f3 = UINT_FAST32_MAX;
9978 uint_fast64_t f4 = UINT_FAST64_MAX;
9979 #ifdef INTPTR_MAX
9980 intptr_t g = INTPTR_MAX;
9981 intptr_t gmin = INTPTR_MIN;
9982 #endif
9983 #ifdef UINTPTR_MAX
9984 uintptr_t h = UINTPTR_MAX;
9985 #endif
9986 intmax_t i = INTMAX_MAX;
9987 uintmax_t j = UINTMAX_MAX;
9988
9989 /* Check that SIZE_MAX has the correct type, if possible. */
9990 #if 201112 <= __STDC_VERSION__
9991 int k = _Generic (SIZE_MAX, size_t: 0);
9992 #elif (2 <= __GNUC__ || defined __IBM__TYPEOF__ \
9993 || (0x5110 <= __SUNPRO_C && !__STDC__))
9994 extern size_t k;
9995 extern __typeof__ (SIZE_MAX) k;
9996 #endif
9997
9998 #include <limits.h> /* for CHAR_BIT */
9999 #define TYPE_MINIMUM(t) \
10000 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
10001 #define TYPE_MAXIMUM(t) \
10002 ((t) ((t) 0 < (t) -1 \
10003 ? (t) -1 \
10004 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
10005 struct s {
10006 int check_PTRDIFF:
10007 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
10008 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
10009 ? 1 : -1;
10010 /* Detect bug in FreeBSD 6.0 / ia64. */
10011 int check_SIG_ATOMIC:
10012 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
10013 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
10014 ? 1 : -1;
10015 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
10016 int check_WCHAR:
10017 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
10018 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
10019 ? 1 : -1;
10020 /* Detect bug in mingw. */
10021 int check_WINT:
10022 WINT_MIN == TYPE_MINIMUM (wint_t)
10023 && WINT_MAX == TYPE_MAXIMUM (wint_t)
10024 ? 1 : -1;
10025
10026 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
10027 int check_UINT8_C:
10028 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
10029 int check_UINT16_C:
10030 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
10031
10032 /* Detect bugs in OpenBSD 3.9 stdint.h. */
10033 #ifdef UINT8_MAX
10034 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
10035 #endif
10036 #ifdef UINT16_MAX
10037 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
10038 #endif
10039 #ifdef UINT32_MAX
10040 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
10041 #endif
10042 #ifdef UINT64_MAX
10043 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
10044 #endif
10045 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
10046 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
10047 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
10048 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
10049 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
10050 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
10051 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
10052 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
10053 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
10054 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
10055 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
10056 };
10057
10058 int
10059 main ()
10060 {
10061
10062 ;
10063 return 0;
10064 }
10065 _ACEOF
10066 if ac_fn_c_try_compile "$LINENO"; then :
10067 if test "$cross_compiling" = yes; then :
10068 gl_cv_header_working_stdint_h=yes
10069
10070 else
10071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10072 /* end confdefs.h. */
10073
10074
10075 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
10076 #define __STDC_CONSTANT_MACROS 1
10077 #define __STDC_LIMIT_MACROS 1
10078 #include <stdint.h>
10079
10080
10081 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10082 included before <wchar.h>. */
10083 #include <stddef.h>
10084 #include <signal.h>
10085 #if HAVE_WCHAR_H
10086 # include <stdio.h>
10087 # include <time.h>
10088 # include <wchar.h>
10089 #endif
10090
10091
10092 #include <stdio.h>
10093 #include <string.h>
10094 #define MVAL(macro) MVAL1(macro)
10095 #define MVAL1(expression) #expression
10096 static const char *macro_values[] =
10097 {
10098 #ifdef INT8_MAX
10099 MVAL (INT8_MAX),
10100 #endif
10101 #ifdef INT16_MAX
10102 MVAL (INT16_MAX),
10103 #endif
10104 #ifdef INT32_MAX
10105 MVAL (INT32_MAX),
10106 #endif
10107 #ifdef INT64_MAX
10108 MVAL (INT64_MAX),
10109 #endif
10110 #ifdef UINT8_MAX
10111 MVAL (UINT8_MAX),
10112 #endif
10113 #ifdef UINT16_MAX
10114 MVAL (UINT16_MAX),
10115 #endif
10116 #ifdef UINT32_MAX
10117 MVAL (UINT32_MAX),
10118 #endif
10119 #ifdef UINT64_MAX
10120 MVAL (UINT64_MAX),
10121 #endif
10122 NULL
10123 };
10124
10125 int
10126 main ()
10127 {
10128
10129 const char **mv;
10130 for (mv = macro_values; *mv != NULL; mv++)
10131 {
10132 const char *value = *mv;
10133 /* Test whether it looks like a cast expression. */
10134 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
10135 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
10136 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
10137 || strncmp (value, "((int)"/*)*/, 6) == 0
10138 || strncmp (value, "((signed short)"/*)*/, 15) == 0
10139 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
10140 return mv - macro_values + 1;
10141 }
10142 return 0;
10143
10144 ;
10145 return 0;
10146 }
10147 _ACEOF
10148 if ac_fn_c_try_run "$LINENO"; then :
10149 gl_cv_header_working_stdint_h=yes
10150 fi
10151 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10152 conftest.$ac_objext conftest.beam conftest.$ac_ext
10153 fi
10154
10155
10156 fi
10157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10158
10159 fi
10160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
10161 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
10162 fi
10163
10164 HAVE_C99_STDINT_H=0
10165 HAVE_SYS_BITYPES_H=0
10166 HAVE_SYS_INTTYPES_H=0
10167 STDINT_H=stdint.h
10168 if test "$gl_cv_header_working_stdint_h" = yes; then
10169 HAVE_C99_STDINT_H=1
10170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h predates C++11" >&5
10171 $as_echo_n "checking whether stdint.h predates C++11... " >&6; }
10172 if ${gl_cv_header_stdint_predates_cxx11_h+:} false; then :
10173 $as_echo_n "(cached) " >&6
10174 else
10175 gl_cv_header_stdint_predates_cxx11_h=yes
10176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10177 /* end confdefs.h. */
10178
10179
10180 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
10181 #include <stdint.h>
10182
10183
10184 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10185 included before <wchar.h>. */
10186 #include <stddef.h>
10187 #include <signal.h>
10188 #if HAVE_WCHAR_H
10189 # include <stdio.h>
10190 # include <time.h>
10191 # include <wchar.h>
10192 #endif
10193
10194
10195 intmax_t im = INTMAX_MAX;
10196 int32_t i32 = INT32_C (0x7fffffff);
10197
10198 int
10199 main ()
10200 {
10201
10202 ;
10203 return 0;
10204 }
10205 _ACEOF
10206 if ac_fn_c_try_compile "$LINENO"; then :
10207 gl_cv_header_stdint_predates_cxx11_h=no
10208 fi
10209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10210 fi
10211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_predates_cxx11_h" >&5
10212 $as_echo "$gl_cv_header_stdint_predates_cxx11_h" >&6; }
10213
10214 if test "$gl_cv_header_stdint_predates_cxx11_h" = yes; then
10215
10216 $as_echo "#define __STDC_CONSTANT_MACROS 1" >>confdefs.h
10217
10218
10219 $as_echo "#define __STDC_LIMIT_MACROS 1" >>confdefs.h
10220
10221 fi
10222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h has UINTMAX_WIDTH etc." >&5
10223 $as_echo_n "checking whether stdint.h has UINTMAX_WIDTH etc.... " >&6; }
10224 if ${gl_cv_header_stdint_width+:} false; then :
10225 $as_echo_n "(cached) " >&6
10226 else
10227 gl_cv_header_stdint_width=no
10228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10229 /* end confdefs.h. */
10230
10231 /* Work if build is not clean. */
10232 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1
10233 #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
10234 #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
10235 #endif
10236 #include <stdint.h>
10237
10238 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10239 included before <wchar.h>. */
10240 #include <stddef.h>
10241 #include <signal.h>
10242 #if HAVE_WCHAR_H
10243 # include <stdio.h>
10244 # include <time.h>
10245 # include <wchar.h>
10246 #endif
10247
10248 int iw = UINTMAX_WIDTH;
10249
10250 int
10251 main ()
10252 {
10253
10254 ;
10255 return 0;
10256 }
10257 _ACEOF
10258 if ac_fn_c_try_compile "$LINENO"; then :
10259 gl_cv_header_stdint_width=yes
10260 fi
10261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10262 fi
10263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_width" >&5
10264 $as_echo "$gl_cv_header_stdint_width" >&6; }
10265 if test "$gl_cv_header_stdint_width" = yes; then
10266 STDINT_H=
10267 fi
10268 else
10269 for ac_header in sys/inttypes.h sys/bitypes.h
10270 do :
10271 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10272 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10273 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10274 cat >>confdefs.h <<_ACEOF
10275 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10276 _ACEOF
10277
10278 fi
10279
10280 done
10281
10282 if test $ac_cv_header_sys_inttypes_h = yes; then
10283 HAVE_SYS_INTTYPES_H=1
10284 fi
10285 if test $ac_cv_header_sys_bitypes_h = yes; then
10286 HAVE_SYS_BITYPES_H=1
10287 fi
10288
10289
10290 if test $APPLE_UNIVERSAL_BUILD = 0; then
10291
10292
10293 for gltype in ptrdiff_t size_t ; do
10294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
10295 $as_echo_n "checking for bit size of $gltype... " >&6; }
10296 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
10297 $as_echo_n "(cached) " >&6
10298 else
10299 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
10300 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10301 included before <wchar.h>. */
10302 #include <stddef.h>
10303 #include <signal.h>
10304 #if HAVE_WCHAR_H
10305 # include <stdio.h>
10306 # include <time.h>
10307 # include <wchar.h>
10308 #endif
10309
10310 #include <limits.h>"; then :
10311
10312 else
10313 result=unknown
10314 fi
10315
10316 eval gl_cv_bitsizeof_${gltype}=\$result
10317
10318 fi
10319 eval ac_res=\$gl_cv_bitsizeof_${gltype}
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10321 $as_echo "$ac_res" >&6; }
10322 eval result=\$gl_cv_bitsizeof_${gltype}
10323 if test $result = unknown; then
10324 result=0
10325 fi
10326 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
10327 cat >>confdefs.h <<_ACEOF
10328 #define BITSIZEOF_${GLTYPE} $result
10329 _ACEOF
10330
10331 eval BITSIZEOF_${GLTYPE}=\$result
10332 done
10333
10334
10335 fi
10336
10337
10338 for gltype in sig_atomic_t wchar_t wint_t ; do
10339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
10340 $as_echo_n "checking for bit size of $gltype... " >&6; }
10341 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
10342 $as_echo_n "(cached) " >&6
10343 else
10344 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
10345 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10346 included before <wchar.h>. */
10347 #include <stddef.h>
10348 #include <signal.h>
10349 #if HAVE_WCHAR_H
10350 # include <stdio.h>
10351 # include <time.h>
10352 # include <wchar.h>
10353 #endif
10354
10355 #include <limits.h>"; then :
10356
10357 else
10358 result=unknown
10359 fi
10360
10361 eval gl_cv_bitsizeof_${gltype}=\$result
10362
10363 fi
10364 eval ac_res=\$gl_cv_bitsizeof_${gltype}
10365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10366 $as_echo "$ac_res" >&6; }
10367 eval result=\$gl_cv_bitsizeof_${gltype}
10368 if test $result = unknown; then
10369 result=0
10370 fi
10371 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
10372 cat >>confdefs.h <<_ACEOF
10373 #define BITSIZEOF_${GLTYPE} $result
10374 _ACEOF
10375
10376 eval BITSIZEOF_${GLTYPE}=\$result
10377 done
10378
10379
10380
10381
10382 for gltype in sig_atomic_t wchar_t wint_t ; do
10383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
10384 $as_echo_n "checking whether $gltype is signed... " >&6; }
10385 if eval \${gl_cv_type_${gltype}_signed+:} false; then :
10386 $as_echo_n "(cached) " >&6
10387 else
10388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10389 /* end confdefs.h. */
10390
10391 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10392 included before <wchar.h>. */
10393 #include <stddef.h>
10394 #include <signal.h>
10395 #if HAVE_WCHAR_H
10396 # include <stdio.h>
10397 # include <time.h>
10398 # include <wchar.h>
10399 #endif
10400
10401 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
10402 int
10403 main ()
10404 {
10405
10406 ;
10407 return 0;
10408 }
10409 _ACEOF
10410 if ac_fn_c_try_compile "$LINENO"; then :
10411 result=yes
10412 else
10413 result=no
10414 fi
10415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10416 eval gl_cv_type_${gltype}_signed=\$result
10417
10418 fi
10419 eval ac_res=\$gl_cv_type_${gltype}_signed
10420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10421 $as_echo "$ac_res" >&6; }
10422 eval result=\$gl_cv_type_${gltype}_signed
10423 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
10424 if test "$result" = yes; then
10425 cat >>confdefs.h <<_ACEOF
10426 #define HAVE_SIGNED_${GLTYPE} 1
10427 _ACEOF
10428
10429 eval HAVE_SIGNED_${GLTYPE}=1
10430 else
10431 eval HAVE_SIGNED_${GLTYPE}=0
10432 fi
10433 done
10434
10435
10436 gl_cv_type_ptrdiff_t_signed=yes
10437 gl_cv_type_size_t_signed=no
10438 if test $APPLE_UNIVERSAL_BUILD = 0; then
10439
10440
10441 for gltype in ptrdiff_t size_t ; do
10442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
10443 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
10444 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
10445 $as_echo_n "(cached) " >&6
10446 else
10447 eval gl_cv_type_${gltype}_suffix=no
10448 eval result=\$gl_cv_type_${gltype}_signed
10449 if test "$result" = yes; then
10450 glsufu=
10451 else
10452 glsufu=u
10453 fi
10454 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
10455 case $glsuf in
10456 '') gltype1='int';;
10457 l) gltype1='long int';;
10458 ll) gltype1='long long int';;
10459 i64) gltype1='__int64';;
10460 u) gltype1='unsigned int';;
10461 ul) gltype1='unsigned long int';;
10462 ull) gltype1='unsigned long long int';;
10463 ui64)gltype1='unsigned __int64';;
10464 esac
10465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10466 /* end confdefs.h. */
10467
10468 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10469 included before <wchar.h>. */
10470 #include <stddef.h>
10471 #include <signal.h>
10472 #if HAVE_WCHAR_H
10473 # include <stdio.h>
10474 # include <time.h>
10475 # include <wchar.h>
10476 #endif
10477
10478 extern $gltype foo;
10479 extern $gltype1 foo;
10480 int
10481 main ()
10482 {
10483
10484 ;
10485 return 0;
10486 }
10487 _ACEOF
10488 if ac_fn_c_try_compile "$LINENO"; then :
10489 eval gl_cv_type_${gltype}_suffix=\$glsuf
10490 fi
10491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10492 eval result=\$gl_cv_type_${gltype}_suffix
10493 test "$result" != no && break
10494 done
10495 fi
10496 eval ac_res=\$gl_cv_type_${gltype}_suffix
10497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10498 $as_echo "$ac_res" >&6; }
10499 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
10500 eval result=\$gl_cv_type_${gltype}_suffix
10501 test "$result" = no && result=
10502 eval ${GLTYPE}_SUFFIX=\$result
10503 cat >>confdefs.h <<_ACEOF
10504 #define ${GLTYPE}_SUFFIX $result
10505 _ACEOF
10506
10507 done
10508
10509
10510 fi
10511
10512
10513 for gltype in sig_atomic_t wchar_t wint_t ; do
10514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
10515 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
10516 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
10517 $as_echo_n "(cached) " >&6
10518 else
10519 eval gl_cv_type_${gltype}_suffix=no
10520 eval result=\$gl_cv_type_${gltype}_signed
10521 if test "$result" = yes; then
10522 glsufu=
10523 else
10524 glsufu=u
10525 fi
10526 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
10527 case $glsuf in
10528 '') gltype1='int';;
10529 l) gltype1='long int';;
10530 ll) gltype1='long long int';;
10531 i64) gltype1='__int64';;
10532 u) gltype1='unsigned int';;
10533 ul) gltype1='unsigned long int';;
10534 ull) gltype1='unsigned long long int';;
10535 ui64)gltype1='unsigned __int64';;
10536 esac
10537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10538 /* end confdefs.h. */
10539
10540 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10541 included before <wchar.h>. */
10542 #include <stddef.h>
10543 #include <signal.h>
10544 #if HAVE_WCHAR_H
10545 # include <stdio.h>
10546 # include <time.h>
10547 # include <wchar.h>
10548 #endif
10549
10550 extern $gltype foo;
10551 extern $gltype1 foo;
10552 int
10553 main ()
10554 {
10555
10556 ;
10557 return 0;
10558 }
10559 _ACEOF
10560 if ac_fn_c_try_compile "$LINENO"; then :
10561 eval gl_cv_type_${gltype}_suffix=\$glsuf
10562 fi
10563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10564 eval result=\$gl_cv_type_${gltype}_suffix
10565 test "$result" != no && break
10566 done
10567 fi
10568 eval ac_res=\$gl_cv_type_${gltype}_suffix
10569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10570 $as_echo "$ac_res" >&6; }
10571 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
10572 eval result=\$gl_cv_type_${gltype}_suffix
10573 test "$result" = no && result=
10574 eval ${GLTYPE}_SUFFIX=\$result
10575 cat >>confdefs.h <<_ACEOF
10576 #define ${GLTYPE}_SUFFIX $result
10577 _ACEOF
10578
10579 done
10580
10581
10582
10583 if test $BITSIZEOF_WINT_T -lt 32; then
10584 BITSIZEOF_WINT_T=32
10585 fi
10586
10587 fi
10588
10589 # The substitute stdint.h needs the substitute limit.h's _GL_INTEGER_WIDTH.
10590 LIMITS_H=limits.h
10591 if test -n "$LIMITS_H"; then
10592 GL_GENERATE_LIMITS_H_TRUE=
10593 GL_GENERATE_LIMITS_H_FALSE='#'
10594 else
10595 GL_GENERATE_LIMITS_H_TRUE='#'
10596 GL_GENERATE_LIMITS_H_FALSE=
10597 fi
10598
10599
10600
10601
10602
10603
10604 if test -n "$STDINT_H"; then
10605 GL_GENERATE_STDINT_H_TRUE=
10606 GL_GENERATE_STDINT_H_FALSE='#'
10607 else
10608 GL_GENERATE_STDINT_H_TRUE='#'
10609 GL_GENERATE_STDINT_H_FALSE=
10610 fi
10611
10612
10613
10614
10615
10616
10617
10618
10619 GNULIB_IMAXABS=0;
10620 GNULIB_IMAXDIV=0;
10621 GNULIB_STRTOIMAX=0;
10622 GNULIB_STRTOUMAX=0;
10623 HAVE_DECL_IMAXABS=1;
10624 HAVE_DECL_IMAXDIV=1;
10625 HAVE_DECL_STRTOIMAX=1;
10626 HAVE_DECL_STRTOUMAX=1;
10627 REPLACE_STRTOIMAX=0;
10628 REPLACE_STRTOUMAX=0;
10629 INT32_MAX_LT_INTMAX_MAX=1;
10630 INT64_MAX_EQ_LONG_MAX='defined _LP64';
10631 PRI_MACROS_BROKEN=0;
10632 PRIPTR_PREFIX=__PRIPTR_PREFIX;
10633 UINT32_MAX_LT_UINTMAX_MAX=1;
10634 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
10635
10636
10637
10638
10639 :
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653 :
10654
10655
10656
10657
10658
10659
10660
10661
10662 if test $gl_cv_have_include_next = yes; then
10663 gl_cv_next_inttypes_h='<'inttypes.h'>'
10664 else
10665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
10666 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
10667 if ${gl_cv_next_inttypes_h+:} false; then :
10668 $as_echo_n "(cached) " >&6
10669 else
10670
10671 if test $ac_cv_header_inttypes_h = yes; then
10672
10673
10674
10675
10676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10677 /* end confdefs.h. */
10678 #include <inttypes.h>
10679 _ACEOF
10680 case "$host_os" in
10681 aix*) gl_absname_cpp="$ac_cpp -C" ;;
10682 *) gl_absname_cpp="$ac_cpp" ;;
10683 esac
10684
10685 case "$host_os" in
10686 mingw*)
10687 gl_dirsep_regex='[/\\]'
10688 ;;
10689 *)
10690 gl_dirsep_regex='\/'
10691 ;;
10692 esac
10693 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
10694 gl_header_literal_regex=`echo 'inttypes.h' \
10695 | sed -e "$gl_make_literal_regex_sed"`
10696 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10697 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10698 s|^/[^/]|//&|
10699 p
10700 q
10701 }'
10702
10703 gl_cv_absolute_inttypes_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10704 sed -n "$gl_absolute_header_sed"`
10705
10706 gl_header=$gl_cv_absolute_inttypes_h
10707 gl_cv_next_inttypes_h='"'$gl_header'"'
10708 else
10709 gl_cv_next_inttypes_h='<'inttypes.h'>'
10710 fi
10711
10712
10713 fi
10714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
10715 $as_echo "$gl_cv_next_inttypes_h" >&6; }
10716 fi
10717 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
10718
10719 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
10720 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10721 gl_next_as_first_directive='<'inttypes.h'>'
10722 else
10723 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10724 gl_next_as_first_directive=$gl_cv_next_inttypes_h
10725 fi
10726 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
10727
10728
10729
10730
10731
10732
10733
10734
10735 for gl_func in imaxabs imaxdiv strtoimax strtoumax; do
10736 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
10737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
10738 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
10739 if eval \${$as_gl_Symbol+:} false; then :
10740 $as_echo_n "(cached) " >&6
10741 else
10742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10743 /* end confdefs.h. */
10744 #include <inttypes.h>
10745
10746 int
10747 main ()
10748 {
10749 #undef $gl_func
10750 (void) $gl_func;
10751 ;
10752 return 0;
10753 }
10754 _ACEOF
10755 if ac_fn_c_try_compile "$LINENO"; then :
10756 eval "$as_gl_Symbol=yes"
10757 else
10758 eval "$as_gl_Symbol=no"
10759 fi
10760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10761 fi
10762 eval ac_res=\$$as_gl_Symbol
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10764 $as_echo "$ac_res" >&6; }
10765 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
10766 cat >>confdefs.h <<_ACEOF
10767 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
10768 _ACEOF
10769
10770 eval ac_cv_have_decl_$gl_func=yes
10771 fi
10772 done
10773
10774
10775
10776 for ac_header in inttypes.h
10777 do :
10778 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
10779 if test "x$ac_cv_header_inttypes_h" = xyes; then :
10780 cat >>confdefs.h <<_ACEOF
10781 #define HAVE_INTTYPES_H 1
10782 _ACEOF
10783
10784 fi
10785
10786 done
10787
10788 if test $ac_cv_header_inttypes_h = yes; then
10789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
10790 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
10791 if ${gt_cv_inttypes_pri_broken+:} false; then :
10792 $as_echo_n "(cached) " >&6
10793 else
10794
10795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10796 /* end confdefs.h. */
10797
10798 #include <inttypes.h>
10799 #ifdef PRId32
10800 char *p = PRId32;
10801 #endif
10802
10803 int
10804 main ()
10805 {
10806
10807 ;
10808 return 0;
10809 }
10810 _ACEOF
10811 if ac_fn_c_try_compile "$LINENO"; then :
10812 gt_cv_inttypes_pri_broken=no
10813 else
10814 gt_cv_inttypes_pri_broken=yes
10815 fi
10816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10817
10818 fi
10819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
10820 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
10821 fi
10822 if test "$gt_cv_inttypes_pri_broken" = yes; then
10823
10824 cat >>confdefs.h <<_ACEOF
10825 #define PRI_MACROS_BROKEN 1
10826 _ACEOF
10827
10828 PRI_MACROS_BROKEN=1
10829 else
10830 PRI_MACROS_BROKEN=0
10831 fi
10832
10833
10834
10835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
10836 $as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
10837 if ${gl_cv_cc_double_expbit0+:} false; then :
10838 $as_echo_n "(cached) " >&6
10839 else
10840
10841 if test "$cross_compiling" = yes; then :
10842
10843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10844 /* end confdefs.h. */
10845
10846 #if defined arm || defined __arm || defined __arm__
10847 mixed_endianness
10848 #endif
10849
10850 _ACEOF
10851 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10852 $EGREP "mixed_endianness" >/dev/null 2>&1; then :
10853 gl_cv_cc_double_expbit0="unknown"
10854 else
10855
10856 :
10857 if ${ac_cv_c_bigendian+:} false; then :
10858 $as_echo_n "(cached) " >&6
10859 else
10860 ac_cv_c_bigendian=unknown
10861 # See if we're dealing with a universal compiler.
10862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10863 /* end confdefs.h. */
10864 #ifndef __APPLE_CC__
10865 not a universal capable compiler
10866 #endif
10867 typedef int dummy;
10868
10869 _ACEOF
10870 if ac_fn_c_try_compile "$LINENO"; then :
10871
10872 # Check for potential -arch flags. It is not universal unless
10873 # there are at least two -arch flags with different values.
10874 ac_arch=
10875 ac_prev=
10876 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
10877 if test -n "$ac_prev"; then
10878 case $ac_word in
10879 i?86 | x86_64 | ppc | ppc64)
10880 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
10881 ac_arch=$ac_word
10882 else
10883 ac_cv_c_bigendian=universal
10884 break
10885 fi
10886 ;;
10887 esac
10888 ac_prev=
10889 elif test "x$ac_word" = "x-arch"; then
10890 ac_prev=arch
10891 fi
10892 done
10893 fi
10894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10895 if test $ac_cv_c_bigendian = unknown; then
10896 # See if sys/param.h defines the BYTE_ORDER macro.
10897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10898 /* end confdefs.h. */
10899 #include <sys/types.h>
10900 #include <sys/param.h>
10901
10902 int
10903 main ()
10904 {
10905 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
10906 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
10907 && LITTLE_ENDIAN)
10908 bogus endian macros
10909 #endif
10910
10911 ;
10912 return 0;
10913 }
10914 _ACEOF
10915 if ac_fn_c_try_compile "$LINENO"; then :
10916 # It does; now see whether it defined to BIG_ENDIAN or not.
10917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10918 /* end confdefs.h. */
10919 #include <sys/types.h>
10920 #include <sys/param.h>
10921
10922 int
10923 main ()
10924 {
10925 #if BYTE_ORDER != BIG_ENDIAN
10926 not big endian
10927 #endif
10928
10929 ;
10930 return 0;
10931 }
10932 _ACEOF
10933 if ac_fn_c_try_compile "$LINENO"; then :
10934 ac_cv_c_bigendian=yes
10935 else
10936 ac_cv_c_bigendian=no
10937 fi
10938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10939 fi
10940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10941 fi
10942 if test $ac_cv_c_bigendian = unknown; then
10943 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
10944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10945 /* end confdefs.h. */
10946 #include <limits.h>
10947
10948 int
10949 main ()
10950 {
10951 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
10952 bogus endian macros
10953 #endif
10954
10955 ;
10956 return 0;
10957 }
10958 _ACEOF
10959 if ac_fn_c_try_compile "$LINENO"; then :
10960 # It does; now see whether it defined to _BIG_ENDIAN or not.
10961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10962 /* end confdefs.h. */
10963 #include <limits.h>
10964
10965 int
10966 main ()
10967 {
10968 #ifndef _BIG_ENDIAN
10969 not big endian
10970 #endif
10971
10972 ;
10973 return 0;
10974 }
10975 _ACEOF
10976 if ac_fn_c_try_compile "$LINENO"; then :
10977 ac_cv_c_bigendian=yes
10978 else
10979 ac_cv_c_bigendian=no
10980 fi
10981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10982 fi
10983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10984 fi
10985 if test $ac_cv_c_bigendian = unknown; then
10986 # Compile a test program.
10987 if test "$cross_compiling" = yes; then :
10988 # Try to guess by grepping values from an object file.
10989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10990 /* end confdefs.h. */
10991 short int ascii_mm[] =
10992 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10993 short int ascii_ii[] =
10994 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10995 int use_ascii (int i) {
10996 return ascii_mm[i] + ascii_ii[i];
10997 }
10998 short int ebcdic_ii[] =
10999 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
11000 short int ebcdic_mm[] =
11001 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
11002 int use_ebcdic (int i) {
11003 return ebcdic_mm[i] + ebcdic_ii[i];
11004 }
11005 extern int foo;
11006
11007 int
11008 main ()
11009 {
11010 return use_ascii (foo) == use_ebcdic (foo);
11011 ;
11012 return 0;
11013 }
11014 _ACEOF
11015 if ac_fn_c_try_compile "$LINENO"; then :
11016 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
11017 ac_cv_c_bigendian=yes
11018 fi
11019 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
11020 if test "$ac_cv_c_bigendian" = unknown; then
11021 ac_cv_c_bigendian=no
11022 else
11023 # finding both strings is unlikely to happen, but who knows?
11024 ac_cv_c_bigendian=unknown
11025 fi
11026 fi
11027 fi
11028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11029 else
11030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11031 /* end confdefs.h. */
11032 $ac_includes_default
11033 int
11034 main ()
11035 {
11036
11037 /* Are we little or big endian? From Harbison&Steele. */
11038 union
11039 {
11040 long int l;
11041 char c[sizeof (long int)];
11042 } u;
11043 u.l = 1;
11044 return u.c[sizeof (long int) - 1] == 1;
11045
11046 ;
11047 return 0;
11048 }
11049 _ACEOF
11050 if ac_fn_c_try_run "$LINENO"; then :
11051 ac_cv_c_bigendian=no
11052 else
11053 ac_cv_c_bigendian=yes
11054 fi
11055 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11056 conftest.$ac_objext conftest.beam conftest.$ac_ext
11057 fi
11058
11059 fi
11060 fi
11061 :
11062 case $ac_cv_c_bigendian in #(
11063 yes)
11064 gl_cv_cc_double_expbit0="word 0 bit 20";; #(
11065 no)
11066 gl_cv_cc_double_expbit0="word 1 bit 20" ;; #(
11067 universal)
11068
11069 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
11070
11071 ;; #(
11072 *)
11073 gl_cv_cc_double_expbit0="unknown" ;;
11074 esac
11075
11076
11077 fi
11078 rm -f conftest*
11079
11080
11081 else
11082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11083 /* end confdefs.h. */
11084
11085 #include <float.h>
11086 #include <stddef.h>
11087 #include <stdio.h>
11088 #include <string.h>
11089 #define NWORDS \
11090 ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
11091 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
11092 static unsigned int ored_words[NWORDS];
11093 static unsigned int anded_words[NWORDS];
11094 static void add_to_ored_words (double x)
11095 {
11096 memory_double m;
11097 size_t i;
11098 /* Clear it first, in case sizeof (double) < sizeof (memory_double). */
11099 memset (&m, 0, sizeof (memory_double));
11100 m.value = x;
11101 for (i = 0; i < NWORDS; i++)
11102 {
11103 ored_words[i] |= m.word[i];
11104 anded_words[i] &= m.word[i];
11105 }
11106 }
11107 int main ()
11108 {
11109 size_t j;
11110 FILE *fp = fopen ("conftest.out", "w");
11111 if (fp == NULL)
11112 return 1;
11113 for (j = 0; j < NWORDS; j++)
11114 anded_words[j] = ~ (unsigned int) 0;
11115 add_to_ored_words (0.25);
11116 add_to_ored_words (0.5);
11117 add_to_ored_words (1.0);
11118 add_to_ored_words (2.0);
11119 add_to_ored_words (4.0);
11120 /* Remove bits that are common (e.g. if representation of the first mantissa
11121 bit is explicit). */
11122 for (j = 0; j < NWORDS; j++)
11123 ored_words[j] &= ~anded_words[j];
11124 /* Now find the nonzero word. */
11125 for (j = 0; j < NWORDS; j++)
11126 if (ored_words[j] != 0)
11127 break;
11128 if (j < NWORDS)
11129 {
11130 size_t i;
11131 for (i = j + 1; i < NWORDS; i++)
11132 if (ored_words[i] != 0)
11133 {
11134 fprintf (fp, "unknown");
11135 return (fclose (fp) != 0);
11136 }
11137 for (i = 0; ; i++)
11138 if ((ored_words[j] >> i) & 1)
11139 {
11140 fprintf (fp, "word %d bit %d", (int) j, (int) i);
11141 return (fclose (fp) != 0);
11142 }
11143 }
11144 fprintf (fp, "unknown");
11145 return (fclose (fp) != 0);
11146 }
11147
11148 _ACEOF
11149 if ac_fn_c_try_run "$LINENO"; then :
11150 gl_cv_cc_double_expbit0=`cat conftest.out`
11151 else
11152 gl_cv_cc_double_expbit0="unknown"
11153 fi
11154 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11155 conftest.$ac_objext conftest.beam conftest.$ac_ext
11156 fi
11157
11158 rm -f conftest.out
11159
11160 fi
11161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
11162 $as_echo "$gl_cv_cc_double_expbit0" >&6; }
11163 case "$gl_cv_cc_double_expbit0" in
11164 word*bit*)
11165 word=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
11166 bit=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
11167
11168 cat >>confdefs.h <<_ACEOF
11169 #define DBL_EXPBIT0_WORD $word
11170 _ACEOF
11171
11172
11173 cat >>confdefs.h <<_ACEOF
11174 #define DBL_EXPBIT0_BIT $bit
11175 _ACEOF
11176
11177 ;;
11178 esac
11179
11180
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
11182 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
11183 if ${ac_cv_c_bigendian+:} false; then :
11184 $as_echo_n "(cached) " >&6
11185 else
11186 ac_cv_c_bigendian=unknown
11187 # See if we're dealing with a universal compiler.
11188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11189 /* end confdefs.h. */
11190 #ifndef __APPLE_CC__
11191 not a universal capable compiler
11192 #endif
11193 typedef int dummy;
11194
11195 _ACEOF
11196 if ac_fn_c_try_compile "$LINENO"; then :
11197
11198 # Check for potential -arch flags. It is not universal unless
11199 # there are at least two -arch flags with different values.
11200 ac_arch=
11201 ac_prev=
11202 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
11203 if test -n "$ac_prev"; then
11204 case $ac_word in
11205 i?86 | x86_64 | ppc | ppc64)
11206 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
11207 ac_arch=$ac_word
11208 else
11209 ac_cv_c_bigendian=universal
11210 break
11211 fi
11212 ;;
11213 esac
11214 ac_prev=
11215 elif test "x$ac_word" = "x-arch"; then
11216 ac_prev=arch
11217 fi
11218 done
11219 fi
11220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11221 if test $ac_cv_c_bigendian = unknown; then
11222 # See if sys/param.h defines the BYTE_ORDER macro.
11223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11224 /* end confdefs.h. */
11225 #include <sys/types.h>
11226 #include <sys/param.h>
11227
11228 int
11229 main ()
11230 {
11231 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
11232 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
11233 && LITTLE_ENDIAN)
11234 bogus endian macros
11235 #endif
11236
11237 ;
11238 return 0;
11239 }
11240 _ACEOF
11241 if ac_fn_c_try_compile "$LINENO"; then :
11242 # It does; now see whether it defined to BIG_ENDIAN or not.
11243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11244 /* end confdefs.h. */
11245 #include <sys/types.h>
11246 #include <sys/param.h>
11247
11248 int
11249 main ()
11250 {
11251 #if BYTE_ORDER != BIG_ENDIAN
11252 not big endian
11253 #endif
11254
11255 ;
11256 return 0;
11257 }
11258 _ACEOF
11259 if ac_fn_c_try_compile "$LINENO"; then :
11260 ac_cv_c_bigendian=yes
11261 else
11262 ac_cv_c_bigendian=no
11263 fi
11264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11265 fi
11266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11267 fi
11268 if test $ac_cv_c_bigendian = unknown; then
11269 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
11270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11271 /* end confdefs.h. */
11272 #include <limits.h>
11273
11274 int
11275 main ()
11276 {
11277 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
11278 bogus endian macros
11279 #endif
11280
11281 ;
11282 return 0;
11283 }
11284 _ACEOF
11285 if ac_fn_c_try_compile "$LINENO"; then :
11286 # It does; now see whether it defined to _BIG_ENDIAN or not.
11287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11288 /* end confdefs.h. */
11289 #include <limits.h>
11290
11291 int
11292 main ()
11293 {
11294 #ifndef _BIG_ENDIAN
11295 not big endian
11296 #endif
11297
11298 ;
11299 return 0;
11300 }
11301 _ACEOF
11302 if ac_fn_c_try_compile "$LINENO"; then :
11303 ac_cv_c_bigendian=yes
11304 else
11305 ac_cv_c_bigendian=no
11306 fi
11307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11308 fi
11309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11310 fi
11311 if test $ac_cv_c_bigendian = unknown; then
11312 # Compile a test program.
11313 if test "$cross_compiling" = yes; then :
11314 # Try to guess by grepping values from an object file.
11315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11316 /* end confdefs.h. */
11317 short int ascii_mm[] =
11318 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
11319 short int ascii_ii[] =
11320 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
11321 int use_ascii (int i) {
11322 return ascii_mm[i] + ascii_ii[i];
11323 }
11324 short int ebcdic_ii[] =
11325 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
11326 short int ebcdic_mm[] =
11327 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
11328 int use_ebcdic (int i) {
11329 return ebcdic_mm[i] + ebcdic_ii[i];
11330 }
11331 extern int foo;
11332
11333 int
11334 main ()
11335 {
11336 return use_ascii (foo) == use_ebcdic (foo);
11337 ;
11338 return 0;
11339 }
11340 _ACEOF
11341 if ac_fn_c_try_compile "$LINENO"; then :
11342 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
11343 ac_cv_c_bigendian=yes
11344 fi
11345 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
11346 if test "$ac_cv_c_bigendian" = unknown; then
11347 ac_cv_c_bigendian=no
11348 else
11349 # finding both strings is unlikely to happen, but who knows?
11350 ac_cv_c_bigendian=unknown
11351 fi
11352 fi
11353 fi
11354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11355 else
11356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11357 /* end confdefs.h. */
11358 $ac_includes_default
11359 int
11360 main ()
11361 {
11362
11363 /* Are we little or big endian? From Harbison&Steele. */
11364 union
11365 {
11366 long int l;
11367 char c[sizeof (long int)];
11368 } u;
11369 u.l = 1;
11370 return u.c[sizeof (long int) - 1] == 1;
11371
11372 ;
11373 return 0;
11374 }
11375 _ACEOF
11376 if ac_fn_c_try_run "$LINENO"; then :
11377 ac_cv_c_bigendian=no
11378 else
11379 ac_cv_c_bigendian=yes
11380 fi
11381 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11382 conftest.$ac_objext conftest.beam conftest.$ac_ext
11383 fi
11384
11385 fi
11386 fi
11387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
11388 $as_echo "$ac_cv_c_bigendian" >&6; }
11389 case $ac_cv_c_bigendian in #(
11390 yes)
11391 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
11392 ;; #(
11393 no)
11394 ;; #(
11395 universal)
11396
11397 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
11398
11399 ;; #(
11400 *)
11401 as_fn_error $? "unknown endianness
11402 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
11403 esac
11404
11405
11406
11407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
11408 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11409 if ${am_cv_langinfo_codeset+:} false; then :
11410 $as_echo_n "(cached) " >&6
11411 else
11412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11413 /* end confdefs.h. */
11414 #include <langinfo.h>
11415 int
11416 main ()
11417 {
11418 char* cs = nl_langinfo(CODESET); return !cs;
11419 ;
11420 return 0;
11421 }
11422 _ACEOF
11423 if ac_fn_c_try_link "$LINENO"; then :
11424 am_cv_langinfo_codeset=yes
11425 else
11426 am_cv_langinfo_codeset=no
11427 fi
11428 rm -f core conftest.err conftest.$ac_objext \
11429 conftest$ac_exeext conftest.$ac_ext
11430
11431 fi
11432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
11433 $as_echo "$am_cv_langinfo_codeset" >&6; }
11434 if test $am_cv_langinfo_codeset = yes; then
11435
11436 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
11437
11438 fi
11439
11440
11441 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
11442 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
11443 ac_have_decl=1
11444 else
11445 ac_have_decl=0
11446 fi
11447
11448 cat >>confdefs.h <<_ACEOF
11449 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
11450 _ACEOF
11451
11452
11453
11454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
11455 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
11456 if ${ac_cv_gnu_library_2_1+:} false; then :
11457 $as_echo_n "(cached) " >&6
11458 else
11459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11460 /* end confdefs.h. */
11461
11462 #include <features.h>
11463 #ifdef __GNU_LIBRARY__
11464 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
11465 Lucky GNU user
11466 #endif
11467 #endif
11468 #ifdef __UCLIBC__
11469 Lucky user
11470 #endif
11471
11472 _ACEOF
11473 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11474 $EGREP "Lucky" >/dev/null 2>&1; then :
11475 ac_cv_gnu_library_2_1=yes
11476 else
11477 ac_cv_gnu_library_2_1=no
11478 fi
11479 rm -f conftest*
11480
11481
11482
11483 fi
11484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
11485 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
11486
11487 GLIBC21="$ac_cv_gnu_library_2_1"
11488
11489
11490
11491
11492
11493
11494
11495
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
11497 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
11498 if ${gl_cv_func_malloc_posix+:} false; then :
11499 $as_echo_n "(cached) " >&6
11500 else
11501
11502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11503 /* end confdefs.h. */
11504
11505 int
11506 main ()
11507 {
11508 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
11509 choke me
11510 #endif
11511
11512 ;
11513 return 0;
11514 }
11515 _ACEOF
11516 if ac_fn_c_try_compile "$LINENO"; then :
11517 gl_cv_func_malloc_posix=yes
11518 else
11519 gl_cv_func_malloc_posix=no
11520 fi
11521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11522
11523 fi
11524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
11525 $as_echo "$gl_cv_func_malloc_posix" >&6; }
11526
11527
11528
11529 for ac_header in stdlib.h
11530 do :
11531 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
11532 if test "x$ac_cv_header_stdlib_h" = xyes; then :
11533 cat >>confdefs.h <<_ACEOF
11534 #define HAVE_STDLIB_H 1
11535 _ACEOF
11536
11537 fi
11538
11539 done
11540
11541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
11542 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
11543 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
11544 $as_echo_n "(cached) " >&6
11545 else
11546 if test "$cross_compiling" = yes; then :
11547 case "$host_os" in
11548 # Guess yes on platforms where we know the result.
11549 *-gnu* | freebsd* | netbsd* | openbsd* \
11550 | hpux* | solaris* | cygwin* | mingw*)
11551 ac_cv_func_malloc_0_nonnull=yes ;;
11552 # If we don't know, assume the worst.
11553 *) ac_cv_func_malloc_0_nonnull=no ;;
11554 esac
11555
11556 else
11557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11558 /* end confdefs.h. */
11559 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
11560 # include <stdlib.h>
11561 #else
11562 char *malloc ();
11563 #endif
11564
11565 int
11566 main ()
11567 {
11568 char *p = malloc (0);
11569 int result = !p;
11570 free (p);
11571 return result;
11572 ;
11573 return 0;
11574 }
11575
11576 _ACEOF
11577 if ac_fn_c_try_run "$LINENO"; then :
11578 ac_cv_func_malloc_0_nonnull=yes
11579 else
11580 ac_cv_func_malloc_0_nonnull=no
11581 fi
11582 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11583 conftest.$ac_objext conftest.beam conftest.$ac_ext
11584 fi
11585
11586
11587 fi
11588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
11589 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
11590 if test $ac_cv_func_malloc_0_nonnull = yes; then :
11591 gl_cv_func_malloc_0_nonnull=1
11592 else
11593 gl_cv_func_malloc_0_nonnull=0
11594 fi
11595
11596
11597 cat >>confdefs.h <<_ACEOF
11598 #define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
11599 _ACEOF
11600
11601
11602
11603
11604
11605
11606
11607
11608 GNULIB_BTOWC=0;
11609 GNULIB_WCTOB=0;
11610 GNULIB_MBSINIT=0;
11611 GNULIB_MBRTOWC=0;
11612 GNULIB_MBRLEN=0;
11613 GNULIB_MBSRTOWCS=0;
11614 GNULIB_MBSNRTOWCS=0;
11615 GNULIB_WCRTOMB=0;
11616 GNULIB_WCSRTOMBS=0;
11617 GNULIB_WCSNRTOMBS=0;
11618 GNULIB_WCWIDTH=0;
11619 GNULIB_WMEMCHR=0;
11620 GNULIB_WMEMCMP=0;
11621 GNULIB_WMEMCPY=0;
11622 GNULIB_WMEMMOVE=0;
11623 GNULIB_WMEMSET=0;
11624 GNULIB_WCSLEN=0;
11625 GNULIB_WCSNLEN=0;
11626 GNULIB_WCSCPY=0;
11627 GNULIB_WCPCPY=0;
11628 GNULIB_WCSNCPY=0;
11629 GNULIB_WCPNCPY=0;
11630 GNULIB_WCSCAT=0;
11631 GNULIB_WCSNCAT=0;
11632 GNULIB_WCSCMP=0;
11633 GNULIB_WCSNCMP=0;
11634 GNULIB_WCSCASECMP=0;
11635 GNULIB_WCSNCASECMP=0;
11636 GNULIB_WCSCOLL=0;
11637 GNULIB_WCSXFRM=0;
11638 GNULIB_WCSDUP=0;
11639 GNULIB_WCSCHR=0;
11640 GNULIB_WCSRCHR=0;
11641 GNULIB_WCSCSPN=0;
11642 GNULIB_WCSSPN=0;
11643 GNULIB_WCSPBRK=0;
11644 GNULIB_WCSSTR=0;
11645 GNULIB_WCSTOK=0;
11646 GNULIB_WCSWIDTH=0;
11647 HAVE_BTOWC=1;
11648 HAVE_MBSINIT=1;
11649 HAVE_MBRTOWC=1;
11650 HAVE_MBRLEN=1;
11651 HAVE_MBSRTOWCS=1;
11652 HAVE_MBSNRTOWCS=1;
11653 HAVE_WCRTOMB=1;
11654 HAVE_WCSRTOMBS=1;
11655 HAVE_WCSNRTOMBS=1;
11656 HAVE_WMEMCHR=1;
11657 HAVE_WMEMCMP=1;
11658 HAVE_WMEMCPY=1;
11659 HAVE_WMEMMOVE=1;
11660 HAVE_WMEMSET=1;
11661 HAVE_WCSLEN=1;
11662 HAVE_WCSNLEN=1;
11663 HAVE_WCSCPY=1;
11664 HAVE_WCPCPY=1;
11665 HAVE_WCSNCPY=1;
11666 HAVE_WCPNCPY=1;
11667 HAVE_WCSCAT=1;
11668 HAVE_WCSNCAT=1;
11669 HAVE_WCSCMP=1;
11670 HAVE_WCSNCMP=1;
11671 HAVE_WCSCASECMP=1;
11672 HAVE_WCSNCASECMP=1;
11673 HAVE_WCSCOLL=1;
11674 HAVE_WCSXFRM=1;
11675 HAVE_WCSDUP=1;
11676 HAVE_WCSCHR=1;
11677 HAVE_WCSRCHR=1;
11678 HAVE_WCSCSPN=1;
11679 HAVE_WCSSPN=1;
11680 HAVE_WCSPBRK=1;
11681 HAVE_WCSSTR=1;
11682 HAVE_WCSTOK=1;
11683 HAVE_WCSWIDTH=1;
11684 HAVE_DECL_WCTOB=1;
11685 HAVE_DECL_WCWIDTH=1;
11686 REPLACE_MBSTATE_T=0;
11687 REPLACE_BTOWC=0;
11688 REPLACE_WCTOB=0;
11689 REPLACE_MBSINIT=0;
11690 REPLACE_MBRTOWC=0;
11691 REPLACE_MBRLEN=0;
11692 REPLACE_MBSRTOWCS=0;
11693 REPLACE_MBSNRTOWCS=0;
11694 REPLACE_WCRTOMB=0;
11695 REPLACE_WCSRTOMBS=0;
11696 REPLACE_WCSNRTOMBS=0;
11697 REPLACE_WCWIDTH=0;
11698 REPLACE_WCSWIDTH=0;
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
11714 $as_echo_n "checking for a traditional japanese locale... " >&6; }
11715 if ${gt_cv_locale_ja+:} false; then :
11716 $as_echo_n "(cached) " >&6
11717 else
11718
11719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11720 /* end confdefs.h. */
11721
11722 #include <locale.h>
11723 #include <time.h>
11724 #if HAVE_LANGINFO_CODESET
11725 # include <langinfo.h>
11726 #endif
11727 #include <stdlib.h>
11728 #include <string.h>
11729 struct tm t;
11730 char buf[16];
11731 int main ()
11732 {
11733 const char *p;
11734 /* Check whether the given locale name is recognized by the system. */
11735 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
11736 /* On native Windows, setlocale(category, "") looks at the system settings,
11737 not at the environment variables. Also, when an encoding suffix such
11738 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
11739 category of the locale to "C". */
11740 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
11741 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
11742 return 1;
11743 #else
11744 if (setlocale (LC_ALL, "") == NULL) return 1;
11745 #endif
11746 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
11747 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
11748 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
11749 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
11750 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
11751 some unit tests fail.
11752 On MirBSD 10, when an unsupported locale is specified, setlocale()
11753 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
11754 #if HAVE_LANGINFO_CODESET
11755 {
11756 const char *cs = nl_langinfo (CODESET);
11757 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
11758 || strcmp (cs, "UTF-8") == 0)
11759 return 1;
11760 }
11761 #endif
11762 #ifdef __CYGWIN__
11763 /* On Cygwin, avoid locale names without encoding suffix, because the
11764 locale_charset() function relies on the encoding suffix. Note that
11765 LC_ALL is set on the command line. */
11766 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
11767 #endif
11768 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales
11769 on Cygwin 1.5.x. */
11770 if (MB_CUR_MAX == 1)
11771 return 1;
11772 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
11773 This excludes the UTF-8 encoding (except on MirBSD). */
11774 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
11775 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
11776 for (p = buf; *p != '\0'; p++)
11777 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
11778 return 1;
11779 return 0;
11780 }
11781
11782 _ACEOF
11783 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11784 (eval $ac_link) 2>&5
11785 ac_status=$?
11786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11787 test $ac_status = 0; } && test -s conftest$ac_exeext; then
11788 case "$host_os" in
11789 # Handle native Windows specially, because there setlocale() interprets
11790 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
11791 # "fr" or "fra" as "French" or "French_France.1252",
11792 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
11793 # "ja" as "Japanese" or "Japanese_Japan.932",
11794 # and similar.
11795 mingw*)
11796 # Note that on native Windows, the Japanese locale is
11797 # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
11798 # cannot use it here.
11799 gt_cv_locale_ja=none
11800 ;;
11801 *)
11802 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
11803 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
11804 # configure script would override the LC_ALL setting. Likewise for
11805 # LC_CTYPE, which is also set at the beginning of the configure script.
11806 # Test for the AIX locale name.
11807 if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
11808 gt_cv_locale_ja=ja_JP
11809 else
11810 # Test for the locale name with explicit encoding suffix.
11811 if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
11812 gt_cv_locale_ja=ja_JP.EUC-JP
11813 else
11814 # Test for the HP-UX, OSF/1, NetBSD locale name.
11815 if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
11816 gt_cv_locale_ja=ja_JP.eucJP
11817 else
11818 # Test for the IRIX, FreeBSD locale name.
11819 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
11820 gt_cv_locale_ja=ja_JP.EUC
11821 else
11822 # Test for the Solaris 7 locale name.
11823 if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
11824 gt_cv_locale_ja=ja
11825 else
11826 # Special test for NetBSD 1.6.
11827 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
11828 gt_cv_locale_ja=ja_JP.eucJP
11829 else
11830 # None found.
11831 gt_cv_locale_ja=none
11832 fi
11833 fi
11834 fi
11835 fi
11836 fi
11837 fi
11838 ;;
11839 esac
11840 fi
11841 rm -fr conftest*
11842
11843 fi
11844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
11845 $as_echo "$gt_cv_locale_ja" >&6; }
11846 LOCALE_JA=$gt_cv_locale_ja
11847
11848
11849
11850
11851
11852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
11853 $as_echo_n "checking for a transitional chinese locale... " >&6; }
11854 if ${gt_cv_locale_zh_CN+:} false; then :
11855 $as_echo_n "(cached) " >&6
11856 else
11857
11858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11859 /* end confdefs.h. */
11860
11861 #include <locale.h>
11862 #include <stdlib.h>
11863 #include <time.h>
11864 #if HAVE_LANGINFO_CODESET
11865 # include <langinfo.h>
11866 #endif
11867 #include <stdlib.h>
11868 #include <string.h>
11869 struct tm t;
11870 char buf[16];
11871 int main ()
11872 {
11873 const char *p;
11874 /* Check whether the given locale name is recognized by the system. */
11875 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
11876 /* On native Windows, setlocale(category, "") looks at the system settings,
11877 not at the environment variables. Also, when an encoding suffix such
11878 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
11879 category of the locale to "C". */
11880 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
11881 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
11882 return 1;
11883 #else
11884 if (setlocale (LC_ALL, "") == NULL) return 1;
11885 #endif
11886 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
11887 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
11888 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
11889 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
11890 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
11891 some unit tests fail.
11892 On MirBSD 10, when an unsupported locale is specified, setlocale()
11893 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
11894 #if HAVE_LANGINFO_CODESET
11895 {
11896 const char *cs = nl_langinfo (CODESET);
11897 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
11898 || strcmp (cs, "UTF-8") == 0)
11899 return 1;
11900 }
11901 #endif
11902 #ifdef __CYGWIN__
11903 /* On Cygwin, avoid locale names without encoding suffix, because the
11904 locale_charset() function relies on the encoding suffix. Note that
11905 LC_ALL is set on the command line. */
11906 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
11907 #endif
11908 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
11909 This excludes the UTF-8 encoding (except on MirBSD). */
11910 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
11911 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
11912 for (p = buf; *p != '\0'; p++)
11913 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
11914 return 1;
11915 /* Check whether a typical GB18030 multibyte sequence is recognized as a
11916 single wide character. This excludes the GB2312 and GBK encodings. */
11917 if (mblen ("\203\062\332\066", 5) != 4)
11918 return 1;
11919 return 0;
11920 }
11921
11922 _ACEOF
11923 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11924 (eval $ac_link) 2>&5
11925 ac_status=$?
11926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11927 test $ac_status = 0; } && test -s conftest$ac_exeext; then
11928 case "$host_os" in
11929 # Handle native Windows specially, because there setlocale() interprets
11930 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
11931 # "fr" or "fra" as "French" or "French_France.1252",
11932 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
11933 # "ja" as "Japanese" or "Japanese_Japan.932",
11934 # and similar.
11935 mingw*)
11936 # Test for the hypothetical native Windows locale name.
11937 if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
11938 gt_cv_locale_zh_CN=Chinese_China.54936
11939 else
11940 # None found.
11941 gt_cv_locale_zh_CN=none
11942 fi
11943 ;;
11944 solaris2.8)
11945 # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
11946 # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
11947 # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
11948 gt_cv_locale_zh_CN=none
11949 ;;
11950 *)
11951 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
11952 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
11953 # configure script would override the LC_ALL setting. Likewise for
11954 # LC_CTYPE, which is also set at the beginning of the configure script.
11955 # Test for the locale name without encoding suffix.
11956 if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
11957 gt_cv_locale_zh_CN=zh_CN
11958 else
11959 # Test for the locale name with explicit encoding suffix.
11960 if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
11961 gt_cv_locale_zh_CN=zh_CN.GB18030
11962 else
11963 # None found.
11964 gt_cv_locale_zh_CN=none
11965 fi
11966 fi
11967 ;;
11968 esac
11969 else
11970 # If there was a link error, due to mblen(), the system is so old that
11971 # it certainly doesn't have a chinese locale.
11972 gt_cv_locale_zh_CN=none
11973 fi
11974 rm -fr conftest*
11975
11976 fi
11977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
11978 $as_echo "$gt_cv_locale_zh_CN" >&6; }
11979 LOCALE_ZH_CN=$gt_cv_locale_zh_CN
11980
11981
11982
11983
11984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
11985 $as_echo_n "checking for a french Unicode locale... " >&6; }
11986 if ${gt_cv_locale_fr_utf8+:} false; then :
11987 $as_echo_n "(cached) " >&6
11988 else
11989
11990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11991 /* end confdefs.h. */
11992
11993 #include <locale.h>
11994 #include <time.h>
11995 #if HAVE_LANGINFO_CODESET
11996 # include <langinfo.h>
11997 #endif
11998 #include <stdlib.h>
11999 #include <string.h>
12000 struct tm t;
12001 char buf[16];
12002 int main () {
12003 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
12004 imitates locale dependent behaviour by looking at the environment
12005 variables, and all locales use the UTF-8 encoding. */
12006 #if !(defined __BEOS__ || defined __HAIKU__)
12007 /* Check whether the given locale name is recognized by the system. */
12008 # if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
12009 /* On native Windows, setlocale(category, "") looks at the system settings,
12010 not at the environment variables. Also, when an encoding suffix such
12011 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
12012 category of the locale to "C". */
12013 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
12014 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
12015 return 1;
12016 # else
12017 if (setlocale (LC_ALL, "") == NULL) return 1;
12018 # endif
12019 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
12020 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
12021 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
12022 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
12023 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
12024 some unit tests fail. */
12025 # if HAVE_LANGINFO_CODESET
12026 {
12027 const char *cs = nl_langinfo (CODESET);
12028 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
12029 return 1;
12030 }
12031 # endif
12032 # ifdef __CYGWIN__
12033 /* On Cygwin, avoid locale names without encoding suffix, because the
12034 locale_charset() function relies on the encoding suffix. Note that
12035 LC_ALL is set on the command line. */
12036 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
12037 # endif
12038 /* Check whether in the abbreviation of the second month, the second
12039 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
12040 two bytes long, with UTF-8 encoding. */
12041 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
12042 if (strftime (buf, sizeof (buf), "%b", &t) < 4
12043 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
12044 return 1;
12045 #endif
12046 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
12047 /* Check whether the decimal separator is a comma.
12048 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
12049 are nl_langinfo(RADIXCHAR) are both ".". */
12050 if (localeconv () ->decimal_point[0] != ',') return 1;
12051 #endif
12052 return 0;
12053 }
12054
12055 _ACEOF
12056 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12057 (eval $ac_link) 2>&5
12058 ac_status=$?
12059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12060 test $ac_status = 0; } && test -s conftest$ac_exeext; then
12061 case "$host_os" in
12062 # Handle native Windows specially, because there setlocale() interprets
12063 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
12064 # "fr" or "fra" as "French" or "French_France.1252",
12065 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
12066 # "ja" as "Japanese" or "Japanese_Japan.932",
12067 # and similar.
12068 mingw*)
12069 # Test for the hypothetical native Windows locale name.
12070 if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
12071 gt_cv_locale_fr_utf8=French_France.65001
12072 else
12073 # None found.
12074 gt_cv_locale_fr_utf8=none
12075 fi
12076 ;;
12077 *)
12078 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
12079 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
12080 # configure script would override the LC_ALL setting. Likewise for
12081 # LC_CTYPE, which is also set at the beginning of the configure script.
12082 # Test for the usual locale name.
12083 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
12084 gt_cv_locale_fr_utf8=fr_FR
12085 else
12086 # Test for the locale name with explicit encoding suffix.
12087 if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
12088 gt_cv_locale_fr_utf8=fr_FR.UTF-8
12089 else
12090 # Test for the Solaris 7 locale name.
12091 if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
12092 gt_cv_locale_fr_utf8=fr.UTF-8
12093 else
12094 # None found.
12095 gt_cv_locale_fr_utf8=none
12096 fi
12097 fi
12098 fi
12099 ;;
12100 esac
12101 fi
12102 rm -fr conftest*
12103
12104 fi
12105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
12106 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
12107 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
12108
12109
12110
12111
12112
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
12114 $as_echo_n "checking for a traditional french locale... " >&6; }
12115 if ${gt_cv_locale_fr+:} false; then :
12116 $as_echo_n "(cached) " >&6
12117 else
12118
12119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12120 /* end confdefs.h. */
12121
12122 #include <locale.h>
12123 #include <time.h>
12124 #if HAVE_LANGINFO_CODESET
12125 # include <langinfo.h>
12126 #endif
12127 #include <stdlib.h>
12128 #include <string.h>
12129 struct tm t;
12130 char buf[16];
12131 int main () {
12132 /* Check whether the given locale name is recognized by the system. */
12133 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
12134 /* On native Windows, setlocale(category, "") looks at the system settings,
12135 not at the environment variables. Also, when an encoding suffix such
12136 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
12137 category of the locale to "C". */
12138 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
12139 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
12140 return 1;
12141 #else
12142 if (setlocale (LC_ALL, "") == NULL) return 1;
12143 #endif
12144 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
12145 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
12146 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
12147 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
12148 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
12149 some unit tests fail.
12150 On MirBSD 10, when an unsupported locale is specified, setlocale()
12151 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
12152 #if HAVE_LANGINFO_CODESET
12153 {
12154 const char *cs = nl_langinfo (CODESET);
12155 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
12156 || strcmp (cs, "UTF-8") == 0)
12157 return 1;
12158 }
12159 #endif
12160 #ifdef __CYGWIN__
12161 /* On Cygwin, avoid locale names without encoding suffix, because the
12162 locale_charset() function relies on the encoding suffix. Note that
12163 LC_ALL is set on the command line. */
12164 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
12165 #endif
12166 /* Check whether in the abbreviation of the second month, the second
12167 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
12168 one byte long. This excludes the UTF-8 encoding. */
12169 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
12170 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
12171 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
12172 /* Check whether the decimal separator is a comma.
12173 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
12174 are nl_langinfo(RADIXCHAR) are both ".". */
12175 if (localeconv () ->decimal_point[0] != ',') return 1;
12176 #endif
12177 return 0;
12178 }
12179
12180 _ACEOF
12181 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12182 (eval $ac_link) 2>&5
12183 ac_status=$?
12184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12185 test $ac_status = 0; } && test -s conftest$ac_exeext; then
12186 case "$host_os" in
12187 # Handle native Windows specially, because there setlocale() interprets
12188 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
12189 # "fr" or "fra" as "French" or "French_France.1252",
12190 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
12191 # "ja" as "Japanese" or "Japanese_Japan.932",
12192 # and similar.
12193 mingw*)
12194 # Test for the native Windows locale name.
12195 if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
12196 gt_cv_locale_fr=French_France.1252
12197 else
12198 # None found.
12199 gt_cv_locale_fr=none
12200 fi
12201 ;;
12202 *)
12203 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
12204 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
12205 # configure script would override the LC_ALL setting. Likewise for
12206 # LC_CTYPE, which is also set at the beginning of the configure script.
12207 # Test for the usual locale name.
12208 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
12209 gt_cv_locale_fr=fr_FR
12210 else
12211 # Test for the locale name with explicit encoding suffix.
12212 if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
12213 gt_cv_locale_fr=fr_FR.ISO-8859-1
12214 else
12215 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
12216 if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
12217 gt_cv_locale_fr=fr_FR.ISO8859-1
12218 else
12219 # Test for the HP-UX locale name.
12220 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
12221 gt_cv_locale_fr=fr_FR.iso88591
12222 else
12223 # Test for the Solaris 7 locale name.
12224 if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
12225 gt_cv_locale_fr=fr
12226 else
12227 # None found.
12228 gt_cv_locale_fr=none
12229 fi
12230 fi
12231 fi
12232 fi
12233 fi
12234 ;;
12235 esac
12236 fi
12237 rm -fr conftest*
12238
12239 fi
12240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
12241 $as_echo "$gt_cv_locale_fr" >&6; }
12242 LOCALE_FR=$gt_cv_locale_fr
12243
12244
12245
12246
12247
12248
12249
12250
12251
12252
12253
12254
12255
12256 GNULIB_FFSL=0;
12257 GNULIB_FFSLL=0;
12258 GNULIB_MEMCHR=0;
12259 GNULIB_MEMMEM=0;
12260 GNULIB_MEMPCPY=0;
12261 GNULIB_MEMRCHR=0;
12262 GNULIB_RAWMEMCHR=0;
12263 GNULIB_STPCPY=0;
12264 GNULIB_STPNCPY=0;
12265 GNULIB_STRCHRNUL=0;
12266 GNULIB_STRDUP=0;
12267 GNULIB_STRNCAT=0;
12268 GNULIB_STRNDUP=0;
12269 GNULIB_STRNLEN=0;
12270 GNULIB_STRPBRK=0;
12271 GNULIB_STRSEP=0;
12272 GNULIB_STRSTR=0;
12273 GNULIB_STRCASESTR=0;
12274 GNULIB_STRTOK_R=0;
12275 GNULIB_MBSLEN=0;
12276 GNULIB_MBSNLEN=0;
12277 GNULIB_MBSCHR=0;
12278 GNULIB_MBSRCHR=0;
12279 GNULIB_MBSSTR=0;
12280 GNULIB_MBSCASECMP=0;
12281 GNULIB_MBSNCASECMP=0;
12282 GNULIB_MBSPCASECMP=0;
12283 GNULIB_MBSCASESTR=0;
12284 GNULIB_MBSCSPN=0;
12285 GNULIB_MBSPBRK=0;
12286 GNULIB_MBSSPN=0;
12287 GNULIB_MBSSEP=0;
12288 GNULIB_MBSTOK_R=0;
12289 GNULIB_STRERROR=0;
12290 GNULIB_STRERROR_R=0;
12291 GNULIB_STRSIGNAL=0;
12292 GNULIB_STRVERSCMP=0;
12293 HAVE_MBSLEN=0;
12294 HAVE_FFSL=1;
12295 HAVE_FFSLL=1;
12296 HAVE_MEMCHR=1;
12297 HAVE_DECL_MEMMEM=1;
12298 HAVE_MEMPCPY=1;
12299 HAVE_DECL_MEMRCHR=1;
12300 HAVE_RAWMEMCHR=1;
12301 HAVE_STPCPY=1;
12302 HAVE_STPNCPY=1;
12303 HAVE_STRCHRNUL=1;
12304 HAVE_DECL_STRDUP=1;
12305 HAVE_DECL_STRNDUP=1;
12306 HAVE_DECL_STRNLEN=1;
12307 HAVE_STRPBRK=1;
12308 HAVE_STRSEP=1;
12309 HAVE_STRCASESTR=1;
12310 HAVE_DECL_STRTOK_R=1;
12311 HAVE_DECL_STRERROR_R=1;
12312 HAVE_DECL_STRSIGNAL=1;
12313 HAVE_STRVERSCMP=1;
12314 REPLACE_MEMCHR=0;
12315 REPLACE_MEMMEM=0;
12316 REPLACE_STPNCPY=0;
12317 REPLACE_STRDUP=0;
12318 REPLACE_STRSTR=0;
12319 REPLACE_STRCASESTR=0;
12320 REPLACE_STRCHRNUL=0;
12321 REPLACE_STRERROR=0;
12322 REPLACE_STRERROR_R=0;
12323 REPLACE_STRNCAT=0;
12324 REPLACE_STRNDUP=0;
12325 REPLACE_STRNLEN=0;
12326 REPLACE_STRSIGNAL=0;
12327 REPLACE_STRTOK_R=0;
12328 UNDEFINE_STRTOK_R=0;
12329
12330
12331
12332
12333
12334 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
12335 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
12336 # irrelevant for anonymous mappings.
12337 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
12338 if test "x$ac_cv_func_mmap" = xyes; then :
12339 gl_have_mmap=yes
12340 else
12341 gl_have_mmap=no
12342 fi
12343
12344
12345 # Try to allow MAP_ANONYMOUS.
12346 gl_have_mmap_anonymous=no
12347 if test $gl_have_mmap = yes; then
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
12349 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
12350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12351 /* end confdefs.h. */
12352
12353 #include <sys/mman.h>
12354 #ifdef MAP_ANONYMOUS
12355 I cannot identify this map
12356 #endif
12357
12358 _ACEOF
12359 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12360 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
12361 gl_have_mmap_anonymous=yes
12362 fi
12363 rm -f conftest*
12364
12365 if test $gl_have_mmap_anonymous != yes; then
12366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12367 /* end confdefs.h. */
12368
12369 #include <sys/mman.h>
12370 #ifdef MAP_ANON
12371 I cannot identify this map
12372 #endif
12373
12374 _ACEOF
12375 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12376 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
12377
12378 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
12379
12380 gl_have_mmap_anonymous=yes
12381 fi
12382 rm -f conftest*
12383
12384 fi
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
12386 $as_echo "$gl_have_mmap_anonymous" >&6; }
12387 if test $gl_have_mmap_anonymous = yes; then
12388
12389 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
12390
12391 fi
12392 fi
12393
12394
12395 :
12396
12397
12398
12399
12400
12401
12402 :
12403
12404
12405
12406
12407
12408
12409
12410
12411 if test $HAVE_MEMCHR = 1; then
12412 # Detect platform-specific bugs in some versions of glibc:
12413 # memchr should not dereference anything with length 0
12414 # http://bugzilla.redhat.com/499689
12415 # memchr should not dereference overestimated length after a match
12416 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
12417 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
12418 # Assume that memchr works on platforms that lack mprotect.
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
12420 $as_echo_n "checking whether memchr works... " >&6; }
12421 if ${gl_cv_func_memchr_works+:} false; then :
12422 $as_echo_n "(cached) " >&6
12423 else
12424 if test "$cross_compiling" = yes; then :
12425 gl_cv_func_memchr_works="guessing no"
12426 else
12427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12428 /* end confdefs.h. */
12429
12430 #include <string.h>
12431 #if HAVE_SYS_MMAN_H
12432 # include <fcntl.h>
12433 # include <unistd.h>
12434 # include <sys/types.h>
12435 # include <sys/mman.h>
12436 # ifndef MAP_FILE
12437 # define MAP_FILE 0
12438 # endif
12439 #endif
12440
12441 int
12442 main ()
12443 {
12444
12445 int result = 0;
12446 char *fence = NULL;
12447 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
12448 # if HAVE_MAP_ANONYMOUS
12449 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
12450 const int fd = -1;
12451 # else /* !HAVE_MAP_ANONYMOUS */
12452 const int flags = MAP_FILE | MAP_PRIVATE;
12453 int fd = open ("/dev/zero", O_RDONLY, 0666);
12454 if (fd >= 0)
12455 # endif
12456 {
12457 int pagesize = getpagesize ();
12458 char *two_pages =
12459 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
12460 flags, fd, 0);
12461 if (two_pages != (char *)(-1)
12462 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
12463 fence = two_pages + pagesize;
12464 }
12465 #endif
12466 if (fence)
12467 {
12468 if (memchr (fence, 0, 0))
12469 result |= 1;
12470 strcpy (fence - 9, "12345678");
12471 if (memchr (fence - 9, 0, 79) != fence - 1)
12472 result |= 2;
12473 if (memchr (fence - 1, 0, 3) != fence - 1)
12474 result |= 4;
12475 }
12476 return result;
12477
12478 ;
12479 return 0;
12480 }
12481 _ACEOF
12482 if ac_fn_c_try_run "$LINENO"; then :
12483 gl_cv_func_memchr_works=yes
12484 else
12485 gl_cv_func_memchr_works=no
12486 fi
12487 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12488 conftest.$ac_objext conftest.beam conftest.$ac_ext
12489 fi
12490
12491 fi
12492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
12493 $as_echo "$gl_cv_func_memchr_works" >&6; }
12494 if test "$gl_cv_func_memchr_works" != yes; then
12495 REPLACE_MEMCHR=1
12496 fi
12497 fi
12498
12499
12500 ac_fn_c_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
12501 if test "x$ac_cv_have_decl_memmem" = xyes; then :
12502 ac_have_decl=1
12503 else
12504 ac_have_decl=0
12505 fi
12506
12507 cat >>confdefs.h <<_ACEOF
12508 #define HAVE_DECL_MEMMEM $ac_have_decl
12509 _ACEOF
12510
12511
12512
12513
12514
12515
12516 for ac_func in memmem
12517 do :
12518 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
12519 if test "x$ac_cv_func_memmem" = xyes; then :
12520 cat >>confdefs.h <<_ACEOF
12521 #define HAVE_MEMMEM 1
12522 _ACEOF
12523
12524 fi
12525 done
12526
12527 if test $ac_cv_func_memmem = yes; then
12528 HAVE_MEMMEM=1
12529 else
12530 HAVE_MEMMEM=0
12531 fi
12532
12533 :
12534
12535
12536
12537
12538
12539 if test $ac_cv_have_decl_memmem = no; then
12540 HAVE_DECL_MEMMEM=0
12541 else
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
12543 $as_echo_n "checking whether memmem works... " >&6; }
12544 if ${gl_cv_func_memmem_works_always+:} false; then :
12545 $as_echo_n "(cached) " >&6
12546 else
12547 if test "$cross_compiling" = yes; then :
12548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12549 /* end confdefs.h. */
12550
12551 #ifdef __GNU_LIBRARY__
12552 #include <features.h>
12553 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
12554 || __GLIBC_MINOR__ > 12)) \
12555 || (__GLIBC__ > 2)) \
12556 || defined __UCLIBC__
12557 Lucky user
12558 #endif
12559 #elif defined __CYGWIN__
12560 #include <cygwin/version.h>
12561 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
12562 Lucky user
12563 #endif
12564 #else
12565 Lucky user
12566 #endif
12567
12568 _ACEOF
12569 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12570 $EGREP "Lucky user" >/dev/null 2>&1; then :
12571 gl_cv_func_memmem_works_always="guessing yes"
12572 else
12573 gl_cv_func_memmem_works_always="guessing no"
12574 fi
12575 rm -f conftest*
12576
12577
12578 else
12579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12580 /* end confdefs.h. */
12581
12582 #include <string.h> /* for memmem */
12583 #define P "_EF_BF_BD"
12584 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
12585 #define NEEDLE P P P P P
12586
12587 int
12588 main ()
12589 {
12590
12591 int result = 0;
12592 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
12593 result |= 1;
12594 /* Check for empty needle behavior. */
12595 {
12596 const char *haystack = "AAA";
12597 if (memmem (haystack, 3, NULL, 0) != haystack)
12598 result |= 2;
12599 }
12600 return result;
12601
12602 ;
12603 return 0;
12604 }
12605 _ACEOF
12606 if ac_fn_c_try_run "$LINENO"; then :
12607 gl_cv_func_memmem_works_always=yes
12608 else
12609 gl_cv_func_memmem_works_always=no
12610 fi
12611 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12612 conftest.$ac_objext conftest.beam conftest.$ac_ext
12613 fi
12614
12615
12616 fi
12617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
12618 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
12619 case "$gl_cv_func_memmem_works_always" in
12620 *yes) ;;
12621 *)
12622 REPLACE_MEMMEM=1
12623 ;;
12624 esac
12625 fi
12626 :
12627
12628
12629 ac_fn_c_check_decl "$LINENO" "memrchr" "ac_cv_have_decl_memrchr" "$ac_includes_default"
12630 if test "x$ac_cv_have_decl_memrchr" = xyes; then :
12631 ac_have_decl=1
12632 else
12633 ac_have_decl=0
12634 fi
12635
12636 cat >>confdefs.h <<_ACEOF
12637 #define HAVE_DECL_MEMRCHR $ac_have_decl
12638 _ACEOF
12639
12640
12641
12642
12643
12644
12645
12646
12647
12648
12649
12650
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for promoted mode_t type" >&5
12652 $as_echo_n "checking for promoted mode_t type... " >&6; }
12653 if ${gl_cv_promoted_mode_t+:} false; then :
12654 $as_echo_n "(cached) " >&6
12655 else
12656
12657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12658 /* end confdefs.h. */
12659 #include <sys/types.h>
12660 int
12661 main ()
12662 {
12663 typedef int array[2 * (sizeof (mode_t) < sizeof (int)) - 1];
12664 ;
12665 return 0;
12666 }
12667 _ACEOF
12668 if ac_fn_c_try_compile "$LINENO"; then :
12669 gl_cv_promoted_mode_t='int'
12670 else
12671 gl_cv_promoted_mode_t='mode_t'
12672 fi
12673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12674
12675 fi
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_promoted_mode_t" >&5
12677 $as_echo "$gl_cv_promoted_mode_t" >&6; }
12678
12679 cat >>confdefs.h <<_ACEOF
12680 #define PROMOTED_MODE_T $gl_cv_promoted_mode_t
12681 _ACEOF
12682
12683
12684
12685
12686
12687
12688
12689
12690 GNULIB_DPRINTF=0;
12691 GNULIB_FCLOSE=0;
12692 GNULIB_FDOPEN=0;
12693 GNULIB_FFLUSH=0;
12694 GNULIB_FGETC=0;
12695 GNULIB_FGETS=0;
12696 GNULIB_FOPEN=0;
12697 GNULIB_FPRINTF=0;
12698 GNULIB_FPRINTF_POSIX=0;
12699 GNULIB_FPURGE=0;
12700 GNULIB_FPUTC=0;
12701 GNULIB_FPUTS=0;
12702 GNULIB_FREAD=0;
12703 GNULIB_FREOPEN=0;
12704 GNULIB_FSCANF=0;
12705 GNULIB_FSEEK=0;
12706 GNULIB_FSEEKO=0;
12707 GNULIB_FTELL=0;
12708 GNULIB_FTELLO=0;
12709 GNULIB_FWRITE=0;
12710 GNULIB_GETC=0;
12711 GNULIB_GETCHAR=0;
12712 GNULIB_GETDELIM=0;
12713 GNULIB_GETLINE=0;
12714 GNULIB_OBSTACK_PRINTF=0;
12715 GNULIB_OBSTACK_PRINTF_POSIX=0;
12716 GNULIB_PCLOSE=0;
12717 GNULIB_PERROR=0;
12718 GNULIB_POPEN=0;
12719 GNULIB_PRINTF=0;
12720 GNULIB_PRINTF_POSIX=0;
12721 GNULIB_PUTC=0;
12722 GNULIB_PUTCHAR=0;
12723 GNULIB_PUTS=0;
12724 GNULIB_REMOVE=0;
12725 GNULIB_RENAME=0;
12726 GNULIB_RENAMEAT=0;
12727 GNULIB_SCANF=0;
12728 GNULIB_SNPRINTF=0;
12729 GNULIB_SPRINTF_POSIX=0;
12730 GNULIB_STDIO_H_NONBLOCKING=0;
12731 GNULIB_STDIO_H_SIGPIPE=0;
12732 GNULIB_TMPFILE=0;
12733 GNULIB_VASPRINTF=0;
12734 GNULIB_VFSCANF=0;
12735 GNULIB_VSCANF=0;
12736 GNULIB_VDPRINTF=0;
12737 GNULIB_VFPRINTF=0;
12738 GNULIB_VFPRINTF_POSIX=0;
12739 GNULIB_VPRINTF=0;
12740 GNULIB_VPRINTF_POSIX=0;
12741 GNULIB_VSNPRINTF=0;
12742 GNULIB_VSPRINTF_POSIX=0;
12743 HAVE_DECL_FPURGE=1;
12744 HAVE_DECL_FSEEKO=1;
12745 HAVE_DECL_FTELLO=1;
12746 HAVE_DECL_GETDELIM=1;
12747 HAVE_DECL_GETLINE=1;
12748 HAVE_DECL_OBSTACK_PRINTF=1;
12749 HAVE_DECL_SNPRINTF=1;
12750 HAVE_DECL_VSNPRINTF=1;
12751 HAVE_DPRINTF=1;
12752 HAVE_FSEEKO=1;
12753 HAVE_FTELLO=1;
12754 HAVE_PCLOSE=1;
12755 HAVE_POPEN=1;
12756 HAVE_RENAMEAT=1;
12757 HAVE_VASPRINTF=1;
12758 HAVE_VDPRINTF=1;
12759 REPLACE_DPRINTF=0;
12760 REPLACE_FCLOSE=0;
12761 REPLACE_FDOPEN=0;
12762 REPLACE_FFLUSH=0;
12763 REPLACE_FOPEN=0;
12764 REPLACE_FPRINTF=0;
12765 REPLACE_FPURGE=0;
12766 REPLACE_FREOPEN=0;
12767 REPLACE_FSEEK=0;
12768 REPLACE_FSEEKO=0;
12769 REPLACE_FTELL=0;
12770 REPLACE_FTELLO=0;
12771 REPLACE_GETDELIM=0;
12772 REPLACE_GETLINE=0;
12773 REPLACE_OBSTACK_PRINTF=0;
12774 REPLACE_PERROR=0;
12775 REPLACE_POPEN=0;
12776 REPLACE_PRINTF=0;
12777 REPLACE_REMOVE=0;
12778 REPLACE_RENAME=0;
12779 REPLACE_RENAMEAT=0;
12780 REPLACE_SNPRINTF=0;
12781 REPLACE_SPRINTF=0;
12782 REPLACE_STDIO_READ_FUNCS=0;
12783 REPLACE_STDIO_WRITE_FUNCS=0;
12784 REPLACE_TMPFILE=0;
12785 REPLACE_VASPRINTF=0;
12786 REPLACE_VDPRINTF=0;
12787 REPLACE_VFPRINTF=0;
12788 REPLACE_VPRINTF=0;
12789 REPLACE_VSNPRINTF=0;
12790 REPLACE_VSPRINTF=0;
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800
12801
12802
12803
12804
12805
12806
12807
12808
12809
12810
12811
12812
12813
12814
12815
12816
12817
12818
12819
12820
12821
12822
12823 ac_fn_c_check_decl "$LINENO" "setenv" "ac_cv_have_decl_setenv" "$ac_includes_default"
12824 if test "x$ac_cv_have_decl_setenv" = xyes; then :
12825 ac_have_decl=1
12826 else
12827 ac_have_decl=0
12828 fi
12829
12830 cat >>confdefs.h <<_ACEOF
12831 #define HAVE_DECL_SETENV $ac_have_decl
12832 _ACEOF
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843 :
12844
12845
12846
12847
12848
12849 if test $ac_cv_have_decl_setenv = no; then
12850 HAVE_DECL_SETENV=0
12851 fi
12852
12853 :
12854
12855
12856
12857
12858
12859
12860
12861
12862
12863 :
12864
12865
12866
12867
12868
12869 for ac_header in search.h
12870 do :
12871 ac_fn_c_check_header_mongrel "$LINENO" "search.h" "ac_cv_header_search_h" "$ac_includes_default"
12872 if test "x$ac_cv_header_search_h" = xyes; then :
12873 cat >>confdefs.h <<_ACEOF
12874 #define HAVE_SEARCH_H 1
12875 _ACEOF
12876
12877 fi
12878
12879 done
12880
12881 for ac_func in tsearch
12882 do :
12883 ac_fn_c_check_func "$LINENO" "tsearch" "ac_cv_func_tsearch"
12884 if test "x$ac_cv_func_tsearch" = xyes; then :
12885 cat >>confdefs.h <<_ACEOF
12886 #define HAVE_TSEARCH 1
12887 _ACEOF
12888
12889 fi
12890 done
12891
12892
12893
12894
12895 GNULIB_PTHREAD_SIGMASK=0;
12896 GNULIB_RAISE=0;
12897 GNULIB_SIGNAL_H_SIGPIPE=0;
12898 GNULIB_SIGPROCMASK=0;
12899 GNULIB_SIGACTION=0;
12900 HAVE_POSIX_SIGNALBLOCKING=1;
12901 HAVE_PTHREAD_SIGMASK=1;
12902 HAVE_RAISE=1;
12903 HAVE_SIGSET_T=1;
12904 HAVE_SIGINFO_T=1;
12905 HAVE_SIGACTION=1;
12906 HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
12907
12908 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
12909
12910 HAVE_SIGHANDLER_T=1;
12911 REPLACE_PTHREAD_SIGMASK=0;
12912 REPLACE_RAISE=0;
12913
12914
12915 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
12916 #include <signal.h>
12917 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
12918 #include <sys/types.h>
12919
12920 "
12921 if test "x$ac_cv_type_sigset_t" = xyes; then :
12922
12923 cat >>confdefs.h <<_ACEOF
12924 #define HAVE_SIGSET_T 1
12925 _ACEOF
12926
12927 gl_cv_type_sigset_t=yes
12928 else
12929 gl_cv_type_sigset_t=no
12930 fi
12931
12932 if test $gl_cv_type_sigset_t != yes; then
12933 HAVE_SIGSET_T=0
12934 fi
12935
12936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
12937 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
12938 if ${ac_cv_type_uid_t+:} false; then :
12939 $as_echo_n "(cached) " >&6
12940 else
12941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12942 /* end confdefs.h. */
12943 #include <sys/types.h>
12944
12945 _ACEOF
12946 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12947 $EGREP "uid_t" >/dev/null 2>&1; then :
12948 ac_cv_type_uid_t=yes
12949 else
12950 ac_cv_type_uid_t=no
12951 fi
12952 rm -f conftest*
12953
12954 fi
12955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
12956 $as_echo "$ac_cv_type_uid_t" >&6; }
12957 if test $ac_cv_type_uid_t = no; then
12958
12959 $as_echo "#define uid_t int" >>confdefs.h
12960
12961
12962 $as_echo "#define gid_t int" >>confdefs.h
12963
12964 fi
12965
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
12967 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
12968 if ${ac_cv_header_stdbool_h+:} false; then :
12969 $as_echo_n "(cached) " >&6
12970 else
12971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12972 /* end confdefs.h. */
12973
12974 #include <stdbool.h>
12975
12976 #ifdef __cplusplus
12977 typedef bool Bool;
12978 #else
12979 typedef _Bool Bool;
12980 #ifndef bool
12981 "error: bool is not defined"
12982 #endif
12983 #ifndef false
12984 "error: false is not defined"
12985 #endif
12986 #if false
12987 "error: false is not 0"
12988 #endif
12989 #ifndef true
12990 "error: true is not defined"
12991 #endif
12992 #if true != 1
12993 "error: true is not 1"
12994 #endif
12995 #endif
12996
12997 #ifndef __bool_true_false_are_defined
12998 "error: __bool_true_false_are_defined is not defined"
12999 #endif
13000
13001 struct s { Bool s: 1; Bool t; bool u: 1; bool v; } s;
13002
13003 char a[true == 1 ? 1 : -1];
13004 char b[false == 0 ? 1 : -1];
13005 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
13006 char d[(bool) 0.5 == true ? 1 : -1];
13007 /* See body of main program for 'e'. */
13008 char f[(Bool) 0.0 == false ? 1 : -1];
13009 char g[true];
13010 char h[sizeof (Bool)];
13011 char i[sizeof s.t];
13012 enum { j = false, k = true, l = false * true, m = true * 256 };
13013 /* The following fails for
13014 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
13015 Bool n[m];
13016 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
13017 char p[-1 - (Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
13018 /* Catch a bug in an HP-UX C compiler. See
13019 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
13020 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
13021 */
13022 Bool q = true;
13023 Bool *pq = &q;
13024 bool *qq = &q;
13025
13026 int
13027 main ()
13028 {
13029
13030 bool e = &s;
13031 *pq |= q; *pq |= ! q;
13032 *qq |= q; *qq |= ! q;
13033 /* Refer to every declared value, to avoid compiler optimizations. */
13034 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
13035 + !m + !n + !o + !p + !q + !pq + !qq);
13036
13037 ;
13038 return 0;
13039 }
13040 _ACEOF
13041 if ac_fn_c_try_compile "$LINENO"; then :
13042 ac_cv_header_stdbool_h=yes
13043 else
13044 ac_cv_header_stdbool_h=no
13045 fi
13046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13047 fi
13048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
13049 $as_echo "$ac_cv_header_stdbool_h" >&6; }
13050 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
13051 if test "x$ac_cv_type__Bool" = xyes; then :
13052
13053 cat >>confdefs.h <<_ACEOF
13054 #define HAVE__BOOL 1
13055 _ACEOF
13056
13057
13058 fi
13059
13060
13061
13062 REPLACE_NULL=0;
13063 HAVE_MAX_ALIGN_T=1;
13064 HAVE_WCHAR_T=1;
13065
13066
13067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
13068 $as_echo_n "checking for wchar_t... " >&6; }
13069 if ${gt_cv_c_wchar_t+:} false; then :
13070 $as_echo_n "(cached) " >&6
13071 else
13072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13073 /* end confdefs.h. */
13074 #include <stddef.h>
13075 wchar_t foo = (wchar_t)'\0';
13076 int
13077 main ()
13078 {
13079
13080 ;
13081 return 0;
13082 }
13083 _ACEOF
13084 if ac_fn_c_try_compile "$LINENO"; then :
13085 gt_cv_c_wchar_t=yes
13086 else
13087 gt_cv_c_wchar_t=no
13088 fi
13089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13090 fi
13091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
13092 $as_echo "$gt_cv_c_wchar_t" >&6; }
13093 if test $gt_cv_c_wchar_t = yes; then
13094
13095 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
13096
13097 fi
13098
13099
13100
13101
13102
13103
13104
13105 ac_fn_c_check_decl "$LINENO" "strdup" "ac_cv_have_decl_strdup" "$ac_includes_default"
13106 if test "x$ac_cv_have_decl_strdup" = xyes; then :
13107 ac_have_decl=1
13108 else
13109 ac_have_decl=0
13110 fi
13111
13112 cat >>confdefs.h <<_ACEOF
13113 #define HAVE_DECL_STRDUP $ac_have_decl
13114 _ACEOF
13115
13116
13117
13118 REPLACE_STRERROR_0=0
13119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror(0) succeeds" >&5
13120 $as_echo_n "checking whether strerror(0) succeeds... " >&6; }
13121 if ${gl_cv_func_strerror_0_works+:} false; then :
13122 $as_echo_n "(cached) " >&6
13123 else
13124 if test "$cross_compiling" = yes; then :
13125 case "$host_os" in
13126 # Guess yes on glibc systems.
13127 *-gnu*) gl_cv_func_strerror_0_works="guessing yes" ;;
13128 # If we don't know, assume the worst.
13129 *) gl_cv_func_strerror_0_works="guessing no" ;;
13130 esac
13131
13132 else
13133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13134 /* end confdefs.h. */
13135 #include <string.h>
13136 #include <errno.h>
13137
13138 int
13139 main ()
13140 {
13141 int result = 0;
13142 char *str;
13143 errno = 0;
13144 str = strerror (0);
13145 if (!*str) result |= 1;
13146 if (errno) result |= 2;
13147 if (strstr (str, "nknown") || strstr (str, "ndefined"))
13148 result |= 4;
13149 return result;
13150 ;
13151 return 0;
13152 }
13153 _ACEOF
13154 if ac_fn_c_try_run "$LINENO"; then :
13155 gl_cv_func_strerror_0_works=yes
13156 else
13157 gl_cv_func_strerror_0_works=no
13158 fi
13159 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13160 conftest.$ac_objext conftest.beam conftest.$ac_ext
13161 fi
13162
13163
13164 fi
13165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_0_works" >&5
13166 $as_echo "$gl_cv_func_strerror_0_works" >&6; }
13167 case "$gl_cv_func_strerror_0_works" in
13168 *yes) ;;
13169 *)
13170 REPLACE_STRERROR_0=1
13171
13172 $as_echo "#define REPLACE_STRERROR_0 1" >>confdefs.h
13173
13174 ;;
13175 esac
13176
13177
13178
13179
13180
13181
13182
13183
13184
13185
13186
13187
13188 if test $gl_cv_have_include_next = yes; then
13189 gl_cv_next_string_h='<'string.h'>'
13190 else
13191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
13192 $as_echo_n "checking absolute name of <string.h>... " >&6; }
13193 if ${gl_cv_next_string_h+:} false; then :
13194 $as_echo_n "(cached) " >&6
13195 else
13196
13197
13198
13199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13200 /* end confdefs.h. */
13201 #include <string.h>
13202 _ACEOF
13203 case "$host_os" in
13204 aix*) gl_absname_cpp="$ac_cpp -C" ;;
13205 *) gl_absname_cpp="$ac_cpp" ;;
13206 esac
13207
13208 case "$host_os" in
13209 mingw*)
13210 gl_dirsep_regex='[/\\]'
13211 ;;
13212 *)
13213 gl_dirsep_regex='\/'
13214 ;;
13215 esac
13216 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
13217 gl_header_literal_regex=`echo 'string.h' \
13218 | sed -e "$gl_make_literal_regex_sed"`
13219 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
13220 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
13221 s|^/[^/]|//&|
13222 p
13223 q
13224 }'
13225
13226 gl_cv_absolute_string_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13227 sed -n "$gl_absolute_header_sed"`
13228
13229 gl_header=$gl_cv_absolute_string_h
13230 gl_cv_next_string_h='"'$gl_header'"'
13231
13232
13233 fi
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
13235 $as_echo "$gl_cv_next_string_h" >&6; }
13236 fi
13237 NEXT_STRING_H=$gl_cv_next_string_h
13238
13239 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
13240 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13241 gl_next_as_first_directive='<'string.h'>'
13242 else
13243 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13244 gl_next_as_first_directive=$gl_cv_next_string_h
13245 fi
13246 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
13247
13248
13249
13250
13251
13252
13253 for gl_func in ffsl ffsll memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul strdup strncat strndup strnlen strpbrk strsep strcasestr strtok_r strerror_r strsignal strverscmp; do
13254 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
13255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
13256 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
13257 if eval \${$as_gl_Symbol+:} false; then :
13258 $as_echo_n "(cached) " >&6
13259 else
13260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13261 /* end confdefs.h. */
13262 #include <string.h>
13263
13264 int
13265 main ()
13266 {
13267 #undef $gl_func
13268 (void) $gl_func;
13269 ;
13270 return 0;
13271 }
13272 _ACEOF
13273 if ac_fn_c_try_compile "$LINENO"; then :
13274 eval "$as_gl_Symbol=yes"
13275 else
13276 eval "$as_gl_Symbol=no"
13277 fi
13278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13279 fi
13280 eval ac_res=\$$as_gl_Symbol
13281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13282 $as_echo "$ac_res" >&6; }
13283 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
13284 cat >>confdefs.h <<_ACEOF
13285 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
13286 _ACEOF
13287
13288 eval ac_cv_have_decl_$gl_func=yes
13289 fi
13290 done
13291
13292
13293
13294
13295
13296 if test "$gl_cv_func_memchr_works" != yes; then
13297 REPLACE_STRSTR=1
13298 else
13299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
13300 $as_echo_n "checking whether strstr works... " >&6; }
13301 if ${gl_cv_func_strstr_works_always+:} false; then :
13302 $as_echo_n "(cached) " >&6
13303 else
13304 if test "$cross_compiling" = yes; then :
13305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13306 /* end confdefs.h. */
13307
13308 #ifdef __GNU_LIBRARY__
13309 #include <features.h>
13310 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
13311 || defined __UCLIBC__
13312 Lucky user
13313 #endif
13314 #elif defined __CYGWIN__
13315 #include <cygwin/version.h>
13316 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
13317 Lucky user
13318 #endif
13319 #else
13320 Lucky user
13321 #endif
13322
13323 _ACEOF
13324 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13325 $EGREP "Lucky user" >/dev/null 2>&1; then :
13326 gl_cv_func_strstr_works_always="guessing yes"
13327 else
13328 gl_cv_func_strstr_works_always="guessing no"
13329 fi
13330 rm -f conftest*
13331
13332
13333 else
13334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13335 /* end confdefs.h. */
13336
13337 #include <string.h> /* for strstr */
13338 #define P "_EF_BF_BD"
13339 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
13340 #define NEEDLE P P P P P
13341
13342 int
13343 main ()
13344 {
13345 return !!strstr (HAYSTACK, NEEDLE);
13346
13347 ;
13348 return 0;
13349 }
13350 _ACEOF
13351 if ac_fn_c_try_run "$LINENO"; then :
13352 gl_cv_func_strstr_works_always=yes
13353 else
13354 gl_cv_func_strstr_works_always=no
13355 fi
13356 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13357 conftest.$ac_objext conftest.beam conftest.$ac_ext
13358 fi
13359
13360
13361 fi
13362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
13363 $as_echo "$gl_cv_func_strstr_works_always" >&6; }
13364 case "$gl_cv_func_strstr_works_always" in
13365 *yes) ;;
13366 *)
13367 REPLACE_STRSTR=1
13368 ;;
13369 esac
13370 fi
13371
13372
13373 ac_fn_c_check_decl "$LINENO" "strtok_r" "ac_cv_have_decl_strtok_r" "$ac_includes_default"
13374 if test "x$ac_cv_have_decl_strtok_r" = xyes; then :
13375 ac_have_decl=1
13376 else
13377 ac_have_decl=0
13378 fi
13379
13380 cat >>confdefs.h <<_ACEOF
13381 #define HAVE_DECL_STRTOK_R $ac_have_decl
13382 _ACEOF
13383
13384
13385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
13386 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
13387 if test -z "$MKDIR_P"; then
13388 if ${ac_cv_path_mkdir+:} false; then :
13389 $as_echo_n "(cached) " >&6
13390 else
13391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13392 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
13393 do
13394 IFS=$as_save_IFS
13395 test -z "$as_dir" && as_dir=.
13396 for ac_prog in mkdir gmkdir; do
13397 for ac_exec_ext in '' $ac_executable_extensions; do
13398 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
13399 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
13400 'mkdir (GNU coreutils) '* | \
13401 'mkdir (coreutils) '* | \
13402 'mkdir (fileutils) '4.1*)
13403 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
13404 break 3;;
13405 esac
13406 done
13407 done
13408 done
13409 IFS=$as_save_IFS
13410
13411 fi
13412
13413 test -d ./--version && rmdir ./--version
13414 if test "${ac_cv_path_mkdir+set}" = set; then
13415 MKDIR_P="$ac_cv_path_mkdir -p"
13416 else
13417 # As a last resort, use the slow shell script. Don't cache a
13418 # value for MKDIR_P within a source directory, because that will
13419 # break other packages using the cache if that directory is
13420 # removed, or if the value is a relative name.
13421 MKDIR_P="$ac_install_sh -d"
13422 fi
13423 fi
13424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
13425 $as_echo "$MKDIR_P" >&6; }
13426
13427
13428
13429
13430
13431
13432
13433
13434
13435
13436
13437
13438
13439
13440
13441
13442
13443
13444
13445 if test $gl_cv_have_include_next = yes; then
13446 gl_cv_next_sys_types_h='<'sys/types.h'>'
13447 else
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
13449 $as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
13450 if ${gl_cv_next_sys_types_h+:} false; then :
13451 $as_echo_n "(cached) " >&6
13452 else
13453
13454
13455
13456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13457 /* end confdefs.h. */
13458 #include <sys/types.h>
13459 _ACEOF
13460 case "$host_os" in
13461 aix*) gl_absname_cpp="$ac_cpp -C" ;;
13462 *) gl_absname_cpp="$ac_cpp" ;;
13463 esac
13464
13465 case "$host_os" in
13466 mingw*)
13467 gl_dirsep_regex='[/\\]'
13468 ;;
13469 *)
13470 gl_dirsep_regex='\/'
13471 ;;
13472 esac
13473 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
13474 gl_header_literal_regex=`echo 'sys/types.h' \
13475 | sed -e "$gl_make_literal_regex_sed"`
13476 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
13477 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
13478 s|^/[^/]|//&|
13479 p
13480 q
13481 }'
13482
13483 gl_cv_absolute_sys_types_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13484 sed -n "$gl_absolute_header_sed"`
13485
13486 gl_header=$gl_cv_absolute_sys_types_h
13487 gl_cv_next_sys_types_h='"'$gl_header'"'
13488
13489
13490 fi
13491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
13492 $as_echo "$gl_cv_next_sys_types_h" >&6; }
13493 fi
13494 NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
13495
13496 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
13497 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13498 gl_next_as_first_directive='<'sys/types.h'>'
13499 else
13500 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13501 gl_next_as_first_directive=$gl_cv_next_sys_types_h
13502 fi
13503 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
13504
13505
13506
13507
13508
13509
13510
13511
13512
13513
13514
13515
13516 GNULIB_MKTIME=0;
13517 GNULIB_NANOSLEEP=0;
13518 GNULIB_STRPTIME=0;
13519 GNULIB_TIMEGM=0;
13520 GNULIB_TIME_R=0;
13521 GNULIB_TIME_RZ=0;
13522 HAVE_DECL_LOCALTIME_R=1;
13523 HAVE_NANOSLEEP=1;
13524 HAVE_STRPTIME=1;
13525 HAVE_TIMEGM=1;
13526 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
13527 REPLACE_MKTIME=GNULIB_PORTCHECK;
13528 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
13529 REPLACE_TIMEGM=GNULIB_PORTCHECK;
13530
13531 : ${GNULIB_GETTIMEOFDAY=0};
13532 REPLACE_GMTIME=0;
13533 REPLACE_LOCALTIME=0;
13534
13535
13536
13537 :
13538
13539
13540
13541
13542
13543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
13544 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
13545 if ${gl_cv_sys_struct_timespec_in_time_h+:} false; then :
13546 $as_echo_n "(cached) " >&6
13547 else
13548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13549 /* end confdefs.h. */
13550 #include <time.h>
13551
13552 int
13553 main ()
13554 {
13555 static struct timespec x; x.tv_sec = x.tv_nsec;
13556 ;
13557 return 0;
13558 }
13559 _ACEOF
13560 if ac_fn_c_try_compile "$LINENO"; then :
13561 gl_cv_sys_struct_timespec_in_time_h=yes
13562 else
13563 gl_cv_sys_struct_timespec_in_time_h=no
13564 fi
13565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13566 fi
13567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
13568 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
13569
13570 TIME_H_DEFINES_STRUCT_TIMESPEC=0
13571 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
13572 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
13573 UNISTD_H_DEFINES_STRUCT_TIMESPEC=0
13574 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
13575 TIME_H_DEFINES_STRUCT_TIMESPEC=1
13576 else
13577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
13578 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
13579 if ${gl_cv_sys_struct_timespec_in_sys_time_h+:} false; then :
13580 $as_echo_n "(cached) " >&6
13581 else
13582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13583 /* end confdefs.h. */
13584 #include <sys/time.h>
13585
13586 int
13587 main ()
13588 {
13589 static struct timespec x; x.tv_sec = x.tv_nsec;
13590 ;
13591 return 0;
13592 }
13593 _ACEOF
13594 if ac_fn_c_try_compile "$LINENO"; then :
13595 gl_cv_sys_struct_timespec_in_sys_time_h=yes
13596 else
13597 gl_cv_sys_struct_timespec_in_sys_time_h=no
13598 fi
13599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13600 fi
13601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
13602 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
13603 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
13604 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
13605 else
13606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
13607 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
13608 if ${gl_cv_sys_struct_timespec_in_pthread_h+:} false; then :
13609 $as_echo_n "(cached) " >&6
13610 else
13611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13612 /* end confdefs.h. */
13613 #include <pthread.h>
13614
13615 int
13616 main ()
13617 {
13618 static struct timespec x; x.tv_sec = x.tv_nsec;
13619 ;
13620 return 0;
13621 }
13622 _ACEOF
13623 if ac_fn_c_try_compile "$LINENO"; then :
13624 gl_cv_sys_struct_timespec_in_pthread_h=yes
13625 else
13626 gl_cv_sys_struct_timespec_in_pthread_h=no
13627 fi
13628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13629 fi
13630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
13631 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
13632 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
13633 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
13634 else
13635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <unistd.h>" >&5
13636 $as_echo_n "checking for struct timespec in <unistd.h>... " >&6; }
13637 if ${gl_cv_sys_struct_timespec_in_unistd_h+:} false; then :
13638 $as_echo_n "(cached) " >&6
13639 else
13640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13641 /* end confdefs.h. */
13642 #include <unistd.h>
13643
13644 int
13645 main ()
13646 {
13647 static struct timespec x; x.tv_sec = x.tv_nsec;
13648 ;
13649 return 0;
13650 }
13651 _ACEOF
13652 if ac_fn_c_try_compile "$LINENO"; then :
13653 gl_cv_sys_struct_timespec_in_unistd_h=yes
13654 else
13655 gl_cv_sys_struct_timespec_in_unistd_h=no
13656 fi
13657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13658 fi
13659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_unistd_h" >&5
13660 $as_echo "$gl_cv_sys_struct_timespec_in_unistd_h" >&6; }
13661 if test $gl_cv_sys_struct_timespec_in_unistd_h = yes; then
13662 UNISTD_H_DEFINES_STRUCT_TIMESPEC=1
13663 fi
13664 fi
13665 fi
13666 fi
13667
13668
13669
13670
13671
13672
13673
13674
13675
13676
13677
13678
13679
13680
13681
13682
13683 if test $gl_cv_have_include_next = yes; then
13684 gl_cv_next_time_h='<'time.h'>'
13685 else
13686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
13687 $as_echo_n "checking absolute name of <time.h>... " >&6; }
13688 if ${gl_cv_next_time_h+:} false; then :
13689 $as_echo_n "(cached) " >&6
13690 else
13691
13692
13693
13694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13695 /* end confdefs.h. */
13696 #include <time.h>
13697 _ACEOF
13698 case "$host_os" in
13699 aix*) gl_absname_cpp="$ac_cpp -C" ;;
13700 *) gl_absname_cpp="$ac_cpp" ;;
13701 esac
13702
13703 case "$host_os" in
13704 mingw*)
13705 gl_dirsep_regex='[/\\]'
13706 ;;
13707 *)
13708 gl_dirsep_regex='\/'
13709 ;;
13710 esac
13711 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
13712 gl_header_literal_regex=`echo 'time.h' \
13713 | sed -e "$gl_make_literal_regex_sed"`
13714 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
13715 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
13716 s|^/[^/]|//&|
13717 p
13718 q
13719 }'
13720
13721 gl_cv_absolute_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13722 sed -n "$gl_absolute_header_sed"`
13723
13724 gl_header=$gl_cv_absolute_time_h
13725 gl_cv_next_time_h='"'$gl_header'"'
13726
13727
13728 fi
13729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
13730 $as_echo "$gl_cv_next_time_h" >&6; }
13731 fi
13732 NEXT_TIME_H=$gl_cv_next_time_h
13733
13734 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
13735 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13736 gl_next_as_first_directive='<'time.h'>'
13737 else
13738 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13739 gl_next_as_first_directive=$gl_cv_next_time_h
13740 fi
13741 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
13742
13743
13744
13745
13746
13747
13748
13749
13750
13751
13752
13753
13754 ac_fn_c_check_decl "$LINENO" "unsetenv" "ac_cv_have_decl_unsetenv" "$ac_includes_default"
13755 if test "x$ac_cv_have_decl_unsetenv" = xyes; then :
13756 ac_have_decl=1
13757 else
13758 ac_have_decl=0
13759 fi
13760
13761 cat >>confdefs.h <<_ACEOF
13762 #define HAVE_DECL_UNSETENV $ac_have_decl
13763 _ACEOF
13764
13765
13766
13767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
13768 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
13769 if ${gl_cv_header_wchar_h_correct_inline+:} false; then :
13770 $as_echo_n "(cached) " >&6
13771 else
13772 gl_cv_header_wchar_h_correct_inline=yes
13773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13774 /* end confdefs.h. */
13775
13776 #define wcstod renamed_wcstod
13777 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13778 <wchar.h>.
13779 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13780 included before <wchar.h>. */
13781 #include <stddef.h>
13782 #include <stdio.h>
13783 #include <time.h>
13784 #include <wchar.h>
13785 extern int zero (void);
13786 int main () { return zero(); }
13787
13788 _ACEOF
13789 save_ac_compile="$ac_compile"
13790 ac_compile=`echo "$save_ac_compile" | sed s/conftest/conftest1/`
13791 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13792 (eval $ac_compile) 2>&5
13793 ac_status=$?
13794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13795 test $ac_status = 0; }; then
13796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13797 /* end confdefs.h. */
13798
13799 #define wcstod renamed_wcstod
13800 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13801 <wchar.h>.
13802 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13803 included before <wchar.h>. */
13804 #include <stddef.h>
13805 #include <stdio.h>
13806 #include <time.h>
13807 #include <wchar.h>
13808 int zero (void) { return 0; }
13809
13810 _ACEOF
13811 ac_compile=`echo "$save_ac_compile" | sed s/conftest/conftest2/`
13812 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13813 (eval $ac_compile) 2>&5
13814 ac_status=$?
13815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13816 test $ac_status = 0; }; then
13817 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
13818 :
13819 else
13820 gl_cv_header_wchar_h_correct_inline=no
13821 fi
13822 fi
13823 fi
13824 ac_compile="$save_ac_compile"
13825 rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
13826
13827 fi
13828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
13829 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
13830 if test $gl_cv_header_wchar_h_correct_inline = no; then
13831 as_fn_error $? "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
13832 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
13833 C99 mode. You have four options:
13834 - Add the flag -fgnu89-inline to CC and reconfigure, or
13835 - Fix your include files, using parts of
13836 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
13837 - Use a gcc version older than 4.3, or
13838 - Don't use the flags -std=c99 or -std=gnu99.
13839 Configuration aborted." "$LINENO" 5
13840 fi
13841
13842
13843
13844
13845
13846
13847
13848
13849 :
13850
13851
13852
13853
13854
13855 if test $ac_cv_header_features_h = yes; then
13856 HAVE_FEATURES_H=1
13857 else
13858 HAVE_FEATURES_H=0
13859 fi
13860
13861
13862
13863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
13864 $as_echo_n "checking for wint_t... " >&6; }
13865 if ${gt_cv_c_wint_t+:} false; then :
13866 $as_echo_n "(cached) " >&6
13867 else
13868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13869 /* end confdefs.h. */
13870
13871 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13872 <wchar.h>.
13873 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
13874 before <wchar.h>. */
13875 #include <stddef.h>
13876 #include <stdio.h>
13877 #include <time.h>
13878 #include <wchar.h>
13879 wint_t foo = (wchar_t)'\0';
13880 int
13881 main ()
13882 {
13883
13884 ;
13885 return 0;
13886 }
13887 _ACEOF
13888 if ac_fn_c_try_compile "$LINENO"; then :
13889 gt_cv_c_wint_t=yes
13890 else
13891 gt_cv_c_wint_t=no
13892 fi
13893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13894 fi
13895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
13896 $as_echo "$gt_cv_c_wint_t" >&6; }
13897 if test $gt_cv_c_wint_t = yes; then
13898
13899 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
13900
13901 fi
13902
13903
13904 GNULIB_ISWBLANK=0;
13905 GNULIB_WCTYPE=0;
13906 GNULIB_ISWCTYPE=0;
13907 GNULIB_WCTRANS=0;
13908 GNULIB_TOWCTRANS=0;
13909 HAVE_ISWBLANK=1;
13910 HAVE_WCTYPE_T=1;
13911 HAVE_WCTRANS_T=1;
13912 REPLACE_ISWBLANK=0;
13913
13914
13915
13916
13917
13918
13919
13920 if false; then
13921 GL_COND_LIBTOOL_TRUE=
13922 GL_COND_LIBTOOL_FALSE='#'
13923 else
13924 GL_COND_LIBTOOL_TRUE='#'
13925 GL_COND_LIBTOOL_FALSE=
13926 fi
13927
13928 gl_cond_libtool=false
13929 gl_libdeps=
13930 gl_ltlibdeps=
13931 gl_m4_base='import/m4'
13932
13933
13934
13935
13936
13937
13938
13939
13940
13941 gl_source_base='import'
13942
13943
13944 if test $ac_cv_func_alloca_works = no; then
13945 :
13946 fi
13947
13948 # Define an additional variable used in the Makefile substitution.
13949 if test $ac_cv_working_alloca_h = yes; then
13950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
13951 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
13952 if ${gl_cv_rpl_alloca+:} false; then :
13953 $as_echo_n "(cached) " >&6
13954 else
13955
13956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13957 /* end confdefs.h. */
13958
13959 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
13960 Need own alloca
13961 #endif
13962
13963 _ACEOF
13964 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13965 $EGREP "Need own alloca" >/dev/null 2>&1; then :
13966 gl_cv_rpl_alloca=yes
13967 else
13968 gl_cv_rpl_alloca=no
13969 fi
13970 rm -f conftest*
13971
13972
13973 fi
13974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
13975 $as_echo "$gl_cv_rpl_alloca" >&6; }
13976 if test $gl_cv_rpl_alloca = yes; then
13977
13978 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
13979
13980 ALLOCA_H=alloca.h
13981 else
13982 ALLOCA_H=
13983 fi
13984 else
13985 ALLOCA_H=alloca.h
13986 fi
13987
13988 if test -n "$ALLOCA_H"; then
13989 GL_GENERATE_ALLOCA_H_TRUE=
13990 GL_GENERATE_ALLOCA_H_FALSE='#'
13991 else
13992 GL_GENERATE_ALLOCA_H_TRUE='#'
13993 GL_GENERATE_ALLOCA_H_FALSE=
13994 fi
13995
13996
13997
13998
13999
14000
14001
14002
14003
14004
14005 gl_LIBOBJS="$gl_LIBOBJS openat-proc.$ac_objext"
14006
14007
14008
14009
14010 if test $ac_cv_func_canonicalize_file_name = no; then
14011 HAVE_CANONICALIZE_FILE_NAME=0
14012 if test $ac_cv_func_realpath = no; then
14013 HAVE_REALPATH=0
14014 else
14015 case "$gl_cv_func_realpath_works" in
14016 *yes) ;;
14017 *) REPLACE_REALPATH=1 ;;
14018 esac
14019 fi
14020 else
14021 case "$gl_cv_func_realpath_works" in
14022 *yes)
14023 ;;
14024 *)
14025 REPLACE_CANONICALIZE_FILE_NAME=1
14026 REPLACE_REALPATH=1
14027 ;;
14028 esac
14029 fi
14030
14031 if test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1; then
14032
14033
14034
14035
14036
14037
14038
14039
14040 gl_LIBOBJS="$gl_LIBOBJS canonicalize-lgpl.$ac_objext"
14041
14042 fi
14043
14044
14045 cat >>confdefs.h <<_ACEOF
14046 #define GNULIB_CANONICALIZE_LGPL 1
14047 _ACEOF
14048
14049
14050
14051
14052
14053
14054
14055 GNULIB_CANONICALIZE_FILE_NAME=1
14056
14057
14058
14059
14060
14061 $as_echo "#define GNULIB_TEST_CANONICALIZE_FILE_NAME 1" >>confdefs.h
14062
14063
14064
14065
14066
14067
14068
14069
14070 GNULIB_REALPATH=1
14071
14072
14073
14074
14075
14076 $as_echo "#define GNULIB_TEST_REALPATH 1" >>confdefs.h
14077
14078
14079
14080
14081
14082
14083
14084
14085 GNULIB_CHDIR=1
14086
14087
14088
14089
14090
14091 $as_echo "#define GNULIB_TEST_CHDIR 1" >>confdefs.h
14092
14093
14094
14095
14096
14097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether this system has an arbitrary file name length limit" >&5
14098 $as_echo_n "checking whether this system has an arbitrary file name length limit... " >&6; }
14099 if ${gl_cv_have_arbitrary_file_name_length_limit+:} false; then :
14100 $as_echo_n "(cached) " >&6
14101 else
14102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14103 /* end confdefs.h. */
14104
14105 /* Arrange to define PATH_MAX, like "pathmax.h" does. */
14106 #if HAVE_UNISTD_H
14107 # include <unistd.h>
14108 #endif
14109 #include <limits.h>
14110 #if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN
14111 # include <sys/param.h>
14112 #endif
14113 #if !defined PATH_MAX && defined MAXPATHLEN
14114 # define PATH_MAX MAXPATHLEN
14115 #endif
14116 #ifdef __hpux
14117 # undef PATH_MAX
14118 # define PATH_MAX 1024
14119 #endif
14120 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
14121 # undef PATH_MAX
14122 # define PATH_MAX 260
14123 #endif
14124
14125 #ifdef PATH_MAX
14126 have_arbitrary_file_name_length_limit
14127 #endif
14128 _ACEOF
14129 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14130 $EGREP "have_arbitrary_file_name_length_limit" >/dev/null 2>&1; then :
14131 gl_cv_have_arbitrary_file_name_length_limit=yes
14132 else
14133 gl_cv_have_arbitrary_file_name_length_limit=no
14134 fi
14135 rm -f conftest*
14136
14137 fi
14138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_arbitrary_file_name_length_limit" >&5
14139 $as_echo "$gl_cv_have_arbitrary_file_name_length_limit" >&6; }
14140
14141 if test $gl_cv_have_arbitrary_file_name_length_limit = yes; then
14142
14143
14144
14145
14146
14147
14148
14149
14150 gl_LIBOBJS="$gl_LIBOBJS chdir-long.$ac_objext"
14151
14152 :
14153 fi
14154
14155
14156 $as_echo "#define GNULIB_TEST_CLOEXEC 1" >>confdefs.h
14157
14158
14159
14160
14161
14162 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
14163 REPLACE_CLOSE=1
14164 fi
14165
14166
14167
14168
14169
14170 :
14171
14172
14173
14174
14175
14176 if test $ac_cv_header_sys_socket_h != yes; then
14177 for ac_header in winsock2.h
14178 do :
14179 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
14180 if test "x$ac_cv_header_winsock2_h" = xyes; then :
14181 cat >>confdefs.h <<_ACEOF
14182 #define HAVE_WINSOCK2_H 1
14183 _ACEOF
14184
14185 fi
14186
14187 done
14188
14189 fi
14190 if test "$ac_cv_header_winsock2_h" = yes; then
14191 HAVE_WINSOCK2_H=1
14192 UNISTD_H_HAVE_WINSOCK2_H=1
14193 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
14194 else
14195 HAVE_WINSOCK2_H=0
14196 fi
14197
14198
14199 if test $UNISTD_H_HAVE_WINSOCK2_H = 1; then
14200 REPLACE_CLOSE=1
14201 fi
14202
14203
14204 if test $REPLACE_CLOSE = 0; then
14205
14206
14207
14208 :
14209
14210
14211
14212
14213
14214 if test $ac_cv_func_fchdir = no; then
14215 HAVE_FCHDIR=0
14216 fi
14217
14218 if test $HAVE_FCHDIR = 0; then
14219 REPLACE_CLOSE=1
14220 fi
14221 fi
14222
14223
14224 if test $REPLACE_CLOSE = 1; then
14225
14226
14227
14228
14229
14230
14231
14232
14233 gl_LIBOBJS="$gl_LIBOBJS close.$ac_objext"
14234
14235 fi
14236
14237
14238
14239
14240
14241 GNULIB_CLOSE=1
14242
14243
14244
14245
14246
14247 $as_echo "#define GNULIB_TEST_CLOSE 1" >>confdefs.h
14248
14249
14250
14251
14252
14253
14254 for ac_func in closedir
14255 do :
14256 ac_fn_c_check_func "$LINENO" "closedir" "ac_cv_func_closedir"
14257 if test "x$ac_cv_func_closedir" = xyes; then :
14258 cat >>confdefs.h <<_ACEOF
14259 #define HAVE_CLOSEDIR 1
14260 _ACEOF
14261
14262 fi
14263 done
14264
14265 if test $ac_cv_func_closedir = no; then
14266 HAVE_CLOSEDIR=0
14267 fi
14268
14269
14270
14271
14272 :
14273
14274
14275
14276
14277
14278 if test $ac_cv_func_fchdir = no; then
14279 HAVE_FCHDIR=0
14280 fi
14281
14282 if test $HAVE_FCHDIR = 0; then
14283 if test $HAVE_CLOSEDIR = 1; then
14284 REPLACE_CLOSEDIR=1
14285 fi
14286 fi
14287
14288 case $host_os,$HAVE_CLOSEDIR in
14289 os2*,1)
14290 REPLACE_CLOSEDIR=1;;
14291 esac
14292
14293 if test $HAVE_CLOSEDIR = 0 || test $REPLACE_CLOSEDIR = 1; then
14294
14295
14296
14297
14298
14299
14300
14301
14302 gl_LIBOBJS="$gl_LIBOBJS closedir.$ac_objext"
14303
14304 fi
14305
14306
14307
14308
14309
14310 GNULIB_CLOSEDIR=1
14311
14312
14313
14314
14315
14316 $as_echo "#define GNULIB_TEST_CLOSEDIR 1" >>confdefs.h
14317
14318
14319
14320
14321 if test "x$datarootdir" = x; then
14322 datarootdir='${datadir}'
14323
14324 fi
14325 if test "x$docdir" = x; then
14326 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
14327
14328 fi
14329 if test "x$htmldir" = x; then
14330 htmldir='${docdir}'
14331
14332 fi
14333 if test "x$dvidir" = x; then
14334 dvidir='${docdir}'
14335
14336 fi
14337 if test "x$pdfdir" = x; then
14338 pdfdir='${docdir}'
14339
14340 fi
14341 if test "x$psdir" = x; then
14342 psdir='${docdir}'
14343
14344 fi
14345 if test "x$lispdir" = x; then
14346 lispdir='${datarootdir}/emacs/site-lisp'
14347
14348 fi
14349 if test "x$localedir" = x; then
14350 localedir='${datarootdir}/locale'
14351
14352 fi
14353 if test "x$runstatedir" = x; then
14354 runstatedir='${localstatedir}/run'
14355
14356 fi
14357
14358 pkglibexecdir='${libexecdir}/${PACKAGE}'
14359
14360
14361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for d_ino member in directory struct" >&5
14362 $as_echo_n "checking for d_ino member in directory struct... " >&6; }
14363 if ${gl_cv_struct_dirent_d_ino+:} false; then :
14364 $as_echo_n "(cached) " >&6
14365 else
14366 if test "$cross_compiling" = yes; then :
14367 case "$host_os" in
14368 # Guess yes on glibc systems with Linux kernel.
14369 linux*-gnu*) gl_cv_struct_dirent_d_ino="guessing yes" ;;
14370 # If we don't know, assume the worst.
14371 *) gl_cv_struct_dirent_d_ino="guessing no" ;;
14372 esac
14373
14374 else
14375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14376 /* end confdefs.h. */
14377 #include <sys/types.h>
14378 #include <sys/stat.h>
14379 #include <dirent.h>
14380
14381 int
14382 main ()
14383 {
14384 DIR *dp = opendir (".");
14385 struct dirent *e;
14386 struct stat st;
14387 if (! dp)
14388 return 1;
14389 e = readdir (dp);
14390 if (! e)
14391 return 2;
14392 if (lstat (e->d_name, &st) != 0)
14393 return 3;
14394 if (e->d_ino != st.st_ino)
14395 return 4;
14396 closedir (dp);
14397 return 0;
14398
14399 ;
14400 return 0;
14401 }
14402 _ACEOF
14403 if ac_fn_c_try_run "$LINENO"; then :
14404 gl_cv_struct_dirent_d_ino=yes
14405 else
14406 gl_cv_struct_dirent_d_ino=no
14407 fi
14408 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14409 conftest.$ac_objext conftest.beam conftest.$ac_ext
14410 fi
14411
14412 fi
14413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_struct_dirent_d_ino" >&5
14414 $as_echo "$gl_cv_struct_dirent_d_ino" >&6; }
14415 case "$gl_cv_struct_dirent_d_ino" in
14416 *yes)
14417
14418 $as_echo "#define D_INO_IN_DIRENT 1" >>confdefs.h
14419
14420 ;;
14421 esac
14422
14423
14424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for d_type member in directory struct" >&5
14425 $as_echo_n "checking for d_type member in directory struct... " >&6; }
14426 if ${gl_cv_struct_dirent_d_type+:} false; then :
14427 $as_echo_n "(cached) " >&6
14428 else
14429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14430 /* end confdefs.h. */
14431
14432 #include <sys/types.h>
14433 #include <dirent.h>
14434
14435 int
14436 main ()
14437 {
14438 struct dirent dp; dp.d_type = 0;
14439 ;
14440 return 0;
14441 }
14442 _ACEOF
14443 if ac_fn_c_try_link "$LINENO"; then :
14444 gl_cv_struct_dirent_d_type=yes
14445 else
14446 gl_cv_struct_dirent_d_type=no
14447 fi
14448 rm -f core conftest.err conftest.$ac_objext \
14449 conftest$ac_exeext conftest.$ac_ext
14450
14451
14452 fi
14453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_struct_dirent_d_type" >&5
14454 $as_echo "$gl_cv_struct_dirent_d_type" >&6; }
14455 if test $gl_cv_struct_dirent_d_type = yes; then
14456
14457 $as_echo "#define HAVE_STRUCT_DIRENT_D_TYPE 1" >>confdefs.h
14458
14459 fi
14460
14461
14462
14463
14464
14465
14466
14467
14468
14469
14470
14471 :
14472
14473
14474
14475
14476
14477
14478
14479
14480 if test $gl_cv_have_include_next = yes; then
14481 gl_cv_next_dirent_h='<'dirent.h'>'
14482 else
14483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <dirent.h>" >&5
14484 $as_echo_n "checking absolute name of <dirent.h>... " >&6; }
14485 if ${gl_cv_next_dirent_h+:} false; then :
14486 $as_echo_n "(cached) " >&6
14487 else
14488
14489 if test $ac_cv_header_dirent_h = yes; then
14490
14491
14492
14493
14494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14495 /* end confdefs.h. */
14496 #include <dirent.h>
14497 _ACEOF
14498 case "$host_os" in
14499 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14500 *) gl_absname_cpp="$ac_cpp" ;;
14501 esac
14502
14503 case "$host_os" in
14504 mingw*)
14505 gl_dirsep_regex='[/\\]'
14506 ;;
14507 *)
14508 gl_dirsep_regex='\/'
14509 ;;
14510 esac
14511 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14512 gl_header_literal_regex=`echo 'dirent.h' \
14513 | sed -e "$gl_make_literal_regex_sed"`
14514 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14515 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14516 s|^/[^/]|//&|
14517 p
14518 q
14519 }'
14520
14521 gl_cv_absolute_dirent_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14522 sed -n "$gl_absolute_header_sed"`
14523
14524 gl_header=$gl_cv_absolute_dirent_h
14525 gl_cv_next_dirent_h='"'$gl_header'"'
14526 else
14527 gl_cv_next_dirent_h='<'dirent.h'>'
14528 fi
14529
14530
14531 fi
14532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_dirent_h" >&5
14533 $as_echo "$gl_cv_next_dirent_h" >&6; }
14534 fi
14535 NEXT_DIRENT_H=$gl_cv_next_dirent_h
14536
14537 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14538 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14539 gl_next_as_first_directive='<'dirent.h'>'
14540 else
14541 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14542 gl_next_as_first_directive=$gl_cv_next_dirent_h
14543 fi
14544 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H=$gl_next_as_first_directive
14545
14546
14547
14548
14549 if test $ac_cv_header_dirent_h = yes; then
14550 HAVE_DIRENT_H=1
14551 else
14552 HAVE_DIRENT_H=0
14553 fi
14554
14555
14556
14557 for gl_func in alphasort closedir dirfd fdopendir opendir readdir rewinddir scandir; do
14558 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
14559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
14560 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
14561 if eval \${$as_gl_Symbol+:} false; then :
14562 $as_echo_n "(cached) " >&6
14563 else
14564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14565 /* end confdefs.h. */
14566 #include <dirent.h>
14567
14568 int
14569 main ()
14570 {
14571 #undef $gl_func
14572 (void) $gl_func;
14573 ;
14574 return 0;
14575 }
14576 _ACEOF
14577 if ac_fn_c_try_compile "$LINENO"; then :
14578 eval "$as_gl_Symbol=yes"
14579 else
14580 eval "$as_gl_Symbol=no"
14581 fi
14582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14583 fi
14584 eval ac_res=\$$as_gl_Symbol
14585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14586 $as_echo "$ac_res" >&6; }
14587 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
14588 cat >>confdefs.h <<_ACEOF
14589 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
14590 _ACEOF
14591
14592 eval ac_cv_have_decl_$gl_func=yes
14593 fi
14594 done
14595
14596
14597
14598
14599
14600
14601
14602 for ac_func in dirfd
14603 do :
14604 ac_fn_c_check_func "$LINENO" "dirfd" "ac_cv_func_dirfd"
14605 if test "x$ac_cv_func_dirfd" = xyes; then :
14606 cat >>confdefs.h <<_ACEOF
14607 #define HAVE_DIRFD 1
14608 _ACEOF
14609
14610 fi
14611 done
14612
14613 ac_fn_c_check_decl "$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "#include <sys/types.h>
14614 #include <dirent.h>
14615 "
14616 if test "x$ac_cv_have_decl_dirfd" = xyes; then :
14617 ac_have_decl=1
14618 else
14619 ac_have_decl=0
14620 fi
14621
14622 cat >>confdefs.h <<_ACEOF
14623 #define HAVE_DECL_DIRFD $ac_have_decl
14624 _ACEOF
14625
14626 if test $ac_cv_have_decl_dirfd = no; then
14627 HAVE_DECL_DIRFD=0
14628 fi
14629
14630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dirfd is a macro" >&5
14631 $as_echo_n "checking whether dirfd is a macro... " >&6; }
14632 if ${gl_cv_func_dirfd_macro+:} false; then :
14633 $as_echo_n "(cached) " >&6
14634 else
14635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14636 /* end confdefs.h. */
14637
14638 #include <sys/types.h>
14639 #include <dirent.h>
14640 #ifdef dirfd
14641 dirent_header_defines_dirfd
14642 #endif
14643 _ACEOF
14644 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14645 $EGREP "dirent_header_defines_dirfd" >/dev/null 2>&1; then :
14646 gl_cv_func_dirfd_macro=yes
14647 else
14648 gl_cv_func_dirfd_macro=no
14649 fi
14650 rm -f conftest*
14651
14652 fi
14653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dirfd_macro" >&5
14654 $as_echo "$gl_cv_func_dirfd_macro" >&6; }
14655
14656 # Use the replacement if we have no function or macro with that name,
14657 # or if OS/2 kLIBC whose dirfd() does not work.
14658 # Replace only if the system declares dirfd already.
14659 case $ac_cv_func_dirfd,$gl_cv_func_dirfd_macro,$host_os,$ac_cv_have_decl_dirfd in
14660 no,no,*,yes | *,*,os2*,yes)
14661 REPLACE_DIRFD=1
14662
14663 $as_echo "#define REPLACE_DIRFD 1" >>confdefs.h
14664 ;;
14665 esac
14666
14667 if test $ac_cv_func_dirfd = no && test $gl_cv_func_dirfd_macro = no \
14668 || test $REPLACE_DIRFD = 1; then
14669
14670
14671
14672
14673
14674
14675
14676
14677 gl_LIBOBJS="$gl_LIBOBJS dirfd.$ac_objext"
14678
14679
14680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get the file descriptor associated with an open DIR*" >&5
14681 $as_echo_n "checking how to get the file descriptor associated with an open DIR*... " >&6; }
14682 if ${gl_cv_sys_dir_fd_member_name+:} false; then :
14683 $as_echo_n "(cached) " >&6
14684 else
14685
14686 dirfd_save_CFLAGS=$CFLAGS
14687 for ac_expr in d_fd dd_fd; do
14688
14689 CFLAGS="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr"
14690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14691 /* end confdefs.h. */
14692
14693 #include <sys/types.h>
14694 #include <dirent.h>
14695 int
14696 main ()
14697 {
14698 DIR *dir_p = opendir("."); (void) dir_p->DIR_FD_MEMBER_NAME;
14699 ;
14700 return 0;
14701 }
14702 _ACEOF
14703 if ac_fn_c_try_compile "$LINENO"; then :
14704 dir_fd_found=yes
14705
14706 fi
14707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14708 CFLAGS=$dirfd_save_CFLAGS
14709 test "$dir_fd_found" = yes && break
14710 done
14711 test "$dir_fd_found" = yes || ac_expr=no_such_member
14712
14713 gl_cv_sys_dir_fd_member_name=$ac_expr
14714
14715
14716 fi
14717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_dir_fd_member_name" >&5
14718 $as_echo "$gl_cv_sys_dir_fd_member_name" >&6; }
14719 if test $gl_cv_sys_dir_fd_member_name != no_such_member; then
14720
14721 cat >>confdefs.h <<_ACEOF
14722 #define DIR_FD_MEMBER_NAME $gl_cv_sys_dir_fd_member_name
14723 _ACEOF
14724
14725 fi
14726
14727
14728 fi
14729
14730
14731
14732
14733
14734 GNULIB_DIRFD=1
14735
14736
14737
14738
14739
14740 $as_echo "#define GNULIB_TEST_DIRFD 1" >>confdefs.h
14741
14742
14743
14744
14745
14746
14747
14748
14749
14750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
14751 $as_echo_n "checking whether // is distinct from /... " >&6; }
14752 if ${gl_cv_double_slash_root+:} false; then :
14753 $as_echo_n "(cached) " >&6
14754 else
14755 if test x"$cross_compiling" = xyes ; then
14756 # When cross-compiling, there is no way to tell whether // is special
14757 # short of a list of hosts. However, the only known hosts to date
14758 # that have a distinct // are Apollo DomainOS (too old to port to),
14759 # Cygwin, and z/OS. If anyone knows of another system for which // has
14760 # special semantics and is distinct from /, please report it to
14761 # <bug-gnulib@gnu.org>.
14762 case $host in
14763 *-cygwin | i370-ibm-openedition)
14764 gl_cv_double_slash_root=yes ;;
14765 *)
14766 # Be optimistic and assume that / and // are the same when we
14767 # don't know.
14768 gl_cv_double_slash_root='unknown, assuming no' ;;
14769 esac
14770 else
14771 set x `ls -di / // 2>/dev/null`
14772 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
14773 gl_cv_double_slash_root=no
14774 else
14775 gl_cv_double_slash_root=yes
14776 fi
14777 fi
14778 fi
14779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
14780 $as_echo "$gl_cv_double_slash_root" >&6; }
14781 if test "$gl_cv_double_slash_root" = yes; then
14782
14783 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
14784
14785 fi
14786
14787
14788
14789
14790 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
14791 REPLACE_DUP=1
14792 fi
14793
14794
14795
14796
14797 :
14798
14799
14800
14801
14802
14803 if test $ac_cv_func_fchdir = no; then
14804 HAVE_FCHDIR=0
14805 fi
14806
14807 if test $HAVE_FCHDIR = 0; then
14808 REPLACE_DUP=1
14809 fi
14810
14811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup works" >&5
14812 $as_echo_n "checking whether dup works... " >&6; }
14813 if ${gl_cv_func_dup_works+:} false; then :
14814 $as_echo_n "(cached) " >&6
14815 else
14816 if test "$cross_compiling" = yes; then :
14817 gl_cv_func_dup_works='guessing yes'
14818 else
14819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14820 /* end confdefs.h. */
14821 #include <unistd.h>
14822 #include <fcntl.h>
14823 #include <errno.h>
14824 int
14825 main ()
14826 {
14827 /* On OS/2 kLIBC, dup does not work on a directory fd. */
14828 int fd = open (".", O_RDONLY);
14829 return fd < 0 ? 1 : dup (fd) < 0 ? 2 : 0;
14830
14831 ;
14832 return 0;
14833 }
14834
14835 _ACEOF
14836 if ac_fn_c_try_run "$LINENO"; then :
14837 gl_cv_func_dup_works=yes
14838 else
14839 gl_cv_func_dup_works=no
14840 fi
14841 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14842 conftest.$ac_objext conftest.beam conftest.$ac_ext
14843 fi
14844
14845
14846 fi
14847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup_works" >&5
14848 $as_echo "$gl_cv_func_dup_works" >&6; }
14849 case "$gl_cv_func_dup_works" in
14850 *yes) ;;
14851 *)
14852 REPLACE_DUP=1
14853 ;;
14854 esac
14855
14856 if test $REPLACE_DUP = 1; then
14857
14858
14859
14860
14861
14862
14863
14864
14865 gl_LIBOBJS="$gl_LIBOBJS dup.$ac_objext"
14866
14867 :
14868 fi
14869
14870
14871
14872
14873
14874 GNULIB_DUP=1
14875
14876
14877
14878
14879
14880 $as_echo "#define GNULIB_TEST_DUP 1" >>confdefs.h
14881
14882
14883
14884
14885
14886
14887
14888
14889 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
14890
14891
14892 if test $HAVE_DUP2 = 1; then
14893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
14894 $as_echo_n "checking whether dup2 works... " >&6; }
14895 if ${gl_cv_func_dup2_works+:} false; then :
14896 $as_echo_n "(cached) " >&6
14897 else
14898 if test "$cross_compiling" = yes; then :
14899 case "$host_os" in
14900 mingw*) # on this platform, dup2 always returns 0 for success
14901 gl_cv_func_dup2_works="guessing no" ;;
14902 cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
14903 gl_cv_func_dup2_works="guessing no" ;;
14904 aix* | freebsd*)
14905 # on AIX 7.1 and FreeBSD 6.1, dup2 (1,toobig) gives EMFILE,
14906 # not EBADF.
14907 gl_cv_func_dup2_works="guessing no" ;;
14908 haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
14909 gl_cv_func_dup2_works="guessing no" ;;
14910 *-android*) # implemented using dup3(), which fails if oldfd == newfd
14911 gl_cv_func_dup2_works="guessing no" ;;
14912 os2*) # on OS/2 kLIBC, dup2() does not work on a directory fd.
14913 gl_cv_func_dup2_works="guessing no" ;;
14914 *) gl_cv_func_dup2_works="guessing yes" ;;
14915 esac
14916 else
14917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14918 /* end confdefs.h. */
14919
14920 #include <errno.h>
14921 #include <fcntl.h>
14922 #include <limits.h>
14923 #include <sys/resource.h>
14924 #include <unistd.h>
14925 #ifndef RLIM_SAVED_CUR
14926 # define RLIM_SAVED_CUR RLIM_INFINITY
14927 #endif
14928 #ifndef RLIM_SAVED_MAX
14929 # define RLIM_SAVED_MAX RLIM_INFINITY
14930 #endif
14931
14932 int
14933 main ()
14934 {
14935 int result = 0;
14936 int bad_fd = INT_MAX;
14937 struct rlimit rlim;
14938 if (getrlimit (RLIMIT_NOFILE, &rlim) == 0
14939 && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX
14940 && rlim.rlim_cur != RLIM_INFINITY
14941 && rlim.rlim_cur != RLIM_SAVED_MAX
14942 && rlim.rlim_cur != RLIM_SAVED_CUR)
14943 bad_fd = rlim.rlim_cur;
14944 #ifdef FD_CLOEXEC
14945 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
14946 result |= 1;
14947 #endif
14948 if (dup2 (1, 1) != 1)
14949 result |= 2;
14950 #ifdef FD_CLOEXEC
14951 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
14952 result |= 4;
14953 #endif
14954 close (0);
14955 if (dup2 (0, 0) != -1)
14956 result |= 8;
14957 /* Many gnulib modules require POSIX conformance of EBADF. */
14958 if (dup2 (2, bad_fd) == -1 && errno != EBADF)
14959 result |= 16;
14960 /* Flush out some cygwin core dumps. */
14961 if (dup2 (2, -1) != -1 || errno != EBADF)
14962 result |= 32;
14963 dup2 (2, 255);
14964 dup2 (2, 256);
14965 /* On OS/2 kLIBC, dup2() does not work on a directory fd. */
14966 {
14967 int fd = open (".", O_RDONLY);
14968 if (fd == -1)
14969 result |= 64;
14970 else if (dup2 (fd, fd + 1) == -1)
14971 result |= 128;
14972
14973 close (fd);
14974 }
14975 return result;
14976 ;
14977 return 0;
14978 }
14979
14980 _ACEOF
14981 if ac_fn_c_try_run "$LINENO"; then :
14982 gl_cv_func_dup2_works=yes
14983 else
14984 gl_cv_func_dup2_works=no
14985 fi
14986 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14987 conftest.$ac_objext conftest.beam conftest.$ac_ext
14988 fi
14989
14990
14991 fi
14992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
14993 $as_echo "$gl_cv_func_dup2_works" >&6; }
14994 case "$gl_cv_func_dup2_works" in
14995 *yes) ;;
14996 *)
14997 REPLACE_DUP2=1
14998 for ac_func in setdtablesize
14999 do :
15000 ac_fn_c_check_func "$LINENO" "setdtablesize" "ac_cv_func_setdtablesize"
15001 if test "x$ac_cv_func_setdtablesize" = xyes; then :
15002 cat >>confdefs.h <<_ACEOF
15003 #define HAVE_SETDTABLESIZE 1
15004 _ACEOF
15005
15006 fi
15007 done
15008
15009 ;;
15010 esac
15011 fi
15012
15013
15014
15015
15016 :
15017
15018
15019
15020
15021
15022 if test $ac_cv_func_fchdir = no; then
15023 HAVE_FCHDIR=0
15024 fi
15025
15026 if test $HAVE_FCHDIR = 0; then
15027 if test $HAVE_DUP2 = 1; then
15028 REPLACE_DUP2=1
15029 fi
15030 fi
15031
15032
15033 if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then
15034
15035
15036
15037
15038
15039
15040
15041
15042 gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
15043
15044
15045 fi
15046
15047
15048
15049
15050
15051 GNULIB_DUP2=1
15052
15053
15054
15055
15056
15057 $as_echo "#define GNULIB_TEST_DUP2 1" >>confdefs.h
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067 GNULIB_ENVIRON=1
15068
15069
15070
15071
15072
15073 $as_echo "#define GNULIB_TEST_ENVIRON 1" >>confdefs.h
15074
15075
15076
15077
15078
15079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
15080 $as_echo_n "checking for error_at_line... " >&6; }
15081 if ${ac_cv_lib_error_at_line+:} false; then :
15082 $as_echo_n "(cached) " >&6
15083 else
15084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15085 /* end confdefs.h. */
15086 #include <error.h>
15087 int
15088 main ()
15089 {
15090 error_at_line (0, 0, "", 0, "an error occurred");
15091 ;
15092 return 0;
15093 }
15094 _ACEOF
15095 if ac_fn_c_try_link "$LINENO"; then :
15096 ac_cv_lib_error_at_line=yes
15097 else
15098 ac_cv_lib_error_at_line=no
15099 fi
15100 rm -f core conftest.err conftest.$ac_objext \
15101 conftest$ac_exeext conftest.$ac_ext
15102 fi
15103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
15104 $as_echo "$ac_cv_lib_error_at_line" >&6; }
15105
15106 if test $ac_cv_lib_error_at_line = no; then
15107
15108
15109
15110
15111
15112
15113
15114
15115 gl_LIBOBJS="$gl_LIBOBJS error.$ac_objext"
15116
15117
15118
15119 :
15120
15121 fi
15122
15123
15124
15125
15126
15127
15128
15129 :
15130
15131
15132
15133
15134
15135 if test $ac_cv_have_decl_fchdir = no; then
15136 HAVE_DECL_FCHDIR=0
15137 fi
15138
15139
15140 if test $HAVE_FCHDIR = 0; then
15141
15142
15143
15144
15145
15146
15147
15148
15149 gl_LIBOBJS="$gl_LIBOBJS fchdir.$ac_objext"
15150
15151 :
15152
15153 $as_echo "#define REPLACE_FCHDIR 1" >>confdefs.h
15154
15155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open can visit directories" >&5
15156 $as_echo_n "checking whether open can visit directories... " >&6; }
15157 if ${gl_cv_func_open_directory_works+:} false; then :
15158 $as_echo_n "(cached) " >&6
15159 else
15160 if test "$cross_compiling" = yes; then :
15161 case "$host_os" in
15162 # Guess yes on glibc systems.
15163 *-gnu*) gl_cv_func_open_directory_works="guessing yes" ;;
15164 # If we don't know, assume the worst.
15165 *) gl_cv_func_open_directory_works="guessing no" ;;
15166 esac
15167
15168 else
15169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15170 /* end confdefs.h. */
15171 #include <fcntl.h>
15172
15173 int
15174 main ()
15175 {
15176 return open(".", O_RDONLY) < 0;
15177 ;
15178 return 0;
15179 }
15180 _ACEOF
15181 if ac_fn_c_try_run "$LINENO"; then :
15182 gl_cv_func_open_directory_works=yes
15183 else
15184 gl_cv_func_open_directory_works=no
15185 fi
15186 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15187 conftest.$ac_objext conftest.beam conftest.$ac_ext
15188 fi
15189
15190 fi
15191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_open_directory_works" >&5
15192 $as_echo "$gl_cv_func_open_directory_works" >&6; }
15193 case "$gl_cv_func_open_directory_works" in
15194 *yes) ;;
15195 *)
15196
15197 $as_echo "#define REPLACE_OPEN_DIRECTORY 1" >>confdefs.h
15198
15199 ;;
15200 esac
15201 fi
15202
15203
15204
15205
15206
15207
15208 GNULIB_FCHDIR=1
15209
15210
15211
15212
15213
15214 $as_echo "#define GNULIB_TEST_FCHDIR 1" >>confdefs.h
15215
15216
15217
15218
15219
15220
15221
15222
15223 :
15224
15225
15226
15227
15228
15229 if test $ac_cv_func_fcntl = no; then
15230
15231
15232
15233 :
15234
15235
15236
15237
15238
15239 if test $ac_cv_func_fcntl = no; then
15240 HAVE_FCNTL=0
15241 else
15242 REPLACE_FCNTL=1
15243 fi
15244
15245 else
15246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl handles F_DUPFD correctly" >&5
15247 $as_echo_n "checking whether fcntl handles F_DUPFD correctly... " >&6; }
15248 if ${gl_cv_func_fcntl_f_dupfd_works+:} false; then :
15249 $as_echo_n "(cached) " >&6
15250 else
15251 if test "$cross_compiling" = yes; then :
15252 case $host_os in
15253 aix* | cygwin* | haiku*)
15254 gl_cv_func_fcntl_f_dupfd_works="guessing no" ;;
15255 *) gl_cv_func_fcntl_f_dupfd_works="guessing yes" ;;
15256 esac
15257 else
15258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15259 /* end confdefs.h. */
15260 #include <errno.h>
15261 #include <fcntl.h>
15262 #include <limits.h>
15263 #include <sys/resource.h>
15264 #include <unistd.h>
15265 #ifndef RLIM_SAVED_CUR
15266 # define RLIM_SAVED_CUR RLIM_INFINITY
15267 #endif
15268 #ifndef RLIM_SAVED_MAX
15269 # define RLIM_SAVED_MAX RLIM_INFINITY
15270 #endif
15271
15272 int
15273 main ()
15274 {
15275 int result = 0;
15276 int bad_fd = INT_MAX;
15277 struct rlimit rlim;
15278 if (getrlimit (RLIMIT_NOFILE, &rlim) == 0
15279 && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX
15280 && rlim.rlim_cur != RLIM_INFINITY
15281 && rlim.rlim_cur != RLIM_SAVED_MAX
15282 && rlim.rlim_cur != RLIM_SAVED_CUR)
15283 bad_fd = rlim.rlim_cur;
15284 if (fcntl (0, F_DUPFD, -1) != -1) result |= 1;
15285 if (errno != EINVAL) result |= 2;
15286 if (fcntl (0, F_DUPFD, bad_fd) != -1) result |= 4;
15287 if (errno != EINVAL) result |= 8;
15288 /* On OS/2 kLIBC, F_DUPFD does not work on a directory fd */
15289 {
15290 int fd;
15291 fd = open (".", O_RDONLY);
15292 if (fd == -1)
15293 result |= 16;
15294 else if (fcntl (fd, F_DUPFD, STDERR_FILENO + 1) == -1)
15295 result |= 32;
15296
15297 close (fd);
15298 }
15299 return result;
15300 ;
15301 return 0;
15302 }
15303 _ACEOF
15304 if ac_fn_c_try_run "$LINENO"; then :
15305 gl_cv_func_fcntl_f_dupfd_works=yes
15306 else
15307 gl_cv_func_fcntl_f_dupfd_works=no
15308 fi
15309 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15310 conftest.$ac_objext conftest.beam conftest.$ac_ext
15311 fi
15312
15313 fi
15314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_works" >&5
15315 $as_echo "$gl_cv_func_fcntl_f_dupfd_works" >&6; }
15316 case $gl_cv_func_fcntl_f_dupfd_works in
15317 *yes) ;;
15318 *)
15319
15320
15321 :
15322
15323
15324
15325
15326
15327 if test $ac_cv_func_fcntl = no; then
15328 HAVE_FCNTL=0
15329 else
15330 REPLACE_FCNTL=1
15331 fi
15332
15333
15334 $as_echo "#define FCNTL_DUPFD_BUGGY 1" >>confdefs.h
15335 ;;
15336 esac
15337
15338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl understands F_DUPFD_CLOEXEC" >&5
15339 $as_echo_n "checking whether fcntl understands F_DUPFD_CLOEXEC... " >&6; }
15340 if ${gl_cv_func_fcntl_f_dupfd_cloexec+:} false; then :
15341 $as_echo_n "(cached) " >&6
15342 else
15343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15344 /* end confdefs.h. */
15345
15346 #include <fcntl.h>
15347 #ifndef F_DUPFD_CLOEXEC
15348 choke me
15349 #endif
15350
15351 int
15352 main ()
15353 {
15354
15355 ;
15356 return 0;
15357 }
15358 _ACEOF
15359 if ac_fn_c_try_compile "$LINENO"; then :
15360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15361 /* end confdefs.h. */
15362
15363 #ifdef __linux__
15364 /* The Linux kernel only added F_DUPFD_CLOEXEC in 2.6.24, so we always replace
15365 it to support the semantics on older kernels that failed with EINVAL. */
15366 choke me
15367 #endif
15368
15369 int
15370 main ()
15371 {
15372
15373 ;
15374 return 0;
15375 }
15376 _ACEOF
15377 if ac_fn_c_try_compile "$LINENO"; then :
15378 gl_cv_func_fcntl_f_dupfd_cloexec=yes
15379 else
15380 gl_cv_func_fcntl_f_dupfd_cloexec="needs runtime check"
15381 fi
15382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15383 else
15384 gl_cv_func_fcntl_f_dupfd_cloexec=no
15385 fi
15386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15387 fi
15388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_cloexec" >&5
15389 $as_echo "$gl_cv_func_fcntl_f_dupfd_cloexec" >&6; }
15390 if test "$gl_cv_func_fcntl_f_dupfd_cloexec" != yes; then
15391
15392
15393
15394 :
15395
15396
15397
15398
15399
15400 if test $ac_cv_func_fcntl = no; then
15401 HAVE_FCNTL=0
15402 else
15403 REPLACE_FCNTL=1
15404 fi
15405
15406 fi
15407 fi
15408
15409
15410
15411
15412 :
15413
15414
15415
15416
15417
15418 if test $ac_cv_func_fchdir = no; then
15419 HAVE_FCHDIR=0
15420 fi
15421
15422 if test $HAVE_FCHDIR = 0; then
15423
15424
15425
15426 :
15427
15428
15429
15430
15431
15432 if test $ac_cv_func_fcntl = no; then
15433 HAVE_FCNTL=0
15434 else
15435 REPLACE_FCNTL=1
15436 fi
15437
15438 fi
15439
15440
15441 if test $HAVE_FCNTL = 0 || test $REPLACE_FCNTL = 1; then
15442
15443
15444
15445
15446
15447
15448
15449
15450 gl_LIBOBJS="$gl_LIBOBJS fcntl.$ac_objext"
15451
15452 fi
15453
15454
15455
15456
15457
15458 GNULIB_FCNTL=1
15459
15460
15461
15462
15463
15464 $as_echo "#define GNULIB_TEST_FCNTL 1" >>confdefs.h
15465
15466
15467
15468
15469
15470
15471
15472
15473
15474
15475
15476
15477
15478
15479 if test $gl_cv_have_include_next = yes; then
15480 gl_cv_next_fcntl_h='<'fcntl.h'>'
15481 else
15482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
15483 $as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
15484 if ${gl_cv_next_fcntl_h+:} false; then :
15485 $as_echo_n "(cached) " >&6
15486 else
15487
15488
15489
15490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15491 /* end confdefs.h. */
15492 #include <fcntl.h>
15493 _ACEOF
15494 case "$host_os" in
15495 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15496 *) gl_absname_cpp="$ac_cpp" ;;
15497 esac
15498
15499 case "$host_os" in
15500 mingw*)
15501 gl_dirsep_regex='[/\\]'
15502 ;;
15503 *)
15504 gl_dirsep_regex='\/'
15505 ;;
15506 esac
15507 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
15508 gl_header_literal_regex=`echo 'fcntl.h' \
15509 | sed -e "$gl_make_literal_regex_sed"`
15510 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15511 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15512 s|^/[^/]|//&|
15513 p
15514 q
15515 }'
15516
15517 gl_cv_absolute_fcntl_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15518 sed -n "$gl_absolute_header_sed"`
15519
15520 gl_header=$gl_cv_absolute_fcntl_h
15521 gl_cv_next_fcntl_h='"'$gl_header'"'
15522
15523
15524 fi
15525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
15526 $as_echo "$gl_cv_next_fcntl_h" >&6; }
15527 fi
15528 NEXT_FCNTL_H=$gl_cv_next_fcntl_h
15529
15530 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15531 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15532 gl_next_as_first_directive='<'fcntl.h'>'
15533 else
15534 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15535 gl_next_as_first_directive=$gl_cv_next_fcntl_h
15536 fi
15537 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H=$gl_next_as_first_directive
15538
15539
15540
15541
15542
15543
15544
15545
15546
15547
15548 for gl_func in fcntl openat; do
15549 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
15550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
15551 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
15552 if eval \${$as_gl_Symbol+:} false; then :
15553 $as_echo_n "(cached) " >&6
15554 else
15555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15556 /* end confdefs.h. */
15557 #include <fcntl.h>
15558
15559 int
15560 main ()
15561 {
15562 #undef $gl_func
15563 (void) $gl_func;
15564 ;
15565 return 0;
15566 }
15567 _ACEOF
15568 if ac_fn_c_try_compile "$LINENO"; then :
15569 eval "$as_gl_Symbol=yes"
15570 else
15571 eval "$as_gl_Symbol=no"
15572 fi
15573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15574 fi
15575 eval ac_res=\$$as_gl_Symbol
15576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15577 $as_echo "$ac_res" >&6; }
15578 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
15579 cat >>confdefs.h <<_ACEOF
15580 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
15581 _ACEOF
15582
15583 eval ac_cv_have_decl_$gl_func=yes
15584 fi
15585 done
15586
15587
15588
15589
15590
15591
15592
15593 ac_fn_c_check_decl "$LINENO" "fdopendir" "ac_cv_have_decl_fdopendir" "
15594 #include <dirent.h>
15595
15596 "
15597 if test "x$ac_cv_have_decl_fdopendir" = xyes; then :
15598 ac_have_decl=1
15599 else
15600 ac_have_decl=0
15601 fi
15602
15603 cat >>confdefs.h <<_ACEOF
15604 #define HAVE_DECL_FDOPENDIR $ac_have_decl
15605 _ACEOF
15606 if test $ac_have_decl = 1; then :
15607
15608 else
15609 HAVE_DECL_FDOPENDIR=0
15610 fi
15611
15612
15613 :
15614
15615
15616
15617
15618
15619 if test $ac_cv_func_fdopendir = no; then
15620 HAVE_FDOPENDIR=0
15621 else
15622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fdopendir works" >&5
15623 $as_echo_n "checking whether fdopendir works... " >&6; }
15624 if ${gl_cv_func_fdopendir_works+:} false; then :
15625 $as_echo_n "(cached) " >&6
15626 else
15627 if test "$cross_compiling" = yes; then :
15628 case "$host_os" in
15629 # Guess yes on glibc systems.
15630 *-gnu*) gl_cv_func_fdopendir_works="guessing yes" ;;
15631 # If we don't know, assume the worst.
15632 *) gl_cv_func_fdopendir_works="guessing no" ;;
15633 esac
15634
15635 else
15636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15637 /* end confdefs.h. */
15638
15639 #include <dirent.h>
15640 #include <fcntl.h>
15641 #include <unistd.h>
15642 #if !HAVE_DECL_FDOPENDIR
15643 extern
15644 # ifdef __cplusplus
15645 "C"
15646 # endif
15647 DIR *fdopendir (int);
15648 #endif
15649
15650 int
15651 main ()
15652 {
15653 int result = 0;
15654 int fd = open ("conftest.c", O_RDONLY);
15655 if (fd < 0) result |= 1;
15656 if (fdopendir (fd)) result |= 2;
15657 if (close (fd)) result |= 4;
15658 return result;
15659 ;
15660 return 0;
15661 }
15662 _ACEOF
15663 if ac_fn_c_try_run "$LINENO"; then :
15664 gl_cv_func_fdopendir_works=yes
15665 else
15666 gl_cv_func_fdopendir_works=no
15667 fi
15668 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15669 conftest.$ac_objext conftest.beam conftest.$ac_ext
15670 fi
15671
15672 fi
15673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fdopendir_works" >&5
15674 $as_echo "$gl_cv_func_fdopendir_works" >&6; }
15675 case "$gl_cv_func_fdopendir_works" in
15676 *yes) ;;
15677 *)
15678 REPLACE_FDOPENDIR=1
15679 ;;
15680 esac
15681 fi
15682
15683 if test $HAVE_FDOPENDIR = 0 || test $REPLACE_FDOPENDIR = 1; then
15684
15685
15686
15687
15688
15689
15690
15691
15692 gl_LIBOBJS="$gl_LIBOBJS fdopendir.$ac_objext"
15693
15694 fi
15695
15696
15697
15698
15699
15700 GNULIB_FDOPENDIR=1
15701
15702
15703
15704
15705
15706 $as_echo "#define GNULIB_TEST_FDOPENDIR 1" >>confdefs.h
15707
15708
15709
15710
15711
15712 cat >>confdefs.h <<_ACEOF
15713 #define GNULIB_FDOPENDIR 1
15714 _ACEOF
15715
15716
15717
15718
15719 :
15720
15721
15722
15723
15724
15725
15726
15727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array member" >&5
15728 $as_echo_n "checking for flexible array member... " >&6; }
15729 if ${ac_cv_c_flexmember+:} false; then :
15730 $as_echo_n "(cached) " >&6
15731 else
15732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15733 /* end confdefs.h. */
15734 #include <stdlib.h>
15735 #include <stdio.h>
15736 #include <stddef.h>
15737 struct s { int n; double d[]; };
15738 int
15739 main ()
15740 {
15741 int m = getchar ();
15742 size_t nbytes = offsetof (struct s, d) + m * sizeof (double);
15743 nbytes += sizeof (struct s) - 1;
15744 nbytes -= nbytes % sizeof (struct s);
15745 struct s *p = malloc (nbytes);
15746 p->d[0] = 0.0;
15747 return p->d != (double *) NULL;
15748 ;
15749 return 0;
15750 }
15751 _ACEOF
15752 if ac_fn_c_try_compile "$LINENO"; then :
15753 ac_cv_c_flexmember=yes
15754 else
15755 ac_cv_c_flexmember=no
15756 fi
15757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15758 fi
15759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5
15760 $as_echo "$ac_cv_c_flexmember" >&6; }
15761 if test $ac_cv_c_flexmember = yes; then
15762
15763 $as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h
15764
15765 else
15766 $as_echo "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h
15767
15768 fi
15769
15770
15771
15772
15773 FLOAT_H=
15774 REPLACE_FLOAT_LDBL=0
15775 case "$host_os" in
15776 aix* | beos* | openbsd* | mirbsd* | irix*)
15777 FLOAT_H=float.h
15778 ;;
15779 freebsd*)
15780 case "$host_cpu" in
15781 i[34567]86 )
15782 FLOAT_H=float.h
15783 ;;
15784 x86_64 )
15785 # On x86_64 systems, the C compiler may still be generating
15786 # 32-bit code.
15787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15788 /* end confdefs.h. */
15789 #if defined __LP64__ || defined __x86_64__ || defined __amd64__
15790 yes
15791 #endif
15792 _ACEOF
15793 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15794 $EGREP "yes" >/dev/null 2>&1; then :
15795
15796 else
15797 FLOAT_H=float.h
15798 fi
15799 rm -f conftest*
15800
15801 ;;
15802 esac
15803 ;;
15804 linux*)
15805 case "$host_cpu" in
15806 powerpc*)
15807 FLOAT_H=float.h
15808 ;;
15809 esac
15810 ;;
15811 esac
15812 case "$host_os" in
15813 aix* | freebsd* | linux*)
15814 if test -n "$FLOAT_H"; then
15815 REPLACE_FLOAT_LDBL=1
15816 fi
15817 ;;
15818 esac
15819
15820 REPLACE_ITOLD=0
15821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
15822 $as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
15823 if ${gl_cv_func_itold_works+:} false; then :
15824 $as_echo_n "(cached) " >&6
15825 else
15826
15827 if test "$cross_compiling" = yes; then :
15828 case "$host" in
15829 sparc*-*-linux*)
15830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15831 /* end confdefs.h. */
15832 #if defined __LP64__ || defined __arch64__
15833 yes
15834 #endif
15835 _ACEOF
15836 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15837 $EGREP "yes" >/dev/null 2>&1; then :
15838 gl_cv_func_itold_works="guessing no"
15839 else
15840 gl_cv_func_itold_works="guessing yes"
15841 fi
15842 rm -f conftest*
15843
15844 ;;
15845 *) gl_cv_func_itold_works="guessing yes" ;;
15846 esac
15847
15848 else
15849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15850 /* end confdefs.h. */
15851
15852 int i = -1;
15853 volatile long double ld;
15854 int main ()
15855 {
15856 ld += i * 1.0L;
15857 if (ld > 0)
15858 return 1;
15859 return 0;
15860 }
15861 _ACEOF
15862 if ac_fn_c_try_run "$LINENO"; then :
15863 gl_cv_func_itold_works=yes
15864 else
15865 gl_cv_func_itold_works=no
15866 fi
15867 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15868 conftest.$ac_objext conftest.beam conftest.$ac_ext
15869 fi
15870
15871
15872 fi
15873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
15874 $as_echo "$gl_cv_func_itold_works" >&6; }
15875 case "$gl_cv_func_itold_works" in
15876 *no)
15877 REPLACE_ITOLD=1
15878 FLOAT_H=float.h
15879 ;;
15880 esac
15881
15882 if test -n "$FLOAT_H"; then
15883
15884
15885
15886
15887
15888
15889
15890
15891 if test $gl_cv_have_include_next = yes; then
15892 gl_cv_next_float_h='<'float.h'>'
15893 else
15894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
15895 $as_echo_n "checking absolute name of <float.h>... " >&6; }
15896 if ${gl_cv_next_float_h+:} false; then :
15897 $as_echo_n "(cached) " >&6
15898 else
15899
15900
15901
15902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15903 /* end confdefs.h. */
15904 #include <float.h>
15905 _ACEOF
15906 case "$host_os" in
15907 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15908 *) gl_absname_cpp="$ac_cpp" ;;
15909 esac
15910
15911 case "$host_os" in
15912 mingw*)
15913 gl_dirsep_regex='[/\\]'
15914 ;;
15915 *)
15916 gl_dirsep_regex='\/'
15917 ;;
15918 esac
15919 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
15920 gl_header_literal_regex=`echo 'float.h' \
15921 | sed -e "$gl_make_literal_regex_sed"`
15922 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15923 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15924 s|^/[^/]|//&|
15925 p
15926 q
15927 }'
15928
15929 gl_cv_absolute_float_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15930 sed -n "$gl_absolute_header_sed"`
15931
15932 gl_header=$gl_cv_absolute_float_h
15933 gl_cv_next_float_h='"'$gl_header'"'
15934
15935
15936 fi
15937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
15938 $as_echo "$gl_cv_next_float_h" >&6; }
15939 fi
15940 NEXT_FLOAT_H=$gl_cv_next_float_h
15941
15942 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15943 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15944 gl_next_as_first_directive='<'float.h'>'
15945 else
15946 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15947 gl_next_as_first_directive=$gl_cv_next_float_h
15948 fi
15949 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
15950
15951
15952
15953
15954 fi
15955
15956 if test -n "$FLOAT_H"; then
15957 GL_GENERATE_FLOAT_H_TRUE=
15958 GL_GENERATE_FLOAT_H_FALSE='#'
15959 else
15960 GL_GENERATE_FLOAT_H_TRUE='#'
15961 GL_GENERATE_FLOAT_H_FALSE=
15962 fi
15963
15964
15965
15966 if test $REPLACE_FLOAT_LDBL = 1; then
15967
15968
15969
15970
15971
15972
15973
15974
15975 gl_LIBOBJS="$gl_LIBOBJS float.$ac_objext"
15976
15977 fi
15978 if test $REPLACE_ITOLD = 1; then
15979
15980
15981
15982
15983
15984
15985
15986
15987 gl_LIBOBJS="$gl_LIBOBJS itold.$ac_objext"
15988
15989 fi
15990
15991
15992
15993
15994
15995 FNMATCH_H=
15996 gl_fnmatch_required_lowercase=`
15997 echo $gl_fnmatch_required | LC_ALL=C tr '[A-Z]' '[a-z]'
15998 `
15999 gl_fnmatch_cache_var="gl_cv_func_fnmatch_${gl_fnmatch_required_lowercase}"
16000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working $gl_fnmatch_required fnmatch" >&5
16001 $as_echo_n "checking for working $gl_fnmatch_required fnmatch... " >&6; }
16002 if eval \${$gl_fnmatch_cache_var+:} false; then :
16003 $as_echo_n "(cached) " >&6
16004 else
16005 if test $gl_fnmatch_required = GNU; then
16006 gl_fnmatch_gnu_start=
16007 gl_fnmatch_gnu_end=
16008 else
16009 gl_fnmatch_gnu_start='#if 0'
16010 gl_fnmatch_gnu_end='#endif'
16011 fi
16012 if test "$cross_compiling" = yes; then :
16013 eval "$gl_fnmatch_cache_var=\"guessing no\""
16014 else
16015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16016 /* end confdefs.h. */
16017 #include <fnmatch.h>
16018 static int
16019 y (char const *pattern, char const *string, int flags)
16020 {
16021 return fnmatch (pattern, string, flags) == 0;
16022 }
16023 static int
16024 n (char const *pattern, char const *string, int flags)
16025 {
16026 return fnmatch (pattern, string, flags) == FNM_NOMATCH;
16027 }
16028
16029 int
16030 main ()
16031 {
16032 char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]";
16033 char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]";
16034 static char const A_1[] = { 'A' - 1, 0 };
16035 static char const A01[] = { 'A' + 1, 0 };
16036 static char const a_1[] = { 'a' - 1, 0 };
16037 static char const a01[] = { 'a' + 1, 0 };
16038 static char const bs_1[] = { '\\\\' - 1, 0 };
16039 static char const bs01[] = { '\\\\' + 1, 0 };
16040 int result = 0;
16041 if (!n ("a*", "", 0))
16042 return 1;
16043 if (!y ("a*", "abc", 0))
16044 return 1;
16045 if (!y ("[/b", "[/b", 0)) /*"]]"*/ /* glibc Bugzilla bug 12378 */
16046 return 1;
16047 if (!n ("d*/*1", "d/s/1", FNM_PATHNAME))
16048 return 2;
16049 if (!y ("a\\\\bc", "abc", 0))
16050 return 3;
16051 if (!n ("a\\\\bc", "abc", FNM_NOESCAPE))
16052 return 3;
16053 if (!y ("*x", ".x", 0))
16054 return 4;
16055 if (!n ("*x", ".x", FNM_PERIOD))
16056 return 4;
16057 if (!y (Apat, "\\\\", 0))
16058 return 5;
16059 if (!y (Apat, "A", 0))
16060 return 5;
16061 if (!y (apat, "\\\\", 0))
16062 return 5;
16063 if (!y (apat, "a", 0))
16064 return 5;
16065 if (!(n (Apat, A_1, 0) == ('A' < '\\\\')))
16066 return 5;
16067 if (!(n (apat, a_1, 0) == ('a' < '\\\\')))
16068 return 5;
16069 if (!(y (Apat, A01, 0) == ('A' < '\\\\')))
16070 return 5;
16071 if (!(y (apat, a01, 0) == ('a' < '\\\\')))
16072 return 5;
16073 if (!(y (Apat, bs_1, 0) == ('A' < '\\\\')))
16074 return 5;
16075 if (!(y (apat, bs_1, 0) == ('a' < '\\\\')))
16076 return 5;
16077 if (!(n (Apat, bs01, 0) == ('A' < '\\\\')))
16078 return 5;
16079 if (!(n (apat, bs01, 0) == ('a' < '\\\\')))
16080 return 5;
16081 $gl_fnmatch_gnu_start
16082 if (!y ("xxXX", "xXxX", FNM_CASEFOLD))
16083 result |= 8;
16084 if (!y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH))
16085 result |= 16;
16086 if (!n ("d*/*1", "d/s/1", FNM_FILE_NAME))
16087 result |= 32;
16088 if (!y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR))
16089 result |= 64;
16090 if (!y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR))
16091 result |= 64;
16092 if (!y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR))
16093 result |= 64;
16094 $gl_fnmatch_gnu_end
16095 return result;
16096
16097 ;
16098 return 0;
16099 }
16100 _ACEOF
16101 if ac_fn_c_try_run "$LINENO"; then :
16102 eval "$gl_fnmatch_cache_var=yes"
16103 else
16104 eval "$gl_fnmatch_cache_var=no"
16105 fi
16106 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16107 conftest.$ac_objext conftest.beam conftest.$ac_ext
16108 fi
16109
16110
16111 fi
16112 eval ac_res=\$$gl_fnmatch_cache_var
16113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16114 $as_echo "$ac_res" >&6; }
16115 eval "gl_fnmatch_result=\"\$$gl_fnmatch_cache_var\""
16116 if test "$gl_fnmatch_result" = yes; then
16117 rm -f "$gl_source_base/fnmatch.h"
16118 else
16119 FNMATCH_H=fnmatch.h
16120 fi
16121
16122 if test -n "$FNMATCH_H"; then
16123 GL_GENERATE_FNMATCH_H_TRUE=
16124 GL_GENERATE_FNMATCH_H_FALSE='#'
16125 else
16126 GL_GENERATE_FNMATCH_H_TRUE='#'
16127 GL_GENERATE_FNMATCH_H_FALSE=
16128 fi
16129
16130
16131 if test -n "$FNMATCH_H"; then
16132
16133
16134
16135
16136
16137
16138
16139
16140 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
16141
16142
16143
16144 cat >>confdefs.h <<_ACEOF
16145 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
16146 _ACEOF
16147
16148
16149 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
16150 "
16151 if test "x$ac_cv_have_decl_isblank" = xyes; then :
16152 ac_have_decl=1
16153 else
16154 ac_have_decl=0
16155 fi
16156
16157 cat >>confdefs.h <<_ACEOF
16158 #define HAVE_DECL_ISBLANK $ac_have_decl
16159 _ACEOF
16160
16161
16162 :
16163
16164
16165
16166
16167
16168
16169
16170
16171
16172
16173
16174
16175
16176
16177
16178
16179
16180
16181
16182
16183
16184
16185
16186
16187
16188
16189
16190 :
16191
16192
16193
16194
16195
16196
16197 fi
16198
16199
16200
16201
16202
16203 if test -n "$FNMATCH_H"; then
16204
16205
16206
16207
16208
16209
16210
16211
16212 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
16213
16214
16215
16216 cat >>confdefs.h <<_ACEOF
16217 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
16218 _ACEOF
16219
16220
16221 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
16222 "
16223 if test "x$ac_cv_have_decl_isblank" = xyes; then :
16224 ac_have_decl=1
16225 else
16226 ac_have_decl=0
16227 fi
16228
16229 cat >>confdefs.h <<_ACEOF
16230 #define HAVE_DECL_ISBLANK $ac_have_decl
16231 _ACEOF
16232
16233
16234 :
16235
16236
16237
16238
16239
16240
16241
16242
16243
16244
16245
16246
16247
16248
16249
16250
16251
16252
16253
16254
16255
16256
16257
16258
16259
16260
16261
16262 :
16263
16264
16265
16266
16267
16268
16269 fi
16270
16271
16272
16273 FREXP_LIBM=
16274 if test $gl_cv_func_frexp_no_libm = no; then
16275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used with libm" >&5
16276 $as_echo_n "checking whether frexp() can be used with libm... " >&6; }
16277 if ${gl_cv_func_frexp_in_libm+:} false; then :
16278 $as_echo_n "(cached) " >&6
16279 else
16280
16281 save_LIBS="$LIBS"
16282 LIBS="$LIBS -lm"
16283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16284 /* end confdefs.h. */
16285 #include <math.h>
16286 double x;
16287 int
16288 main ()
16289 {
16290 int e; return frexp (x, &e) > 0;
16291 ;
16292 return 0;
16293 }
16294 _ACEOF
16295 if ac_fn_c_try_link "$LINENO"; then :
16296 gl_cv_func_frexp_in_libm=yes
16297 else
16298 gl_cv_func_frexp_in_libm=no
16299 fi
16300 rm -f core conftest.err conftest.$ac_objext \
16301 conftest$ac_exeext conftest.$ac_ext
16302 LIBS="$save_LIBS"
16303
16304 fi
16305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_in_libm" >&5
16306 $as_echo "$gl_cv_func_frexp_in_libm" >&6; }
16307 if test $gl_cv_func_frexp_in_libm = yes; then
16308 FREXP_LIBM=-lm
16309 fi
16310 fi
16311 if test $gl_cv_func_frexp_no_libm = yes \
16312 || test $gl_cv_func_frexp_in_libm = yes; then
16313 save_LIBS="$LIBS"
16314 LIBS="$LIBS $FREXP_LIBM"
16315
16316
16317
16318 :
16319
16320
16321
16322
16323
16324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp works" >&5
16325 $as_echo_n "checking whether frexp works... " >&6; }
16326 if ${gl_cv_func_frexp_works+:} false; then :
16327 $as_echo_n "(cached) " >&6
16328 else
16329
16330 if test "$cross_compiling" = yes; then :
16331 case "$host_os" in
16332 netbsd* | irix* | mingw*) gl_cv_func_frexp_works="guessing no";;
16333 *) gl_cv_func_frexp_works="guessing yes";;
16334 esac
16335
16336 else
16337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16338 /* end confdefs.h. */
16339
16340 #include <float.h>
16341 #include <math.h>
16342 #include <string.h>
16343 #if HAVE_DECL_ALARM
16344 # include <signal.h>
16345 # include <unistd.h>
16346 #endif
16347 /* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0.
16348 ICC 10.0 has a bug when optimizing the expression -zero.
16349 The expression -DBL_MIN * DBL_MIN does not work when cross-compiling
16350 to PowerPC on Mac OS X 10.5. */
16351 #if defined __hpux || defined __sgi || defined __ICC
16352 static double
16353 compute_minus_zero (void)
16354 {
16355 return -DBL_MIN * DBL_MIN;
16356 }
16357 # define minus_zero compute_minus_zero ()
16358 #else
16359 double minus_zero = -0.0;
16360 #endif
16361 int main()
16362 {
16363 int result = 0;
16364 int i;
16365 volatile double x;
16366 double zero = 0.0;
16367 #if HAVE_DECL_ALARM
16368 /* NeXTstep 3.3 frexp() runs into an endless loop when called on an infinite
16369 number. Let the test fail in this case. */
16370 signal (SIGALRM, SIG_DFL);
16371 alarm (5);
16372 #endif
16373 /* Test on denormalized numbers. */
16374 for (i = 1, x = 1.0; i >= DBL_MIN_EXP; i--, x *= 0.5)
16375 ;
16376 if (x > 0.0)
16377 {
16378 int exp;
16379 double y = frexp (x, &exp);
16380 /* On machines with IEEE754 arithmetic: x = 1.11254e-308, exp = -1022.
16381 On NetBSD: y = 0.75. Correct: y = 0.5. */
16382 if (y != 0.5)
16383 result |= 1;
16384 }
16385 /* Test on infinite numbers. */
16386 x = 1.0 / zero;
16387 {
16388 int exp;
16389 double y = frexp (x, &exp);
16390 if (y != x)
16391 result |= 2;
16392 }
16393 /* Test on negative zero. */
16394 x = minus_zero;
16395 {
16396 int exp;
16397 double y = frexp (x, &exp);
16398 if (memcmp (&y, &x, sizeof x))
16399 result |= 4;
16400 }
16401 return result;
16402 }
16403 _ACEOF
16404 if ac_fn_c_try_run "$LINENO"; then :
16405 gl_cv_func_frexp_works=yes
16406 else
16407 gl_cv_func_frexp_works=no
16408 fi
16409 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16410 conftest.$ac_objext conftest.beam conftest.$ac_ext
16411 fi
16412
16413
16414 fi
16415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_works" >&5
16416 $as_echo "$gl_cv_func_frexp_works" >&6; }
16417
16418 LIBS="$save_LIBS"
16419 case "$gl_cv_func_frexp_works" in
16420 *yes) gl_func_frexp=yes ;;
16421 *) gl_func_frexp=no; REPLACE_FREXP=1; FREXP_LIBM= ;;
16422 esac
16423 else
16424 gl_func_frexp=no
16425 fi
16426 if test $gl_func_frexp = yes; then
16427
16428 $as_echo "#define HAVE_FREXP 1" >>confdefs.h
16429
16430 fi
16431
16432
16433 if test $gl_func_frexp != yes; then
16434
16435
16436
16437
16438
16439
16440
16441
16442 gl_LIBOBJS="$gl_LIBOBJS frexp.$ac_objext"
16443
16444 fi
16445
16446
16447
16448
16449
16450 GNULIB_FREXP=1
16451
16452
16453
16454
16455
16456 $as_echo "#define GNULIB_TEST_FREXP 1" >>confdefs.h
16457
16458
16459
16460
16461
16462
16463
16464
16465
16466 ac_fn_c_check_decl "$LINENO" "frexpl" "ac_cv_have_decl_frexpl" "#include <math.h>
16467 "
16468 if test "x$ac_cv_have_decl_frexpl" = xyes; then :
16469
16470 else
16471 HAVE_DECL_FREXPL=0
16472 fi
16473
16474
16475 FREXPL_LIBM=
16476 if test $HAVE_DECL_FREXPL = 1; then
16477
16478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used without linking with libm" >&5
16479 $as_echo_n "checking whether frexpl() can be used without linking with libm... " >&6; }
16480 if ${gl_cv_func_frexpl_no_libm+:} false; then :
16481 $as_echo_n "(cached) " >&6
16482 else
16483
16484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16485 /* end confdefs.h. */
16486 #include <math.h>
16487 long double x;
16488 int
16489 main ()
16490 {
16491 int e; return frexpl (x, &e) > 0;
16492 ;
16493 return 0;
16494 }
16495 _ACEOF
16496 if ac_fn_c_try_link "$LINENO"; then :
16497 gl_cv_func_frexpl_no_libm=yes
16498 else
16499 gl_cv_func_frexpl_no_libm=no
16500 fi
16501 rm -f core conftest.err conftest.$ac_objext \
16502 conftest$ac_exeext conftest.$ac_ext
16503
16504 fi
16505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_no_libm" >&5
16506 $as_echo "$gl_cv_func_frexpl_no_libm" >&6; }
16507
16508 if test $gl_cv_func_frexpl_no_libm = no; then
16509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used with libm" >&5
16510 $as_echo_n "checking whether frexpl() can be used with libm... " >&6; }
16511 if ${gl_cv_func_frexpl_in_libm+:} false; then :
16512 $as_echo_n "(cached) " >&6
16513 else
16514
16515 save_LIBS="$LIBS"
16516 LIBS="$LIBS -lm"
16517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16518 /* end confdefs.h. */
16519 #include <math.h>
16520 long double x;
16521 int
16522 main ()
16523 {
16524 int e; return frexpl (x, &e) > 0;
16525 ;
16526 return 0;
16527 }
16528 _ACEOF
16529 if ac_fn_c_try_link "$LINENO"; then :
16530 gl_cv_func_frexpl_in_libm=yes
16531 else
16532 gl_cv_func_frexpl_in_libm=no
16533 fi
16534 rm -f core conftest.err conftest.$ac_objext \
16535 conftest$ac_exeext conftest.$ac_ext
16536 LIBS="$save_LIBS"
16537
16538 fi
16539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_in_libm" >&5
16540 $as_echo "$gl_cv_func_frexpl_in_libm" >&6; }
16541 if test $gl_cv_func_frexpl_in_libm = yes; then
16542 FREXPL_LIBM=-lm
16543 fi
16544 fi
16545 if test $gl_cv_func_frexpl_no_libm = yes \
16546 || test $gl_cv_func_frexpl_in_libm = yes; then
16547 save_LIBS="$LIBS"
16548 LIBS="$LIBS $FREXPL_LIBM"
16549
16550
16551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl works" >&5
16552 $as_echo_n "checking whether frexpl works... " >&6; }
16553 if ${gl_cv_func_frexpl_works+:} false; then :
16554 $as_echo_n "(cached) " >&6
16555 else
16556
16557 if test "$cross_compiling" = yes; then :
16558
16559 case "$host_os" in
16560 aix | aix[3-6]* | beos* | darwin* | irix* | mingw* | pw*)
16561 gl_cv_func_frexpl_works="guessing no";;
16562 *) gl_cv_func_frexpl_works="guessing yes";;
16563 esac
16564
16565 else
16566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16567 /* end confdefs.h. */
16568
16569 #include <float.h>
16570 #include <math.h>
16571 /* Override the values of <float.h>, like done in float.in.h. */
16572 #if defined __i386__ && (defined __BEOS__ || defined __OpenBSD__)
16573 # undef LDBL_MIN_EXP
16574 # define LDBL_MIN_EXP (-16381)
16575 #endif
16576 #if defined __i386__ && defined __FreeBSD__
16577 # undef LDBL_MIN_EXP
16578 # define LDBL_MIN_EXP (-16381)
16579 #endif
16580 #if (defined _ARCH_PPC || defined _POWER) && defined _AIX && (LDBL_MANT_DIG == 106) && defined __GNUC__
16581 # undef LDBL_MIN_EXP
16582 # define LDBL_MIN_EXP DBL_MIN_EXP
16583 #endif
16584 #if defined __sgi && (LDBL_MANT_DIG >= 106)
16585 # if defined __GNUC__
16586 # undef LDBL_MIN_EXP
16587 # define LDBL_MIN_EXP DBL_MIN_EXP
16588 # endif
16589 #endif
16590 extern
16591 #ifdef __cplusplus
16592 "C"
16593 #endif
16594 long double frexpl (long double, int *);
16595 int main()
16596 {
16597 int result = 0;
16598 volatile long double x;
16599 /* Test on finite numbers that fails on AIX 5.1. */
16600 x = 16.0L;
16601 {
16602 int exp = -9999;
16603 frexpl (x, &exp);
16604 if (exp != 5)
16605 result |= 1;
16606 }
16607 /* Test on finite numbers that fails on Mac OS X 10.4, because its frexpl
16608 function returns an invalid (incorrectly normalized) value: it returns
16609 y = { 0x3fe028f5, 0xc28f5c28, 0x3c9eb851, 0xeb851eb8 }
16610 but the correct result is
16611 0.505L = { 0x3fe028f5, 0xc28f5c29, 0xbc547ae1, 0x47ae1480 } */
16612 x = 1.01L;
16613 {
16614 int exp = -9999;
16615 long double y = frexpl (x, &exp);
16616 if (!(exp == 1 && y == 0.505L))
16617 result |= 2;
16618 }
16619 /* Test on large finite numbers. This fails on BeOS at i = 16322, while
16620 LDBL_MAX_EXP = 16384.
16621 In the loop end test, we test x against Infinity, rather than comparing
16622 i with LDBL_MAX_EXP, because BeOS <float.h> has a wrong LDBL_MAX_EXP. */
16623 {
16624 int i;
16625 for (i = 1, x = 1.0L; x != x + x; i++, x *= 2.0L)
16626 {
16627 int exp = -9999;
16628 frexpl (x, &exp);
16629 if (exp != i)
16630 {
16631 result |= 4;
16632 break;
16633 }
16634 }
16635 }
16636 /* Test on denormalized numbers. */
16637 {
16638 int i;
16639 for (i = 1, x = 1.0L; i >= LDBL_MIN_EXP; i--, x *= 0.5L)
16640 ;
16641 if (x > 0.0L)
16642 {
16643 int exp;
16644 long double y = frexpl (x, &exp);
16645 /* On machines with IEEE854 arithmetic: x = 1.68105e-4932,
16646 exp = -16382, y = 0.5. On Mac OS X 10.5: exp = -16384, y = 0.5. */
16647 if (exp != LDBL_MIN_EXP - 1)
16648 result |= 8;
16649 }
16650 }
16651 /* Test on infinite numbers. */
16652 x = 1.0L / 0.0L;
16653 {
16654 int exp;
16655 long double y = frexpl (x, &exp);
16656 if (y != x)
16657 result |= 16;
16658 }
16659 return result;
16660 }
16661 _ACEOF
16662 if ac_fn_c_try_run "$LINENO"; then :
16663 gl_cv_func_frexpl_works=yes
16664 else
16665 gl_cv_func_frexpl_works=no
16666 fi
16667 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16668 conftest.$ac_objext conftest.beam conftest.$ac_ext
16669 fi
16670
16671
16672 fi
16673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_works" >&5
16674 $as_echo "$gl_cv_func_frexpl_works" >&6; }
16675
16676 LIBS="$save_LIBS"
16677 case "$gl_cv_func_frexpl_works" in
16678 *yes) gl_func_frexpl=yes ;;
16679 *) gl_func_frexpl=no; REPLACE_FREXPL=1 ;;
16680 esac
16681 else
16682 gl_func_frexpl=no
16683 fi
16684 if test $gl_func_frexpl = yes; then
16685
16686 $as_echo "#define HAVE_FREXPL 1" >>confdefs.h
16687
16688 fi
16689 fi
16690 if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl = no; then
16691 if test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1; then
16692
16693 FREXPL_LIBM="$FREXP_LIBM"
16694 else
16695 FREXPL_LIBM=
16696 fi
16697 fi
16698
16699
16700 if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl = no; then
16701
16702
16703
16704
16705
16706
16707
16708
16709 gl_LIBOBJS="$gl_LIBOBJS frexpl.$ac_objext"
16710
16711 fi
16712
16713
16714
16715
16716
16717 GNULIB_FREXPL=1
16718
16719
16720
16721
16722
16723 $as_echo "#define GNULIB_TEST_FREXPL 1" >>confdefs.h
16724
16725
16726
16727
16728
16729
16730
16731 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
16732 REPLACE_FSTAT=1
16733 fi
16734
16735
16736 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
16737 REPLACE_FSTAT=1
16738 fi
16739
16740
16741
16742
16743
16744 :
16745
16746
16747
16748
16749
16750 if test $ac_cv_func_fchdir = no; then
16751 HAVE_FCHDIR=0
16752 fi
16753
16754 if test $HAVE_FCHDIR = 0; then
16755 case "$gl_cv_func_open_directory_works" in
16756 *yes) ;;
16757 *)
16758 REPLACE_FSTAT=1
16759 ;;
16760 esac
16761 fi
16762
16763
16764 if test $REPLACE_FSTAT = 1; then
16765
16766
16767
16768
16769
16770
16771
16772
16773 gl_LIBOBJS="$gl_LIBOBJS fstat.$ac_objext"
16774
16775 :
16776 fi
16777
16778
16779
16780
16781
16782 GNULIB_FSTAT=1
16783
16784
16785
16786
16787
16788 $as_echo "#define GNULIB_TEST_FSTAT 1" >>confdefs.h
16789
16790
16791
16792
16793
16794
16795
16796
16797 :
16798
16799
16800
16801
16802
16803
16804 if test $ac_cv_func_fstatat = no; then
16805 HAVE_FSTATAT=0
16806 else
16807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fstatat (..., 0) works" >&5
16808 $as_echo_n "checking whether fstatat (..., 0) works... " >&6; }
16809 if ${gl_cv_func_fstatat_zero_flag+:} false; then :
16810 $as_echo_n "(cached) " >&6
16811 else
16812 if test "$cross_compiling" = yes; then :
16813 case "$host_os" in
16814 aix*) gl_cv_func_fstatat_zero_flag="guessing no";;
16815 *) gl_cv_func_fstatat_zero_flag="guessing yes";;
16816 esac
16817
16818 else
16819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16820 /* end confdefs.h. */
16821
16822 #include <fcntl.h>
16823 #include <sys/stat.h>
16824 int
16825 main (void)
16826 {
16827 struct stat a;
16828 return fstatat (AT_FDCWD, ".", &a, 0) != 0;
16829 }
16830
16831 _ACEOF
16832 if ac_fn_c_try_run "$LINENO"; then :
16833 gl_cv_func_fstatat_zero_flag=yes
16834 else
16835 gl_cv_func_fstatat_zero_flag=no
16836 fi
16837 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16838 conftest.$ac_objext conftest.beam conftest.$ac_ext
16839 fi
16840
16841
16842 fi
16843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fstatat_zero_flag" >&5
16844 $as_echo "$gl_cv_func_fstatat_zero_flag" >&6; }
16845
16846 case $gl_cv_func_fstatat_zero_flag+$gl_cv_func_lstat_dereferences_slashed_symlink in
16847 *yes+*yes) ;;
16848 *) REPLACE_FSTATAT=1
16849 case $gl_cv_func_fstatat_zero_flag in
16850 *yes)
16851
16852 $as_echo "#define HAVE_WORKING_FSTATAT_ZERO_FLAG 1" >>confdefs.h
16853
16854 ;;
16855 esac
16856 ;;
16857 esac
16858 fi
16859
16860 if test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1; then
16861
16862
16863
16864
16865
16866
16867
16868
16869 gl_LIBOBJS="$gl_LIBOBJS fstatat.$ac_objext"
16870
16871 fi
16872
16873
16874
16875
16876
16877 GNULIB_FSTATAT=1
16878
16879
16880
16881
16882
16883 $as_echo "#define GNULIB_TEST_FSTATAT 1" >>confdefs.h
16884
16885
16886
16887
16888
16889
16890
16891
16892 gl_abort_bug=no
16893 case "$host_os" in
16894 mingw*)
16895 gl_cv_func_getcwd_path_max=yes
16896 ;;
16897 *)
16898
16899
16900 :
16901
16902
16903
16904
16905
16906
16907
16908 :
16909
16910
16911
16912
16913
16914
16915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd handles long file names properly" >&5
16916 $as_echo_n "checking whether getcwd handles long file names properly... " >&6; }
16917 if ${gl_cv_func_getcwd_path_max+:} false; then :
16918 $as_echo_n "(cached) " >&6
16919 else
16920 # Arrange for deletion of the temporary directory this test creates.
16921 ac_clean_files="$ac_clean_files confdir3"
16922 if test "$cross_compiling" = yes; then :
16923 case "$host_os" in
16924 aix*) gl_cv_func_getcwd_path_max='no, it has the AIX bug';;
16925 *) gl_cv_func_getcwd_path_max=no;;
16926 esac
16927 else
16928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16929 /* end confdefs.h. */
16930
16931 #include <errno.h>
16932 #include <stdlib.h>
16933 #if HAVE_UNISTD_H
16934 # include <unistd.h>
16935 #else
16936 # include <direct.h>
16937 #endif
16938 #include <string.h>
16939 #include <limits.h>
16940 #include <sys/stat.h>
16941 #include <sys/types.h>
16942 #include <fcntl.h>
16943
16944
16945 /* Arrange to define PATH_MAX, like "pathmax.h" does. */
16946 #if HAVE_UNISTD_H
16947 # include <unistd.h>
16948 #endif
16949 #include <limits.h>
16950 #if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN
16951 # include <sys/param.h>
16952 #endif
16953 #if !defined PATH_MAX && defined MAXPATHLEN
16954 # define PATH_MAX MAXPATHLEN
16955 #endif
16956 #ifdef __hpux
16957 # undef PATH_MAX
16958 # define PATH_MAX 1024
16959 #endif
16960 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
16961 # undef PATH_MAX
16962 # define PATH_MAX 260
16963 #endif
16964
16965
16966 #ifndef AT_FDCWD
16967 # define AT_FDCWD 0
16968 #endif
16969 #ifdef ENAMETOOLONG
16970 # define is_ENAMETOOLONG(x) ((x) == ENAMETOOLONG)
16971 #else
16972 # define is_ENAMETOOLONG(x) 0
16973 #endif
16974
16975 /* Use the getcwd function, not any macro. */
16976 #undef getcwd
16977
16978 /* Don't get link errors because mkdir is redefined to rpl_mkdir. */
16979 #undef mkdir
16980
16981 #ifndef S_IRWXU
16982 # define S_IRWXU 0700
16983 #endif
16984
16985 /* The length of this name must be 8. */
16986 #define DIR_NAME "confdir3"
16987 #define DIR_NAME_LEN 8
16988 #define DIR_NAME_SIZE (DIR_NAME_LEN + 1)
16989
16990 /* The length of "../". */
16991 #define DOTDOTSLASH_LEN 3
16992
16993 /* Leftover bytes in the buffer, to work around library or OS bugs. */
16994 #define BUF_SLOP 20
16995
16996 int
16997 main ()
16998 {
16999 #ifndef PATH_MAX
17000 /* The Hurd doesn't define this, so getcwd can't exhibit the bug --
17001 at least not on a local file system. And if we were to start worrying
17002 about remote file systems, we'd have to enable the wrapper function
17003 all of the time, just to be safe. That's not worth the cost. */
17004 exit (0);
17005 #elif ((INT_MAX / (DIR_NAME_SIZE / DOTDOTSLASH_LEN + 1) \
17006 - DIR_NAME_SIZE - BUF_SLOP) \
17007 <= PATH_MAX)
17008 /* FIXME: Assuming there's a system for which this is true,
17009 this should be done in a compile test. */
17010 exit (0);
17011 #else
17012 char buf[PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN + 1)
17013 + DIR_NAME_SIZE + BUF_SLOP];
17014 char *cwd = getcwd (buf, PATH_MAX);
17015 size_t initial_cwd_len;
17016 size_t cwd_len;
17017 int fail = 0;
17018 size_t n_chdirs = 0;
17019
17020 if (cwd == NULL)
17021 exit (10);
17022
17023 cwd_len = initial_cwd_len = strlen (cwd);
17024
17025 while (1)
17026 {
17027 size_t dotdot_max = PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN);
17028 char *c = NULL;
17029
17030 cwd_len += DIR_NAME_SIZE;
17031 /* If mkdir or chdir fails, it could be that this system cannot create
17032 any file with an absolute name longer than PATH_MAX, such as cygwin.
17033 If so, leave fail as 0, because the current working directory can't
17034 be too long for getcwd if it can't even be created. For other
17035 errors, be pessimistic and consider that as a failure, too. */
17036 if (mkdir (DIR_NAME, S_IRWXU) < 0 || chdir (DIR_NAME) < 0)
17037 {
17038 if (! (errno == ERANGE || is_ENAMETOOLONG (errno)))
17039 fail = 20;
17040 break;
17041 }
17042
17043 if (PATH_MAX <= cwd_len && cwd_len < PATH_MAX + DIR_NAME_SIZE)
17044 {
17045 struct stat sb;
17046
17047 c = getcwd (buf, PATH_MAX);
17048 if (!c && errno == ENOENT)
17049 {
17050 fail = 11;
17051 break;
17052 }
17053 if (c)
17054 {
17055 fail = 31;
17056 break;
17057 }
17058 if (! (errno == ERANGE || is_ENAMETOOLONG (errno)))
17059 {
17060 fail = 21;
17061 break;
17062 }
17063
17064 /* Our replacement needs to be able to stat() long ../../paths,
17065 so generate a path larger than PATH_MAX to check,
17066 avoiding the replacement if we can't stat(). */
17067 c = getcwd (buf, cwd_len + 1);
17068 if (c && !AT_FDCWD && stat (c, &sb) != 0 && is_ENAMETOOLONG (errno))
17069 {
17070 fail = 32;
17071 break;
17072 }
17073 }
17074
17075 if (dotdot_max <= cwd_len - initial_cwd_len)
17076 {
17077 if (dotdot_max + DIR_NAME_SIZE < cwd_len - initial_cwd_len)
17078 break;
17079 c = getcwd (buf, cwd_len + 1);
17080 if (!c)
17081 {
17082 if (! (errno == ERANGE || errno == ENOENT
17083 || is_ENAMETOOLONG (errno)))
17084 {
17085 fail = 22;
17086 break;
17087 }
17088 if (AT_FDCWD || errno == ERANGE || errno == ENOENT)
17089 {
17090 fail = 12;
17091 break;
17092 }
17093 }
17094 }
17095
17096 if (c && strlen (c) != cwd_len)
17097 {
17098 fail = 23;
17099 break;
17100 }
17101 ++n_chdirs;
17102 }
17103
17104 /* Leaving behind such a deep directory is not polite.
17105 So clean up here, right away, even though the driving
17106 shell script would also clean up. */
17107 {
17108 size_t i;
17109
17110 /* Try rmdir first, in case the chdir failed. */
17111 rmdir (DIR_NAME);
17112 for (i = 0; i <= n_chdirs; i++)
17113 {
17114 if (chdir ("..") < 0)
17115 break;
17116 if (rmdir (DIR_NAME) != 0)
17117 break;
17118 }
17119 }
17120
17121 exit (fail);
17122 #endif
17123 }
17124
17125 _ACEOF
17126 if ac_fn_c_try_run "$LINENO"; then :
17127 gl_cv_func_getcwd_path_max=yes
17128 else
17129 case $? in
17130 10|11|12) gl_cv_func_getcwd_path_max='no, but it is partly working';;
17131 31) gl_cv_func_getcwd_path_max='no, it has the AIX bug';;
17132 32) gl_cv_func_getcwd_path_max='yes, but with shorter paths';;
17133 *) gl_cv_func_getcwd_path_max=no;;
17134 esac
17135 fi
17136 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17137 conftest.$ac_objext conftest.beam conftest.$ac_ext
17138 fi
17139
17140
17141 fi
17142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_path_max" >&5
17143 $as_echo "$gl_cv_func_getcwd_path_max" >&6; }
17144
17145 case "$gl_cv_func_getcwd_null" in
17146 *yes)
17147
17148
17149 :
17150
17151
17152
17153
17154
17155
17156 :
17157
17158
17159
17160
17161
17162
17163 for ac_func in getpagesize
17164 do :
17165 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
17166 if test "x$ac_cv_func_getpagesize" = xyes; then :
17167 cat >>confdefs.h <<_ACEOF
17168 #define HAVE_GETPAGESIZE 1
17169 _ACEOF
17170
17171 fi
17172 done
17173
17174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd aborts when 4k < cwd_length < 16k" >&5
17175 $as_echo_n "checking whether getcwd aborts when 4k < cwd_length < 16k... " >&6; }
17176 if ${gl_cv_func_getcwd_abort_bug+:} false; then :
17177 $as_echo_n "(cached) " >&6
17178 else
17179 # Remove any remnants of a previous test.
17180 rm -rf confdir-14B---
17181 # Arrange for deletion of the temporary directory this test creates.
17182 ac_clean_files="$ac_clean_files confdir-14B---"
17183 if test "$cross_compiling" = yes; then :
17184 gl_cv_func_getcwd_abort_bug=yes
17185 else
17186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17187 /* end confdefs.h. */
17188
17189 #include <errno.h>
17190 #include <stdlib.h>
17191 #if HAVE_UNISTD_H
17192 # include <unistd.h>
17193 #else /* on Windows with MSVC */
17194 # include <direct.h>
17195 #endif
17196 #include <string.h>
17197 #include <sys/stat.h>
17198
17199
17200 /* Arrange to define PATH_MAX, like "pathmax.h" does. */
17201 #if HAVE_UNISTD_H
17202 # include <unistd.h>
17203 #endif
17204 #include <limits.h>
17205 #if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN
17206 # include <sys/param.h>
17207 #endif
17208 #if !defined PATH_MAX && defined MAXPATHLEN
17209 # define PATH_MAX MAXPATHLEN
17210 #endif
17211 #ifdef __hpux
17212 # undef PATH_MAX
17213 # define PATH_MAX 1024
17214 #endif
17215 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
17216 # undef PATH_MAX
17217 # define PATH_MAX 260
17218 #endif
17219
17220
17221 /* Don't get link errors because mkdir is redefined to rpl_mkdir. */
17222 #undef mkdir
17223
17224 #ifndef S_IRWXU
17225 # define S_IRWXU 0700
17226 #endif
17227
17228 /* FIXME: skip the run-test altogether on systems without getpagesize. */
17229 #if ! HAVE_GETPAGESIZE
17230 # define getpagesize() 0
17231 #endif
17232
17233 /* This size is chosen to be larger than PATH_MAX (4k), yet smaller than
17234 the 16kB pagesize on ia64 linux. Those conditions make the code below
17235 trigger a bug in glibc's getcwd implementation before 2.4.90-10. */
17236 #define TARGET_LEN (5 * 1024)
17237
17238 int
17239 main ()
17240 {
17241 char *cwd;
17242 size_t initial_cwd_len;
17243 int fail = 0;
17244
17245 /* The bug is triggered when PATH_MAX < getpagesize (), so skip
17246 this relatively expensive and invasive test if that's not true. */
17247 #ifdef PATH_MAX
17248 int bug_possible = PATH_MAX < getpagesize ();
17249 #else
17250 int bug_possible = 0;
17251 #endif
17252 if (! bug_possible)
17253 return 0;
17254
17255 cwd = getcwd (NULL, 0);
17256 if (cwd == NULL)
17257 return 2;
17258
17259 initial_cwd_len = strlen (cwd);
17260 free (cwd);
17261
17262 if (1)
17263 {
17264 static char const dir_name[] = "confdir-14B---";
17265 size_t desired_depth = ((TARGET_LEN - 1 - initial_cwd_len)
17266 / sizeof dir_name);
17267 size_t d;
17268 for (d = 0; d < desired_depth; d++)
17269 {
17270 if (mkdir (dir_name, S_IRWXU) < 0 || chdir (dir_name) < 0)
17271 {
17272 if (! (errno == ERANGE || errno == ENAMETOOLONG
17273 || errno == ENOENT))
17274 fail = 3; /* Unable to construct deep hierarchy. */
17275 break;
17276 }
17277 }
17278
17279 /* If libc has the bug in question, this invocation of getcwd
17280 results in a failed assertion. */
17281 cwd = getcwd (NULL, 0);
17282 if (cwd == NULL)
17283 fail = 4; /* getcwd didn't assert, but it failed for a long name
17284 where the answer could have been learned. */
17285 free (cwd);
17286
17287 /* Call rmdir first, in case the above chdir failed. */
17288 rmdir (dir_name);
17289 while (0 < d--)
17290 {
17291 if (chdir ("..") < 0)
17292 {
17293 fail = 5;
17294 break;
17295 }
17296 rmdir (dir_name);
17297 }
17298 }
17299
17300 return fail;
17301 }
17302
17303 _ACEOF
17304 if ac_fn_c_try_run "$LINENO"; then :
17305 gl_cv_func_getcwd_abort_bug=no
17306 else
17307 ret=$?
17308 if test $ret -ge 128 || test $ret = 4; then
17309 gl_cv_func_getcwd_abort_bug=yes
17310 else
17311 gl_cv_func_getcwd_abort_bug=no
17312 fi
17313 fi
17314 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17315 conftest.$ac_objext conftest.beam conftest.$ac_ext
17316 fi
17317
17318
17319 fi
17320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_abort_bug" >&5
17321 $as_echo "$gl_cv_func_getcwd_abort_bug" >&6; }
17322 if test $gl_cv_func_getcwd_abort_bug = yes; then :
17323 gl_abort_bug=yes
17324 fi
17325
17326 ;;
17327 esac
17328 ;;
17329 esac
17330 case "$gl_cv_func_getcwd_path_max" in
17331 "no"|"no, it has the AIX bug") ;;
17332 *)
17333
17334 $as_echo "#define HAVE_MINIMALLY_WORKING_GETCWD 1" >>confdefs.h
17335
17336 ;;
17337 esac
17338 case "$gl_cv_func_getcwd_path_max" in
17339 "no, but it is partly working")
17340
17341 $as_echo "#define HAVE_PARTLY_WORKING_GETCWD 1" >>confdefs.h
17342
17343 ;;
17344 "yes, but with shorter paths")
17345
17346 $as_echo "#define HAVE_GETCWD_SHORTER 1" >>confdefs.h
17347
17348 ;;
17349 esac
17350
17351 if { case "$gl_cv_func_getcwd_null" in *yes) false;; *) true;; esac; } \
17352 || test $gl_cv_func_getcwd_posix_signature != yes \
17353 || { case "$gl_cv_func_getcwd_path_max" in *yes*) false;; *) true;; esac; } \
17354 || test $gl_abort_bug = yes; then
17355 REPLACE_GETCWD=1
17356 fi
17357
17358 if test $REPLACE_GETCWD = 1; then
17359
17360
17361
17362
17363
17364
17365
17366
17367 gl_LIBOBJS="$gl_LIBOBJS getcwd.$ac_objext"
17368
17369
17370
17371
17372 :
17373
17374 fi
17375
17376
17377 cat >>confdefs.h <<_ACEOF
17378 #define GNULIB_GETCWD 1
17379 _ACEOF
17380
17381
17382
17383
17384
17385
17386
17387 GNULIB_GETCWD=1
17388
17389
17390
17391
17392
17393 $as_echo "#define GNULIB_TEST_GETCWD 1" >>confdefs.h
17394
17395
17396
17397
17398
17399
17400
17401
17402 case $gl_cv_func_getcwd_null,$gl_cv_func_getcwd_posix_signature in
17403 *yes,yes) ;;
17404 *)
17405 REPLACE_GETCWD=1
17406 ;;
17407 esac
17408
17409 if test $REPLACE_GETCWD = 1; then
17410
17411
17412
17413
17414
17415
17416
17417
17418 gl_LIBOBJS="$gl_LIBOBJS getcwd-lgpl.$ac_objext"
17419
17420 fi
17421
17422
17423
17424
17425
17426 GNULIB_GETCWD=1
17427
17428
17429
17430
17431
17432 $as_echo "#define GNULIB_TEST_GETCWD 1" >>confdefs.h
17433
17434
17435
17436
17437
17438
17439
17440 :
17441
17442
17443
17444
17445
17446
17447 :
17448
17449
17450
17451
17452
17453 if test $ac_cv_func_getdtablesize = yes &&
17454 test $ac_cv_have_decl_getdtablesize = yes; then
17455 # Cygwin 1.7.25 automatically increases the RLIMIT_NOFILE soft limit
17456 # up to an unchangeable hard limit; all other platforms correctly
17457 # require setrlimit before getdtablesize() can report a larger value.
17458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getdtablesize works" >&5
17459 $as_echo_n "checking whether getdtablesize works... " >&6; }
17460 if ${gl_cv_func_getdtablesize_works+:} false; then :
17461 $as_echo_n "(cached) " >&6
17462 else
17463 if test "$cross_compiling" = yes; then :
17464 case "$host_os" in
17465 cygwin*) # on cygwin 1.5.25, getdtablesize() automatically grows
17466 gl_cv_func_getdtablesize_works="guessing no" ;;
17467 *) gl_cv_func_getdtablesize_works="guessing yes" ;;
17468 esac
17469 else
17470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17471 /* end confdefs.h. */
17472
17473 #include <unistd.h>
17474 int
17475 main ()
17476 {
17477 int size = getdtablesize();
17478 if (dup2 (0, getdtablesize()) != -1)
17479 return 1;
17480 if (size != getdtablesize())
17481 return 2;
17482
17483 ;
17484 return 0;
17485 }
17486 _ACEOF
17487 if ac_fn_c_try_run "$LINENO"; then :
17488 gl_cv_func_getdtablesize_works=yes
17489 else
17490 gl_cv_func_getdtablesize_works=no
17491 fi
17492 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17493 conftest.$ac_objext conftest.beam conftest.$ac_ext
17494 fi
17495
17496
17497 fi
17498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getdtablesize_works" >&5
17499 $as_echo "$gl_cv_func_getdtablesize_works" >&6; }
17500 case "$gl_cv_func_getdtablesize_works" in
17501 *yes) ;;
17502 *) REPLACE_GETDTABLESIZE=1 ;;
17503 esac
17504 else
17505 HAVE_GETDTABLESIZE=0
17506 fi
17507
17508 if test $HAVE_GETDTABLESIZE = 0 || test $REPLACE_GETDTABLESIZE = 1; then
17509
17510
17511
17512
17513
17514
17515
17516
17517 gl_LIBOBJS="$gl_LIBOBJS getdtablesize.$ac_objext"
17518
17519 :
17520 fi
17521
17522
17523
17524
17525
17526 GNULIB_GETDTABLESIZE=1
17527
17528
17529
17530
17531
17532 $as_echo "#define GNULIB_TEST_GETDTABLESIZE 1" >>confdefs.h
17533
17534
17535
17536
17537
17538
17539
17540
17541
17542 :
17543
17544
17545
17546
17547
17548 if test $ac_cv_have_decl_getlogin_r = no; then
17549 HAVE_DECL_GETLOGIN_R=0
17550 fi
17551
17552
17553 :
17554
17555
17556
17557
17558
17559 if test $ac_cv_func_getlogin_r = no; then
17560 HAVE_GETLOGIN_R=0
17561 else
17562 HAVE_GETLOGIN_R=1
17563
17564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getlogin_r works with small buffers" >&5
17565 $as_echo_n "checking whether getlogin_r works with small buffers... " >&6; }
17566 if ${gl_cv_func_getlogin_r_works+:} false; then :
17567 $as_echo_n "(cached) " >&6
17568 else
17569
17570 case "$host_os" in
17571 # Guess no on OSF/1.
17572 osf*) gl_cv_func_getlogin_r_works="guessing no" ;;
17573 # Guess yes otherwise.
17574 *) gl_cv_func_getlogin_r_works="guessing yes" ;;
17575 esac
17576 if test "$cross_compiling" = yes; then :
17577 :
17578 else
17579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17580 /* end confdefs.h. */
17581
17582 #include <stddef.h>
17583 #include <unistd.h>
17584 #if !HAVE_DECL_GETLOGIN_R
17585 extern
17586 # ifdef __cplusplus
17587 "C"
17588 # endif
17589 int getlogin_r (char *, size_t);
17590 #endif
17591 int
17592 main (void)
17593 {
17594 int result = 0;
17595 char buf[100];
17596
17597 if (getlogin_r (buf, 0) == 0)
17598 result |= 16;
17599 if (getlogin_r (buf, 1) == 0)
17600 result |= 17;
17601 return result;
17602 }
17603 _ACEOF
17604 if ac_fn_c_try_run "$LINENO"; then :
17605 gl_cv_func_getlogin_r_works=yes
17606 else
17607 case $? in
17608 16 | 17) gl_cv_func_getlogin_r_works=no ;;
17609 esac
17610
17611 fi
17612 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17613 conftest.$ac_objext conftest.beam conftest.$ac_ext
17614 fi
17615
17616
17617 fi
17618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getlogin_r_works" >&5
17619 $as_echo "$gl_cv_func_getlogin_r_works" >&6; }
17620 case "$gl_cv_func_getlogin_r_works" in
17621 *yes) ;;
17622 *) REPLACE_GETLOGIN_R=1 ;;
17623 esac
17624 fi
17625
17626 if test $HAVE_GETLOGIN_R = 0 || test $REPLACE_GETLOGIN_R = 1; then
17627
17628
17629
17630
17631
17632
17633
17634
17635 gl_LIBOBJS="$gl_LIBOBJS getlogin_r.$ac_objext"
17636
17637
17638
17639 :
17640
17641
17642
17643
17644
17645
17646 fi
17647
17648
17649
17650
17651
17652 GNULIB_GETLOGIN_R=1
17653
17654
17655
17656
17657
17658 $as_echo "#define GNULIB_TEST_GETLOGIN_R 1" >>confdefs.h
17659
17660
17661
17662
17663
17664 :
17665
17666
17667
17668
17669
17670
17671
17672
17673
17674 ac_found=0
17675 ac_fn_c_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
17676 "
17677 if test "x$ac_cv_have_decl_program_invocation_name" = xyes; then :
17678 ac_have_decl=1
17679 else
17680 ac_have_decl=0
17681 fi
17682
17683 cat >>confdefs.h <<_ACEOF
17684 #define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl
17685 _ACEOF
17686 if test $ac_have_decl = 1; then :
17687 ac_found=1
17688 fi
17689
17690 ac_fn_c_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
17691 "
17692 if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes; then :
17693 ac_have_decl=1
17694 else
17695 ac_have_decl=0
17696 fi
17697
17698 cat >>confdefs.h <<_ACEOF
17699 #define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl
17700 _ACEOF
17701 if test $ac_have_decl = 1; then :
17702 ac_found=1
17703 fi
17704
17705 ac_fn_c_check_decl "$LINENO" "__argv" "ac_cv_have_decl___argv" "#include <stdlib.h>
17706 "
17707 if test "x$ac_cv_have_decl___argv" = xyes; then :
17708 ac_have_decl=1
17709 else
17710 ac_have_decl=0
17711 fi
17712
17713 cat >>confdefs.h <<_ACEOF
17714 #define HAVE_DECL___ARGV $ac_have_decl
17715 _ACEOF
17716 if test $ac_have_decl = 1; then :
17717 ac_found=1
17718 fi
17719
17720
17721 # Incur the cost of this test only if none of the above worked.
17722 if test $ac_found = 0; then
17723 # On OpenBSD 5.1, using the global __progname variable appears to be
17724 # the only way to implement getprogname.
17725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __progname is defined in default libraries" >&5
17726 $as_echo_n "checking whether __progname is defined in default libraries... " >&6; }
17727 if ${gl_cv_var___progname+:} false; then :
17728 $as_echo_n "(cached) " >&6
17729 else
17730
17731 gl_cv_var___progname=
17732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17733 /* end confdefs.h. */
17734 extern char *__progname;
17735 int
17736 main ()
17737 {
17738 return *__progname;
17739
17740 ;
17741 return 0;
17742 }
17743 _ACEOF
17744 if ac_fn_c_try_link "$LINENO"; then :
17745 gl_cv_var___progname=yes
17746
17747 fi
17748 rm -f core conftest.err conftest.$ac_objext \
17749 conftest$ac_exeext conftest.$ac_ext
17750
17751
17752 fi
17753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_var___progname" >&5
17754 $as_echo "$gl_cv_var___progname" >&6; }
17755 if test "$gl_cv_var___progname" = yes; then
17756
17757 $as_echo "#define HAVE_VAR___PROGNAME 1" >>confdefs.h
17758
17759 fi
17760 fi
17761
17762
17763
17764
17765
17766
17767
17768
17769 :
17770
17771
17772
17773
17774
17775
17776 gl_gettimeofday_timezone=void
17777 if test $ac_cv_func_gettimeofday != yes; then
17778 HAVE_GETTIMEOFDAY=0
17779 else
17780
17781
17782
17783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
17784 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
17785 if ${gl_cv_func_gettimeofday_clobber+:} false; then :
17786 $as_echo_n "(cached) " >&6
17787 else
17788 if test "$cross_compiling" = yes; then :
17789 # When cross-compiling:
17790 case "$host_os" in
17791 # Guess all is fine on glibc systems.
17792 *-gnu*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
17793 # If we don't know, assume the worst.
17794 *) gl_cv_func_gettimeofday_clobber="guessing yes" ;;
17795 esac
17796
17797 else
17798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17799 /* end confdefs.h. */
17800 #include <string.h>
17801 #include <sys/time.h>
17802 #include <time.h>
17803 #include <stdlib.h>
17804
17805 int
17806 main ()
17807 {
17808
17809 time_t t = 0;
17810 struct tm *lt;
17811 struct tm saved_lt;
17812 struct timeval tv;
17813 lt = localtime (&t);
17814 saved_lt = *lt;
17815 gettimeofday (&tv, NULL);
17816 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
17817
17818 ;
17819 return 0;
17820 }
17821 _ACEOF
17822 if ac_fn_c_try_run "$LINENO"; then :
17823 gl_cv_func_gettimeofday_clobber=no
17824 else
17825 gl_cv_func_gettimeofday_clobber=yes
17826 fi
17827 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17828 conftest.$ac_objext conftest.beam conftest.$ac_ext
17829 fi
17830
17831 fi
17832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
17833 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
17834
17835 case "$gl_cv_func_gettimeofday_clobber" in
17836 *yes)
17837 REPLACE_GETTIMEOFDAY=1
17838
17839 REPLACE_GMTIME=1
17840 REPLACE_LOCALTIME=1
17841
17842
17843 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
17844
17845 ;;
17846 esac
17847
17848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
17849 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
17850 if ${gl_cv_func_gettimeofday_posix_signature+:} false; then :
17851 $as_echo_n "(cached) " >&6
17852 else
17853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17854 /* end confdefs.h. */
17855 #include <sys/time.h>
17856 struct timeval c;
17857 int gettimeofday (struct timeval *restrict, void *restrict);
17858
17859 int
17860 main ()
17861 {
17862 /* glibc uses struct timezone * rather than the POSIX void *
17863 if _GNU_SOURCE is defined. However, since the only portable
17864 use of gettimeofday uses NULL as the second parameter, and
17865 since the glibc definition is actually more typesafe, it is
17866 not worth wrapping this to get a compliant signature. */
17867 int (*f) (struct timeval *restrict, void *restrict)
17868 = gettimeofday;
17869 int x = f (&c, 0);
17870 return !(x | c.tv_sec | c.tv_usec);
17871
17872 ;
17873 return 0;
17874 }
17875 _ACEOF
17876 if ac_fn_c_try_compile "$LINENO"; then :
17877 gl_cv_func_gettimeofday_posix_signature=yes
17878 else
17879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17880 /* end confdefs.h. */
17881 #include <sys/time.h>
17882 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
17883
17884 int
17885 main ()
17886 {
17887
17888 ;
17889 return 0;
17890 }
17891 _ACEOF
17892 if ac_fn_c_try_compile "$LINENO"; then :
17893 gl_cv_func_gettimeofday_posix_signature=almost
17894 else
17895 gl_cv_func_gettimeofday_posix_signature=no
17896 fi
17897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17898 fi
17899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17900 fi
17901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
17902 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
17903 if test $gl_cv_func_gettimeofday_posix_signature = almost; then
17904 gl_gettimeofday_timezone='struct timezone'
17905 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
17906 REPLACE_GETTIMEOFDAY=1
17907 fi
17908 if test $REPLACE_STRUCT_TIMEVAL = 1; then
17909 REPLACE_GETTIMEOFDAY=1
17910 fi
17911
17912 fi
17913
17914 cat >>confdefs.h <<_ACEOF
17915 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
17916 _ACEOF
17917
17918
17919 if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
17920
17921
17922
17923
17924
17925
17926
17927
17928 gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
17929
17930
17931 for ac_header in sys/timeb.h
17932 do :
17933 ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
17934 if test "x$ac_cv_header_sys_timeb_h" = xyes; then :
17935 cat >>confdefs.h <<_ACEOF
17936 #define HAVE_SYS_TIMEB_H 1
17937 _ACEOF
17938
17939 fi
17940
17941 done
17942
17943 for ac_func in _ftime
17944 do :
17945 ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime"
17946 if test "x$ac_cv_func__ftime" = xyes; then :
17947 cat >>confdefs.h <<_ACEOF
17948 #define HAVE__FTIME 1
17949 _ACEOF
17950
17951 fi
17952 done
17953
17954
17955 fi
17956
17957
17958
17959
17960
17961 GNULIB_GETTIMEOFDAY=1
17962
17963
17964
17965
17966
17967 $as_echo "#define GNULIB_TEST_GETTIMEOFDAY 1" >>confdefs.h
17968
17969
17970
17971 GLOB_H=
17972 for ac_header in glob.h
17973 do :
17974 ac_fn_c_check_header_mongrel "$LINENO" "glob.h" "ac_cv_header_glob_h" "$ac_includes_default"
17975 if test "x$ac_cv_header_glob_h" = xyes; then :
17976 cat >>confdefs.h <<_ACEOF
17977 #define HAVE_GLOB_H 1
17978 _ACEOF
17979
17980 else
17981 GLOB_H=glob.h
17982 fi
17983
17984 done
17985
17986
17987 if test -z "$GLOB_H"; then
17988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU glob interface version 1" >&5
17989 $as_echo_n "checking for GNU glob interface version 1... " >&6; }
17990 if ${gl_cv_gnu_glob_interface_version_1+:} false; then :
17991 $as_echo_n "(cached) " >&6
17992 else
17993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17994 /* end confdefs.h. */
17995 #include <gnu-versions.h>
17996 char a[_GNU_GLOB_INTERFACE_VERSION == 1 ? 1 : -1];
17997 _ACEOF
17998 if ac_fn_c_try_compile "$LINENO"; then :
17999 gl_cv_gnu_glob_interface_version_1=yes
18000 else
18001 gl_cv_gnu_glob_interface_version_1=no
18002 fi
18003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18004 fi
18005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_gnu_glob_interface_version_1" >&5
18006 $as_echo "$gl_cv_gnu_glob_interface_version_1" >&6; }
18007
18008 if test "$gl_cv_gnu_glob_interface_version_1" = "no"; then
18009 GLOB_H=glob.h
18010 fi
18011 fi
18012
18013 if test -z "$GLOB_H"; then
18014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether glob lists broken symlinks" >&5
18015 $as_echo_n "checking whether glob lists broken symlinks... " >&6; }
18016 if ${gl_cv_glob_lists_symlinks+:} false; then :
18017 $as_echo_n "(cached) " >&6
18018 else
18019 if ln -s conf-doesntexist conf$$-globtest 2>/dev/null; then
18020 gl_cv_glob_lists_symlinks=maybe
18021 else
18022 # If we can't make a symlink, then we cannot test this issue. Be
18023 # pessimistic about this.
18024 gl_cv_glob_lists_symlinks=no
18025 fi
18026
18027 if test $gl_cv_glob_lists_symlinks = maybe; then
18028 if test "$cross_compiling" = yes; then :
18029 gl_cv_glob_lists_symlinks=no
18030 else
18031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18032 /* end confdefs.h. */
18033
18034 #include <stddef.h>
18035 #include <glob.h>
18036 int
18037 main ()
18038 {
18039 glob_t found;
18040 if (glob ("conf*-globtest", 0, NULL, &found) == GLOB_NOMATCH) return 1;
18041 ;
18042 return 0;
18043 }
18044 _ACEOF
18045 if ac_fn_c_try_run "$LINENO"; then :
18046 gl_cv_glob_lists_symlinks=yes
18047 else
18048 gl_cv_glob_lists_symlinks=no
18049 fi
18050 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18051 conftest.$ac_objext conftest.beam conftest.$ac_ext
18052 fi
18053
18054 fi
18055 fi
18056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_glob_lists_symlinks" >&5
18057 $as_echo "$gl_cv_glob_lists_symlinks" >&6; }
18058
18059 if test $gl_cv_glob_lists_symlinks = no; then
18060 GLOB_H=glob.h
18061 fi
18062 fi
18063
18064 rm -f conf$$-globtest
18065
18066
18067 if test -n "$GLOB_H"; then
18068 GL_GENERATE_GLOB_H_TRUE=
18069 GL_GENERATE_GLOB_H_FALSE='#'
18070 else
18071 GL_GENERATE_GLOB_H_TRUE='#'
18072 GL_GENERATE_GLOB_H_FALSE=
18073 fi
18074
18075
18076 if test -n "$GLOB_H"; then
18077
18078
18079
18080
18081
18082
18083
18084
18085 gl_LIBOBJS="$gl_LIBOBJS glob.$ac_objext"
18086
18087
18088
18089 :
18090
18091
18092
18093
18094
18095
18096
18097 if test $ac_cv_header_sys_cdefs_h = yes; then
18098 HAVE_SYS_CDEFS_H=1
18099 else
18100 HAVE_SYS_CDEFS_H=0
18101 fi
18102
18103
18104 :
18105
18106
18107
18108
18109
18110
18111
18112
18113
18114
18115
18116 fi
18117
18118 :
18119
18120
18121
18122
18123
18124
18125 PRIPTR_PREFIX=
18126 if test -n "$STDINT_H"; then
18127 PRIPTR_PREFIX='"l"'
18128 else
18129 for glpfx in '' l ll I64; do
18130 case $glpfx in
18131 '') gltype1='int';;
18132 l) gltype1='long int';;
18133 ll) gltype1='long long int';;
18134 I64) gltype1='__int64';;
18135 esac
18136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18137 /* end confdefs.h. */
18138 #include <stdint.h>
18139 extern intptr_t foo;
18140 extern $gltype1 foo;
18141 int
18142 main ()
18143 {
18144
18145 ;
18146 return 0;
18147 }
18148 _ACEOF
18149 if ac_fn_c_try_compile "$LINENO"; then :
18150 PRIPTR_PREFIX='"'$glpfx'"'
18151 fi
18152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18153 test -n "$PRIPTR_PREFIX" && break
18154 done
18155 fi
18156
18157
18158
18159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5
18160 $as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
18161 if ${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+:} false; then :
18162 $as_echo_n "(cached) " >&6
18163 else
18164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18165 /* end confdefs.h. */
18166 /* Work also in C++ mode. */
18167 #define __STDC_LIMIT_MACROS 1
18168
18169 /* Work if build is not clean. */
18170 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
18171
18172 #include <limits.h>
18173 #if HAVE_STDINT_H
18174 #include <stdint.h>
18175 #endif
18176
18177 #if defined INT32_MAX && defined INTMAX_MAX
18178 #define CONDITION (INT32_MAX < INTMAX_MAX)
18179 #elif HAVE_LONG_LONG_INT
18180 #define CONDITION (sizeof (int) < sizeof (long long int))
18181 #else
18182 #define CONDITION 0
18183 #endif
18184 int test[CONDITION ? 1 : -1];
18185 int
18186 main ()
18187 {
18188
18189 ;
18190 return 0;
18191 }
18192 _ACEOF
18193 if ac_fn_c_try_compile "$LINENO"; then :
18194 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=yes
18195 else
18196 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=no
18197 fi
18198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18199 fi
18200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
18201 $as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
18202 if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
18203 INT32_MAX_LT_INTMAX_MAX=1;
18204 else
18205 INT32_MAX_LT_INTMAX_MAX=0;
18206 fi
18207
18208
18209 if test $APPLE_UNIVERSAL_BUILD = 0; then
18210
18211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5
18212 $as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; }
18213 if ${gl_cv_test_INT64_MAX_EQ_LONG_MAX+:} false; then :
18214 $as_echo_n "(cached) " >&6
18215 else
18216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18217 /* end confdefs.h. */
18218 /* Work also in C++ mode. */
18219 #define __STDC_LIMIT_MACROS 1
18220
18221 /* Work if build is not clean. */
18222 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
18223
18224 #include <limits.h>
18225 #if HAVE_STDINT_H
18226 #include <stdint.h>
18227 #endif
18228
18229 #if defined INT64_MAX
18230 #define CONDITION (INT64_MAX == LONG_MAX)
18231 #elif HAVE_LONG_LONG_INT
18232 #define CONDITION (sizeof (long long int) == sizeof (long int))
18233 #else
18234 #define CONDITION 0
18235 #endif
18236 int test[CONDITION ? 1 : -1];
18237 int
18238 main ()
18239 {
18240
18241 ;
18242 return 0;
18243 }
18244 _ACEOF
18245 if ac_fn_c_try_compile "$LINENO"; then :
18246 gl_cv_test_INT64_MAX_EQ_LONG_MAX=yes
18247 else
18248 gl_cv_test_INT64_MAX_EQ_LONG_MAX=no
18249 fi
18250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18251 fi
18252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
18253 $as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
18254 if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
18255 INT64_MAX_EQ_LONG_MAX=1;
18256 else
18257 INT64_MAX_EQ_LONG_MAX=0;
18258 fi
18259
18260
18261 else
18262 INT64_MAX_EQ_LONG_MAX=-1
18263 fi
18264
18265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5
18266 $as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
18267 if ${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+:} false; then :
18268 $as_echo_n "(cached) " >&6
18269 else
18270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18271 /* end confdefs.h. */
18272 /* Work also in C++ mode. */
18273 #define __STDC_LIMIT_MACROS 1
18274
18275 /* Work if build is not clean. */
18276 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
18277
18278 #include <limits.h>
18279 #if HAVE_STDINT_H
18280 #include <stdint.h>
18281 #endif
18282
18283 #if defined UINT32_MAX && defined UINTMAX_MAX
18284 #define CONDITION (UINT32_MAX < UINTMAX_MAX)
18285 #elif HAVE_LONG_LONG_INT
18286 #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
18287 #else
18288 #define CONDITION 0
18289 #endif
18290 int test[CONDITION ? 1 : -1];
18291 int
18292 main ()
18293 {
18294
18295 ;
18296 return 0;
18297 }
18298 _ACEOF
18299 if ac_fn_c_try_compile "$LINENO"; then :
18300 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=yes
18301 else
18302 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=no
18303 fi
18304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18305 fi
18306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
18307 $as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
18308 if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
18309 UINT32_MAX_LT_UINTMAX_MAX=1;
18310 else
18311 UINT32_MAX_LT_UINTMAX_MAX=0;
18312 fi
18313
18314
18315 if test $APPLE_UNIVERSAL_BUILD = 0; then
18316
18317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5
18318 $as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
18319 if ${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+:} false; then :
18320 $as_echo_n "(cached) " >&6
18321 else
18322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18323 /* end confdefs.h. */
18324 /* Work also in C++ mode. */
18325 #define __STDC_LIMIT_MACROS 1
18326
18327 /* Work if build is not clean. */
18328 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
18329
18330 #include <limits.h>
18331 #if HAVE_STDINT_H
18332 #include <stdint.h>
18333 #endif
18334
18335 #if defined UINT64_MAX
18336 #define CONDITION (UINT64_MAX == ULONG_MAX)
18337 #elif HAVE_LONG_LONG_INT
18338 #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
18339 #else
18340 #define CONDITION 0
18341 #endif
18342 int test[CONDITION ? 1 : -1];
18343 int
18344 main ()
18345 {
18346
18347 ;
18348 return 0;
18349 }
18350 _ACEOF
18351 if ac_fn_c_try_compile "$LINENO"; then :
18352 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=yes
18353 else
18354 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=no
18355 fi
18356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18357 fi
18358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
18359 $as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
18360 if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
18361 UINT64_MAX_EQ_ULONG_MAX=1;
18362 else
18363 UINT64_MAX_EQ_ULONG_MAX=0;
18364 fi
18365
18366
18367 else
18368 UINT64_MAX_EQ_ULONG_MAX=-1
18369 fi
18370
18371
18372
18373
18374
18375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(double) can be used without linking with libm" >&5
18376 $as_echo_n "checking whether isnan(double) can be used without linking with libm... " >&6; }
18377 if ${gl_cv_func_isnand_no_libm+:} false; then :
18378 $as_echo_n "(cached) " >&6
18379 else
18380
18381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18382 /* end confdefs.h. */
18383 #include <math.h>
18384 #if __GNUC__ >= 4
18385 # undef isnand
18386 # define isnand(x) __builtin_isnan ((double)(x))
18387 #else
18388 # undef isnand
18389 # define isnand(x) isnan ((double)(x))
18390 #endif
18391 double x;
18392 int
18393 main ()
18394 {
18395 return isnand (x);
18396 ;
18397 return 0;
18398 }
18399 _ACEOF
18400 if ac_fn_c_try_link "$LINENO"; then :
18401 gl_cv_func_isnand_no_libm=yes
18402 else
18403 gl_cv_func_isnand_no_libm=no
18404 fi
18405 rm -f core conftest.err conftest.$ac_objext \
18406 conftest$ac_exeext conftest.$ac_ext
18407
18408 fi
18409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnand_no_libm" >&5
18410 $as_echo "$gl_cv_func_isnand_no_libm" >&6; }
18411
18412 gl_func_isnand_no_libm=$gl_cv_func_isnand_no_libm
18413 if test $gl_cv_func_isnand_no_libm = yes; then
18414
18415 $as_echo "#define HAVE_ISNAND_IN_LIBC 1" >>confdefs.h
18416
18417 fi
18418
18419 if test $gl_func_isnand_no_libm != yes; then
18420
18421
18422
18423
18424
18425
18426
18427
18428 gl_LIBOBJS="$gl_LIBOBJS isnand.$ac_objext"
18429
18430
18431
18432
18433 fi
18434
18435
18436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(long double) can be used without linking with libm" >&5
18437 $as_echo_n "checking whether isnan(long double) can be used without linking with libm... " >&6; }
18438 if ${gl_cv_func_isnanl_no_libm+:} false; then :
18439 $as_echo_n "(cached) " >&6
18440 else
18441
18442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18443 /* end confdefs.h. */
18444 #include <math.h>
18445 #if __GNUC__ >= 4
18446 # undef isnanl
18447 # define isnanl(x) __builtin_isnanl ((long double)(x))
18448 #elif defined isnan
18449 # undef isnanl
18450 # define isnanl(x) isnan ((long double)(x))
18451 #endif
18452 long double x;
18453 int
18454 main ()
18455 {
18456 return isnanl (x);
18457 ;
18458 return 0;
18459 }
18460 _ACEOF
18461 if ac_fn_c_try_link "$LINENO"; then :
18462 gl_cv_func_isnanl_no_libm=yes
18463 else
18464 gl_cv_func_isnanl_no_libm=no
18465 fi
18466 rm -f core conftest.err conftest.$ac_objext \
18467 conftest$ac_exeext conftest.$ac_ext
18468
18469 fi
18470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_no_libm" >&5
18471 $as_echo "$gl_cv_func_isnanl_no_libm" >&6; }
18472
18473 gl_func_isnanl_no_libm=$gl_cv_func_isnanl_no_libm
18474 if test $gl_func_isnanl_no_libm = yes; then
18475
18476
18477
18478
18479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnanl works" >&5
18480 $as_echo_n "checking whether isnanl works... " >&6; }
18481 if ${gl_cv_func_isnanl_works+:} false; then :
18482 $as_echo_n "(cached) " >&6
18483 else
18484
18485 if test "$cross_compiling" = yes; then :
18486 gl_cv_func_isnanl_works="guessing yes"
18487 else
18488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18489 /* end confdefs.h. */
18490
18491 #include <float.h>
18492 #include <limits.h>
18493 #include <math.h>
18494 #if __GNUC__ >= 4
18495 # undef isnanl
18496 # define isnanl(x) __builtin_isnanl ((long double)(x))
18497 #elif defined isnan
18498 # undef isnanl
18499 # define isnanl(x) isnan ((long double)(x))
18500 #endif
18501 #define NWORDS \
18502 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
18503 typedef union { unsigned int word[NWORDS]; long double value; }
18504 memory_long_double;
18505 /* On Irix 6.5, gcc 3.4.3 can't compute compile-time NaN, and needs the
18506 runtime type conversion. */
18507 #ifdef __sgi
18508 static long double NaNl ()
18509 {
18510 double zero = 0.0;
18511 return zero / zero;
18512 }
18513 #else
18514 # define NaNl() (0.0L / 0.0L)
18515 #endif
18516 int main ()
18517 {
18518 int result = 0;
18519
18520 if (!isnanl (NaNl ()))
18521 result |= 1;
18522
18523 {
18524 memory_long_double m;
18525 unsigned int i;
18526
18527 /* The isnanl function should be immune against changes in the sign bit and
18528 in the mantissa bits. The xor operation twiddles a bit that can only be
18529 a sign bit or a mantissa bit (since the exponent never extends to
18530 bit 31). */
18531 m.value = NaNl ();
18532 m.word[NWORDS / 2] ^= (unsigned int) 1 << (sizeof (unsigned int) * CHAR_BIT - 1);
18533 for (i = 0; i < NWORDS; i++)
18534 m.word[i] |= 1;
18535 if (!isnanl (m.value))
18536 result |= 1;
18537 }
18538
18539 #if ((defined __ia64 && LDBL_MANT_DIG == 64) || (defined __x86_64__ || defined __amd64__) || (defined __i386 || defined __i386__ || defined _I386 || defined _M_IX86 || defined _X86_)) && !HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
18540 /* Representation of an 80-bit 'long double' as an initializer for a sequence
18541 of 'unsigned int' words. */
18542 # ifdef WORDS_BIGENDIAN
18543 # define LDBL80_WORDS(exponent,manthi,mantlo) \
18544 { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
18545 ((unsigned int) (manthi) << 16) | ((unsigned int) (mantlo) >> 16), \
18546 (unsigned int) (mantlo) << 16 \
18547 }
18548 # else
18549 # define LDBL80_WORDS(exponent,manthi,mantlo) \
18550 { mantlo, manthi, exponent }
18551 # endif
18552 { /* Quiet NaN. */
18553 static memory_long_double x =
18554 { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) };
18555 if (!isnanl (x.value))
18556 result |= 2;
18557 }
18558 {
18559 /* Signalling NaN. */
18560 static memory_long_double x =
18561 { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) };
18562 if (!isnanl (x.value))
18563 result |= 2;
18564 }
18565 /* isnanl should return something even for noncanonical values. */
18566 { /* Pseudo-NaN. */
18567 static memory_long_double x =
18568 { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) };
18569 if (isnanl (x.value) && !isnanl (x.value))
18570 result |= 4;
18571 }
18572 { /* Pseudo-Infinity. */
18573 static memory_long_double x =
18574 { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) };
18575 if (isnanl (x.value) && !isnanl (x.value))
18576 result |= 8;
18577 }
18578 { /* Pseudo-Zero. */
18579 static memory_long_double x =
18580 { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) };
18581 if (isnanl (x.value) && !isnanl (x.value))
18582 result |= 16;
18583 }
18584 { /* Unnormalized number. */
18585 static memory_long_double x =
18586 { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) };
18587 if (isnanl (x.value) && !isnanl (x.value))
18588 result |= 32;
18589 }
18590 { /* Pseudo-Denormal. */
18591 static memory_long_double x =
18592 { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) };
18593 if (isnanl (x.value) && !isnanl (x.value))
18594 result |= 64;
18595 }
18596 #endif
18597
18598 return result;
18599 }
18600 _ACEOF
18601 if ac_fn_c_try_run "$LINENO"; then :
18602 gl_cv_func_isnanl_works=yes
18603 else
18604 gl_cv_func_isnanl_works=no
18605 fi
18606 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18607 conftest.$ac_objext conftest.beam conftest.$ac_ext
18608 fi
18609
18610
18611 fi
18612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_works" >&5
18613 $as_echo "$gl_cv_func_isnanl_works" >&6; }
18614
18615 case "$gl_cv_func_isnanl_works" in
18616 *yes) ;;
18617 *) gl_func_isnanl_no_libm=no ;;
18618 esac
18619 fi
18620 if test $gl_func_isnanl_no_libm = yes; then
18621
18622 $as_echo "#define HAVE_ISNANL_IN_LIBC 1" >>confdefs.h
18623
18624 fi
18625
18626 if test $gl_func_isnanl_no_libm != yes; then
18627
18628
18629
18630
18631
18632
18633
18634
18635 gl_LIBOBJS="$gl_LIBOBJS isnanl.$ac_objext"
18636
18637
18638
18639
18640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'long double'" >&5
18641 $as_echo_n "checking where to find the exponent in a 'long double'... " >&6; }
18642 if ${gl_cv_cc_long_double_expbit0+:} false; then :
18643 $as_echo_n "(cached) " >&6
18644 else
18645
18646 if test "$cross_compiling" = yes; then :
18647
18648 gl_cv_cc_long_double_expbit0="unknown"
18649
18650 else
18651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18652 /* end confdefs.h. */
18653
18654 #include <float.h>
18655 #include <stddef.h>
18656 #include <stdio.h>
18657 #include <string.h>
18658 #define NWORDS \
18659 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
18660 typedef union { long double value; unsigned int word[NWORDS]; }
18661 memory_long_double;
18662 static unsigned int ored_words[NWORDS];
18663 static unsigned int anded_words[NWORDS];
18664 static void add_to_ored_words (long double x)
18665 {
18666 memory_long_double m;
18667 size_t i;
18668 /* Clear it first, in case
18669 sizeof (long double) < sizeof (memory_long_double). */
18670 memset (&m, 0, sizeof (memory_long_double));
18671 m.value = x;
18672 for (i = 0; i < NWORDS; i++)
18673 {
18674 ored_words[i] |= m.word[i];
18675 anded_words[i] &= m.word[i];
18676 }
18677 }
18678 int main ()
18679 {
18680 size_t j;
18681 FILE *fp = fopen ("conftest.out", "w");
18682 if (fp == NULL)
18683 return 1;
18684 for (j = 0; j < NWORDS; j++)
18685 anded_words[j] = ~ (unsigned int) 0;
18686 add_to_ored_words (0.25L);
18687 add_to_ored_words (0.5L);
18688 add_to_ored_words (1.0L);
18689 add_to_ored_words (2.0L);
18690 add_to_ored_words (4.0L);
18691 /* Remove bits that are common (e.g. if representation of the first mantissa
18692 bit is explicit). */
18693 for (j = 0; j < NWORDS; j++)
18694 ored_words[j] &= ~anded_words[j];
18695 /* Now find the nonzero word. */
18696 for (j = 0; j < NWORDS; j++)
18697 if (ored_words[j] != 0)
18698 break;
18699 if (j < NWORDS)
18700 {
18701 size_t i;
18702 for (i = j + 1; i < NWORDS; i++)
18703 if (ored_words[i] != 0)
18704 {
18705 fprintf (fp, "unknown");
18706 return (fclose (fp) != 0);
18707 }
18708 for (i = 0; ; i++)
18709 if ((ored_words[j] >> i) & 1)
18710 {
18711 fprintf (fp, "word %d bit %d", (int) j, (int) i);
18712 return (fclose (fp) != 0);
18713 }
18714 }
18715 fprintf (fp, "unknown");
18716 return (fclose (fp) != 0);
18717 }
18718
18719 _ACEOF
18720 if ac_fn_c_try_run "$LINENO"; then :
18721 gl_cv_cc_long_double_expbit0=`cat conftest.out`
18722 else
18723 gl_cv_cc_long_double_expbit0="unknown"
18724 fi
18725 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18726 conftest.$ac_objext conftest.beam conftest.$ac_ext
18727 fi
18728
18729 rm -f conftest.out
18730
18731 fi
18732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_long_double_expbit0" >&5
18733 $as_echo "$gl_cv_cc_long_double_expbit0" >&6; }
18734 case "$gl_cv_cc_long_double_expbit0" in
18735 word*bit*)
18736 word=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
18737 bit=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word.*bit //'`
18738
18739 cat >>confdefs.h <<_ACEOF
18740 #define LDBL_EXPBIT0_WORD $word
18741 _ACEOF
18742
18743
18744 cat >>confdefs.h <<_ACEOF
18745 #define LDBL_EXPBIT0_BIT $bit
18746 _ACEOF
18747
18748 ;;
18749 esac
18750
18751
18752
18753 fi
18754
18755
18756
18757
18758
18759
18760 :
18761
18762
18763
18764
18765
18766
18767
18768
18769
18770 LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
18771
18772
18773
18774
18775 :
18776
18777
18778
18779
18780
18781 if test $ac_cv_func_lstat = yes; then
18782
18783 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
18784 *no)
18785 REPLACE_LSTAT=1
18786 ;;
18787 esac
18788 else
18789 HAVE_LSTAT=0
18790 fi
18791
18792 if test $REPLACE_LSTAT = 1; then
18793
18794
18795
18796
18797
18798
18799
18800
18801 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
18802
18803 :
18804 fi
18805
18806
18807
18808
18809
18810 GNULIB_LSTAT=1
18811
18812
18813
18814
18815
18816 $as_echo "#define GNULIB_TEST_LSTAT 1" >>confdefs.h
18817
18818
18819
18820
18821
18822
18823 if test $gl_cv_func_malloc_posix = yes; then
18824
18825 $as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
18826
18827 else
18828 REPLACE_MALLOC=1
18829 fi
18830
18831 if test $REPLACE_MALLOC = 1; then
18832
18833
18834
18835
18836
18837
18838
18839
18840 gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
18841
18842 fi
18843
18844
18845
18846
18847
18848 GNULIB_MALLOC_POSIX=1
18849
18850
18851
18852
18853
18854 $as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
18855
18856
18857
18858
18859
18860
18861
18862
18863
18864
18865
18866
18867
18868
18869
18870 :
18871
18872
18873
18874
18875
18876
18877
18878
18879 if test $gl_cv_have_include_next = yes; then
18880 gl_cv_next_math_h='<'math.h'>'
18881 else
18882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <math.h>" >&5
18883 $as_echo_n "checking absolute name of <math.h>... " >&6; }
18884 if ${gl_cv_next_math_h+:} false; then :
18885 $as_echo_n "(cached) " >&6
18886 else
18887
18888 if test $ac_cv_header_math_h = yes; then
18889
18890
18891
18892
18893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18894 /* end confdefs.h. */
18895 #include <math.h>
18896 _ACEOF
18897 case "$host_os" in
18898 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18899 *) gl_absname_cpp="$ac_cpp" ;;
18900 esac
18901
18902 case "$host_os" in
18903 mingw*)
18904 gl_dirsep_regex='[/\\]'
18905 ;;
18906 *)
18907 gl_dirsep_regex='\/'
18908 ;;
18909 esac
18910 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18911 gl_header_literal_regex=`echo 'math.h' \
18912 | sed -e "$gl_make_literal_regex_sed"`
18913 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18914 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18915 s|^/[^/]|//&|
18916 p
18917 q
18918 }'
18919
18920 gl_cv_absolute_math_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18921 sed -n "$gl_absolute_header_sed"`
18922
18923 gl_header=$gl_cv_absolute_math_h
18924 gl_cv_next_math_h='"'$gl_header'"'
18925 else
18926 gl_cv_next_math_h='<'math.h'>'
18927 fi
18928
18929
18930 fi
18931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_math_h" >&5
18932 $as_echo "$gl_cv_next_math_h" >&6; }
18933 fi
18934 NEXT_MATH_H=$gl_cv_next_math_h
18935
18936 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18937 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18938 gl_next_as_first_directive='<'math.h'>'
18939 else
18940 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18941 gl_next_as_first_directive=$gl_cv_next_math_h
18942 fi
18943 NEXT_AS_FIRST_DIRECTIVE_MATH_H=$gl_next_as_first_directive
18944
18945
18946
18947
18948
18949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NAN macro works" >&5
18950 $as_echo_n "checking whether NAN macro works... " >&6; }
18951 if ${gl_cv_header_math_nan_works+:} false; then :
18952 $as_echo_n "(cached) " >&6
18953 else
18954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18955 /* end confdefs.h. */
18956 #include <math.h>
18957 int
18958 main ()
18959 {
18960 /* Solaris 10 has a broken definition of NAN. Other platforms
18961 fail to provide NAN, or provide it only in C99 mode; this
18962 test only needs to fail when NAN is provided but wrong. */
18963 float f = 1.0f;
18964 #ifdef NAN
18965 f = NAN;
18966 #endif
18967 return f == 0;
18968 ;
18969 return 0;
18970 }
18971 _ACEOF
18972 if ac_fn_c_try_compile "$LINENO"; then :
18973 gl_cv_header_math_nan_works=yes
18974 else
18975 gl_cv_header_math_nan_works=no
18976 fi
18977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18978 fi
18979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_nan_works" >&5
18980 $as_echo "$gl_cv_header_math_nan_works" >&6; }
18981 if test $gl_cv_header_math_nan_works = no; then
18982 REPLACE_NAN=1
18983 fi
18984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether HUGE_VAL works" >&5
18985 $as_echo_n "checking whether HUGE_VAL works... " >&6; }
18986 if ${gl_cv_header_math_huge_val_works+:} false; then :
18987 $as_echo_n "(cached) " >&6
18988 else
18989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18990 /* end confdefs.h. */
18991 #include <math.h>
18992 int
18993 main ()
18994 {
18995 /* Solaris 10 has a broken definition of HUGE_VAL. */
18996 double d = HUGE_VAL;
18997 return d == 0;
18998 ;
18999 return 0;
19000 }
19001 _ACEOF
19002 if ac_fn_c_try_compile "$LINENO"; then :
19003 gl_cv_header_math_huge_val_works=yes
19004 else
19005 gl_cv_header_math_huge_val_works=no
19006 fi
19007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19008 fi
19009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_huge_val_works" >&5
19010 $as_echo "$gl_cv_header_math_huge_val_works" >&6; }
19011 if test $gl_cv_header_math_huge_val_works = no; then
19012 REPLACE_HUGE_VAL=1
19013 fi
19014
19015
19016 for gl_func in acosf acosl asinf asinl atanf atanl cbrt cbrtf cbrtl ceilf ceill copysign copysignf copysignl cosf cosl coshf expf expl exp2 exp2f exp2l expm1 expm1f expm1l fabsf fabsl floorf floorl fma fmaf fmal fmod fmodf fmodl frexpf frexpl hypotf hypotl ilogb ilogbf ilogbl ldexpf ldexpl log logf logl log10 log10f log10l log1p log1pf log1pl log2 log2f log2l logb logbf logbl modf modff modfl powf remainder remainderf remainderl rint rintf rintl round roundf roundl sinf sinl sinhf sqrtf sqrtl tanf tanl tanhf trunc truncf truncl; do
19017 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
19018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
19019 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
19020 if eval \${$as_gl_Symbol+:} false; then :
19021 $as_echo_n "(cached) " >&6
19022 else
19023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19024 /* end confdefs.h. */
19025 #include <math.h>
19026 int
19027 main ()
19028 {
19029 #undef $gl_func
19030 (void) $gl_func;
19031 ;
19032 return 0;
19033 }
19034 _ACEOF
19035 if ac_fn_c_try_compile "$LINENO"; then :
19036 eval "$as_gl_Symbol=yes"
19037 else
19038 eval "$as_gl_Symbol=no"
19039 fi
19040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19041 fi
19042 eval ac_res=\$$as_gl_Symbol
19043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19044 $as_echo "$ac_res" >&6; }
19045 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
19046 cat >>confdefs.h <<_ACEOF
19047 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
19048 _ACEOF
19049
19050 eval ac_cv_have_decl_$gl_func=yes
19051 fi
19052 done
19053
19054
19055
19056
19057
19058
19059
19060
19061
19062
19063
19064 :
19065
19066
19067
19068
19069
19070
19071 :
19072
19073
19074
19075
19076
19077 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
19078
19079
19080
19081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
19082 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
19083 if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then :
19084 $as_echo_n "(cached) " >&6
19085 else
19086
19087 case "$host_os" in
19088 # Guess no on AIX and OSF/1.
19089 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
19090 # Guess yes otherwise.
19091 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
19092 esac
19093 if test $LOCALE_JA != none; then
19094 if test "$cross_compiling" = yes; then :
19095 :
19096 else
19097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19098 /* end confdefs.h. */
19099
19100 #include <locale.h>
19101 #include <string.h>
19102 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19103 <wchar.h>.
19104 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19105 included before <wchar.h>. */
19106 #include <stddef.h>
19107 #include <stdio.h>
19108 #include <time.h>
19109 #include <wchar.h>
19110 int main ()
19111 {
19112 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
19113 {
19114 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
19115 mbstate_t state;
19116 wchar_t wc;
19117
19118 memset (&state, '\0', sizeof (mbstate_t));
19119 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
19120 if (mbsinit (&state))
19121 return 1;
19122 }
19123 return 0;
19124 }
19125 _ACEOF
19126 if ac_fn_c_try_run "$LINENO"; then :
19127 gl_cv_func_mbrtowc_incomplete_state=yes
19128 else
19129 gl_cv_func_mbrtowc_incomplete_state=no
19130 fi
19131 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19132 conftest.$ac_objext conftest.beam conftest.$ac_ext
19133 fi
19134
19135 fi
19136
19137 fi
19138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
19139 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
19140
19141
19142
19143
19144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
19145 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
19146 if ${gl_cv_func_mbrtowc_sanitycheck+:} false; then :
19147 $as_echo_n "(cached) " >&6
19148 else
19149
19150 case "$host_os" in
19151 # Guess no on Solaris 8.
19152 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
19153 # Guess yes otherwise.
19154 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
19155 esac
19156 if test $LOCALE_ZH_CN != none; then
19157 if test "$cross_compiling" = yes; then :
19158 :
19159 else
19160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19161 /* end confdefs.h. */
19162
19163 #include <locale.h>
19164 #include <stdlib.h>
19165 #include <string.h>
19166 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19167 <wchar.h>.
19168 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19169 included before <wchar.h>. */
19170 #include <stddef.h>
19171 #include <stdio.h>
19172 #include <time.h>
19173 #include <wchar.h>
19174 int main ()
19175 {
19176 /* This fails on Solaris 8:
19177 mbrtowc returns 2, and sets wc to 0x00F0.
19178 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
19179 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
19180 {
19181 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
19182 mbstate_t state;
19183 wchar_t wc;
19184
19185 memset (&state, '\0', sizeof (mbstate_t));
19186 if (mbrtowc (&wc, input + 3, 6, &state) != 4
19187 && mbtowc (&wc, input + 3, 6) == 4)
19188 return 1;
19189 }
19190 return 0;
19191 }
19192 _ACEOF
19193 if ac_fn_c_try_run "$LINENO"; then :
19194 gl_cv_func_mbrtowc_sanitycheck=yes
19195 else
19196 gl_cv_func_mbrtowc_sanitycheck=no
19197 fi
19198 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19199 conftest.$ac_objext conftest.beam conftest.$ac_ext
19200 fi
19201
19202 fi
19203
19204 fi
19205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
19206 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
19207
19208 REPLACE_MBSTATE_T=0
19209 case "$gl_cv_func_mbrtowc_incomplete_state" in
19210 *yes) ;;
19211 *) REPLACE_MBSTATE_T=1 ;;
19212 esac
19213 case "$gl_cv_func_mbrtowc_sanitycheck" in
19214 *yes) ;;
19215 *) REPLACE_MBSTATE_T=1 ;;
19216 esac
19217 else
19218 REPLACE_MBSTATE_T=1
19219 fi
19220
19221
19222
19223 :
19224
19225
19226
19227
19228
19229 if test $ac_cv_func_mbrtowc = no; then
19230 HAVE_MBRTOWC=0
19231 ac_fn_c_check_decl "$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" "
19232 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19233 <wchar.h>.
19234 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19235 included before <wchar.h>. */
19236 #include <stddef.h>
19237 #include <stdio.h>
19238 #include <time.h>
19239 #include <wchar.h>
19240
19241 "
19242 if test "x$ac_cv_have_decl_mbrtowc" = xyes; then :
19243 ac_have_decl=1
19244 else
19245 ac_have_decl=0
19246 fi
19247
19248 cat >>confdefs.h <<_ACEOF
19249 #define HAVE_DECL_MBRTOWC $ac_have_decl
19250 _ACEOF
19251
19252 if test $ac_cv_have_decl_mbrtowc = yes; then
19253 REPLACE_MBRTOWC=1
19254 fi
19255 else
19256 if test $REPLACE_MBSTATE_T = 1; then
19257 REPLACE_MBRTOWC=1
19258 else
19259
19260
19261
19262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL pwc argument" >&5
19263 $as_echo_n "checking whether mbrtowc handles a NULL pwc argument... " >&6; }
19264 if ${gl_cv_func_mbrtowc_null_arg1+:} false; then :
19265 $as_echo_n "(cached) " >&6
19266 else
19267
19268 case "$host_os" in
19269 # Guess no on Solaris.
19270 solaris*) gl_cv_func_mbrtowc_null_arg1="guessing no" ;;
19271 # Guess yes otherwise.
19272 *) gl_cv_func_mbrtowc_null_arg1="guessing yes" ;;
19273 esac
19274 if test $LOCALE_FR_UTF8 != none; then
19275 if test "$cross_compiling" = yes; then :
19276 :
19277 else
19278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19279 /* end confdefs.h. */
19280
19281 #include <locale.h>
19282 #include <stdlib.h>
19283 #include <string.h>
19284 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19285 <wchar.h>.
19286 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19287 included before <wchar.h>. */
19288 #include <stddef.h>
19289 #include <stdio.h>
19290 #include <time.h>
19291 #include <wchar.h>
19292 int main ()
19293 {
19294 int result = 0;
19295
19296 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
19297 {
19298 char input[] = "\303\237er";
19299 mbstate_t state;
19300 wchar_t wc;
19301 size_t ret;
19302
19303 memset (&state, '\0', sizeof (mbstate_t));
19304 wc = (wchar_t) 0xBADFACE;
19305 ret = mbrtowc (&wc, input, 5, &state);
19306 if (ret != 2)
19307 result |= 1;
19308 if (!mbsinit (&state))
19309 result |= 2;
19310
19311 memset (&state, '\0', sizeof (mbstate_t));
19312 ret = mbrtowc (NULL, input, 5, &state);
19313 if (ret != 2) /* Solaris 7 fails here: ret is -1. */
19314 result |= 4;
19315 if (!mbsinit (&state))
19316 result |= 8;
19317 }
19318 return result;
19319 }
19320 _ACEOF
19321 if ac_fn_c_try_run "$LINENO"; then :
19322 gl_cv_func_mbrtowc_null_arg1=yes
19323 else
19324 gl_cv_func_mbrtowc_null_arg1=no
19325 fi
19326 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19327 conftest.$ac_objext conftest.beam conftest.$ac_ext
19328 fi
19329
19330 fi
19331
19332 fi
19333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg1" >&5
19334 $as_echo "$gl_cv_func_mbrtowc_null_arg1" >&6; }
19335
19336
19337
19338
19339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
19340 $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
19341 if ${gl_cv_func_mbrtowc_null_arg2+:} false; then :
19342 $as_echo_n "(cached) " >&6
19343 else
19344
19345 case "$host_os" in
19346 # Guess no on OSF/1.
19347 osf*) gl_cv_func_mbrtowc_null_arg2="guessing no" ;;
19348 # Guess yes otherwise.
19349 *) gl_cv_func_mbrtowc_null_arg2="guessing yes" ;;
19350 esac
19351 if test $LOCALE_FR_UTF8 != none; then
19352 if test "$cross_compiling" = yes; then :
19353 :
19354 else
19355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19356 /* end confdefs.h. */
19357
19358 #include <locale.h>
19359 #include <string.h>
19360 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19361 <wchar.h>.
19362 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19363 included before <wchar.h>. */
19364 #include <stddef.h>
19365 #include <stdio.h>
19366 #include <time.h>
19367 #include <wchar.h>
19368 int main ()
19369 {
19370 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
19371 {
19372 mbstate_t state;
19373 wchar_t wc;
19374 int ret;
19375
19376 memset (&state, '\0', sizeof (mbstate_t));
19377 wc = (wchar_t) 0xBADFACE;
19378 mbrtowc (&wc, NULL, 5, &state);
19379 /* Check that wc was not modified. */
19380 if (wc != (wchar_t) 0xBADFACE)
19381 return 1;
19382 }
19383 return 0;
19384 }
19385 _ACEOF
19386 if ac_fn_c_try_run "$LINENO"; then :
19387 gl_cv_func_mbrtowc_null_arg2=yes
19388 else
19389 gl_cv_func_mbrtowc_null_arg2=no
19390 fi
19391 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19392 conftest.$ac_objext conftest.beam conftest.$ac_ext
19393 fi
19394
19395 fi
19396
19397 fi
19398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg2" >&5
19399 $as_echo "$gl_cv_func_mbrtowc_null_arg2" >&6; }
19400
19401
19402
19403
19404
19405
19406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
19407 $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
19408 if ${gl_cv_func_mbrtowc_retval+:} false; then :
19409 $as_echo_n "(cached) " >&6
19410 else
19411
19412 case "$host_os" in
19413 # Guess no on HP-UX, Solaris, native Windows.
19414 hpux* | solaris* | mingw*) gl_cv_func_mbrtowc_retval="guessing no" ;;
19415 # Guess yes otherwise.
19416 *) gl_cv_func_mbrtowc_retval="guessing yes" ;;
19417 esac
19418 if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none \
19419 || { case "$host_os" in mingw*) true;; *) false;; esac; }; then
19420 if test "$cross_compiling" = yes; then :
19421 :
19422 else
19423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19424 /* end confdefs.h. */
19425
19426 #include <locale.h>
19427 #include <string.h>
19428 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19429 <wchar.h>.
19430 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19431 included before <wchar.h>. */
19432 #include <stddef.h>
19433 #include <stdio.h>
19434 #include <time.h>
19435 #include <wchar.h>
19436 int main ()
19437 {
19438 int result = 0;
19439 int found_some_locale = 0;
19440 /* This fails on Solaris. */
19441 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
19442 {
19443 char input[] = "B\303\274\303\237er"; /* "Büßer" */
19444 mbstate_t state;
19445 wchar_t wc;
19446
19447 memset (&state, '\0', sizeof (mbstate_t));
19448 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
19449 {
19450 input[1] = '\0';
19451 if (mbrtowc (&wc, input + 2, 5, &state) != 1)
19452 result |= 1;
19453 }
19454 found_some_locale = 1;
19455 }
19456 /* This fails on HP-UX 11.11. */
19457 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
19458 {
19459 char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
19460 mbstate_t state;
19461 wchar_t wc;
19462
19463 memset (&state, '\0', sizeof (mbstate_t));
19464 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
19465 {
19466 input[1] = '\0';
19467 if (mbrtowc (&wc, input + 2, 5, &state) != 2)
19468 result |= 2;
19469 }
19470 found_some_locale = 1;
19471 }
19472 /* This fails on native Windows. */
19473 if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
19474 {
19475 char input[] = "<\223\372\226\173\214\352>"; /* "<日本語>" */
19476 mbstate_t state;
19477 wchar_t wc;
19478
19479 memset (&state, '\0', sizeof (mbstate_t));
19480 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
19481 {
19482 input[3] = '\0';
19483 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
19484 result |= 4;
19485 }
19486 found_some_locale = 1;
19487 }
19488 if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
19489 {
19490 char input[] = "<\244\351\245\273\273\171>"; /* "<日本語>" */
19491 mbstate_t state;
19492 wchar_t wc;
19493
19494 memset (&state, '\0', sizeof (mbstate_t));
19495 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
19496 {
19497 input[3] = '\0';
19498 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
19499 result |= 8;
19500 }
19501 found_some_locale = 1;
19502 }
19503 if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
19504 {
19505 char input[] = "<\310\325\261\276\325\132>"; /* "<日本語>" */
19506 mbstate_t state;
19507 wchar_t wc;
19508
19509 memset (&state, '\0', sizeof (mbstate_t));
19510 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
19511 {
19512 input[3] = '\0';
19513 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
19514 result |= 16;
19515 }
19516 found_some_locale = 1;
19517 }
19518 return (found_some_locale ? result : 77);
19519 }
19520 _ACEOF
19521 if ac_fn_c_try_run "$LINENO"; then :
19522 gl_cv_func_mbrtowc_retval=yes
19523 else
19524 if test $? != 77; then
19525 gl_cv_func_mbrtowc_retval=no
19526 fi
19527
19528 fi
19529 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19530 conftest.$ac_objext conftest.beam conftest.$ac_ext
19531 fi
19532
19533 fi
19534
19535 fi
19536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
19537 $as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
19538
19539
19540
19541
19542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
19543 $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
19544 if ${gl_cv_func_mbrtowc_nul_retval+:} false; then :
19545 $as_echo_n "(cached) " >&6
19546 else
19547
19548 case "$host_os" in
19549 # Guess no on Solaris 8 and 9.
19550 solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
19551 # Guess yes otherwise.
19552 *) gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
19553 esac
19554 if test $LOCALE_ZH_CN != none; then
19555 if test "$cross_compiling" = yes; then :
19556 :
19557 else
19558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19559 /* end confdefs.h. */
19560
19561 #include <locale.h>
19562 #include <string.h>
19563 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19564 <wchar.h>.
19565 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19566 included before <wchar.h>. */
19567 #include <stddef.h>
19568 #include <stdio.h>
19569 #include <time.h>
19570 #include <wchar.h>
19571 int main ()
19572 {
19573 /* This fails on Solaris 8 and 9. */
19574 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
19575 {
19576 mbstate_t state;
19577 wchar_t wc;
19578
19579 memset (&state, '\0', sizeof (mbstate_t));
19580 if (mbrtowc (&wc, "", 1, &state) != 0)
19581 return 1;
19582 }
19583 return 0;
19584 }
19585 _ACEOF
19586 if ac_fn_c_try_run "$LINENO"; then :
19587 gl_cv_func_mbrtowc_nul_retval=yes
19588 else
19589 gl_cv_func_mbrtowc_nul_retval=no
19590 fi
19591 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19592 conftest.$ac_objext conftest.beam conftest.$ac_ext
19593 fi
19594
19595 fi
19596
19597 fi
19598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
19599 $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
19600
19601
19602
19603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works on empty input" >&5
19604 $as_echo_n "checking whether mbrtowc works on empty input... " >&6; }
19605 if ${gl_cv_func_mbrtowc_empty_input+:} false; then :
19606 $as_echo_n "(cached) " >&6
19607 else
19608
19609 case "$host_os" in
19610 # Guess no on AIX and glibc systems.
19611 aix* | *-gnu*)
19612 gl_cv_func_mbrtowc_empty_input="guessing no" ;;
19613 *) gl_cv_func_mbrtowc_empty_input="guessing yes" ;;
19614 esac
19615 if test "$cross_compiling" = yes; then :
19616 :
19617 else
19618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19619 /* end confdefs.h. */
19620
19621 #include <wchar.h>
19622 static wchar_t wc;
19623 static mbstate_t mbs;
19624 int
19625 main (void)
19626 {
19627 return mbrtowc (&wc, "", 0, &mbs) != (size_t) -2;
19628 }
19629 _ACEOF
19630 if ac_fn_c_try_run "$LINENO"; then :
19631 gl_cv_func_mbrtowc_empty_input=yes
19632 else
19633 gl_cv_func_mbrtowc_empty_input=no
19634 fi
19635 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19636 conftest.$ac_objext conftest.beam conftest.$ac_ext
19637 fi
19638
19639
19640 fi
19641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_empty_input" >&5
19642 $as_echo "$gl_cv_func_mbrtowc_empty_input" >&6; }
19643
19644
19645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C locale is free of encoding errors" >&5
19646 $as_echo_n "checking whether the C locale is free of encoding errors... " >&6; }
19647 if ${gl_cv_C_locale_sans_EILSEQ+:} false; then :
19648 $as_echo_n "(cached) " >&6
19649 else
19650
19651 gl_cv_C_locale_sans_EILSEQ="guessing no"
19652
19653 if test "$cross_compiling" = yes; then :
19654 :
19655 else
19656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19657 /* end confdefs.h. */
19658 #include <limits.h>
19659 #include <locale.h>
19660 #include <wchar.h>
19661
19662 int
19663 main ()
19664 {
19665
19666 int i;
19667 char *locale = setlocale (LC_ALL, "C");
19668 if (! locale)
19669 return 1;
19670 for (i = CHAR_MIN; i <= CHAR_MAX; i++)
19671 {
19672 char c = i;
19673 wchar_t wc;
19674 mbstate_t mbs = { 0, };
19675 size_t ss = mbrtowc (&wc, &c, 1, &mbs);
19676 if (1 < ss)
19677 return 1;
19678 }
19679 return 0;
19680
19681 ;
19682 return 0;
19683 }
19684 _ACEOF
19685 if ac_fn_c_try_run "$LINENO"; then :
19686 gl_cv_C_locale_sans_EILSEQ=yes
19687 else
19688 gl_cv_C_locale_sans_EILSEQ=no
19689 fi
19690 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19691 conftest.$ac_objext conftest.beam conftest.$ac_ext
19692 fi
19693
19694 fi
19695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_C_locale_sans_EILSEQ" >&5
19696 $as_echo "$gl_cv_C_locale_sans_EILSEQ" >&6; }
19697
19698 case "$gl_cv_func_mbrtowc_null_arg1" in
19699 *yes) ;;
19700 *)
19701 $as_echo "#define MBRTOWC_NULL_ARG1_BUG 1" >>confdefs.h
19702
19703 REPLACE_MBRTOWC=1
19704 ;;
19705 esac
19706 case "$gl_cv_func_mbrtowc_null_arg2" in
19707 *yes) ;;
19708 *)
19709 $as_echo "#define MBRTOWC_NULL_ARG2_BUG 1" >>confdefs.h
19710
19711 REPLACE_MBRTOWC=1
19712 ;;
19713 esac
19714 case "$gl_cv_func_mbrtowc_retval" in
19715 *yes) ;;
19716 *)
19717 $as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
19718
19719 REPLACE_MBRTOWC=1
19720 ;;
19721 esac
19722 case "$gl_cv_func_mbrtowc_nul_retval" in
19723 *yes) ;;
19724 *)
19725 $as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
19726
19727 REPLACE_MBRTOWC=1
19728 ;;
19729 esac
19730 case "$gl_cv_func_mbrtowc_empty_input" in
19731 *yes) ;;
19732 *)
19733 $as_echo "#define MBRTOWC_EMPTY_INPUT_BUG 1" >>confdefs.h
19734
19735 REPLACE_MBRTOWC=1
19736 ;;
19737 esac
19738 case $gl_cv_C_locale_sans_EILSEQ in
19739 *yes) ;;
19740 *)
19741 $as_echo "#define C_LOCALE_MAYBE_EILSEQ 1" >>confdefs.h
19742
19743 REPLACE_MBRTOWC=1
19744 ;;
19745 esac
19746 fi
19747 fi
19748
19749 if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
19750
19751
19752
19753
19754
19755
19756
19757
19758 gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext"
19759
19760
19761 :
19762
19763 fi
19764
19765
19766
19767
19768
19769 GNULIB_MBRTOWC=1
19770
19771
19772
19773
19774
19775 $as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
19776
19777
19778
19779
19780
19781
19782
19783
19784
19785
19786
19787
19788
19789 :
19790
19791
19792
19793
19794
19795
19796 :
19797
19798
19799
19800
19801
19802 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
19803
19804
19805
19806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
19807 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
19808 if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then :
19809 $as_echo_n "(cached) " >&6
19810 else
19811
19812 case "$host_os" in
19813 # Guess no on AIX and OSF/1.
19814 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
19815 # Guess yes otherwise.
19816 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
19817 esac
19818 if test $LOCALE_JA != none; then
19819 if test "$cross_compiling" = yes; then :
19820 :
19821 else
19822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19823 /* end confdefs.h. */
19824
19825 #include <locale.h>
19826 #include <string.h>
19827 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19828 <wchar.h>.
19829 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19830 included before <wchar.h>. */
19831 #include <stddef.h>
19832 #include <stdio.h>
19833 #include <time.h>
19834 #include <wchar.h>
19835 int main ()
19836 {
19837 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
19838 {
19839 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
19840 mbstate_t state;
19841 wchar_t wc;
19842
19843 memset (&state, '\0', sizeof (mbstate_t));
19844 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
19845 if (mbsinit (&state))
19846 return 1;
19847 }
19848 return 0;
19849 }
19850 _ACEOF
19851 if ac_fn_c_try_run "$LINENO"; then :
19852 gl_cv_func_mbrtowc_incomplete_state=yes
19853 else
19854 gl_cv_func_mbrtowc_incomplete_state=no
19855 fi
19856 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19857 conftest.$ac_objext conftest.beam conftest.$ac_ext
19858 fi
19859
19860 fi
19861
19862 fi
19863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
19864 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
19865
19866
19867
19868
19869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
19870 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
19871 if ${gl_cv_func_mbrtowc_sanitycheck+:} false; then :
19872 $as_echo_n "(cached) " >&6
19873 else
19874
19875 case "$host_os" in
19876 # Guess no on Solaris 8.
19877 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
19878 # Guess yes otherwise.
19879 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
19880 esac
19881 if test $LOCALE_ZH_CN != none; then
19882 if test "$cross_compiling" = yes; then :
19883 :
19884 else
19885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19886 /* end confdefs.h. */
19887
19888 #include <locale.h>
19889 #include <stdlib.h>
19890 #include <string.h>
19891 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19892 <wchar.h>.
19893 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19894 included before <wchar.h>. */
19895 #include <stddef.h>
19896 #include <stdio.h>
19897 #include <time.h>
19898 #include <wchar.h>
19899 int main ()
19900 {
19901 /* This fails on Solaris 8:
19902 mbrtowc returns 2, and sets wc to 0x00F0.
19903 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
19904 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
19905 {
19906 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
19907 mbstate_t state;
19908 wchar_t wc;
19909
19910 memset (&state, '\0', sizeof (mbstate_t));
19911 if (mbrtowc (&wc, input + 3, 6, &state) != 4
19912 && mbtowc (&wc, input + 3, 6) == 4)
19913 return 1;
19914 }
19915 return 0;
19916 }
19917 _ACEOF
19918 if ac_fn_c_try_run "$LINENO"; then :
19919 gl_cv_func_mbrtowc_sanitycheck=yes
19920 else
19921 gl_cv_func_mbrtowc_sanitycheck=no
19922 fi
19923 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19924 conftest.$ac_objext conftest.beam conftest.$ac_ext
19925 fi
19926
19927 fi
19928
19929 fi
19930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
19931 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
19932
19933 REPLACE_MBSTATE_T=0
19934 case "$gl_cv_func_mbrtowc_incomplete_state" in
19935 *yes) ;;
19936 *) REPLACE_MBSTATE_T=1 ;;
19937 esac
19938 case "$gl_cv_func_mbrtowc_sanitycheck" in
19939 *yes) ;;
19940 *) REPLACE_MBSTATE_T=1 ;;
19941 esac
19942 else
19943 REPLACE_MBSTATE_T=1
19944 fi
19945
19946
19947
19948 :
19949
19950
19951
19952
19953
19954 if test $ac_cv_func_mbsinit = no; then
19955 HAVE_MBSINIT=0
19956 ac_fn_c_check_decl "$LINENO" "mbsinit" "ac_cv_have_decl_mbsinit" "
19957 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19958 <wchar.h>.
19959 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19960 included before <wchar.h>. */
19961 #include <stddef.h>
19962 #include <stdio.h>
19963 #include <time.h>
19964 #include <wchar.h>
19965
19966 "
19967 if test "x$ac_cv_have_decl_mbsinit" = xyes; then :
19968 ac_have_decl=1
19969 else
19970 ac_have_decl=0
19971 fi
19972
19973 cat >>confdefs.h <<_ACEOF
19974 #define HAVE_DECL_MBSINIT $ac_have_decl
19975 _ACEOF
19976
19977 if test $ac_cv_have_decl_mbsinit = yes; then
19978 REPLACE_MBSINIT=1
19979 fi
19980 else
19981 if test $REPLACE_MBSTATE_T = 1; then
19982 REPLACE_MBSINIT=1
19983 else
19984 case "$host_os" in
19985 mingw*) REPLACE_MBSINIT=1 ;;
19986 esac
19987 fi
19988 fi
19989
19990 if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
19991
19992
19993
19994
19995
19996
19997
19998
19999 gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext"
20000
20001
20002 :
20003
20004 fi
20005
20006
20007
20008
20009
20010 GNULIB_MBSINIT=1
20011
20012
20013
20014
20015
20016 $as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
20017
20018
20019
20020
20021
20022
20023
20024
20025
20026
20027
20028
20029 :
20030
20031
20032
20033
20034
20035
20036 :
20037
20038
20039
20040
20041
20042 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
20043
20044
20045
20046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
20047 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
20048 if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then :
20049 $as_echo_n "(cached) " >&6
20050 else
20051
20052 case "$host_os" in
20053 # Guess no on AIX and OSF/1.
20054 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
20055 # Guess yes otherwise.
20056 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
20057 esac
20058 if test $LOCALE_JA != none; then
20059 if test "$cross_compiling" = yes; then :
20060 :
20061 else
20062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20063 /* end confdefs.h. */
20064
20065 #include <locale.h>
20066 #include <string.h>
20067 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20068 <wchar.h>.
20069 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20070 included before <wchar.h>. */
20071 #include <stddef.h>
20072 #include <stdio.h>
20073 #include <time.h>
20074 #include <wchar.h>
20075 int main ()
20076 {
20077 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
20078 {
20079 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
20080 mbstate_t state;
20081 wchar_t wc;
20082
20083 memset (&state, '\0', sizeof (mbstate_t));
20084 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
20085 if (mbsinit (&state))
20086 return 1;
20087 }
20088 return 0;
20089 }
20090 _ACEOF
20091 if ac_fn_c_try_run "$LINENO"; then :
20092 gl_cv_func_mbrtowc_incomplete_state=yes
20093 else
20094 gl_cv_func_mbrtowc_incomplete_state=no
20095 fi
20096 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20097 conftest.$ac_objext conftest.beam conftest.$ac_ext
20098 fi
20099
20100 fi
20101
20102 fi
20103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
20104 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
20105
20106
20107
20108
20109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
20110 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
20111 if ${gl_cv_func_mbrtowc_sanitycheck+:} false; then :
20112 $as_echo_n "(cached) " >&6
20113 else
20114
20115 case "$host_os" in
20116 # Guess no on Solaris 8.
20117 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
20118 # Guess yes otherwise.
20119 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
20120 esac
20121 if test $LOCALE_ZH_CN != none; then
20122 if test "$cross_compiling" = yes; then :
20123 :
20124 else
20125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20126 /* end confdefs.h. */
20127
20128 #include <locale.h>
20129 #include <stdlib.h>
20130 #include <string.h>
20131 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20132 <wchar.h>.
20133 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20134 included before <wchar.h>. */
20135 #include <stddef.h>
20136 #include <stdio.h>
20137 #include <time.h>
20138 #include <wchar.h>
20139 int main ()
20140 {
20141 /* This fails on Solaris 8:
20142 mbrtowc returns 2, and sets wc to 0x00F0.
20143 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
20144 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
20145 {
20146 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
20147 mbstate_t state;
20148 wchar_t wc;
20149
20150 memset (&state, '\0', sizeof (mbstate_t));
20151 if (mbrtowc (&wc, input + 3, 6, &state) != 4
20152 && mbtowc (&wc, input + 3, 6) == 4)
20153 return 1;
20154 }
20155 return 0;
20156 }
20157 _ACEOF
20158 if ac_fn_c_try_run "$LINENO"; then :
20159 gl_cv_func_mbrtowc_sanitycheck=yes
20160 else
20161 gl_cv_func_mbrtowc_sanitycheck=no
20162 fi
20163 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20164 conftest.$ac_objext conftest.beam conftest.$ac_ext
20165 fi
20166
20167 fi
20168
20169 fi
20170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
20171 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
20172
20173 REPLACE_MBSTATE_T=0
20174 case "$gl_cv_func_mbrtowc_incomplete_state" in
20175 *yes) ;;
20176 *) REPLACE_MBSTATE_T=1 ;;
20177 esac
20178 case "$gl_cv_func_mbrtowc_sanitycheck" in
20179 *yes) ;;
20180 *) REPLACE_MBSTATE_T=1 ;;
20181 esac
20182 else
20183 REPLACE_MBSTATE_T=1
20184 fi
20185
20186
20187
20188 :
20189
20190
20191
20192
20193
20194 if test $ac_cv_func_mbsrtowcs = no; then
20195 HAVE_MBSRTOWCS=0
20196 ac_fn_c_check_decl "$LINENO" "mbsrtowcs" "ac_cv_have_decl_mbsrtowcs" "
20197 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20198 <wchar.h>.
20199 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20200 included before <wchar.h>. */
20201 #include <stddef.h>
20202 #include <stdio.h>
20203 #include <time.h>
20204 #include <wchar.h>
20205
20206 "
20207 if test "x$ac_cv_have_decl_mbsrtowcs" = xyes; then :
20208 ac_have_decl=1
20209 else
20210 ac_have_decl=0
20211 fi
20212
20213 cat >>confdefs.h <<_ACEOF
20214 #define HAVE_DECL_MBSRTOWCS $ac_have_decl
20215 _ACEOF
20216
20217 if test $ac_cv_have_decl_mbsrtowcs = yes; then
20218 REPLACE_MBSRTOWCS=1
20219 fi
20220 else
20221 if test $REPLACE_MBSTATE_T = 1; then
20222 REPLACE_MBSRTOWCS=1
20223 else
20224
20225
20226
20227
20228
20229
20230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbsrtowcs works" >&5
20231 $as_echo_n "checking whether mbsrtowcs works... " >&6; }
20232 if ${gl_cv_func_mbsrtowcs_works+:} false; then :
20233 $as_echo_n "(cached) " >&6
20234 else
20235
20236 case "$host_os" in
20237 # Guess no on HP-UX, Solaris, mingw.
20238 hpux* | solaris* | mingw*) gl_cv_func_mbsrtowcs_works="guessing no" ;;
20239 # Guess yes otherwise.
20240 *) gl_cv_func_mbsrtowcs_works="guessing yes" ;;
20241 esac
20242 if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
20243 if test "$cross_compiling" = yes; then :
20244 :
20245 else
20246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20247 /* end confdefs.h. */
20248
20249 #include <locale.h>
20250 #include <string.h>
20251 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20252 <wchar.h>.
20253 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20254 included before <wchar.h>. */
20255 #include <stddef.h>
20256 #include <stdio.h>
20257 #include <time.h>
20258 #include <wchar.h>
20259 int main ()
20260 {
20261 int result = 0;
20262 /* Test whether the function supports a NULL destination argument.
20263 This fails on native Windows. */
20264 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
20265 {
20266 const char input[] = "\337er";
20267 const char *src = input;
20268 mbstate_t state;
20269
20270 memset (&state, '\0', sizeof (mbstate_t));
20271 if (mbsrtowcs (NULL, &src, 1, &state) != 3
20272 || src != input)
20273 result |= 1;
20274 }
20275 /* Test whether the function works when started with a conversion state
20276 in non-initial state. This fails on HP-UX 11.11 and Solaris 10. */
20277 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
20278 {
20279 const char input[] = "B\303\274\303\237er";
20280 mbstate_t state;
20281
20282 memset (&state, '\0', sizeof (mbstate_t));
20283 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
20284 if (!mbsinit (&state))
20285 {
20286 const char *src = input + 2;
20287 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
20288 result |= 2;
20289 }
20290 }
20291 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
20292 {
20293 const char input[] = "<\306\374\313\334\270\354>";
20294 mbstate_t state;
20295
20296 memset (&state, '\0', sizeof (mbstate_t));
20297 if (mbrtowc (NULL, input + 3, 1, &state) == (size_t)(-2))
20298 if (!mbsinit (&state))
20299 {
20300 const char *src = input + 4;
20301 if (mbsrtowcs (NULL, &src, 10, &state) != 3)
20302 result |= 4;
20303 }
20304 }
20305 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
20306 {
20307 const char input[] = "B\250\271\201\060\211\070er";
20308 mbstate_t state;
20309
20310 memset (&state, '\0', sizeof (mbstate_t));
20311 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
20312 if (!mbsinit (&state))
20313 {
20314 const char *src = input + 2;
20315 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
20316 result |= 8;
20317 }
20318 }
20319 return result;
20320 }
20321 _ACEOF
20322 if ac_fn_c_try_run "$LINENO"; then :
20323 gl_cv_func_mbsrtowcs_works=yes
20324 else
20325 gl_cv_func_mbsrtowcs_works=no
20326 fi
20327 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20328 conftest.$ac_objext conftest.beam conftest.$ac_ext
20329 fi
20330
20331 fi
20332
20333 fi
20334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbsrtowcs_works" >&5
20335 $as_echo "$gl_cv_func_mbsrtowcs_works" >&6; }
20336
20337 case "$gl_cv_func_mbsrtowcs_works" in
20338 *yes) ;;
20339 *) REPLACE_MBSRTOWCS=1 ;;
20340 esac
20341 fi
20342 fi
20343
20344 if test $HAVE_MBSRTOWCS = 0 || test $REPLACE_MBSRTOWCS = 1; then
20345
20346
20347
20348
20349
20350
20351
20352
20353 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs.$ac_objext"
20354
20355
20356
20357
20358
20359
20360
20361
20362
20363 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs-state.$ac_objext"
20364
20365
20366 :
20367
20368 fi
20369
20370
20371
20372
20373
20374 GNULIB_MBSRTOWCS=1
20375
20376
20377
20378
20379
20380 $as_echo "#define GNULIB_TEST_MBSRTOWCS 1" >>confdefs.h
20381
20382
20383
20384
20385 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
20386
20387
20388
20389
20390
20391
20392
20393
20394 gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
20395
20396
20397 for ac_header in bp-sym.h
20398 do :
20399 ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
20400 if test "x$ac_cv_header_bp_sym_h" = xyes; then :
20401 cat >>confdefs.h <<_ACEOF
20402 #define HAVE_BP_SYM_H 1
20403 _ACEOF
20404
20405 fi
20406
20407 done
20408
20409
20410 fi
20411
20412
20413
20414
20415
20416 GNULIB_MEMCHR=1
20417
20418
20419
20420
20421
20422 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
20423
20424
20425
20426
20427
20428 if test $HAVE_DECL_MEMMEM = 1 && test $REPLACE_MEMMEM = 0; then
20429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
20430 $as_echo_n "checking whether memmem works in linear time... " >&6; }
20431 if ${gl_cv_func_memmem_works_fast+:} false; then :
20432 $as_echo_n "(cached) " >&6
20433 else
20434 if test "$cross_compiling" = yes; then :
20435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20436 /* end confdefs.h. */
20437
20438 #include <features.h>
20439 #ifdef __GNU_LIBRARY__
20440 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)) \
20441 && !defined __UCLIBC__
20442 Lucky user
20443 #endif
20444 #endif
20445 #ifdef __CYGWIN__
20446 #include <cygwin/version.h>
20447 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 0)
20448 Lucky user
20449 #endif
20450 #endif
20451
20452 _ACEOF
20453 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20454 $EGREP "Lucky user" >/dev/null 2>&1; then :
20455 gl_cv_func_memmem_works_fast="guessing yes"
20456 else
20457 gl_cv_func_memmem_works_fast="guessing no"
20458 fi
20459 rm -f conftest*
20460
20461
20462 else
20463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20464 /* end confdefs.h. */
20465
20466 #include <signal.h> /* for signal */
20467 #include <string.h> /* for memmem */
20468 #include <stdlib.h> /* for malloc */
20469 #include <unistd.h> /* for alarm */
20470 static void quit (int sig) { _exit (sig + 128); }
20471
20472 int
20473 main ()
20474 {
20475
20476 int result = 0;
20477 size_t m = 1000000;
20478 char *haystack = (char *) malloc (2 * m + 1);
20479 char *needle = (char *) malloc (m + 1);
20480 /* Failure to compile this test due to missing alarm is okay,
20481 since all such platforms (mingw) also lack memmem. */
20482 signal (SIGALRM, quit);
20483 alarm (5);
20484 /* Check for quadratic performance. */
20485 if (haystack && needle)
20486 {
20487 memset (haystack, 'A', 2 * m);
20488 haystack[2 * m] = 'B';
20489 memset (needle, 'A', m);
20490 needle[m] = 'B';
20491 if (!memmem (haystack, 2 * m + 1, needle, m + 1))
20492 result |= 1;
20493 }
20494 return result;
20495
20496 ;
20497 return 0;
20498 }
20499 _ACEOF
20500 if ac_fn_c_try_run "$LINENO"; then :
20501 gl_cv_func_memmem_works_fast=yes
20502 else
20503 gl_cv_func_memmem_works_fast=no
20504 fi
20505 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20506 conftest.$ac_objext conftest.beam conftest.$ac_ext
20507 fi
20508
20509
20510 fi
20511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_fast" >&5
20512 $as_echo "$gl_cv_func_memmem_works_fast" >&6; }
20513 case "$gl_cv_func_memmem_works_fast" in
20514 *yes) ;;
20515 *)
20516 REPLACE_MEMMEM=1
20517 ;;
20518 esac
20519 fi
20520
20521 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
20522
20523
20524
20525
20526
20527
20528
20529
20530 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
20531
20532 fi
20533
20534
20535
20536
20537 for ac_func in memmem
20538 do :
20539 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
20540 if test "x$ac_cv_func_memmem" = xyes; then :
20541 cat >>confdefs.h <<_ACEOF
20542 #define HAVE_MEMMEM 1
20543 _ACEOF
20544
20545 fi
20546 done
20547
20548 if test $ac_cv_func_memmem = yes; then
20549 HAVE_MEMMEM=1
20550 else
20551 HAVE_MEMMEM=0
20552 fi
20553
20554 :
20555
20556
20557
20558
20559
20560 if test $ac_cv_have_decl_memmem = no; then
20561 HAVE_DECL_MEMMEM=0
20562 else
20563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
20564 $as_echo_n "checking whether memmem works... " >&6; }
20565 if ${gl_cv_func_memmem_works_always+:} false; then :
20566 $as_echo_n "(cached) " >&6
20567 else
20568 if test "$cross_compiling" = yes; then :
20569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20570 /* end confdefs.h. */
20571
20572 #ifdef __GNU_LIBRARY__
20573 #include <features.h>
20574 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
20575 || __GLIBC_MINOR__ > 12)) \
20576 || (__GLIBC__ > 2)) \
20577 || defined __UCLIBC__
20578 Lucky user
20579 #endif
20580 #elif defined __CYGWIN__
20581 #include <cygwin/version.h>
20582 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
20583 Lucky user
20584 #endif
20585 #else
20586 Lucky user
20587 #endif
20588
20589 _ACEOF
20590 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20591 $EGREP "Lucky user" >/dev/null 2>&1; then :
20592 gl_cv_func_memmem_works_always="guessing yes"
20593 else
20594 gl_cv_func_memmem_works_always="guessing no"
20595 fi
20596 rm -f conftest*
20597
20598
20599 else
20600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20601 /* end confdefs.h. */
20602
20603 #include <string.h> /* for memmem */
20604 #define P "_EF_BF_BD"
20605 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
20606 #define NEEDLE P P P P P
20607
20608 int
20609 main ()
20610 {
20611
20612 int result = 0;
20613 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
20614 result |= 1;
20615 /* Check for empty needle behavior. */
20616 {
20617 const char *haystack = "AAA";
20618 if (memmem (haystack, 3, NULL, 0) != haystack)
20619 result |= 2;
20620 }
20621 return result;
20622
20623 ;
20624 return 0;
20625 }
20626 _ACEOF
20627 if ac_fn_c_try_run "$LINENO"; then :
20628 gl_cv_func_memmem_works_always=yes
20629 else
20630 gl_cv_func_memmem_works_always=no
20631 fi
20632 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20633 conftest.$ac_objext conftest.beam conftest.$ac_ext
20634 fi
20635
20636
20637 fi
20638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
20639 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
20640 case "$gl_cv_func_memmem_works_always" in
20641 *yes) ;;
20642 *)
20643 REPLACE_MEMMEM=1
20644 ;;
20645 esac
20646 fi
20647 :
20648
20649 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
20650
20651
20652
20653
20654
20655
20656
20657
20658 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
20659
20660 fi
20661
20662
20663
20664
20665
20666 GNULIB_MEMMEM=1
20667
20668
20669
20670
20671
20672 $as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
20673
20674
20675
20676
20677
20678
20679
20680
20681
20682 for ac_func in mempcpy
20683 do :
20684 ac_fn_c_check_func "$LINENO" "mempcpy" "ac_cv_func_mempcpy"
20685 if test "x$ac_cv_func_mempcpy" = xyes; then :
20686 cat >>confdefs.h <<_ACEOF
20687 #define HAVE_MEMPCPY 1
20688 _ACEOF
20689
20690 fi
20691 done
20692
20693 if test $ac_cv_func_mempcpy = no; then
20694 HAVE_MEMPCPY=0
20695 fi
20696
20697 if test $HAVE_MEMPCPY = 0; then
20698
20699
20700
20701
20702
20703
20704
20705
20706 gl_LIBOBJS="$gl_LIBOBJS mempcpy.$ac_objext"
20707
20708
20709 :
20710
20711 fi
20712
20713
20714
20715
20716
20717 GNULIB_MEMPCPY=1
20718
20719
20720
20721
20722
20723 $as_echo "#define GNULIB_TEST_MEMPCPY 1" >>confdefs.h
20724
20725
20726
20727
20728
20729
20730
20731
20732 :
20733
20734
20735
20736
20737
20738 if test $ac_cv_have_decl_memrchr = no; then
20739 HAVE_DECL_MEMRCHR=0
20740 fi
20741
20742 for ac_func in memrchr
20743 do :
20744 ac_fn_c_check_func "$LINENO" "memrchr" "ac_cv_func_memrchr"
20745 if test "x$ac_cv_func_memrchr" = xyes; then :
20746 cat >>confdefs.h <<_ACEOF
20747 #define HAVE_MEMRCHR 1
20748 _ACEOF
20749
20750 fi
20751 done
20752
20753
20754 if test $ac_cv_func_memrchr = no; then
20755
20756
20757
20758
20759
20760
20761
20762
20763 gl_LIBOBJS="$gl_LIBOBJS memrchr.$ac_objext"
20764
20765 :
20766 fi
20767
20768
20769
20770
20771
20772 GNULIB_MEMRCHR=1
20773
20774
20775
20776
20777
20778 $as_echo "#define GNULIB_TEST_MEMRCHR 1" >>confdefs.h
20779
20780
20781
20782
20783
20784
20785
20786 :
20787
20788
20789
20790
20791
20792 if test $ac_cv_func_mkstemp = yes; then
20793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mkstemp" >&5
20794 $as_echo_n "checking for working mkstemp... " >&6; }
20795 if ${gl_cv_func_working_mkstemp+:} false; then :
20796 $as_echo_n "(cached) " >&6
20797 else
20798
20799 mkdir conftest.mkstemp
20800 if test "$cross_compiling" = yes; then :
20801 case "$host_os" in
20802 # Guess yes on glibc systems.
20803 *-gnu*) gl_cv_func_working_mkstemp="guessing yes" ;;
20804 # If we don't know, assume the worst.
20805 *) gl_cv_func_working_mkstemp="guessing no" ;;
20806 esac
20807
20808 else
20809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20810 /* end confdefs.h. */
20811 $ac_includes_default
20812 int
20813 main ()
20814 {
20815 int result = 0;
20816 int i;
20817 off_t large = (off_t) 4294967295u;
20818 if (large < 0)
20819 large = 2147483647;
20820 umask (0);
20821 for (i = 0; i < 70; i++)
20822 {
20823 char templ[] = "conftest.mkstemp/coXXXXXX";
20824 int (*mkstemp_function) (char *) = mkstemp;
20825 int fd = mkstemp_function (templ);
20826 if (fd < 0)
20827 result |= 1;
20828 else
20829 {
20830 struct stat st;
20831 if (lseek (fd, large, SEEK_SET) != large)
20832 result |= 2;
20833 if (fstat (fd, &st) < 0)
20834 result |= 4;
20835 else if (st.st_mode & 0077)
20836 result |= 8;
20837 if (close (fd))
20838 result |= 16;
20839 }
20840 }
20841 return result;
20842 ;
20843 return 0;
20844 }
20845 _ACEOF
20846 if ac_fn_c_try_run "$LINENO"; then :
20847 gl_cv_func_working_mkstemp=yes
20848 else
20849 gl_cv_func_working_mkstemp=no
20850 fi
20851 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20852 conftest.$ac_objext conftest.beam conftest.$ac_ext
20853 fi
20854
20855 rm -rf conftest.mkstemp
20856
20857 fi
20858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mkstemp" >&5
20859 $as_echo "$gl_cv_func_working_mkstemp" >&6; }
20860 case "$gl_cv_func_working_mkstemp" in
20861 *yes) ;;
20862 *)
20863 REPLACE_MKSTEMP=1
20864 ;;
20865 esac
20866 else
20867 HAVE_MKSTEMP=0
20868 fi
20869
20870 if test $HAVE_MKSTEMP = 0 || test $REPLACE_MKSTEMP = 1; then
20871
20872
20873
20874
20875
20876
20877
20878
20879 gl_LIBOBJS="$gl_LIBOBJS mkstemp.$ac_objext"
20880
20881
20882
20883 fi
20884
20885
20886
20887
20888
20889 GNULIB_MKSTEMP=1
20890
20891
20892
20893
20894
20895 $as_echo "#define GNULIB_TEST_MKSTEMP 1" >>confdefs.h
20896
20897
20898
20899
20900 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
20901
20902
20903
20904
20905
20906
20907
20908
20909 gl_LIBOBJS="$gl_LIBOBJS msvc-inval.$ac_objext"
20910
20911 fi
20912
20913 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
20914
20915
20916
20917
20918
20919
20920
20921
20922 gl_LIBOBJS="$gl_LIBOBJS msvc-nothrow.$ac_objext"
20923
20924 fi
20925
20926
20927
20928 case "$host_os" in
20929 mingw* | pw*)
20930 REPLACE_OPEN=1
20931 ;;
20932 *)
20933
20934 :
20935
20936
20937
20938
20939
20940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open recognizes a trailing slash" >&5
20941 $as_echo_n "checking whether open recognizes a trailing slash... " >&6; }
20942 if ${gl_cv_func_open_slash+:} false; then :
20943 $as_echo_n "(cached) " >&6
20944 else
20945 # Assume that if we have lstat, we can also check symlinks.
20946 if test $ac_cv_func_lstat = yes; then
20947 touch conftest.tmp
20948 ln -s conftest.tmp conftest.lnk
20949 fi
20950 if test "$cross_compiling" = yes; then :
20951
20952 case "$host_os" in
20953 freebsd* | aix* | hpux* | solaris2.[0-9] | solaris2.[0-9].*)
20954 gl_cv_func_open_slash="guessing no" ;;
20955 *)
20956 gl_cv_func_open_slash="guessing yes" ;;
20957 esac
20958
20959 else
20960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20961 /* end confdefs.h. */
20962
20963 #include <fcntl.h>
20964 #if HAVE_UNISTD_H
20965 # include <unistd.h>
20966 #endif
20967 int main ()
20968 {
20969 int result = 0;
20970 #if HAVE_LSTAT
20971 if (open ("conftest.lnk/", O_RDONLY) != -1)
20972 result |= 1;
20973 #endif
20974 if (open ("conftest.sl/", O_CREAT, 0600) >= 0)
20975 result |= 2;
20976 return result;
20977 }
20978 _ACEOF
20979 if ac_fn_c_try_run "$LINENO"; then :
20980 gl_cv_func_open_slash=yes
20981 else
20982 gl_cv_func_open_slash=no
20983 fi
20984 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20985 conftest.$ac_objext conftest.beam conftest.$ac_ext
20986 fi
20987
20988 rm -f conftest.sl conftest.tmp conftest.lnk
20989
20990 fi
20991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_open_slash" >&5
20992 $as_echo "$gl_cv_func_open_slash" >&6; }
20993 case "$gl_cv_func_open_slash" in
20994 *no)
20995
20996 $as_echo "#define OPEN_TRAILING_SLASH_BUG 1" >>confdefs.h
20997
20998 REPLACE_OPEN=1
20999 ;;
21000 esac
21001 ;;
21002 esac
21003
21004 if test $REPLACE_OPEN = 0; then
21005
21006
21007
21008 :
21009
21010
21011
21012
21013
21014 if test $ac_cv_func_fchdir = no; then
21015 HAVE_FCHDIR=0
21016 fi
21017
21018 if test $HAVE_FCHDIR = 0; then
21019 REPLACE_OPEN=1
21020 fi
21021 fi
21022
21023
21024
21025 if test $REPLACE_OPEN = 1; then
21026
21027
21028
21029
21030
21031
21032
21033
21034 gl_LIBOBJS="$gl_LIBOBJS open.$ac_objext"
21035
21036
21037
21038 :
21039
21040 fi
21041
21042
21043
21044
21045
21046 GNULIB_OPEN=1
21047
21048
21049
21050
21051
21052 $as_echo "#define GNULIB_TEST_OPEN 1" >>confdefs.h
21053
21054
21055
21056
21057
21058
21059
21060 :
21061
21062
21063
21064
21065
21066
21067 case $ac_cv_func_openat+$gl_cv_func_lstat_dereferences_slashed_symlink in
21068 yes+*yes)
21069 ;;
21070 yes+*)
21071 # Solaris 9 has *at functions, but uniformly mishandles trailing
21072 # slash in all of them.
21073 REPLACE_OPENAT=1
21074 ;;
21075 *)
21076 HAVE_OPENAT=0
21077 ;;
21078 esac
21079
21080 if test $HAVE_OPENAT = 0 || test $REPLACE_OPENAT = 1; then
21081
21082
21083
21084
21085
21086
21087
21088
21089 gl_LIBOBJS="$gl_LIBOBJS openat.$ac_objext"
21090
21091
21092
21093 :
21094
21095 fi
21096
21097
21098 cat >>confdefs.h <<_ACEOF
21099 #define GNULIB_OPENAT 1
21100 _ACEOF
21101
21102
21103
21104
21105
21106
21107 GNULIB_OPENAT=1
21108
21109
21110
21111
21112
21113 $as_echo "#define GNULIB_TEST_OPENAT 1" >>confdefs.h
21114
21115
21116
21117
21118
21119
21120 for ac_func in opendir
21121 do :
21122 ac_fn_c_check_func "$LINENO" "opendir" "ac_cv_func_opendir"
21123 if test "x$ac_cv_func_opendir" = xyes; then :
21124 cat >>confdefs.h <<_ACEOF
21125 #define HAVE_OPENDIR 1
21126 _ACEOF
21127
21128 fi
21129 done
21130
21131 if test $ac_cv_func_opendir = no; then
21132 HAVE_OPENDIR=0
21133 fi
21134
21135
21136
21137
21138 :
21139
21140
21141
21142
21143
21144 if test $ac_cv_func_fchdir = no; then
21145 HAVE_FCHDIR=0
21146 fi
21147
21148 if test $HAVE_FCHDIR = 0; then
21149 if test $HAVE_OPENDIR = 1; then
21150 REPLACE_OPENDIR=1
21151 fi
21152 fi
21153
21154 case $host_os,$HAVE_OPENDIR in
21155 os2*,1)
21156 REPLACE_OPENDIR=1;;
21157 esac
21158
21159 if test $HAVE_OPENDIR = 0 || test $REPLACE_OPENDIR = 1; then
21160
21161
21162
21163
21164
21165
21166
21167
21168 gl_LIBOBJS="$gl_LIBOBJS opendir.$ac_objext"
21169
21170 fi
21171
21172
21173
21174
21175
21176 GNULIB_OPENDIR=1
21177
21178
21179
21180
21181
21182 $as_echo "#define GNULIB_TEST_OPENDIR 1" >>confdefs.h
21183
21184
21185
21186
21187
21188 :
21189
21190
21191
21192
21193
21194
21195
21196
21197
21198
21199 for ac_func in rawmemchr
21200 do :
21201 ac_fn_c_check_func "$LINENO" "rawmemchr" "ac_cv_func_rawmemchr"
21202 if test "x$ac_cv_func_rawmemchr" = xyes; then :
21203 cat >>confdefs.h <<_ACEOF
21204 #define HAVE_RAWMEMCHR 1
21205 _ACEOF
21206
21207 fi
21208 done
21209
21210 if test $ac_cv_func_rawmemchr = no; then
21211 HAVE_RAWMEMCHR=0
21212 fi
21213
21214 if test $HAVE_RAWMEMCHR = 0; then
21215
21216
21217
21218
21219
21220
21221
21222
21223 gl_LIBOBJS="$gl_LIBOBJS rawmemchr.$ac_objext"
21224
21225 :
21226 fi
21227
21228
21229
21230
21231
21232 GNULIB_RAWMEMCHR=1
21233
21234
21235
21236
21237
21238 $as_echo "#define GNULIB_TEST_RAWMEMCHR 1" >>confdefs.h
21239
21240
21241
21242
21243
21244
21245 for ac_func in readdir
21246 do :
21247 ac_fn_c_check_func "$LINENO" "readdir" "ac_cv_func_readdir"
21248 if test "x$ac_cv_func_readdir" = xyes; then :
21249 cat >>confdefs.h <<_ACEOF
21250 #define HAVE_READDIR 1
21251 _ACEOF
21252
21253 fi
21254 done
21255
21256 if test $ac_cv_func_readdir = no; then
21257 HAVE_READDIR=0
21258 fi
21259
21260 if test $HAVE_READDIR = 0; then
21261
21262
21263
21264
21265
21266
21267
21268
21269 gl_LIBOBJS="$gl_LIBOBJS readdir.$ac_objext"
21270
21271 fi
21272
21273
21274
21275
21276
21277 GNULIB_READDIR=1
21278
21279
21280
21281
21282
21283 $as_echo "#define GNULIB_TEST_READDIR 1" >>confdefs.h
21284
21285
21286
21287
21288
21289
21290 :
21291
21292
21293
21294
21295
21296 if test $ac_cv_func_readlink = no; then
21297 HAVE_READLINK=0
21298 else
21299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
21300 $as_echo_n "checking whether readlink signature is correct... " >&6; }
21301 if ${gl_cv_decl_readlink_works+:} false; then :
21302 $as_echo_n "(cached) " >&6
21303 else
21304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21305 /* end confdefs.h. */
21306 #include <unistd.h>
21307 /* Cause compilation failure if original declaration has wrong type. */
21308 ssize_t readlink (const char *, char *, size_t);
21309 int
21310 main ()
21311 {
21312
21313 ;
21314 return 0;
21315 }
21316 _ACEOF
21317 if ac_fn_c_try_compile "$LINENO"; then :
21318 gl_cv_decl_readlink_works=yes
21319 else
21320 gl_cv_decl_readlink_works=no
21321 fi
21322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21323 fi
21324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
21325 $as_echo "$gl_cv_decl_readlink_works" >&6; }
21326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
21327 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
21328 if ${gl_cv_func_readlink_works+:} false; then :
21329 $as_echo_n "(cached) " >&6
21330 else
21331 # We have readlink, so assume ln -s works.
21332 ln -s conftest.no-such conftest.link
21333 ln -s conftest.link conftest.lnk2
21334 if test "$cross_compiling" = yes; then :
21335 case "$host_os" in
21336 # Guess yes on glibc systems.
21337 *-gnu*) gl_cv_func_readlink_works="guessing yes" ;;
21338 # If we don't know, assume the worst.
21339 *) gl_cv_func_readlink_works="guessing no" ;;
21340 esac
21341
21342 else
21343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21344 /* end confdefs.h. */
21345 #include <unistd.h>
21346
21347 int
21348 main ()
21349 {
21350 char buf[20];
21351 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
21352 ;
21353 return 0;
21354 }
21355 _ACEOF
21356 if ac_fn_c_try_run "$LINENO"; then :
21357 gl_cv_func_readlink_works=yes
21358 else
21359 gl_cv_func_readlink_works=no
21360 fi
21361 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21362 conftest.$ac_objext conftest.beam conftest.$ac_ext
21363 fi
21364
21365 rm -f conftest.link conftest.lnk2
21366 fi
21367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
21368 $as_echo "$gl_cv_func_readlink_works" >&6; }
21369 case "$gl_cv_func_readlink_works" in
21370 *yes)
21371 if test "$gl_cv_decl_readlink_works" != yes; then
21372 REPLACE_READLINK=1
21373 fi
21374 ;;
21375 *)
21376
21377 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
21378
21379 REPLACE_READLINK=1
21380 ;;
21381 esac
21382 fi
21383
21384 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
21385
21386
21387
21388
21389
21390
21391
21392
21393 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
21394
21395
21396 :
21397
21398 fi
21399
21400
21401
21402
21403
21404 GNULIB_READLINK=1
21405
21406
21407
21408
21409
21410 $as_echo "#define GNULIB_TEST_READLINK 1" >>confdefs.h
21411
21412
21413
21414
21415
21416
21417 if test $gl_cv_func_malloc_posix = yes; then
21418
21419 $as_echo "#define HAVE_REALLOC_POSIX 1" >>confdefs.h
21420
21421 else
21422 REPLACE_REALLOC=1
21423 fi
21424
21425 if test $REPLACE_REALLOC = 1; then
21426
21427
21428
21429
21430
21431
21432
21433
21434 gl_LIBOBJS="$gl_LIBOBJS realloc.$ac_objext"
21435
21436 fi
21437
21438
21439
21440
21441
21442 GNULIB_REALLOC_POSIX=1
21443
21444
21445
21446
21447
21448 $as_echo "#define GNULIB_TEST_REALLOC_POSIX 1" >>confdefs.h
21449
21450
21451
21452
21453
21454
21455
21456 :
21457
21458
21459
21460
21461
21462
21463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename honors trailing slash on destination" >&5
21464 $as_echo_n "checking whether rename honors trailing slash on destination... " >&6; }
21465 if ${gl_cv_func_rename_slash_dst_works+:} false; then :
21466 $as_echo_n "(cached) " >&6
21467 else
21468 rm -rf conftest.f conftest.f1 conftest.f2 conftest.d1 conftest.d2 conftest.lnk
21469 touch conftest.f && touch conftest.f1 && mkdir conftest.d1 ||
21470 as_fn_error $? "cannot create temporary files" "$LINENO" 5
21471 # Assume that if we have lstat, we can also check symlinks.
21472 if test $ac_cv_func_lstat = yes; then
21473 ln -s conftest.f conftest.lnk
21474 fi
21475 if test "$cross_compiling" = yes; then :
21476 case "$host_os" in
21477 # Guess yes on glibc systems.
21478 *-gnu*) gl_cv_func_rename_slash_dst_works="guessing yes" ;;
21479 # If we don't know, assume the worst.
21480 *) gl_cv_func_rename_slash_dst_works="guessing no" ;;
21481 esac
21482
21483 else
21484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21485 /* end confdefs.h. */
21486
21487 # include <stdio.h>
21488 # include <stdlib.h>
21489
21490 int
21491 main ()
21492 {
21493 int result = 0;
21494 if (rename ("conftest.f1", "conftest.f2/") == 0)
21495 result |= 1;
21496 if (rename ("conftest.d1", "conftest.d2/") != 0)
21497 result |= 2;
21498 #if HAVE_LSTAT
21499 if (rename ("conftest.f", "conftest.lnk/") == 0)
21500 result |= 4;
21501 #endif
21502 return result;
21503
21504 ;
21505 return 0;
21506 }
21507 _ACEOF
21508 if ac_fn_c_try_run "$LINENO"; then :
21509 gl_cv_func_rename_slash_dst_works=yes
21510 else
21511 gl_cv_func_rename_slash_dst_works=no
21512 fi
21513 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21514 conftest.$ac_objext conftest.beam conftest.$ac_ext
21515 fi
21516
21517 rm -rf conftest.f conftest.f1 conftest.f2 conftest.d1 conftest.d2 conftest.lnk
21518
21519 fi
21520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_slash_dst_works" >&5
21521 $as_echo "$gl_cv_func_rename_slash_dst_works" >&6; }
21522 case "$gl_cv_func_rename_slash_dst_works" in
21523 *yes) ;;
21524 *)
21525 REPLACE_RENAME=1
21526
21527 $as_echo "#define RENAME_TRAILING_SLASH_DEST_BUG 1" >>confdefs.h
21528
21529 ;;
21530 esac
21531
21532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename honors trailing slash on source" >&5
21533 $as_echo_n "checking whether rename honors trailing slash on source... " >&6; }
21534 if ${gl_cv_func_rename_slash_src_works+:} false; then :
21535 $as_echo_n "(cached) " >&6
21536 else
21537 rm -rf conftest.f conftest.f1 conftest.d1 conftest.d2 conftest.d3 conftest.lnk
21538 touch conftest.f && touch conftest.f1 && mkdir conftest.d1 ||
21539 as_fn_error $? "cannot create temporary files" "$LINENO" 5
21540 # Assume that if we have lstat, we can also check symlinks.
21541 if test $ac_cv_func_lstat = yes; then
21542 ln -s conftest.f conftest.lnk
21543 fi
21544 if test "$cross_compiling" = yes; then :
21545 case "$host_os" in
21546 # Guess yes on glibc systems.
21547 *-gnu*) gl_cv_func_rename_slash_src_works="guessing yes" ;;
21548 # If we don't know, assume the worst.
21549 *) gl_cv_func_rename_slash_src_works="guessing no" ;;
21550 esac
21551
21552 else
21553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21554 /* end confdefs.h. */
21555
21556 # include <stdio.h>
21557 # include <stdlib.h>
21558
21559 int
21560 main ()
21561 {
21562 int result = 0;
21563 if (rename ("conftest.f1/", "conftest.d3") == 0)
21564 result |= 1;
21565 if (rename ("conftest.d1/", "conftest.d2") != 0)
21566 result |= 2;
21567 #if HAVE_LSTAT
21568 if (rename ("conftest.lnk/", "conftest.f") == 0)
21569 result |= 4;
21570 #endif
21571 return result;
21572
21573 ;
21574 return 0;
21575 }
21576 _ACEOF
21577 if ac_fn_c_try_run "$LINENO"; then :
21578 gl_cv_func_rename_slash_src_works=yes
21579 else
21580 gl_cv_func_rename_slash_src_works=no
21581 fi
21582 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21583 conftest.$ac_objext conftest.beam conftest.$ac_ext
21584 fi
21585
21586 rm -rf conftest.f conftest.f1 conftest.d1 conftest.d2 conftest.d3 conftest.lnk
21587
21588 fi
21589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_slash_src_works" >&5
21590 $as_echo "$gl_cv_func_rename_slash_src_works" >&6; }
21591 case "$gl_cv_func_rename_slash_src_works" in
21592 *yes) ;;
21593 *)
21594 REPLACE_RENAME=1
21595
21596 $as_echo "#define RENAME_TRAILING_SLASH_SOURCE_BUG 1" >>confdefs.h
21597
21598 ;;
21599 esac
21600
21601
21602 :
21603
21604
21605
21606
21607
21608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename manages hard links correctly" >&5
21609 $as_echo_n "checking whether rename manages hard links correctly... " >&6; }
21610 if ${gl_cv_func_rename_link_works+:} false; then :
21611 $as_echo_n "(cached) " >&6
21612 else
21613 if test $ac_cv_func_link = yes; then
21614 rm -rf conftest.f conftest.f1
21615 if touch conftest.f && ln conftest.f conftest.f1 &&
21616 set x `ls -i conftest.f conftest.f1` && test "" = ""; then
21617 if test "$cross_compiling" = yes; then :
21618 case "$host_os" in
21619 # Guess yes on glibc systems.
21620 *-gnu*) gl_cv_func_rename_link_works="guessing yes" ;;
21621 # If we don't know, assume the worst.
21622 *) gl_cv_func_rename_link_works="guessing no" ;;
21623 esac
21624
21625 else
21626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21627 /* end confdefs.h. */
21628
21629 # include <stdio.h>
21630 # include <stdlib.h>
21631 # include <unistd.h>
21632
21633 int
21634 main ()
21635 {
21636 int result = 0;
21637 if (rename ("conftest.f", "conftest.f1"))
21638 result |= 1;
21639 if (unlink ("conftest.f1"))
21640 result |= 2;
21641 if (rename ("conftest.f", "conftest.f"))
21642 result |= 4;
21643 if (rename ("conftest.f1", "conftest.f1") == 0)
21644 result |= 8;
21645 return result;
21646
21647 ;
21648 return 0;
21649 }
21650 _ACEOF
21651 if ac_fn_c_try_run "$LINENO"; then :
21652 gl_cv_func_rename_link_works=yes
21653 else
21654 gl_cv_func_rename_link_works=no
21655 fi
21656 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21657 conftest.$ac_objext conftest.beam conftest.$ac_ext
21658 fi
21659
21660 else
21661 gl_cv_func_rename_link_works="guessing no"
21662 fi
21663 rm -rf conftest.f conftest.f1
21664 else
21665 gl_cv_func_rename_link_works=yes
21666 fi
21667
21668 fi
21669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_link_works" >&5
21670 $as_echo "$gl_cv_func_rename_link_works" >&6; }
21671 case "$gl_cv_func_rename_link_works" in
21672 *yes) ;;
21673 *)
21674 REPLACE_RENAME=1
21675
21676 $as_echo "#define RENAME_HARD_LINK_BUG 1" >>confdefs.h
21677
21678 ;;
21679 esac
21680
21681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename manages existing destinations correctly" >&5
21682 $as_echo_n "checking whether rename manages existing destinations correctly... " >&6; }
21683 if ${gl_cv_func_rename_dest_works+:} false; then :
21684 $as_echo_n "(cached) " >&6
21685 else
21686 rm -rf conftest.f conftest.d1 conftest.d2
21687 touch conftest.f && mkdir conftest.d1 conftest.d2 ||
21688 as_fn_error $? "cannot create temporary files" "$LINENO" 5
21689 if test "$cross_compiling" = yes; then :
21690 case "$host_os" in
21691 # Guess yes on glibc systems.
21692 *-gnu*) gl_cv_func_rename_dest_works="guessing yes" ;;
21693 # If we don't know, assume the worst.
21694 *) gl_cv_func_rename_dest_works="guessing no" ;;
21695 esac
21696
21697 else
21698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21699 /* end confdefs.h. */
21700
21701 # include <stdio.h>
21702 # include <stdlib.h>
21703
21704 int
21705 main ()
21706 {
21707 int result = 0;
21708 if (rename ("conftest.d1", "conftest.d2") != 0)
21709 result |= 1;
21710 if (rename ("conftest.d2", "conftest.f") == 0)
21711 result |= 2;
21712 return result;
21713
21714 ;
21715 return 0;
21716 }
21717 _ACEOF
21718 if ac_fn_c_try_run "$LINENO"; then :
21719 gl_cv_func_rename_dest_works=yes
21720 else
21721 gl_cv_func_rename_dest_works=no
21722 fi
21723 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21724 conftest.$ac_objext conftest.beam conftest.$ac_ext
21725 fi
21726
21727 rm -rf conftest.f conftest.d1 conftest.d2
21728
21729 fi
21730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_dest_works" >&5
21731 $as_echo "$gl_cv_func_rename_dest_works" >&6; }
21732 case "$gl_cv_func_rename_dest_works" in
21733 *yes) ;;
21734 *)
21735 REPLACE_RENAME=1
21736
21737 $as_echo "#define RENAME_DEST_EXISTS_BUG 1" >>confdefs.h
21738
21739 ;;
21740 esac
21741
21742 if test $REPLACE_RENAME = 1; then
21743
21744
21745
21746
21747
21748
21749
21750
21751 gl_LIBOBJS="$gl_LIBOBJS rename.$ac_objext"
21752
21753 fi
21754
21755
21756
21757
21758
21759 GNULIB_RENAME=1
21760
21761
21762
21763
21764
21765 $as_echo "#define GNULIB_TEST_RENAME 1" >>confdefs.h
21766
21767
21768
21769
21770
21771
21772 for ac_func in rewinddir
21773 do :
21774 ac_fn_c_check_func "$LINENO" "rewinddir" "ac_cv_func_rewinddir"
21775 if test "x$ac_cv_func_rewinddir" = xyes; then :
21776 cat >>confdefs.h <<_ACEOF
21777 #define HAVE_REWINDDIR 1
21778 _ACEOF
21779
21780 fi
21781 done
21782
21783 if test $ac_cv_func_rewinddir = no; then
21784 HAVE_REWINDDIR=0
21785 fi
21786
21787 if test $HAVE_REWINDDIR = 0; then
21788
21789
21790
21791
21792
21793
21794
21795
21796 gl_LIBOBJS="$gl_LIBOBJS rewinddir.$ac_objext"
21797
21798 fi
21799
21800
21801
21802
21803
21804 GNULIB_REWINDDIR=1
21805
21806
21807
21808
21809
21810 $as_echo "#define GNULIB_TEST_REWINDDIR 1" >>confdefs.h
21811
21812
21813
21814
21815
21816
21817 :
21818
21819
21820
21821
21822
21823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rmdir works" >&5
21824 $as_echo_n "checking whether rmdir works... " >&6; }
21825 if ${gl_cv_func_rmdir_works+:} false; then :
21826 $as_echo_n "(cached) " >&6
21827 else
21828 mkdir conftest.dir
21829 touch conftest.file
21830 if test "$cross_compiling" = yes; then :
21831 case "$host_os" in
21832 # Guess yes on glibc systems.
21833 *-gnu*) gl_cv_func_rmdir_works="guessing yes" ;;
21834 # If we don't know, assume the worst.
21835 *) gl_cv_func_rmdir_works="guessing no" ;;
21836 esac
21837
21838 else
21839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21840 /* end confdefs.h. */
21841 #include <stdio.h>
21842 #include <errno.h>
21843 #if HAVE_UNISTD_H
21844 # include <unistd.h>
21845 #else /* on Windows with MSVC */
21846 # include <direct.h>
21847 #endif
21848
21849 int
21850 main ()
21851 {
21852 int result = 0;
21853 if (!rmdir ("conftest.file/"))
21854 result |= 1;
21855 else if (errno != ENOTDIR)
21856 result |= 2;
21857 if (!rmdir ("conftest.dir/./"))
21858 result |= 4;
21859 return result;
21860
21861 ;
21862 return 0;
21863 }
21864 _ACEOF
21865 if ac_fn_c_try_run "$LINENO"; then :
21866 gl_cv_func_rmdir_works=yes
21867 else
21868 gl_cv_func_rmdir_works=no
21869 fi
21870 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21871 conftest.$ac_objext conftest.beam conftest.$ac_ext
21872 fi
21873
21874 rm -rf conftest.dir conftest.file
21875 fi
21876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rmdir_works" >&5
21877 $as_echo "$gl_cv_func_rmdir_works" >&6; }
21878 case "$gl_cv_func_rmdir_works" in
21879 *yes) ;;
21880 *)
21881 REPLACE_RMDIR=1
21882 ;;
21883 esac
21884
21885 if test $REPLACE_RMDIR = 1; then
21886
21887
21888
21889
21890
21891
21892
21893
21894 gl_LIBOBJS="$gl_LIBOBJS rmdir.$ac_objext"
21895
21896 fi
21897
21898
21899
21900
21901
21902 GNULIB_RMDIR=1
21903
21904
21905
21906
21907
21908 $as_echo "#define GNULIB_TEST_RMDIR 1" >>confdefs.h
21909
21910
21911
21912
21913
21914 :
21915
21916
21917
21918
21919
21920
21921
21922
21923
21924
21925
21926 :
21927
21928
21929
21930
21931
21932 if test $ac_cv_func_secure_getenv = no; then
21933 HAVE_SECURE_GETENV=0
21934 fi
21935
21936 if test $HAVE_SECURE_GETENV = 0; then
21937
21938
21939
21940
21941
21942
21943
21944
21945 gl_LIBOBJS="$gl_LIBOBJS secure_getenv.$ac_objext"
21946
21947
21948 for ac_func in __secure_getenv
21949 do :
21950 ac_fn_c_check_func "$LINENO" "__secure_getenv" "ac_cv_func___secure_getenv"
21951 if test "x$ac_cv_func___secure_getenv" = xyes; then :
21952 cat >>confdefs.h <<_ACEOF
21953 #define HAVE___SECURE_GETENV 1
21954 _ACEOF
21955
21956 fi
21957 done
21958
21959 if test $ac_cv_func___secure_getenv = no; then
21960 for ac_func in issetugid
21961 do :
21962 ac_fn_c_check_func "$LINENO" "issetugid" "ac_cv_func_issetugid"
21963 if test "x$ac_cv_func_issetugid" = xyes; then :
21964 cat >>confdefs.h <<_ACEOF
21965 #define HAVE_ISSETUGID 1
21966 _ACEOF
21967
21968 fi
21969 done
21970
21971 fi
21972
21973 :
21974
21975
21976
21977
21978
21979
21980
21981
21982
21983
21984
21985
21986
21987
21988
21989 fi
21990
21991
21992
21993
21994
21995 GNULIB_SECURE_GETENV=1
21996
21997
21998
21999
22000
22001 $as_echo "#define GNULIB_TEST_SECURE_GETENV 1" >>confdefs.h
22002
22003
22004
22005
22006
22007 if test $ac_cv_func_setenv = no; then
22008 HAVE_SETENV=0
22009 else
22010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setenv validates arguments" >&5
22011 $as_echo_n "checking whether setenv validates arguments... " >&6; }
22012 if ${gl_cv_func_setenv_works+:} false; then :
22013 $as_echo_n "(cached) " >&6
22014 else
22015 if test "$cross_compiling" = yes; then :
22016 case "$host_os" in
22017 # Guess yes on glibc systems.
22018 *-gnu*) gl_cv_func_setenv_works="guessing yes" ;;
22019 # If we don't know, assume the worst.
22020 *) gl_cv_func_setenv_works="guessing no" ;;
22021 esac
22022
22023 else
22024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22025 /* end confdefs.h. */
22026
22027 #include <stdlib.h>
22028 #include <errno.h>
22029 #include <string.h>
22030
22031 int
22032 main ()
22033 {
22034
22035 int result = 0;
22036 {
22037 if (setenv ("", "", 0) != -1)
22038 result |= 1;
22039 else if (errno != EINVAL)
22040 result |= 2;
22041 }
22042 {
22043 if (setenv ("a", "=", 1) != 0)
22044 result |= 4;
22045 else if (strcmp (getenv ("a"), "=") != 0)
22046 result |= 8;
22047 }
22048 return result;
22049
22050 ;
22051 return 0;
22052 }
22053 _ACEOF
22054 if ac_fn_c_try_run "$LINENO"; then :
22055 gl_cv_func_setenv_works=yes
22056 else
22057 gl_cv_func_setenv_works=no
22058 fi
22059 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22060 conftest.$ac_objext conftest.beam conftest.$ac_ext
22061 fi
22062
22063 fi
22064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setenv_works" >&5
22065 $as_echo "$gl_cv_func_setenv_works" >&6; }
22066 case "$gl_cv_func_setenv_works" in
22067 *yes) ;;
22068 *)
22069 REPLACE_SETENV=1
22070 ;;
22071 esac
22072 fi
22073
22074 if test $HAVE_SETENV = 0 || test $REPLACE_SETENV = 1; then
22075
22076
22077
22078
22079
22080
22081
22082
22083 gl_LIBOBJS="$gl_LIBOBJS setenv.$ac_objext"
22084
22085 fi
22086
22087
22088
22089
22090
22091 GNULIB_SETENV=1
22092
22093
22094
22095
22096
22097 $as_echo "#define GNULIB_TEST_SETENV 1" >>confdefs.h
22098
22099
22100
22101
22102
22103
22104
22105
22106
22107
22108
22109
22110
22111
22112 if test $gl_cv_have_include_next = yes; then
22113 gl_cv_next_signal_h='<'signal.h'>'
22114 else
22115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
22116 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
22117 if ${gl_cv_next_signal_h+:} false; then :
22118 $as_echo_n "(cached) " >&6
22119 else
22120
22121
22122
22123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22124 /* end confdefs.h. */
22125 #include <signal.h>
22126 _ACEOF
22127 case "$host_os" in
22128 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22129 *) gl_absname_cpp="$ac_cpp" ;;
22130 esac
22131
22132 case "$host_os" in
22133 mingw*)
22134 gl_dirsep_regex='[/\\]'
22135 ;;
22136 *)
22137 gl_dirsep_regex='\/'
22138 ;;
22139 esac
22140 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22141 gl_header_literal_regex=`echo 'signal.h' \
22142 | sed -e "$gl_make_literal_regex_sed"`
22143 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22144 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22145 s|^/[^/]|//&|
22146 p
22147 q
22148 }'
22149
22150 gl_cv_absolute_signal_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22151 sed -n "$gl_absolute_header_sed"`
22152
22153 gl_header=$gl_cv_absolute_signal_h
22154 gl_cv_next_signal_h='"'$gl_header'"'
22155
22156
22157 fi
22158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
22159 $as_echo "$gl_cv_next_signal_h" >&6; }
22160 fi
22161 NEXT_SIGNAL_H=$gl_cv_next_signal_h
22162
22163 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22164 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22165 gl_next_as_first_directive='<'signal.h'>'
22166 else
22167 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22168 gl_next_as_first_directive=$gl_cv_next_signal_h
22169 fi
22170 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
22171
22172
22173
22174
22175
22176 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
22177 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
22178 ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
22179 #include <signal.h>
22180
22181 "
22182 if test "x$ac_cv_type_volatile_sig_atomic_t" = xyes; then :
22183
22184 else
22185 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
22186 fi
22187
22188
22189
22190
22191
22192
22193
22194 ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
22195 #include <signal.h>
22196
22197 "
22198 if test "x$ac_cv_type_sighandler_t" = xyes; then :
22199
22200 else
22201 HAVE_SIGHANDLER_T=0
22202 fi
22203
22204
22205
22206 for gl_func in pthread_sigmask sigaction sigaddset sigdelset sigemptyset sigfillset sigismember sigpending sigprocmask; do
22207 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
22208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
22209 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
22210 if eval \${$as_gl_Symbol+:} false; then :
22211 $as_echo_n "(cached) " >&6
22212 else
22213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22214 /* end confdefs.h. */
22215 #include <signal.h>
22216
22217 int
22218 main ()
22219 {
22220 #undef $gl_func
22221 (void) $gl_func;
22222 ;
22223 return 0;
22224 }
22225 _ACEOF
22226 if ac_fn_c_try_compile "$LINENO"; then :
22227 eval "$as_gl_Symbol=yes"
22228 else
22229 eval "$as_gl_Symbol=no"
22230 fi
22231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22232 fi
22233 eval ac_res=\$$as_gl_Symbol
22234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22235 $as_echo "$ac_res" >&6; }
22236 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
22237 cat >>confdefs.h <<_ACEOF
22238 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
22239 _ACEOF
22240
22241 eval ac_cv_have_decl_$gl_func=yes
22242 fi
22243 done
22244
22245
22246
22247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
22248 $as_echo_n "checking for ssize_t... " >&6; }
22249 if ${gt_cv_ssize_t+:} false; then :
22250 $as_echo_n "(cached) " >&6
22251 else
22252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22253 /* end confdefs.h. */
22254 #include <sys/types.h>
22255 int
22256 main ()
22257 {
22258 int x = sizeof (ssize_t *) + sizeof (ssize_t);
22259 return !x;
22260 ;
22261 return 0;
22262 }
22263 _ACEOF
22264 if ac_fn_c_try_compile "$LINENO"; then :
22265 gt_cv_ssize_t=yes
22266 else
22267 gt_cv_ssize_t=no
22268 fi
22269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22270 fi
22271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
22272 $as_echo "$gt_cv_ssize_t" >&6; }
22273 if test $gt_cv_ssize_t = no; then
22274
22275 $as_echo "#define ssize_t int" >>confdefs.h
22276
22277 fi
22278
22279
22280
22281
22282 :
22283
22284
22285
22286
22287
22288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
22289 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
22290 if ${gl_cv_func_stat_dir_slash+:} false; then :
22291 $as_echo_n "(cached) " >&6
22292 else
22293 if test "$cross_compiling" = yes; then :
22294 case $host_os in
22295 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
22296 *) gl_cv_func_stat_dir_slash="guessing yes";;
22297 esac
22298 else
22299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22300 /* end confdefs.h. */
22301 #include <sys/stat.h>
22302
22303 int
22304 main ()
22305 {
22306 struct stat st; return stat (".", &st) != stat ("./", &st);
22307 ;
22308 return 0;
22309 }
22310 _ACEOF
22311 if ac_fn_c_try_run "$LINENO"; then :
22312 gl_cv_func_stat_dir_slash=yes
22313 else
22314 gl_cv_func_stat_dir_slash=no
22315 fi
22316 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22317 conftest.$ac_objext conftest.beam conftest.$ac_ext
22318 fi
22319
22320 fi
22321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
22322 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
22323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
22324 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
22325 if ${gl_cv_func_stat_file_slash+:} false; then :
22326 $as_echo_n "(cached) " >&6
22327 else
22328 touch conftest.tmp
22329 # Assume that if we have lstat, we can also check symlinks.
22330 if test $ac_cv_func_lstat = yes; then
22331 ln -s conftest.tmp conftest.lnk
22332 fi
22333 if test "$cross_compiling" = yes; then :
22334 case "$host_os" in
22335 # Guess yes on glibc systems.
22336 *-gnu*) gl_cv_func_stat_file_slash="guessing yes" ;;
22337 # If we don't know, assume the worst.
22338 *) gl_cv_func_stat_file_slash="guessing no" ;;
22339 esac
22340
22341 else
22342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22343 /* end confdefs.h. */
22344 #include <sys/stat.h>
22345
22346 int
22347 main ()
22348 {
22349 int result = 0;
22350 struct stat st;
22351 if (!stat ("conftest.tmp/", &st))
22352 result |= 1;
22353 #if HAVE_LSTAT
22354 if (!stat ("conftest.lnk/", &st))
22355 result |= 2;
22356 #endif
22357 return result;
22358
22359 ;
22360 return 0;
22361 }
22362 _ACEOF
22363 if ac_fn_c_try_run "$LINENO"; then :
22364 gl_cv_func_stat_file_slash=yes
22365 else
22366 gl_cv_func_stat_file_slash=no
22367 fi
22368 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22369 conftest.$ac_objext conftest.beam conftest.$ac_ext
22370 fi
22371
22372 rm -f conftest.tmp conftest.lnk
22373 fi
22374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
22375 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
22376 case $gl_cv_func_stat_dir_slash in
22377 *no) REPLACE_STAT=1
22378
22379 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
22380 ;;
22381 esac
22382 case $gl_cv_func_stat_file_slash in
22383 *no) REPLACE_STAT=1
22384
22385 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
22386 ;;
22387 esac
22388
22389 if test $REPLACE_STAT = 1; then
22390
22391
22392
22393
22394
22395
22396
22397
22398 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
22399
22400 :
22401 fi
22402
22403
22404
22405
22406
22407 GNULIB_STAT=1
22408
22409
22410
22411
22412
22413 $as_echo "#define GNULIB_TEST_STAT 1" >>confdefs.h
22414
22415
22416
22417
22418
22419
22420 # Define two additional variables used in the Makefile substitution.
22421
22422 if test "$ac_cv_header_stdbool_h" = yes; then
22423 STDBOOL_H=''
22424 else
22425 STDBOOL_H='stdbool.h'
22426 fi
22427
22428 if test -n "$STDBOOL_H"; then
22429 GL_GENERATE_STDBOOL_H_TRUE=
22430 GL_GENERATE_STDBOOL_H_FALSE='#'
22431 else
22432 GL_GENERATE_STDBOOL_H_TRUE='#'
22433 GL_GENERATE_STDBOOL_H_FALSE=
22434 fi
22435
22436
22437 if test "$ac_cv_type__Bool" = yes; then
22438 HAVE__BOOL=1
22439 else
22440 HAVE__BOOL=0
22441 fi
22442
22443
22444
22445
22446
22447 STDDEF_H=
22448 ac_fn_c_check_type "$LINENO" "max_align_t" "ac_cv_type_max_align_t" "#include <stddef.h>
22449
22450 "
22451 if test "x$ac_cv_type_max_align_t" = xyes; then :
22452
22453 else
22454 HAVE_MAX_ALIGN_T=0; STDDEF_H=stddef.h
22455 fi
22456
22457 if test $gt_cv_c_wchar_t = no; then
22458 HAVE_WCHAR_T=0
22459 STDDEF_H=stddef.h
22460 fi
22461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
22462 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
22463 if ${gl_cv_decl_null_works+:} false; then :
22464 $as_echo_n "(cached) " >&6
22465 else
22466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22467 /* end confdefs.h. */
22468 #include <stddef.h>
22469 int test[2 * (sizeof NULL == sizeof (void *)) -1];
22470
22471 int
22472 main ()
22473 {
22474
22475 ;
22476 return 0;
22477 }
22478 _ACEOF
22479 if ac_fn_c_try_compile "$LINENO"; then :
22480 gl_cv_decl_null_works=yes
22481 else
22482 gl_cv_decl_null_works=no
22483 fi
22484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22485 fi
22486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
22487 $as_echo "$gl_cv_decl_null_works" >&6; }
22488 if test $gl_cv_decl_null_works = no; then
22489 REPLACE_NULL=1
22490 STDDEF_H=stddef.h
22491 fi
22492
22493 if test -n "$STDDEF_H"; then
22494 GL_GENERATE_STDDEF_H_TRUE=
22495 GL_GENERATE_STDDEF_H_FALSE='#'
22496 else
22497 GL_GENERATE_STDDEF_H_TRUE='#'
22498 GL_GENERATE_STDDEF_H_FALSE=
22499 fi
22500
22501 if test -n "$STDDEF_H"; then
22502
22503
22504
22505
22506
22507
22508
22509
22510 if test $gl_cv_have_include_next = yes; then
22511 gl_cv_next_stddef_h='<'stddef.h'>'
22512 else
22513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
22514 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
22515 if ${gl_cv_next_stddef_h+:} false; then :
22516 $as_echo_n "(cached) " >&6
22517 else
22518
22519
22520
22521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22522 /* end confdefs.h. */
22523 #include <stddef.h>
22524 _ACEOF
22525 case "$host_os" in
22526 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22527 *) gl_absname_cpp="$ac_cpp" ;;
22528 esac
22529
22530 case "$host_os" in
22531 mingw*)
22532 gl_dirsep_regex='[/\\]'
22533 ;;
22534 *)
22535 gl_dirsep_regex='\/'
22536 ;;
22537 esac
22538 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22539 gl_header_literal_regex=`echo 'stddef.h' \
22540 | sed -e "$gl_make_literal_regex_sed"`
22541 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22542 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22543 s|^/[^/]|//&|
22544 p
22545 q
22546 }'
22547
22548 gl_cv_absolute_stddef_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22549 sed -n "$gl_absolute_header_sed"`
22550
22551 gl_header=$gl_cv_absolute_stddef_h
22552 gl_cv_next_stddef_h='"'$gl_header'"'
22553
22554
22555 fi
22556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
22557 $as_echo "$gl_cv_next_stddef_h" >&6; }
22558 fi
22559 NEXT_STDDEF_H=$gl_cv_next_stddef_h
22560
22561 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22562 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22563 gl_next_as_first_directive='<'stddef.h'>'
22564 else
22565 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22566 gl_next_as_first_directive=$gl_cv_next_stddef_h
22567 fi
22568 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
22569
22570
22571
22572
22573 fi
22574
22575
22576
22577
22578 $as_echo "#define __USE_MINGW_ANSI_STDIO 1" >>confdefs.h
22579
22580
22581
22582
22583
22584
22585
22586
22587
22588
22589 if test $gl_cv_have_include_next = yes; then
22590 gl_cv_next_stdio_h='<'stdio.h'>'
22591 else
22592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
22593 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
22594 if ${gl_cv_next_stdio_h+:} false; then :
22595 $as_echo_n "(cached) " >&6
22596 else
22597
22598
22599
22600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22601 /* end confdefs.h. */
22602 #include <stdio.h>
22603 _ACEOF
22604 case "$host_os" in
22605 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22606 *) gl_absname_cpp="$ac_cpp" ;;
22607 esac
22608
22609 case "$host_os" in
22610 mingw*)
22611 gl_dirsep_regex='[/\\]'
22612 ;;
22613 *)
22614 gl_dirsep_regex='\/'
22615 ;;
22616 esac
22617 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22618 gl_header_literal_regex=`echo 'stdio.h' \
22619 | sed -e "$gl_make_literal_regex_sed"`
22620 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22621 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22622 s|^/[^/]|//&|
22623 p
22624 q
22625 }'
22626
22627 gl_cv_absolute_stdio_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22628 sed -n "$gl_absolute_header_sed"`
22629
22630 gl_header=$gl_cv_absolute_stdio_h
22631 gl_cv_next_stdio_h='"'$gl_header'"'
22632
22633
22634 fi
22635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
22636 $as_echo "$gl_cv_next_stdio_h" >&6; }
22637 fi
22638 NEXT_STDIO_H=$gl_cv_next_stdio_h
22639
22640 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22641 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22642 gl_next_as_first_directive='<'stdio.h'>'
22643 else
22644 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22645 gl_next_as_first_directive=$gl_cv_next_stdio_h
22646 fi
22647 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
22648
22649
22650
22651
22652
22653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which flavor of printf attribute matches inttypes macros" >&5
22654 $as_echo_n "checking which flavor of printf attribute matches inttypes macros... " >&6; }
22655 if ${gl_cv_func_printf_attribute_flavor+:} false; then :
22656 $as_echo_n "(cached) " >&6
22657 else
22658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22659 /* end confdefs.h. */
22660
22661 #define __STDC_FORMAT_MACROS 1
22662 #include <stdio.h>
22663 #include <inttypes.h>
22664 /* For non-mingw systems, compilation will trivially succeed.
22665 For mingw, compilation will succeed for older mingw (system
22666 printf, "I64d") and fail for newer mingw (gnu printf, "lld"). */
22667 #if ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) && \
22668 (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4))
22669 extern char PRIdMAX_probe[sizeof PRIdMAX == sizeof "I64d" ? 1 : -1];
22670 #endif
22671
22672 int
22673 main ()
22674 {
22675
22676 ;
22677 return 0;
22678 }
22679 _ACEOF
22680 if ac_fn_c_try_compile "$LINENO"; then :
22681 gl_cv_func_printf_attribute_flavor=system
22682 else
22683 gl_cv_func_printf_attribute_flavor=gnu
22684 fi
22685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22686 fi
22687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_attribute_flavor" >&5
22688 $as_echo "$gl_cv_func_printf_attribute_flavor" >&6; }
22689 if test "$gl_cv_func_printf_attribute_flavor" = gnu; then
22690
22691 $as_echo "#define GNULIB_PRINTF_ATTRIBUTE_FLAVOR_GNU 1" >>confdefs.h
22692
22693 fi
22694
22695 GNULIB_FSCANF=1
22696
22697
22698 cat >>confdefs.h <<_ACEOF
22699 #define GNULIB_FSCANF 1
22700 _ACEOF
22701
22702
22703 GNULIB_SCANF=1
22704
22705
22706 cat >>confdefs.h <<_ACEOF
22707 #define GNULIB_SCANF 1
22708 _ACEOF
22709
22710
22711 GNULIB_FGETC=1
22712 GNULIB_GETC=1
22713 GNULIB_GETCHAR=1
22714 GNULIB_FGETS=1
22715 GNULIB_FREAD=1
22716
22717
22718 GNULIB_FPRINTF=1
22719 GNULIB_PRINTF=1
22720 GNULIB_VFPRINTF=1
22721 GNULIB_VPRINTF=1
22722 GNULIB_FPUTC=1
22723 GNULIB_PUTC=1
22724 GNULIB_PUTCHAR=1
22725 GNULIB_FPUTS=1
22726 GNULIB_PUTS=1
22727 GNULIB_FWRITE=1
22728
22729
22730
22731
22732 for gl_func in dprintf fpurge fseeko ftello getdelim getline gets pclose popen renameat snprintf tmpfile vdprintf vsnprintf; do
22733 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
22734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
22735 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
22736 if eval \${$as_gl_Symbol+:} false; then :
22737 $as_echo_n "(cached) " >&6
22738 else
22739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22740 /* end confdefs.h. */
22741 #include <stdio.h>
22742
22743 int
22744 main ()
22745 {
22746 #undef $gl_func
22747 (void) $gl_func;
22748 ;
22749 return 0;
22750 }
22751 _ACEOF
22752 if ac_fn_c_try_compile "$LINENO"; then :
22753 eval "$as_gl_Symbol=yes"
22754 else
22755 eval "$as_gl_Symbol=no"
22756 fi
22757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22758 fi
22759 eval ac_res=\$$as_gl_Symbol
22760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22761 $as_echo "$ac_res" >&6; }
22762 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
22763 cat >>confdefs.h <<_ACEOF
22764 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
22765 _ACEOF
22766
22767 eval ac_cv_have_decl_$gl_func=yes
22768 fi
22769 done
22770
22771
22772
22773
22774
22775
22776
22777
22778
22779
22780
22781
22782 if test $gl_cv_have_include_next = yes; then
22783 gl_cv_next_stdlib_h='<'stdlib.h'>'
22784 else
22785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
22786 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
22787 if ${gl_cv_next_stdlib_h+:} false; then :
22788 $as_echo_n "(cached) " >&6
22789 else
22790
22791
22792
22793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22794 /* end confdefs.h. */
22795 #include <stdlib.h>
22796 _ACEOF
22797 case "$host_os" in
22798 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22799 *) gl_absname_cpp="$ac_cpp" ;;
22800 esac
22801
22802 case "$host_os" in
22803 mingw*)
22804 gl_dirsep_regex='[/\\]'
22805 ;;
22806 *)
22807 gl_dirsep_regex='\/'
22808 ;;
22809 esac
22810 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22811 gl_header_literal_regex=`echo 'stdlib.h' \
22812 | sed -e "$gl_make_literal_regex_sed"`
22813 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22814 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22815 s|^/[^/]|//&|
22816 p
22817 q
22818 }'
22819
22820 gl_cv_absolute_stdlib_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22821 sed -n "$gl_absolute_header_sed"`
22822
22823 gl_header=$gl_cv_absolute_stdlib_h
22824 gl_cv_next_stdlib_h='"'$gl_header'"'
22825
22826
22827 fi
22828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
22829 $as_echo "$gl_cv_next_stdlib_h" >&6; }
22830 fi
22831 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
22832
22833 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22834 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22835 gl_next_as_first_directive='<'stdlib.h'>'
22836 else
22837 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22838 gl_next_as_first_directive=$gl_cv_next_stdlib_h
22839 fi
22840 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
22841
22842
22843
22844
22845
22846
22847 for gl_func in _Exit atoll canonicalize_file_name getloadavg getsubopt grantpt initstate initstate_r mkdtemp mkostemp mkostemps mkstemp mkstemps posix_openpt ptsname ptsname_r qsort_r random random_r realpath rpmatch secure_getenv setenv setstate setstate_r srandom srandom_r strtod strtoll strtoull unlockpt unsetenv; do
22848 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
22849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
22850 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
22851 if eval \${$as_gl_Symbol+:} false; then :
22852 $as_echo_n "(cached) " >&6
22853 else
22854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22855 /* end confdefs.h. */
22856 #include <stdlib.h>
22857 #if HAVE_SYS_LOADAVG_H
22858 # include <sys/loadavg.h>
22859 #endif
22860 #if HAVE_RANDOM_H
22861 # include <random.h>
22862 #endif
22863
22864 int
22865 main ()
22866 {
22867 #undef $gl_func
22868 (void) $gl_func;
22869 ;
22870 return 0;
22871 }
22872 _ACEOF
22873 if ac_fn_c_try_compile "$LINENO"; then :
22874 eval "$as_gl_Symbol=yes"
22875 else
22876 eval "$as_gl_Symbol=no"
22877 fi
22878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22879 fi
22880 eval ac_res=\$$as_gl_Symbol
22881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22882 $as_echo "$ac_res" >&6; }
22883 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
22884 cat >>confdefs.h <<_ACEOF
22885 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
22886 _ACEOF
22887
22888 eval ac_cv_have_decl_$gl_func=yes
22889 fi
22890 done
22891
22892
22893
22894
22895
22896
22897 for ac_func in strchrnul
22898 do :
22899 ac_fn_c_check_func "$LINENO" "strchrnul" "ac_cv_func_strchrnul"
22900 if test "x$ac_cv_func_strchrnul" = xyes; then :
22901 cat >>confdefs.h <<_ACEOF
22902 #define HAVE_STRCHRNUL 1
22903 _ACEOF
22904
22905 fi
22906 done
22907
22908 if test $ac_cv_func_strchrnul = no; then
22909 HAVE_STRCHRNUL=0
22910 else
22911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strchrnul works" >&5
22912 $as_echo_n "checking whether strchrnul works... " >&6; }
22913 if ${gl_cv_func_strchrnul_works+:} false; then :
22914 $as_echo_n "(cached) " >&6
22915 else
22916 if test "$cross_compiling" = yes; then :
22917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22918 /* end confdefs.h. */
22919
22920 #if defined __CYGWIN__
22921 #include <cygwin/version.h>
22922 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 9)
22923 Lucky user
22924 #endif
22925 #else
22926 Lucky user
22927 #endif
22928
22929 _ACEOF
22930 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22931 $EGREP "Lucky user" >/dev/null 2>&1; then :
22932 gl_cv_func_strchrnul_works="guessing yes"
22933 else
22934 gl_cv_func_strchrnul_works="guessing no"
22935 fi
22936 rm -f conftest*
22937
22938
22939 else
22940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22941 /* end confdefs.h. */
22942
22943 #include <string.h> /* for strchrnul */
22944
22945 int
22946 main ()
22947 {
22948 const char *buf = "a";
22949 return strchrnul (buf, 'b') != buf + 1;
22950
22951 ;
22952 return 0;
22953 }
22954 _ACEOF
22955 if ac_fn_c_try_run "$LINENO"; then :
22956 gl_cv_func_strchrnul_works=yes
22957 else
22958 gl_cv_func_strchrnul_works=no
22959 fi
22960 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22961 conftest.$ac_objext conftest.beam conftest.$ac_ext
22962 fi
22963
22964
22965 fi
22966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strchrnul_works" >&5
22967 $as_echo "$gl_cv_func_strchrnul_works" >&6; }
22968 case "$gl_cv_func_strchrnul_works" in
22969 *yes) ;;
22970 *) REPLACE_STRCHRNUL=1 ;;
22971 esac
22972 fi
22973
22974 if test $HAVE_STRCHRNUL = 0 || test $REPLACE_STRCHRNUL = 1; then
22975
22976
22977
22978
22979
22980
22981
22982
22983 gl_LIBOBJS="$gl_LIBOBJS strchrnul.$ac_objext"
22984
22985 :
22986 fi
22987
22988
22989
22990
22991
22992 GNULIB_STRCHRNUL=1
22993
22994
22995
22996
22997
22998 $as_echo "#define GNULIB_TEST_STRCHRNUL 1" >>confdefs.h
22999
23000
23001
23002
23003
23004
23005
23006 :
23007
23008
23009
23010
23011
23012 if test $ac_cv_func_strdup = yes; then
23013 if test $gl_cv_func_malloc_posix != yes; then
23014 REPLACE_STRDUP=1
23015 fi
23016 fi
23017
23018 :
23019
23020
23021
23022
23023
23024 if test $ac_cv_have_decl_strdup = no; then
23025 HAVE_DECL_STRDUP=0
23026 fi
23027
23028 if test $ac_cv_func_strdup = no || test $REPLACE_STRDUP = 1; then
23029
23030
23031
23032
23033
23034
23035
23036
23037 gl_LIBOBJS="$gl_LIBOBJS strdup.$ac_objext"
23038
23039 :
23040 fi
23041
23042
23043
23044
23045
23046 GNULIB_STRDUP=1
23047
23048
23049
23050
23051
23052 $as_echo "#define GNULIB_TEST_STRDUP 1" >>confdefs.h
23053
23054
23055
23056
23057
23058
23059
23060
23061 if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
23062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
23063 $as_echo_n "checking for working strerror function... " >&6; }
23064 if ${gl_cv_func_working_strerror+:} false; then :
23065 $as_echo_n "(cached) " >&6
23066 else
23067 if test "$cross_compiling" = yes; then :
23068 case "$host_os" in
23069 # Guess yes on glibc systems.
23070 *-gnu*) gl_cv_func_working_strerror="guessing yes" ;;
23071 # If we don't know, assume the worst.
23072 *) gl_cv_func_working_strerror="guessing no" ;;
23073 esac
23074
23075 else
23076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23077 /* end confdefs.h. */
23078 #include <string.h>
23079
23080 int
23081 main ()
23082 {
23083 if (!*strerror (-2)) return 1;
23084 ;
23085 return 0;
23086 }
23087 _ACEOF
23088 if ac_fn_c_try_run "$LINENO"; then :
23089 gl_cv_func_working_strerror=yes
23090 else
23091 gl_cv_func_working_strerror=no
23092 fi
23093 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23094 conftest.$ac_objext conftest.beam conftest.$ac_ext
23095 fi
23096
23097
23098 fi
23099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
23100 $as_echo "$gl_cv_func_working_strerror" >&6; }
23101 case "$gl_cv_func_working_strerror" in
23102 *yes) ;;
23103 *)
23104 REPLACE_STRERROR=1
23105 ;;
23106 esac
23107
23108 else
23109 REPLACE_STRERROR=1
23110 fi
23111
23112 if test $REPLACE_STRERROR = 1; then
23113
23114
23115
23116
23117
23118
23119
23120
23121 gl_LIBOBJS="$gl_LIBOBJS strerror.$ac_objext"
23122
23123 fi
23124
23125
23126 cat >>confdefs.h <<_ACEOF
23127 #define GNULIB_STRERROR 1
23128 _ACEOF
23129
23130
23131
23132
23133
23134
23135
23136 GNULIB_STRERROR=1
23137
23138
23139
23140
23141
23142 $as_echo "#define GNULIB_TEST_STRERROR 1" >>confdefs.h
23143
23144
23145
23146
23147
23148 if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then
23149
23150
23151
23152
23153
23154
23155
23156
23157 gl_LIBOBJS="$gl_LIBOBJS strerror-override.$ac_objext"
23158
23159
23160
23161
23162
23163 :
23164
23165
23166
23167
23168
23169 if test $ac_cv_header_sys_socket_h != yes; then
23170 for ac_header in winsock2.h
23171 do :
23172 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
23173 if test "x$ac_cv_header_winsock2_h" = xyes; then :
23174 cat >>confdefs.h <<_ACEOF
23175 #define HAVE_WINSOCK2_H 1
23176 _ACEOF
23177
23178 fi
23179
23180 done
23181
23182 fi
23183 if test "$ac_cv_header_winsock2_h" = yes; then
23184 HAVE_WINSOCK2_H=1
23185 UNISTD_H_HAVE_WINSOCK2_H=1
23186 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
23187 else
23188 HAVE_WINSOCK2_H=0
23189 fi
23190
23191
23192 fi
23193
23194
23195
23196
23197
23198 if test $REPLACE_STRSTR = 0; then
23199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works in linear time" >&5
23200 $as_echo_n "checking whether strstr works in linear time... " >&6; }
23201 if ${gl_cv_func_strstr_linear+:} false; then :
23202 $as_echo_n "(cached) " >&6
23203 else
23204 if test "$cross_compiling" = yes; then :
23205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23206 /* end confdefs.h. */
23207
23208 #include <features.h>
23209 #ifdef __GNU_LIBRARY__
23210 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
23211 && !(defined __i386__ || defined __x86_64__) \
23212 && !defined __UCLIBC__
23213 Lucky user
23214 #endif
23215 #endif
23216 #ifdef __CYGWIN__
23217 #include <cygwin/version.h>
23218 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
23219 Lucky user
23220 #endif
23221 #endif
23222
23223 _ACEOF
23224 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23225 $EGREP "Lucky user" >/dev/null 2>&1; then :
23226 gl_cv_func_strstr_linear="guessing yes"
23227 else
23228 gl_cv_func_strstr_linear="guessing no"
23229 fi
23230 rm -f conftest*
23231
23232
23233 else
23234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23235 /* end confdefs.h. */
23236
23237 #ifdef __MVS__
23238 /* z/OS does not deliver signals while strstr() is running (thanks to
23239 restrictions on its LE runtime), which prevents us from limiting the
23240 running time of this test. */
23241 # error "This test does not work properly on z/OS"
23242 #endif
23243 #include <signal.h> /* for signal */
23244 #include <string.h> /* for strstr */
23245 #include <stdlib.h> /* for malloc */
23246 #include <unistd.h> /* for alarm */
23247 static void quit (int sig) { _exit (sig + 128); }
23248
23249 int
23250 main ()
23251 {
23252
23253 int result = 0;
23254 size_t m = 1000000;
23255 char *haystack = (char *) malloc (2 * m + 2);
23256 char *needle = (char *) malloc (m + 2);
23257 /* Failure to compile this test due to missing alarm is okay,
23258 since all such platforms (mingw) also have quadratic strstr. */
23259 signal (SIGALRM, quit);
23260 alarm (5);
23261 /* Check for quadratic performance. */
23262 if (haystack && needle)
23263 {
23264 memset (haystack, 'A', 2 * m);
23265 haystack[2 * m] = 'B';
23266 haystack[2 * m + 1] = 0;
23267 memset (needle, 'A', m);
23268 needle[m] = 'B';
23269 needle[m + 1] = 0;
23270 if (!strstr (haystack, needle))
23271 result |= 1;
23272 }
23273 return result;
23274
23275 ;
23276 return 0;
23277 }
23278 _ACEOF
23279 if ac_fn_c_try_run "$LINENO"; then :
23280 gl_cv_func_strstr_linear=yes
23281 else
23282 gl_cv_func_strstr_linear=no
23283 fi
23284 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23285 conftest.$ac_objext conftest.beam conftest.$ac_ext
23286 fi
23287
23288
23289 fi
23290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_linear" >&5
23291 $as_echo "$gl_cv_func_strstr_linear" >&6; }
23292 case "$gl_cv_func_strstr_linear" in
23293 *yes) ;;
23294 *)
23295 REPLACE_STRSTR=1
23296 ;;
23297 esac
23298 fi
23299
23300 if test $REPLACE_STRSTR = 1; then
23301
23302
23303
23304
23305
23306
23307
23308
23309 gl_LIBOBJS="$gl_LIBOBJS strstr.$ac_objext"
23310
23311 fi
23312
23313
23314
23315 if test "$gl_cv_func_memchr_works" != yes; then
23316 REPLACE_STRSTR=1
23317 else
23318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
23319 $as_echo_n "checking whether strstr works... " >&6; }
23320 if ${gl_cv_func_strstr_works_always+:} false; then :
23321 $as_echo_n "(cached) " >&6
23322 else
23323 if test "$cross_compiling" = yes; then :
23324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23325 /* end confdefs.h. */
23326
23327 #ifdef __GNU_LIBRARY__
23328 #include <features.h>
23329 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
23330 || defined __UCLIBC__
23331 Lucky user
23332 #endif
23333 #elif defined __CYGWIN__
23334 #include <cygwin/version.h>
23335 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
23336 Lucky user
23337 #endif
23338 #else
23339 Lucky user
23340 #endif
23341
23342 _ACEOF
23343 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23344 $EGREP "Lucky user" >/dev/null 2>&1; then :
23345 gl_cv_func_strstr_works_always="guessing yes"
23346 else
23347 gl_cv_func_strstr_works_always="guessing no"
23348 fi
23349 rm -f conftest*
23350
23351
23352 else
23353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23354 /* end confdefs.h. */
23355
23356 #include <string.h> /* for strstr */
23357 #define P "_EF_BF_BD"
23358 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
23359 #define NEEDLE P P P P P
23360
23361 int
23362 main ()
23363 {
23364 return !!strstr (HAYSTACK, NEEDLE);
23365
23366 ;
23367 return 0;
23368 }
23369 _ACEOF
23370 if ac_fn_c_try_run "$LINENO"; then :
23371 gl_cv_func_strstr_works_always=yes
23372 else
23373 gl_cv_func_strstr_works_always=no
23374 fi
23375 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23376 conftest.$ac_objext conftest.beam conftest.$ac_ext
23377 fi
23378
23379
23380 fi
23381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
23382 $as_echo "$gl_cv_func_strstr_works_always" >&6; }
23383 case "$gl_cv_func_strstr_works_always" in
23384 *yes) ;;
23385 *)
23386 REPLACE_STRSTR=1
23387 ;;
23388 esac
23389 fi
23390
23391 if test $REPLACE_STRSTR = 1; then
23392
23393
23394
23395
23396
23397
23398
23399
23400 gl_LIBOBJS="$gl_LIBOBJS strstr.$ac_objext"
23401
23402 fi
23403
23404
23405
23406
23407
23408 GNULIB_STRSTR=1
23409
23410
23411
23412
23413
23414 $as_echo "#define GNULIB_TEST_STRSTR 1" >>confdefs.h
23415
23416
23417
23418
23419
23420
23421
23422 for ac_func in strtok_r
23423 do :
23424 ac_fn_c_check_func "$LINENO" "strtok_r" "ac_cv_func_strtok_r"
23425 if test "x$ac_cv_func_strtok_r" = xyes; then :
23426 cat >>confdefs.h <<_ACEOF
23427 #define HAVE_STRTOK_R 1
23428 _ACEOF
23429
23430 fi
23431 done
23432
23433 if test $ac_cv_func_strtok_r = yes; then
23434 HAVE_STRTOK_R=1
23435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtok_r works" >&5
23436 $as_echo_n "checking whether strtok_r works... " >&6; }
23437 if ${gl_cv_func_strtok_r_works+:} false; then :
23438 $as_echo_n "(cached) " >&6
23439 else
23440 if test "$cross_compiling" = yes; then :
23441
23442 case "$host_os" in
23443 # Guess no on glibc systems.
23444 *-gnu*) gl_cv_func_strtok_r_works="guessing no";;
23445 *) gl_cv_func_strtok_r_works="guessing yes";;
23446 esac
23447
23448 else
23449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23450 /* end confdefs.h. */
23451
23452 #ifndef __OPTIMIZE__
23453 # define __OPTIMIZE__ 1
23454 #endif
23455 #undef __OPTIMIZE_SIZE__
23456 #undef __NO_INLINE__
23457 #include <stdlib.h>
23458 #include <string.h>
23459
23460 int
23461 main ()
23462 {
23463 static const char dummy[] = "\177\01a";
23464 char delimiters[] = "xxxxxxxx";
23465 char *save_ptr = (char *) dummy;
23466 strtok_r (delimiters, "x", &save_ptr);
23467 strtok_r (NULL, "x", &save_ptr);
23468 return 0;
23469
23470 ;
23471 return 0;
23472 }
23473
23474 _ACEOF
23475 if ac_fn_c_try_run "$LINENO"; then :
23476 gl_cv_func_strtok_r_works=yes
23477 else
23478 gl_cv_func_strtok_r_works=no
23479 fi
23480 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23481 conftest.$ac_objext conftest.beam conftest.$ac_ext
23482 fi
23483
23484
23485 fi
23486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtok_r_works" >&5
23487 $as_echo "$gl_cv_func_strtok_r_works" >&6; }
23488 case "$gl_cv_func_strtok_r_works" in
23489 *no)
23490 UNDEFINE_STRTOK_R=1
23491 ;;
23492 esac
23493 else
23494 HAVE_STRTOK_R=0
23495 fi
23496
23497 :
23498
23499
23500
23501
23502
23503 if test $ac_cv_have_decl_strtok_r = no; then
23504 HAVE_DECL_STRTOK_R=0
23505 fi
23506
23507 if test $HAVE_STRTOK_R = 0 || test $REPLACE_STRTOK_R = 1; then
23508
23509
23510
23511
23512
23513
23514
23515
23516 gl_LIBOBJS="$gl_LIBOBJS strtok_r.$ac_objext"
23517
23518
23519 :
23520
23521 fi
23522
23523
23524
23525
23526
23527 GNULIB_STRTOK_R=1
23528
23529
23530
23531
23532
23533 $as_echo "#define GNULIB_TEST_STRTOK_R 1" >>confdefs.h
23534
23535
23536
23537
23538
23539
23540
23541
23542
23543
23544
23545
23546
23547
23548 :
23549
23550
23551
23552
23553
23554
23555
23556
23557 if test $gl_cv_have_include_next = yes; then
23558 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
23559 else
23560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
23561 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
23562 if ${gl_cv_next_sys_stat_h+:} false; then :
23563 $as_echo_n "(cached) " >&6
23564 else
23565
23566 if test $ac_cv_header_sys_stat_h = yes; then
23567
23568
23569
23570
23571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23572 /* end confdefs.h. */
23573 #include <sys/stat.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 'sys/stat.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_sys_stat_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23599 sed -n "$gl_absolute_header_sed"`
23600
23601 gl_header=$gl_cv_absolute_sys_stat_h
23602 gl_cv_next_sys_stat_h='"'$gl_header'"'
23603 else
23604 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
23605 fi
23606
23607
23608 fi
23609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
23610 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
23611 fi
23612 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_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='<'sys/stat.h'>'
23617 else
23618 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23619 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
23620 fi
23621 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
23622
23623
23624
23625
23626
23627
23628
23629
23630
23631
23632
23633 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
23634
23635 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
23636
23637 fi
23638
23639 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
23640 #include <sys/stat.h>
23641 "
23642 if test "x$ac_cv_type_nlink_t" = xyes; then :
23643
23644 else
23645
23646 $as_echo "#define nlink_t int" >>confdefs.h
23647
23648 fi
23649
23650
23651
23652 for gl_func in fchmodat fstat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat mknod mknodat stat utimensat; do
23653 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
23654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
23655 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
23656 if eval \${$as_gl_Symbol+:} false; then :
23657 $as_echo_n "(cached) " >&6
23658 else
23659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23660 /* end confdefs.h. */
23661 #include <sys/stat.h>
23662
23663 int
23664 main ()
23665 {
23666 #undef $gl_func
23667 (void) $gl_func;
23668 ;
23669 return 0;
23670 }
23671 _ACEOF
23672 if ac_fn_c_try_compile "$LINENO"; then :
23673 eval "$as_gl_Symbol=yes"
23674 else
23675 eval "$as_gl_Symbol=no"
23676 fi
23677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23678 fi
23679 eval ac_res=\$$as_gl_Symbol
23680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23681 $as_echo "$ac_res" >&6; }
23682 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
23683 cat >>confdefs.h <<_ACEOF
23684 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
23685 _ACEOF
23686
23687 eval ac_cv_have_decl_$gl_func=yes
23688 fi
23689 done
23690
23691
23692
23693
23694
23695
23696
23697
23698
23699
23700
23701 :
23702
23703
23704
23705
23706
23707
23708
23709
23710
23711
23712
23713
23714
23715
23716 :
23717
23718
23719
23720
23721
23722
23723
23724
23725 if test $gl_cv_have_include_next = yes; then
23726 gl_cv_next_unistd_h='<'unistd.h'>'
23727 else
23728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
23729 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
23730 if ${gl_cv_next_unistd_h+:} false; then :
23731 $as_echo_n "(cached) " >&6
23732 else
23733
23734 if test $ac_cv_header_unistd_h = yes; then
23735
23736
23737
23738
23739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23740 /* end confdefs.h. */
23741 #include <unistd.h>
23742 _ACEOF
23743 case "$host_os" in
23744 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23745 *) gl_absname_cpp="$ac_cpp" ;;
23746 esac
23747
23748 case "$host_os" in
23749 mingw*)
23750 gl_dirsep_regex='[/\\]'
23751 ;;
23752 *)
23753 gl_dirsep_regex='\/'
23754 ;;
23755 esac
23756 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23757 gl_header_literal_regex=`echo 'unistd.h' \
23758 | sed -e "$gl_make_literal_regex_sed"`
23759 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23760 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23761 s|^/[^/]|//&|
23762 p
23763 q
23764 }'
23765
23766 gl_cv_absolute_unistd_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23767 sed -n "$gl_absolute_header_sed"`
23768
23769 gl_header=$gl_cv_absolute_unistd_h
23770 gl_cv_next_unistd_h='"'$gl_header'"'
23771 else
23772 gl_cv_next_unistd_h='<'unistd.h'>'
23773 fi
23774
23775
23776 fi
23777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
23778 $as_echo "$gl_cv_next_unistd_h" >&6; }
23779 fi
23780 NEXT_UNISTD_H=$gl_cv_next_unistd_h
23781
23782 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23783 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23784 gl_next_as_first_directive='<'unistd.h'>'
23785 else
23786 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23787 gl_next_as_first_directive=$gl_cv_next_unistd_h
23788 fi
23789 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
23790
23791
23792
23793
23794 if test $ac_cv_header_unistd_h = yes; then
23795 HAVE_UNISTD_H=1
23796 else
23797 HAVE_UNISTD_H=0
23798 fi
23799
23800
23801
23802
23803
23804
23805
23806 for gl_func in chdir chown dup dup2 dup3 environ euidaccess faccessat fchdir fchownat fdatasync fsync ftruncate getcwd getdomainname getdtablesize getgroups gethostname getlogin getlogin_r getpagesize getusershell setusershell endusershell group_member isatty lchown link linkat lseek pipe pipe2 pread pwrite readlink readlinkat rmdir sethostname sleep symlink symlinkat ttyname_r unlink unlinkat usleep; do
23807 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
23808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
23809 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
23810 if eval \${$as_gl_Symbol+:} false; then :
23811 $as_echo_n "(cached) " >&6
23812 else
23813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23814 /* end confdefs.h. */
23815
23816 #if HAVE_UNISTD_H
23817 # include <unistd.h>
23818 #endif
23819 /* Some systems declare various items in the wrong headers. */
23820 #if !(defined __GLIBC__ && !defined __UCLIBC__)
23821 # include <fcntl.h>
23822 # include <stdio.h>
23823 # include <stdlib.h>
23824 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
23825 # include <io.h>
23826 # endif
23827 #endif
23828
23829 int
23830 main ()
23831 {
23832 #undef $gl_func
23833 (void) $gl_func;
23834 ;
23835 return 0;
23836 }
23837 _ACEOF
23838 if ac_fn_c_try_compile "$LINENO"; then :
23839 eval "$as_gl_Symbol=yes"
23840 else
23841 eval "$as_gl_Symbol=no"
23842 fi
23843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23844 fi
23845 eval ac_res=\$$as_gl_Symbol
23846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23847 $as_echo "$ac_res" >&6; }
23848 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
23849 cat >>confdefs.h <<_ACEOF
23850 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
23851 _ACEOF
23852
23853 eval ac_cv_have_decl_$gl_func=yes
23854 fi
23855 done
23856
23857
23858
23859
23860 :
23861
23862
23863
23864
23865
23866
23867
23868
23869
23870 :
23871
23872
23873
23874
23875
23876 if test $ac_cv_have_decl_unsetenv = no; then
23877 HAVE_DECL_UNSETENV=0
23878 fi
23879 for ac_func in unsetenv
23880 do :
23881 ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
23882 if test "x$ac_cv_func_unsetenv" = xyes; then :
23883 cat >>confdefs.h <<_ACEOF
23884 #define HAVE_UNSETENV 1
23885 _ACEOF
23886
23887 fi
23888 done
23889
23890 if test $ac_cv_func_unsetenv = no; then
23891 HAVE_UNSETENV=0
23892 else
23893 HAVE_UNSETENV=1
23894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsetenv() return type" >&5
23895 $as_echo_n "checking for unsetenv() return type... " >&6; }
23896 if ${gt_cv_func_unsetenv_ret+:} false; then :
23897 $as_echo_n "(cached) " >&6
23898 else
23899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23900 /* end confdefs.h. */
23901
23902 #undef _BSD
23903 #define _BSD 1 /* unhide unsetenv declaration in OSF/1 5.1 <stdlib.h> */
23904 #include <stdlib.h>
23905 extern
23906 #ifdef __cplusplus
23907 "C"
23908 #endif
23909 int unsetenv (const char *name);
23910
23911 int
23912 main ()
23913 {
23914
23915 ;
23916 return 0;
23917 }
23918 _ACEOF
23919 if ac_fn_c_try_compile "$LINENO"; then :
23920 gt_cv_func_unsetenv_ret='int'
23921 else
23922 gt_cv_func_unsetenv_ret='void'
23923 fi
23924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23925 fi
23926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_unsetenv_ret" >&5
23927 $as_echo "$gt_cv_func_unsetenv_ret" >&6; }
23928 if test $gt_cv_func_unsetenv_ret = 'void'; then
23929
23930 $as_echo "#define VOID_UNSETENV 1" >>confdefs.h
23931
23932 REPLACE_UNSETENV=1
23933 fi
23934
23935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv obeys POSIX" >&5
23936 $as_echo_n "checking whether unsetenv obeys POSIX... " >&6; }
23937 if ${gl_cv_func_unsetenv_works+:} false; then :
23938 $as_echo_n "(cached) " >&6
23939 else
23940 if test "$cross_compiling" = yes; then :
23941 case "$host_os" in
23942 # Guess yes on glibc systems.
23943 *-gnu*) gl_cv_func_unsetenv_works="guessing yes" ;;
23944 # If we don't know, assume the worst.
23945 *) gl_cv_func_unsetenv_works="guessing no" ;;
23946 esac
23947
23948 else
23949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23950 /* end confdefs.h. */
23951
23952 #include <stdlib.h>
23953 #include <errno.h>
23954 extern char **environ;
23955
23956 int
23957 main ()
23958 {
23959
23960 char entry1[] = "a=1";
23961 char entry2[] = "b=2";
23962 char *env[] = { entry1, entry2, NULL };
23963 if (putenv ((char *) "a=1")) return 1;
23964 if (putenv (entry2)) return 2;
23965 entry2[0] = 'a';
23966 unsetenv ("a");
23967 if (getenv ("a")) return 3;
23968 if (!unsetenv ("") || errno != EINVAL) return 4;
23969 entry2[0] = 'b';
23970 environ = env;
23971 if (!getenv ("a")) return 5;
23972 entry2[0] = 'a';
23973 unsetenv ("a");
23974 if (getenv ("a")) return 6;
23975
23976 ;
23977 return 0;
23978 }
23979 _ACEOF
23980 if ac_fn_c_try_run "$LINENO"; then :
23981 gl_cv_func_unsetenv_works=yes
23982 else
23983 gl_cv_func_unsetenv_works=no
23984 fi
23985 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23986 conftest.$ac_objext conftest.beam conftest.$ac_ext
23987 fi
23988
23989 fi
23990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unsetenv_works" >&5
23991 $as_echo "$gl_cv_func_unsetenv_works" >&6; }
23992 case "$gl_cv_func_unsetenv_works" in
23993 *yes) ;;
23994 *)
23995 REPLACE_UNSETENV=1
23996 ;;
23997 esac
23998 fi
23999
24000 if test $HAVE_UNSETENV = 0 || test $REPLACE_UNSETENV = 1; then
24001
24002
24003
24004
24005
24006
24007
24008
24009 gl_LIBOBJS="$gl_LIBOBJS unsetenv.$ac_objext"
24010
24011
24012
24013
24014 :
24015
24016
24017
24018
24019
24020
24021 fi
24022
24023
24024
24025
24026
24027 GNULIB_UNSETENV=1
24028
24029
24030
24031
24032
24033 $as_echo "#define GNULIB_TEST_UNSETENV 1" >>confdefs.h
24034
24035
24036
24037
24038
24039
24040
24041
24042
24043
24044
24045
24046 :
24047
24048
24049
24050
24051
24052
24053
24054
24055 if test $gl_cv_have_include_next = yes; then
24056 gl_cv_next_wchar_h='<'wchar.h'>'
24057 else
24058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
24059 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
24060 if ${gl_cv_next_wchar_h+:} false; then :
24061 $as_echo_n "(cached) " >&6
24062 else
24063
24064 if test $ac_cv_header_wchar_h = yes; then
24065
24066
24067
24068
24069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24070 /* end confdefs.h. */
24071 #include <wchar.h>
24072 _ACEOF
24073 case "$host_os" in
24074 aix*) gl_absname_cpp="$ac_cpp -C" ;;
24075 *) gl_absname_cpp="$ac_cpp" ;;
24076 esac
24077
24078 case "$host_os" in
24079 mingw*)
24080 gl_dirsep_regex='[/\\]'
24081 ;;
24082 *)
24083 gl_dirsep_regex='\/'
24084 ;;
24085 esac
24086 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24087 gl_header_literal_regex=`echo 'wchar.h' \
24088 | sed -e "$gl_make_literal_regex_sed"`
24089 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24090 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24091 s|^/[^/]|//&|
24092 p
24093 q
24094 }'
24095
24096 gl_cv_absolute_wchar_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24097 sed -n "$gl_absolute_header_sed"`
24098
24099 gl_header=$gl_cv_absolute_wchar_h
24100 gl_cv_next_wchar_h='"'$gl_header'"'
24101 else
24102 gl_cv_next_wchar_h='<'wchar.h'>'
24103 fi
24104
24105
24106 fi
24107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
24108 $as_echo "$gl_cv_next_wchar_h" >&6; }
24109 fi
24110 NEXT_WCHAR_H=$gl_cv_next_wchar_h
24111
24112 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24113 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24114 gl_next_as_first_directive='<'wchar.h'>'
24115 else
24116 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24117 gl_next_as_first_directive=$gl_cv_next_wchar_h
24118 fi
24119 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
24120
24121
24122
24123
24124 if test $ac_cv_header_wchar_h = yes; then
24125 HAVE_WCHAR_H=1
24126 else
24127 HAVE_WCHAR_H=0
24128 fi
24129
24130
24131
24132
24133
24134 if test $gt_cv_c_wint_t = yes; then
24135 HAVE_WINT_T=1
24136 else
24137 HAVE_WINT_T=0
24138 fi
24139
24140
24141
24142 for gl_func in btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb wcsrtombs wcsnrtombs wcwidth wmemchr wmemcmp wmemcpy wmemmove wmemset wcslen wcsnlen wcscpy wcpcpy wcsncpy wcpncpy wcscat wcsncat wcscmp wcsncmp wcscasecmp wcsncasecmp wcscoll wcsxfrm wcsdup wcschr wcsrchr wcscspn wcsspn wcspbrk wcsstr wcstok wcswidth ; do
24143 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
24144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
24145 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
24146 if eval \${$as_gl_Symbol+:} false; then :
24147 $as_echo_n "(cached) " >&6
24148 else
24149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24150 /* end confdefs.h. */
24151
24152 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
24153 <wchar.h>.
24154 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
24155 included before <wchar.h>. */
24156 #if !(defined __GLIBC__ && !defined __UCLIBC__)
24157 # include <stddef.h>
24158 # include <stdio.h>
24159 # include <time.h>
24160 #endif
24161 #include <wchar.h>
24162
24163 int
24164 main ()
24165 {
24166 #undef $gl_func
24167 (void) $gl_func;
24168 ;
24169 return 0;
24170 }
24171 _ACEOF
24172 if ac_fn_c_try_compile "$LINENO"; then :
24173 eval "$as_gl_Symbol=yes"
24174 else
24175 eval "$as_gl_Symbol=no"
24176 fi
24177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24178 fi
24179 eval ac_res=\$$as_gl_Symbol
24180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24181 $as_echo "$ac_res" >&6; }
24182 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
24183 cat >>confdefs.h <<_ACEOF
24184 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
24185 _ACEOF
24186
24187 eval ac_cv_have_decl_$gl_func=yes
24188 fi
24189 done
24190
24191
24192
24193
24194
24195
24196
24197 :
24198
24199
24200
24201
24202
24203 if test $ac_cv_func_iswcntrl = yes; then
24204 HAVE_ISWCNTRL=1
24205 else
24206 HAVE_ISWCNTRL=0
24207 fi
24208
24209
24210
24211 if test $gt_cv_c_wint_t = yes; then
24212 HAVE_WINT_T=1
24213 else
24214 HAVE_WINT_T=0
24215 fi
24216
24217
24218
24219
24220
24221
24222
24223
24224 :
24225
24226
24227
24228
24229
24230
24231
24232
24233 if test $gl_cv_have_include_next = yes; then
24234 gl_cv_next_wctype_h='<'wctype.h'>'
24235 else
24236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
24237 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
24238 if ${gl_cv_next_wctype_h+:} false; then :
24239 $as_echo_n "(cached) " >&6
24240 else
24241
24242 if test $ac_cv_header_wctype_h = yes; then
24243
24244
24245
24246
24247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24248 /* end confdefs.h. */
24249 #include <wctype.h>
24250 _ACEOF
24251 case "$host_os" in
24252 aix*) gl_absname_cpp="$ac_cpp -C" ;;
24253 *) gl_absname_cpp="$ac_cpp" ;;
24254 esac
24255
24256 case "$host_os" in
24257 mingw*)
24258 gl_dirsep_regex='[/\\]'
24259 ;;
24260 *)
24261 gl_dirsep_regex='\/'
24262 ;;
24263 esac
24264 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24265 gl_header_literal_regex=`echo 'wctype.h' \
24266 | sed -e "$gl_make_literal_regex_sed"`
24267 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24268 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24269 s|^/[^/]|//&|
24270 p
24271 q
24272 }'
24273
24274 gl_cv_absolute_wctype_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24275 sed -n "$gl_absolute_header_sed"`
24276
24277 gl_header=$gl_cv_absolute_wctype_h
24278 gl_cv_next_wctype_h='"'$gl_header'"'
24279 else
24280 gl_cv_next_wctype_h='<'wctype.h'>'
24281 fi
24282
24283
24284 fi
24285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
24286 $as_echo "$gl_cv_next_wctype_h" >&6; }
24287 fi
24288 NEXT_WCTYPE_H=$gl_cv_next_wctype_h
24289
24290 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24291 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24292 gl_next_as_first_directive='<'wctype.h'>'
24293 else
24294 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24295 gl_next_as_first_directive=$gl_cv_next_wctype_h
24296 fi
24297 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
24298
24299
24300
24301
24302 if test $ac_cv_header_wctype_h = yes; then
24303 if test $ac_cv_func_iswcntrl = yes; then
24304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
24305 $as_echo_n "checking whether iswcntrl works... " >&6; }
24306 if ${gl_cv_func_iswcntrl_works+:} false; then :
24307 $as_echo_n "(cached) " >&6
24308 else
24309
24310 if test "$cross_compiling" = yes; then :
24311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24312 /* end confdefs.h. */
24313 #include <stdlib.h>
24314 #if __GNU_LIBRARY__ == 1
24315 Linux libc5 i18n is broken.
24316 #endif
24317 int
24318 main ()
24319 {
24320
24321 ;
24322 return 0;
24323 }
24324 _ACEOF
24325 if ac_fn_c_try_compile "$LINENO"; then :
24326 gl_cv_func_iswcntrl_works="guessing yes"
24327 else
24328 gl_cv_func_iswcntrl_works="guessing no"
24329 fi
24330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24331
24332 else
24333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24334 /* end confdefs.h. */
24335
24336 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
24337 included before <wchar.h>.
24338 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
24339 must be included before <wchar.h>. */
24340 #include <stddef.h>
24341 #include <stdio.h>
24342 #include <time.h>
24343 #include <wchar.h>
24344 #include <wctype.h>
24345 int main () { return iswprint ('x') == 0; }
24346
24347 _ACEOF
24348 if ac_fn_c_try_run "$LINENO"; then :
24349 gl_cv_func_iswcntrl_works=yes
24350 else
24351 gl_cv_func_iswcntrl_works=no
24352 fi
24353 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24354 conftest.$ac_objext conftest.beam conftest.$ac_ext
24355 fi
24356
24357
24358 fi
24359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
24360 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
24361 fi
24362 HAVE_WCTYPE_H=1
24363 else
24364 HAVE_WCTYPE_H=0
24365 fi
24366
24367
24368 case "$gl_cv_func_iswcntrl_works" in
24369 *yes) REPLACE_ISWCNTRL=0 ;;
24370 *) REPLACE_ISWCNTRL=1 ;;
24371 esac
24372
24373
24374 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
24375 :
24376 fi
24377
24378 if test $REPLACE_ISWCNTRL = 1; then
24379 REPLACE_TOWLOWER=1
24380 else
24381 for ac_func in towlower
24382 do :
24383 ac_fn_c_check_func "$LINENO" "towlower" "ac_cv_func_towlower"
24384 if test "x$ac_cv_func_towlower" = xyes; then :
24385 cat >>confdefs.h <<_ACEOF
24386 #define HAVE_TOWLOWER 1
24387 _ACEOF
24388
24389 fi
24390 done
24391
24392 if test $ac_cv_func_towlower = yes; then
24393 REPLACE_TOWLOWER=0
24394 else
24395 ac_fn_c_check_decl "$LINENO" "towlower" "ac_cv_have_decl_towlower" "/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
24396 included before <wchar.h>.
24397 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
24398 must be included before <wchar.h>. */
24399 #include <stddef.h>
24400 #include <stdio.h>
24401 #include <time.h>
24402 #include <wchar.h>
24403 #if HAVE_WCTYPE_H
24404 # include <wctype.h>
24405 #endif
24406
24407 "
24408 if test "x$ac_cv_have_decl_towlower" = xyes; then :
24409 ac_have_decl=1
24410 else
24411 ac_have_decl=0
24412 fi
24413
24414 cat >>confdefs.h <<_ACEOF
24415 #define HAVE_DECL_TOWLOWER $ac_have_decl
24416 _ACEOF
24417
24418 if test $ac_cv_have_decl_towlower = yes; then
24419 REPLACE_TOWLOWER=1
24420 else
24421 REPLACE_TOWLOWER=0
24422 fi
24423 fi
24424 fi
24425
24426
24427 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_TOWLOWER = 1; then
24428 :
24429 fi
24430
24431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
24432 $as_echo_n "checking for wctype_t... " >&6; }
24433 if ${gl_cv_type_wctype_t+:} false; then :
24434 $as_echo_n "(cached) " >&6
24435 else
24436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24437 /* end confdefs.h. */
24438 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
24439 included before <wchar.h>.
24440 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
24441 must be included before <wchar.h>. */
24442 #include <stddef.h>
24443 #include <stdio.h>
24444 #include <time.h>
24445 #include <wchar.h>
24446 #if HAVE_WCTYPE_H
24447 # include <wctype.h>
24448 #endif
24449 wctype_t a;
24450
24451 int
24452 main ()
24453 {
24454
24455 ;
24456 return 0;
24457 }
24458 _ACEOF
24459 if ac_fn_c_try_compile "$LINENO"; then :
24460 gl_cv_type_wctype_t=yes
24461 else
24462 gl_cv_type_wctype_t=no
24463 fi
24464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24465
24466 fi
24467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
24468 $as_echo "$gl_cv_type_wctype_t" >&6; }
24469 if test $gl_cv_type_wctype_t = no; then
24470 HAVE_WCTYPE_T=0
24471 fi
24472
24473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
24474 $as_echo_n "checking for wctrans_t... " >&6; }
24475 if ${gl_cv_type_wctrans_t+:} false; then :
24476 $as_echo_n "(cached) " >&6
24477 else
24478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24479 /* end confdefs.h. */
24480 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
24481 included before <wchar.h>.
24482 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
24483 must be included before <wchar.h>. */
24484 #include <stddef.h>
24485 #include <stdio.h>
24486 #include <time.h>
24487 #include <wchar.h>
24488 #include <wctype.h>
24489 wctrans_t a;
24490
24491 int
24492 main ()
24493 {
24494
24495 ;
24496 return 0;
24497 }
24498 _ACEOF
24499 if ac_fn_c_try_compile "$LINENO"; then :
24500 gl_cv_type_wctrans_t=yes
24501 else
24502 gl_cv_type_wctrans_t=no
24503 fi
24504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24505
24506 fi
24507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
24508 $as_echo "$gl_cv_type_wctrans_t" >&6; }
24509 if test $gl_cv_type_wctrans_t = no; then
24510 HAVE_WCTRANS_T=0
24511 fi
24512
24513
24514 for gl_func in wctype iswctype wctrans towctrans ; do
24515 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
24516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
24517 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
24518 if eval \${$as_gl_Symbol+:} false; then :
24519 $as_echo_n "(cached) " >&6
24520 else
24521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24522 /* end confdefs.h. */
24523
24524 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
24525 <wchar.h>.
24526 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
24527 included before <wchar.h>. */
24528 #if !(defined __GLIBC__ && !defined __UCLIBC__)
24529 # include <stddef.h>
24530 # include <stdio.h>
24531 # include <time.h>
24532 # include <wchar.h>
24533 #endif
24534 #include <wctype.h>
24535
24536 int
24537 main ()
24538 {
24539 #undef $gl_func
24540 (void) $gl_func;
24541 ;
24542 return 0;
24543 }
24544 _ACEOF
24545 if ac_fn_c_try_compile "$LINENO"; then :
24546 eval "$as_gl_Symbol=yes"
24547 else
24548 eval "$as_gl_Symbol=no"
24549 fi
24550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24551 fi
24552 eval ac_res=\$$as_gl_Symbol
24553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24554 $as_echo "$ac_res" >&6; }
24555 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
24556 cat >>confdefs.h <<_ACEOF
24557 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
24558 _ACEOF
24559
24560 eval ac_cv_have_decl_$gl_func=yes
24561 fi
24562 done
24563
24564
24565 # End of code from modules
24566
24567
24568
24569
24570
24571
24572
24573
24574
24575 gltests_libdeps=
24576 gltests_ltlibdeps=
24577
24578
24579
24580
24581
24582
24583
24584
24585
24586 gl_source_base='tests'
24587 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
24588
24589 gl_module_indicator_condition=$gltests_WITNESS
24590
24591
24592
24593
24594
24595
24596
24597
24598
24599 LIBGNU_LIBDEPS="$gl_libdeps"
24600
24601 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
24602
24603
24604
24605 # We don't use automake, but gnulib does. This line lets us generate
24606 # its Makefile.in.
24607 am__api_version='1.15'
24608
24609 # Find a good install program. We prefer a C program (faster),
24610 # so one script is as good as another. But avoid the broken or
24611 # incompatible versions:
24612 # SysV /etc/install, /usr/sbin/install
24613 # SunOS /usr/etc/install
24614 # IRIX /sbin/install
24615 # AIX /bin/install
24616 # AmigaOS /C/install, which installs bootblocks on floppy discs
24617 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
24618 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
24619 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
24620 # OS/2's system install, which has a completely different semantic
24621 # ./install, which can be erroneously created by make from ./install.sh.
24622 # Reject install programs that cannot install multiple files.
24623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
24624 $as_echo_n "checking for a BSD-compatible install... " >&6; }
24625 if test -z "$INSTALL"; then
24626 if ${ac_cv_path_install+:} false; then :
24627 $as_echo_n "(cached) " >&6
24628 else
24629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24630 for as_dir in $PATH
24631 do
24632 IFS=$as_save_IFS
24633 test -z "$as_dir" && as_dir=.
24634 # Account for people who put trailing slashes in PATH elements.
24635 case $as_dir/ in #((
24636 ./ | .// | /[cC]/* | \
24637 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
24638 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
24639 /usr/ucb/* ) ;;
24640 *)
24641 # OSF1 and SCO ODT 3.0 have their own names for install.
24642 # Don't use installbsd from OSF since it installs stuff as root
24643 # by default.
24644 for ac_prog in ginstall scoinst install; do
24645 for ac_exec_ext in '' $ac_executable_extensions; do
24646 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
24647 if test $ac_prog = install &&
24648 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
24649 # AIX install. It has an incompatible calling convention.
24650 :
24651 elif test $ac_prog = install &&
24652 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
24653 # program-specific install script used by HP pwplus--don't use.
24654 :
24655 else
24656 rm -rf conftest.one conftest.two conftest.dir
24657 echo one > conftest.one
24658 echo two > conftest.two
24659 mkdir conftest.dir
24660 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
24661 test -s conftest.one && test -s conftest.two &&
24662 test -s conftest.dir/conftest.one &&
24663 test -s conftest.dir/conftest.two
24664 then
24665 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
24666 break 3
24667 fi
24668 fi
24669 fi
24670 done
24671 done
24672 ;;
24673 esac
24674
24675 done
24676 IFS=$as_save_IFS
24677
24678 rm -rf conftest.one conftest.two conftest.dir
24679
24680 fi
24681 if test "${ac_cv_path_install+set}" = set; then
24682 INSTALL=$ac_cv_path_install
24683 else
24684 # As a last resort, use the slow shell script. Don't cache a
24685 # value for INSTALL within a source directory, because that will
24686 # break other packages using the cache if that directory is
24687 # removed, or if the value is a relative name.
24688 INSTALL=$ac_install_sh
24689 fi
24690 fi
24691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
24692 $as_echo "$INSTALL" >&6; }
24693
24694 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
24695 # It thinks the first close brace ends the variable substitution.
24696 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
24697
24698 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
24699
24700 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
24701
24702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
24703 $as_echo_n "checking whether build environment is sane... " >&6; }
24704 # Reject unsafe characters in $srcdir or the absolute working directory
24705 # name. Accept space and tab only in the latter.
24706 am_lf='
24707 '
24708 case `pwd` in
24709 *[\\\"\#\$\&\'\`$am_lf]*)
24710 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
24711 esac
24712 case $srcdir in
24713 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
24714 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
24715 esac
24716
24717 # Do 'set' in a subshell so we don't clobber the current shell's
24718 # arguments. Must try -L first in case configure is actually a
24719 # symlink; some systems play weird games with the mod time of symlinks
24720 # (eg FreeBSD returns the mod time of the symlink's containing
24721 # directory).
24722 if (
24723 am_has_slept=no
24724 for am_try in 1 2; do
24725 echo "timestamp, slept: $am_has_slept" > conftest.file
24726 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
24727 if test "$*" = "X"; then
24728 # -L didn't work.
24729 set X `ls -t "$srcdir/configure" conftest.file`
24730 fi
24731 if test "$*" != "X $srcdir/configure conftest.file" \
24732 && test "$*" != "X conftest.file $srcdir/configure"; then
24733
24734 # If neither matched, then we have a broken ls. This can happen
24735 # if, for instance, CONFIG_SHELL is bash and it inherits a
24736 # broken ls alias from the environment. This has actually
24737 # happened. Such a system could not be considered "sane".
24738 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
24739 alias in your environment" "$LINENO" 5
24740 fi
24741 if test "$2" = conftest.file || test $am_try -eq 2; then
24742 break
24743 fi
24744 # Just in case.
24745 sleep 1
24746 am_has_slept=yes
24747 done
24748 test "$2" = conftest.file
24749 )
24750 then
24751 # Ok.
24752 :
24753 else
24754 as_fn_error $? "newly created file is older than distributed files!
24755 Check your system clock" "$LINENO" 5
24756 fi
24757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24758 $as_echo "yes" >&6; }
24759 # If we didn't sleep, we still need to ensure time stamps of config.status and
24760 # generated files are strictly newer.
24761 am_sleep_pid=
24762 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
24763 ( sleep 1 ) &
24764 am_sleep_pid=$!
24765 fi
24766
24767 rm -f conftest.file
24768
24769 test "$program_prefix" != NONE &&
24770 program_transform_name="s&^&$program_prefix&;$program_transform_name"
24771 # Use a double $ so make ignores it.
24772 test "$program_suffix" != NONE &&
24773 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
24774 # Double any \ or $.
24775 # By default was `s,x,x', remove it if useless.
24776 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
24777 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
24778
24779 if test x"${MISSING+set}" != xset; then
24780 case $am_aux_dir in
24781 *\ * | *\ *)
24782 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
24783 *)
24784 MISSING="\${SHELL} $am_aux_dir/missing" ;;
24785 esac
24786 fi
24787 # Use eval to expand $SHELL
24788 if eval "$MISSING --is-lightweight"; then
24789 am_missing_run="$MISSING "
24790 else
24791 am_missing_run=
24792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
24793 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
24794 fi
24795
24796 if test x"${install_sh+set}" != xset; then
24797 case $am_aux_dir in
24798 *\ * | *\ *)
24799 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
24800 *)
24801 install_sh="\${SHELL} $am_aux_dir/install-sh"
24802 esac
24803 fi
24804
24805 # Installed binaries are usually stripped using 'strip' when the user
24806 # run "make install-strip". However 'strip' might not be the right
24807 # tool to use in cross-compilation environments, therefore Automake
24808 # will honor the 'STRIP' environment variable to overrule this program.
24809 if test "$cross_compiling" != no; then
24810 if test -n "$ac_tool_prefix"; then
24811 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
24812 set dummy ${ac_tool_prefix}strip; ac_word=$2
24813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24814 $as_echo_n "checking for $ac_word... " >&6; }
24815 if ${ac_cv_prog_STRIP+:} false; then :
24816 $as_echo_n "(cached) " >&6
24817 else
24818 if test -n "$STRIP"; then
24819 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
24820 else
24821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24822 for as_dir in $PATH
24823 do
24824 IFS=$as_save_IFS
24825 test -z "$as_dir" && as_dir=.
24826 for ac_exec_ext in '' $ac_executable_extensions; do
24827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24828 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
24829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24830 break 2
24831 fi
24832 done
24833 done
24834 IFS=$as_save_IFS
24835
24836 fi
24837 fi
24838 STRIP=$ac_cv_prog_STRIP
24839 if test -n "$STRIP"; then
24840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
24841 $as_echo "$STRIP" >&6; }
24842 else
24843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24844 $as_echo "no" >&6; }
24845 fi
24846
24847
24848 fi
24849 if test -z "$ac_cv_prog_STRIP"; then
24850 ac_ct_STRIP=$STRIP
24851 # Extract the first word of "strip", so it can be a program name with args.
24852 set dummy strip; ac_word=$2
24853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24854 $as_echo_n "checking for $ac_word... " >&6; }
24855 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
24856 $as_echo_n "(cached) " >&6
24857 else
24858 if test -n "$ac_ct_STRIP"; then
24859 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
24860 else
24861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24862 for as_dir in $PATH
24863 do
24864 IFS=$as_save_IFS
24865 test -z "$as_dir" && as_dir=.
24866 for ac_exec_ext in '' $ac_executable_extensions; do
24867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24868 ac_cv_prog_ac_ct_STRIP="strip"
24869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24870 break 2
24871 fi
24872 done
24873 done
24874 IFS=$as_save_IFS
24875
24876 fi
24877 fi
24878 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
24879 if test -n "$ac_ct_STRIP"; then
24880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
24881 $as_echo "$ac_ct_STRIP" >&6; }
24882 else
24883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24884 $as_echo "no" >&6; }
24885 fi
24886
24887 if test "x$ac_ct_STRIP" = x; then
24888 STRIP=":"
24889 else
24890 case $cross_compiling:$ac_tool_warned in
24891 yes:)
24892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24893 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24894 ac_tool_warned=yes ;;
24895 esac
24896 STRIP=$ac_ct_STRIP
24897 fi
24898 else
24899 STRIP="$ac_cv_prog_STRIP"
24900 fi
24901
24902 fi
24903 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
24904
24905 for ac_prog in gawk mawk nawk awk
24906 do
24907 # Extract the first word of "$ac_prog", so it can be a program name with args.
24908 set dummy $ac_prog; ac_word=$2
24909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24910 $as_echo_n "checking for $ac_word... " >&6; }
24911 if ${ac_cv_prog_AWK+:} false; then :
24912 $as_echo_n "(cached) " >&6
24913 else
24914 if test -n "$AWK"; then
24915 ac_cv_prog_AWK="$AWK" # Let the user override the test.
24916 else
24917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24918 for as_dir in $PATH
24919 do
24920 IFS=$as_save_IFS
24921 test -z "$as_dir" && as_dir=.
24922 for ac_exec_ext in '' $ac_executable_extensions; do
24923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24924 ac_cv_prog_AWK="$ac_prog"
24925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24926 break 2
24927 fi
24928 done
24929 done
24930 IFS=$as_save_IFS
24931
24932 fi
24933 fi
24934 AWK=$ac_cv_prog_AWK
24935 if test -n "$AWK"; then
24936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
24937 $as_echo "$AWK" >&6; }
24938 else
24939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24940 $as_echo "no" >&6; }
24941 fi
24942
24943
24944 test -n "$AWK" && break
24945 done
24946
24947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
24948 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
24949 set x ${MAKE-make}
24950 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
24951 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
24952 $as_echo_n "(cached) " >&6
24953 else
24954 cat >conftest.make <<\_ACEOF
24955 SHELL = /bin/sh
24956 all:
24957 @echo '@@@%%%=$(MAKE)=@@@%%%'
24958 _ACEOF
24959 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
24960 case `${MAKE-make} -f conftest.make 2>/dev/null` in
24961 *@@@%%%=?*=@@@%%%*)
24962 eval ac_cv_prog_make_${ac_make}_set=yes;;
24963 *)
24964 eval ac_cv_prog_make_${ac_make}_set=no;;
24965 esac
24966 rm -f conftest.make
24967 fi
24968 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
24969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24970 $as_echo "yes" >&6; }
24971 SET_MAKE=
24972 else
24973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24974 $as_echo "no" >&6; }
24975 SET_MAKE="MAKE=${MAKE-make}"
24976 fi
24977
24978 rm -rf .tst 2>/dev/null
24979 mkdir .tst 2>/dev/null
24980 if test -d .tst; then
24981 am__leading_dot=.
24982 else
24983 am__leading_dot=_
24984 fi
24985 rmdir .tst 2>/dev/null
24986
24987 DEPDIR="${am__leading_dot}deps"
24988
24989 ac_config_commands="$ac_config_commands depfiles"
24990
24991
24992 am_make=${MAKE-make}
24993 cat > confinc << 'END'
24994 am__doit:
24995 @echo this is the am__doit target
24996 .PHONY: am__doit
24997 END
24998 # If we don't find an include directive, just comment out the code.
24999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
25000 $as_echo_n "checking for style of include used by $am_make... " >&6; }
25001 am__include="#"
25002 am__quote=
25003 _am_result=none
25004 # First try GNU make style include.
25005 echo "include confinc" > confmf
25006 # Ignore all kinds of additional output from 'make'.
25007 case `$am_make -s -f confmf 2> /dev/null` in #(
25008 *the\ am__doit\ target*)
25009 am__include=include
25010 am__quote=
25011 _am_result=GNU
25012 ;;
25013 esac
25014 # Now try BSD make style include.
25015 if test "$am__include" = "#"; then
25016 echo '.include "confinc"' > confmf
25017 case `$am_make -s -f confmf 2> /dev/null` in #(
25018 *the\ am__doit\ target*)
25019 am__include=.include
25020 am__quote="\""
25021 _am_result=BSD
25022 ;;
25023 esac
25024 fi
25025
25026
25027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
25028 $as_echo "$_am_result" >&6; }
25029 rm -f confinc confmf
25030
25031 # Check whether --enable-dependency-tracking was given.
25032 if test "${enable_dependency_tracking+set}" = set; then :
25033 enableval=$enable_dependency_tracking;
25034 fi
25035
25036 if test "x$enable_dependency_tracking" != xno; then
25037 am_depcomp="$ac_aux_dir/depcomp"
25038 AMDEPBACKSLASH='\'
25039 am__nodep='_no'
25040 fi
25041 if test "x$enable_dependency_tracking" != xno; then
25042 AMDEP_TRUE=
25043 AMDEP_FALSE='#'
25044 else
25045 AMDEP_TRUE='#'
25046 AMDEP_FALSE=
25047 fi
25048
25049
25050 # Check whether --enable-silent-rules was given.
25051 if test "${enable_silent_rules+set}" = set; then :
25052 enableval=$enable_silent_rules;
25053 fi
25054
25055 case $enable_silent_rules in # (((
25056 yes) AM_DEFAULT_VERBOSITY=0;;
25057 no) AM_DEFAULT_VERBOSITY=1;;
25058 *) AM_DEFAULT_VERBOSITY=1;;
25059 esac
25060 am_make=${MAKE-make}
25061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
25062 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
25063 if ${am_cv_make_support_nested_variables+:} false; then :
25064 $as_echo_n "(cached) " >&6
25065 else
25066 if $as_echo 'TRUE=$(BAR$(V))
25067 BAR0=false
25068 BAR1=true
25069 V=1
25070 am__doit:
25071 @$(TRUE)
25072 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
25073 am_cv_make_support_nested_variables=yes
25074 else
25075 am_cv_make_support_nested_variables=no
25076 fi
25077 fi
25078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
25079 $as_echo "$am_cv_make_support_nested_variables" >&6; }
25080 if test $am_cv_make_support_nested_variables = yes; then
25081 AM_V='$(V)'
25082 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
25083 else
25084 AM_V=$AM_DEFAULT_VERBOSITY
25085 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
25086 fi
25087 AM_BACKSLASH='\'
25088
25089 if test "`cd $srcdir && pwd`" != "`pwd`"; then
25090 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
25091 # is not polluted with repeated "-I."
25092 am__isrc=' -I$(srcdir)'
25093 # test to see if srcdir already configured
25094 if test -f $srcdir/config.status; then
25095 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
25096 fi
25097 fi
25098
25099 # test whether we have cygpath
25100 if test -z "$CYGPATH_W"; then
25101 if (cygpath --version) >/dev/null 2>/dev/null; then
25102 CYGPATH_W='cygpath -w'
25103 else
25104 CYGPATH_W=echo
25105 fi
25106 fi
25107
25108
25109 # Define the identity of the package.
25110 PACKAGE='libgnu'
25111 VERSION='UNUSED-VERSION'
25112
25113
25114 # Some tools Automake needs.
25115
25116 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
25117
25118
25119 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
25120
25121
25122 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
25123
25124
25125 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
25126
25127
25128 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
25129
25130 # For better backward compatibility. To be removed once Automake 1.9.x
25131 # dies out for good. For more background, see:
25132 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
25133 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
25134 mkdir_p='$(MKDIR_P)'
25135
25136 # We need awk for the "check" target (and possibly the TAP driver). The
25137 # system "awk" is bad on some platforms.
25138 # Always define AMTAR for backward compatibility. Yes, it's still used
25139 # in the wild :-( We should find a proper way to deprecate it ...
25140 AMTAR='$${TAR-tar}'
25141
25142
25143 # We'll loop over all known methods to create a tar archive until one works.
25144 _am_tools='gnutar pax cpio none'
25145
25146 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
25147
25148
25149
25150
25151
25152 depcc="$CC" am_compiler_list=
25153
25154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
25155 $as_echo_n "checking dependency style of $depcc... " >&6; }
25156 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
25157 $as_echo_n "(cached) " >&6
25158 else
25159 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
25160 # We make a subdir and do the tests there. Otherwise we can end up
25161 # making bogus files that we don't know about and never remove. For
25162 # instance it was reported that on HP-UX the gcc test will end up
25163 # making a dummy file named 'D' -- because '-MD' means "put the output
25164 # in D".
25165 rm -rf conftest.dir
25166 mkdir conftest.dir
25167 # Copy depcomp to subdir because otherwise we won't find it if we're
25168 # using a relative directory.
25169 cp "$am_depcomp" conftest.dir
25170 cd conftest.dir
25171 # We will build objects and dependencies in a subdirectory because
25172 # it helps to detect inapplicable dependency modes. For instance
25173 # both Tru64's cc and ICC support -MD to output dependencies as a
25174 # side effect of compilation, but ICC will put the dependencies in
25175 # the current directory while Tru64 will put them in the object
25176 # directory.
25177 mkdir sub
25178
25179 am_cv_CC_dependencies_compiler_type=none
25180 if test "$am_compiler_list" = ""; then
25181 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
25182 fi
25183 am__universal=false
25184 case " $depcc " in #(
25185 *\ -arch\ *\ -arch\ *) am__universal=true ;;
25186 esac
25187
25188 for depmode in $am_compiler_list; do
25189 # Setup a source with many dependencies, because some compilers
25190 # like to wrap large dependency lists on column 80 (with \), and
25191 # we should not choose a depcomp mode which is confused by this.
25192 #
25193 # We need to recreate these files for each test, as the compiler may
25194 # overwrite some of them when testing with obscure command lines.
25195 # This happens at least with the AIX C compiler.
25196 : > sub/conftest.c
25197 for i in 1 2 3 4 5 6; do
25198 echo '#include "conftst'$i'.h"' >> sub/conftest.c
25199 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
25200 # Solaris 10 /bin/sh.
25201 echo '/* dummy */' > sub/conftst$i.h
25202 done
25203 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
25204
25205 # We check with '-c' and '-o' for the sake of the "dashmstdout"
25206 # mode. It turns out that the SunPro C++ compiler does not properly
25207 # handle '-M -o', and we need to detect this. Also, some Intel
25208 # versions had trouble with output in subdirs.
25209 am__obj=sub/conftest.${OBJEXT-o}
25210 am__minus_obj="-o $am__obj"
25211 case $depmode in
25212 gcc)
25213 # This depmode causes a compiler race in universal mode.
25214 test "$am__universal" = false || continue
25215 ;;
25216 nosideeffect)
25217 # After this tag, mechanisms are not by side-effect, so they'll
25218 # only be used when explicitly requested.
25219 if test "x$enable_dependency_tracking" = xyes; then
25220 continue
25221 else
25222 break
25223 fi
25224 ;;
25225 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
25226 # This compiler won't grok '-c -o', but also, the minuso test has
25227 # not run yet. These depmodes are late enough in the game, and
25228 # so weak that their functioning should not be impacted.
25229 am__obj=conftest.${OBJEXT-o}
25230 am__minus_obj=
25231 ;;
25232 none) break ;;
25233 esac
25234 if depmode=$depmode \
25235 source=sub/conftest.c object=$am__obj \
25236 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
25237 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
25238 >/dev/null 2>conftest.err &&
25239 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
25240 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
25241 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
25242 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
25243 # icc doesn't choke on unknown options, it will just issue warnings
25244 # or remarks (even with -Werror). So we grep stderr for any message
25245 # that says an option was ignored or not supported.
25246 # When given -MP, icc 7.0 and 7.1 complain thusly:
25247 # icc: Command line warning: ignoring option '-M'; no argument required
25248 # The diagnosis changed in icc 8.0:
25249 # icc: Command line remark: option '-MP' not supported
25250 if (grep 'ignoring option' conftest.err ||
25251 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
25252 am_cv_CC_dependencies_compiler_type=$depmode
25253 break
25254 fi
25255 fi
25256 done
25257
25258 cd ..
25259 rm -rf conftest.dir
25260 else
25261 am_cv_CC_dependencies_compiler_type=none
25262 fi
25263
25264 fi
25265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
25266 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
25267 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
25268
25269 if
25270 test "x$enable_dependency_tracking" != xno \
25271 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
25272 am__fastdepCC_TRUE=
25273 am__fastdepCC_FALSE='#'
25274 else
25275 am__fastdepCC_TRUE='#'
25276 am__fastdepCC_FALSE=
25277 fi
25278
25279
25280
25281 # POSIX will say in a future version that running "rm -f" with no argument
25282 # is OK; and we want to be able to make that assumption in our Makefile
25283 # recipes. So use an aggressive probe to check that the usage we want is
25284 # actually supported "in the wild" to an acceptable degree.
25285 # See automake bug#10828.
25286 # To make any issue more visible, cause the running configure to be aborted
25287 # by default if the 'rm' program in use doesn't match our expectations; the
25288 # user can still override this though.
25289 if rm -f && rm -fr && rm -rf; then : OK; else
25290 cat >&2 <<'END'
25291 Oops!
25292
25293 Your 'rm' program seems unable to run without file operands specified
25294 on the command line, even when the '-f' option is present. This is contrary
25295 to the behaviour of most rm programs out there, and not conforming with
25296 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
25297
25298 Please tell bug-automake@gnu.org about your system, including the value
25299 of your $PATH and any error possibly output before this message. This
25300 can help us improve future automake versions.
25301
25302 END
25303 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
25304 echo 'Configuration will proceed anyway, since you have set the' >&2
25305 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
25306 echo >&2
25307 else
25308 cat >&2 <<'END'
25309 Aborting the configuration process, to ensure you take notice of the issue.
25310
25311 You can download and install GNU coreutils to get an 'rm' implementation
25312 that behaves properly: <http://www.gnu.org/software/coreutils/>.
25313
25314 If you want to complete the configuration process using your problematic
25315 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
25316 to "yes", and re-run configure.
25317
25318 END
25319 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
25320 fi
25321 fi
25322
25323
25324 # Check whether --enable-silent-rules was given.
25325 if test "${enable_silent_rules+set}" = set; then :
25326 enableval=$enable_silent_rules;
25327 fi
25328
25329 case $enable_silent_rules in # (((
25330 yes) AM_DEFAULT_VERBOSITY=0;;
25331 no) AM_DEFAULT_VERBOSITY=1;;
25332 *) AM_DEFAULT_VERBOSITY=0;;
25333 esac
25334 am_make=${MAKE-make}
25335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
25336 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
25337 if ${am_cv_make_support_nested_variables+:} false; then :
25338 $as_echo_n "(cached) " >&6
25339 else
25340 if $as_echo 'TRUE=$(BAR$(V))
25341 BAR0=false
25342 BAR1=true
25343 V=1
25344 am__doit:
25345 @$(TRUE)
25346 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
25347 am_cv_make_support_nested_variables=yes
25348 else
25349 am_cv_make_support_nested_variables=no
25350 fi
25351 fi
25352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
25353 $as_echo "$am_cv_make_support_nested_variables" >&6; }
25354 if test $am_cv_make_support_nested_variables = yes; then
25355 AM_V='$(V)'
25356 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
25357 else
25358 AM_V=$AM_DEFAULT_VERBOSITY
25359 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
25360 fi
25361 AM_BACKSLASH='\'
25362
25363
25364 # --------------------- #
25365 # Checks for programs. #
25366 # --------------------- #
25367
25368
25369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
25370 $as_echo_n "checking whether ln -s works... " >&6; }
25371 LN_S=$as_ln_s
25372 if test "$LN_S" = "ln -s"; then
25373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25374 $as_echo "yes" >&6; }
25375 else
25376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
25377 $as_echo "no, using $LN_S" >&6; }
25378 fi
25379
25380 if test -n "$ac_tool_prefix"; then
25381 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
25382 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
25383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25384 $as_echo_n "checking for $ac_word... " >&6; }
25385 if ${ac_cv_prog_RANLIB+:} false; then :
25386 $as_echo_n "(cached) " >&6
25387 else
25388 if test -n "$RANLIB"; then
25389 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
25390 else
25391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25392 for as_dir in $PATH
25393 do
25394 IFS=$as_save_IFS
25395 test -z "$as_dir" && as_dir=.
25396 for ac_exec_ext in '' $ac_executable_extensions; do
25397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25398 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
25399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25400 break 2
25401 fi
25402 done
25403 done
25404 IFS=$as_save_IFS
25405
25406 fi
25407 fi
25408 RANLIB=$ac_cv_prog_RANLIB
25409 if test -n "$RANLIB"; then
25410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
25411 $as_echo "$RANLIB" >&6; }
25412 else
25413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25414 $as_echo "no" >&6; }
25415 fi
25416
25417
25418 fi
25419 if test -z "$ac_cv_prog_RANLIB"; then
25420 ac_ct_RANLIB=$RANLIB
25421 # Extract the first word of "ranlib", so it can be a program name with args.
25422 set dummy ranlib; ac_word=$2
25423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25424 $as_echo_n "checking for $ac_word... " >&6; }
25425 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
25426 $as_echo_n "(cached) " >&6
25427 else
25428 if test -n "$ac_ct_RANLIB"; then
25429 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
25430 else
25431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25432 for as_dir in $PATH
25433 do
25434 IFS=$as_save_IFS
25435 test -z "$as_dir" && as_dir=.
25436 for ac_exec_ext in '' $ac_executable_extensions; do
25437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25438 ac_cv_prog_ac_ct_RANLIB="ranlib"
25439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25440 break 2
25441 fi
25442 done
25443 done
25444 IFS=$as_save_IFS
25445
25446 fi
25447 fi
25448 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
25449 if test -n "$ac_ct_RANLIB"; then
25450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
25451 $as_echo "$ac_ct_RANLIB" >&6; }
25452 else
25453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25454 $as_echo "no" >&6; }
25455 fi
25456
25457 if test "x$ac_ct_RANLIB" = x; then
25458 RANLIB=":"
25459 else
25460 case $cross_compiling:$ac_tool_warned in
25461 yes:)
25462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25463 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25464 ac_tool_warned=yes ;;
25465 esac
25466 RANLIB=$ac_ct_RANLIB
25467 fi
25468 else
25469 RANLIB="$ac_cv_prog_RANLIB"
25470 fi
25471
25472
25473 if test -n "$ac_tool_prefix"; then
25474 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
25475 set dummy ${ac_tool_prefix}ar; ac_word=$2
25476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25477 $as_echo_n "checking for $ac_word... " >&6; }
25478 if ${ac_cv_prog_AR+:} false; then :
25479 $as_echo_n "(cached) " >&6
25480 else
25481 if test -n "$AR"; then
25482 ac_cv_prog_AR="$AR" # Let the user override the test.
25483 else
25484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25485 for as_dir in $PATH
25486 do
25487 IFS=$as_save_IFS
25488 test -z "$as_dir" && as_dir=.
25489 for ac_exec_ext in '' $ac_executable_extensions; do
25490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25491 ac_cv_prog_AR="${ac_tool_prefix}ar"
25492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25493 break 2
25494 fi
25495 done
25496 done
25497 IFS=$as_save_IFS
25498
25499 fi
25500 fi
25501 AR=$ac_cv_prog_AR
25502 if test -n "$AR"; then
25503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
25504 $as_echo "$AR" >&6; }
25505 else
25506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25507 $as_echo "no" >&6; }
25508 fi
25509
25510
25511 fi
25512 if test -z "$ac_cv_prog_AR"; then
25513 ac_ct_AR=$AR
25514 # Extract the first word of "ar", so it can be a program name with args.
25515 set dummy ar; ac_word=$2
25516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25517 $as_echo_n "checking for $ac_word... " >&6; }
25518 if ${ac_cv_prog_ac_ct_AR+:} false; then :
25519 $as_echo_n "(cached) " >&6
25520 else
25521 if test -n "$ac_ct_AR"; then
25522 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
25523 else
25524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25525 for as_dir in $PATH
25526 do
25527 IFS=$as_save_IFS
25528 test -z "$as_dir" && as_dir=.
25529 for ac_exec_ext in '' $ac_executable_extensions; do
25530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25531 ac_cv_prog_ac_ct_AR="ar"
25532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25533 break 2
25534 fi
25535 done
25536 done
25537 IFS=$as_save_IFS
25538
25539 fi
25540 fi
25541 ac_ct_AR=$ac_cv_prog_ac_ct_AR
25542 if test -n "$ac_ct_AR"; then
25543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
25544 $as_echo "$ac_ct_AR" >&6; }
25545 else
25546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25547 $as_echo "no" >&6; }
25548 fi
25549
25550 if test "x$ac_ct_AR" = x; then
25551 AR=""
25552 else
25553 case $cross_compiling:$ac_tool_warned in
25554 yes:)
25555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25556 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25557 ac_tool_warned=yes ;;
25558 esac
25559 AR=$ac_ct_AR
25560 fi
25561 else
25562 AR="$ac_cv_prog_AR"
25563 fi
25564
25565
25566 # ---------------------- #
25567 # Checks for libraries. #
25568 # ---------------------- #
25569
25570 ac_config_files="$ac_config_files Makefile import/Makefile"
25571
25572 ac_config_commands="$ac_config_commands default"
25573
25574 cat >confcache <<\_ACEOF
25575 # This file is a shell script that caches the results of configure
25576 # tests run on this system so they can be shared between configure
25577 # scripts and configure runs, see configure's option --config-cache.
25578 # It is not useful on other systems. If it contains results you don't
25579 # want to keep, you may remove or edit it.
25580 #
25581 # config.status only pays attention to the cache file if you give it
25582 # the --recheck option to rerun configure.
25583 #
25584 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25585 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25586 # following values.
25587
25588 _ACEOF
25589
25590 # The following way of writing the cache mishandles newlines in values,
25591 # but we know of no workaround that is simple, portable, and efficient.
25592 # So, we kill variables containing newlines.
25593 # Ultrix sh set writes to stderr and can't be redirected directly,
25594 # and sets the high bit in the cache file unless we assign to the vars.
25595 (
25596 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25597 eval ac_val=\$$ac_var
25598 case $ac_val in #(
25599 *${as_nl}*)
25600 case $ac_var in #(
25601 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
25602 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
25603 esac
25604 case $ac_var in #(
25605 _ | IFS | as_nl) ;; #(
25606 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
25607 *) { eval $ac_var=; unset $ac_var;} ;;
25608 esac ;;
25609 esac
25610 done
25611
25612 (set) 2>&1 |
25613 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25614 *${as_nl}ac_space=\ *)
25615 # `set' does not quote correctly, so add quotes: double-quote
25616 # substitution turns \\\\ into \\, and sed turns \\ into \.
25617 sed -n \
25618 "s/'/'\\\\''/g;
25619 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25620 ;; #(
25621 *)
25622 # `set' quotes correctly as required by POSIX, so do not add quotes.
25623 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25624 ;;
25625 esac |
25626 sort
25627 ) |
25628 sed '
25629 /^ac_cv_env_/b end
25630 t clear
25631 :clear
25632 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25633 t end
25634 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25635 :end' >>confcache
25636 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25637 if test -w "$cache_file"; then
25638 if test "x$cache_file" != "x/dev/null"; then
25639 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
25640 $as_echo "$as_me: updating cache $cache_file" >&6;}
25641 if test ! -f "$cache_file" || test -h "$cache_file"; then
25642 cat confcache >"$cache_file"
25643 else
25644 case $cache_file in #(
25645 */* | ?:*)
25646 mv -f confcache "$cache_file"$$ &&
25647 mv -f "$cache_file"$$ "$cache_file" ;; #(
25648 *)
25649 mv -f confcache "$cache_file" ;;
25650 esac
25651 fi
25652 fi
25653 else
25654 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
25655 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25656 fi
25657 fi
25658 rm -f confcache
25659
25660 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25661 # Let make expand exec_prefix.
25662 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25663
25664 DEFS=-DHAVE_CONFIG_H
25665
25666 ac_libobjs=
25667 ac_ltlibobjs=
25668 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25669 # 1. Remove the extension, and $U if already installed.
25670 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25671 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
25672 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25673 # will be set to the directory where LIBOBJS objects are built.
25674 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25675 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
25676 done
25677 LIBOBJS=$ac_libobjs
25678
25679 LTLIBOBJS=$ac_ltlibobjs
25680
25681
25682 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
25683 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
25684 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25685 fi
25686 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
25687 as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
25688 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25689 fi
25690 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
25691 as_fn_error $? "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
25692 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25693 fi
25694 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
25695 as_fn_error $? "conditional \"GL_GENERATE_ERRNO_H\" was never defined.
25696 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25697 fi
25698 if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
25699 as_fn_error $? "conditional \"GL_GENERATE_FLOAT_H\" was never defined.
25700 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25701 fi
25702 if test -z "${GL_GENERATE_FNMATCH_H_TRUE}" && test -z "${GL_GENERATE_FNMATCH_H_FALSE}"; then
25703 as_fn_error $? "conditional \"GL_GENERATE_FNMATCH_H\" was never defined.
25704 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25705 fi
25706 if test -z "${GL_GENERATE_GLOB_H_TRUE}" && test -z "${GL_GENERATE_GLOB_H_FALSE}"; then
25707 as_fn_error $? "conditional \"GL_GENERATE_GLOB_H\" was never defined.
25708 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25709 fi
25710 if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
25711 as_fn_error $? "conditional \"GL_GENERATE_LIMITS_H\" was never defined.
25712 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25713 fi
25714 if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
25715 as_fn_error $? "conditional \"GL_GENERATE_LIMITS_H\" was never defined.
25716 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25717 fi
25718 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
25719 as_fn_error $? "conditional \"GL_GENERATE_STDINT_H\" was never defined.
25720 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25721 fi
25722
25723
25724 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
25725 as_fn_error $? "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
25726 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25727 fi
25728 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
25729 as_fn_error $? "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
25730 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25731 fi
25732
25733 gl_libobjs=
25734 gl_ltlibobjs=
25735 if test -n "$gl_LIBOBJS"; then
25736 # Remove the extension.
25737 sed_drop_objext='s/\.o$//;s/\.obj$//'
25738 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
25739 gl_libobjs="$gl_libobjs $i.$ac_objext"
25740 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
25741 done
25742 fi
25743 gl_LIBOBJS=$gl_libobjs
25744
25745 gl_LTLIBOBJS=$gl_ltlibobjs
25746
25747
25748
25749 gltests_libobjs=
25750 gltests_ltlibobjs=
25751 if test -n "$gltests_LIBOBJS"; then
25752 # Remove the extension.
25753 sed_drop_objext='s/\.o$//;s/\.obj$//'
25754 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
25755 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
25756 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
25757 done
25758 fi
25759 gltests_LIBOBJS=$gltests_libobjs
25760
25761 gltests_LTLIBOBJS=$gltests_ltlibobjs
25762
25763
25764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
25765 $as_echo_n "checking that generated files are newer than configure... " >&6; }
25766 if test -n "$am_sleep_pid"; then
25767 # Hide warnings about reused PIDs.
25768 wait $am_sleep_pid 2>/dev/null
25769 fi
25770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
25771 $as_echo "done" >&6; }
25772 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
25773 as_fn_error $? "conditional \"AMDEP\" was never defined.
25774 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25775 fi
25776 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25777 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
25778 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25779 fi
25780 if test -n "$EXEEXT"; then
25781 am__EXEEXT_TRUE=
25782 am__EXEEXT_FALSE='#'
25783 else
25784 am__EXEEXT_TRUE='#'
25785 am__EXEEXT_FALSE=
25786 fi
25787
25788
25789 : "${CONFIG_STATUS=./config.status}"
25790 ac_write_fail=0
25791 ac_clean_files_save=$ac_clean_files
25792 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25793 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
25794 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25795 as_write_fail=0
25796 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
25797 #! $SHELL
25798 # Generated by $as_me.
25799 # Run this file to recreate the current configuration.
25800 # Compiler output produced by configure, useful for debugging
25801 # configure, is in config.log if it exists.
25802
25803 debug=false
25804 ac_cs_recheck=false
25805 ac_cs_silent=false
25806
25807 SHELL=\${CONFIG_SHELL-$SHELL}
25808 export SHELL
25809 _ASEOF
25810 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
25811 ## -------------------- ##
25812 ## M4sh Initialization. ##
25813 ## -------------------- ##
25814
25815 # Be more Bourne compatible
25816 DUALCASE=1; export DUALCASE # for MKS sh
25817 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
25818 emulate sh
25819 NULLCMD=:
25820 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25821 # is contrary to our usage. Disable this feature.
25822 alias -g '${1+"$@"}'='"$@"'
25823 setopt NO_GLOB_SUBST
25824 else
25825 case `(set -o) 2>/dev/null` in #(
25826 *posix*) :
25827 set -o posix ;; #(
25828 *) :
25829 ;;
25830 esac
25831 fi
25832
25833
25834 as_nl='
25835 '
25836 export as_nl
25837 # Printing a long string crashes Solaris 7 /usr/bin/printf.
25838 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25839 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25840 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25841 # Prefer a ksh shell builtin over an external printf program on Solaris,
25842 # but without wasting forks for bash or zsh.
25843 if test -z "$BASH_VERSION$ZSH_VERSION" \
25844 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
25845 as_echo='print -r --'
25846 as_echo_n='print -rn --'
25847 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25848 as_echo='printf %s\n'
25849 as_echo_n='printf %s'
25850 else
25851 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25852 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
25853 as_echo_n='/usr/ucb/echo -n'
25854 else
25855 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25856 as_echo_n_body='eval
25857 arg=$1;
25858 case $arg in #(
25859 *"$as_nl"*)
25860 expr "X$arg" : "X\\(.*\\)$as_nl";
25861 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25862 esac;
25863 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
25864 '
25865 export as_echo_n_body
25866 as_echo_n='sh -c $as_echo_n_body as_echo'
25867 fi
25868 export as_echo_body
25869 as_echo='sh -c $as_echo_body as_echo'
25870 fi
25871
25872 # The user is always right.
25873 if test "${PATH_SEPARATOR+set}" != set; then
25874 PATH_SEPARATOR=:
25875 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25876 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25877 PATH_SEPARATOR=';'
25878 }
25879 fi
25880
25881
25882 # IFS
25883 # We need space, tab and new line, in precisely that order. Quoting is
25884 # there to prevent editors from complaining about space-tab.
25885 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25886 # splitting by setting IFS to empty value.)
25887 IFS=" "" $as_nl"
25888
25889 # Find who we are. Look in the path if we contain no directory separator.
25890 as_myself=
25891 case $0 in #((
25892 *[\\/]* ) as_myself=$0 ;;
25893 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25894 for as_dir in $PATH
25895 do
25896 IFS=$as_save_IFS
25897 test -z "$as_dir" && as_dir=.
25898 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25899 done
25900 IFS=$as_save_IFS
25901
25902 ;;
25903 esac
25904 # We did not find ourselves, most probably we were run as `sh COMMAND'
25905 # in which case we are not to be found in the path.
25906 if test "x$as_myself" = x; then
25907 as_myself=$0
25908 fi
25909 if test ! -f "$as_myself"; then
25910 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25911 exit 1
25912 fi
25913
25914 # Unset variables that we do not need and which cause bugs (e.g. in
25915 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
25916 # suppresses any "Segmentation fault" message there. '((' could
25917 # trigger a bug in pdksh 5.2.14.
25918 for as_var in BASH_ENV ENV MAIL MAILPATH
25919 do eval test x\${$as_var+set} = xset \
25920 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
25921 done
25922 PS1='$ '
25923 PS2='> '
25924 PS4='+ '
25925
25926 # NLS nuisances.
25927 LC_ALL=C
25928 export LC_ALL
25929 LANGUAGE=C
25930 export LANGUAGE
25931
25932 # CDPATH.
25933 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25934
25935
25936 # as_fn_error STATUS ERROR [LINENO LOG_FD]
25937 # ----------------------------------------
25938 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
25939 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
25940 # script with STATUS, using 1 if that was 0.
25941 as_fn_error ()
25942 {
25943 as_status=$1; test $as_status -eq 0 && as_status=1
25944 if test "$4"; then
25945 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
25946 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
25947 fi
25948 $as_echo "$as_me: error: $2" >&2
25949 as_fn_exit $as_status
25950 } # as_fn_error
25951
25952
25953 # as_fn_set_status STATUS
25954 # -----------------------
25955 # Set $? to STATUS, without forking.
25956 as_fn_set_status ()
25957 {
25958 return $1
25959 } # as_fn_set_status
25960
25961 # as_fn_exit STATUS
25962 # -----------------
25963 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
25964 as_fn_exit ()
25965 {
25966 set +e
25967 as_fn_set_status $1
25968 exit $1
25969 } # as_fn_exit
25970
25971 # as_fn_unset VAR
25972 # ---------------
25973 # Portably unset VAR.
25974 as_fn_unset ()
25975 {
25976 { eval $1=; unset $1;}
25977 }
25978 as_unset=as_fn_unset
25979 # as_fn_append VAR VALUE
25980 # ----------------------
25981 # Append the text in VALUE to the end of the definition contained in VAR. Take
25982 # advantage of any shell optimizations that allow amortized linear growth over
25983 # repeated appends, instead of the typical quadratic growth present in naive
25984 # implementations.
25985 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
25986 eval 'as_fn_append ()
25987 {
25988 eval $1+=\$2
25989 }'
25990 else
25991 as_fn_append ()
25992 {
25993 eval $1=\$$1\$2
25994 }
25995 fi # as_fn_append
25996
25997 # as_fn_arith ARG...
25998 # ------------------
25999 # Perform arithmetic evaluation on the ARGs, and store the result in the
26000 # global $as_val. Take advantage of shells that can avoid forks. The arguments
26001 # must be portable across $(()) and expr.
26002 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
26003 eval 'as_fn_arith ()
26004 {
26005 as_val=$(( $* ))
26006 }'
26007 else
26008 as_fn_arith ()
26009 {
26010 as_val=`expr "$@" || test $? -eq 1`
26011 }
26012 fi # as_fn_arith
26013
26014
26015 if expr a : '\(a\)' >/dev/null 2>&1 &&
26016 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26017 as_expr=expr
26018 else
26019 as_expr=false
26020 fi
26021
26022 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26023 as_basename=basename
26024 else
26025 as_basename=false
26026 fi
26027
26028 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26029 as_dirname=dirname
26030 else
26031 as_dirname=false
26032 fi
26033
26034 as_me=`$as_basename -- "$0" ||
26035 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26036 X"$0" : 'X\(//\)$' \| \
26037 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26038 $as_echo X/"$0" |
26039 sed '/^.*\/\([^/][^/]*\)\/*$/{
26040 s//\1/
26041 q
26042 }
26043 /^X\/\(\/\/\)$/{
26044 s//\1/
26045 q
26046 }
26047 /^X\/\(\/\).*/{
26048 s//\1/
26049 q
26050 }
26051 s/.*/./; q'`
26052
26053 # Avoid depending upon Character Ranges.
26054 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26055 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26056 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26057 as_cr_digits='0123456789'
26058 as_cr_alnum=$as_cr_Letters$as_cr_digits
26059
26060 ECHO_C= ECHO_N= ECHO_T=
26061 case `echo -n x` in #(((((
26062 -n*)
26063 case `echo 'xy\c'` in
26064 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26065 xy) ECHO_C='\c';;
26066 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
26067 ECHO_T=' ';;
26068 esac;;
26069 *)
26070 ECHO_N='-n';;
26071 esac
26072
26073 rm -f conf$$ conf$$.exe conf$$.file
26074 if test -d conf$$.dir; then
26075 rm -f conf$$.dir/conf$$.file
26076 else
26077 rm -f conf$$.dir
26078 mkdir conf$$.dir 2>/dev/null
26079 fi
26080 if (echo >conf$$.file) 2>/dev/null; then
26081 if ln -s conf$$.file conf$$ 2>/dev/null; then
26082 as_ln_s='ln -s'
26083 # ... but there are two gotchas:
26084 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26085 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26086 # In both cases, we have to default to `cp -pR'.
26087 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26088 as_ln_s='cp -pR'
26089 elif ln conf$$.file conf$$ 2>/dev/null; then
26090 as_ln_s=ln
26091 else
26092 as_ln_s='cp -pR'
26093 fi
26094 else
26095 as_ln_s='cp -pR'
26096 fi
26097 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26098 rmdir conf$$.dir 2>/dev/null
26099
26100
26101 # as_fn_mkdir_p
26102 # -------------
26103 # Create "$as_dir" as a directory, including parents if necessary.
26104 as_fn_mkdir_p ()
26105 {
26106
26107 case $as_dir in #(
26108 -*) as_dir=./$as_dir;;
26109 esac
26110 test -d "$as_dir" || eval $as_mkdir_p || {
26111 as_dirs=
26112 while :; do
26113 case $as_dir in #(
26114 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26115 *) as_qdir=$as_dir;;
26116 esac
26117 as_dirs="'$as_qdir' $as_dirs"
26118 as_dir=`$as_dirname -- "$as_dir" ||
26119 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26120 X"$as_dir" : 'X\(//\)[^/]' \| \
26121 X"$as_dir" : 'X\(//\)$' \| \
26122 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26123 $as_echo X"$as_dir" |
26124 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26125 s//\1/
26126 q
26127 }
26128 /^X\(\/\/\)[^/].*/{
26129 s//\1/
26130 q
26131 }
26132 /^X\(\/\/\)$/{
26133 s//\1/
26134 q
26135 }
26136 /^X\(\/\).*/{
26137 s//\1/
26138 q
26139 }
26140 s/.*/./; q'`
26141 test -d "$as_dir" && break
26142 done
26143 test -z "$as_dirs" || eval "mkdir $as_dirs"
26144 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
26145
26146
26147 } # as_fn_mkdir_p
26148 if mkdir -p . 2>/dev/null; then
26149 as_mkdir_p='mkdir -p "$as_dir"'
26150 else
26151 test -d ./-p && rmdir ./-p
26152 as_mkdir_p=false
26153 fi
26154
26155
26156 # as_fn_executable_p FILE
26157 # -----------------------
26158 # Test if FILE is an executable regular file.
26159 as_fn_executable_p ()
26160 {
26161 test -f "$1" && test -x "$1"
26162 } # as_fn_executable_p
26163 as_test_x='test -x'
26164 as_executable_p=as_fn_executable_p
26165
26166 # Sed expression to map a string onto a valid CPP name.
26167 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26168
26169 # Sed expression to map a string onto a valid variable name.
26170 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26171
26172
26173 exec 6>&1
26174 ## ----------------------------------- ##
26175 ## Main body of $CONFIG_STATUS script. ##
26176 ## ----------------------------------- ##
26177 _ASEOF
26178 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
26179
26180 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26181 # Save the log message, to keep $0 and so on meaningful, and to
26182 # report actual input values of CONFIG_FILES etc. instead of their
26183 # values after options handling.
26184 ac_log="
26185 This file was extended by libgnu $as_me UNUSED-VERSION, which was
26186 generated by GNU Autoconf 2.69. Invocation command line was
26187
26188 CONFIG_FILES = $CONFIG_FILES
26189 CONFIG_HEADERS = $CONFIG_HEADERS
26190 CONFIG_LINKS = $CONFIG_LINKS
26191 CONFIG_COMMANDS = $CONFIG_COMMANDS
26192 $ $0 $@
26193
26194 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26195 "
26196
26197 _ACEOF
26198
26199 case $ac_config_files in *"
26200 "*) set x $ac_config_files; shift; ac_config_files=$*;;
26201 esac
26202
26203 case $ac_config_headers in *"
26204 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
26205 esac
26206
26207
26208 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26209 # Files that config.status was made for.
26210 config_files="$ac_config_files"
26211 config_headers="$ac_config_headers"
26212 config_commands="$ac_config_commands"
26213
26214 _ACEOF
26215
26216 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26217 ac_cs_usage="\
26218 \`$as_me' instantiates files and other configuration actions
26219 from templates according to the current configuration. Unless the files
26220 and actions are specified as TAGs, all are instantiated by default.
26221
26222 Usage: $0 [OPTION]... [TAG]...
26223
26224 -h, --help print this help, then exit
26225 -V, --version print version number and configuration settings, then exit
26226 --config print configuration, then exit
26227 -q, --quiet, --silent
26228 do not print progress messages
26229 -d, --debug don't remove temporary files
26230 --recheck update $as_me by reconfiguring in the same conditions
26231 --file=FILE[:TEMPLATE]
26232 instantiate the configuration file FILE
26233 --header=FILE[:TEMPLATE]
26234 instantiate the configuration header FILE
26235
26236 Configuration files:
26237 $config_files
26238
26239 Configuration headers:
26240 $config_headers
26241
26242 Configuration commands:
26243 $config_commands
26244
26245 Report bugs to the package provider."
26246
26247 _ACEOF
26248 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26249 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
26250 ac_cs_version="\\
26251 libgnu config.status UNUSED-VERSION
26252 configured by $0, generated by GNU Autoconf 2.69,
26253 with options \\"\$ac_cs_config\\"
26254
26255 Copyright (C) 2012 Free Software Foundation, Inc.
26256 This config.status script is free software; the Free Software Foundation
26257 gives unlimited permission to copy, distribute and modify it."
26258
26259 ac_pwd='$ac_pwd'
26260 srcdir='$srcdir'
26261 INSTALL='$INSTALL'
26262 MKDIR_P='$MKDIR_P'
26263 AWK='$AWK'
26264 test -n "\$AWK" || AWK=awk
26265 _ACEOF
26266
26267 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26268 # The default lists apply if the user does not specify any file.
26269 ac_need_defaults=:
26270 while test $# != 0
26271 do
26272 case $1 in
26273 --*=?*)
26274 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26275 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26276 ac_shift=:
26277 ;;
26278 --*=)
26279 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26280 ac_optarg=
26281 ac_shift=:
26282 ;;
26283 *)
26284 ac_option=$1
26285 ac_optarg=$2
26286 ac_shift=shift
26287 ;;
26288 esac
26289
26290 case $ac_option in
26291 # Handling of the options.
26292 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26293 ac_cs_recheck=: ;;
26294 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26295 $as_echo "$ac_cs_version"; exit ;;
26296 --config | --confi | --conf | --con | --co | --c )
26297 $as_echo "$ac_cs_config"; exit ;;
26298 --debug | --debu | --deb | --de | --d | -d )
26299 debug=: ;;
26300 --file | --fil | --fi | --f )
26301 $ac_shift
26302 case $ac_optarg in
26303 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26304 '') as_fn_error $? "missing file argument" ;;
26305 esac
26306 as_fn_append CONFIG_FILES " '$ac_optarg'"
26307 ac_need_defaults=false;;
26308 --header | --heade | --head | --hea )
26309 $ac_shift
26310 case $ac_optarg in
26311 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26312 esac
26313 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
26314 ac_need_defaults=false;;
26315 --he | --h)
26316 # Conflict between --help and --header
26317 as_fn_error $? "ambiguous option: \`$1'
26318 Try \`$0 --help' for more information.";;
26319 --help | --hel | -h )
26320 $as_echo "$ac_cs_usage"; exit ;;
26321 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26322 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26323 ac_cs_silent=: ;;
26324
26325 # This is an error.
26326 -*) as_fn_error $? "unrecognized option: \`$1'
26327 Try \`$0 --help' for more information." ;;
26328
26329 *) as_fn_append ac_config_targets " $1"
26330 ac_need_defaults=false ;;
26331
26332 esac
26333 shift
26334 done
26335
26336 ac_configure_extra_args=
26337
26338 if $ac_cs_silent; then
26339 exec 6>/dev/null
26340 ac_configure_extra_args="$ac_configure_extra_args --silent"
26341 fi
26342
26343 _ACEOF
26344 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26345 if \$ac_cs_recheck; then
26346 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26347 shift
26348 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26349 CONFIG_SHELL='$SHELL'
26350 export CONFIG_SHELL
26351 exec "\$@"
26352 fi
26353
26354 _ACEOF
26355 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26356 exec 5>>config.log
26357 {
26358 echo
26359 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26360 ## Running $as_me. ##
26361 _ASBOX
26362 $as_echo "$ac_log"
26363 } >&5
26364
26365 _ACEOF
26366 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26367 #
26368 # INIT-COMMANDS
26369 #
26370 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
26371
26372 _ACEOF
26373
26374 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26375
26376 # Handling of arguments.
26377 for ac_config_target in $ac_config_targets
26378 do
26379 case $ac_config_target in
26380 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
26381 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26382 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26383 "import/Makefile") CONFIG_FILES="$CONFIG_FILES import/Makefile" ;;
26384 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
26385
26386 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
26387 esac
26388 done
26389
26390
26391 # If the user did not use the arguments to specify the items to instantiate,
26392 # then the envvar interface is used. Set only those that are not.
26393 # We use the long form for the default assignment because of an extremely
26394 # bizarre bug on SunOS 4.1.3.
26395 if $ac_need_defaults; then
26396 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26397 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26398 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26399 fi
26400
26401 # Have a temporary directory for convenience. Make it in the build tree
26402 # simply because there is no reason against having it here, and in addition,
26403 # creating and moving files from /tmp can sometimes cause problems.
26404 # Hook for its removal unless debugging.
26405 # Note that there is a small window in which the directory will not be cleaned:
26406 # after its creation but before its name has been assigned to `$tmp'.
26407 $debug ||
26408 {
26409 tmp= ac_tmp=
26410 trap 'exit_status=$?
26411 : "${ac_tmp:=$tmp}"
26412 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
26413 ' 0
26414 trap 'as_fn_exit 1' 1 2 13 15
26415 }
26416 # Create a (secure) tmp directory for tmp files.
26417
26418 {
26419 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26420 test -d "$tmp"
26421 } ||
26422 {
26423 tmp=./conf$$-$RANDOM
26424 (umask 077 && mkdir "$tmp")
26425 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
26426 ac_tmp=$tmp
26427
26428 # Set up the scripts for CONFIG_FILES section.
26429 # No need to generate them if there are no CONFIG_FILES.
26430 # This happens for instance with `./config.status config.h'.
26431 if test -n "$CONFIG_FILES"; then
26432
26433
26434 ac_cr=`echo X | tr X '\015'`
26435 # On cygwin, bash can eat \r inside `` if the user requested igncr.
26436 # But we know of no other shell where ac_cr would be empty at this
26437 # point, so we can use a bashism as a fallback.
26438 if test "x$ac_cr" = x; then
26439 eval ac_cr=\$\'\\r\'
26440 fi
26441 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26442 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26443 ac_cs_awk_cr='\\r'
26444 else
26445 ac_cs_awk_cr=$ac_cr
26446 fi
26447
26448 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
26449 _ACEOF
26450
26451
26452 {
26453 echo "cat >conf$$subs.awk <<_ACEOF" &&
26454 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26455 echo "_ACEOF"
26456 } >conf$$subs.sh ||
26457 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
26458 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
26459 ac_delim='%!_!# '
26460 for ac_last_try in false false false false false :; do
26461 . ./conf$$subs.sh ||
26462 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
26463
26464 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
26465 if test $ac_delim_n = $ac_delim_num; then
26466 break
26467 elif $ac_last_try; then
26468 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
26469 else
26470 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26471 fi
26472 done
26473 rm -f conf$$subs.sh
26474
26475 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26476 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
26477 _ACEOF
26478 sed -n '
26479 h
26480 s/^/S["/; s/!.*/"]=/
26481 p
26482 g
26483 s/^[^!]*!//
26484 :repl
26485 t repl
26486 s/'"$ac_delim"'$//
26487 t delim
26488 :nl
26489 h
26490 s/\(.\{148\}\)..*/\1/
26491 t more1
26492 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26493 p
26494 n
26495 b repl
26496 :more1
26497 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26498 p
26499 g
26500 s/.\{148\}//
26501 t nl
26502 :delim
26503 h
26504 s/\(.\{148\}\)..*/\1/
26505 t more2
26506 s/["\\]/\\&/g; s/^/"/; s/$/"/
26507 p
26508 b
26509 :more2
26510 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26511 p
26512 g
26513 s/.\{148\}//
26514 t delim
26515 ' <conf$$subs.awk | sed '
26516 /^[^""]/{
26517 N
26518 s/\n//
26519 }
26520 ' >>$CONFIG_STATUS || ac_write_fail=1
26521 rm -f conf$$subs.awk
26522 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26523 _ACAWK
26524 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
26525 for (key in S) S_is_set[key] = 1
26526 FS = "\a"
26527
26528 }
26529 {
26530 line = $ 0
26531 nfields = split(line, field, "@")
26532 substed = 0
26533 len = length(field[1])
26534 for (i = 2; i < nfields; i++) {
26535 key = field[i]
26536 keylen = length(key)
26537 if (S_is_set[key]) {
26538 value = S[key]
26539 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26540 len += length(value) + length(field[++i])
26541 substed = 1
26542 } else
26543 len += 1 + keylen
26544 }
26545
26546 print line
26547 }
26548
26549 _ACAWK
26550 _ACEOF
26551 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26552 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26553 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26554 else
26555 cat
26556 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
26557 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
26558 _ACEOF
26559
26560 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
26561 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
26562 # trailing colons and then remove the whole line if VPATH becomes empty
26563 # (actually we leave an empty line to preserve line numbers).
26564 if test "x$srcdir" = x.; then
26565 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
26566 h
26567 s///
26568 s/^/:/
26569 s/[ ]*$/:/
26570 s/:\$(srcdir):/:/g
26571 s/:\${srcdir}:/:/g
26572 s/:@srcdir@:/:/g
26573 s/^:*//
26574 s/:*$//
26575 x
26576 s/\(=[ ]*\).*/\1/
26577 G
26578 s/\n//
26579 s/^[^=]*=[ ]*$//
26580 }'
26581 fi
26582
26583 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26584 fi # test -n "$CONFIG_FILES"
26585
26586 # Set up the scripts for CONFIG_HEADERS section.
26587 # No need to generate them if there are no CONFIG_HEADERS.
26588 # This happens for instance with `./config.status Makefile'.
26589 if test -n "$CONFIG_HEADERS"; then
26590 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
26591 BEGIN {
26592 _ACEOF
26593
26594 # Transform confdefs.h into an awk script `defines.awk', embedded as
26595 # here-document in config.status, that substitutes the proper values into
26596 # config.h.in to produce config.h.
26597
26598 # Create a delimiter string that does not exist in confdefs.h, to ease
26599 # handling of long lines.
26600 ac_delim='%!_!# '
26601 for ac_last_try in false false :; do
26602 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
26603 if test -z "$ac_tt"; then
26604 break
26605 elif $ac_last_try; then
26606 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
26607 else
26608 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26609 fi
26610 done
26611
26612 # For the awk script, D is an array of macro values keyed by name,
26613 # likewise P contains macro parameters if any. Preserve backslash
26614 # newline sequences.
26615
26616 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26617 sed -n '
26618 s/.\{148\}/&'"$ac_delim"'/g
26619 t rset
26620 :rset
26621 s/^[ ]*#[ ]*define[ ][ ]*/ /
26622 t def
26623 d
26624 :def
26625 s/\\$//
26626 t bsnl
26627 s/["\\]/\\&/g
26628 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26629 D["\1"]=" \3"/p
26630 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
26631 d
26632 :bsnl
26633 s/["\\]/\\&/g
26634 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26635 D["\1"]=" \3\\\\\\n"\\/p
26636 t cont
26637 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26638 t cont
26639 d
26640 :cont
26641 n
26642 s/.\{148\}/&'"$ac_delim"'/g
26643 t clear
26644 :clear
26645 s/\\$//
26646 t bsnlc
26647 s/["\\]/\\&/g; s/^/"/; s/$/"/p
26648 d
26649 :bsnlc
26650 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26651 b cont
26652 ' <confdefs.h | sed '
26653 s/'"$ac_delim"'/"\\\
26654 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26655
26656 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26657 for (key in D) D_is_set[key] = 1
26658 FS = "\a"
26659 }
26660 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26661 line = \$ 0
26662 split(line, arg, " ")
26663 if (arg[1] == "#") {
26664 defundef = arg[2]
26665 mac1 = arg[3]
26666 } else {
26667 defundef = substr(arg[1], 2)
26668 mac1 = arg[2]
26669 }
26670 split(mac1, mac2, "(") #)
26671 macro = mac2[1]
26672 prefix = substr(line, 1, index(line, defundef) - 1)
26673 if (D_is_set[macro]) {
26674 # Preserve the white space surrounding the "#".
26675 print prefix "define", macro P[macro] D[macro]
26676 next
26677 } else {
26678 # Replace #undef with comments. This is necessary, for example,
26679 # in the case of _POSIX_SOURCE, which is predefined and required
26680 # on some systems where configure will not decide to define it.
26681 if (defundef == "undef") {
26682 print "/*", prefix defundef, macro, "*/"
26683 next
26684 }
26685 }
26686 }
26687 { print }
26688 _ACAWK
26689 _ACEOF
26690 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26691 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
26692 fi # test -n "$CONFIG_HEADERS"
26693
26694
26695 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
26696 shift
26697 for ac_tag
26698 do
26699 case $ac_tag in
26700 :[FHLC]) ac_mode=$ac_tag; continue;;
26701 esac
26702 case $ac_mode$ac_tag in
26703 :[FHL]*:*);;
26704 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
26705 :[FH]-) ac_tag=-:-;;
26706 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26707 esac
26708 ac_save_IFS=$IFS
26709 IFS=:
26710 set x $ac_tag
26711 IFS=$ac_save_IFS
26712 shift
26713 ac_file=$1
26714 shift
26715
26716 case $ac_mode in
26717 :L) ac_source=$1;;
26718 :[FH])
26719 ac_file_inputs=
26720 for ac_f
26721 do
26722 case $ac_f in
26723 -) ac_f="$ac_tmp/stdin";;
26724 *) # Look for the file first in the build tree, then in the source tree
26725 # (if the path is not absolute). The absolute path cannot be DOS-style,
26726 # because $ac_f cannot contain `:'.
26727 test -f "$ac_f" ||
26728 case $ac_f in
26729 [\\/$]*) false;;
26730 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26731 esac ||
26732 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
26733 esac
26734 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26735 as_fn_append ac_file_inputs " '$ac_f'"
26736 done
26737
26738 # Let's still pretend it is `configure' which instantiates (i.e., don't
26739 # use $as_me), people would be surprised to read:
26740 # /* config.h. Generated by config.status. */
26741 configure_input='Generated from '`
26742 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26743 `' by configure.'
26744 if test x"$ac_file" != x-; then
26745 configure_input="$ac_file. $configure_input"
26746 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26747 $as_echo "$as_me: creating $ac_file" >&6;}
26748 fi
26749 # Neutralize special characters interpreted by sed in replacement strings.
26750 case $configure_input in #(
26751 *\&* | *\|* | *\\* )
26752 ac_sed_conf_input=`$as_echo "$configure_input" |
26753 sed 's/[\\\\&|]/\\\\&/g'`;; #(
26754 *) ac_sed_conf_input=$configure_input;;
26755 esac
26756
26757 case $ac_tag in
26758 *:-:* | *:-) cat >"$ac_tmp/stdin" \
26759 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
26760 esac
26761 ;;
26762 esac
26763
26764 ac_dir=`$as_dirname -- "$ac_file" ||
26765 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26766 X"$ac_file" : 'X\(//\)[^/]' \| \
26767 X"$ac_file" : 'X\(//\)$' \| \
26768 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26769 $as_echo X"$ac_file" |
26770 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26771 s//\1/
26772 q
26773 }
26774 /^X\(\/\/\)[^/].*/{
26775 s//\1/
26776 q
26777 }
26778 /^X\(\/\/\)$/{
26779 s//\1/
26780 q
26781 }
26782 /^X\(\/\).*/{
26783 s//\1/
26784 q
26785 }
26786 s/.*/./; q'`
26787 as_dir="$ac_dir"; as_fn_mkdir_p
26788 ac_builddir=.
26789
26790 case "$ac_dir" in
26791 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26792 *)
26793 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26794 # A ".." for each directory in $ac_dir_suffix.
26795 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26796 case $ac_top_builddir_sub in
26797 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26798 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26799 esac ;;
26800 esac
26801 ac_abs_top_builddir=$ac_pwd
26802 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26803 # for backward compatibility:
26804 ac_top_builddir=$ac_top_build_prefix
26805
26806 case $srcdir in
26807 .) # We are building in place.
26808 ac_srcdir=.
26809 ac_top_srcdir=$ac_top_builddir_sub
26810 ac_abs_top_srcdir=$ac_pwd ;;
26811 [\\/]* | ?:[\\/]* ) # Absolute name.
26812 ac_srcdir=$srcdir$ac_dir_suffix;
26813 ac_top_srcdir=$srcdir
26814 ac_abs_top_srcdir=$srcdir ;;
26815 *) # Relative name.
26816 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26817 ac_top_srcdir=$ac_top_build_prefix$srcdir
26818 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26819 esac
26820 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26821
26822
26823 case $ac_mode in
26824 :F)
26825 #
26826 # CONFIG_FILE
26827 #
26828
26829 case $INSTALL in
26830 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26831 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26832 esac
26833 ac_MKDIR_P=$MKDIR_P
26834 case $MKDIR_P in
26835 [\\/$]* | ?:[\\/]* ) ;;
26836 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
26837 esac
26838 _ACEOF
26839
26840 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26841 # If the template does not know about datarootdir, expand it.
26842 # FIXME: This hack should be removed a few years after 2.60.
26843 ac_datarootdir_hack=; ac_datarootdir_seen=
26844 ac_sed_dataroot='
26845 /datarootdir/ {
26846 p
26847 q
26848 }
26849 /@datadir@/p
26850 /@docdir@/p
26851 /@infodir@/p
26852 /@localedir@/p
26853 /@mandir@/p'
26854 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26855 *datarootdir*) ac_datarootdir_seen=yes;;
26856 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26858 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26859 _ACEOF
26860 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26861 ac_datarootdir_hack='
26862 s&@datadir@&$datadir&g
26863 s&@docdir@&$docdir&g
26864 s&@infodir@&$infodir&g
26865 s&@localedir@&$localedir&g
26866 s&@mandir@&$mandir&g
26867 s&\\\${datarootdir}&$datarootdir&g' ;;
26868 esac
26869 _ACEOF
26870
26871 # Neutralize VPATH when `$srcdir' = `.'.
26872 # Shell code in configure.ac might set extrasub.
26873 # FIXME: do we really want to maintain this feature?
26874 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26875 ac_sed_extra="$ac_vpsub
26876 $extrasub
26877 _ACEOF
26878 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26879 :t
26880 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26881 s|@configure_input@|$ac_sed_conf_input|;t t
26882 s&@top_builddir@&$ac_top_builddir_sub&;t t
26883 s&@top_build_prefix@&$ac_top_build_prefix&;t t
26884 s&@srcdir@&$ac_srcdir&;t t
26885 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26886 s&@top_srcdir@&$ac_top_srcdir&;t t
26887 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26888 s&@builddir@&$ac_builddir&;t t
26889 s&@abs_builddir@&$ac_abs_builddir&;t t
26890 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26891 s&@INSTALL@&$ac_INSTALL&;t t
26892 s&@MKDIR_P@&$ac_MKDIR_P&;t t
26893 $ac_datarootdir_hack
26894 "
26895 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
26896 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26897
26898 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26899 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
26900 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
26901 "$ac_tmp/out"`; test -z "$ac_out"; } &&
26902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26903 which seems to be undefined. Please make sure it is defined" >&5
26904 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26905 which seems to be undefined. Please make sure it is defined" >&2;}
26906
26907 rm -f "$ac_tmp/stdin"
26908 case $ac_file in
26909 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
26910 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
26911 esac \
26912 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26913 ;;
26914 :H)
26915 #
26916 # CONFIG_HEADER
26917 #
26918 if test x"$ac_file" != x-; then
26919 {
26920 $as_echo "/* $configure_input */" \
26921 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
26922 } >"$ac_tmp/config.h" \
26923 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26924 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
26925 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
26926 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26927 else
26928 rm -f "$ac_file"
26929 mv "$ac_tmp/config.h" "$ac_file" \
26930 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26931 fi
26932 else
26933 $as_echo "/* $configure_input */" \
26934 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
26935 || as_fn_error $? "could not create -" "$LINENO" 5
26936 fi
26937 # Compute "$ac_file"'s index in $config_headers.
26938 _am_arg="$ac_file"
26939 _am_stamp_count=1
26940 for _am_header in $config_headers :; do
26941 case $_am_header in
26942 $_am_arg | $_am_arg:* )
26943 break ;;
26944 * )
26945 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
26946 esac
26947 done
26948 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
26949 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26950 X"$_am_arg" : 'X\(//\)[^/]' \| \
26951 X"$_am_arg" : 'X\(//\)$' \| \
26952 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
26953 $as_echo X"$_am_arg" |
26954 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26955 s//\1/
26956 q
26957 }
26958 /^X\(\/\/\)[^/].*/{
26959 s//\1/
26960 q
26961 }
26962 /^X\(\/\/\)$/{
26963 s//\1/
26964 q
26965 }
26966 /^X\(\/\).*/{
26967 s//\1/
26968 q
26969 }
26970 s/.*/./; q'`/stamp-h$_am_stamp_count
26971 ;;
26972
26973 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
26974 $as_echo "$as_me: executing $ac_file commands" >&6;}
26975 ;;
26976 esac
26977
26978
26979 case $ac_file$ac_mode in
26980 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
26981 # Older Autoconf quotes --file arguments for eval, but not when files
26982 # are listed without --file. Let's play safe and only enable the eval
26983 # if we detect the quoting.
26984 case $CONFIG_FILES in
26985 *\'*) eval set x "$CONFIG_FILES" ;;
26986 *) set x $CONFIG_FILES ;;
26987 esac
26988 shift
26989 for mf
26990 do
26991 # Strip MF so we end up with the name of the file.
26992 mf=`echo "$mf" | sed -e 's/:.*$//'`
26993 # Check whether this is an Automake generated Makefile or not.
26994 # We used to match only the files named 'Makefile.in', but
26995 # some people rename them; so instead we look at the file content.
26996 # Grep'ing the first line is not enough: some people post-process
26997 # each Makefile.in and add a new line on top of each file to say so.
26998 # Grep'ing the whole file is not good either: AIX grep has a line
26999 # limit of 2048, but all sed's we know have understand at least 4000.
27000 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
27001 dirpart=`$as_dirname -- "$mf" ||
27002 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27003 X"$mf" : 'X\(//\)[^/]' \| \
27004 X"$mf" : 'X\(//\)$' \| \
27005 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
27006 $as_echo X"$mf" |
27007 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27008 s//\1/
27009 q
27010 }
27011 /^X\(\/\/\)[^/].*/{
27012 s//\1/
27013 q
27014 }
27015 /^X\(\/\/\)$/{
27016 s//\1/
27017 q
27018 }
27019 /^X\(\/\).*/{
27020 s//\1/
27021 q
27022 }
27023 s/.*/./; q'`
27024 else
27025 continue
27026 fi
27027 # Extract the definition of DEPDIR, am__include, and am__quote
27028 # from the Makefile without running 'make'.
27029 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
27030 test -z "$DEPDIR" && continue
27031 am__include=`sed -n 's/^am__include = //p' < "$mf"`
27032 test -z "$am__include" && continue
27033 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
27034 # Find all dependency output files, they are included files with
27035 # $(DEPDIR) in their names. We invoke sed twice because it is the
27036 # simplest approach to changing $(DEPDIR) to its actual value in the
27037 # expansion.
27038 for file in `sed -n "
27039 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
27040 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
27041 # Make sure the directory exists.
27042 test -f "$dirpart/$file" && continue
27043 fdir=`$as_dirname -- "$file" ||
27044 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27045 X"$file" : 'X\(//\)[^/]' \| \
27046 X"$file" : 'X\(//\)$' \| \
27047 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
27048 $as_echo X"$file" |
27049 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27050 s//\1/
27051 q
27052 }
27053 /^X\(\/\/\)[^/].*/{
27054 s//\1/
27055 q
27056 }
27057 /^X\(\/\/\)$/{
27058 s//\1/
27059 q
27060 }
27061 /^X\(\/\).*/{
27062 s//\1/
27063 q
27064 }
27065 s/.*/./; q'`
27066 as_dir=$dirpart/$fdir; as_fn_mkdir_p
27067 # echo "creating $dirpart/$file"
27068 echo '# dummy' > "$dirpart/$file"
27069 done
27070 done
27071 }
27072 ;;
27073 "default":C)
27074 case x$CONFIG_HEADERS in
27075 xconfig.h:config.in)
27076 echo > stamp-h ;;
27077 esac
27078 ;;
27079
27080 esac
27081 done # for ac_tag
27082
27083
27084 as_fn_exit 0
27085 _ACEOF
27086 ac_clean_files=$ac_clean_files_save
27087
27088 test $ac_write_fail = 0 ||
27089 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
27090
27091
27092 # configure is writing to config.log, and then calls config.status.
27093 # config.status does its own redirection, appending to config.log.
27094 # Unfortunately, on DOS this fails, as config.log is still kept open
27095 # by configure, so config.status won't be able to write to it; its
27096 # output is simply discarded. So we exec the FD to /dev/null,
27097 # effectively closing config.log, so it can be properly (re)opened and
27098 # appended to by config.status. When coming back to configure, we
27099 # need to make the FD available again.
27100 if test "$no_create" != yes; then
27101 ac_cs_success=:
27102 ac_config_status_args=
27103 test "$silent" = yes &&
27104 ac_config_status_args="$ac_config_status_args --quiet"
27105 exec 5>/dev/null
27106 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27107 exec 5>>config.log
27108 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27109 # would make configure fail if this is the last instruction.
27110 $ac_cs_success || as_fn_exit 1
27111 fi
27112 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
27113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27114 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
27115 fi
27116
27117
27118 exit 0
This page took 0.714947 seconds and 5 git commands to generate.