Import gnulib's inet_ntop module.
[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_header_list=
623 gl_func_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 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
690 NEXT_WCHAR_H
691 HAVE_UNISTD_H
692 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
693 NEXT_UNISTD_H
694 UNISTD_H_DEFINES_STRUCT_TIMESPEC
695 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
696 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
697 TIME_H_DEFINES_STRUCT_TIMESPEC
698 NEXT_AS_FIRST_DIRECTIVE_TIME_H
699 NEXT_TIME_H
700 REPLACE_LOCALTIME
701 REPLACE_GMTIME
702 REPLACE_TIMEGM
703 REPLACE_NANOSLEEP
704 REPLACE_MKTIME
705 REPLACE_LOCALTIME_R
706 HAVE_TIMEGM
707 HAVE_STRPTIME
708 HAVE_NANOSLEEP
709 HAVE_DECL_LOCALTIME_R
710 GNULIB_TIME_RZ
711 GNULIB_TIME_R
712 GNULIB_TIMEGM
713 GNULIB_STRPTIME
714 GNULIB_NANOSLEEP
715 GNULIB_MKTIME
716 HAVE_SYS_UIO_H
717 NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H
718 NEXT_SYS_UIO_H
719 WINDOWS_64_BIT_OFF_T
720 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
721 NEXT_SYS_TYPES_H
722 NEXT_AS_FIRST_DIRECTIVE_STRING_H
723 NEXT_STRING_H
724 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
725 NEXT_STDLIB_H
726 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
727 NEXT_STDIO_H
728 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
729 NEXT_STDDEF_H
730 GL_GENERATE_STDDEF_H_FALSE
731 GL_GENERATE_STDDEF_H_TRUE
732 STDDEF_H
733 HAVE_WCHAR_T
734 HAVE_MAX_ALIGN_T
735 REPLACE_NULL
736 HAVE__BOOL
737 GL_GENERATE_STDBOOL_H_FALSE
738 GL_GENERATE_STDBOOL_H_TRUE
739 STDBOOL_H
740 GL_GENERATE_STDALIGN_H_FALSE
741 GL_GENERATE_STDALIGN_H_TRUE
742 STDALIGN_H
743 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
744 NEXT_SIGNAL_H
745 REPLACE_RAISE
746 REPLACE_PTHREAD_SIGMASK
747 HAVE_SIGHANDLER_T
748 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
749 HAVE_STRUCT_SIGACTION_SA_SIGACTION
750 HAVE_SIGACTION
751 HAVE_SIGINFO_T
752 HAVE_SIGSET_T
753 HAVE_RAISE
754 HAVE_PTHREAD_SIGMASK
755 HAVE_POSIX_SIGNALBLOCKING
756 GNULIB_SIGACTION
757 GNULIB_SIGPROCMASK
758 GNULIB_SIGNAL_H_SIGPIPE
759 GNULIB_RAISE
760 GNULIB_PTHREAD_SIGMASK
761 REPLACE_VSPRINTF
762 REPLACE_VSNPRINTF
763 REPLACE_VPRINTF
764 REPLACE_VFPRINTF
765 REPLACE_VDPRINTF
766 REPLACE_VASPRINTF
767 REPLACE_TMPFILE
768 REPLACE_STDIO_WRITE_FUNCS
769 REPLACE_STDIO_READ_FUNCS
770 REPLACE_SPRINTF
771 REPLACE_SNPRINTF
772 REPLACE_RENAMEAT
773 REPLACE_RENAME
774 REPLACE_REMOVE
775 REPLACE_PRINTF
776 REPLACE_POPEN
777 REPLACE_PERROR
778 REPLACE_OBSTACK_PRINTF
779 REPLACE_GETLINE
780 REPLACE_GETDELIM
781 REPLACE_FTELLO
782 REPLACE_FTELL
783 REPLACE_FSEEKO
784 REPLACE_FSEEK
785 REPLACE_FREOPEN
786 REPLACE_FPURGE
787 REPLACE_FPRINTF
788 REPLACE_FOPEN
789 REPLACE_FFLUSH
790 REPLACE_FDOPEN
791 REPLACE_FCLOSE
792 REPLACE_DPRINTF
793 HAVE_VDPRINTF
794 HAVE_VASPRINTF
795 HAVE_RENAMEAT
796 HAVE_POPEN
797 HAVE_PCLOSE
798 HAVE_FTELLO
799 HAVE_FSEEKO
800 HAVE_DPRINTF
801 HAVE_DECL_VSNPRINTF
802 HAVE_DECL_SNPRINTF
803 HAVE_DECL_OBSTACK_PRINTF
804 HAVE_DECL_GETLINE
805 HAVE_DECL_GETDELIM
806 HAVE_DECL_FTELLO
807 HAVE_DECL_FSEEKO
808 HAVE_DECL_FPURGE
809 GNULIB_VSPRINTF_POSIX
810 GNULIB_VSNPRINTF
811 GNULIB_VPRINTF_POSIX
812 GNULIB_VPRINTF
813 GNULIB_VFPRINTF_POSIX
814 GNULIB_VFPRINTF
815 GNULIB_VDPRINTF
816 GNULIB_VSCANF
817 GNULIB_VFSCANF
818 GNULIB_VASPRINTF
819 GNULIB_TMPFILE
820 GNULIB_STDIO_H_SIGPIPE
821 GNULIB_STDIO_H_NONBLOCKING
822 GNULIB_SPRINTF_POSIX
823 GNULIB_SNPRINTF
824 GNULIB_SCANF
825 GNULIB_RENAMEAT
826 GNULIB_RENAME
827 GNULIB_REMOVE
828 GNULIB_PUTS
829 GNULIB_PUTCHAR
830 GNULIB_PUTC
831 GNULIB_PRINTF_POSIX
832 GNULIB_PRINTF
833 GNULIB_POPEN
834 GNULIB_PERROR
835 GNULIB_PCLOSE
836 GNULIB_OBSTACK_PRINTF_POSIX
837 GNULIB_OBSTACK_PRINTF
838 GNULIB_GETLINE
839 GNULIB_GETDELIM
840 GNULIB_GETCHAR
841 GNULIB_GETC
842 GNULIB_FWRITE
843 GNULIB_FTELLO
844 GNULIB_FTELL
845 GNULIB_FSEEKO
846 GNULIB_FSEEK
847 GNULIB_FSCANF
848 GNULIB_FREOPEN
849 GNULIB_FREAD
850 GNULIB_FPUTS
851 GNULIB_FPUTC
852 GNULIB_FPURGE
853 GNULIB_FPRINTF_POSIX
854 GNULIB_FPRINTF
855 GNULIB_FOPEN
856 GNULIB_FGETS
857 GNULIB_FGETC
858 GNULIB_FFLUSH
859 GNULIB_FDOPEN
860 GNULIB_FCLOSE
861 GNULIB_DPRINTF
862 GL_GENERATE_NETINET_IN_H_FALSE
863 GL_GENERATE_NETINET_IN_H_TRUE
864 NETINET_IN_H
865 HAVE_NETINET_IN_H
866 NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H
867 NEXT_NETINET_IN_H
868 UNDEFINE_STRTOK_R
869 REPLACE_STRTOK_R
870 REPLACE_STRSIGNAL
871 REPLACE_STRNLEN
872 REPLACE_STRNDUP
873 REPLACE_STRNCAT
874 REPLACE_STRERROR_R
875 REPLACE_STRERROR
876 REPLACE_STRCHRNUL
877 REPLACE_STRCASESTR
878 REPLACE_STRSTR
879 REPLACE_STRDUP
880 REPLACE_STPNCPY
881 REPLACE_MEMMEM
882 REPLACE_MEMCHR
883 HAVE_STRVERSCMP
884 HAVE_DECL_STRSIGNAL
885 HAVE_DECL_STRERROR_R
886 HAVE_DECL_STRTOK_R
887 HAVE_STRCASESTR
888 HAVE_STRSEP
889 HAVE_STRPBRK
890 HAVE_DECL_STRNLEN
891 HAVE_DECL_STRNDUP
892 HAVE_DECL_STRDUP
893 HAVE_STRCHRNUL
894 HAVE_STPNCPY
895 HAVE_STPCPY
896 HAVE_RAWMEMCHR
897 HAVE_DECL_MEMRCHR
898 HAVE_MEMPCPY
899 HAVE_DECL_MEMMEM
900 HAVE_MEMCHR
901 HAVE_FFSLL
902 HAVE_FFSL
903 HAVE_MBSLEN
904 GNULIB_STRVERSCMP
905 GNULIB_STRSIGNAL
906 GNULIB_STRERROR_R
907 GNULIB_STRERROR
908 GNULIB_MBSTOK_R
909 GNULIB_MBSSEP
910 GNULIB_MBSSPN
911 GNULIB_MBSPBRK
912 GNULIB_MBSCSPN
913 GNULIB_MBSCASESTR
914 GNULIB_MBSPCASECMP
915 GNULIB_MBSNCASECMP
916 GNULIB_MBSCASECMP
917 GNULIB_MBSSTR
918 GNULIB_MBSRCHR
919 GNULIB_MBSCHR
920 GNULIB_MBSNLEN
921 GNULIB_MBSLEN
922 GNULIB_STRTOK_R
923 GNULIB_STRCASESTR
924 GNULIB_STRSTR
925 GNULIB_STRSEP
926 GNULIB_STRPBRK
927 GNULIB_STRNLEN
928 GNULIB_STRNDUP
929 GNULIB_STRNCAT
930 GNULIB_STRDUP
931 GNULIB_STRCHRNUL
932 GNULIB_STPNCPY
933 GNULIB_STPCPY
934 GNULIB_RAWMEMCHR
935 GNULIB_MEMRCHR
936 GNULIB_MEMPCPY
937 GNULIB_MEMMEM
938 GNULIB_MEMCHR
939 GNULIB_FFSLL
940 GNULIB_FFSL
941 LOCALE_FR
942 LOCALE_FR_UTF8
943 LOCALE_ZH_CN
944 LOCALE_JA
945 REPLACE_WCSWIDTH
946 REPLACE_WCWIDTH
947 REPLACE_WCSNRTOMBS
948 REPLACE_WCSRTOMBS
949 REPLACE_WCRTOMB
950 REPLACE_MBSNRTOWCS
951 REPLACE_MBSRTOWCS
952 REPLACE_MBRLEN
953 REPLACE_MBRTOWC
954 REPLACE_MBSINIT
955 REPLACE_WCTOB
956 REPLACE_BTOWC
957 REPLACE_MBSTATE_T
958 HAVE_DECL_WCWIDTH
959 HAVE_DECL_WCTOB
960 HAVE_WCSWIDTH
961 HAVE_WCSTOK
962 HAVE_WCSSTR
963 HAVE_WCSPBRK
964 HAVE_WCSSPN
965 HAVE_WCSCSPN
966 HAVE_WCSRCHR
967 HAVE_WCSCHR
968 HAVE_WCSDUP
969 HAVE_WCSXFRM
970 HAVE_WCSCOLL
971 HAVE_WCSNCASECMP
972 HAVE_WCSCASECMP
973 HAVE_WCSNCMP
974 HAVE_WCSCMP
975 HAVE_WCSNCAT
976 HAVE_WCSCAT
977 HAVE_WCPNCPY
978 HAVE_WCSNCPY
979 HAVE_WCPCPY
980 HAVE_WCSCPY
981 HAVE_WCSNLEN
982 HAVE_WCSLEN
983 HAVE_WMEMSET
984 HAVE_WMEMMOVE
985 HAVE_WMEMCPY
986 HAVE_WMEMCMP
987 HAVE_WMEMCHR
988 HAVE_WCSNRTOMBS
989 HAVE_WCSRTOMBS
990 HAVE_WCRTOMB
991 HAVE_MBSNRTOWCS
992 HAVE_MBSRTOWCS
993 HAVE_MBRLEN
994 HAVE_MBRTOWC
995 HAVE_MBSINIT
996 HAVE_BTOWC
997 GNULIB_WCSWIDTH
998 GNULIB_WCSTOK
999 GNULIB_WCSSTR
1000 GNULIB_WCSPBRK
1001 GNULIB_WCSSPN
1002 GNULIB_WCSCSPN
1003 GNULIB_WCSRCHR
1004 GNULIB_WCSCHR
1005 GNULIB_WCSDUP
1006 GNULIB_WCSXFRM
1007 GNULIB_WCSCOLL
1008 GNULIB_WCSNCASECMP
1009 GNULIB_WCSCASECMP
1010 GNULIB_WCSNCMP
1011 GNULIB_WCSCMP
1012 GNULIB_WCSNCAT
1013 GNULIB_WCSCAT
1014 GNULIB_WCPNCPY
1015 GNULIB_WCSNCPY
1016 GNULIB_WCPCPY
1017 GNULIB_WCSCPY
1018 GNULIB_WCSNLEN
1019 GNULIB_WCSLEN
1020 GNULIB_WMEMSET
1021 GNULIB_WMEMMOVE
1022 GNULIB_WMEMCPY
1023 GNULIB_WMEMCMP
1024 GNULIB_WMEMCHR
1025 GNULIB_WCWIDTH
1026 GNULIB_WCSNRTOMBS
1027 GNULIB_WCSRTOMBS
1028 GNULIB_WCRTOMB
1029 GNULIB_MBSNRTOWCS
1030 GNULIB_MBSRTOWCS
1031 GNULIB_MBRLEN
1032 GNULIB_MBRTOWC
1033 GNULIB_MBSINIT
1034 GNULIB_WCTOB
1035 GNULIB_BTOWC
1036 NEXT_AS_FIRST_DIRECTIVE_MATH_H
1037 NEXT_MATH_H
1038 LOCALCHARSET_TESTS_ENVIRONMENT
1039 GLIBC21
1040 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
1041 NEXT_INTTYPES_H
1042 UINT64_MAX_EQ_ULONG_MAX
1043 UINT32_MAX_LT_UINTMAX_MAX
1044 PRIPTR_PREFIX
1045 PRI_MACROS_BROKEN
1046 INT64_MAX_EQ_LONG_MAX
1047 INT32_MAX_LT_INTMAX_MAX
1048 REPLACE_STRTOUMAX
1049 REPLACE_STRTOIMAX
1050 HAVE_DECL_STRTOUMAX
1051 HAVE_DECL_STRTOIMAX
1052 HAVE_DECL_IMAXDIV
1053 HAVE_DECL_IMAXABS
1054 GNULIB_STRTOUMAX
1055 GNULIB_STRTOIMAX
1056 GNULIB_IMAXDIV
1057 GNULIB_IMAXABS
1058 GL_GENERATE_STDINT_H_FALSE
1059 GL_GENERATE_STDINT_H_TRUE
1060 STDINT_H
1061 HAVE_SYS_INTTYPES_H
1062 HAVE_SYS_BITYPES_H
1063 HAVE_C99_STDINT_H
1064 WINT_T_SUFFIX
1065 WCHAR_T_SUFFIX
1066 SIG_ATOMIC_T_SUFFIX
1067 SIZE_T_SUFFIX
1068 PTRDIFF_T_SUFFIX
1069 HAVE_SIGNED_WINT_T
1070 HAVE_SIGNED_WCHAR_T
1071 HAVE_SIGNED_SIG_ATOMIC_T
1072 BITSIZEOF_WINT_T
1073 BITSIZEOF_WCHAR_T
1074 BITSIZEOF_SIG_ATOMIC_T
1075 BITSIZEOF_SIZE_T
1076 BITSIZEOF_PTRDIFF_T
1077 APPLE_UNIVERSAL_BUILD
1078 HAVE_STDINT_H
1079 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
1080 NEXT_STDINT_H
1081 HAVE_SYS_TYPES_H
1082 HAVE_INTTYPES_H
1083 HAVE_WCHAR_H
1084 HAVE_UNSIGNED_LONG_LONG_INT
1085 HAVE_LONG_LONG_INT
1086 GL_GENERATE_LIMITS_H_FALSE
1087 GL_GENERATE_LIMITS_H_TRUE
1088 LIMITS_H
1089 NEXT_AS_FIRST_DIRECTIVE_LIMITS_H
1090 NEXT_LIMITS_H
1091 HAVE_WS2TCPIP_H
1092 HAVE_SYS_SOCKET_H
1093 NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H
1094 NEXT_SYS_SOCKET_H
1095 HAVE_ACCEPT4
1096 HAVE_SA_FAMILY_T
1097 HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY
1098 HAVE_STRUCT_SOCKADDR_STORAGE
1099 GNULIB_ACCEPT4
1100 GNULIB_SHUTDOWN
1101 GNULIB_SETSOCKOPT
1102 GNULIB_SENDTO
1103 GNULIB_RECVFROM
1104 GNULIB_SEND
1105 GNULIB_RECV
1106 GNULIB_LISTEN
1107 GNULIB_GETSOCKOPT
1108 GNULIB_GETSOCKNAME
1109 GNULIB_GETPEERNAME
1110 GNULIB_BIND
1111 GNULIB_ACCEPT
1112 GNULIB_CONNECT
1113 GNULIB_SOCKET
1114 INET_NTOP_LIB
1115 HAVE_SYS_CDEFS_H
1116 GL_GENERATE_GLOB_H_FALSE
1117 GL_GENERATE_GLOB_H_TRUE
1118 GLOB_H
1119 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
1120 NEXT_SYS_TIME_H
1121 REPLACE_STRUCT_TIMEVAL
1122 REPLACE_GETTIMEOFDAY
1123 HAVE_TIMEZONE_T
1124 HAVE_SYS_TIME_H
1125 HAVE_STRUCT_TIMEVAL
1126 HAVE_GETTIMEOFDAY
1127 GNULIB_GETTIMEOFDAY
1128 LTLIBINTL
1129 LIBINTL
1130 WINDOWS_64_BIT_ST_SIZE
1131 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
1132 NEXT_SYS_STAT_H
1133 REPLACE_UTIMENSAT
1134 REPLACE_STAT
1135 REPLACE_MKNOD
1136 REPLACE_MKFIFO
1137 REPLACE_MKDIR
1138 REPLACE_LSTAT
1139 REPLACE_FUTIMENS
1140 REPLACE_FSTATAT
1141 REPLACE_FSTAT
1142 HAVE_UTIMENSAT
1143 HAVE_MKNODAT
1144 HAVE_MKNOD
1145 HAVE_MKFIFOAT
1146 HAVE_MKFIFO
1147 HAVE_MKDIRAT
1148 HAVE_LSTAT
1149 HAVE_LCHMOD
1150 HAVE_FUTIMENS
1151 HAVE_FSTATAT
1152 HAVE_FCHMODAT
1153 GNULIB_UTIMENSAT
1154 GNULIB_STAT
1155 GNULIB_MKNODAT
1156 GNULIB_MKNOD
1157 GNULIB_MKFIFOAT
1158 GNULIB_MKFIFO
1159 GNULIB_MKDIRAT
1160 GNULIB_LSTAT
1161 GNULIB_LCHMOD
1162 GNULIB_FUTIMENS
1163 GNULIB_FSTATAT
1164 GNULIB_FSTAT
1165 GNULIB_FCHMODAT
1166 FREXPL_LIBM
1167 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
1168 FREXP_LIBM
1169 REPLACE_TRUNCL
1170 REPLACE_TRUNCF
1171 REPLACE_TRUNC
1172 REPLACE_SQRTL
1173 REPLACE_SIGNBIT_USING_GCC
1174 REPLACE_SIGNBIT
1175 REPLACE_ROUNDL
1176 REPLACE_ROUNDF
1177 REPLACE_ROUND
1178 REPLACE_REMAINDERL
1179 REPLACE_REMAINDERF
1180 REPLACE_REMAINDER
1181 REPLACE_NAN
1182 REPLACE_MODFL
1183 REPLACE_MODFF
1184 REPLACE_MODF
1185 REPLACE_LOGBL
1186 REPLACE_LOGBF
1187 REPLACE_LOGB
1188 REPLACE_LOG2L
1189 REPLACE_LOG2F
1190 REPLACE_LOG2
1191 REPLACE_LOG1PL
1192 REPLACE_LOG1PF
1193 REPLACE_LOG1P
1194 REPLACE_LOG10L
1195 REPLACE_LOG10F
1196 REPLACE_LOG10
1197 REPLACE_LOGL
1198 REPLACE_LOGF
1199 REPLACE_LOG
1200 REPLACE_LDEXPL
1201 REPLACE_ISNAN
1202 REPLACE_ISINF
1203 REPLACE_ISFINITE
1204 REPLACE_ILOGBF
1205 REPLACE_ILOGB
1206 REPLACE_HYPOTL
1207 REPLACE_HYPOTF
1208 REPLACE_HYPOT
1209 REPLACE_HUGE_VAL
1210 REPLACE_FREXPL
1211 REPLACE_FREXP
1212 REPLACE_FREXPF
1213 REPLACE_FMODL
1214 REPLACE_FMODF
1215 REPLACE_FMOD
1216 REPLACE_FMAL
1217 REPLACE_FMAF
1218 REPLACE_FMA
1219 REPLACE_FLOORL
1220 REPLACE_FLOORF
1221 REPLACE_FLOOR
1222 REPLACE_FABSL
1223 REPLACE_EXP2L
1224 REPLACE_EXP2
1225 REPLACE_EXPM1F
1226 REPLACE_EXPM1
1227 REPLACE_CEILL
1228 REPLACE_CEILF
1229 REPLACE_CEIL
1230 REPLACE_CBRTL
1231 REPLACE_CBRTF
1232 HAVE_DECL_TRUNCL
1233 HAVE_DECL_TRUNCF
1234 HAVE_DECL_TRUNC
1235 HAVE_DECL_TANL
1236 HAVE_DECL_SQRTL
1237 HAVE_DECL_SINL
1238 HAVE_DECL_ROUNDL
1239 HAVE_DECL_ROUNDF
1240 HAVE_DECL_ROUND
1241 HAVE_DECL_RINTF
1242 HAVE_DECL_REMAINDERL
1243 HAVE_DECL_REMAINDER
1244 HAVE_DECL_LOGB
1245 HAVE_DECL_LOG2L
1246 HAVE_DECL_LOG2F
1247 HAVE_DECL_LOG2
1248 HAVE_DECL_LOG10L
1249 HAVE_DECL_LOGL
1250 HAVE_DECL_LDEXPL
1251 HAVE_DECL_FREXPL
1252 HAVE_DECL_FLOORL
1253 HAVE_DECL_FLOORF
1254 HAVE_DECL_EXPM1L
1255 HAVE_DECL_EXP2L
1256 HAVE_DECL_EXP2F
1257 HAVE_DECL_EXP2
1258 HAVE_DECL_EXPL
1259 HAVE_DECL_COSL
1260 HAVE_DECL_COPYSIGNF
1261 HAVE_DECL_CEILL
1262 HAVE_DECL_CEILF
1263 HAVE_DECL_CBRTL
1264 HAVE_DECL_CBRTF
1265 HAVE_DECL_ATANL
1266 HAVE_DECL_ASINL
1267 HAVE_DECL_ACOSL
1268 HAVE_TANHF
1269 HAVE_TANL
1270 HAVE_TANF
1271 HAVE_SQRTL
1272 HAVE_SQRTF
1273 HAVE_SINHF
1274 HAVE_SINL
1275 HAVE_SINF
1276 HAVE_RINTL
1277 HAVE_RINT
1278 HAVE_REMAINDERF
1279 HAVE_REMAINDER
1280 HAVE_POWF
1281 HAVE_MODFL
1282 HAVE_MODFF
1283 HAVE_LOGBL
1284 HAVE_LOGBF
1285 HAVE_LOG1PL
1286 HAVE_LOG1PF
1287 HAVE_LOG1P
1288 HAVE_LOG10L
1289 HAVE_LOG10F
1290 HAVE_LOGL
1291 HAVE_LOGF
1292 HAVE_LDEXPF
1293 HAVE_ISNANL
1294 HAVE_ISNAND
1295 HAVE_ISNANF
1296 HAVE_ILOGBL
1297 HAVE_ILOGBF
1298 HAVE_ILOGB
1299 HAVE_HYPOTL
1300 HAVE_HYPOTF
1301 HAVE_FREXPF
1302 HAVE_FMODL
1303 HAVE_FMODF
1304 HAVE_FMAL
1305 HAVE_FMAF
1306 HAVE_FMA
1307 HAVE_FABSL
1308 HAVE_FABSF
1309 HAVE_EXPM1F
1310 HAVE_EXPM1
1311 HAVE_EXPL
1312 HAVE_EXPF
1313 HAVE_COSHF
1314 HAVE_COSL
1315 HAVE_COSF
1316 HAVE_COPYSIGNL
1317 HAVE_COPYSIGN
1318 HAVE_CBRTL
1319 HAVE_CBRTF
1320 HAVE_CBRT
1321 HAVE_ATAN2F
1322 HAVE_ATANL
1323 HAVE_ATANF
1324 HAVE_ASINL
1325 HAVE_ASINF
1326 HAVE_ACOSL
1327 HAVE_ACOSF
1328 GNULIB_TRUNCL
1329 GNULIB_TRUNCF
1330 GNULIB_TRUNC
1331 GNULIB_TANHF
1332 GNULIB_TANL
1333 GNULIB_TANF
1334 GNULIB_SQRTL
1335 GNULIB_SQRTF
1336 GNULIB_SINHF
1337 GNULIB_SINL
1338 GNULIB_SINF
1339 GNULIB_SIGNBIT
1340 GNULIB_ROUNDL
1341 GNULIB_ROUNDF
1342 GNULIB_ROUND
1343 GNULIB_RINTL
1344 GNULIB_RINTF
1345 GNULIB_RINT
1346 GNULIB_REMAINDERL
1347 GNULIB_REMAINDERF
1348 GNULIB_REMAINDER
1349 GNULIB_POWF
1350 GNULIB_MODFL
1351 GNULIB_MODFF
1352 GNULIB_MODF
1353 GNULIB_LOGBL
1354 GNULIB_LOGBF
1355 GNULIB_LOGB
1356 GNULIB_LOG2L
1357 GNULIB_LOG2F
1358 GNULIB_LOG2
1359 GNULIB_LOG1PL
1360 GNULIB_LOG1PF
1361 GNULIB_LOG1P
1362 GNULIB_LOG10L
1363 GNULIB_LOG10F
1364 GNULIB_LOG10
1365 GNULIB_LOGL
1366 GNULIB_LOGF
1367 GNULIB_LOG
1368 GNULIB_LDEXPL
1369 GNULIB_LDEXPF
1370 GNULIB_ISNANL
1371 GNULIB_ISNAND
1372 GNULIB_ISNANF
1373 GNULIB_ISNAN
1374 GNULIB_ISINF
1375 GNULIB_ISFINITE
1376 GNULIB_ILOGBL
1377 GNULIB_ILOGBF
1378 GNULIB_ILOGB
1379 GNULIB_HYPOTL
1380 GNULIB_HYPOTF
1381 GNULIB_HYPOT
1382 GNULIB_FREXPL
1383 GNULIB_FREXP
1384 GNULIB_FREXPF
1385 GNULIB_FMODL
1386 GNULIB_FMODF
1387 GNULIB_FMOD
1388 GNULIB_FMAL
1389 GNULIB_FMAF
1390 GNULIB_FMA
1391 GNULIB_FLOORL
1392 GNULIB_FLOORF
1393 GNULIB_FLOOR
1394 GNULIB_FABSL
1395 GNULIB_FABSF
1396 GNULIB_EXPM1L
1397 GNULIB_EXPM1F
1398 GNULIB_EXPM1
1399 GNULIB_EXP2L
1400 GNULIB_EXP2F
1401 GNULIB_EXP2
1402 GNULIB_EXPL
1403 GNULIB_EXPF
1404 GNULIB_COSHF
1405 GNULIB_COSL
1406 GNULIB_COSF
1407 GNULIB_COPYSIGNL
1408 GNULIB_COPYSIGNF
1409 GNULIB_COPYSIGN
1410 GNULIB_CEILL
1411 GNULIB_CEILF
1412 GNULIB_CEIL
1413 GNULIB_CBRTL
1414 GNULIB_CBRTF
1415 GNULIB_CBRT
1416 GNULIB_ATAN2F
1417 GNULIB_ATANL
1418 GNULIB_ATANF
1419 GNULIB_ASINL
1420 GNULIB_ASINF
1421 GNULIB_ACOSL
1422 GNULIB_ACOSF
1423 GL_GENERATE_FNMATCH_H_FALSE
1424 GL_GENERATE_FNMATCH_H_TRUE
1425 FNMATCH_H
1426 REPLACE_ITOLD
1427 GL_GENERATE_FLOAT_H_FALSE
1428 GL_GENERATE_FLOAT_H_TRUE
1429 FLOAT_H
1430 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1431 NEXT_FLOAT_H
1432 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
1433 NEXT_FCNTL_H
1434 REPLACE_OPENAT
1435 REPLACE_OPEN
1436 REPLACE_FCNTL
1437 HAVE_OPENAT
1438 HAVE_FCNTL
1439 GNULIB_OPENAT
1440 GNULIB_OPEN
1441 GNULIB_NONBLOCKING
1442 GNULIB_FCNTL
1443 EOVERFLOW_VALUE
1444 EOVERFLOW_HIDDEN
1445 ENOLINK_VALUE
1446 ENOLINK_HIDDEN
1447 EMULTIHOP_VALUE
1448 EMULTIHOP_HIDDEN
1449 GL_GENERATE_ERRNO_H_FALSE
1450 GL_GENERATE_ERRNO_H_TRUE
1451 ERRNO_H
1452 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1453 NEXT_ERRNO_H
1454 HAVE_DIRENT_H
1455 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
1456 NEXT_DIRENT_H
1457 pkglibexecdir
1458 runstatedir
1459 lispdir
1460 REPLACE_FDOPENDIR
1461 REPLACE_DIRFD
1462 REPLACE_CLOSEDIR
1463 REPLACE_OPENDIR
1464 HAVE_ALPHASORT
1465 HAVE_SCANDIR
1466 HAVE_FDOPENDIR
1467 HAVE_DECL_FDOPENDIR
1468 HAVE_DECL_DIRFD
1469 HAVE_CLOSEDIR
1470 HAVE_REWINDDIR
1471 HAVE_READDIR
1472 HAVE_OPENDIR
1473 GNULIB_ALPHASORT
1474 GNULIB_SCANDIR
1475 GNULIB_FDOPENDIR
1476 GNULIB_DIRFD
1477 GNULIB_CLOSEDIR
1478 GNULIB_REWINDDIR
1479 GNULIB_READDIR
1480 GNULIB_OPENDIR
1481 HAVE_WINSOCK2_H
1482 HAVE_MSVC_INVALID_PARAMETER_HANDLER
1483 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1484 UNISTD_H_HAVE_WINSOCK2_H
1485 REPLACE_WRITE
1486 REPLACE_USLEEP
1487 REPLACE_UNLINKAT
1488 REPLACE_UNLINK
1489 REPLACE_TTYNAME_R
1490 REPLACE_SYMLINKAT
1491 REPLACE_SYMLINK
1492 REPLACE_SLEEP
1493 REPLACE_RMDIR
1494 REPLACE_READLINKAT
1495 REPLACE_READLINK
1496 REPLACE_READ
1497 REPLACE_PWRITE
1498 REPLACE_PREAD
1499 REPLACE_LSEEK
1500 REPLACE_LINKAT
1501 REPLACE_LINK
1502 REPLACE_LCHOWN
1503 REPLACE_ISATTY
1504 REPLACE_GETPAGESIZE
1505 REPLACE_GETGROUPS
1506 REPLACE_GETLOGIN_R
1507 REPLACE_GETDTABLESIZE
1508 REPLACE_GETDOMAINNAME
1509 REPLACE_GETCWD
1510 REPLACE_FTRUNCATE
1511 REPLACE_FCHOWNAT
1512 REPLACE_DUP2
1513 REPLACE_DUP
1514 REPLACE_CLOSE
1515 REPLACE_CHOWN
1516 HAVE_SYS_PARAM_H
1517 HAVE_OS_H
1518 HAVE_DECL_TTYNAME_R
1519 HAVE_DECL_SETHOSTNAME
1520 HAVE_DECL_GETUSERSHELL
1521 HAVE_DECL_GETPAGESIZE
1522 HAVE_DECL_GETLOGIN_R
1523 HAVE_DECL_GETDOMAINNAME
1524 HAVE_DECL_FDATASYNC
1525 HAVE_DECL_FCHDIR
1526 HAVE_DECL_ENVIRON
1527 HAVE_USLEEP
1528 HAVE_UNLINKAT
1529 HAVE_SYMLINKAT
1530 HAVE_SYMLINK
1531 HAVE_SLEEP
1532 HAVE_SETHOSTNAME
1533 HAVE_READLINKAT
1534 HAVE_READLINK
1535 HAVE_PWRITE
1536 HAVE_PREAD
1537 HAVE_PIPE2
1538 HAVE_PIPE
1539 HAVE_LINKAT
1540 HAVE_LINK
1541 HAVE_LCHOWN
1542 HAVE_GROUP_MEMBER
1543 HAVE_GETPAGESIZE
1544 HAVE_GETLOGIN
1545 HAVE_GETHOSTNAME
1546 HAVE_GETGROUPS
1547 HAVE_GETDTABLESIZE
1548 HAVE_FTRUNCATE
1549 HAVE_FSYNC
1550 HAVE_FDATASYNC
1551 HAVE_FCHOWNAT
1552 HAVE_FCHDIR
1553 HAVE_FACCESSAT
1554 HAVE_EUIDACCESS
1555 HAVE_DUP3
1556 HAVE_DUP2
1557 HAVE_CHOWN
1558 GNULIB_WRITE
1559 GNULIB_USLEEP
1560 GNULIB_UNLINKAT
1561 GNULIB_UNLINK
1562 GNULIB_UNISTD_H_SIGPIPE
1563 GNULIB_UNISTD_H_NONBLOCKING
1564 GNULIB_TTYNAME_R
1565 GNULIB_SYMLINKAT
1566 GNULIB_SYMLINK
1567 GNULIB_SLEEP
1568 GNULIB_SETHOSTNAME
1569 GNULIB_RMDIR
1570 GNULIB_READLINKAT
1571 GNULIB_READLINK
1572 GNULIB_READ
1573 GNULIB_PWRITE
1574 GNULIB_PREAD
1575 GNULIB_PIPE2
1576 GNULIB_PIPE
1577 GNULIB_LSEEK
1578 GNULIB_LINKAT
1579 GNULIB_LINK
1580 GNULIB_LCHOWN
1581 GNULIB_ISATTY
1582 GNULIB_GROUP_MEMBER
1583 GNULIB_GETUSERSHELL
1584 GNULIB_GETPAGESIZE
1585 GNULIB_GETLOGIN_R
1586 GNULIB_GETLOGIN
1587 GNULIB_GETHOSTNAME
1588 GNULIB_GETGROUPS
1589 GNULIB_GETDTABLESIZE
1590 GNULIB_GETDOMAINNAME
1591 GNULIB_GETCWD
1592 GNULIB_FTRUNCATE
1593 GNULIB_FSYNC
1594 GNULIB_FDATASYNC
1595 GNULIB_FCHOWNAT
1596 GNULIB_FCHDIR
1597 GNULIB_FACCESSAT
1598 GNULIB_EUIDACCESS
1599 GNULIB_ENVIRON
1600 GNULIB_DUP3
1601 GNULIB_DUP2
1602 GNULIB_DUP
1603 GNULIB_CLOSE
1604 GNULIB_CHOWN
1605 GNULIB_CHDIR
1606 REPLACE_WCTOMB
1607 REPLACE_UNSETENV
1608 REPLACE_STRTOD
1609 REPLACE_SETENV
1610 REPLACE_REALPATH
1611 REPLACE_REALLOC
1612 REPLACE_RANDOM_R
1613 REPLACE_QSORT_R
1614 REPLACE_PUTENV
1615 REPLACE_PTSNAME_R
1616 REPLACE_PTSNAME
1617 REPLACE_MKSTEMP
1618 REPLACE_MBTOWC
1619 REPLACE_MALLOC
1620 REPLACE_CANONICALIZE_FILE_NAME
1621 REPLACE_CALLOC
1622 HAVE_DECL_UNSETENV
1623 HAVE_UNLOCKPT
1624 HAVE_SYS_LOADAVG_H
1625 HAVE_STRUCT_RANDOM_DATA
1626 HAVE_STRTOULL
1627 HAVE_STRTOLL
1628 HAVE_STRTOD
1629 HAVE_DECL_SETENV
1630 HAVE_SETENV
1631 HAVE_SECURE_GETENV
1632 HAVE_RPMATCH
1633 HAVE_REALPATH
1634 HAVE_RANDOM_R
1635 HAVE_RANDOM_H
1636 HAVE_RANDOM
1637 HAVE_QSORT_R
1638 HAVE_PTSNAME_R
1639 HAVE_PTSNAME
1640 HAVE_POSIX_OPENPT
1641 HAVE_MKSTEMPS
1642 HAVE_MKSTEMP
1643 HAVE_MKOSTEMPS
1644 HAVE_MKOSTEMP
1645 HAVE_MKDTEMP
1646 HAVE_GRANTPT
1647 HAVE_GETSUBOPT
1648 HAVE_DECL_GETLOADAVG
1649 HAVE_CANONICALIZE_FILE_NAME
1650 HAVE_ATOLL
1651 HAVE__EXIT
1652 GNULIB_WCTOMB
1653 GNULIB_UNSETENV
1654 GNULIB_UNLOCKPT
1655 GNULIB_SYSTEM_POSIX
1656 GNULIB_STRTOULL
1657 GNULIB_STRTOLL
1658 GNULIB_STRTOD
1659 GNULIB_SETENV
1660 GNULIB_SECURE_GETENV
1661 GNULIB_RPMATCH
1662 GNULIB_REALPATH
1663 GNULIB_REALLOC_POSIX
1664 GNULIB_RANDOM_R
1665 GNULIB_RANDOM
1666 GNULIB_QSORT_R
1667 GNULIB_PUTENV
1668 GNULIB_PTSNAME_R
1669 GNULIB_PTSNAME
1670 GNULIB_POSIX_OPENPT
1671 GNULIB_MKSTEMPS
1672 GNULIB_MKSTEMP
1673 GNULIB_MKOSTEMPS
1674 GNULIB_MKOSTEMP
1675 GNULIB_MKDTEMP
1676 GNULIB_MBTOWC
1677 GNULIB_MALLOC_POSIX
1678 GNULIB_GRANTPT
1679 GNULIB_GETSUBOPT
1680 GNULIB_GETLOADAVG
1681 GNULIB_CANONICALIZE_FILE_NAME
1682 GNULIB_CALLOC_POSIX
1683 GNULIB_ATOLL
1684 GNULIB__EXIT
1685 MKDIR_P
1686 HAVE_FEATURES_H
1687 NEXT_AS_FIRST_DIRECTIVE_ARPA_INET_H
1688 NEXT_ARPA_INET_H
1689 PRAGMA_COLUMNS
1690 PRAGMA_SYSTEM_HEADER
1691 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1692 INCLUDE_NEXT
1693 HAVE_ARPA_INET_H
1694 REPLACE_INET_PTON
1695 REPLACE_INET_NTOP
1696 HAVE_DECL_INET_PTON
1697 HAVE_DECL_INET_NTOP
1698 GNULIB_INET_PTON
1699 GNULIB_INET_NTOP
1700 GL_GENERATE_ALLOCA_H_FALSE
1701 GL_GENERATE_ALLOCA_H_TRUE
1702 ALLOCA_H
1703 ALLOCA
1704 GL_COND_LIBTOOL_FALSE
1705 GL_COND_LIBTOOL_TRUE
1706 target_os
1707 target_vendor
1708 target_cpu
1709 target
1710 host_os
1711 host_vendor
1712 host_cpu
1713 host
1714 build_os
1715 build_vendor
1716 build_cpu
1717 build
1718 RANLIB
1719 ARFLAGS
1720 ac_ct_AR
1721 AR
1722 EGREP
1723 GREP
1724 CPP
1725 OBJEXT
1726 EXEEXT
1727 ac_ct_CC
1728 CPPFLAGS
1729 LDFLAGS
1730 CFLAGS
1731 CC
1732 MAINT
1733 MAINTAINER_MODE_FALSE
1734 MAINTAINER_MODE_TRUE
1735 target_alias
1736 host_alias
1737 build_alias
1738 LIBS
1739 ECHO_T
1740 ECHO_N
1741 ECHO_C
1742 DEFS
1743 mandir
1744 localedir
1745 libdir
1746 psdir
1747 pdfdir
1748 dvidir
1749 htmldir
1750 infodir
1751 docdir
1752 oldincludedir
1753 includedir
1754 localstatedir
1755 sharedstatedir
1756 sysconfdir
1757 datadir
1758 datarootdir
1759 libexecdir
1760 sbindir
1761 bindir
1762 program_transform_name
1763 prefix
1764 exec_prefix
1765 PACKAGE_URL
1766 PACKAGE_BUGREPORT
1767 PACKAGE_STRING
1768 PACKAGE_VERSION
1769 PACKAGE_TARNAME
1770 PACKAGE_NAME
1771 PATH_SEPARATOR
1772 SHELL'
1773 ac_subst_files=''
1774 ac_user_opts='
1775 enable_option_checking
1776 enable_maintainer_mode
1777 enable_largefile
1778 enable_dependency_tracking
1779 enable_silent_rules
1780 '
1781 ac_precious_vars='build_alias
1782 host_alias
1783 target_alias
1784 CC
1785 CFLAGS
1786 LDFLAGS
1787 LIBS
1788 CPPFLAGS
1789 CPP'
1790
1791
1792 # Initialize some variables set by options.
1793 ac_init_help=
1794 ac_init_version=false
1795 ac_unrecognized_opts=
1796 ac_unrecognized_sep=
1797 # The variables have the same names as the options, with
1798 # dashes changed to underlines.
1799 cache_file=/dev/null
1800 exec_prefix=NONE
1801 no_create=
1802 no_recursion=
1803 prefix=NONE
1804 program_prefix=NONE
1805 program_suffix=NONE
1806 program_transform_name=s,x,x,
1807 silent=
1808 site=
1809 srcdir=
1810 verbose=
1811 x_includes=NONE
1812 x_libraries=NONE
1813
1814 # Installation directory options.
1815 # These are left unexpanded so users can "make install exec_prefix=/foo"
1816 # and all the variables that are supposed to be based on exec_prefix
1817 # by default will actually change.
1818 # Use braces instead of parens because sh, perl, etc. also accept them.
1819 # (The list follows the same order as the GNU Coding Standards.)
1820 bindir='${exec_prefix}/bin'
1821 sbindir='${exec_prefix}/sbin'
1822 libexecdir='${exec_prefix}/libexec'
1823 datarootdir='${prefix}/share'
1824 datadir='${datarootdir}'
1825 sysconfdir='${prefix}/etc'
1826 sharedstatedir='${prefix}/com'
1827 localstatedir='${prefix}/var'
1828 includedir='${prefix}/include'
1829 oldincludedir='/usr/include'
1830 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1831 infodir='${datarootdir}/info'
1832 htmldir='${docdir}'
1833 dvidir='${docdir}'
1834 pdfdir='${docdir}'
1835 psdir='${docdir}'
1836 libdir='${exec_prefix}/lib'
1837 localedir='${datarootdir}/locale'
1838 mandir='${datarootdir}/man'
1839
1840 ac_prev=
1841 ac_dashdash=
1842 for ac_option
1843 do
1844 # If the previous option needs an argument, assign it.
1845 if test -n "$ac_prev"; then
1846 eval $ac_prev=\$ac_option
1847 ac_prev=
1848 continue
1849 fi
1850
1851 case $ac_option in
1852 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1853 *=) ac_optarg= ;;
1854 *) ac_optarg=yes ;;
1855 esac
1856
1857 # Accept the important Cygnus configure options, so we can diagnose typos.
1858
1859 case $ac_dashdash$ac_option in
1860 --)
1861 ac_dashdash=yes ;;
1862
1863 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1864 ac_prev=bindir ;;
1865 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1866 bindir=$ac_optarg ;;
1867
1868 -build | --build | --buil | --bui | --bu)
1869 ac_prev=build_alias ;;
1870 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1871 build_alias=$ac_optarg ;;
1872
1873 -cache-file | --cache-file | --cache-fil | --cache-fi \
1874 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1875 ac_prev=cache_file ;;
1876 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1877 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1878 cache_file=$ac_optarg ;;
1879
1880 --config-cache | -C)
1881 cache_file=config.cache ;;
1882
1883 -datadir | --datadir | --datadi | --datad)
1884 ac_prev=datadir ;;
1885 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1886 datadir=$ac_optarg ;;
1887
1888 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1889 | --dataroo | --dataro | --datar)
1890 ac_prev=datarootdir ;;
1891 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1892 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1893 datarootdir=$ac_optarg ;;
1894
1895 -disable-* | --disable-*)
1896 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1897 # Reject names that are not valid shell variable names.
1898 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1899 as_fn_error $? "invalid feature name: $ac_useropt"
1900 ac_useropt_orig=$ac_useropt
1901 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1902 case $ac_user_opts in
1903 *"
1904 "enable_$ac_useropt"
1905 "*) ;;
1906 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1907 ac_unrecognized_sep=', ';;
1908 esac
1909 eval enable_$ac_useropt=no ;;
1910
1911 -docdir | --docdir | --docdi | --doc | --do)
1912 ac_prev=docdir ;;
1913 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1914 docdir=$ac_optarg ;;
1915
1916 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1917 ac_prev=dvidir ;;
1918 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1919 dvidir=$ac_optarg ;;
1920
1921 -enable-* | --enable-*)
1922 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1923 # Reject names that are not valid shell variable names.
1924 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1925 as_fn_error $? "invalid feature name: $ac_useropt"
1926 ac_useropt_orig=$ac_useropt
1927 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1928 case $ac_user_opts in
1929 *"
1930 "enable_$ac_useropt"
1931 "*) ;;
1932 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1933 ac_unrecognized_sep=', ';;
1934 esac
1935 eval enable_$ac_useropt=\$ac_optarg ;;
1936
1937 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1938 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1939 | --exec | --exe | --ex)
1940 ac_prev=exec_prefix ;;
1941 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1942 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1943 | --exec=* | --exe=* | --ex=*)
1944 exec_prefix=$ac_optarg ;;
1945
1946 -gas | --gas | --ga | --g)
1947 # Obsolete; use --with-gas.
1948 with_gas=yes ;;
1949
1950 -help | --help | --hel | --he | -h)
1951 ac_init_help=long ;;
1952 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1953 ac_init_help=recursive ;;
1954 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1955 ac_init_help=short ;;
1956
1957 -host | --host | --hos | --ho)
1958 ac_prev=host_alias ;;
1959 -host=* | --host=* | --hos=* | --ho=*)
1960 host_alias=$ac_optarg ;;
1961
1962 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1963 ac_prev=htmldir ;;
1964 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1965 | --ht=*)
1966 htmldir=$ac_optarg ;;
1967
1968 -includedir | --includedir | --includedi | --included | --include \
1969 | --includ | --inclu | --incl | --inc)
1970 ac_prev=includedir ;;
1971 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1972 | --includ=* | --inclu=* | --incl=* | --inc=*)
1973 includedir=$ac_optarg ;;
1974
1975 -infodir | --infodir | --infodi | --infod | --info | --inf)
1976 ac_prev=infodir ;;
1977 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1978 infodir=$ac_optarg ;;
1979
1980 -libdir | --libdir | --libdi | --libd)
1981 ac_prev=libdir ;;
1982 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1983 libdir=$ac_optarg ;;
1984
1985 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1986 | --libexe | --libex | --libe)
1987 ac_prev=libexecdir ;;
1988 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1989 | --libexe=* | --libex=* | --libe=*)
1990 libexecdir=$ac_optarg ;;
1991
1992 -localedir | --localedir | --localedi | --localed | --locale)
1993 ac_prev=localedir ;;
1994 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1995 localedir=$ac_optarg ;;
1996
1997 -localstatedir | --localstatedir | --localstatedi | --localstated \
1998 | --localstate | --localstat | --localsta | --localst | --locals)
1999 ac_prev=localstatedir ;;
2000 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
2001 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
2002 localstatedir=$ac_optarg ;;
2003
2004 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
2005 ac_prev=mandir ;;
2006 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
2007 mandir=$ac_optarg ;;
2008
2009 -nfp | --nfp | --nf)
2010 # Obsolete; use --without-fp.
2011 with_fp=no ;;
2012
2013 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
2014 | --no-cr | --no-c | -n)
2015 no_create=yes ;;
2016
2017 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
2018 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
2019 no_recursion=yes ;;
2020
2021 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
2022 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
2023 | --oldin | --oldi | --old | --ol | --o)
2024 ac_prev=oldincludedir ;;
2025 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
2026 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
2027 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
2028 oldincludedir=$ac_optarg ;;
2029
2030 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
2031 ac_prev=prefix ;;
2032 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
2033 prefix=$ac_optarg ;;
2034
2035 -program-prefix | --program-prefix | --program-prefi | --program-pref \
2036 | --program-pre | --program-pr | --program-p)
2037 ac_prev=program_prefix ;;
2038 -program-prefix=* | --program-prefix=* | --program-prefi=* \
2039 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
2040 program_prefix=$ac_optarg ;;
2041
2042 -program-suffix | --program-suffix | --program-suffi | --program-suff \
2043 | --program-suf | --program-su | --program-s)
2044 ac_prev=program_suffix ;;
2045 -program-suffix=* | --program-suffix=* | --program-suffi=* \
2046 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
2047 program_suffix=$ac_optarg ;;
2048
2049 -program-transform-name | --program-transform-name \
2050 | --program-transform-nam | --program-transform-na \
2051 | --program-transform-n | --program-transform- \
2052 | --program-transform | --program-transfor \
2053 | --program-transfo | --program-transf \
2054 | --program-trans | --program-tran \
2055 | --progr-tra | --program-tr | --program-t)
2056 ac_prev=program_transform_name ;;
2057 -program-transform-name=* | --program-transform-name=* \
2058 | --program-transform-nam=* | --program-transform-na=* \
2059 | --program-transform-n=* | --program-transform-=* \
2060 | --program-transform=* | --program-transfor=* \
2061 | --program-transfo=* | --program-transf=* \
2062 | --program-trans=* | --program-tran=* \
2063 | --progr-tra=* | --program-tr=* | --program-t=*)
2064 program_transform_name=$ac_optarg ;;
2065
2066 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
2067 ac_prev=pdfdir ;;
2068 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
2069 pdfdir=$ac_optarg ;;
2070
2071 -psdir | --psdir | --psdi | --psd | --ps)
2072 ac_prev=psdir ;;
2073 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
2074 psdir=$ac_optarg ;;
2075
2076 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2077 | -silent | --silent | --silen | --sile | --sil)
2078 silent=yes ;;
2079
2080 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
2081 ac_prev=sbindir ;;
2082 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
2083 | --sbi=* | --sb=*)
2084 sbindir=$ac_optarg ;;
2085
2086 -sharedstatedir | --sharedstatedir | --sharedstatedi \
2087 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
2088 | --sharedst | --shareds | --shared | --share | --shar \
2089 | --sha | --sh)
2090 ac_prev=sharedstatedir ;;
2091 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
2092 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
2093 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
2094 | --sha=* | --sh=*)
2095 sharedstatedir=$ac_optarg ;;
2096
2097 -site | --site | --sit)
2098 ac_prev=site ;;
2099 -site=* | --site=* | --sit=*)
2100 site=$ac_optarg ;;
2101
2102 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
2103 ac_prev=srcdir ;;
2104 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
2105 srcdir=$ac_optarg ;;
2106
2107 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
2108 | --syscon | --sysco | --sysc | --sys | --sy)
2109 ac_prev=sysconfdir ;;
2110 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
2111 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
2112 sysconfdir=$ac_optarg ;;
2113
2114 -target | --target | --targe | --targ | --tar | --ta | --t)
2115 ac_prev=target_alias ;;
2116 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
2117 target_alias=$ac_optarg ;;
2118
2119 -v | -verbose | --verbose | --verbos | --verbo | --verb)
2120 verbose=yes ;;
2121
2122 -version | --version | --versio | --versi | --vers | -V)
2123 ac_init_version=: ;;
2124
2125 -with-* | --with-*)
2126 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
2127 # Reject names that are not valid shell variable names.
2128 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2129 as_fn_error $? "invalid package name: $ac_useropt"
2130 ac_useropt_orig=$ac_useropt
2131 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2132 case $ac_user_opts in
2133 *"
2134 "with_$ac_useropt"
2135 "*) ;;
2136 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
2137 ac_unrecognized_sep=', ';;
2138 esac
2139 eval with_$ac_useropt=\$ac_optarg ;;
2140
2141 -without-* | --without-*)
2142 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
2143 # Reject names that are not valid shell variable names.
2144 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2145 as_fn_error $? "invalid package name: $ac_useropt"
2146 ac_useropt_orig=$ac_useropt
2147 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2148 case $ac_user_opts in
2149 *"
2150 "with_$ac_useropt"
2151 "*) ;;
2152 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
2153 ac_unrecognized_sep=', ';;
2154 esac
2155 eval with_$ac_useropt=no ;;
2156
2157 --x)
2158 # Obsolete; use --with-x.
2159 with_x=yes ;;
2160
2161 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
2162 | --x-incl | --x-inc | --x-in | --x-i)
2163 ac_prev=x_includes ;;
2164 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
2165 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
2166 x_includes=$ac_optarg ;;
2167
2168 -x-libraries | --x-libraries | --x-librarie | --x-librari \
2169 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
2170 ac_prev=x_libraries ;;
2171 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
2172 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
2173 x_libraries=$ac_optarg ;;
2174
2175 -*) as_fn_error $? "unrecognized option: \`$ac_option'
2176 Try \`$0 --help' for more information"
2177 ;;
2178
2179 *=*)
2180 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
2181 # Reject names that are not valid shell variable names.
2182 case $ac_envvar in #(
2183 '' | [0-9]* | *[!_$as_cr_alnum]* )
2184 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
2185 esac
2186 eval $ac_envvar=\$ac_optarg
2187 export $ac_envvar ;;
2188
2189 *)
2190 # FIXME: should be removed in autoconf 3.0.
2191 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
2192 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
2193 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
2194 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
2195 ;;
2196
2197 esac
2198 done
2199
2200 if test -n "$ac_prev"; then
2201 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
2202 as_fn_error $? "missing argument to $ac_option"
2203 fi
2204
2205 if test -n "$ac_unrecognized_opts"; then
2206 case $enable_option_checking in
2207 no) ;;
2208 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
2209 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2210 esac
2211 fi
2212
2213 # Check all directory arguments for consistency.
2214 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
2215 datadir sysconfdir sharedstatedir localstatedir includedir \
2216 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2217 libdir localedir mandir
2218 do
2219 eval ac_val=\$$ac_var
2220 # Remove trailing slashes.
2221 case $ac_val in
2222 */ )
2223 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
2224 eval $ac_var=\$ac_val;;
2225 esac
2226 # Be sure to have absolute directory names.
2227 case $ac_val in
2228 [\\/$]* | ?:[\\/]* ) continue;;
2229 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
2230 esac
2231 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
2232 done
2233
2234 # There might be people who depend on the old broken behavior: `$host'
2235 # used to hold the argument of --host etc.
2236 # FIXME: To remove some day.
2237 build=$build_alias
2238 host=$host_alias
2239 target=$target_alias
2240
2241 # FIXME: To remove some day.
2242 if test "x$host_alias" != x; then
2243 if test "x$build_alias" = x; then
2244 cross_compiling=maybe
2245 elif test "x$build_alias" != "x$host_alias"; then
2246 cross_compiling=yes
2247 fi
2248 fi
2249
2250 ac_tool_prefix=
2251 test -n "$host_alias" && ac_tool_prefix=$host_alias-
2252
2253 test "$silent" = yes && exec 6>/dev/null
2254
2255
2256 ac_pwd=`pwd` && test -n "$ac_pwd" &&
2257 ac_ls_di=`ls -di .` &&
2258 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
2259 as_fn_error $? "working directory cannot be determined"
2260 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2261 as_fn_error $? "pwd does not report name of working directory"
2262
2263
2264 # Find the source files, if location was not specified.
2265 if test -z "$srcdir"; then
2266 ac_srcdir_defaulted=yes
2267 # Try the directory containing this script, then the parent directory.
2268 ac_confdir=`$as_dirname -- "$as_myself" ||
2269 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2270 X"$as_myself" : 'X\(//\)[^/]' \| \
2271 X"$as_myself" : 'X\(//\)$' \| \
2272 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2273 $as_echo X"$as_myself" |
2274 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2275 s//\1/
2276 q
2277 }
2278 /^X\(\/\/\)[^/].*/{
2279 s//\1/
2280 q
2281 }
2282 /^X\(\/\/\)$/{
2283 s//\1/
2284 q
2285 }
2286 /^X\(\/\).*/{
2287 s//\1/
2288 q
2289 }
2290 s/.*/./; q'`
2291 srcdir=$ac_confdir
2292 if test ! -r "$srcdir/$ac_unique_file"; then
2293 srcdir=..
2294 fi
2295 else
2296 ac_srcdir_defaulted=no
2297 fi
2298 if test ! -r "$srcdir/$ac_unique_file"; then
2299 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
2300 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
2301 fi
2302 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
2303 ac_abs_confdir=`(
2304 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
2305 pwd)`
2306 # When building in place, set srcdir=.
2307 if test "$ac_abs_confdir" = "$ac_pwd"; then
2308 srcdir=.
2309 fi
2310 # Remove unnecessary trailing slashes from srcdir.
2311 # Double slashes in file names in object file debugging info
2312 # mess up M-x gdb in Emacs.
2313 case $srcdir in
2314 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2315 esac
2316 for ac_var in $ac_precious_vars; do
2317 eval ac_env_${ac_var}_set=\${${ac_var}+set}
2318 eval ac_env_${ac_var}_value=\$${ac_var}
2319 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
2320 eval ac_cv_env_${ac_var}_value=\$${ac_var}
2321 done
2322
2323 #
2324 # Report the --help message.
2325 #
2326 if test "$ac_init_help" = "long"; then
2327 # Omit some internal or obsolete options to make the list less imposing.
2328 # This message is too long to be a string in the A/UX 3.1 sh.
2329 cat <<_ACEOF
2330 \`configure' configures libgnu UNUSED-VERSION to adapt to many kinds of systems.
2331
2332 Usage: $0 [OPTION]... [VAR=VALUE]...
2333
2334 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2335 VAR=VALUE. See below for descriptions of some of the useful variables.
2336
2337 Defaults for the options are specified in brackets.
2338
2339 Configuration:
2340 -h, --help display this help and exit
2341 --help=short display options specific to this package
2342 --help=recursive display the short help of all the included packages
2343 -V, --version display version information and exit
2344 -q, --quiet, --silent do not print \`checking ...' messages
2345 --cache-file=FILE cache test results in FILE [disabled]
2346 -C, --config-cache alias for \`--cache-file=config.cache'
2347 -n, --no-create do not create output files
2348 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2349
2350 Installation directories:
2351 --prefix=PREFIX install architecture-independent files in PREFIX
2352 [$ac_default_prefix]
2353 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2354 [PREFIX]
2355
2356 By default, \`make install' will install all the files in
2357 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2358 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2359 for instance \`--prefix=\$HOME'.
2360
2361 For better control, use the options below.
2362
2363 Fine tuning of the installation directories:
2364 --bindir=DIR user executables [EPREFIX/bin]
2365 --sbindir=DIR system admin executables [EPREFIX/sbin]
2366 --libexecdir=DIR program executables [EPREFIX/libexec]
2367 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2368 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2369 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2370 --libdir=DIR object code libraries [EPREFIX/lib]
2371 --includedir=DIR C header files [PREFIX/include]
2372 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2373 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2374 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2375 --infodir=DIR info documentation [DATAROOTDIR/info]
2376 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2377 --mandir=DIR man documentation [DATAROOTDIR/man]
2378 --docdir=DIR documentation root [DATAROOTDIR/doc/libgnu]
2379 --htmldir=DIR html documentation [DOCDIR]
2380 --dvidir=DIR dvi documentation [DOCDIR]
2381 --pdfdir=DIR pdf documentation [DOCDIR]
2382 --psdir=DIR ps documentation [DOCDIR]
2383 _ACEOF
2384
2385 cat <<\_ACEOF
2386
2387 Program names:
2388 --program-prefix=PREFIX prepend PREFIX to installed program names
2389 --program-suffix=SUFFIX append SUFFIX to installed program names
2390 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
2391
2392 System types:
2393 --build=BUILD configure for building on BUILD [guessed]
2394 --host=HOST cross-compile to build programs to run on HOST [BUILD]
2395 --target=TARGET configure for building compilers for TARGET [HOST]
2396 _ACEOF
2397 fi
2398
2399 if test -n "$ac_init_help"; then
2400 case $ac_init_help in
2401 short | recursive ) echo "Configuration of libgnu UNUSED-VERSION:";;
2402 esac
2403 cat <<\_ACEOF
2404
2405 Optional Features:
2406 --disable-option-checking ignore unrecognized --enable/--with options
2407 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2408 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2409 --enable-maintainer-mode
2410 enable make rules and dependencies not useful (and
2411 sometimes confusing) to the casual installer
2412 --disable-largefile omit support for large files
2413 --enable-dependency-tracking
2414 do not reject slow dependency extractors
2415 --disable-dependency-tracking
2416 speeds up one-time build
2417 --enable-silent-rules less verbose build output (undo: "make V=1")
2418 --disable-silent-rules verbose build output (undo: "make V=0")
2419
2420 Some influential environment variables:
2421 CC C compiler command
2422 CFLAGS C compiler flags
2423 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2424 nonstandard directory <lib dir>
2425 LIBS libraries to pass to the linker, e.g. -l<library>
2426 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2427 you have headers in a nonstandard directory <include dir>
2428 CPP C preprocessor
2429
2430 Use these variables to override the choices made by `configure' or to help
2431 it to find libraries and programs with nonstandard names/locations.
2432
2433 Report bugs to the package provider.
2434 _ACEOF
2435 ac_status=$?
2436 fi
2437
2438 if test "$ac_init_help" = "recursive"; then
2439 # If there are subdirs, report their specific --help.
2440 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2441 test -d "$ac_dir" ||
2442 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2443 continue
2444 ac_builddir=.
2445
2446 case "$ac_dir" in
2447 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2448 *)
2449 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2450 # A ".." for each directory in $ac_dir_suffix.
2451 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2452 case $ac_top_builddir_sub in
2453 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2454 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2455 esac ;;
2456 esac
2457 ac_abs_top_builddir=$ac_pwd
2458 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2459 # for backward compatibility:
2460 ac_top_builddir=$ac_top_build_prefix
2461
2462 case $srcdir in
2463 .) # We are building in place.
2464 ac_srcdir=.
2465 ac_top_srcdir=$ac_top_builddir_sub
2466 ac_abs_top_srcdir=$ac_pwd ;;
2467 [\\/]* | ?:[\\/]* ) # Absolute name.
2468 ac_srcdir=$srcdir$ac_dir_suffix;
2469 ac_top_srcdir=$srcdir
2470 ac_abs_top_srcdir=$srcdir ;;
2471 *) # Relative name.
2472 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2473 ac_top_srcdir=$ac_top_build_prefix$srcdir
2474 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2475 esac
2476 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2477
2478 cd "$ac_dir" || { ac_status=$?; continue; }
2479 # Check for guested configure.
2480 if test -f "$ac_srcdir/configure.gnu"; then
2481 echo &&
2482 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2483 elif test -f "$ac_srcdir/configure"; then
2484 echo &&
2485 $SHELL "$ac_srcdir/configure" --help=recursive
2486 else
2487 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2488 fi || ac_status=$?
2489 cd "$ac_pwd" || { ac_status=$?; break; }
2490 done
2491 fi
2492
2493 test -n "$ac_init_help" && exit $ac_status
2494 if $ac_init_version; then
2495 cat <<\_ACEOF
2496 libgnu configure UNUSED-VERSION
2497 generated by GNU Autoconf 2.69
2498
2499 Copyright (C) 2012 Free Software Foundation, Inc.
2500 This configure script is free software; the Free Software Foundation
2501 gives unlimited permission to copy, distribute and modify it.
2502 _ACEOF
2503 exit
2504 fi
2505
2506 ## ------------------------ ##
2507 ## Autoconf initialization. ##
2508 ## ------------------------ ##
2509
2510 # ac_fn_c_try_compile LINENO
2511 # --------------------------
2512 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2513 ac_fn_c_try_compile ()
2514 {
2515 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2516 rm -f conftest.$ac_objext
2517 if { { ac_try="$ac_compile"
2518 case "(($ac_try" in
2519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2520 *) ac_try_echo=$ac_try;;
2521 esac
2522 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2523 $as_echo "$ac_try_echo"; } >&5
2524 (eval "$ac_compile") 2>conftest.err
2525 ac_status=$?
2526 if test -s conftest.err; then
2527 grep -v '^ *+' conftest.err >conftest.er1
2528 cat conftest.er1 >&5
2529 mv -f conftest.er1 conftest.err
2530 fi
2531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2532 test $ac_status = 0; } && {
2533 test -z "$ac_c_werror_flag" ||
2534 test ! -s conftest.err
2535 } && test -s conftest.$ac_objext; then :
2536 ac_retval=0
2537 else
2538 $as_echo "$as_me: failed program was:" >&5
2539 sed 's/^/| /' conftest.$ac_ext >&5
2540
2541 ac_retval=1
2542 fi
2543 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2544 as_fn_set_status $ac_retval
2545
2546 } # ac_fn_c_try_compile
2547
2548 # ac_fn_c_try_cpp LINENO
2549 # ----------------------
2550 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2551 ac_fn_c_try_cpp ()
2552 {
2553 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2554 if { { ac_try="$ac_cpp conftest.$ac_ext"
2555 case "(($ac_try" in
2556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2557 *) ac_try_echo=$ac_try;;
2558 esac
2559 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2560 $as_echo "$ac_try_echo"; } >&5
2561 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2562 ac_status=$?
2563 if test -s conftest.err; then
2564 grep -v '^ *+' conftest.err >conftest.er1
2565 cat conftest.er1 >&5
2566 mv -f conftest.er1 conftest.err
2567 fi
2568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2569 test $ac_status = 0; } > conftest.i && {
2570 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2571 test ! -s conftest.err
2572 }; then :
2573 ac_retval=0
2574 else
2575 $as_echo "$as_me: failed program was:" >&5
2576 sed 's/^/| /' conftest.$ac_ext >&5
2577
2578 ac_retval=1
2579 fi
2580 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2581 as_fn_set_status $ac_retval
2582
2583 } # ac_fn_c_try_cpp
2584
2585 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2586 # -------------------------------------------------------
2587 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2588 # the include files in INCLUDES and setting the cache variable VAR
2589 # accordingly.
2590 ac_fn_c_check_header_mongrel ()
2591 {
2592 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2593 if eval \${$3+:} false; then :
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2595 $as_echo_n "checking for $2... " >&6; }
2596 if eval \${$3+:} false; then :
2597 $as_echo_n "(cached) " >&6
2598 fi
2599 eval ac_res=\$$3
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2601 $as_echo "$ac_res" >&6; }
2602 else
2603 # Is the header compilable?
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2605 $as_echo_n "checking $2 usability... " >&6; }
2606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2607 /* end confdefs.h. */
2608 $4
2609 #include <$2>
2610 _ACEOF
2611 if ac_fn_c_try_compile "$LINENO"; then :
2612 ac_header_compiler=yes
2613 else
2614 ac_header_compiler=no
2615 fi
2616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2618 $as_echo "$ac_header_compiler" >&6; }
2619
2620 # Is the header present?
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2622 $as_echo_n "checking $2 presence... " >&6; }
2623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2624 /* end confdefs.h. */
2625 #include <$2>
2626 _ACEOF
2627 if ac_fn_c_try_cpp "$LINENO"; then :
2628 ac_header_preproc=yes
2629 else
2630 ac_header_preproc=no
2631 fi
2632 rm -f conftest.err conftest.i conftest.$ac_ext
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2634 $as_echo "$ac_header_preproc" >&6; }
2635
2636 # So? What about this header?
2637 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2638 yes:no: )
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2640 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2642 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2643 ;;
2644 no:yes:* )
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2646 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2648 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2650 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2652 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2654 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2655 ;;
2656 esac
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2658 $as_echo_n "checking for $2... " >&6; }
2659 if eval \${$3+:} false; then :
2660 $as_echo_n "(cached) " >&6
2661 else
2662 eval "$3=\$ac_header_compiler"
2663 fi
2664 eval ac_res=\$$3
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2666 $as_echo "$ac_res" >&6; }
2667 fi
2668 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2669
2670 } # ac_fn_c_check_header_mongrel
2671
2672 # ac_fn_c_try_run LINENO
2673 # ----------------------
2674 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2675 # that executables *can* be run.
2676 ac_fn_c_try_run ()
2677 {
2678 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2679 if { { ac_try="$ac_link"
2680 case "(($ac_try" in
2681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2682 *) ac_try_echo=$ac_try;;
2683 esac
2684 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2685 $as_echo "$ac_try_echo"; } >&5
2686 (eval "$ac_link") 2>&5
2687 ac_status=$?
2688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2689 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2690 { { case "(($ac_try" in
2691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2692 *) ac_try_echo=$ac_try;;
2693 esac
2694 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2695 $as_echo "$ac_try_echo"; } >&5
2696 (eval "$ac_try") 2>&5
2697 ac_status=$?
2698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2699 test $ac_status = 0; }; }; then :
2700 ac_retval=0
2701 else
2702 $as_echo "$as_me: program exited with status $ac_status" >&5
2703 $as_echo "$as_me: failed program was:" >&5
2704 sed 's/^/| /' conftest.$ac_ext >&5
2705
2706 ac_retval=$ac_status
2707 fi
2708 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2709 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2710 as_fn_set_status $ac_retval
2711
2712 } # ac_fn_c_try_run
2713
2714 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2715 # -------------------------------------------------------
2716 # Tests whether HEADER exists and can be compiled using the include files in
2717 # INCLUDES, setting the cache variable VAR accordingly.
2718 ac_fn_c_check_header_compile ()
2719 {
2720 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2722 $as_echo_n "checking for $2... " >&6; }
2723 if eval \${$3+:} false; then :
2724 $as_echo_n "(cached) " >&6
2725 else
2726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2727 /* end confdefs.h. */
2728 $4
2729 #include <$2>
2730 _ACEOF
2731 if ac_fn_c_try_compile "$LINENO"; then :
2732 eval "$3=yes"
2733 else
2734 eval "$3=no"
2735 fi
2736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2737 fi
2738 eval ac_res=\$$3
2739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2740 $as_echo "$ac_res" >&6; }
2741 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2742
2743 } # ac_fn_c_check_header_compile
2744
2745 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2746 # -------------------------------------------
2747 # Tests whether TYPE exists after having included INCLUDES, setting cache
2748 # variable VAR accordingly.
2749 ac_fn_c_check_type ()
2750 {
2751 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2753 $as_echo_n "checking for $2... " >&6; }
2754 if eval \${$3+:} false; then :
2755 $as_echo_n "(cached) " >&6
2756 else
2757 eval "$3=no"
2758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2759 /* end confdefs.h. */
2760 $4
2761 int
2762 main ()
2763 {
2764 if (sizeof ($2))
2765 return 0;
2766 ;
2767 return 0;
2768 }
2769 _ACEOF
2770 if ac_fn_c_try_compile "$LINENO"; then :
2771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2772 /* end confdefs.h. */
2773 $4
2774 int
2775 main ()
2776 {
2777 if (sizeof (($2)))
2778 return 0;
2779 ;
2780 return 0;
2781 }
2782 _ACEOF
2783 if ac_fn_c_try_compile "$LINENO"; then :
2784
2785 else
2786 eval "$3=yes"
2787 fi
2788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2789 fi
2790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2791 fi
2792 eval ac_res=\$$3
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2794 $as_echo "$ac_res" >&6; }
2795 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2796
2797 } # ac_fn_c_check_type
2798
2799 # ac_fn_c_try_link LINENO
2800 # -----------------------
2801 # Try to link conftest.$ac_ext, and return whether this succeeded.
2802 ac_fn_c_try_link ()
2803 {
2804 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2805 rm -f conftest.$ac_objext conftest$ac_exeext
2806 if { { ac_try="$ac_link"
2807 case "(($ac_try" in
2808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2809 *) ac_try_echo=$ac_try;;
2810 esac
2811 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2812 $as_echo "$ac_try_echo"; } >&5
2813 (eval "$ac_link") 2>conftest.err
2814 ac_status=$?
2815 if test -s conftest.err; then
2816 grep -v '^ *+' conftest.err >conftest.er1
2817 cat conftest.er1 >&5
2818 mv -f conftest.er1 conftest.err
2819 fi
2820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2821 test $ac_status = 0; } && {
2822 test -z "$ac_c_werror_flag" ||
2823 test ! -s conftest.err
2824 } && test -s conftest$ac_exeext && {
2825 test "$cross_compiling" = yes ||
2826 test -x conftest$ac_exeext
2827 }; then :
2828 ac_retval=0
2829 else
2830 $as_echo "$as_me: failed program was:" >&5
2831 sed 's/^/| /' conftest.$ac_ext >&5
2832
2833 ac_retval=1
2834 fi
2835 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2836 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2837 # interfere with the next link command; also delete a directory that is
2838 # left behind by Apple's compiler. We do this before executing the actions.
2839 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2840 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2841 as_fn_set_status $ac_retval
2842
2843 } # ac_fn_c_try_link
2844
2845 # ac_fn_c_check_func LINENO FUNC VAR
2846 # ----------------------------------
2847 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2848 ac_fn_c_check_func ()
2849 {
2850 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2852 $as_echo_n "checking for $2... " >&6; }
2853 if eval \${$3+:} false; then :
2854 $as_echo_n "(cached) " >&6
2855 else
2856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2857 /* end confdefs.h. */
2858 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2859 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2860 #define $2 innocuous_$2
2861
2862 /* System header to define __stub macros and hopefully few prototypes,
2863 which can conflict with char $2 (); below.
2864 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2865 <limits.h> exists even on freestanding compilers. */
2866
2867 #ifdef __STDC__
2868 # include <limits.h>
2869 #else
2870 # include <assert.h>
2871 #endif
2872
2873 #undef $2
2874
2875 /* Override any GCC internal prototype to avoid an error.
2876 Use char because int might match the return type of a GCC
2877 builtin and then its argument prototype would still apply. */
2878 #ifdef __cplusplus
2879 extern "C"
2880 #endif
2881 char $2 ();
2882 /* The GNU C library defines this for functions which it implements
2883 to always fail with ENOSYS. Some functions are actually named
2884 something starting with __ and the normal name is an alias. */
2885 #if defined __stub_$2 || defined __stub___$2
2886 choke me
2887 #endif
2888
2889 int
2890 main ()
2891 {
2892 return $2 ();
2893 ;
2894 return 0;
2895 }
2896 _ACEOF
2897 if ac_fn_c_try_link "$LINENO"; then :
2898 eval "$3=yes"
2899 else
2900 eval "$3=no"
2901 fi
2902 rm -f core conftest.err conftest.$ac_objext \
2903 conftest$ac_exeext conftest.$ac_ext
2904 fi
2905 eval ac_res=\$$3
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2907 $as_echo "$ac_res" >&6; }
2908 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2909
2910 } # ac_fn_c_check_func
2911
2912 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2913 # ---------------------------------------------
2914 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2915 # accordingly.
2916 ac_fn_c_check_decl ()
2917 {
2918 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2919 as_decl_name=`echo $2|sed 's/ *(.*//'`
2920 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2922 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2923 if eval \${$3+:} false; then :
2924 $as_echo_n "(cached) " >&6
2925 else
2926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2927 /* end confdefs.h. */
2928 $4
2929 int
2930 main ()
2931 {
2932 #ifndef $as_decl_name
2933 #ifdef __cplusplus
2934 (void) $as_decl_use;
2935 #else
2936 (void) $as_decl_name;
2937 #endif
2938 #endif
2939
2940 ;
2941 return 0;
2942 }
2943 _ACEOF
2944 if ac_fn_c_try_compile "$LINENO"; then :
2945 eval "$3=yes"
2946 else
2947 eval "$3=no"
2948 fi
2949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2950 fi
2951 eval ac_res=\$$3
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2953 $as_echo "$ac_res" >&6; }
2954 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2955
2956 } # ac_fn_c_check_decl
2957
2958 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2959 # --------------------------------------------
2960 # Tries to find the compile-time value of EXPR in a program that includes
2961 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2962 # computed
2963 ac_fn_c_compute_int ()
2964 {
2965 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2966 if test "$cross_compiling" = yes; then
2967 # Depending upon the size, compute the lo and hi bounds.
2968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2969 /* end confdefs.h. */
2970 $4
2971 int
2972 main ()
2973 {
2974 static int test_array [1 - 2 * !(($2) >= 0)];
2975 test_array [0] = 0;
2976 return test_array [0];
2977
2978 ;
2979 return 0;
2980 }
2981 _ACEOF
2982 if ac_fn_c_try_compile "$LINENO"; then :
2983 ac_lo=0 ac_mid=0
2984 while :; do
2985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2986 /* end confdefs.h. */
2987 $4
2988 int
2989 main ()
2990 {
2991 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2992 test_array [0] = 0;
2993 return test_array [0];
2994
2995 ;
2996 return 0;
2997 }
2998 _ACEOF
2999 if ac_fn_c_try_compile "$LINENO"; then :
3000 ac_hi=$ac_mid; break
3001 else
3002 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
3003 if test $ac_lo -le $ac_mid; then
3004 ac_lo= ac_hi=
3005 break
3006 fi
3007 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
3008 fi
3009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3010 done
3011 else
3012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3013 /* end confdefs.h. */
3014 $4
3015 int
3016 main ()
3017 {
3018 static int test_array [1 - 2 * !(($2) < 0)];
3019 test_array [0] = 0;
3020 return test_array [0];
3021
3022 ;
3023 return 0;
3024 }
3025 _ACEOF
3026 if ac_fn_c_try_compile "$LINENO"; then :
3027 ac_hi=-1 ac_mid=-1
3028 while :; do
3029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3030 /* end confdefs.h. */
3031 $4
3032 int
3033 main ()
3034 {
3035 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
3036 test_array [0] = 0;
3037 return test_array [0];
3038
3039 ;
3040 return 0;
3041 }
3042 _ACEOF
3043 if ac_fn_c_try_compile "$LINENO"; then :
3044 ac_lo=$ac_mid; break
3045 else
3046 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
3047 if test $ac_mid -le $ac_hi; then
3048 ac_lo= ac_hi=
3049 break
3050 fi
3051 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
3052 fi
3053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3054 done
3055 else
3056 ac_lo= ac_hi=
3057 fi
3058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3059 fi
3060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3061 # Binary search between lo and hi bounds.
3062 while test "x$ac_lo" != "x$ac_hi"; do
3063 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
3064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3065 /* end confdefs.h. */
3066 $4
3067 int
3068 main ()
3069 {
3070 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
3071 test_array [0] = 0;
3072 return test_array [0];
3073
3074 ;
3075 return 0;
3076 }
3077 _ACEOF
3078 if ac_fn_c_try_compile "$LINENO"; then :
3079 ac_hi=$ac_mid
3080 else
3081 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
3082 fi
3083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3084 done
3085 case $ac_lo in #((
3086 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
3087 '') ac_retval=1 ;;
3088 esac
3089 else
3090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3091 /* end confdefs.h. */
3092 $4
3093 static long int longval () { return $2; }
3094 static unsigned long int ulongval () { return $2; }
3095 #include <stdio.h>
3096 #include <stdlib.h>
3097 int
3098 main ()
3099 {
3100
3101 FILE *f = fopen ("conftest.val", "w");
3102 if (! f)
3103 return 1;
3104 if (($2) < 0)
3105 {
3106 long int i = longval ();
3107 if (i != ($2))
3108 return 1;
3109 fprintf (f, "%ld", i);
3110 }
3111 else
3112 {
3113 unsigned long int i = ulongval ();
3114 if (i != ($2))
3115 return 1;
3116 fprintf (f, "%lu", i);
3117 }
3118 /* Do not output a trailing newline, as this causes \r\n confusion
3119 on some platforms. */
3120 return ferror (f) || fclose (f) != 0;
3121
3122 ;
3123 return 0;
3124 }
3125 _ACEOF
3126 if ac_fn_c_try_run "$LINENO"; then :
3127 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
3128 else
3129 ac_retval=1
3130 fi
3131 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3132 conftest.$ac_objext conftest.beam conftest.$ac_ext
3133 rm -f conftest.val
3134
3135 fi
3136 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3137 as_fn_set_status $ac_retval
3138
3139 } # ac_fn_c_compute_int
3140
3141 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
3142 # ----------------------------------------------------
3143 # Tries to find if the field MEMBER exists in type AGGR, after including
3144 # INCLUDES, setting cache variable VAR accordingly.
3145 ac_fn_c_check_member ()
3146 {
3147 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
3149 $as_echo_n "checking for $2.$3... " >&6; }
3150 if eval \${$4+:} false; then :
3151 $as_echo_n "(cached) " >&6
3152 else
3153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3154 /* end confdefs.h. */
3155 $5
3156 int
3157 main ()
3158 {
3159 static $2 ac_aggr;
3160 if (ac_aggr.$3)
3161 return 0;
3162 ;
3163 return 0;
3164 }
3165 _ACEOF
3166 if ac_fn_c_try_compile "$LINENO"; then :
3167 eval "$4=yes"
3168 else
3169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3170 /* end confdefs.h. */
3171 $5
3172 int
3173 main ()
3174 {
3175 static $2 ac_aggr;
3176 if (sizeof ac_aggr.$3)
3177 return 0;
3178 ;
3179 return 0;
3180 }
3181 _ACEOF
3182 if ac_fn_c_try_compile "$LINENO"; then :
3183 eval "$4=yes"
3184 else
3185 eval "$4=no"
3186 fi
3187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3188 fi
3189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3190 fi
3191 eval ac_res=\$$4
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3193 $as_echo "$ac_res" >&6; }
3194 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3195
3196 } # ac_fn_c_check_member
3197 cat >config.log <<_ACEOF
3198 This file contains any messages produced by compilers while
3199 running configure, to aid debugging if configure makes a mistake.
3200
3201 It was created by libgnu $as_me UNUSED-VERSION, which was
3202 generated by GNU Autoconf 2.69. Invocation command line was
3203
3204 $ $0 $@
3205
3206 _ACEOF
3207 exec 5>>config.log
3208 {
3209 cat <<_ASUNAME
3210 ## --------- ##
3211 ## Platform. ##
3212 ## --------- ##
3213
3214 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3215 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3216 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3217 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3218 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3219
3220 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3221 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3222
3223 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3224 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3225 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3226 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3227 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3228 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3229 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3230
3231 _ASUNAME
3232
3233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3234 for as_dir in $PATH
3235 do
3236 IFS=$as_save_IFS
3237 test -z "$as_dir" && as_dir=.
3238 $as_echo "PATH: $as_dir"
3239 done
3240 IFS=$as_save_IFS
3241
3242 } >&5
3243
3244 cat >&5 <<_ACEOF
3245
3246
3247 ## ----------- ##
3248 ## Core tests. ##
3249 ## ----------- ##
3250
3251 _ACEOF
3252
3253
3254 # Keep a trace of the command line.
3255 # Strip out --no-create and --no-recursion so they do not pile up.
3256 # Strip out --silent because we don't want to record it for future runs.
3257 # Also quote any args containing shell meta-characters.
3258 # Make two passes to allow for proper duplicate-argument suppression.
3259 ac_configure_args=
3260 ac_configure_args0=
3261 ac_configure_args1=
3262 ac_must_keep_next=false
3263 for ac_pass in 1 2
3264 do
3265 for ac_arg
3266 do
3267 case $ac_arg in
3268 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3269 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3270 | -silent | --silent | --silen | --sile | --sil)
3271 continue ;;
3272 *\'*)
3273 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3274 esac
3275 case $ac_pass in
3276 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3277 2)
3278 as_fn_append ac_configure_args1 " '$ac_arg'"
3279 if test $ac_must_keep_next = true; then
3280 ac_must_keep_next=false # Got value, back to normal.
3281 else
3282 case $ac_arg in
3283 *=* | --config-cache | -C | -disable-* | --disable-* \
3284 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3285 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3286 | -with-* | --with-* | -without-* | --without-* | --x)
3287 case "$ac_configure_args0 " in
3288 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3289 esac
3290 ;;
3291 -* ) ac_must_keep_next=true ;;
3292 esac
3293 fi
3294 as_fn_append ac_configure_args " '$ac_arg'"
3295 ;;
3296 esac
3297 done
3298 done
3299 { ac_configure_args0=; unset ac_configure_args0;}
3300 { ac_configure_args1=; unset ac_configure_args1;}
3301
3302 # When interrupted or exit'd, cleanup temporary files, and complete
3303 # config.log. We remove comments because anyway the quotes in there
3304 # would cause problems or look ugly.
3305 # WARNING: Use '\'' to represent an apostrophe within the trap.
3306 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3307 trap 'exit_status=$?
3308 # Save into config.log some information that might help in debugging.
3309 {
3310 echo
3311
3312 $as_echo "## ---------------- ##
3313 ## Cache variables. ##
3314 ## ---------------- ##"
3315 echo
3316 # The following way of writing the cache mishandles newlines in values,
3317 (
3318 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3319 eval ac_val=\$$ac_var
3320 case $ac_val in #(
3321 *${as_nl}*)
3322 case $ac_var in #(
3323 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3324 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3325 esac
3326 case $ac_var in #(
3327 _ | IFS | as_nl) ;; #(
3328 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3329 *) { eval $ac_var=; unset $ac_var;} ;;
3330 esac ;;
3331 esac
3332 done
3333 (set) 2>&1 |
3334 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3335 *${as_nl}ac_space=\ *)
3336 sed -n \
3337 "s/'\''/'\''\\\\'\'''\''/g;
3338 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3339 ;; #(
3340 *)
3341 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3342 ;;
3343 esac |
3344 sort
3345 )
3346 echo
3347
3348 $as_echo "## ----------------- ##
3349 ## Output variables. ##
3350 ## ----------------- ##"
3351 echo
3352 for ac_var in $ac_subst_vars
3353 do
3354 eval ac_val=\$$ac_var
3355 case $ac_val in
3356 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3357 esac
3358 $as_echo "$ac_var='\''$ac_val'\''"
3359 done | sort
3360 echo
3361
3362 if test -n "$ac_subst_files"; then
3363 $as_echo "## ------------------- ##
3364 ## File substitutions. ##
3365 ## ------------------- ##"
3366 echo
3367 for ac_var in $ac_subst_files
3368 do
3369 eval ac_val=\$$ac_var
3370 case $ac_val in
3371 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3372 esac
3373 $as_echo "$ac_var='\''$ac_val'\''"
3374 done | sort
3375 echo
3376 fi
3377
3378 if test -s confdefs.h; then
3379 $as_echo "## ----------- ##
3380 ## confdefs.h. ##
3381 ## ----------- ##"
3382 echo
3383 cat confdefs.h
3384 echo
3385 fi
3386 test "$ac_signal" != 0 &&
3387 $as_echo "$as_me: caught signal $ac_signal"
3388 $as_echo "$as_me: exit $exit_status"
3389 } >&5
3390 rm -f core *.core core.conftest.* &&
3391 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3392 exit $exit_status
3393 ' 0
3394 for ac_signal in 1 2 13 15; do
3395 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3396 done
3397 ac_signal=0
3398
3399 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3400 rm -f -r conftest* confdefs.h
3401
3402 $as_echo "/* confdefs.h */" > confdefs.h
3403
3404 # Predefined preprocessor variables.
3405
3406 cat >>confdefs.h <<_ACEOF
3407 #define PACKAGE_NAME "$PACKAGE_NAME"
3408 _ACEOF
3409
3410 cat >>confdefs.h <<_ACEOF
3411 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3412 _ACEOF
3413
3414 cat >>confdefs.h <<_ACEOF
3415 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3416 _ACEOF
3417
3418 cat >>confdefs.h <<_ACEOF
3419 #define PACKAGE_STRING "$PACKAGE_STRING"
3420 _ACEOF
3421
3422 cat >>confdefs.h <<_ACEOF
3423 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3424 _ACEOF
3425
3426 cat >>confdefs.h <<_ACEOF
3427 #define PACKAGE_URL "$PACKAGE_URL"
3428 _ACEOF
3429
3430
3431 # Let the site file select an alternate cache file if it wants to.
3432 # Prefer an explicitly selected file to automatically selected ones.
3433 ac_site_file1=NONE
3434 ac_site_file2=NONE
3435 if test -n "$CONFIG_SITE"; then
3436 # We do not want a PATH search for config.site.
3437 case $CONFIG_SITE in #((
3438 -*) ac_site_file1=./$CONFIG_SITE;;
3439 */*) ac_site_file1=$CONFIG_SITE;;
3440 *) ac_site_file1=./$CONFIG_SITE;;
3441 esac
3442 elif test "x$prefix" != xNONE; then
3443 ac_site_file1=$prefix/share/config.site
3444 ac_site_file2=$prefix/etc/config.site
3445 else
3446 ac_site_file1=$ac_default_prefix/share/config.site
3447 ac_site_file2=$ac_default_prefix/etc/config.site
3448 fi
3449 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3450 do
3451 test "x$ac_site_file" = xNONE && continue
3452 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3454 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3455 sed 's/^/| /' "$ac_site_file" >&5
3456 . "$ac_site_file" \
3457 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3458 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3459 as_fn_error $? "failed to load site script $ac_site_file
3460 See \`config.log' for more details" "$LINENO" 5; }
3461 fi
3462 done
3463
3464 if test -r "$cache_file"; then
3465 # Some versions of bash will fail to source /dev/null (special files
3466 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3467 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3469 $as_echo "$as_me: loading cache $cache_file" >&6;}
3470 case $cache_file in
3471 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3472 *) . "./$cache_file";;
3473 esac
3474 fi
3475 else
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3477 $as_echo "$as_me: creating cache $cache_file" >&6;}
3478 >$cache_file
3479 fi
3480
3481 gl_header_list="$gl_header_list arpa/inet.h"
3482 gl_header_list="$gl_header_list features.h"
3483 gl_func_list="$gl_func_list canonicalize_file_name"
3484 gl_func_list="$gl_func_list getcwd"
3485 gl_func_list="$gl_func_list readlink"
3486 gl_func_list="$gl_func_list realpath"
3487 gl_header_list="$gl_header_list sys/param.h"
3488 gl_header_list="$gl_header_list unistd.h"
3489 gl_func_list="$gl_func_list _set_invalid_parameter_handler"
3490 gl_header_list="$gl_header_list sys/socket.h"
3491 gl_func_list="$gl_func_list fchdir"
3492 gl_header_list="$gl_header_list dirent.h"
3493 gl_func_list="$gl_func_list fcntl"
3494 gl_func_list="$gl_func_list symlink"
3495 gl_func_list="$gl_func_list fdopendir"
3496 gl_func_list="$gl_func_list mempcpy"
3497 gl_func_list="$gl_func_list btowc"
3498 gl_func_list="$gl_func_list isblank"
3499 gl_func_list="$gl_func_list iswctype"
3500 gl_func_list="$gl_func_list mbsrtowcs"
3501 gl_func_list="$gl_func_list wmemchr"
3502 gl_func_list="$gl_func_list wmemcpy"
3503 gl_func_list="$gl_func_list wmempcpy"
3504 gl_header_list="$gl_header_list wctype.h"
3505 gl_fnmatch_required=GNU
3506 gl_header_list="$gl_header_list sys/stat.h"
3507 gl_func_list="$gl_func_list fstatat"
3508 gl_func_list="$gl_func_list getdtablesize"
3509 gl_func_list="$gl_func_list getlogin_r"
3510 gl_func_list="$gl_func_list getprogname"
3511 gl_func_list="$gl_func_list getexecname"
3512 gl_header_list="$gl_header_list sys/time.h"
3513 gl_func_list="$gl_func_list gettimeofday"
3514 gl_header_list="$gl_header_list sys/cdefs.h"
3515 gl_func_list="$gl_func_list getpwnam_r"
3516 gl_header_list="$gl_header_list netdb.h"
3517 gl_header_list="$gl_header_list netinet/in.h"
3518 gl_header_list="$gl_header_list limits.h"
3519 gl_header_list="$gl_header_list wchar.h"
3520 gl_header_list="$gl_header_list stdint.h"
3521 gl_header_list="$gl_header_list inttypes.h"
3522 gl_func_list="$gl_func_list lstat"
3523 gl_header_list="$gl_header_list math.h"
3524 gl_func_list="$gl_func_list mbsinit"
3525 gl_func_list="$gl_func_list mbrtowc"
3526 gl_header_list="$gl_header_list sys/mman.h"
3527 gl_func_list="$gl_func_list mprotect"
3528 gl_func_list="$gl_func_list mkstemp"
3529 gl_func_list="$gl_func_list openat"
3530 gl_func_list="$gl_func_list link"
3531 gl_func_list="$gl_func_list secure_getenv"
3532 gl_func_list="$gl_func_list getuid"
3533 gl_func_list="$gl_func_list geteuid"
3534 gl_func_list="$gl_func_list getgid"
3535 gl_func_list="$gl_func_list getegid"
3536 gl_func_list="$gl_func_list setenv"
3537 gl_func_list="$gl_func_list strdup"
3538 gl_header_list="$gl_header_list sys/uio.h"
3539 gl_func_list="$gl_func_list pipe"
3540 gl_func_list="$gl_func_list iswcntrl"
3541 # Check that the precious variables saved in the cache have kept the same
3542 # value.
3543 ac_cache_corrupted=false
3544 for ac_var in $ac_precious_vars; do
3545 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3546 eval ac_new_set=\$ac_env_${ac_var}_set
3547 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3548 eval ac_new_val=\$ac_env_${ac_var}_value
3549 case $ac_old_set,$ac_new_set in
3550 set,)
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3552 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3553 ac_cache_corrupted=: ;;
3554 ,set)
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3556 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3557 ac_cache_corrupted=: ;;
3558 ,);;
3559 *)
3560 if test "x$ac_old_val" != "x$ac_new_val"; then
3561 # differences in whitespace do not lead to failure.
3562 ac_old_val_w=`echo x $ac_old_val`
3563 ac_new_val_w=`echo x $ac_new_val`
3564 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3566 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3567 ac_cache_corrupted=:
3568 else
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3570 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3571 eval $ac_var=\$ac_old_val
3572 fi
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3574 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3576 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3577 fi;;
3578 esac
3579 # Pass precious variables to config.status.
3580 if test "$ac_new_set" = set; then
3581 case $ac_new_val in
3582 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3583 *) ac_arg=$ac_var=$ac_new_val ;;
3584 esac
3585 case " $ac_configure_args " in
3586 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3587 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3588 esac
3589 fi
3590 done
3591 if $ac_cache_corrupted; then
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3593 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3595 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3596 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3597 fi
3598 ## -------------------- ##
3599 ## Main body of script. ##
3600 ## -------------------- ##
3601
3602 ac_ext=c
3603 ac_cpp='$CPP $CPPFLAGS'
3604 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3605 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3606 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3607
3608
3609
3610 ac_config_headers="$ac_config_headers config.h:config.in"
3611
3612
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3614 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3615 # Check whether --enable-maintainer-mode was given.
3616 if test "${enable_maintainer_mode+set}" = set; then :
3617 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3618 else
3619 USE_MAINTAINER_MODE=no
3620 fi
3621
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3623 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3624 if test $USE_MAINTAINER_MODE = yes; then
3625 MAINTAINER_MODE_TRUE=
3626 MAINTAINER_MODE_FALSE='#'
3627 else
3628 MAINTAINER_MODE_TRUE='#'
3629 MAINTAINER_MODE_FALSE=
3630 fi
3631
3632 MAINT=$MAINTAINER_MODE_TRUE
3633
3634
3635
3636 ac_ext=c
3637 ac_cpp='$CPP $CPPFLAGS'
3638 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3639 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3640 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3641 if test -n "$ac_tool_prefix"; then
3642 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3643 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3645 $as_echo_n "checking for $ac_word... " >&6; }
3646 if ${ac_cv_prog_CC+:} false; then :
3647 $as_echo_n "(cached) " >&6
3648 else
3649 if test -n "$CC"; then
3650 ac_cv_prog_CC="$CC" # Let the user override the test.
3651 else
3652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3653 for as_dir in $PATH
3654 do
3655 IFS=$as_save_IFS
3656 test -z "$as_dir" && as_dir=.
3657 for ac_exec_ext in '' $ac_executable_extensions; do
3658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3659 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3661 break 2
3662 fi
3663 done
3664 done
3665 IFS=$as_save_IFS
3666
3667 fi
3668 fi
3669 CC=$ac_cv_prog_CC
3670 if test -n "$CC"; then
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3672 $as_echo "$CC" >&6; }
3673 else
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3675 $as_echo "no" >&6; }
3676 fi
3677
3678
3679 fi
3680 if test -z "$ac_cv_prog_CC"; then
3681 ac_ct_CC=$CC
3682 # Extract the first word of "gcc", so it can be a program name with args.
3683 set dummy gcc; ac_word=$2
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3685 $as_echo_n "checking for $ac_word... " >&6; }
3686 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3687 $as_echo_n "(cached) " >&6
3688 else
3689 if test -n "$ac_ct_CC"; then
3690 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3691 else
3692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3693 for as_dir in $PATH
3694 do
3695 IFS=$as_save_IFS
3696 test -z "$as_dir" && as_dir=.
3697 for ac_exec_ext in '' $ac_executable_extensions; do
3698 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3699 ac_cv_prog_ac_ct_CC="gcc"
3700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3701 break 2
3702 fi
3703 done
3704 done
3705 IFS=$as_save_IFS
3706
3707 fi
3708 fi
3709 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3710 if test -n "$ac_ct_CC"; then
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3712 $as_echo "$ac_ct_CC" >&6; }
3713 else
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3715 $as_echo "no" >&6; }
3716 fi
3717
3718 if test "x$ac_ct_CC" = x; then
3719 CC=""
3720 else
3721 case $cross_compiling:$ac_tool_warned in
3722 yes:)
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3724 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3725 ac_tool_warned=yes ;;
3726 esac
3727 CC=$ac_ct_CC
3728 fi
3729 else
3730 CC="$ac_cv_prog_CC"
3731 fi
3732
3733 if test -z "$CC"; then
3734 if test -n "$ac_tool_prefix"; then
3735 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3736 set dummy ${ac_tool_prefix}cc; ac_word=$2
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3738 $as_echo_n "checking for $ac_word... " >&6; }
3739 if ${ac_cv_prog_CC+:} false; then :
3740 $as_echo_n "(cached) " >&6
3741 else
3742 if test -n "$CC"; then
3743 ac_cv_prog_CC="$CC" # Let the user override the test.
3744 else
3745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3746 for as_dir in $PATH
3747 do
3748 IFS=$as_save_IFS
3749 test -z "$as_dir" && as_dir=.
3750 for ac_exec_ext in '' $ac_executable_extensions; do
3751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3752 ac_cv_prog_CC="${ac_tool_prefix}cc"
3753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3754 break 2
3755 fi
3756 done
3757 done
3758 IFS=$as_save_IFS
3759
3760 fi
3761 fi
3762 CC=$ac_cv_prog_CC
3763 if test -n "$CC"; then
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3765 $as_echo "$CC" >&6; }
3766 else
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3768 $as_echo "no" >&6; }
3769 fi
3770
3771
3772 fi
3773 fi
3774 if test -z "$CC"; then
3775 # Extract the first word of "cc", so it can be a program name with args.
3776 set dummy cc; ac_word=$2
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3778 $as_echo_n "checking for $ac_word... " >&6; }
3779 if ${ac_cv_prog_CC+:} false; then :
3780 $as_echo_n "(cached) " >&6
3781 else
3782 if test -n "$CC"; then
3783 ac_cv_prog_CC="$CC" # Let the user override the test.
3784 else
3785 ac_prog_rejected=no
3786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3787 for as_dir in $PATH
3788 do
3789 IFS=$as_save_IFS
3790 test -z "$as_dir" && as_dir=.
3791 for ac_exec_ext in '' $ac_executable_extensions; do
3792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3793 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3794 ac_prog_rejected=yes
3795 continue
3796 fi
3797 ac_cv_prog_CC="cc"
3798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3799 break 2
3800 fi
3801 done
3802 done
3803 IFS=$as_save_IFS
3804
3805 if test $ac_prog_rejected = yes; then
3806 # We found a bogon in the path, so make sure we never use it.
3807 set dummy $ac_cv_prog_CC
3808 shift
3809 if test $# != 0; then
3810 # We chose a different compiler from the bogus one.
3811 # However, it has the same basename, so the bogon will be chosen
3812 # first if we set CC to just the basename; use the full file name.
3813 shift
3814 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3815 fi
3816 fi
3817 fi
3818 fi
3819 CC=$ac_cv_prog_CC
3820 if test -n "$CC"; then
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3822 $as_echo "$CC" >&6; }
3823 else
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3825 $as_echo "no" >&6; }
3826 fi
3827
3828
3829 fi
3830 if test -z "$CC"; then
3831 if test -n "$ac_tool_prefix"; then
3832 for ac_prog in cl.exe
3833 do
3834 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3835 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3837 $as_echo_n "checking for $ac_word... " >&6; }
3838 if ${ac_cv_prog_CC+:} false; then :
3839 $as_echo_n "(cached) " >&6
3840 else
3841 if test -n "$CC"; then
3842 ac_cv_prog_CC="$CC" # Let the user override the test.
3843 else
3844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3845 for as_dir in $PATH
3846 do
3847 IFS=$as_save_IFS
3848 test -z "$as_dir" && as_dir=.
3849 for ac_exec_ext in '' $ac_executable_extensions; do
3850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3851 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3853 break 2
3854 fi
3855 done
3856 done
3857 IFS=$as_save_IFS
3858
3859 fi
3860 fi
3861 CC=$ac_cv_prog_CC
3862 if test -n "$CC"; then
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3864 $as_echo "$CC" >&6; }
3865 else
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3867 $as_echo "no" >&6; }
3868 fi
3869
3870
3871 test -n "$CC" && break
3872 done
3873 fi
3874 if test -z "$CC"; then
3875 ac_ct_CC=$CC
3876 for ac_prog in cl.exe
3877 do
3878 # Extract the first word of "$ac_prog", so it can be a program name with args.
3879 set dummy $ac_prog; ac_word=$2
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3881 $as_echo_n "checking for $ac_word... " >&6; }
3882 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3883 $as_echo_n "(cached) " >&6
3884 else
3885 if test -n "$ac_ct_CC"; then
3886 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3887 else
3888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3889 for as_dir in $PATH
3890 do
3891 IFS=$as_save_IFS
3892 test -z "$as_dir" && as_dir=.
3893 for ac_exec_ext in '' $ac_executable_extensions; do
3894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3895 ac_cv_prog_ac_ct_CC="$ac_prog"
3896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3897 break 2
3898 fi
3899 done
3900 done
3901 IFS=$as_save_IFS
3902
3903 fi
3904 fi
3905 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3906 if test -n "$ac_ct_CC"; then
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3908 $as_echo "$ac_ct_CC" >&6; }
3909 else
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3911 $as_echo "no" >&6; }
3912 fi
3913
3914
3915 test -n "$ac_ct_CC" && break
3916 done
3917
3918 if test "x$ac_ct_CC" = x; then
3919 CC=""
3920 else
3921 case $cross_compiling:$ac_tool_warned in
3922 yes:)
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3924 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3925 ac_tool_warned=yes ;;
3926 esac
3927 CC=$ac_ct_CC
3928 fi
3929 fi
3930
3931 fi
3932
3933
3934 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3935 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3936 as_fn_error $? "no acceptable C compiler found in \$PATH
3937 See \`config.log' for more details" "$LINENO" 5; }
3938
3939 # Provide some information about the compiler.
3940 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3941 set X $ac_compile
3942 ac_compiler=$2
3943 for ac_option in --version -v -V -qversion; do
3944 { { ac_try="$ac_compiler $ac_option >&5"
3945 case "(($ac_try" in
3946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3947 *) ac_try_echo=$ac_try;;
3948 esac
3949 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3950 $as_echo "$ac_try_echo"; } >&5
3951 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3952 ac_status=$?
3953 if test -s conftest.err; then
3954 sed '10a\
3955 ... rest of stderr output deleted ...
3956 10q' conftest.err >conftest.er1
3957 cat conftest.er1 >&5
3958 fi
3959 rm -f conftest.er1 conftest.err
3960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3961 test $ac_status = 0; }
3962 done
3963
3964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3965 /* end confdefs.h. */
3966
3967 int
3968 main ()
3969 {
3970
3971 ;
3972 return 0;
3973 }
3974 _ACEOF
3975 ac_clean_files_save=$ac_clean_files
3976 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3977 # Try to create an executable without -o first, disregard a.out.
3978 # It will help us diagnose broken compilers, and finding out an intuition
3979 # of exeext.
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3981 $as_echo_n "checking whether the C compiler works... " >&6; }
3982 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3983
3984 # The possible output files:
3985 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3986
3987 ac_rmfiles=
3988 for ac_file in $ac_files
3989 do
3990 case $ac_file in
3991 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3992 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3993 esac
3994 done
3995 rm -f $ac_rmfiles
3996
3997 if { { ac_try="$ac_link_default"
3998 case "(($ac_try" in
3999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4000 *) ac_try_echo=$ac_try;;
4001 esac
4002 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4003 $as_echo "$ac_try_echo"; } >&5
4004 (eval "$ac_link_default") 2>&5
4005 ac_status=$?
4006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4007 test $ac_status = 0; }; then :
4008 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4009 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4010 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4011 # so that the user can short-circuit this test for compilers unknown to
4012 # Autoconf.
4013 for ac_file in $ac_files ''
4014 do
4015 test -f "$ac_file" || continue
4016 case $ac_file in
4017 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4018 ;;
4019 [ab].out )
4020 # We found the default executable, but exeext='' is most
4021 # certainly right.
4022 break;;
4023 *.* )
4024 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4025 then :; else
4026 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4027 fi
4028 # We set ac_cv_exeext here because the later test for it is not
4029 # safe: cross compilers may not add the suffix if given an `-o'
4030 # argument, so we may need to know it at that point already.
4031 # Even if this section looks crufty: it has the advantage of
4032 # actually working.
4033 break;;
4034 * )
4035 break;;
4036 esac
4037 done
4038 test "$ac_cv_exeext" = no && ac_cv_exeext=
4039
4040 else
4041 ac_file=''
4042 fi
4043 if test -z "$ac_file"; then :
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4045 $as_echo "no" >&6; }
4046 $as_echo "$as_me: failed program was:" >&5
4047 sed 's/^/| /' conftest.$ac_ext >&5
4048
4049 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4050 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4051 as_fn_error 77 "C compiler cannot create executables
4052 See \`config.log' for more details" "$LINENO" 5; }
4053 else
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4055 $as_echo "yes" >&6; }
4056 fi
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4058 $as_echo_n "checking for C compiler default output file name... " >&6; }
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4060 $as_echo "$ac_file" >&6; }
4061 ac_exeext=$ac_cv_exeext
4062
4063 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4064 ac_clean_files=$ac_clean_files_save
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4066 $as_echo_n "checking for suffix of executables... " >&6; }
4067 if { { ac_try="$ac_link"
4068 case "(($ac_try" in
4069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4070 *) ac_try_echo=$ac_try;;
4071 esac
4072 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4073 $as_echo "$ac_try_echo"; } >&5
4074 (eval "$ac_link") 2>&5
4075 ac_status=$?
4076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4077 test $ac_status = 0; }; then :
4078 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4079 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4080 # work properly (i.e., refer to `conftest.exe'), while it won't with
4081 # `rm'.
4082 for ac_file in conftest.exe conftest conftest.*; do
4083 test -f "$ac_file" || continue
4084 case $ac_file in
4085 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4086 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4087 break;;
4088 * ) break;;
4089 esac
4090 done
4091 else
4092 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4093 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4094 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4095 See \`config.log' for more details" "$LINENO" 5; }
4096 fi
4097 rm -f conftest conftest$ac_cv_exeext
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4099 $as_echo "$ac_cv_exeext" >&6; }
4100
4101 rm -f conftest.$ac_ext
4102 EXEEXT=$ac_cv_exeext
4103 ac_exeext=$EXEEXT
4104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4105 /* end confdefs.h. */
4106 #include <stdio.h>
4107 int
4108 main ()
4109 {
4110 FILE *f = fopen ("conftest.out", "w");
4111 return ferror (f) || fclose (f) != 0;
4112
4113 ;
4114 return 0;
4115 }
4116 _ACEOF
4117 ac_clean_files="$ac_clean_files conftest.out"
4118 # Check that the compiler produces executables we can run. If not, either
4119 # the compiler is broken, or we cross compile.
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4121 $as_echo_n "checking whether we are cross compiling... " >&6; }
4122 if test "$cross_compiling" != yes; then
4123 { { ac_try="$ac_link"
4124 case "(($ac_try" in
4125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4126 *) ac_try_echo=$ac_try;;
4127 esac
4128 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4129 $as_echo "$ac_try_echo"; } >&5
4130 (eval "$ac_link") 2>&5
4131 ac_status=$?
4132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4133 test $ac_status = 0; }
4134 if { ac_try='./conftest$ac_cv_exeext'
4135 { { case "(($ac_try" in
4136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4137 *) ac_try_echo=$ac_try;;
4138 esac
4139 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4140 $as_echo "$ac_try_echo"; } >&5
4141 (eval "$ac_try") 2>&5
4142 ac_status=$?
4143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4144 test $ac_status = 0; }; }; then
4145 cross_compiling=no
4146 else
4147 if test "$cross_compiling" = maybe; then
4148 cross_compiling=yes
4149 else
4150 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4151 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4152 as_fn_error $? "cannot run C compiled programs.
4153 If you meant to cross compile, use \`--host'.
4154 See \`config.log' for more details" "$LINENO" 5; }
4155 fi
4156 fi
4157 fi
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4159 $as_echo "$cross_compiling" >&6; }
4160
4161 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4162 ac_clean_files=$ac_clean_files_save
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4164 $as_echo_n "checking for suffix of object files... " >&6; }
4165 if ${ac_cv_objext+:} false; then :
4166 $as_echo_n "(cached) " >&6
4167 else
4168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4169 /* end confdefs.h. */
4170
4171 int
4172 main ()
4173 {
4174
4175 ;
4176 return 0;
4177 }
4178 _ACEOF
4179 rm -f conftest.o conftest.obj
4180 if { { ac_try="$ac_compile"
4181 case "(($ac_try" in
4182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4183 *) ac_try_echo=$ac_try;;
4184 esac
4185 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4186 $as_echo "$ac_try_echo"; } >&5
4187 (eval "$ac_compile") 2>&5
4188 ac_status=$?
4189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4190 test $ac_status = 0; }; then :
4191 for ac_file in conftest.o conftest.obj conftest.*; do
4192 test -f "$ac_file" || continue;
4193 case $ac_file in
4194 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4195 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4196 break;;
4197 esac
4198 done
4199 else
4200 $as_echo "$as_me: failed program was:" >&5
4201 sed 's/^/| /' conftest.$ac_ext >&5
4202
4203 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4204 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4205 as_fn_error $? "cannot compute suffix of object files: cannot compile
4206 See \`config.log' for more details" "$LINENO" 5; }
4207 fi
4208 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4209 fi
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4211 $as_echo "$ac_cv_objext" >&6; }
4212 OBJEXT=$ac_cv_objext
4213 ac_objext=$OBJEXT
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4215 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4216 if ${ac_cv_c_compiler_gnu+:} false; then :
4217 $as_echo_n "(cached) " >&6
4218 else
4219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4220 /* end confdefs.h. */
4221
4222 int
4223 main ()
4224 {
4225 #ifndef __GNUC__
4226 choke me
4227 #endif
4228
4229 ;
4230 return 0;
4231 }
4232 _ACEOF
4233 if ac_fn_c_try_compile "$LINENO"; then :
4234 ac_compiler_gnu=yes
4235 else
4236 ac_compiler_gnu=no
4237 fi
4238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4239 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4240
4241 fi
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4243 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4244 if test $ac_compiler_gnu = yes; then
4245 GCC=yes
4246 else
4247 GCC=
4248 fi
4249 ac_test_CFLAGS=${CFLAGS+set}
4250 ac_save_CFLAGS=$CFLAGS
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4252 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4253 if ${ac_cv_prog_cc_g+:} false; then :
4254 $as_echo_n "(cached) " >&6
4255 else
4256 ac_save_c_werror_flag=$ac_c_werror_flag
4257 ac_c_werror_flag=yes
4258 ac_cv_prog_cc_g=no
4259 CFLAGS="-g"
4260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4261 /* end confdefs.h. */
4262
4263 int
4264 main ()
4265 {
4266
4267 ;
4268 return 0;
4269 }
4270 _ACEOF
4271 if ac_fn_c_try_compile "$LINENO"; then :
4272 ac_cv_prog_cc_g=yes
4273 else
4274 CFLAGS=""
4275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4276 /* end confdefs.h. */
4277
4278 int
4279 main ()
4280 {
4281
4282 ;
4283 return 0;
4284 }
4285 _ACEOF
4286 if ac_fn_c_try_compile "$LINENO"; then :
4287
4288 else
4289 ac_c_werror_flag=$ac_save_c_werror_flag
4290 CFLAGS="-g"
4291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4292 /* end confdefs.h. */
4293
4294 int
4295 main ()
4296 {
4297
4298 ;
4299 return 0;
4300 }
4301 _ACEOF
4302 if ac_fn_c_try_compile "$LINENO"; then :
4303 ac_cv_prog_cc_g=yes
4304 fi
4305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4306 fi
4307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4308 fi
4309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4310 ac_c_werror_flag=$ac_save_c_werror_flag
4311 fi
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4313 $as_echo "$ac_cv_prog_cc_g" >&6; }
4314 if test "$ac_test_CFLAGS" = set; then
4315 CFLAGS=$ac_save_CFLAGS
4316 elif test $ac_cv_prog_cc_g = yes; then
4317 if test "$GCC" = yes; then
4318 CFLAGS="-g -O2"
4319 else
4320 CFLAGS="-g"
4321 fi
4322 else
4323 if test "$GCC" = yes; then
4324 CFLAGS="-O2"
4325 else
4326 CFLAGS=
4327 fi
4328 fi
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4330 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4331 if ${ac_cv_prog_cc_c89+:} false; then :
4332 $as_echo_n "(cached) " >&6
4333 else
4334 ac_cv_prog_cc_c89=no
4335 ac_save_CC=$CC
4336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4337 /* end confdefs.h. */
4338 #include <stdarg.h>
4339 #include <stdio.h>
4340 struct stat;
4341 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4342 struct buf { int x; };
4343 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4344 static char *e (p, i)
4345 char **p;
4346 int i;
4347 {
4348 return p[i];
4349 }
4350 static char *f (char * (*g) (char **, int), char **p, ...)
4351 {
4352 char *s;
4353 va_list v;
4354 va_start (v,p);
4355 s = g (p, va_arg (v,int));
4356 va_end (v);
4357 return s;
4358 }
4359
4360 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4361 function prototypes and stuff, but not '\xHH' hex character constants.
4362 These don't provoke an error unfortunately, instead are silently treated
4363 as 'x'. The following induces an error, until -std is added to get
4364 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4365 array size at least. It's necessary to write '\x00'==0 to get something
4366 that's true only with -std. */
4367 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4368
4369 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4370 inside strings and character constants. */
4371 #define FOO(x) 'x'
4372 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4373
4374 int test (int i, double x);
4375 struct s1 {int (*f) (int a);};
4376 struct s2 {int (*f) (double a);};
4377 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4378 int argc;
4379 char **argv;
4380 int
4381 main ()
4382 {
4383 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4384 ;
4385 return 0;
4386 }
4387 _ACEOF
4388 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4389 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4390 do
4391 CC="$ac_save_CC $ac_arg"
4392 if ac_fn_c_try_compile "$LINENO"; then :
4393 ac_cv_prog_cc_c89=$ac_arg
4394 fi
4395 rm -f core conftest.err conftest.$ac_objext
4396 test "x$ac_cv_prog_cc_c89" != "xno" && break
4397 done
4398 rm -f conftest.$ac_ext
4399 CC=$ac_save_CC
4400
4401 fi
4402 # AC_CACHE_VAL
4403 case "x$ac_cv_prog_cc_c89" in
4404 x)
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4406 $as_echo "none needed" >&6; } ;;
4407 xno)
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4409 $as_echo "unsupported" >&6; } ;;
4410 *)
4411 CC="$CC $ac_cv_prog_cc_c89"
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4413 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4414 esac
4415 if test "x$ac_cv_prog_cc_c89" != xno; then :
4416
4417 fi
4418
4419 ac_ext=c
4420 ac_cpp='$CPP $CPPFLAGS'
4421 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4422 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4423 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4424
4425 ac_aux_dir=
4426 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4427 if test -f "$ac_dir/install-sh"; then
4428 ac_aux_dir=$ac_dir
4429 ac_install_sh="$ac_aux_dir/install-sh -c"
4430 break
4431 elif test -f "$ac_dir/install.sh"; then
4432 ac_aux_dir=$ac_dir
4433 ac_install_sh="$ac_aux_dir/install.sh -c"
4434 break
4435 elif test -f "$ac_dir/shtool"; then
4436 ac_aux_dir=$ac_dir
4437 ac_install_sh="$ac_aux_dir/shtool install -c"
4438 break
4439 fi
4440 done
4441 if test -z "$ac_aux_dir"; then
4442 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4443 fi
4444
4445 # These three variables are undocumented and unsupported,
4446 # and are intended to be withdrawn in a future Autoconf release.
4447 # They can cause serious problems if a builder's source tree is in a directory
4448 # whose full name contains unusual characters.
4449 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4450 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4451 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4452
4453
4454 # Expand $ac_aux_dir to an absolute path.
4455 am_aux_dir=`cd "$ac_aux_dir" && pwd`
4456
4457 ac_ext=c
4458 ac_cpp='$CPP $CPPFLAGS'
4459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4463 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4464 if ${am_cv_prog_cc_c_o+:} false; then :
4465 $as_echo_n "(cached) " >&6
4466 else
4467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4468 /* end confdefs.h. */
4469
4470 int
4471 main ()
4472 {
4473
4474 ;
4475 return 0;
4476 }
4477 _ACEOF
4478 # Make sure it works both with $CC and with simple cc.
4479 # Following AC_PROG_CC_C_O, we do the test twice because some
4480 # compilers refuse to overwrite an existing .o file with -o,
4481 # though they will create one.
4482 am_cv_prog_cc_c_o=yes
4483 for am_i in 1 2; do
4484 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4485 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4486 ac_status=$?
4487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488 (exit $ac_status); } \
4489 && test -f conftest2.$ac_objext; then
4490 : OK
4491 else
4492 am_cv_prog_cc_c_o=no
4493 break
4494 fi
4495 done
4496 rm -f core conftest*
4497 unset am_i
4498 fi
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4500 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4501 if test "$am_cv_prog_cc_c_o" != yes; then
4502 # Losing compiler, so override with the script.
4503 # FIXME: It is wrong to rewrite CC.
4504 # But if we don't then we get into trouble of one sort or another.
4505 # A longer-term fix would be to have automake use am__CC in this case,
4506 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4507 CC="$am_aux_dir/compile $CC"
4508 fi
4509 ac_ext=c
4510 ac_cpp='$CPP $CPPFLAGS'
4511 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4512 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4513 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4514
4515
4516
4517 ac_ext=c
4518 ac_cpp='$CPP $CPPFLAGS'
4519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4523 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4524 # On Suns, sometimes $CPP names a directory.
4525 if test -n "$CPP" && test -d "$CPP"; then
4526 CPP=
4527 fi
4528 if test -z "$CPP"; then
4529 if ${ac_cv_prog_CPP+:} false; then :
4530 $as_echo_n "(cached) " >&6
4531 else
4532 # Double quotes because CPP needs to be expanded
4533 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4534 do
4535 ac_preproc_ok=false
4536 for ac_c_preproc_warn_flag in '' yes
4537 do
4538 # Use a header file that comes with gcc, so configuring glibc
4539 # with a fresh cross-compiler works.
4540 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4541 # <limits.h> exists even on freestanding compilers.
4542 # On the NeXT, cc -E runs the code through the compiler's parser,
4543 # not just through cpp. "Syntax error" is here to catch this case.
4544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4545 /* end confdefs.h. */
4546 #ifdef __STDC__
4547 # include <limits.h>
4548 #else
4549 # include <assert.h>
4550 #endif
4551 Syntax error
4552 _ACEOF
4553 if ac_fn_c_try_cpp "$LINENO"; then :
4554
4555 else
4556 # Broken: fails on valid input.
4557 continue
4558 fi
4559 rm -f conftest.err conftest.i conftest.$ac_ext
4560
4561 # OK, works on sane cases. Now check whether nonexistent headers
4562 # can be detected and how.
4563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4564 /* end confdefs.h. */
4565 #include <ac_nonexistent.h>
4566 _ACEOF
4567 if ac_fn_c_try_cpp "$LINENO"; then :
4568 # Broken: success on invalid input.
4569 continue
4570 else
4571 # Passes both tests.
4572 ac_preproc_ok=:
4573 break
4574 fi
4575 rm -f conftest.err conftest.i conftest.$ac_ext
4576
4577 done
4578 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4579 rm -f conftest.i conftest.err conftest.$ac_ext
4580 if $ac_preproc_ok; then :
4581 break
4582 fi
4583
4584 done
4585 ac_cv_prog_CPP=$CPP
4586
4587 fi
4588 CPP=$ac_cv_prog_CPP
4589 else
4590 ac_cv_prog_CPP=$CPP
4591 fi
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4593 $as_echo "$CPP" >&6; }
4594 ac_preproc_ok=false
4595 for ac_c_preproc_warn_flag in '' yes
4596 do
4597 # Use a header file that comes with gcc, so configuring glibc
4598 # with a fresh cross-compiler works.
4599 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4600 # <limits.h> exists even on freestanding compilers.
4601 # On the NeXT, cc -E runs the code through the compiler's parser,
4602 # not just through cpp. "Syntax error" is here to catch this case.
4603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4604 /* end confdefs.h. */
4605 #ifdef __STDC__
4606 # include <limits.h>
4607 #else
4608 # include <assert.h>
4609 #endif
4610 Syntax error
4611 _ACEOF
4612 if ac_fn_c_try_cpp "$LINENO"; then :
4613
4614 else
4615 # Broken: fails on valid input.
4616 continue
4617 fi
4618 rm -f conftest.err conftest.i conftest.$ac_ext
4619
4620 # OK, works on sane cases. Now check whether nonexistent headers
4621 # can be detected and how.
4622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4623 /* end confdefs.h. */
4624 #include <ac_nonexistent.h>
4625 _ACEOF
4626 if ac_fn_c_try_cpp "$LINENO"; then :
4627 # Broken: success on invalid input.
4628 continue
4629 else
4630 # Passes both tests.
4631 ac_preproc_ok=:
4632 break
4633 fi
4634 rm -f conftest.err conftest.i conftest.$ac_ext
4635
4636 done
4637 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4638 rm -f conftest.i conftest.err conftest.$ac_ext
4639 if $ac_preproc_ok; then :
4640
4641 else
4642 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4643 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4644 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4645 See \`config.log' for more details" "$LINENO" 5; }
4646 fi
4647
4648 ac_ext=c
4649 ac_cpp='$CPP $CPPFLAGS'
4650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4652 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4653
4654
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4656 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4657 if ${ac_cv_path_GREP+:} false; then :
4658 $as_echo_n "(cached) " >&6
4659 else
4660 if test -z "$GREP"; then
4661 ac_path_GREP_found=false
4662 # Loop through the user's path and test for each of PROGNAME-LIST
4663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4664 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4665 do
4666 IFS=$as_save_IFS
4667 test -z "$as_dir" && as_dir=.
4668 for ac_prog in grep ggrep; do
4669 for ac_exec_ext in '' $ac_executable_extensions; do
4670 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4671 as_fn_executable_p "$ac_path_GREP" || continue
4672 # Check for GNU ac_path_GREP and select it if it is found.
4673 # Check for GNU $ac_path_GREP
4674 case `"$ac_path_GREP" --version 2>&1` in
4675 *GNU*)
4676 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4677 *)
4678 ac_count=0
4679 $as_echo_n 0123456789 >"conftest.in"
4680 while :
4681 do
4682 cat "conftest.in" "conftest.in" >"conftest.tmp"
4683 mv "conftest.tmp" "conftest.in"
4684 cp "conftest.in" "conftest.nl"
4685 $as_echo 'GREP' >> "conftest.nl"
4686 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4687 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4688 as_fn_arith $ac_count + 1 && ac_count=$as_val
4689 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4690 # Best one so far, save it but keep looking for a better one
4691 ac_cv_path_GREP="$ac_path_GREP"
4692 ac_path_GREP_max=$ac_count
4693 fi
4694 # 10*(2^10) chars as input seems more than enough
4695 test $ac_count -gt 10 && break
4696 done
4697 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4698 esac
4699
4700 $ac_path_GREP_found && break 3
4701 done
4702 done
4703 done
4704 IFS=$as_save_IFS
4705 if test -z "$ac_cv_path_GREP"; then
4706 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4707 fi
4708 else
4709 ac_cv_path_GREP=$GREP
4710 fi
4711
4712 fi
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4714 $as_echo "$ac_cv_path_GREP" >&6; }
4715 GREP="$ac_cv_path_GREP"
4716
4717
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4719 $as_echo_n "checking for egrep... " >&6; }
4720 if ${ac_cv_path_EGREP+:} false; then :
4721 $as_echo_n "(cached) " >&6
4722 else
4723 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4724 then ac_cv_path_EGREP="$GREP -E"
4725 else
4726 if test -z "$EGREP"; then
4727 ac_path_EGREP_found=false
4728 # Loop through the user's path and test for each of PROGNAME-LIST
4729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4730 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4731 do
4732 IFS=$as_save_IFS
4733 test -z "$as_dir" && as_dir=.
4734 for ac_prog in egrep; do
4735 for ac_exec_ext in '' $ac_executable_extensions; do
4736 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4737 as_fn_executable_p "$ac_path_EGREP" || continue
4738 # Check for GNU ac_path_EGREP and select it if it is found.
4739 # Check for GNU $ac_path_EGREP
4740 case `"$ac_path_EGREP" --version 2>&1` in
4741 *GNU*)
4742 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4743 *)
4744 ac_count=0
4745 $as_echo_n 0123456789 >"conftest.in"
4746 while :
4747 do
4748 cat "conftest.in" "conftest.in" >"conftest.tmp"
4749 mv "conftest.tmp" "conftest.in"
4750 cp "conftest.in" "conftest.nl"
4751 $as_echo 'EGREP' >> "conftest.nl"
4752 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4753 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4754 as_fn_arith $ac_count + 1 && ac_count=$as_val
4755 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4756 # Best one so far, save it but keep looking for a better one
4757 ac_cv_path_EGREP="$ac_path_EGREP"
4758 ac_path_EGREP_max=$ac_count
4759 fi
4760 # 10*(2^10) chars as input seems more than enough
4761 test $ac_count -gt 10 && break
4762 done
4763 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4764 esac
4765
4766 $ac_path_EGREP_found && break 3
4767 done
4768 done
4769 done
4770 IFS=$as_save_IFS
4771 if test -z "$ac_cv_path_EGREP"; then
4772 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4773 fi
4774 else
4775 ac_cv_path_EGREP=$EGREP
4776 fi
4777
4778 fi
4779 fi
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4781 $as_echo "$ac_cv_path_EGREP" >&6; }
4782 EGREP="$ac_cv_path_EGREP"
4783
4784
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4786 $as_echo_n "checking for ANSI C header files... " >&6; }
4787 if ${ac_cv_header_stdc+:} false; then :
4788 $as_echo_n "(cached) " >&6
4789 else
4790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4791 /* end confdefs.h. */
4792 #include <stdlib.h>
4793 #include <stdarg.h>
4794 #include <string.h>
4795 #include <float.h>
4796
4797 int
4798 main ()
4799 {
4800
4801 ;
4802 return 0;
4803 }
4804 _ACEOF
4805 if ac_fn_c_try_compile "$LINENO"; then :
4806 ac_cv_header_stdc=yes
4807 else
4808 ac_cv_header_stdc=no
4809 fi
4810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4811
4812 if test $ac_cv_header_stdc = yes; then
4813 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4815 /* end confdefs.h. */
4816 #include <string.h>
4817
4818 _ACEOF
4819 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4820 $EGREP "memchr" >/dev/null 2>&1; then :
4821
4822 else
4823 ac_cv_header_stdc=no
4824 fi
4825 rm -f conftest*
4826
4827 fi
4828
4829 if test $ac_cv_header_stdc = yes; then
4830 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4832 /* end confdefs.h. */
4833 #include <stdlib.h>
4834
4835 _ACEOF
4836 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4837 $EGREP "free" >/dev/null 2>&1; then :
4838
4839 else
4840 ac_cv_header_stdc=no
4841 fi
4842 rm -f conftest*
4843
4844 fi
4845
4846 if test $ac_cv_header_stdc = yes; then
4847 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4848 if test "$cross_compiling" = yes; then :
4849 :
4850 else
4851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4852 /* end confdefs.h. */
4853 #include <ctype.h>
4854 #include <stdlib.h>
4855 #if ((' ' & 0x0FF) == 0x020)
4856 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4857 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4858 #else
4859 # define ISLOWER(c) \
4860 (('a' <= (c) && (c) <= 'i') \
4861 || ('j' <= (c) && (c) <= 'r') \
4862 || ('s' <= (c) && (c) <= 'z'))
4863 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4864 #endif
4865
4866 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4867 int
4868 main ()
4869 {
4870 int i;
4871 for (i = 0; i < 256; i++)
4872 if (XOR (islower (i), ISLOWER (i))
4873 || toupper (i) != TOUPPER (i))
4874 return 2;
4875 return 0;
4876 }
4877 _ACEOF
4878 if ac_fn_c_try_run "$LINENO"; then :
4879
4880 else
4881 ac_cv_header_stdc=no
4882 fi
4883 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4884 conftest.$ac_objext conftest.beam conftest.$ac_ext
4885 fi
4886
4887 fi
4888 fi
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4890 $as_echo "$ac_cv_header_stdc" >&6; }
4891 if test $ac_cv_header_stdc = yes; then
4892
4893 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4894
4895 fi
4896
4897 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4898 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4899 inttypes.h stdint.h unistd.h
4900 do :
4901 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4902 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4903 "
4904 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4905 cat >>confdefs.h <<_ACEOF
4906 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4907 _ACEOF
4908
4909 fi
4910
4911 done
4912
4913
4914
4915 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4916 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4917 MINIX=yes
4918 else
4919 MINIX=
4920 fi
4921
4922
4923 if test "$MINIX" = yes; then
4924
4925 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4926
4927
4928 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4929
4930
4931 $as_echo "#define _MINIX 1" >>confdefs.h
4932
4933
4934 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
4935
4936 fi
4937
4938
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4940 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4941 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4942 $as_echo_n "(cached) " >&6
4943 else
4944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4945 /* end confdefs.h. */
4946
4947 # define __EXTENSIONS__ 1
4948 $ac_includes_default
4949 int
4950 main ()
4951 {
4952
4953 ;
4954 return 0;
4955 }
4956 _ACEOF
4957 if ac_fn_c_try_compile "$LINENO"; then :
4958 ac_cv_safe_to_define___extensions__=yes
4959 else
4960 ac_cv_safe_to_define___extensions__=no
4961 fi
4962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4963 fi
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4965 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4966 test $ac_cv_safe_to_define___extensions__ = yes &&
4967 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4968
4969 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4970
4971 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4972
4973 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4974
4975 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4976
4977 $as_echo "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
4978
4979 $as_echo "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
4980
4981 $as_echo "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
4982
4983 $as_echo "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
4984
4985 $as_echo "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
4986
4987 $as_echo "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
4988
4989 $as_echo "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
4990
4991 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4992
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4994 $as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4995 if ${ac_cv_should_define__xopen_source+:} false; then :
4996 $as_echo_n "(cached) " >&6
4997 else
4998 ac_cv_should_define__xopen_source=no
4999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5000 /* end confdefs.h. */
5001
5002 #include <wchar.h>
5003 mbstate_t x;
5004 int
5005 main ()
5006 {
5007
5008 ;
5009 return 0;
5010 }
5011 _ACEOF
5012 if ac_fn_c_try_compile "$LINENO"; then :
5013
5014 else
5015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5016 /* end confdefs.h. */
5017
5018 #define _XOPEN_SOURCE 500
5019 #include <wchar.h>
5020 mbstate_t x;
5021 int
5022 main ()
5023 {
5024
5025 ;
5026 return 0;
5027 }
5028 _ACEOF
5029 if ac_fn_c_try_compile "$LINENO"; then :
5030 ac_cv_should_define__xopen_source=yes
5031 fi
5032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5033 fi
5034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5035 fi
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
5037 $as_echo "$ac_cv_should_define__xopen_source" >&6; }
5038 test $ac_cv_should_define__xopen_source = yes &&
5039 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
5052 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
5053 if ${gl_cv_c_amsterdam_compiler+:} false; then :
5054 $as_echo_n "(cached) " >&6
5055 else
5056
5057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5058 /* end confdefs.h. */
5059
5060 #ifdef __ACK__
5061 Amsterdam
5062 #endif
5063
5064 _ACEOF
5065 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5066 $EGREP "Amsterdam" >/dev/null 2>&1; then :
5067 gl_cv_c_amsterdam_compiler=yes
5068 else
5069 gl_cv_c_amsterdam_compiler=no
5070 fi
5071 rm -f conftest*
5072
5073
5074 fi
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
5076 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
5077
5078 if test $gl_cv_c_amsterdam_compiler = yes; then
5079 if test -z "$AR"; then
5080 AR='cc -c.a'
5081 fi
5082 if test -z "$ARFLAGS"; then
5083 ARFLAGS='-o'
5084 fi
5085 else
5086 if test -n "$ac_tool_prefix"; then
5087 for ac_prog in ar lib "link -lib"
5088 do
5089 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5090 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5092 $as_echo_n "checking for $ac_word... " >&6; }
5093 if ${ac_cv_prog_AR+:} false; then :
5094 $as_echo_n "(cached) " >&6
5095 else
5096 if test -n "$AR"; then
5097 ac_cv_prog_AR="$AR" # Let the user override the test.
5098 else
5099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5100 for as_dir in $PATH
5101 do
5102 IFS=$as_save_IFS
5103 test -z "$as_dir" && as_dir=.
5104 for ac_exec_ext in '' $ac_executable_extensions; do
5105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5106 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5108 break 2
5109 fi
5110 done
5111 done
5112 IFS=$as_save_IFS
5113
5114 fi
5115 fi
5116 AR=$ac_cv_prog_AR
5117 if test -n "$AR"; then
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5119 $as_echo "$AR" >&6; }
5120 else
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5122 $as_echo "no" >&6; }
5123 fi
5124
5125
5126 test -n "$AR" && break
5127 done
5128 fi
5129 if test -z "$AR"; then
5130 ac_ct_AR=$AR
5131 for ac_prog in ar lib "link -lib"
5132 do
5133 # Extract the first word of "$ac_prog", so it can be a program name with args.
5134 set dummy $ac_prog; ac_word=$2
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5136 $as_echo_n "checking for $ac_word... " >&6; }
5137 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5138 $as_echo_n "(cached) " >&6
5139 else
5140 if test -n "$ac_ct_AR"; then
5141 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5142 else
5143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5144 for as_dir in $PATH
5145 do
5146 IFS=$as_save_IFS
5147 test -z "$as_dir" && as_dir=.
5148 for ac_exec_ext in '' $ac_executable_extensions; do
5149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5150 ac_cv_prog_ac_ct_AR="$ac_prog"
5151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5152 break 2
5153 fi
5154 done
5155 done
5156 IFS=$as_save_IFS
5157
5158 fi
5159 fi
5160 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5161 if test -n "$ac_ct_AR"; then
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5163 $as_echo "$ac_ct_AR" >&6; }
5164 else
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5166 $as_echo "no" >&6; }
5167 fi
5168
5169
5170 test -n "$ac_ct_AR" && break
5171 done
5172
5173 if test "x$ac_ct_AR" = x; then
5174 AR="false"
5175 else
5176 case $cross_compiling:$ac_tool_warned in
5177 yes:)
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5179 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5180 ac_tool_warned=yes ;;
5181 esac
5182 AR=$ac_ct_AR
5183 fi
5184 fi
5185
5186 : ${AR=ar}
5187
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5189 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
5190 if ${am_cv_ar_interface+:} false; then :
5191 $as_echo_n "(cached) " >&6
5192 else
5193 ac_ext=c
5194 ac_cpp='$CPP $CPPFLAGS'
5195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5198
5199 am_cv_ar_interface=ar
5200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5201 /* end confdefs.h. */
5202 int some_variable = 0;
5203 _ACEOF
5204 if ac_fn_c_try_compile "$LINENO"; then :
5205 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5206 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5207 (eval $am_ar_try) 2>&5
5208 ac_status=$?
5209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5210 test $ac_status = 0; }
5211 if test "$ac_status" -eq 0; then
5212 am_cv_ar_interface=ar
5213 else
5214 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5215 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5216 (eval $am_ar_try) 2>&5
5217 ac_status=$?
5218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5219 test $ac_status = 0; }
5220 if test "$ac_status" -eq 0; then
5221 am_cv_ar_interface=lib
5222 else
5223 am_cv_ar_interface=unknown
5224 fi
5225 fi
5226 rm -f conftest.lib libconftest.a
5227
5228 fi
5229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5230 ac_ext=c
5231 ac_cpp='$CPP $CPPFLAGS'
5232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5235
5236 fi
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5238 $as_echo "$am_cv_ar_interface" >&6; }
5239
5240 case $am_cv_ar_interface in
5241 ar)
5242 ;;
5243 lib)
5244 # Microsoft lib, so override with the ar-lib wrapper script.
5245 # FIXME: It is wrong to rewrite AR.
5246 # But if we don't then we get into trouble of one sort or another.
5247 # A longer-term fix would be to have automake use am__AR in this case,
5248 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5249 # similar.
5250 AR="$am_aux_dir/ar-lib $AR"
5251 ;;
5252 unknown)
5253 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5254 ;;
5255 esac
5256
5257 fi
5258
5259 if test -n "$ac_tool_prefix"; then
5260 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5261 set dummy ${ac_tool_prefix}ar; ac_word=$2
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5263 $as_echo_n "checking for $ac_word... " >&6; }
5264 if ${ac_cv_prog_AR+:} false; then :
5265 $as_echo_n "(cached) " >&6
5266 else
5267 if test -n "$AR"; then
5268 ac_cv_prog_AR="$AR" # Let the user override the test.
5269 else
5270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5271 for as_dir in $PATH
5272 do
5273 IFS=$as_save_IFS
5274 test -z "$as_dir" && as_dir=.
5275 for ac_exec_ext in '' $ac_executable_extensions; do
5276 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5277 ac_cv_prog_AR="${ac_tool_prefix}ar"
5278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5279 break 2
5280 fi
5281 done
5282 done
5283 IFS=$as_save_IFS
5284
5285 fi
5286 fi
5287 AR=$ac_cv_prog_AR
5288 if test -n "$AR"; then
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5290 $as_echo "$AR" >&6; }
5291 else
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5293 $as_echo "no" >&6; }
5294 fi
5295
5296
5297 fi
5298 if test -z "$ac_cv_prog_AR"; then
5299 ac_ct_AR=$AR
5300 # Extract the first word of "ar", so it can be a program name with args.
5301 set dummy ar; ac_word=$2
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5303 $as_echo_n "checking for $ac_word... " >&6; }
5304 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5305 $as_echo_n "(cached) " >&6
5306 else
5307 if test -n "$ac_ct_AR"; then
5308 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5309 else
5310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5311 for as_dir in $PATH
5312 do
5313 IFS=$as_save_IFS
5314 test -z "$as_dir" && as_dir=.
5315 for ac_exec_ext in '' $ac_executable_extensions; do
5316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5317 ac_cv_prog_ac_ct_AR="ar"
5318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5319 break 2
5320 fi
5321 done
5322 done
5323 IFS=$as_save_IFS
5324
5325 fi
5326 fi
5327 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5328 if test -n "$ac_ct_AR"; then
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5330 $as_echo "$ac_ct_AR" >&6; }
5331 else
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5333 $as_echo "no" >&6; }
5334 fi
5335
5336 if test "x$ac_ct_AR" = x; then
5337 AR="ar"
5338 else
5339 case $cross_compiling:$ac_tool_warned in
5340 yes:)
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5342 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5343 ac_tool_warned=yes ;;
5344 esac
5345 AR=$ac_ct_AR
5346 fi
5347 else
5348 AR="$ac_cv_prog_AR"
5349 fi
5350
5351 if test -z "$ARFLAGS"; then
5352 ARFLAGS='cr'
5353 fi
5354
5355
5356
5357 if test -z "$RANLIB"; then
5358 if test $gl_cv_c_amsterdam_compiler = yes; then
5359 RANLIB=':'
5360 else
5361 if test -n "$ac_tool_prefix"; then
5362 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5363 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5365 $as_echo_n "checking for $ac_word... " >&6; }
5366 if ${ac_cv_prog_RANLIB+:} false; then :
5367 $as_echo_n "(cached) " >&6
5368 else
5369 if test -n "$RANLIB"; then
5370 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5371 else
5372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5373 for as_dir in $PATH
5374 do
5375 IFS=$as_save_IFS
5376 test -z "$as_dir" && as_dir=.
5377 for ac_exec_ext in '' $ac_executable_extensions; do
5378 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5379 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5381 break 2
5382 fi
5383 done
5384 done
5385 IFS=$as_save_IFS
5386
5387 fi
5388 fi
5389 RANLIB=$ac_cv_prog_RANLIB
5390 if test -n "$RANLIB"; then
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5392 $as_echo "$RANLIB" >&6; }
5393 else
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5395 $as_echo "no" >&6; }
5396 fi
5397
5398
5399 fi
5400 if test -z "$ac_cv_prog_RANLIB"; then
5401 ac_ct_RANLIB=$RANLIB
5402 # Extract the first word of "ranlib", so it can be a program name with args.
5403 set dummy ranlib; ac_word=$2
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5405 $as_echo_n "checking for $ac_word... " >&6; }
5406 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5407 $as_echo_n "(cached) " >&6
5408 else
5409 if test -n "$ac_ct_RANLIB"; then
5410 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5411 else
5412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5413 for as_dir in $PATH
5414 do
5415 IFS=$as_save_IFS
5416 test -z "$as_dir" && as_dir=.
5417 for ac_exec_ext in '' $ac_executable_extensions; do
5418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5419 ac_cv_prog_ac_ct_RANLIB="ranlib"
5420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5421 break 2
5422 fi
5423 done
5424 done
5425 IFS=$as_save_IFS
5426
5427 fi
5428 fi
5429 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5430 if test -n "$ac_ct_RANLIB"; then
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5432 $as_echo "$ac_ct_RANLIB" >&6; }
5433 else
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5435 $as_echo "no" >&6; }
5436 fi
5437
5438 if test "x$ac_ct_RANLIB" = x; then
5439 RANLIB=":"
5440 else
5441 case $cross_compiling:$ac_tool_warned in
5442 yes:)
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5444 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5445 ac_tool_warned=yes ;;
5446 esac
5447 RANLIB=$ac_ct_RANLIB
5448 fi
5449 else
5450 RANLIB="$ac_cv_prog_RANLIB"
5451 fi
5452
5453 fi
5454 fi
5455
5456
5457 # Make sure we can run config.sub.
5458 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5459 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5460
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5462 $as_echo_n "checking build system type... " >&6; }
5463 if ${ac_cv_build+:} false; then :
5464 $as_echo_n "(cached) " >&6
5465 else
5466 ac_build_alias=$build_alias
5467 test "x$ac_build_alias" = x &&
5468 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5469 test "x$ac_build_alias" = x &&
5470 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5471 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5472 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5473
5474 fi
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5476 $as_echo "$ac_cv_build" >&6; }
5477 case $ac_cv_build in
5478 *-*-*) ;;
5479 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5480 esac
5481 build=$ac_cv_build
5482 ac_save_IFS=$IFS; IFS='-'
5483 set x $ac_cv_build
5484 shift
5485 build_cpu=$1
5486 build_vendor=$2
5487 shift; shift
5488 # Remember, the first character of IFS is used to create $*,
5489 # except with old shells:
5490 build_os=$*
5491 IFS=$ac_save_IFS
5492 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5493
5494
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5496 $as_echo_n "checking host system type... " >&6; }
5497 if ${ac_cv_host+:} false; then :
5498 $as_echo_n "(cached) " >&6
5499 else
5500 if test "x$host_alias" = x; then
5501 ac_cv_host=$ac_cv_build
5502 else
5503 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5504 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5505 fi
5506
5507 fi
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5509 $as_echo "$ac_cv_host" >&6; }
5510 case $ac_cv_host in
5511 *-*-*) ;;
5512 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5513 esac
5514 host=$ac_cv_host
5515 ac_save_IFS=$IFS; IFS='-'
5516 set x $ac_cv_host
5517 shift
5518 host_cpu=$1
5519 host_vendor=$2
5520 shift; shift
5521 # Remember, the first character of IFS is used to create $*,
5522 # except with old shells:
5523 host_os=$*
5524 IFS=$ac_save_IFS
5525 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5526
5527
5528
5529
5530
5531 # IEEE behaviour is the default on all CPUs except Alpha and SH
5532 # (according to the test results of Bruno Haible's ieeefp/fenv_default.m4
5533 # and the GCC 4.1.2 manual).
5534 case "$host_cpu" in
5535 alpha*)
5536 # On Alpha systems, a compiler option provides the behaviour.
5537 # See the ieee(3) manual page, also available at
5538 # <http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V51B_HTML/MAN/MAN3/0600____.HTM>
5539 if test -n "$GCC"; then
5540 # GCC has the option -mieee.
5541 # For full IEEE compliance (rarely needed), use option -mieee-with-inexact.
5542 CPPFLAGS="$CPPFLAGS -mieee"
5543 else
5544 # Compaq (ex-DEC) C has the option -ieee, equivalent to -ieee_with_no_inexact.
5545 # For full IEEE compliance (rarely needed), use option -ieee_with_inexact.
5546 CPPFLAGS="$CPPFLAGS -ieee"
5547 fi
5548 ;;
5549 sh*)
5550 if test -n "$GCC"; then
5551 # GCC has the option -mieee.
5552 CPPFLAGS="$CPPFLAGS -mieee"
5553 fi
5554 ;;
5555 esac
5556
5557 # Check whether --enable-largefile was given.
5558 if test "${enable_largefile+set}" = set; then :
5559 enableval=$enable_largefile;
5560 fi
5561
5562 if test "$enable_largefile" != no; then
5563
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5565 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5566 if ${ac_cv_sys_largefile_CC+:} false; then :
5567 $as_echo_n "(cached) " >&6
5568 else
5569 ac_cv_sys_largefile_CC=no
5570 if test "$GCC" != yes; then
5571 ac_save_CC=$CC
5572 while :; do
5573 # IRIX 6.2 and later do not support large files by default,
5574 # so use the C compiler's -n32 option if that helps.
5575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5576 /* end confdefs.h. */
5577 #include <sys/types.h>
5578 /* Check that off_t can represent 2**63 - 1 correctly.
5579 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5580 since some C++ compilers masquerading as C compilers
5581 incorrectly reject 9223372036854775807. */
5582 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5583 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5584 && LARGE_OFF_T % 2147483647 == 1)
5585 ? 1 : -1];
5586 int
5587 main ()
5588 {
5589
5590 ;
5591 return 0;
5592 }
5593 _ACEOF
5594 if ac_fn_c_try_compile "$LINENO"; then :
5595 break
5596 fi
5597 rm -f core conftest.err conftest.$ac_objext
5598 CC="$CC -n32"
5599 if ac_fn_c_try_compile "$LINENO"; then :
5600 ac_cv_sys_largefile_CC=' -n32'; break
5601 fi
5602 rm -f core conftest.err conftest.$ac_objext
5603 break
5604 done
5605 CC=$ac_save_CC
5606 rm -f conftest.$ac_ext
5607 fi
5608 fi
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5610 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5611 if test "$ac_cv_sys_largefile_CC" != no; then
5612 CC=$CC$ac_cv_sys_largefile_CC
5613 fi
5614
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5616 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5617 if ${ac_cv_sys_file_offset_bits+:} false; then :
5618 $as_echo_n "(cached) " >&6
5619 else
5620 while :; do
5621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5622 /* end confdefs.h. */
5623 #include <sys/types.h>
5624 /* Check that off_t can represent 2**63 - 1 correctly.
5625 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5626 since some C++ compilers masquerading as C compilers
5627 incorrectly reject 9223372036854775807. */
5628 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5629 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5630 && LARGE_OFF_T % 2147483647 == 1)
5631 ? 1 : -1];
5632 int
5633 main ()
5634 {
5635
5636 ;
5637 return 0;
5638 }
5639 _ACEOF
5640 if ac_fn_c_try_compile "$LINENO"; then :
5641 ac_cv_sys_file_offset_bits=no; break
5642 fi
5643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5645 /* end confdefs.h. */
5646 #define _FILE_OFFSET_BITS 64
5647 #include <sys/types.h>
5648 /* Check that off_t can represent 2**63 - 1 correctly.
5649 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5650 since some C++ compilers masquerading as C compilers
5651 incorrectly reject 9223372036854775807. */
5652 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5653 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5654 && LARGE_OFF_T % 2147483647 == 1)
5655 ? 1 : -1];
5656 int
5657 main ()
5658 {
5659
5660 ;
5661 return 0;
5662 }
5663 _ACEOF
5664 if ac_fn_c_try_compile "$LINENO"; then :
5665 ac_cv_sys_file_offset_bits=64; break
5666 fi
5667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5668 ac_cv_sys_file_offset_bits=unknown
5669 break
5670 done
5671 fi
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5673 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5674 case $ac_cv_sys_file_offset_bits in #(
5675 no | unknown) ;;
5676 *)
5677 cat >>confdefs.h <<_ACEOF
5678 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5679 _ACEOF
5680 ;;
5681 esac
5682 rm -rf conftest*
5683 if test $ac_cv_sys_file_offset_bits = unknown; then
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5685 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5686 if ${ac_cv_sys_large_files+:} false; then :
5687 $as_echo_n "(cached) " >&6
5688 else
5689 while :; do
5690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5691 /* end confdefs.h. */
5692 #include <sys/types.h>
5693 /* Check that off_t can represent 2**63 - 1 correctly.
5694 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5695 since some C++ compilers masquerading as C compilers
5696 incorrectly reject 9223372036854775807. */
5697 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5698 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5699 && LARGE_OFF_T % 2147483647 == 1)
5700 ? 1 : -1];
5701 int
5702 main ()
5703 {
5704
5705 ;
5706 return 0;
5707 }
5708 _ACEOF
5709 if ac_fn_c_try_compile "$LINENO"; then :
5710 ac_cv_sys_large_files=no; break
5711 fi
5712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5714 /* end confdefs.h. */
5715 #define _LARGE_FILES 1
5716 #include <sys/types.h>
5717 /* Check that off_t can represent 2**63 - 1 correctly.
5718 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5719 since some C++ compilers masquerading as C compilers
5720 incorrectly reject 9223372036854775807. */
5721 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5722 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5723 && LARGE_OFF_T % 2147483647 == 1)
5724 ? 1 : -1];
5725 int
5726 main ()
5727 {
5728
5729 ;
5730 return 0;
5731 }
5732 _ACEOF
5733 if ac_fn_c_try_compile "$LINENO"; then :
5734 ac_cv_sys_large_files=1; break
5735 fi
5736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5737 ac_cv_sys_large_files=unknown
5738 break
5739 done
5740 fi
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5742 $as_echo "$ac_cv_sys_large_files" >&6; }
5743 case $ac_cv_sys_large_files in #(
5744 no | unknown) ;;
5745 *)
5746 cat >>confdefs.h <<_ACEOF
5747 #define _LARGE_FILES $ac_cv_sys_large_files
5748 _ACEOF
5749 ;;
5750 esac
5751 rm -rf conftest*
5752 fi
5753
5754
5755 $as_echo "#define _DARWIN_USE_64_BIT_INODE 1" >>confdefs.h
5756
5757 fi
5758
5759
5760
5761 # Pre-early section.
5762
5763
5764
5765 # Code from module absolute-header:
5766 # Code from module alloca:
5767 # Code from module alloca-opt:
5768 # Code from module arpa_inet:
5769 # Code from module assure:
5770 # Code from module at-internal:
5771 # Code from module canonicalize-lgpl:
5772 # Code from module chdir:
5773 # Code from module chdir-long:
5774 # Code from module cloexec:
5775 # Code from module close:
5776 # Code from module closedir:
5777 # Code from module configmake:
5778 # Code from module d-ino:
5779 # Code from module d-type:
5780 # Code from module dirent:
5781 # Code from module dirfd:
5782 # Code from module dirname-lgpl:
5783 # Code from module dosname:
5784 # Code from module double-slash-root:
5785 # Code from module dup:
5786 # Code from module dup2:
5787 # Code from module environ:
5788 # Code from module errno:
5789 # Code from module error:
5790 # Code from module exitfail:
5791 # Code from module extensions:
5792 # Code from module extern-inline:
5793 # Code from module fchdir:
5794 # Code from module fcntl:
5795 # Code from module fcntl-h:
5796 # Code from module fd-hook:
5797 # Code from module fdopendir:
5798 # Code from module filename:
5799 # Code from module filenamecat-lgpl:
5800 # Code from module flexmember:
5801 # Code from module float:
5802 # Code from module fnmatch:
5803 # Code from module fnmatch-gnu:
5804 # Code from module fpieee:
5805
5806 # Code from module fpucw:
5807 # Code from module frexp:
5808 # Code from module frexpl:
5809 # Code from module fstat:
5810 # Code from module fstatat:
5811 # Code from module getcwd:
5812 # Code from module getcwd-lgpl:
5813 # Code from module getdtablesize:
5814 # Code from module getlogin_r:
5815 # Code from module getprogname:
5816 # Code from module gettext-h:
5817 # Code from module gettimeofday:
5818 # Code from module glob:
5819 # Code from module hard-locale:
5820 # Code from module include_next:
5821 # Code from module inet_ntop:
5822 # Code from module intprops:
5823 # Code from module inttypes:
5824 # Code from module inttypes-incomplete:
5825 # Code from module isnand-nolibm:
5826 # Code from module isnanl-nolibm:
5827 # Code from module largefile:
5828
5829 # Code from module limits-h:
5830 # Code from module localcharset:
5831 # Code from module lstat:
5832 # Code from module malloc-posix:
5833 # Code from module malloca:
5834 # Code from module math:
5835 # Code from module mbrtowc:
5836 # Code from module mbsinit:
5837 # Code from module mbsrtowcs:
5838 # Code from module memchr:
5839 # Code from module memmem:
5840 # Code from module memmem-simple:
5841 # Code from module mempcpy:
5842 # Code from module memrchr:
5843 # Code from module mkdir:
5844 # Code from module mkstemp:
5845 # Code from module msvc-inval:
5846 # Code from module msvc-nothrow:
5847 # Code from module multiarch:
5848 # Code from module netinet_in:
5849 # Code from module nocrash:
5850 # Code from module open:
5851 # Code from module openat:
5852 # Code from module openat-die:
5853 # Code from module openat-h:
5854 # Code from module opendir:
5855 # Code from module pathmax:
5856 # Code from module rawmemchr:
5857 # Code from module readdir:
5858 # Code from module readlink:
5859 # Code from module realloc-posix:
5860 # Code from module rename:
5861 # Code from module rewinddir:
5862 # Code from module rmdir:
5863 # Code from module same-inode:
5864 # Code from module save-cwd:
5865 # Code from module secure_getenv:
5866 # Code from module setenv:
5867 # Code from module signal-h:
5868 # Code from module snippet/_Noreturn:
5869 # Code from module snippet/arg-nonnull:
5870 # Code from module snippet/c++defs:
5871 # Code from module snippet/warn-on-use:
5872 # Code from module socklen:
5873 # Code from module ssize_t:
5874 # Code from module stat:
5875 # Code from module stdalign:
5876 # Code from module stdbool:
5877 # Code from module stddef:
5878 # Code from module stdint:
5879 # Code from module stdio:
5880 # Code from module stdlib:
5881 # Code from module strchrnul:
5882 # Code from module strdup-posix:
5883 # Code from module streq:
5884 # Code from module strerror:
5885 # Code from module strerror-override:
5886 # Code from module string:
5887 # Code from module strnlen1:
5888 # Code from module strstr:
5889 # Code from module strstr-simple:
5890 # Code from module strtok_r:
5891 # Code from module sys_socket:
5892 # Code from module sys_stat:
5893 # Code from module sys_time:
5894 # Code from module sys_types:
5895 # Code from module sys_uio:
5896 # Code from module tempname:
5897 # Code from module time:
5898 # Code from module unistd:
5899 # Code from module unistd-safer:
5900 # Code from module unsetenv:
5901 # Code from module update-copyright:
5902 # Code from module verify:
5903 # Code from module wchar:
5904 # Code from module wctype-h:
5905
5906 ac_ext=c
5907 ac_cpp='$CPP $CPPFLAGS'
5908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5911 if test -n "$ac_tool_prefix"; then
5912 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5913 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5915 $as_echo_n "checking for $ac_word... " >&6; }
5916 if ${ac_cv_prog_CC+:} false; then :
5917 $as_echo_n "(cached) " >&6
5918 else
5919 if test -n "$CC"; then
5920 ac_cv_prog_CC="$CC" # Let the user override the test.
5921 else
5922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5923 for as_dir in $PATH
5924 do
5925 IFS=$as_save_IFS
5926 test -z "$as_dir" && as_dir=.
5927 for ac_exec_ext in '' $ac_executable_extensions; do
5928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5929 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5931 break 2
5932 fi
5933 done
5934 done
5935 IFS=$as_save_IFS
5936
5937 fi
5938 fi
5939 CC=$ac_cv_prog_CC
5940 if test -n "$CC"; then
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5942 $as_echo "$CC" >&6; }
5943 else
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5945 $as_echo "no" >&6; }
5946 fi
5947
5948
5949 fi
5950 if test -z "$ac_cv_prog_CC"; then
5951 ac_ct_CC=$CC
5952 # Extract the first word of "gcc", so it can be a program name with args.
5953 set dummy gcc; ac_word=$2
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5955 $as_echo_n "checking for $ac_word... " >&6; }
5956 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5957 $as_echo_n "(cached) " >&6
5958 else
5959 if test -n "$ac_ct_CC"; then
5960 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5961 else
5962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5963 for as_dir in $PATH
5964 do
5965 IFS=$as_save_IFS
5966 test -z "$as_dir" && as_dir=.
5967 for ac_exec_ext in '' $ac_executable_extensions; do
5968 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5969 ac_cv_prog_ac_ct_CC="gcc"
5970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5971 break 2
5972 fi
5973 done
5974 done
5975 IFS=$as_save_IFS
5976
5977 fi
5978 fi
5979 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5980 if test -n "$ac_ct_CC"; then
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5982 $as_echo "$ac_ct_CC" >&6; }
5983 else
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5985 $as_echo "no" >&6; }
5986 fi
5987
5988 if test "x$ac_ct_CC" = x; then
5989 CC=""
5990 else
5991 case $cross_compiling:$ac_tool_warned in
5992 yes:)
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5994 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5995 ac_tool_warned=yes ;;
5996 esac
5997 CC=$ac_ct_CC
5998 fi
5999 else
6000 CC="$ac_cv_prog_CC"
6001 fi
6002
6003 if test -z "$CC"; then
6004 if test -n "$ac_tool_prefix"; then
6005 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6006 set dummy ${ac_tool_prefix}cc; ac_word=$2
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6008 $as_echo_n "checking for $ac_word... " >&6; }
6009 if ${ac_cv_prog_CC+:} false; then :
6010 $as_echo_n "(cached) " >&6
6011 else
6012 if test -n "$CC"; then
6013 ac_cv_prog_CC="$CC" # Let the user override the test.
6014 else
6015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6016 for as_dir in $PATH
6017 do
6018 IFS=$as_save_IFS
6019 test -z "$as_dir" && as_dir=.
6020 for ac_exec_ext in '' $ac_executable_extensions; do
6021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6022 ac_cv_prog_CC="${ac_tool_prefix}cc"
6023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6024 break 2
6025 fi
6026 done
6027 done
6028 IFS=$as_save_IFS
6029
6030 fi
6031 fi
6032 CC=$ac_cv_prog_CC
6033 if test -n "$CC"; then
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6035 $as_echo "$CC" >&6; }
6036 else
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6038 $as_echo "no" >&6; }
6039 fi
6040
6041
6042 fi
6043 fi
6044 if test -z "$CC"; then
6045 # Extract the first word of "cc", so it can be a program name with args.
6046 set dummy cc; ac_word=$2
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6048 $as_echo_n "checking for $ac_word... " >&6; }
6049 if ${ac_cv_prog_CC+:} false; then :
6050 $as_echo_n "(cached) " >&6
6051 else
6052 if test -n "$CC"; then
6053 ac_cv_prog_CC="$CC" # Let the user override the test.
6054 else
6055 ac_prog_rejected=no
6056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6057 for as_dir in $PATH
6058 do
6059 IFS=$as_save_IFS
6060 test -z "$as_dir" && as_dir=.
6061 for ac_exec_ext in '' $ac_executable_extensions; do
6062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6063 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6064 ac_prog_rejected=yes
6065 continue
6066 fi
6067 ac_cv_prog_CC="cc"
6068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6069 break 2
6070 fi
6071 done
6072 done
6073 IFS=$as_save_IFS
6074
6075 if test $ac_prog_rejected = yes; then
6076 # We found a bogon in the path, so make sure we never use it.
6077 set dummy $ac_cv_prog_CC
6078 shift
6079 if test $# != 0; then
6080 # We chose a different compiler from the bogus one.
6081 # However, it has the same basename, so the bogon will be chosen
6082 # first if we set CC to just the basename; use the full file name.
6083 shift
6084 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6085 fi
6086 fi
6087 fi
6088 fi
6089 CC=$ac_cv_prog_CC
6090 if test -n "$CC"; then
6091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6092 $as_echo "$CC" >&6; }
6093 else
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6095 $as_echo "no" >&6; }
6096 fi
6097
6098
6099 fi
6100 if test -z "$CC"; then
6101 if test -n "$ac_tool_prefix"; then
6102 for ac_prog in cl.exe
6103 do
6104 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6105 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6107 $as_echo_n "checking for $ac_word... " >&6; }
6108 if ${ac_cv_prog_CC+:} false; then :
6109 $as_echo_n "(cached) " >&6
6110 else
6111 if test -n "$CC"; then
6112 ac_cv_prog_CC="$CC" # Let the user override the test.
6113 else
6114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6115 for as_dir in $PATH
6116 do
6117 IFS=$as_save_IFS
6118 test -z "$as_dir" && as_dir=.
6119 for ac_exec_ext in '' $ac_executable_extensions; do
6120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6121 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6123 break 2
6124 fi
6125 done
6126 done
6127 IFS=$as_save_IFS
6128
6129 fi
6130 fi
6131 CC=$ac_cv_prog_CC
6132 if test -n "$CC"; then
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6134 $as_echo "$CC" >&6; }
6135 else
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6137 $as_echo "no" >&6; }
6138 fi
6139
6140
6141 test -n "$CC" && break
6142 done
6143 fi
6144 if test -z "$CC"; then
6145 ac_ct_CC=$CC
6146 for ac_prog in cl.exe
6147 do
6148 # Extract the first word of "$ac_prog", so it can be a program name with args.
6149 set dummy $ac_prog; ac_word=$2
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6151 $as_echo_n "checking for $ac_word... " >&6; }
6152 if ${ac_cv_prog_ac_ct_CC+:} false; then :
6153 $as_echo_n "(cached) " >&6
6154 else
6155 if test -n "$ac_ct_CC"; then
6156 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6157 else
6158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6159 for as_dir in $PATH
6160 do
6161 IFS=$as_save_IFS
6162 test -z "$as_dir" && as_dir=.
6163 for ac_exec_ext in '' $ac_executable_extensions; do
6164 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6165 ac_cv_prog_ac_ct_CC="$ac_prog"
6166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6167 break 2
6168 fi
6169 done
6170 done
6171 IFS=$as_save_IFS
6172
6173 fi
6174 fi
6175 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6176 if test -n "$ac_ct_CC"; then
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6178 $as_echo "$ac_ct_CC" >&6; }
6179 else
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6181 $as_echo "no" >&6; }
6182 fi
6183
6184
6185 test -n "$ac_ct_CC" && break
6186 done
6187
6188 if test "x$ac_ct_CC" = x; then
6189 CC=""
6190 else
6191 case $cross_compiling:$ac_tool_warned in
6192 yes:)
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6194 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6195 ac_tool_warned=yes ;;
6196 esac
6197 CC=$ac_ct_CC
6198 fi
6199 fi
6200
6201 fi
6202
6203
6204 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6205 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6206 as_fn_error $? "no acceptable C compiler found in \$PATH
6207 See \`config.log' for more details" "$LINENO" 5; }
6208
6209 # Provide some information about the compiler.
6210 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6211 set X $ac_compile
6212 ac_compiler=$2
6213 for ac_option in --version -v -V -qversion; do
6214 { { ac_try="$ac_compiler $ac_option >&5"
6215 case "(($ac_try" in
6216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6217 *) ac_try_echo=$ac_try;;
6218 esac
6219 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6220 $as_echo "$ac_try_echo"; } >&5
6221 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6222 ac_status=$?
6223 if test -s conftest.err; then
6224 sed '10a\
6225 ... rest of stderr output deleted ...
6226 10q' conftest.err >conftest.er1
6227 cat conftest.er1 >&5
6228 fi
6229 rm -f conftest.er1 conftest.err
6230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6231 test $ac_status = 0; }
6232 done
6233
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6235 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6236 if ${ac_cv_c_compiler_gnu+:} false; then :
6237 $as_echo_n "(cached) " >&6
6238 else
6239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6240 /* end confdefs.h. */
6241
6242 int
6243 main ()
6244 {
6245 #ifndef __GNUC__
6246 choke me
6247 #endif
6248
6249 ;
6250 return 0;
6251 }
6252 _ACEOF
6253 if ac_fn_c_try_compile "$LINENO"; then :
6254 ac_compiler_gnu=yes
6255 else
6256 ac_compiler_gnu=no
6257 fi
6258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6259 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6260
6261 fi
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6263 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
6264 if test $ac_compiler_gnu = yes; then
6265 GCC=yes
6266 else
6267 GCC=
6268 fi
6269 ac_test_CFLAGS=${CFLAGS+set}
6270 ac_save_CFLAGS=$CFLAGS
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6272 $as_echo_n "checking whether $CC accepts -g... " >&6; }
6273 if ${ac_cv_prog_cc_g+:} false; then :
6274 $as_echo_n "(cached) " >&6
6275 else
6276 ac_save_c_werror_flag=$ac_c_werror_flag
6277 ac_c_werror_flag=yes
6278 ac_cv_prog_cc_g=no
6279 CFLAGS="-g"
6280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6281 /* end confdefs.h. */
6282
6283 int
6284 main ()
6285 {
6286
6287 ;
6288 return 0;
6289 }
6290 _ACEOF
6291 if ac_fn_c_try_compile "$LINENO"; then :
6292 ac_cv_prog_cc_g=yes
6293 else
6294 CFLAGS=""
6295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6296 /* end confdefs.h. */
6297
6298 int
6299 main ()
6300 {
6301
6302 ;
6303 return 0;
6304 }
6305 _ACEOF
6306 if ac_fn_c_try_compile "$LINENO"; then :
6307
6308 else
6309 ac_c_werror_flag=$ac_save_c_werror_flag
6310 CFLAGS="-g"
6311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6312 /* end confdefs.h. */
6313
6314 int
6315 main ()
6316 {
6317
6318 ;
6319 return 0;
6320 }
6321 _ACEOF
6322 if ac_fn_c_try_compile "$LINENO"; then :
6323 ac_cv_prog_cc_g=yes
6324 fi
6325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6326 fi
6327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6328 fi
6329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6330 ac_c_werror_flag=$ac_save_c_werror_flag
6331 fi
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6333 $as_echo "$ac_cv_prog_cc_g" >&6; }
6334 if test "$ac_test_CFLAGS" = set; then
6335 CFLAGS=$ac_save_CFLAGS
6336 elif test $ac_cv_prog_cc_g = yes; then
6337 if test "$GCC" = yes; then
6338 CFLAGS="-g -O2"
6339 else
6340 CFLAGS="-g"
6341 fi
6342 else
6343 if test "$GCC" = yes; then
6344 CFLAGS="-O2"
6345 else
6346 CFLAGS=
6347 fi
6348 fi
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6350 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6351 if ${ac_cv_prog_cc_c89+:} false; then :
6352 $as_echo_n "(cached) " >&6
6353 else
6354 ac_cv_prog_cc_c89=no
6355 ac_save_CC=$CC
6356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6357 /* end confdefs.h. */
6358 #include <stdarg.h>
6359 #include <stdio.h>
6360 struct stat;
6361 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6362 struct buf { int x; };
6363 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6364 static char *e (p, i)
6365 char **p;
6366 int i;
6367 {
6368 return p[i];
6369 }
6370 static char *f (char * (*g) (char **, int), char **p, ...)
6371 {
6372 char *s;
6373 va_list v;
6374 va_start (v,p);
6375 s = g (p, va_arg (v,int));
6376 va_end (v);
6377 return s;
6378 }
6379
6380 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6381 function prototypes and stuff, but not '\xHH' hex character constants.
6382 These don't provoke an error unfortunately, instead are silently treated
6383 as 'x'. The following induces an error, until -std is added to get
6384 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6385 array size at least. It's necessary to write '\x00'==0 to get something
6386 that's true only with -std. */
6387 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6388
6389 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6390 inside strings and character constants. */
6391 #define FOO(x) 'x'
6392 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6393
6394 int test (int i, double x);
6395 struct s1 {int (*f) (int a);};
6396 struct s2 {int (*f) (double a);};
6397 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6398 int argc;
6399 char **argv;
6400 int
6401 main ()
6402 {
6403 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6404 ;
6405 return 0;
6406 }
6407 _ACEOF
6408 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6409 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6410 do
6411 CC="$ac_save_CC $ac_arg"
6412 if ac_fn_c_try_compile "$LINENO"; then :
6413 ac_cv_prog_cc_c89=$ac_arg
6414 fi
6415 rm -f core conftest.err conftest.$ac_objext
6416 test "x$ac_cv_prog_cc_c89" != "xno" && break
6417 done
6418 rm -f conftest.$ac_ext
6419 CC=$ac_save_CC
6420
6421 fi
6422 # AC_CACHE_VAL
6423 case "x$ac_cv_prog_cc_c89" in
6424 x)
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6426 $as_echo "none needed" >&6; } ;;
6427 xno)
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6429 $as_echo "unsupported" >&6; } ;;
6430 *)
6431 CC="$CC $ac_cv_prog_cc_c89"
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6433 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6434 esac
6435 if test "x$ac_cv_prog_cc_c89" != xno; then :
6436
6437 fi
6438
6439 ac_ext=c
6440 ac_cpp='$CPP $CPPFLAGS'
6441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6444
6445 ac_ext=c
6446 ac_cpp='$CPP $CPPFLAGS'
6447 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6448 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6449 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6451 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
6452 if ${am_cv_prog_cc_c_o+:} false; then :
6453 $as_echo_n "(cached) " >&6
6454 else
6455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6456 /* end confdefs.h. */
6457
6458 int
6459 main ()
6460 {
6461
6462 ;
6463 return 0;
6464 }
6465 _ACEOF
6466 # Make sure it works both with $CC and with simple cc.
6467 # Following AC_PROG_CC_C_O, we do the test twice because some
6468 # compilers refuse to overwrite an existing .o file with -o,
6469 # though they will create one.
6470 am_cv_prog_cc_c_o=yes
6471 for am_i in 1 2; do
6472 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6473 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6474 ac_status=$?
6475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6476 (exit $ac_status); } \
6477 && test -f conftest2.$ac_objext; then
6478 : OK
6479 else
6480 am_cv_prog_cc_c_o=no
6481 break
6482 fi
6483 done
6484 rm -f core conftest*
6485 unset am_i
6486 fi
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6488 $as_echo "$am_cv_prog_cc_c_o" >&6; }
6489 if test "$am_cv_prog_cc_c_o" != yes; then
6490 # Losing compiler, so override with the script.
6491 # FIXME: It is wrong to rewrite CC.
6492 # But if we don't then we get into trouble of one sort or another.
6493 # A longer-term fix would be to have automake use am__CC in this case,
6494 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6495 CC="$am_aux_dir/compile $CC"
6496 fi
6497 ac_ext=c
6498 ac_cpp='$CPP $CPPFLAGS'
6499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6502
6503
6504 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
6505
6506
6507 ac_aux_dir=
6508 for ac_dir in ../.. "$srcdir"/../..; do
6509 if test -f "$ac_dir/install-sh"; then
6510 ac_aux_dir=$ac_dir
6511 ac_install_sh="$ac_aux_dir/install-sh -c"
6512 break
6513 elif test -f "$ac_dir/install.sh"; then
6514 ac_aux_dir=$ac_dir
6515 ac_install_sh="$ac_aux_dir/install.sh -c"
6516 break
6517 elif test -f "$ac_dir/shtool"; then
6518 ac_aux_dir=$ac_dir
6519 ac_install_sh="$ac_aux_dir/shtool install -c"
6520 break
6521 fi
6522 done
6523 if test -z "$ac_aux_dir"; then
6524 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5
6525 fi
6526
6527 # These three variables are undocumented and unsupported,
6528 # and are intended to be withdrawn in a future Autoconf release.
6529 # They can cause serious problems if a builder's source tree is in a directory
6530 # whose full name contains unusual characters.
6531 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
6532 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
6533 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
6534
6535
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
6537 $as_echo_n "checking target system type... " >&6; }
6538 if ${ac_cv_target+:} false; then :
6539 $as_echo_n "(cached) " >&6
6540 else
6541 if test "x$target_alias" = x; then
6542 ac_cv_target=$ac_cv_host
6543 else
6544 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
6545 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
6546 fi
6547
6548 fi
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
6550 $as_echo "$ac_cv_target" >&6; }
6551 case $ac_cv_target in
6552 *-*-*) ;;
6553 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
6554 esac
6555 target=$ac_cv_target
6556 ac_save_IFS=$IFS; IFS='-'
6557 set x $ac_cv_target
6558 shift
6559 target_cpu=$1
6560 target_vendor=$2
6561 shift; shift
6562 # Remember, the first character of IFS is used to create $*,
6563 # except with old shells:
6564 target_os=$*
6565 IFS=$ac_save_IFS
6566 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
6567
6568
6569 # The aliases save the names the user supplied, while $host etc.
6570 # will get canonicalized.
6571 test -n "$target_alias" &&
6572 test "$program_prefix$program_suffix$program_transform_name" = \
6573 NONENONEs,x,x, &&
6574 program_prefix=${target_alias}-
6575
6576
6577
6578
6579
6580
6581
6582 LIBC_FATAL_STDERR_=1
6583 export LIBC_FATAL_STDERR_
6584
6585 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6586 if test "x$ac_cv_type_size_t" = xyes; then :
6587
6588 else
6589
6590 cat >>confdefs.h <<_ACEOF
6591 #define size_t unsigned int
6592 _ACEOF
6593
6594 fi
6595
6596 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6597 # for constant arguments. Useless!
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6599 $as_echo_n "checking for working alloca.h... " >&6; }
6600 if ${ac_cv_working_alloca_h+:} false; then :
6601 $as_echo_n "(cached) " >&6
6602 else
6603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6604 /* end confdefs.h. */
6605 #include <alloca.h>
6606 int
6607 main ()
6608 {
6609 char *p = (char *) alloca (2 * sizeof (int));
6610 if (p) return 0;
6611 ;
6612 return 0;
6613 }
6614 _ACEOF
6615 if ac_fn_c_try_link "$LINENO"; then :
6616 ac_cv_working_alloca_h=yes
6617 else
6618 ac_cv_working_alloca_h=no
6619 fi
6620 rm -f core conftest.err conftest.$ac_objext \
6621 conftest$ac_exeext conftest.$ac_ext
6622 fi
6623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6624 $as_echo "$ac_cv_working_alloca_h" >&6; }
6625 if test $ac_cv_working_alloca_h = yes; then
6626
6627 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6628
6629 fi
6630
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6632 $as_echo_n "checking for alloca... " >&6; }
6633 if ${ac_cv_func_alloca_works+:} false; then :
6634 $as_echo_n "(cached) " >&6
6635 else
6636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6637 /* end confdefs.h. */
6638 #ifdef __GNUC__
6639 # define alloca __builtin_alloca
6640 #else
6641 # ifdef _MSC_VER
6642 # include <malloc.h>
6643 # define alloca _alloca
6644 # else
6645 # ifdef HAVE_ALLOCA_H
6646 # include <alloca.h>
6647 # else
6648 # ifdef _AIX
6649 #pragma alloca
6650 # else
6651 # ifndef alloca /* predefined by HP cc +Olibcalls */
6652 void *alloca (size_t);
6653 # endif
6654 # endif
6655 # endif
6656 # endif
6657 #endif
6658
6659 int
6660 main ()
6661 {
6662 char *p = (char *) alloca (1);
6663 if (p) return 0;
6664 ;
6665 return 0;
6666 }
6667 _ACEOF
6668 if ac_fn_c_try_link "$LINENO"; then :
6669 ac_cv_func_alloca_works=yes
6670 else
6671 ac_cv_func_alloca_works=no
6672 fi
6673 rm -f core conftest.err conftest.$ac_objext \
6674 conftest$ac_exeext conftest.$ac_ext
6675 fi
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6677 $as_echo "$ac_cv_func_alloca_works" >&6; }
6678
6679 if test $ac_cv_func_alloca_works = yes; then
6680
6681 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6682
6683 else
6684 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6685 # that cause trouble. Some versions do not even contain alloca or
6686 # contain a buggy version. If you still want to use their alloca,
6687 # use ar to extract alloca.o from them instead of compiling alloca.c.
6688
6689
6690
6691
6692
6693 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6694
6695 $as_echo "#define C_ALLOCA 1" >>confdefs.h
6696
6697
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6699 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6700 if ${ac_cv_os_cray+:} false; then :
6701 $as_echo_n "(cached) " >&6
6702 else
6703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6704 /* end confdefs.h. */
6705 #if defined CRAY && ! defined CRAY2
6706 webecray
6707 #else
6708 wenotbecray
6709 #endif
6710
6711 _ACEOF
6712 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6713 $EGREP "webecray" >/dev/null 2>&1; then :
6714 ac_cv_os_cray=yes
6715 else
6716 ac_cv_os_cray=no
6717 fi
6718 rm -f conftest*
6719
6720 fi
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6722 $as_echo "$ac_cv_os_cray" >&6; }
6723 if test $ac_cv_os_cray = yes; then
6724 for ac_func in _getb67 GETB67 getb67; do
6725 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6726 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6727 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6728
6729 cat >>confdefs.h <<_ACEOF
6730 #define CRAY_STACKSEG_END $ac_func
6731 _ACEOF
6732
6733 break
6734 fi
6735
6736 done
6737 fi
6738
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6740 $as_echo_n "checking stack direction for C alloca... " >&6; }
6741 if ${ac_cv_c_stack_direction+:} false; then :
6742 $as_echo_n "(cached) " >&6
6743 else
6744 if test "$cross_compiling" = yes; then :
6745 ac_cv_c_stack_direction=0
6746 else
6747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6748 /* end confdefs.h. */
6749 $ac_includes_default
6750 int
6751 find_stack_direction (int *addr, int depth)
6752 {
6753 int dir, dummy = 0;
6754 if (! addr)
6755 addr = &dummy;
6756 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
6757 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
6758 return dir + dummy;
6759 }
6760
6761 int
6762 main (int argc, char **argv)
6763 {
6764 return find_stack_direction (0, argc + !argv + 20) < 0;
6765 }
6766 _ACEOF
6767 if ac_fn_c_try_run "$LINENO"; then :
6768 ac_cv_c_stack_direction=1
6769 else
6770 ac_cv_c_stack_direction=-1
6771 fi
6772 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6773 conftest.$ac_objext conftest.beam conftest.$ac_ext
6774 fi
6775
6776 fi
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6778 $as_echo "$ac_cv_c_stack_direction" >&6; }
6779 cat >>confdefs.h <<_ACEOF
6780 #define STACK_DIRECTION $ac_cv_c_stack_direction
6781 _ACEOF
6782
6783
6784 fi
6785
6786
6787 GNULIB_INET_NTOP=0;
6788 GNULIB_INET_PTON=0;
6789 HAVE_DECL_INET_NTOP=1;
6790 HAVE_DECL_INET_PTON=1;
6791 REPLACE_INET_NTOP=0;
6792 REPLACE_INET_PTON=0;
6793
6794
6795
6796
6797
6798 for ac_header in $gl_header_list
6799 do :
6800 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6801 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6802 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6803 cat >>confdefs.h <<_ACEOF
6804 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6805 _ACEOF
6806
6807 fi
6808
6809 done
6810
6811
6812
6813
6814
6815
6816
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
6818 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
6819 if ${gl_cv_have_include_next+:} false; then :
6820 $as_echo_n "(cached) " >&6
6821 else
6822 rm -rf conftestd1a conftestd1b conftestd2
6823 mkdir conftestd1a conftestd1b conftestd2
6824 cat <<EOF > conftestd1a/conftest.h
6825 #define DEFINED_IN_CONFTESTD1
6826 #include_next <conftest.h>
6827 #ifdef DEFINED_IN_CONFTESTD2
6828 int foo;
6829 #else
6830 #error "include_next doesn't work"
6831 #endif
6832 EOF
6833 cat <<EOF > conftestd1b/conftest.h
6834 #define DEFINED_IN_CONFTESTD1
6835 #include <stdio.h>
6836 #include_next <conftest.h>
6837 #ifdef DEFINED_IN_CONFTESTD2
6838 int foo;
6839 #else
6840 #error "include_next doesn't work"
6841 #endif
6842 EOF
6843 cat <<EOF > conftestd2/conftest.h
6844 #ifndef DEFINED_IN_CONFTESTD1
6845 #error "include_next test doesn't work"
6846 #endif
6847 #define DEFINED_IN_CONFTESTD2
6848 EOF
6849 gl_save_CPPFLAGS="$CPPFLAGS"
6850 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
6851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6852 /* end confdefs.h. */
6853 #include <conftest.h>
6854 _ACEOF
6855 if ac_fn_c_try_compile "$LINENO"; then :
6856 gl_cv_have_include_next=yes
6857 else
6858 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
6859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6860 /* end confdefs.h. */
6861 #include <conftest.h>
6862 _ACEOF
6863 if ac_fn_c_try_compile "$LINENO"; then :
6864 gl_cv_have_include_next=buggy
6865 else
6866 gl_cv_have_include_next=no
6867 fi
6868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6869
6870 fi
6871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6872 CPPFLAGS="$gl_save_CPPFLAGS"
6873 rm -rf conftestd1a conftestd1b conftestd2
6874
6875 fi
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
6877 $as_echo "$gl_cv_have_include_next" >&6; }
6878 PRAGMA_SYSTEM_HEADER=
6879 if test $gl_cv_have_include_next = yes; then
6880 INCLUDE_NEXT=include_next
6881 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
6882 if test -n "$GCC"; then
6883 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
6884 fi
6885 else
6886 if test $gl_cv_have_include_next = buggy; then
6887 INCLUDE_NEXT=include
6888 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
6889 else
6890 INCLUDE_NEXT=include
6891 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
6892 fi
6893 fi
6894
6895
6896
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
6898 $as_echo_n "checking whether system header files limit the line length... " >&6; }
6899 if ${gl_cv_pragma_columns+:} false; then :
6900 $as_echo_n "(cached) " >&6
6901 else
6902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6903 /* end confdefs.h. */
6904
6905 #ifdef __TANDEM
6906 choke me
6907 #endif
6908
6909 _ACEOF
6910 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6911 $EGREP "choke me" >/dev/null 2>&1; then :
6912 gl_cv_pragma_columns=yes
6913 else
6914 gl_cv_pragma_columns=no
6915 fi
6916 rm -f conftest*
6917
6918
6919 fi
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
6921 $as_echo "$gl_cv_pragma_columns" >&6; }
6922 if test $gl_cv_pragma_columns = yes; then
6923 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
6924 else
6925 PRAGMA_COLUMNS=
6926 fi
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936 :
6937
6938
6939
6940
6941
6942 if test $ac_cv_header_features_h = yes; then
6943 HAVE_FEATURES_H=1
6944 else
6945 HAVE_FEATURES_H=0
6946 fi
6947
6948
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
6950 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6951 if test -z "$MKDIR_P"; then
6952 if ${ac_cv_path_mkdir+:} false; then :
6953 $as_echo_n "(cached) " >&6
6954 else
6955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6956 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6957 do
6958 IFS=$as_save_IFS
6959 test -z "$as_dir" && as_dir=.
6960 for ac_prog in mkdir gmkdir; do
6961 for ac_exec_ext in '' $ac_executable_extensions; do
6962 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
6963 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6964 'mkdir (GNU coreutils) '* | \
6965 'mkdir (coreutils) '* | \
6966 'mkdir (fileutils) '4.1*)
6967 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6968 break 3;;
6969 esac
6970 done
6971 done
6972 done
6973 IFS=$as_save_IFS
6974
6975 fi
6976
6977 test -d ./--version && rmdir ./--version
6978 if test "${ac_cv_path_mkdir+set}" = set; then
6979 MKDIR_P="$ac_cv_path_mkdir -p"
6980 else
6981 # As a last resort, use the slow shell script. Don't cache a
6982 # value for MKDIR_P within a source directory, because that will
6983 # break other packages using the cache if that directory is
6984 # removed, or if the value is a relative name.
6985 MKDIR_P="$ac_install_sh -d"
6986 fi
6987 fi
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
6989 $as_echo "$MKDIR_P" >&6; }
6990
6991
6992 GNULIB__EXIT=0;
6993 GNULIB_ATOLL=0;
6994 GNULIB_CALLOC_POSIX=0;
6995 GNULIB_CANONICALIZE_FILE_NAME=0;
6996 GNULIB_GETLOADAVG=0;
6997 GNULIB_GETSUBOPT=0;
6998 GNULIB_GRANTPT=0;
6999 GNULIB_MALLOC_POSIX=0;
7000 GNULIB_MBTOWC=0;
7001 GNULIB_MKDTEMP=0;
7002 GNULIB_MKOSTEMP=0;
7003 GNULIB_MKOSTEMPS=0;
7004 GNULIB_MKSTEMP=0;
7005 GNULIB_MKSTEMPS=0;
7006 GNULIB_POSIX_OPENPT=0;
7007 GNULIB_PTSNAME=0;
7008 GNULIB_PTSNAME_R=0;
7009 GNULIB_PUTENV=0;
7010 GNULIB_QSORT_R=0;
7011 GNULIB_RANDOM=0;
7012 GNULIB_RANDOM_R=0;
7013 GNULIB_REALLOC_POSIX=0;
7014 GNULIB_REALPATH=0;
7015 GNULIB_RPMATCH=0;
7016 GNULIB_SECURE_GETENV=0;
7017 GNULIB_SETENV=0;
7018 GNULIB_STRTOD=0;
7019 GNULIB_STRTOLL=0;
7020 GNULIB_STRTOULL=0;
7021 GNULIB_SYSTEM_POSIX=0;
7022 GNULIB_UNLOCKPT=0;
7023 GNULIB_UNSETENV=0;
7024 GNULIB_WCTOMB=0;
7025 HAVE__EXIT=1;
7026 HAVE_ATOLL=1;
7027 HAVE_CANONICALIZE_FILE_NAME=1;
7028 HAVE_DECL_GETLOADAVG=1;
7029 HAVE_GETSUBOPT=1;
7030 HAVE_GRANTPT=1;
7031 HAVE_MKDTEMP=1;
7032 HAVE_MKOSTEMP=1;
7033 HAVE_MKOSTEMPS=1;
7034 HAVE_MKSTEMP=1;
7035 HAVE_MKSTEMPS=1;
7036 HAVE_POSIX_OPENPT=1;
7037 HAVE_PTSNAME=1;
7038 HAVE_PTSNAME_R=1;
7039 HAVE_QSORT_R=1;
7040 HAVE_RANDOM=1;
7041 HAVE_RANDOM_H=1;
7042 HAVE_RANDOM_R=1;
7043 HAVE_REALPATH=1;
7044 HAVE_RPMATCH=1;
7045 HAVE_SECURE_GETENV=1;
7046 HAVE_SETENV=1;
7047 HAVE_DECL_SETENV=1;
7048 HAVE_STRTOD=1;
7049 HAVE_STRTOLL=1;
7050 HAVE_STRTOULL=1;
7051 HAVE_STRUCT_RANDOM_DATA=1;
7052 HAVE_SYS_LOADAVG_H=0;
7053 HAVE_UNLOCKPT=1;
7054 HAVE_DECL_UNSETENV=1;
7055 REPLACE_CALLOC=0;
7056 REPLACE_CANONICALIZE_FILE_NAME=0;
7057 REPLACE_MALLOC=0;
7058 REPLACE_MBTOWC=0;
7059 REPLACE_MKSTEMP=0;
7060 REPLACE_PTSNAME=0;
7061 REPLACE_PTSNAME_R=0;
7062 REPLACE_PUTENV=0;
7063 REPLACE_QSORT_R=0;
7064 REPLACE_RANDOM_R=0;
7065 REPLACE_REALLOC=0;
7066 REPLACE_REALPATH=0;
7067 REPLACE_SETENV=0;
7068 REPLACE_STRTOD=0;
7069 REPLACE_UNSETENV=0;
7070 REPLACE_WCTOMB=0;
7071
7072
7073
7074
7075
7076 for ac_func in $gl_func_list
7077 do :
7078 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7079 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7080 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7081 cat >>confdefs.h <<_ACEOF
7082 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7083 _ACEOF
7084
7085 fi
7086 done
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
7105 $as_echo_n "checking whether // is distinct from /... " >&6; }
7106 if ${gl_cv_double_slash_root+:} false; then :
7107 $as_echo_n "(cached) " >&6
7108 else
7109 if test x"$cross_compiling" = xyes ; then
7110 # When cross-compiling, there is no way to tell whether // is special
7111 # short of a list of hosts. However, the only known hosts to date
7112 # that have a distinct // are Apollo DomainOS (too old to port to),
7113 # Cygwin, and z/OS. If anyone knows of another system for which // has
7114 # special semantics and is distinct from /, please report it to
7115 # <bug-gnulib@gnu.org>.
7116 case $host in
7117 *-cygwin | i370-ibm-openedition)
7118 gl_cv_double_slash_root=yes ;;
7119 *)
7120 # Be optimistic and assume that / and // are the same when we
7121 # don't know.
7122 gl_cv_double_slash_root='unknown, assuming no' ;;
7123 esac
7124 else
7125 set x `ls -di / // 2>/dev/null`
7126 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
7127 gl_cv_double_slash_root=no
7128 else
7129 gl_cv_double_slash_root=yes
7130 fi
7131 fi
7132 fi
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
7134 $as_echo "$gl_cv_double_slash_root" >&6; }
7135 if test "$gl_cv_double_slash_root" = yes; then
7136
7137 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
7138
7139 fi
7140
7141
7142
7143
7144
7145
7146
7147
7148 :
7149
7150
7151
7152
7153
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether realpath works" >&5
7155 $as_echo_n "checking whether realpath works... " >&6; }
7156 if ${gl_cv_func_realpath_works+:} false; then :
7157 $as_echo_n "(cached) " >&6
7158 else
7159
7160 touch conftest.a
7161 mkdir conftest.d
7162 if test "$cross_compiling" = yes; then :
7163 case "$host_os" in
7164 # Guess yes on glibc systems.
7165 *-gnu* | gnu*) gl_cv_func_realpath_works="guessing yes" ;;
7166 # If we don't know, assume the worst.
7167 *) gl_cv_func_realpath_works="guessing no" ;;
7168 esac
7169
7170 else
7171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7172 /* end confdefs.h. */
7173
7174
7175
7176 #include <stdlib.h>
7177 #if defined __MACH__ && defined __APPLE__
7178 /* Avoid a crash on Mac OS X. */
7179 #include <mach/mach.h>
7180 #include <mach/mach_error.h>
7181 #include <mach/thread_status.h>
7182 #include <mach/exception.h>
7183 #include <mach/task.h>
7184 #include <pthread.h>
7185 /* The exception port on which our thread listens. */
7186 static mach_port_t our_exception_port;
7187 /* The main function of the thread listening for exceptions of type
7188 EXC_BAD_ACCESS. */
7189 static void *
7190 mach_exception_thread (void *arg)
7191 {
7192 /* Buffer for a message to be received. */
7193 struct {
7194 mach_msg_header_t head;
7195 mach_msg_body_t msgh_body;
7196 char data[1024];
7197 } msg;
7198 mach_msg_return_t retval;
7199 /* Wait for a message on the exception port. */
7200 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
7201 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
7202 if (retval != MACH_MSG_SUCCESS)
7203 abort ();
7204 exit (1);
7205 }
7206 static void
7207 nocrash_init (void)
7208 {
7209 mach_port_t self = mach_task_self ();
7210 /* Allocate a port on which the thread shall listen for exceptions. */
7211 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
7212 == KERN_SUCCESS) {
7213 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
7214 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
7215 MACH_MSG_TYPE_MAKE_SEND)
7216 == KERN_SUCCESS) {
7217 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
7218 for us. */
7219 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
7220 /* Create the thread listening on the exception port. */
7221 pthread_attr_t attr;
7222 pthread_t thread;
7223 if (pthread_attr_init (&attr) == 0
7224 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
7225 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
7226 pthread_attr_destroy (&attr);
7227 /* Replace the exception port info for these exceptions with our own.
7228 Note that we replace the exception port for the entire task, not only
7229 for a particular thread. This has the effect that when our exception
7230 port gets the message, the thread specific exception port has already
7231 been asked, and we don't need to bother about it.
7232 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
7233 task_set_exception_ports (self, mask, our_exception_port,
7234 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
7235 }
7236 }
7237 }
7238 }
7239 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
7240 /* Avoid a crash on native Windows. */
7241 #define WIN32_LEAN_AND_MEAN
7242 #include <windows.h>
7243 #include <winerror.h>
7244 static LONG WINAPI
7245 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
7246 {
7247 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
7248 {
7249 case EXCEPTION_ACCESS_VIOLATION:
7250 case EXCEPTION_IN_PAGE_ERROR:
7251 case EXCEPTION_STACK_OVERFLOW:
7252 case EXCEPTION_GUARD_PAGE:
7253 case EXCEPTION_PRIV_INSTRUCTION:
7254 case EXCEPTION_ILLEGAL_INSTRUCTION:
7255 case EXCEPTION_DATATYPE_MISALIGNMENT:
7256 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
7257 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
7258 exit (1);
7259 }
7260 return EXCEPTION_CONTINUE_SEARCH;
7261 }
7262 static void
7263 nocrash_init (void)
7264 {
7265 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
7266 }
7267 #else
7268 /* Avoid a crash on POSIX systems. */
7269 #include <signal.h>
7270 #include <unistd.h>
7271 /* A POSIX signal handler. */
7272 static void
7273 exception_handler (int sig)
7274 {
7275 _exit (1);
7276 }
7277 static void
7278 nocrash_init (void)
7279 {
7280 #ifdef SIGSEGV
7281 signal (SIGSEGV, exception_handler);
7282 #endif
7283 #ifdef SIGBUS
7284 signal (SIGBUS, exception_handler);
7285 #endif
7286 }
7287 #endif
7288
7289 #include <stdlib.h>
7290 #include <string.h>
7291
7292 int
7293 main ()
7294 {
7295
7296 int result = 0;
7297 {
7298 char *name = realpath ("conftest.a", NULL);
7299 if (!(name && *name == '/'))
7300 result |= 1;
7301 free (name);
7302 }
7303 {
7304 char *name = realpath ("conftest.b/../conftest.a", NULL);
7305 if (name != NULL)
7306 result |= 2;
7307 free (name);
7308 }
7309 {
7310 char *name = realpath ("conftest.a/", NULL);
7311 if (name != NULL)
7312 result |= 4;
7313 free (name);
7314 }
7315 {
7316 char *name1 = realpath (".", NULL);
7317 char *name2 = realpath ("conftest.d//./..", NULL);
7318 if (! name1 || ! name2 || strcmp (name1, name2))
7319 result |= 8;
7320 free (name1);
7321 free (name2);
7322 }
7323 return result;
7324
7325 ;
7326 return 0;
7327 }
7328
7329 _ACEOF
7330 if ac_fn_c_try_run "$LINENO"; then :
7331 gl_cv_func_realpath_works=yes
7332 else
7333 gl_cv_func_realpath_works=no
7334 fi
7335 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7336 conftest.$ac_objext conftest.beam conftest.$ac_ext
7337 fi
7338
7339 rm -rf conftest.a conftest.d
7340
7341 fi
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_realpath_works" >&5
7343 $as_echo "$gl_cv_func_realpath_works" >&6; }
7344 case "$gl_cv_func_realpath_works" in
7345 *yes)
7346
7347 $as_echo "#define FUNC_REALPATH_WORKS 1" >>confdefs.h
7348
7349 ;;
7350 esac
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360 :
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375 :
7376
7377
7378
7379
7380
7381
7382
7383 GNULIB_CHDIR=0;
7384 GNULIB_CHOWN=0;
7385 GNULIB_CLOSE=0;
7386 GNULIB_DUP=0;
7387 GNULIB_DUP2=0;
7388 GNULIB_DUP3=0;
7389 GNULIB_ENVIRON=0;
7390 GNULIB_EUIDACCESS=0;
7391 GNULIB_FACCESSAT=0;
7392 GNULIB_FCHDIR=0;
7393 GNULIB_FCHOWNAT=0;
7394 GNULIB_FDATASYNC=0;
7395 GNULIB_FSYNC=0;
7396 GNULIB_FTRUNCATE=0;
7397 GNULIB_GETCWD=0;
7398 GNULIB_GETDOMAINNAME=0;
7399 GNULIB_GETDTABLESIZE=0;
7400 GNULIB_GETGROUPS=0;
7401 GNULIB_GETHOSTNAME=0;
7402 GNULIB_GETLOGIN=0;
7403 GNULIB_GETLOGIN_R=0;
7404 GNULIB_GETPAGESIZE=0;
7405 GNULIB_GETUSERSHELL=0;
7406 GNULIB_GROUP_MEMBER=0;
7407 GNULIB_ISATTY=0;
7408 GNULIB_LCHOWN=0;
7409 GNULIB_LINK=0;
7410 GNULIB_LINKAT=0;
7411 GNULIB_LSEEK=0;
7412 GNULIB_PIPE=0;
7413 GNULIB_PIPE2=0;
7414 GNULIB_PREAD=0;
7415 GNULIB_PWRITE=0;
7416 GNULIB_READ=0;
7417 GNULIB_READLINK=0;
7418 GNULIB_READLINKAT=0;
7419 GNULIB_RMDIR=0;
7420 GNULIB_SETHOSTNAME=0;
7421 GNULIB_SLEEP=0;
7422 GNULIB_SYMLINK=0;
7423 GNULIB_SYMLINKAT=0;
7424 GNULIB_TTYNAME_R=0;
7425 GNULIB_UNISTD_H_NONBLOCKING=0;
7426 GNULIB_UNISTD_H_SIGPIPE=0;
7427 GNULIB_UNLINK=0;
7428 GNULIB_UNLINKAT=0;
7429 GNULIB_USLEEP=0;
7430 GNULIB_WRITE=0;
7431 HAVE_CHOWN=1;
7432 HAVE_DUP2=1;
7433 HAVE_DUP3=1;
7434 HAVE_EUIDACCESS=1;
7435 HAVE_FACCESSAT=1;
7436 HAVE_FCHDIR=1;
7437 HAVE_FCHOWNAT=1;
7438 HAVE_FDATASYNC=1;
7439 HAVE_FSYNC=1;
7440 HAVE_FTRUNCATE=1;
7441 HAVE_GETDTABLESIZE=1;
7442 HAVE_GETGROUPS=1;
7443 HAVE_GETHOSTNAME=1;
7444 HAVE_GETLOGIN=1;
7445 HAVE_GETPAGESIZE=1;
7446 HAVE_GROUP_MEMBER=1;
7447 HAVE_LCHOWN=1;
7448 HAVE_LINK=1;
7449 HAVE_LINKAT=1;
7450 HAVE_PIPE=1;
7451 HAVE_PIPE2=1;
7452 HAVE_PREAD=1;
7453 HAVE_PWRITE=1;
7454 HAVE_READLINK=1;
7455 HAVE_READLINKAT=1;
7456 HAVE_SETHOSTNAME=1;
7457 HAVE_SLEEP=1;
7458 HAVE_SYMLINK=1;
7459 HAVE_SYMLINKAT=1;
7460 HAVE_UNLINKAT=1;
7461 HAVE_USLEEP=1;
7462 HAVE_DECL_ENVIRON=1;
7463 HAVE_DECL_FCHDIR=1;
7464 HAVE_DECL_FDATASYNC=1;
7465 HAVE_DECL_GETDOMAINNAME=1;
7466 HAVE_DECL_GETLOGIN_R=1;
7467 HAVE_DECL_GETPAGESIZE=1;
7468 HAVE_DECL_GETUSERSHELL=1;
7469 HAVE_DECL_SETHOSTNAME=1;
7470 HAVE_DECL_TTYNAME_R=1;
7471 HAVE_OS_H=0;
7472 HAVE_SYS_PARAM_H=0;
7473 REPLACE_CHOWN=0;
7474 REPLACE_CLOSE=0;
7475 REPLACE_DUP=0;
7476 REPLACE_DUP2=0;
7477 REPLACE_FCHOWNAT=0;
7478 REPLACE_FTRUNCATE=0;
7479 REPLACE_GETCWD=0;
7480 REPLACE_GETDOMAINNAME=0;
7481 REPLACE_GETDTABLESIZE=0;
7482 REPLACE_GETLOGIN_R=0;
7483 REPLACE_GETGROUPS=0;
7484 REPLACE_GETPAGESIZE=0;
7485 REPLACE_ISATTY=0;
7486 REPLACE_LCHOWN=0;
7487 REPLACE_LINK=0;
7488 REPLACE_LINKAT=0;
7489 REPLACE_LSEEK=0;
7490 REPLACE_PREAD=0;
7491 REPLACE_PWRITE=0;
7492 REPLACE_READ=0;
7493 REPLACE_READLINK=0;
7494 REPLACE_READLINKAT=0;
7495 REPLACE_RMDIR=0;
7496 REPLACE_SLEEP=0;
7497 REPLACE_SYMLINK=0;
7498 REPLACE_SYMLINKAT=0;
7499 REPLACE_TTYNAME_R=0;
7500 REPLACE_UNLINK=0;
7501 REPLACE_UNLINKAT=0;
7502 REPLACE_USLEEP=0;
7503 REPLACE_WRITE=0;
7504 UNISTD_H_HAVE_WINSOCK2_H=0;
7505 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515 :
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532 :
7533
7534
7535
7536
7537
7538 if test $ac_cv_func__set_invalid_parameter_handler = yes; then
7539 HAVE_MSVC_INVALID_PARAMETER_HANDLER=1
7540
7541 $as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
7542
7543 else
7544 HAVE_MSVC_INVALID_PARAMETER_HANDLER=0
7545 fi
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559 GNULIB_OPENDIR=0;
7560 GNULIB_READDIR=0;
7561 GNULIB_REWINDDIR=0;
7562 GNULIB_CLOSEDIR=0;
7563 GNULIB_DIRFD=0;
7564 GNULIB_FDOPENDIR=0;
7565 GNULIB_SCANDIR=0;
7566 GNULIB_ALPHASORT=0;
7567 HAVE_OPENDIR=1;
7568 HAVE_READDIR=1;
7569 HAVE_REWINDDIR=1;
7570 HAVE_CLOSEDIR=1;
7571 HAVE_DECL_DIRFD=1;
7572 HAVE_DECL_FDOPENDIR=1;
7573 HAVE_FDOPENDIR=1;
7574 HAVE_SCANDIR=1;
7575 HAVE_ALPHASORT=1;
7576 REPLACE_OPENDIR=0;
7577 REPLACE_CLOSEDIR=0;
7578 REPLACE_DIRFD=0;
7579 REPLACE_FDOPENDIR=0;
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591 :
7592
7593
7594
7595
7596
7597
7598
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
7600 $as_echo_n "checking if environ is properly declared... " >&6; }
7601 if ${gt_cv_var_environ_declaration+:} false; then :
7602 $as_echo_n "(cached) " >&6
7603 else
7604
7605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7606 /* end confdefs.h. */
7607 #if HAVE_UNISTD_H
7608 #include <unistd.h>
7609 #endif
7610 /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>. */
7611 #include <stdlib.h>
7612
7613 extern struct { int foo; } environ;
7614 int
7615 main ()
7616 {
7617 environ.foo = 1;
7618 ;
7619 return 0;
7620 }
7621 _ACEOF
7622 if ac_fn_c_try_compile "$LINENO"; then :
7623 gt_cv_var_environ_declaration=no
7624 else
7625 gt_cv_var_environ_declaration=yes
7626 fi
7627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7628 fi
7629
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
7631 $as_echo "$gt_cv_var_environ_declaration" >&6; }
7632 if test $gt_cv_var_environ_declaration = yes; then
7633
7634 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
7635
7636 fi
7637
7638
7639 if test $gt_cv_var_environ_declaration != yes; then
7640 HAVE_DECL_ENVIRON=0
7641 fi
7642
7643
7644
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
7646 $as_echo_n "checking for complete errno.h... " >&6; }
7647 if ${gl_cv_header_errno_h_complete+:} false; then :
7648 $as_echo_n "(cached) " >&6
7649 else
7650
7651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7652 /* end confdefs.h. */
7653
7654 #include <errno.h>
7655 #if !defined ETXTBSY
7656 booboo
7657 #endif
7658 #if !defined ENOMSG
7659 booboo
7660 #endif
7661 #if !defined EIDRM
7662 booboo
7663 #endif
7664 #if !defined ENOLINK
7665 booboo
7666 #endif
7667 #if !defined EPROTO
7668 booboo
7669 #endif
7670 #if !defined EMULTIHOP
7671 booboo
7672 #endif
7673 #if !defined EBADMSG
7674 booboo
7675 #endif
7676 #if !defined EOVERFLOW
7677 booboo
7678 #endif
7679 #if !defined ENOTSUP
7680 booboo
7681 #endif
7682 #if !defined ENETRESET
7683 booboo
7684 #endif
7685 #if !defined ECONNABORTED
7686 booboo
7687 #endif
7688 #if !defined ESTALE
7689 booboo
7690 #endif
7691 #if !defined EDQUOT
7692 booboo
7693 #endif
7694 #if !defined ECANCELED
7695 booboo
7696 #endif
7697 #if !defined EOWNERDEAD
7698 booboo
7699 #endif
7700 #if !defined ENOTRECOVERABLE
7701 booboo
7702 #endif
7703 #if !defined EILSEQ
7704 booboo
7705 #endif
7706
7707 _ACEOF
7708 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7709 $EGREP "booboo" >/dev/null 2>&1; then :
7710 gl_cv_header_errno_h_complete=no
7711 else
7712 gl_cv_header_errno_h_complete=yes
7713 fi
7714 rm -f conftest*
7715
7716
7717 fi
7718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
7719 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
7720 if test $gl_cv_header_errno_h_complete = yes; then
7721 ERRNO_H=''
7722 else
7723
7724
7725
7726
7727
7728
7729
7730
7731 if test $gl_cv_have_include_next = yes; then
7732 gl_cv_next_errno_h='<'errno.h'>'
7733 else
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
7735 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
7736 if ${gl_cv_next_errno_h+:} false; then :
7737 $as_echo_n "(cached) " >&6
7738 else
7739
7740
7741
7742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7743 /* end confdefs.h. */
7744 #include <errno.h>
7745 _ACEOF
7746 case "$host_os" in
7747 aix*) gl_absname_cpp="$ac_cpp -C" ;;
7748 *) gl_absname_cpp="$ac_cpp" ;;
7749 esac
7750
7751 case "$host_os" in
7752 mingw*)
7753 gl_dirsep_regex='[/\\]'
7754 ;;
7755 *)
7756 gl_dirsep_regex='\/'
7757 ;;
7758 esac
7759 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
7760 gl_header_literal_regex=`echo 'errno.h' \
7761 | sed -e "$gl_make_literal_regex_sed"`
7762 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
7763 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
7764 s|^/[^/]|//&|
7765 p
7766 q
7767 }'
7768
7769 gl_cv_absolute_errno_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7770 sed -n "$gl_absolute_header_sed"`
7771
7772 gl_header=$gl_cv_absolute_errno_h
7773 gl_cv_next_errno_h='"'$gl_header'"'
7774
7775
7776 fi
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
7778 $as_echo "$gl_cv_next_errno_h" >&6; }
7779 fi
7780 NEXT_ERRNO_H=$gl_cv_next_errno_h
7781
7782 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
7783 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7784 gl_next_as_first_directive='<'errno.h'>'
7785 else
7786 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7787 gl_next_as_first_directive=$gl_cv_next_errno_h
7788 fi
7789 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
7790
7791
7792
7793
7794 ERRNO_H='errno.h'
7795 fi
7796
7797 if test -n "$ERRNO_H"; then
7798 GL_GENERATE_ERRNO_H_TRUE=
7799 GL_GENERATE_ERRNO_H_FALSE='#'
7800 else
7801 GL_GENERATE_ERRNO_H_TRUE='#'
7802 GL_GENERATE_ERRNO_H_FALSE=
7803 fi
7804
7805
7806 if test -n "$ERRNO_H"; then
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
7808 $as_echo_n "checking for EMULTIHOP value... " >&6; }
7809 if ${gl_cv_header_errno_h_EMULTIHOP+:} false; then :
7810 $as_echo_n "(cached) " >&6
7811 else
7812
7813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7814 /* end confdefs.h. */
7815
7816 #include <errno.h>
7817 #ifdef EMULTIHOP
7818 yes
7819 #endif
7820
7821 _ACEOF
7822 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7823 $EGREP "yes" >/dev/null 2>&1; then :
7824 gl_cv_header_errno_h_EMULTIHOP=yes
7825 else
7826 gl_cv_header_errno_h_EMULTIHOP=no
7827 fi
7828 rm -f conftest*
7829
7830 if test $gl_cv_header_errno_h_EMULTIHOP = no; then
7831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7832 /* end confdefs.h. */
7833
7834 #define _XOPEN_SOURCE_EXTENDED 1
7835 #include <errno.h>
7836 #ifdef EMULTIHOP
7837 yes
7838 #endif
7839
7840 _ACEOF
7841 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7842 $EGREP "yes" >/dev/null 2>&1; then :
7843 gl_cv_header_errno_h_EMULTIHOP=hidden
7844 fi
7845 rm -f conftest*
7846
7847 if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
7848 if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
7849 #define _XOPEN_SOURCE_EXTENDED 1
7850 #include <errno.h>
7851 /* The following two lines are a workaround against an autoconf-2.52 bug. */
7852 #include <stdio.h>
7853 #include <stdlib.h>
7854 "; then :
7855
7856 fi
7857
7858 fi
7859 fi
7860
7861 fi
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
7863 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
7864 case $gl_cv_header_errno_h_EMULTIHOP in
7865 yes | no)
7866 EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
7867 ;;
7868 *)
7869 EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
7870 ;;
7871 esac
7872
7873
7874 fi
7875
7876
7877 if test -n "$ERRNO_H"; then
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
7879 $as_echo_n "checking for ENOLINK value... " >&6; }
7880 if ${gl_cv_header_errno_h_ENOLINK+:} false; then :
7881 $as_echo_n "(cached) " >&6
7882 else
7883
7884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7885 /* end confdefs.h. */
7886
7887 #include <errno.h>
7888 #ifdef ENOLINK
7889 yes
7890 #endif
7891
7892 _ACEOF
7893 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7894 $EGREP "yes" >/dev/null 2>&1; then :
7895 gl_cv_header_errno_h_ENOLINK=yes
7896 else
7897 gl_cv_header_errno_h_ENOLINK=no
7898 fi
7899 rm -f conftest*
7900
7901 if test $gl_cv_header_errno_h_ENOLINK = no; then
7902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7903 /* end confdefs.h. */
7904
7905 #define _XOPEN_SOURCE_EXTENDED 1
7906 #include <errno.h>
7907 #ifdef ENOLINK
7908 yes
7909 #endif
7910
7911 _ACEOF
7912 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7913 $EGREP "yes" >/dev/null 2>&1; then :
7914 gl_cv_header_errno_h_ENOLINK=hidden
7915 fi
7916 rm -f conftest*
7917
7918 if test $gl_cv_header_errno_h_ENOLINK = hidden; then
7919 if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
7920 #define _XOPEN_SOURCE_EXTENDED 1
7921 #include <errno.h>
7922 /* The following two lines are a workaround against an autoconf-2.52 bug. */
7923 #include <stdio.h>
7924 #include <stdlib.h>
7925 "; then :
7926
7927 fi
7928
7929 fi
7930 fi
7931
7932 fi
7933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
7934 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
7935 case $gl_cv_header_errno_h_ENOLINK in
7936 yes | no)
7937 ENOLINK_HIDDEN=0; ENOLINK_VALUE=
7938 ;;
7939 *)
7940 ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
7941 ;;
7942 esac
7943
7944
7945 fi
7946
7947
7948 if test -n "$ERRNO_H"; then
7949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
7950 $as_echo_n "checking for EOVERFLOW value... " >&6; }
7951 if ${gl_cv_header_errno_h_EOVERFLOW+:} false; then :
7952 $as_echo_n "(cached) " >&6
7953 else
7954
7955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7956 /* end confdefs.h. */
7957
7958 #include <errno.h>
7959 #ifdef EOVERFLOW
7960 yes
7961 #endif
7962
7963 _ACEOF
7964 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7965 $EGREP "yes" >/dev/null 2>&1; then :
7966 gl_cv_header_errno_h_EOVERFLOW=yes
7967 else
7968 gl_cv_header_errno_h_EOVERFLOW=no
7969 fi
7970 rm -f conftest*
7971
7972 if test $gl_cv_header_errno_h_EOVERFLOW = no; then
7973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7974 /* end confdefs.h. */
7975
7976 #define _XOPEN_SOURCE_EXTENDED 1
7977 #include <errno.h>
7978 #ifdef EOVERFLOW
7979 yes
7980 #endif
7981
7982 _ACEOF
7983 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7984 $EGREP "yes" >/dev/null 2>&1; then :
7985 gl_cv_header_errno_h_EOVERFLOW=hidden
7986 fi
7987 rm -f conftest*
7988
7989 if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
7990 if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
7991 #define _XOPEN_SOURCE_EXTENDED 1
7992 #include <errno.h>
7993 /* The following two lines are a workaround against an autoconf-2.52 bug. */
7994 #include <stdio.h>
7995 #include <stdlib.h>
7996 "; then :
7997
7998 fi
7999
8000 fi
8001 fi
8002
8003 fi
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
8005 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
8006 case $gl_cv_header_errno_h_EOVERFLOW in
8007 yes | no)
8008 EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
8009 ;;
8010 *)
8011 EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
8012 ;;
8013 esac
8014
8015
8016 fi
8017
8018
8019 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
8020 if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
8021 ac_have_decl=1
8022 else
8023 ac_have_decl=0
8024 fi
8025
8026 cat >>confdefs.h <<_ACEOF
8027 #define HAVE_DECL_STRERROR_R $ac_have_decl
8028 _ACEOF
8029
8030 for ac_func in strerror_r
8031 do :
8032 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
8033 if test "x$ac_cv_func_strerror_r" = xyes; then :
8034 cat >>confdefs.h <<_ACEOF
8035 #define HAVE_STRERROR_R 1
8036 _ACEOF
8037
8038 fi
8039 done
8040
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
8042 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
8043 if ${ac_cv_func_strerror_r_char_p+:} false; then :
8044 $as_echo_n "(cached) " >&6
8045 else
8046
8047 ac_cv_func_strerror_r_char_p=no
8048 if test $ac_cv_have_decl_strerror_r = yes; then
8049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8050 /* end confdefs.h. */
8051 $ac_includes_default
8052 int
8053 main ()
8054 {
8055
8056 char buf[100];
8057 char x = *strerror_r (0, buf, sizeof buf);
8058 char *p = strerror_r (0, buf, sizeof buf);
8059 return !p || x;
8060
8061 ;
8062 return 0;
8063 }
8064 _ACEOF
8065 if ac_fn_c_try_compile "$LINENO"; then :
8066 ac_cv_func_strerror_r_char_p=yes
8067 fi
8068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8069 else
8070 # strerror_r is not declared. Choose between
8071 # systems that have relatively inaccessible declarations for the
8072 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
8073 # former has a strerror_r that returns char*, while the latter
8074 # has a strerror_r that returns `int'.
8075 # This test should segfault on the DEC system.
8076 if test "$cross_compiling" = yes; then :
8077 :
8078 else
8079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8080 /* end confdefs.h. */
8081 $ac_includes_default
8082 extern char *strerror_r ();
8083 int
8084 main ()
8085 {
8086 char buf[100];
8087 char x = *strerror_r (0, buf, sizeof buf);
8088 return ! isalpha (x);
8089 ;
8090 return 0;
8091 }
8092 _ACEOF
8093 if ac_fn_c_try_run "$LINENO"; then :
8094 ac_cv_func_strerror_r_char_p=yes
8095 fi
8096 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8097 conftest.$ac_objext conftest.beam conftest.$ac_ext
8098 fi
8099
8100 fi
8101
8102 fi
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
8104 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
8105 if test $ac_cv_func_strerror_r_char_p = yes; then
8106
8107 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
8108
8109 fi
8110
8111
8112
8113
8114
8115 ac_fn_c_check_decl "$LINENO" "fchdir" "ac_cv_have_decl_fchdir" "$ac_includes_default"
8116 if test "x$ac_cv_have_decl_fchdir" = xyes; then :
8117 ac_have_decl=1
8118 else
8119 ac_have_decl=0
8120 fi
8121
8122 cat >>confdefs.h <<_ACEOF
8123 #define HAVE_DECL_FCHDIR $ac_have_decl
8124 _ACEOF
8125
8126
8127
8128 GNULIB_FCNTL=0;
8129 GNULIB_NONBLOCKING=0;
8130 GNULIB_OPEN=0;
8131 GNULIB_OPENAT=0;
8132 HAVE_FCNTL=1;
8133 HAVE_OPENAT=1;
8134 REPLACE_FCNTL=0;
8135 REPLACE_OPEN=0;
8136 REPLACE_OPENAT=0;
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152 :
8153
8154
8155
8156
8157
8158
8159 :
8160
8161
8162
8163
8164
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
8166 $as_echo_n "checking for working fcntl.h... " >&6; }
8167 if ${gl_cv_header_working_fcntl_h+:} false; then :
8168 $as_echo_n "(cached) " >&6
8169 else
8170 if test "$cross_compiling" = yes; then :
8171 gl_cv_header_working_fcntl_h=cross-compiling
8172 else
8173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8174 /* end confdefs.h. */
8175 #include <sys/types.h>
8176 #include <sys/stat.h>
8177 #if HAVE_UNISTD_H
8178 # include <unistd.h>
8179 #else /* on Windows with MSVC */
8180 # include <io.h>
8181 # include <stdlib.h>
8182 # defined sleep(n) _sleep ((n) * 1000)
8183 #endif
8184 #include <fcntl.h>
8185 #ifndef O_NOATIME
8186 #define O_NOATIME 0
8187 #endif
8188 #ifndef O_NOFOLLOW
8189 #define O_NOFOLLOW 0
8190 #endif
8191 static int const constants[] =
8192 {
8193 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
8194 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
8195 };
8196
8197 int
8198 main ()
8199 {
8200
8201 int result = !constants;
8202 #if HAVE_SYMLINK
8203 {
8204 static char const sym[] = "conftest.sym";
8205 if (symlink ("/dev/null", sym) != 0)
8206 result |= 2;
8207 else
8208 {
8209 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
8210 if (fd >= 0)
8211 {
8212 close (fd);
8213 result |= 4;
8214 }
8215 }
8216 if (unlink (sym) != 0 || symlink (".", sym) != 0)
8217 result |= 2;
8218 else
8219 {
8220 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
8221 if (fd >= 0)
8222 {
8223 close (fd);
8224 result |= 4;
8225 }
8226 }
8227 unlink (sym);
8228 }
8229 #endif
8230 {
8231 static char const file[] = "confdefs.h";
8232 int fd = open (file, O_RDONLY | O_NOATIME);
8233 if (fd < 0)
8234 result |= 8;
8235 else
8236 {
8237 struct stat st0;
8238 if (fstat (fd, &st0) != 0)
8239 result |= 16;
8240 else
8241 {
8242 char c;
8243 sleep (1);
8244 if (read (fd, &c, 1) != 1)
8245 result |= 24;
8246 else
8247 {
8248 if (close (fd) != 0)
8249 result |= 32;
8250 else
8251 {
8252 struct stat st1;
8253 if (stat (file, &st1) != 0)
8254 result |= 40;
8255 else
8256 if (st0.st_atime != st1.st_atime)
8257 result |= 64;
8258 }
8259 }
8260 }
8261 }
8262 }
8263 return result;
8264 ;
8265 return 0;
8266 }
8267 _ACEOF
8268 if ac_fn_c_try_run "$LINENO"; then :
8269 gl_cv_header_working_fcntl_h=yes
8270 else
8271 case $? in #(
8272 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
8273 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
8274 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
8275 *) gl_cv_header_working_fcntl_h='no';;
8276 esac
8277 fi
8278 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8279 conftest.$ac_objext conftest.beam conftest.$ac_ext
8280 fi
8281
8282 fi
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
8284 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
8285
8286 case $gl_cv_header_working_fcntl_h in #(
8287 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
8288 *) ac_val=1;;
8289 esac
8290
8291 cat >>confdefs.h <<_ACEOF
8292 #define HAVE_WORKING_O_NOATIME $ac_val
8293 _ACEOF
8294
8295
8296 case $gl_cv_header_working_fcntl_h in #(
8297 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
8298 *) ac_val=1;;
8299 esac
8300
8301 cat >>confdefs.h <<_ACEOF
8302 #define HAVE_WORKING_O_NOFOLLOW $ac_val
8303 _ACEOF
8304
8305
8306 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8307 if test "x$ac_cv_type_pid_t" = xyes; then :
8308
8309 else
8310
8311 cat >>confdefs.h <<_ACEOF
8312 #define pid_t int
8313 _ACEOF
8314
8315 fi
8316
8317 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
8318 if test "x$ac_cv_type_mode_t" = xyes; then :
8319
8320 else
8321
8322 cat >>confdefs.h <<_ACEOF
8323 #define mode_t int
8324 _ACEOF
8325
8326 fi
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
8341 $as_echo_n "checking for mbstate_t... " >&6; }
8342 if ${ac_cv_type_mbstate_t+:} false; then :
8343 $as_echo_n "(cached) " >&6
8344 else
8345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8346 /* end confdefs.h. */
8347 $ac_includes_default
8348 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
8349 <wchar.h>.
8350 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8351 included before <wchar.h>. */
8352 #include <stddef.h>
8353 #include <stdio.h>
8354 #include <time.h>
8355 #include <wchar.h>
8356 int
8357 main ()
8358 {
8359 mbstate_t x; return sizeof x;
8360 ;
8361 return 0;
8362 }
8363 _ACEOF
8364 if ac_fn_c_try_compile "$LINENO"; then :
8365 ac_cv_type_mbstate_t=yes
8366 else
8367 ac_cv_type_mbstate_t=no
8368 fi
8369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8370 fi
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
8372 $as_echo "$ac_cv_type_mbstate_t" >&6; }
8373 if test $ac_cv_type_mbstate_t = yes; then
8374
8375 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
8376
8377 else
8378
8379 $as_echo "#define mbstate_t int" >>confdefs.h
8380
8381 fi
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424 GNULIB_ACOSF=0;
8425 GNULIB_ACOSL=0;
8426 GNULIB_ASINF=0;
8427 GNULIB_ASINL=0;
8428 GNULIB_ATANF=0;
8429 GNULIB_ATANL=0;
8430 GNULIB_ATAN2F=0;
8431 GNULIB_CBRT=0;
8432 GNULIB_CBRTF=0;
8433 GNULIB_CBRTL=0;
8434 GNULIB_CEIL=0;
8435 GNULIB_CEILF=0;
8436 GNULIB_CEILL=0;
8437 GNULIB_COPYSIGN=0;
8438 GNULIB_COPYSIGNF=0;
8439 GNULIB_COPYSIGNL=0;
8440 GNULIB_COSF=0;
8441 GNULIB_COSL=0;
8442 GNULIB_COSHF=0;
8443 GNULIB_EXPF=0;
8444 GNULIB_EXPL=0;
8445 GNULIB_EXP2=0;
8446 GNULIB_EXP2F=0;
8447 GNULIB_EXP2L=0;
8448 GNULIB_EXPM1=0;
8449 GNULIB_EXPM1F=0;
8450 GNULIB_EXPM1L=0;
8451 GNULIB_FABSF=0;
8452 GNULIB_FABSL=0;
8453 GNULIB_FLOOR=0;
8454 GNULIB_FLOORF=0;
8455 GNULIB_FLOORL=0;
8456 GNULIB_FMA=0;
8457 GNULIB_FMAF=0;
8458 GNULIB_FMAL=0;
8459 GNULIB_FMOD=0;
8460 GNULIB_FMODF=0;
8461 GNULIB_FMODL=0;
8462 GNULIB_FREXPF=0;
8463 GNULIB_FREXP=0;
8464 GNULIB_FREXPL=0;
8465 GNULIB_HYPOT=0;
8466 GNULIB_HYPOTF=0;
8467 GNULIB_HYPOTL=0;
8468 GNULIB_ILOGB=0;
8469 GNULIB_ILOGBF=0;
8470 GNULIB_ILOGBL=0;
8471 GNULIB_ISFINITE=0;
8472 GNULIB_ISINF=0;
8473 GNULIB_ISNAN=0;
8474 GNULIB_ISNANF=0;
8475 GNULIB_ISNAND=0;
8476 GNULIB_ISNANL=0;
8477 GNULIB_LDEXPF=0;
8478 GNULIB_LDEXPL=0;
8479 GNULIB_LOG=0;
8480 GNULIB_LOGF=0;
8481 GNULIB_LOGL=0;
8482 GNULIB_LOG10=0;
8483 GNULIB_LOG10F=0;
8484 GNULIB_LOG10L=0;
8485 GNULIB_LOG1P=0;
8486 GNULIB_LOG1PF=0;
8487 GNULIB_LOG1PL=0;
8488 GNULIB_LOG2=0;
8489 GNULIB_LOG2F=0;
8490 GNULIB_LOG2L=0;
8491 GNULIB_LOGB=0;
8492 GNULIB_LOGBF=0;
8493 GNULIB_LOGBL=0;
8494 GNULIB_MODF=0;
8495 GNULIB_MODFF=0;
8496 GNULIB_MODFL=0;
8497 GNULIB_POWF=0;
8498 GNULIB_REMAINDER=0;
8499 GNULIB_REMAINDERF=0;
8500 GNULIB_REMAINDERL=0;
8501 GNULIB_RINT=0;
8502 GNULIB_RINTF=0;
8503 GNULIB_RINTL=0;
8504 GNULIB_ROUND=0;
8505 GNULIB_ROUNDF=0;
8506 GNULIB_ROUNDL=0;
8507 GNULIB_SIGNBIT=0;
8508 GNULIB_SINF=0;
8509 GNULIB_SINL=0;
8510 GNULIB_SINHF=0;
8511 GNULIB_SQRTF=0;
8512 GNULIB_SQRTL=0;
8513 GNULIB_TANF=0;
8514 GNULIB_TANL=0;
8515 GNULIB_TANHF=0;
8516 GNULIB_TRUNC=0;
8517 GNULIB_TRUNCF=0;
8518 GNULIB_TRUNCL=0;
8519 HAVE_ACOSF=1;
8520 HAVE_ACOSL=1;
8521 HAVE_ASINF=1;
8522 HAVE_ASINL=1;
8523 HAVE_ATANF=1;
8524 HAVE_ATANL=1;
8525 HAVE_ATAN2F=1;
8526 HAVE_CBRT=1;
8527 HAVE_CBRTF=1;
8528 HAVE_CBRTL=1;
8529 HAVE_COPYSIGN=1;
8530 HAVE_COPYSIGNL=1;
8531 HAVE_COSF=1;
8532 HAVE_COSL=1;
8533 HAVE_COSHF=1;
8534 HAVE_EXPF=1;
8535 HAVE_EXPL=1;
8536 HAVE_EXPM1=1;
8537 HAVE_EXPM1F=1;
8538 HAVE_FABSF=1;
8539 HAVE_FABSL=1;
8540 HAVE_FMA=1;
8541 HAVE_FMAF=1;
8542 HAVE_FMAL=1;
8543 HAVE_FMODF=1;
8544 HAVE_FMODL=1;
8545 HAVE_FREXPF=1;
8546 HAVE_HYPOTF=1;
8547 HAVE_HYPOTL=1;
8548 HAVE_ILOGB=1;
8549 HAVE_ILOGBF=1;
8550 HAVE_ILOGBL=1;
8551 HAVE_ISNANF=1;
8552 HAVE_ISNAND=1;
8553 HAVE_ISNANL=1;
8554 HAVE_LDEXPF=1;
8555 HAVE_LOGF=1;
8556 HAVE_LOGL=1;
8557 HAVE_LOG10F=1;
8558 HAVE_LOG10L=1;
8559 HAVE_LOG1P=1;
8560 HAVE_LOG1PF=1;
8561 HAVE_LOG1PL=1;
8562 HAVE_LOGBF=1;
8563 HAVE_LOGBL=1;
8564 HAVE_MODFF=1;
8565 HAVE_MODFL=1;
8566 HAVE_POWF=1;
8567 HAVE_REMAINDER=1;
8568 HAVE_REMAINDERF=1;
8569 HAVE_RINT=1;
8570 HAVE_RINTL=1;
8571 HAVE_SINF=1;
8572 HAVE_SINL=1;
8573 HAVE_SINHF=1;
8574 HAVE_SQRTF=1;
8575 HAVE_SQRTL=1;
8576 HAVE_TANF=1;
8577 HAVE_TANL=1;
8578 HAVE_TANHF=1;
8579 HAVE_DECL_ACOSL=1;
8580 HAVE_DECL_ASINL=1;
8581 HAVE_DECL_ATANL=1;
8582 HAVE_DECL_CBRTF=1;
8583 HAVE_DECL_CBRTL=1;
8584 HAVE_DECL_CEILF=1;
8585 HAVE_DECL_CEILL=1;
8586 HAVE_DECL_COPYSIGNF=1;
8587 HAVE_DECL_COSL=1;
8588 HAVE_DECL_EXPL=1;
8589 HAVE_DECL_EXP2=1;
8590 HAVE_DECL_EXP2F=1;
8591 HAVE_DECL_EXP2L=1;
8592 HAVE_DECL_EXPM1L=1;
8593 HAVE_DECL_FLOORF=1;
8594 HAVE_DECL_FLOORL=1;
8595 HAVE_DECL_FREXPL=1;
8596 HAVE_DECL_LDEXPL=1;
8597 HAVE_DECL_LOGL=1;
8598 HAVE_DECL_LOG10L=1;
8599 HAVE_DECL_LOG2=1;
8600 HAVE_DECL_LOG2F=1;
8601 HAVE_DECL_LOG2L=1;
8602 HAVE_DECL_LOGB=1;
8603 HAVE_DECL_REMAINDER=1;
8604 HAVE_DECL_REMAINDERL=1;
8605 HAVE_DECL_RINTF=1;
8606 HAVE_DECL_ROUND=1;
8607 HAVE_DECL_ROUNDF=1;
8608 HAVE_DECL_ROUNDL=1;
8609 HAVE_DECL_SINL=1;
8610 HAVE_DECL_SQRTL=1;
8611 HAVE_DECL_TANL=1;
8612 HAVE_DECL_TRUNC=1;
8613 HAVE_DECL_TRUNCF=1;
8614 HAVE_DECL_TRUNCL=1;
8615 REPLACE_CBRTF=0;
8616 REPLACE_CBRTL=0;
8617 REPLACE_CEIL=0;
8618 REPLACE_CEILF=0;
8619 REPLACE_CEILL=0;
8620 REPLACE_EXPM1=0;
8621 REPLACE_EXPM1F=0;
8622 REPLACE_EXP2=0;
8623 REPLACE_EXP2L=0;
8624 REPLACE_FABSL=0;
8625 REPLACE_FLOOR=0;
8626 REPLACE_FLOORF=0;
8627 REPLACE_FLOORL=0;
8628 REPLACE_FMA=0;
8629 REPLACE_FMAF=0;
8630 REPLACE_FMAL=0;
8631 REPLACE_FMOD=0;
8632 REPLACE_FMODF=0;
8633 REPLACE_FMODL=0;
8634 REPLACE_FREXPF=0;
8635 REPLACE_FREXP=0;
8636 REPLACE_FREXPL=0;
8637 REPLACE_HUGE_VAL=0;
8638 REPLACE_HYPOT=0;
8639 REPLACE_HYPOTF=0;
8640 REPLACE_HYPOTL=0;
8641 REPLACE_ILOGB=0;
8642 REPLACE_ILOGBF=0;
8643 REPLACE_ISFINITE=0;
8644 REPLACE_ISINF=0;
8645 REPLACE_ISNAN=0;
8646 REPLACE_LDEXPL=0;
8647 REPLACE_LOG=0;
8648 REPLACE_LOGF=0;
8649 REPLACE_LOGL=0;
8650 REPLACE_LOG10=0;
8651 REPLACE_LOG10F=0;
8652 REPLACE_LOG10L=0;
8653 REPLACE_LOG1P=0;
8654 REPLACE_LOG1PF=0;
8655 REPLACE_LOG1PL=0;
8656 REPLACE_LOG2=0;
8657 REPLACE_LOG2F=0;
8658 REPLACE_LOG2L=0;
8659 REPLACE_LOGB=0;
8660 REPLACE_LOGBF=0;
8661 REPLACE_LOGBL=0;
8662 REPLACE_MODF=0;
8663 REPLACE_MODFF=0;
8664 REPLACE_MODFL=0;
8665 REPLACE_NAN=0;
8666 REPLACE_REMAINDER=0;
8667 REPLACE_REMAINDERF=0;
8668 REPLACE_REMAINDERL=0;
8669 REPLACE_ROUND=0;
8670 REPLACE_ROUNDF=0;
8671 REPLACE_ROUNDL=0;
8672 REPLACE_SIGNBIT=0;
8673 REPLACE_SIGNBIT_USING_GCC=0;
8674 REPLACE_SQRTL=0;
8675 REPLACE_TRUNC=0;
8676 REPLACE_TRUNCF=0;
8677 REPLACE_TRUNCL=0;
8678
8679
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used without linking with libm" >&5
8681 $as_echo_n "checking whether frexp() can be used without linking with libm... " >&6; }
8682 if ${gl_cv_func_frexp_no_libm+:} false; then :
8683 $as_echo_n "(cached) " >&6
8684 else
8685
8686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8687 /* end confdefs.h. */
8688 #include <math.h>
8689 double x;
8690 int
8691 main ()
8692 {
8693 int e; return frexp (x, &e) > 0;
8694 ;
8695 return 0;
8696 }
8697 _ACEOF
8698 if ac_fn_c_try_link "$LINENO"; then :
8699 gl_cv_func_frexp_no_libm=yes
8700 else
8701 gl_cv_func_frexp_no_libm=no
8702 fi
8703 rm -f core conftest.err conftest.$ac_objext \
8704 conftest$ac_exeext conftest.$ac_ext
8705
8706 fi
8707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_no_libm" >&5
8708 $as_echo "$gl_cv_func_frexp_no_libm" >&6; }
8709
8710
8711 ac_fn_c_check_decl "$LINENO" "alarm" "ac_cv_have_decl_alarm" "$ac_includes_default"
8712 if test "x$ac_cv_have_decl_alarm" = xyes; then :
8713 ac_have_decl=1
8714 else
8715 ac_have_decl=0
8716 fi
8717
8718 cat >>confdefs.h <<_ACEOF
8719 #define HAVE_DECL_ALARM $ac_have_decl
8720 _ACEOF
8721
8722
8723
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long double and double are the same" >&5
8725 $as_echo_n "checking whether long double and double are the same... " >&6; }
8726 if ${gl_cv_long_double_equals_double+:} false; then :
8727 $as_echo_n "(cached) " >&6
8728 else
8729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8730 /* end confdefs.h. */
8731 #include <float.h>
8732 int
8733 main ()
8734 {
8735 typedef int check[sizeof (long double) == sizeof (double)
8736 && LDBL_MANT_DIG == DBL_MANT_DIG
8737 && LDBL_MAX_EXP == DBL_MAX_EXP
8738 && LDBL_MIN_EXP == DBL_MIN_EXP
8739 ? 1 : -1];
8740
8741 ;
8742 return 0;
8743 }
8744 _ACEOF
8745 if ac_fn_c_try_compile "$LINENO"; then :
8746 gl_cv_long_double_equals_double=yes
8747 else
8748 gl_cv_long_double_equals_double=no
8749 fi
8750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8751
8752 fi
8753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_long_double_equals_double" >&5
8754 $as_echo "$gl_cv_long_double_equals_double" >&6; }
8755 if test $gl_cv_long_double_equals_double = yes; then
8756
8757 $as_echo "#define HAVE_SAME_LONG_DOUBLE_AS_DOUBLE 1" >>confdefs.h
8758
8759 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=1
8760 else
8761 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=0
8762 fi
8763
8764
8765
8766 GNULIB_FCHMODAT=0;
8767 GNULIB_FSTAT=0;
8768 GNULIB_FSTATAT=0;
8769 GNULIB_FUTIMENS=0;
8770 GNULIB_LCHMOD=0;
8771 GNULIB_LSTAT=0;
8772 GNULIB_MKDIRAT=0;
8773 GNULIB_MKFIFO=0;
8774 GNULIB_MKFIFOAT=0;
8775 GNULIB_MKNOD=0;
8776 GNULIB_MKNODAT=0;
8777 GNULIB_STAT=0;
8778 GNULIB_UTIMENSAT=0;
8779 HAVE_FCHMODAT=1;
8780 HAVE_FSTATAT=1;
8781 HAVE_FUTIMENS=1;
8782 HAVE_LCHMOD=1;
8783 HAVE_LSTAT=1;
8784 HAVE_MKDIRAT=1;
8785 HAVE_MKFIFO=1;
8786 HAVE_MKFIFOAT=1;
8787 HAVE_MKNOD=1;
8788 HAVE_MKNODAT=1;
8789 HAVE_UTIMENSAT=1;
8790 REPLACE_FSTAT=0;
8791 REPLACE_FSTATAT=0;
8792 REPLACE_FUTIMENS=0;
8793 REPLACE_LSTAT=0;
8794 REPLACE_MKDIR=0;
8795 REPLACE_MKFIFO=0;
8796 REPLACE_MKNOD=0;
8797 REPLACE_STAT=0;
8798 REPLACE_UTIMENSAT=0;
8799
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
8801 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
8802 if ${ac_cv_header_stat_broken+:} false; then :
8803 $as_echo_n "(cached) " >&6
8804 else
8805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8806 /* end confdefs.h. */
8807 #include <sys/types.h>
8808 #include <sys/stat.h>
8809
8810 #if defined S_ISBLK && defined S_IFDIR
8811 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
8812 #endif
8813
8814 #if defined S_ISBLK && defined S_IFCHR
8815 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
8816 #endif
8817
8818 #if defined S_ISLNK && defined S_IFREG
8819 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
8820 #endif
8821
8822 #if defined S_ISSOCK && defined S_IFREG
8823 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
8824 #endif
8825
8826 _ACEOF
8827 if ac_fn_c_try_compile "$LINENO"; then :
8828 ac_cv_header_stat_broken=no
8829 else
8830 ac_cv_header_stat_broken=yes
8831 fi
8832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8833 fi
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
8835 $as_echo "$ac_cv_header_stat_broken" >&6; }
8836 if test $ac_cv_header_stat_broken = yes; then
8837
8838 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
8839
8840 fi
8841
8842
8843
8844
8845
8846
8847
8848
8849 case "$host_os" in
8850 mingw*)
8851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
8852 $as_echo_n "checking for 64-bit off_t... " >&6; }
8853 if ${gl_cv_type_off_t_64+:} false; then :
8854 $as_echo_n "(cached) " >&6
8855 else
8856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8857 /* end confdefs.h. */
8858 #include <sys/types.h>
8859 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
8860
8861 int
8862 main ()
8863 {
8864
8865 ;
8866 return 0;
8867 }
8868 _ACEOF
8869 if ac_fn_c_try_compile "$LINENO"; then :
8870 gl_cv_type_off_t_64=yes
8871 else
8872 gl_cv_type_off_t_64=no
8873 fi
8874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8875
8876 fi
8877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
8878 $as_echo "$gl_cv_type_off_t_64" >&6; }
8879 if test $gl_cv_type_off_t_64 = no; then
8880 WINDOWS_64_BIT_OFF_T=1
8881 else
8882 WINDOWS_64_BIT_OFF_T=0
8883 fi
8884 WINDOWS_64_BIT_ST_SIZE=1
8885 ;;
8886 *)
8887 WINDOWS_64_BIT_OFF_T=0
8888 WINDOWS_64_BIT_ST_SIZE=0
8889 ;;
8890 esac
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903 :
8904
8905
8906
8907
8908
8909
8910
8911
8912 if test $gl_cv_have_include_next = yes; then
8913 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
8914 else
8915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
8916 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
8917 if ${gl_cv_next_sys_stat_h+:} false; then :
8918 $as_echo_n "(cached) " >&6
8919 else
8920
8921 if test $ac_cv_header_sys_stat_h = yes; then
8922
8923
8924
8925
8926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8927 /* end confdefs.h. */
8928 #include <sys/stat.h>
8929 _ACEOF
8930 case "$host_os" in
8931 aix*) gl_absname_cpp="$ac_cpp -C" ;;
8932 *) gl_absname_cpp="$ac_cpp" ;;
8933 esac
8934
8935 case "$host_os" in
8936 mingw*)
8937 gl_dirsep_regex='[/\\]'
8938 ;;
8939 *)
8940 gl_dirsep_regex='\/'
8941 ;;
8942 esac
8943 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
8944 gl_header_literal_regex=`echo 'sys/stat.h' \
8945 | sed -e "$gl_make_literal_regex_sed"`
8946 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
8947 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
8948 s|^/[^/]|//&|
8949 p
8950 q
8951 }'
8952
8953 gl_cv_absolute_sys_stat_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
8954 sed -n "$gl_absolute_header_sed"`
8955
8956 gl_header=$gl_cv_absolute_sys_stat_h
8957 gl_cv_next_sys_stat_h='"'$gl_header'"'
8958 else
8959 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
8960 fi
8961
8962
8963 fi
8964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
8965 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
8966 fi
8967 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
8968
8969 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
8970 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
8971 gl_next_as_first_directive='<'sys/stat.h'>'
8972 else
8973 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
8974 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
8975 fi
8976 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
8989
8990 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
8991
8992 fi
8993
8994 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
8995 #include <sys/stat.h>
8996 "
8997 if test "x$ac_cv_type_nlink_t" = xyes; then :
8998
8999 else
9000
9001 $as_echo "#define nlink_t int" >>confdefs.h
9002
9003 fi
9004
9005
9006
9007 for gl_func in fchmodat fstat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat mknod mknodat stat utimensat; do
9008 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
9009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
9010 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
9011 if eval \${$as_gl_Symbol+:} false; then :
9012 $as_echo_n "(cached) " >&6
9013 else
9014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9015 /* end confdefs.h. */
9016 #include <sys/stat.h>
9017
9018 int
9019 main ()
9020 {
9021 #undef $gl_func
9022 (void) $gl_func;
9023 ;
9024 return 0;
9025 }
9026 _ACEOF
9027 if ac_fn_c_try_compile "$LINENO"; then :
9028 eval "$as_gl_Symbol=yes"
9029 else
9030 eval "$as_gl_Symbol=no"
9031 fi
9032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9033 fi
9034 eval ac_res=\$$as_gl_Symbol
9035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9036 $as_echo "$ac_res" >&6; }
9037 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
9038 cat >>confdefs.h <<_ACEOF
9039 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
9040 _ACEOF
9041
9042 eval ac_cv_have_decl_$gl_func=yes
9043 fi
9044 done
9045
9046
9047
9048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
9049 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
9050 if ${gl_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
9051 $as_echo_n "(cached) " >&6
9052 else
9053 rm -f conftest.sym conftest.file
9054 echo >conftest.file
9055 if test "$cross_compiling" = yes; then :
9056 case "$host_os" in
9057 *-gnu*)
9058 # Guess yes on glibc systems.
9059 gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
9060 *)
9061 # If we don't know, assume the worst.
9062 gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
9063 esac
9064
9065 else
9066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9067 /* end confdefs.h. */
9068 $ac_includes_default
9069 int
9070 main ()
9071 {
9072 struct stat sbuf;
9073 if (symlink ("conftest.file", "conftest.sym") != 0)
9074 return 1;
9075 /* Linux will dereference the symlink and fail, as required by
9076 POSIX. That is better in the sense that it means we will not
9077 have to compile and use the lstat wrapper. */
9078 return lstat ("conftest.sym/", &sbuf) == 0;
9079
9080 ;
9081 return 0;
9082 }
9083 _ACEOF
9084 if ac_fn_c_try_run "$LINENO"; then :
9085 gl_cv_func_lstat_dereferences_slashed_symlink=yes
9086 else
9087 gl_cv_func_lstat_dereferences_slashed_symlink=no
9088 fi
9089 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9090 conftest.$ac_objext conftest.beam conftest.$ac_ext
9091 fi
9092
9093 rm -f conftest.sym conftest.file
9094
9095 fi
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
9097 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
9098 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
9099 *yes)
9100
9101 cat >>confdefs.h <<_ACEOF
9102 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
9103 _ACEOF
9104
9105 ;;
9106 esac
9107
9108
9109
9110
9111
9112
9113
9114
9115 :
9116
9117
9118
9119
9120
9121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd (NULL, 0) allocates memory for result" >&5
9122 $as_echo_n "checking whether getcwd (NULL, 0) allocates memory for result... " >&6; }
9123 if ${gl_cv_func_getcwd_null+:} false; then :
9124 $as_echo_n "(cached) " >&6
9125 else
9126 if test "$cross_compiling" = yes; then :
9127 case "$host_os" in
9128 # Guess yes on glibc systems.
9129 *-gnu*) gl_cv_func_getcwd_null="guessing yes";;
9130 # Guess yes on Cygwin.
9131 cygwin*) gl_cv_func_getcwd_null="guessing yes";;
9132 # If we don't know, assume the worst.
9133 *) gl_cv_func_getcwd_null="guessing no";;
9134 esac
9135
9136 else
9137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9138 /* end confdefs.h. */
9139
9140 # include <stdlib.h>
9141 # if HAVE_UNISTD_H
9142 # include <unistd.h>
9143 # else /* on Windows with MSVC */
9144 # include <direct.h>
9145 # endif
9146 # ifndef getcwd
9147 char *getcwd ();
9148 # endif
9149
9150 int
9151 main ()
9152 {
9153
9154 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
9155 /* mingw cwd does not start with '/', but getcwd does allocate.
9156 However, mingw fails to honor non-zero size. */
9157 #else
9158 if (chdir ("/") != 0)
9159 return 1;
9160 else
9161 {
9162 char *f = getcwd (NULL, 0);
9163 if (! f)
9164 return 2;
9165 if (f[0] != '/')
9166 return 3;
9167 if (f[1] != '\0')
9168 return 4;
9169 free (f);
9170 return 0;
9171 }
9172 #endif
9173
9174 ;
9175 return 0;
9176 }
9177 _ACEOF
9178 if ac_fn_c_try_run "$LINENO"; then :
9179 gl_cv_func_getcwd_null=yes
9180 else
9181 gl_cv_func_getcwd_null=no
9182 fi
9183 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9184 conftest.$ac_objext conftest.beam conftest.$ac_ext
9185 fi
9186
9187 fi
9188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_null" >&5
9189 $as_echo "$gl_cv_func_getcwd_null" >&6; }
9190
9191
9192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getcwd with POSIX signature" >&5
9193 $as_echo_n "checking for getcwd with POSIX signature... " >&6; }
9194 if ${gl_cv_func_getcwd_posix_signature+:} false; then :
9195 $as_echo_n "(cached) " >&6
9196 else
9197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9198 /* end confdefs.h. */
9199 #include <unistd.h>
9200 int
9201 main ()
9202 {
9203 extern
9204 #ifdef __cplusplus
9205 "C"
9206 #endif
9207 char *getcwd (char *, size_t);
9208
9209 ;
9210 return 0;
9211 }
9212
9213 _ACEOF
9214 if ac_fn_c_try_compile "$LINENO"; then :
9215 gl_cv_func_getcwd_posix_signature=yes
9216 else
9217 gl_cv_func_getcwd_posix_signature=no
9218 fi
9219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9220
9221 fi
9222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_posix_signature" >&5
9223 $as_echo "$gl_cv_func_getcwd_posix_signature" >&6; }
9224
9225
9226 ac_fn_c_check_decl "$LINENO" "getcwd" "ac_cv_have_decl_getcwd" "$ac_includes_default"
9227 if test "x$ac_cv_have_decl_getcwd" = xyes; then :
9228 ac_have_decl=1
9229 else
9230 ac_have_decl=0
9231 fi
9232
9233 cat >>confdefs.h <<_ACEOF
9234 #define HAVE_DECL_GETCWD $ac_have_decl
9235 _ACEOF
9236
9237
9238
9239
9240
9241
9242
9243
9244 ac_fn_c_check_decl "$LINENO" "getdtablesize" "ac_cv_have_decl_getdtablesize" "$ac_includes_default"
9245 if test "x$ac_cv_have_decl_getdtablesize" = xyes; then :
9246 ac_have_decl=1
9247 else
9248 ac_have_decl=0
9249 fi
9250
9251 cat >>confdefs.h <<_ACEOF
9252 #define HAVE_DECL_GETDTABLESIZE $ac_have_decl
9253 _ACEOF
9254
9255
9256
9257 ac_fn_c_check_decl "$LINENO" "getlogin_r" "ac_cv_have_decl_getlogin_r" "$ac_includes_default"
9258 if test "x$ac_cv_have_decl_getlogin_r" = xyes; then :
9259 ac_have_decl=1
9260 else
9261 ac_have_decl=0
9262 fi
9263
9264 cat >>confdefs.h <<_ACEOF
9265 #define HAVE_DECL_GETLOGIN_R $ac_have_decl
9266 _ACEOF
9267
9268
9269
9270
9271
9272
9273
9274
9275 ac_fn_c_check_decl "$LINENO" "getlogin" "ac_cv_have_decl_getlogin" "$ac_includes_default"
9276 if test "x$ac_cv_have_decl_getlogin" = xyes; then :
9277 ac_have_decl=1
9278 else
9279 ac_have_decl=0
9280 fi
9281
9282 cat >>confdefs.h <<_ACEOF
9283 #define HAVE_DECL_GETLOGIN $ac_have_decl
9284 _ACEOF
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
9298 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
9299 if ${ac_cv_c_restrict+:} false; then :
9300 $as_echo_n "(cached) " >&6
9301 else
9302 ac_cv_c_restrict=no
9303 # The order here caters to the fact that C++ does not require restrict.
9304 for ac_kw in __restrict __restrict__ _Restrict restrict; do
9305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9306 /* end confdefs.h. */
9307 typedef int *int_ptr;
9308 int foo (int_ptr $ac_kw ip) { return ip[0]; }
9309 int bar (int [$ac_kw]); /* Catch GCC bug 14050. */
9310 int bar (int ip[$ac_kw]) { return ip[0]; }
9311
9312 int
9313 main ()
9314 {
9315 int s[1];
9316 int *$ac_kw t = s;
9317 t[0] = 0;
9318 return foo (t) + bar (t);
9319
9320 ;
9321 return 0;
9322 }
9323 _ACEOF
9324 if ac_fn_c_try_compile "$LINENO"; then :
9325 ac_cv_c_restrict=$ac_kw
9326 fi
9327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9328 test "$ac_cv_c_restrict" != no && break
9329 done
9330
9331 fi
9332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
9333 $as_echo "$ac_cv_c_restrict" >&6; }
9334
9335 case $ac_cv_c_restrict in
9336 restrict) ;;
9337 no) $as_echo "#define restrict /**/" >>confdefs.h
9338 ;;
9339 *) cat >>confdefs.h <<_ACEOF
9340 #define restrict $ac_cv_c_restrict
9341 _ACEOF
9342 ;;
9343 esac
9344
9345
9346 GNULIB_GETTIMEOFDAY=0;
9347 HAVE_GETTIMEOFDAY=1;
9348 HAVE_STRUCT_TIMEVAL=1;
9349 HAVE_SYS_TIME_H=1;
9350 HAVE_TIMEZONE_T=0;
9351 REPLACE_GETTIMEOFDAY=0;
9352 REPLACE_STRUCT_TIMEVAL=0;
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363 :
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375 :
9376
9377
9378
9379
9380
9381
9382
9383
9384 if test $gl_cv_have_include_next = yes; then
9385 gl_cv_next_sys_time_h='<'sys/time.h'>'
9386 else
9387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
9388 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
9389 if ${gl_cv_next_sys_time_h+:} false; then :
9390 $as_echo_n "(cached) " >&6
9391 else
9392
9393 if test $ac_cv_header_sys_time_h = yes; then
9394
9395
9396
9397
9398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9399 /* end confdefs.h. */
9400 #include <sys/time.h>
9401 _ACEOF
9402 case "$host_os" in
9403 aix*) gl_absname_cpp="$ac_cpp -C" ;;
9404 *) gl_absname_cpp="$ac_cpp" ;;
9405 esac
9406
9407 case "$host_os" in
9408 mingw*)
9409 gl_dirsep_regex='[/\\]'
9410 ;;
9411 *)
9412 gl_dirsep_regex='\/'
9413 ;;
9414 esac
9415 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
9416 gl_header_literal_regex=`echo 'sys/time.h' \
9417 | sed -e "$gl_make_literal_regex_sed"`
9418 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9419 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9420 s|^/[^/]|//&|
9421 p
9422 q
9423 }'
9424
9425 gl_cv_absolute_sys_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9426 sed -n "$gl_absolute_header_sed"`
9427
9428 gl_header=$gl_cv_absolute_sys_time_h
9429 gl_cv_next_sys_time_h='"'$gl_header'"'
9430 else
9431 gl_cv_next_sys_time_h='<'sys/time.h'>'
9432 fi
9433
9434
9435 fi
9436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
9437 $as_echo "$gl_cv_next_sys_time_h" >&6; }
9438 fi
9439 NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
9440
9441 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
9442 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9443 gl_next_as_first_directive='<'sys/time.h'>'
9444 else
9445 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9446 gl_next_as_first_directive=$gl_cv_next_sys_time_h
9447 fi
9448 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
9449
9450
9451
9452
9453
9454 if test $ac_cv_header_sys_time_h != yes; then
9455 HAVE_SYS_TIME_H=0
9456 fi
9457
9458
9459
9460
9461
9462 :
9463
9464
9465
9466
9467
9468 if test $ac_cv_header_sys_socket_h != yes; then
9469 for ac_header in winsock2.h
9470 do :
9471 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
9472 if test "x$ac_cv_header_winsock2_h" = xyes; then :
9473 cat >>confdefs.h <<_ACEOF
9474 #define HAVE_WINSOCK2_H 1
9475 _ACEOF
9476
9477 fi
9478
9479 done
9480
9481 fi
9482 if test "$ac_cv_header_winsock2_h" = yes; then
9483 HAVE_WINSOCK2_H=1
9484 UNISTD_H_HAVE_WINSOCK2_H=1
9485 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
9486 else
9487 HAVE_WINSOCK2_H=0
9488 fi
9489
9490
9491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
9492 $as_echo_n "checking for struct timeval... " >&6; }
9493 if ${gl_cv_sys_struct_timeval+:} false; then :
9494 $as_echo_n "(cached) " >&6
9495 else
9496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9497 /* end confdefs.h. */
9498 #if HAVE_SYS_TIME_H
9499 #include <sys/time.h>
9500 #endif
9501 #include <time.h>
9502 #if HAVE_WINSOCK2_H
9503 # include <winsock2.h>
9504 #endif
9505
9506 int
9507 main ()
9508 {
9509 static struct timeval x; x.tv_sec = x.tv_usec;
9510 ;
9511 return 0;
9512 }
9513 _ACEOF
9514 if ac_fn_c_try_compile "$LINENO"; then :
9515 gl_cv_sys_struct_timeval=yes
9516 else
9517 gl_cv_sys_struct_timeval=no
9518 fi
9519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9520
9521 fi
9522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
9523 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
9524 if test $gl_cv_sys_struct_timeval != yes; then
9525 HAVE_STRUCT_TIMEVAL=0
9526 else
9527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
9528 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
9529 if ${gl_cv_sys_struct_timeval_tv_sec+:} false; then :
9530 $as_echo_n "(cached) " >&6
9531 else
9532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9533 /* end confdefs.h. */
9534 #if HAVE_SYS_TIME_H
9535 #include <sys/time.h>
9536 #endif
9537 #include <time.h>
9538 #if HAVE_WINSOCK2_H
9539 # include <winsock2.h>
9540 #endif
9541
9542 int
9543 main ()
9544 {
9545 static struct timeval x;
9546 typedef int verify_tv_sec_type[
9547 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
9548 ];
9549
9550 ;
9551 return 0;
9552 }
9553 _ACEOF
9554 if ac_fn_c_try_compile "$LINENO"; then :
9555 gl_cv_sys_struct_timeval_tv_sec=yes
9556 else
9557 gl_cv_sys_struct_timeval_tv_sec=no
9558 fi
9559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9560
9561 fi
9562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
9563 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
9564 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
9565 REPLACE_STRUCT_TIMEVAL=1
9566 fi
9567 fi
9568
9569
9570 for gl_func in gettimeofday; do
9571 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
9572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
9573 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
9574 if eval \${$as_gl_Symbol+:} false; then :
9575 $as_echo_n "(cached) " >&6
9576 else
9577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9578 /* end confdefs.h. */
9579
9580 #if HAVE_SYS_TIME_H
9581 # include <sys/time.h>
9582 #endif
9583 #include <time.h>
9584
9585 int
9586 main ()
9587 {
9588 #undef $gl_func
9589 (void) $gl_func;
9590 ;
9591 return 0;
9592 }
9593 _ACEOF
9594 if ac_fn_c_try_compile "$LINENO"; then :
9595 eval "$as_gl_Symbol=yes"
9596 else
9597 eval "$as_gl_Symbol=no"
9598 fi
9599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9600 fi
9601 eval ac_res=\$$as_gl_Symbol
9602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9603 $as_echo "$ac_res" >&6; }
9604 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
9605 cat >>confdefs.h <<_ACEOF
9606 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
9607 _ACEOF
9608
9609 eval ac_cv_have_decl_$gl_func=yes
9610 fi
9611 done
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638 GNULIB_SOCKET=0;
9639 GNULIB_CONNECT=0;
9640 GNULIB_ACCEPT=0;
9641 GNULIB_BIND=0;
9642 GNULIB_GETPEERNAME=0;
9643 GNULIB_GETSOCKNAME=0;
9644 GNULIB_GETSOCKOPT=0;
9645 GNULIB_LISTEN=0;
9646 GNULIB_RECV=0;
9647 GNULIB_SEND=0;
9648 GNULIB_RECVFROM=0;
9649 GNULIB_SENDTO=0;
9650 GNULIB_SETSOCKOPT=0;
9651 GNULIB_SHUTDOWN=0;
9652 GNULIB_ACCEPT4=0;
9653 HAVE_STRUCT_SOCKADDR_STORAGE=1;
9654 HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY=1;
9655
9656 HAVE_SA_FAMILY_T=1;
9657 HAVE_ACCEPT4=1;
9658
9659
9660 :
9661
9662
9663
9664
9665
9666 if test $ac_cv_header_sys_socket_h = no; then
9667 for ac_header in ws2tcpip.h
9668 do :
9669 ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
9670 if test "x$ac_cv_header_ws2tcpip_h" = xyes; then :
9671 cat >>confdefs.h <<_ACEOF
9672 #define HAVE_WS2TCPIP_H 1
9673 _ACEOF
9674
9675 fi
9676
9677 done
9678
9679 fi
9680
9681
9682
9683
9684
9685 case "$host_os" in
9686 osf*)
9687
9688 $as_echo "#define _POSIX_PII_SOCKET 1" >>confdefs.h
9689
9690 ;;
9691 esac
9692
9693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> is self-contained" >&5
9694 $as_echo_n "checking whether <sys/socket.h> is self-contained... " >&6; }
9695 if ${gl_cv_header_sys_socket_h_selfcontained+:} false; then :
9696 $as_echo_n "(cached) " >&6
9697 else
9698
9699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9700 /* end confdefs.h. */
9701 #include <sys/socket.h>
9702 int
9703 main ()
9704 {
9705
9706 ;
9707 return 0;
9708 }
9709 _ACEOF
9710 if ac_fn_c_try_compile "$LINENO"; then :
9711 gl_cv_header_sys_socket_h_selfcontained=yes
9712 else
9713 gl_cv_header_sys_socket_h_selfcontained=no
9714 fi
9715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9716
9717 fi
9718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_selfcontained" >&5
9719 $as_echo "$gl_cv_header_sys_socket_h_selfcontained" >&6; }
9720 if test $gl_cv_header_sys_socket_h_selfcontained = yes; then
9721 for ac_func in shutdown
9722 do :
9723 ac_fn_c_check_func "$LINENO" "shutdown" "ac_cv_func_shutdown"
9724 if test "x$ac_cv_func_shutdown" = xyes; then :
9725 cat >>confdefs.h <<_ACEOF
9726 #define HAVE_SHUTDOWN 1
9727 _ACEOF
9728
9729 fi
9730 done
9731
9732 if test $ac_cv_func_shutdown = yes; then
9733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> defines the SHUT_* macros" >&5
9734 $as_echo_n "checking whether <sys/socket.h> defines the SHUT_* macros... " >&6; }
9735 if ${gl_cv_header_sys_socket_h_shut+:} false; then :
9736 $as_echo_n "(cached) " >&6
9737 else
9738
9739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9740 /* end confdefs.h. */
9741 #include <sys/socket.h>
9742 int
9743 main ()
9744 {
9745 int a[] = { SHUT_RD, SHUT_WR, SHUT_RDWR };
9746 ;
9747 return 0;
9748 }
9749 _ACEOF
9750 if ac_fn_c_try_compile "$LINENO"; then :
9751 gl_cv_header_sys_socket_h_shut=yes
9752 else
9753 gl_cv_header_sys_socket_h_shut=no
9754 fi
9755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9756
9757 fi
9758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_shut" >&5
9759 $as_echo "$gl_cv_header_sys_socket_h_shut" >&6; }
9760 if test $gl_cv_header_sys_socket_h_shut = no; then
9761 SYS_SOCKET_H='sys/socket.h'
9762 fi
9763 fi
9764 fi
9765 # We need to check for ws2tcpip.h now.
9766
9767
9768
9769
9770
9771
9772
9773
9774 :
9775
9776
9777
9778
9779
9780
9781
9782
9783 if test $gl_cv_have_include_next = yes; then
9784 gl_cv_next_sys_socket_h='<'sys/socket.h'>'
9785 else
9786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/socket.h>" >&5
9787 $as_echo_n "checking absolute name of <sys/socket.h>... " >&6; }
9788 if ${gl_cv_next_sys_socket_h+:} false; then :
9789 $as_echo_n "(cached) " >&6
9790 else
9791
9792 if test $ac_cv_header_sys_socket_h = yes; then
9793
9794
9795
9796
9797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9798 /* end confdefs.h. */
9799 #include <sys/socket.h>
9800 _ACEOF
9801 case "$host_os" in
9802 aix*) gl_absname_cpp="$ac_cpp -C" ;;
9803 *) gl_absname_cpp="$ac_cpp" ;;
9804 esac
9805
9806 case "$host_os" in
9807 mingw*)
9808 gl_dirsep_regex='[/\\]'
9809 ;;
9810 *)
9811 gl_dirsep_regex='\/'
9812 ;;
9813 esac
9814 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
9815 gl_header_literal_regex=`echo 'sys/socket.h' \
9816 | sed -e "$gl_make_literal_regex_sed"`
9817 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9818 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9819 s|^/[^/]|//&|
9820 p
9821 q
9822 }'
9823
9824 gl_cv_absolute_sys_socket_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9825 sed -n "$gl_absolute_header_sed"`
9826
9827 gl_header=$gl_cv_absolute_sys_socket_h
9828 gl_cv_next_sys_socket_h='"'$gl_header'"'
9829 else
9830 gl_cv_next_sys_socket_h='<'sys/socket.h'>'
9831 fi
9832
9833
9834 fi
9835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_socket_h" >&5
9836 $as_echo "$gl_cv_next_sys_socket_h" >&6; }
9837 fi
9838 NEXT_SYS_SOCKET_H=$gl_cv_next_sys_socket_h
9839
9840 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
9841 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9842 gl_next_as_first_directive='<'sys/socket.h'>'
9843 else
9844 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9845 gl_next_as_first_directive=$gl_cv_next_sys_socket_h
9846 fi
9847 NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H=$gl_next_as_first_directive
9848
9849
9850
9851
9852 if test $ac_cv_header_sys_socket_h = yes; then
9853 HAVE_SYS_SOCKET_H=1
9854 HAVE_WS2TCPIP_H=0
9855 else
9856 HAVE_SYS_SOCKET_H=0
9857 if test $ac_cv_header_ws2tcpip_h = yes; then
9858 HAVE_WS2TCPIP_H=1
9859 else
9860 HAVE_WS2TCPIP_H=0
9861 fi
9862 fi
9863
9864
9865
9866 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
9867 /* sys/types.h is not needed according to POSIX, but the
9868 sys/socket.h in i386-unknown-freebsd4.10 and
9869 powerpc-apple-darwin5.5 required it. */
9870 #include <sys/types.h>
9871 #ifdef HAVE_SYS_SOCKET_H
9872 #include <sys/socket.h>
9873 #endif
9874 #ifdef HAVE_WS2TCPIP_H
9875 #include <ws2tcpip.h>
9876 #endif
9877
9878 "
9879 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
9880
9881 cat >>confdefs.h <<_ACEOF
9882 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
9883 _ACEOF
9884
9885
9886 fi
9887 ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "
9888 /* sys/types.h is not needed according to POSIX, but the
9889 sys/socket.h in i386-unknown-freebsd4.10 and
9890 powerpc-apple-darwin5.5 required it. */
9891 #include <sys/types.h>
9892 #ifdef HAVE_SYS_SOCKET_H
9893 #include <sys/socket.h>
9894 #endif
9895 #ifdef HAVE_WS2TCPIP_H
9896 #include <ws2tcpip.h>
9897 #endif
9898
9899 "
9900 if test "x$ac_cv_type_sa_family_t" = xyes; then :
9901
9902 cat >>confdefs.h <<_ACEOF
9903 #define HAVE_SA_FAMILY_T 1
9904 _ACEOF
9905
9906
9907 fi
9908
9909 if test $ac_cv_type_struct_sockaddr_storage = no; then
9910 HAVE_STRUCT_SOCKADDR_STORAGE=0
9911 fi
9912 if test $ac_cv_type_sa_family_t = no; then
9913 HAVE_SA_FAMILY_T=0
9914 fi
9915 if test $ac_cv_type_struct_sockaddr_storage != no; then
9916 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include <sys/types.h>
9917 #ifdef HAVE_SYS_SOCKET_H
9918 #include <sys/socket.h>
9919 #endif
9920 #ifdef HAVE_WS2TCPIP_H
9921 #include <ws2tcpip.h>
9922 #endif
9923
9924 "
9925 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes; then :
9926
9927 cat >>confdefs.h <<_ACEOF
9928 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
9929 _ACEOF
9930
9931
9932 else
9933 HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY=0
9934 fi
9935
9936 fi
9937 if test $HAVE_STRUCT_SOCKADDR_STORAGE = 0 || test $HAVE_SA_FAMILY_T = 0 \
9938 || test $HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY = 0; then
9939 SYS_SOCKET_H='sys/socket.h'
9940 fi
9941
9942
9943
9944
9945 :
9946
9947
9948
9949
9950
9951 if test $ac_cv_header_sys_socket_h != yes; then
9952 for ac_header in winsock2.h
9953 do :
9954 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
9955 if test "x$ac_cv_header_winsock2_h" = xyes; then :
9956 cat >>confdefs.h <<_ACEOF
9957 #define HAVE_WINSOCK2_H 1
9958 _ACEOF
9959
9960 fi
9961
9962 done
9963
9964 fi
9965 if test "$ac_cv_header_winsock2_h" = yes; then
9966 HAVE_WINSOCK2_H=1
9967 UNISTD_H_HAVE_WINSOCK2_H=1
9968 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
9969 else
9970 HAVE_WINSOCK2_H=0
9971 fi
9972
9973
9974
9975
9976 for gl_func in socket connect accept bind getpeername getsockname getsockopt listen recv send recvfrom sendto setsockopt shutdown accept4; do
9977 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
9978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
9979 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
9980 if eval \${$as_gl_Symbol+:} false; then :
9981 $as_echo_n "(cached) " >&6
9982 else
9983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9984 /* end confdefs.h. */
9985
9986 /* Some systems require prerequisite headers. */
9987 #include <sys/types.h>
9988 #include <sys/socket.h>
9989
9990 int
9991 main ()
9992 {
9993 #undef $gl_func
9994 (void) $gl_func;
9995 ;
9996 return 0;
9997 }
9998 _ACEOF
9999 if ac_fn_c_try_compile "$LINENO"; then :
10000 eval "$as_gl_Symbol=yes"
10001 else
10002 eval "$as_gl_Symbol=no"
10003 fi
10004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10005 fi
10006 eval ac_res=\$$as_gl_Symbol
10007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10008 $as_echo "$ac_res" >&6; }
10009 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
10010 cat >>confdefs.h <<_ACEOF
10011 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
10012 _ACEOF
10013
10014 eval ac_cv_have_decl_$gl_func=yes
10015 fi
10016 done
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027 :
10028
10029
10030
10031
10032
10033
10034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv4 sockets" >&5
10035 $as_echo_n "checking for IPv4 sockets... " >&6; }
10036 if ${gl_cv_socket_ipv4+:} false; then :
10037 $as_echo_n "(cached) " >&6
10038 else
10039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10040 /* end confdefs.h. */
10041 #include <sys/types.h>
10042 #ifdef HAVE_SYS_SOCKET_H
10043 #include <sys/socket.h>
10044 #endif
10045 #ifdef HAVE_NETINET_IN_H
10046 #include <netinet/in.h>
10047 #endif
10048 #ifdef HAVE_WINSOCK2_H
10049 #include <winsock2.h>
10050 #endif
10051 int
10052 main ()
10053 {
10054 int x = AF_INET; struct in_addr y; struct sockaddr_in z;
10055 if (&x && &y && &z) return 0;
10056 ;
10057 return 0;
10058 }
10059 _ACEOF
10060 if ac_fn_c_try_compile "$LINENO"; then :
10061 gl_cv_socket_ipv4=yes
10062 else
10063 gl_cv_socket_ipv4=no
10064 fi
10065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10066 fi
10067
10068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socket_ipv4" >&5
10069 $as_echo "$gl_cv_socket_ipv4" >&6; }
10070 if test $gl_cv_socket_ipv4 = yes; then
10071
10072 $as_echo "#define HAVE_IPV4 1" >>confdefs.h
10073
10074 fi
10075
10076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 sockets" >&5
10077 $as_echo_n "checking for IPv6 sockets... " >&6; }
10078 if ${gl_cv_socket_ipv6+:} false; then :
10079 $as_echo_n "(cached) " >&6
10080 else
10081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10082 /* end confdefs.h. */
10083 #include <sys/types.h>
10084 #ifdef HAVE_SYS_SOCKET_H
10085 #include <sys/socket.h>
10086 #endif
10087 #ifdef HAVE_NETINET_IN_H
10088 #include <netinet/in.h>
10089 #endif
10090 #ifdef HAVE_WINSOCK2_H
10091 #include <winsock2.h>
10092 #endif
10093 #ifdef HAVE_WS2TCPIP_H
10094 #include <ws2tcpip.h>
10095 #endif
10096 int
10097 main ()
10098 {
10099 int x = AF_INET6; struct in6_addr y; struct sockaddr_in6 z;
10100 if (&x && &y && &z) return 0;
10101 ;
10102 return 0;
10103 }
10104 _ACEOF
10105 if ac_fn_c_try_compile "$LINENO"; then :
10106 gl_cv_socket_ipv6=yes
10107 else
10108 gl_cv_socket_ipv6=no
10109 fi
10110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10111 fi
10112
10113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socket_ipv6" >&5
10114 $as_echo "$gl_cv_socket_ipv6" >&6; }
10115 if test $gl_cv_socket_ipv6 = yes; then
10116
10117 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
10118
10119 fi
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133 :
10134
10135
10136
10137
10138
10139
10140
10141
10142 if test $gl_cv_have_include_next = yes; then
10143 gl_cv_next_limits_h='<'limits.h'>'
10144 else
10145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <limits.h>" >&5
10146 $as_echo_n "checking absolute name of <limits.h>... " >&6; }
10147 if ${gl_cv_next_limits_h+:} false; then :
10148 $as_echo_n "(cached) " >&6
10149 else
10150
10151 if test $ac_cv_header_limits_h = yes; then
10152
10153
10154
10155
10156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10157 /* end confdefs.h. */
10158 #include <limits.h>
10159 _ACEOF
10160 case "$host_os" in
10161 aix*) gl_absname_cpp="$ac_cpp -C" ;;
10162 *) gl_absname_cpp="$ac_cpp" ;;
10163 esac
10164
10165 case "$host_os" in
10166 mingw*)
10167 gl_dirsep_regex='[/\\]'
10168 ;;
10169 *)
10170 gl_dirsep_regex='\/'
10171 ;;
10172 esac
10173 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
10174 gl_header_literal_regex=`echo 'limits.h' \
10175 | sed -e "$gl_make_literal_regex_sed"`
10176 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10177 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10178 s|^/[^/]|//&|
10179 p
10180 q
10181 }'
10182
10183 gl_cv_absolute_limits_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10184 sed -n "$gl_absolute_header_sed"`
10185
10186 gl_header=$gl_cv_absolute_limits_h
10187 gl_cv_next_limits_h='"'$gl_header'"'
10188 else
10189 gl_cv_next_limits_h='<'limits.h'>'
10190 fi
10191
10192
10193 fi
10194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_limits_h" >&5
10195 $as_echo "$gl_cv_next_limits_h" >&6; }
10196 fi
10197 NEXT_LIMITS_H=$gl_cv_next_limits_h
10198
10199 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
10200 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10201 gl_next_as_first_directive='<'limits.h'>'
10202 else
10203 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10204 gl_next_as_first_directive=$gl_cv_next_limits_h
10205 fi
10206 NEXT_AS_FIRST_DIRECTIVE_LIMITS_H=$gl_next_as_first_directive
10207
10208
10209
10210
10211
10212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether limits.h has ULLONG_WIDTH etc." >&5
10213 $as_echo_n "checking whether limits.h has ULLONG_WIDTH etc.... " >&6; }
10214 if ${gl_cv_header_limits_width+:} false; then :
10215 $as_echo_n "(cached) " >&6
10216 else
10217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10218 /* end confdefs.h. */
10219 #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
10220 #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
10221 #endif
10222 #include <limits.h>
10223 int ullw = ULLONG_WIDTH;
10224 int
10225 main ()
10226 {
10227
10228 ;
10229 return 0;
10230 }
10231 _ACEOF
10232 if ac_fn_c_try_compile "$LINENO"; then :
10233 gl_cv_header_limits_width=yes
10234 else
10235 gl_cv_header_limits_width=no
10236 fi
10237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10238 fi
10239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_limits_width" >&5
10240 $as_echo "$gl_cv_header_limits_width" >&6; }
10241 if test "$gl_cv_header_limits_width" = yes; then
10242 LIMITS_H=
10243 else
10244 LIMITS_H=limits.h
10245 fi
10246
10247 if test -n "$LIMITS_H"; then
10248 GL_GENERATE_LIMITS_H_TRUE=
10249 GL_GENERATE_LIMITS_H_FALSE='#'
10250 else
10251 GL_GENERATE_LIMITS_H_TRUE='#'
10252 GL_GENERATE_LIMITS_H_FALSE=
10253 fi
10254
10255
10256
10257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
10258 $as_echo_n "checking for unsigned long long int... " >&6; }
10259 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
10260 $as_echo_n "(cached) " >&6
10261 else
10262 ac_cv_type_unsigned_long_long_int=yes
10263 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
10264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10265 /* end confdefs.h. */
10266
10267 /* For now, do not test the preprocessor; as of 2007 there are too many
10268 implementations with broken preprocessors. Perhaps this can
10269 be revisited in 2012. In the meantime, code should not expect
10270 #if to work with literals wider than 32 bits. */
10271 /* Test literals. */
10272 long long int ll = 9223372036854775807ll;
10273 long long int nll = -9223372036854775807LL;
10274 unsigned long long int ull = 18446744073709551615ULL;
10275 /* Test constant expressions. */
10276 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
10277 ? 1 : -1)];
10278 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
10279 ? 1 : -1)];
10280 int i = 63;
10281 int
10282 main ()
10283 {
10284 /* Test availability of runtime routines for shift and division. */
10285 long long int llmax = 9223372036854775807ll;
10286 unsigned long long int ullmax = 18446744073709551615ull;
10287 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
10288 | (llmax / ll) | (llmax % ll)
10289 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
10290 | (ullmax / ull) | (ullmax % ull));
10291 ;
10292 return 0;
10293 }
10294
10295 _ACEOF
10296 if ac_fn_c_try_link "$LINENO"; then :
10297
10298 else
10299 ac_cv_type_unsigned_long_long_int=no
10300 fi
10301 rm -f core conftest.err conftest.$ac_objext \
10302 conftest$ac_exeext conftest.$ac_ext
10303 fi
10304 fi
10305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
10306 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
10307 if test $ac_cv_type_unsigned_long_long_int = yes; then
10308
10309 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
10310
10311 fi
10312
10313
10314
10315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
10316 $as_echo_n "checking for long long int... " >&6; }
10317 if ${ac_cv_type_long_long_int+:} false; then :
10318 $as_echo_n "(cached) " >&6
10319 else
10320 ac_cv_type_long_long_int=yes
10321 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
10322 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
10323 if test $ac_cv_type_long_long_int = yes; then
10324 if test "$cross_compiling" = yes; then :
10325 :
10326 else
10327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10328 /* end confdefs.h. */
10329 #include <limits.h>
10330 #ifndef LLONG_MAX
10331 # define HALF \
10332 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
10333 # define LLONG_MAX (HALF - 1 + HALF)
10334 #endif
10335 int
10336 main ()
10337 {
10338 long long int n = 1;
10339 int i;
10340 for (i = 0; ; i++)
10341 {
10342 long long int m = n << i;
10343 if (m >> i != n)
10344 return 1;
10345 if (LLONG_MAX / 2 < m)
10346 break;
10347 }
10348 return 0;
10349 ;
10350 return 0;
10351 }
10352 _ACEOF
10353 if ac_fn_c_try_run "$LINENO"; then :
10354
10355 else
10356 ac_cv_type_long_long_int=no
10357 fi
10358 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10359 conftest.$ac_objext conftest.beam conftest.$ac_ext
10360 fi
10361
10362 fi
10363 fi
10364 fi
10365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
10366 $as_echo "$ac_cv_type_long_long_int" >&6; }
10367 if test $ac_cv_type_long_long_int = yes; then
10368
10369 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
10370
10371 fi
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384 gl_cv_c_multiarch=no
10385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10386 /* end confdefs.h. */
10387 #ifndef __APPLE_CC__
10388 not a universal capable compiler
10389 #endif
10390 typedef int dummy;
10391
10392 _ACEOF
10393 if ac_fn_c_try_compile "$LINENO"; then :
10394
10395 arch=
10396 prev=
10397 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
10398 if test -n "$prev"; then
10399 case $word in
10400 i?86 | x86_64 | ppc | ppc64)
10401 if test -z "$arch" || test "$arch" = "$word"; then
10402 arch="$word"
10403 else
10404 gl_cv_c_multiarch=yes
10405 fi
10406 ;;
10407 esac
10408 prev=
10409 else
10410 if test "x$word" = "x-arch"; then
10411 prev=arch
10412 fi
10413 fi
10414 done
10415
10416 fi
10417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10418 if test $gl_cv_c_multiarch = yes; then
10419 APPLE_UNIVERSAL_BUILD=1
10420 else
10421 APPLE_UNIVERSAL_BUILD=0
10422 fi
10423
10424
10425
10426
10427
10428
10429
10430 if test $ac_cv_type_long_long_int = yes; then
10431 HAVE_LONG_LONG_INT=1
10432 else
10433 HAVE_LONG_LONG_INT=0
10434 fi
10435
10436
10437 if test $ac_cv_type_unsigned_long_long_int = yes; then
10438 HAVE_UNSIGNED_LONG_LONG_INT=1
10439 else
10440 HAVE_UNSIGNED_LONG_LONG_INT=0
10441 fi
10442
10443
10444
10445 :
10446
10447
10448
10449
10450
10451 if test $ac_cv_header_wchar_h = yes; then
10452 HAVE_WCHAR_H=1
10453 else
10454 HAVE_WCHAR_H=0
10455 fi
10456
10457
10458 if test $ac_cv_header_inttypes_h = yes; then
10459 HAVE_INTTYPES_H=1
10460 else
10461 HAVE_INTTYPES_H=0
10462 fi
10463
10464
10465 if test $ac_cv_header_sys_types_h = yes; then
10466 HAVE_SYS_TYPES_H=1
10467 else
10468 HAVE_SYS_TYPES_H=0
10469 fi
10470
10471
10472
10473
10474
10475
10476
10477
10478 :
10479
10480
10481
10482
10483
10484
10485
10486
10487 if test $gl_cv_have_include_next = yes; then
10488 gl_cv_next_stdint_h='<'stdint.h'>'
10489 else
10490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
10491 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
10492 if ${gl_cv_next_stdint_h+:} false; then :
10493 $as_echo_n "(cached) " >&6
10494 else
10495
10496 if test $ac_cv_header_stdint_h = yes; then
10497
10498
10499
10500
10501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10502 /* end confdefs.h. */
10503 #include <stdint.h>
10504 _ACEOF
10505 case "$host_os" in
10506 aix*) gl_absname_cpp="$ac_cpp -C" ;;
10507 *) gl_absname_cpp="$ac_cpp" ;;
10508 esac
10509
10510 case "$host_os" in
10511 mingw*)
10512 gl_dirsep_regex='[/\\]'
10513 ;;
10514 *)
10515 gl_dirsep_regex='\/'
10516 ;;
10517 esac
10518 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
10519 gl_header_literal_regex=`echo 'stdint.h' \
10520 | sed -e "$gl_make_literal_regex_sed"`
10521 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10522 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10523 s|^/[^/]|//&|
10524 p
10525 q
10526 }'
10527
10528 gl_cv_absolute_stdint_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10529 sed -n "$gl_absolute_header_sed"`
10530
10531 gl_header=$gl_cv_absolute_stdint_h
10532 gl_cv_next_stdint_h='"'$gl_header'"'
10533 else
10534 gl_cv_next_stdint_h='<'stdint.h'>'
10535 fi
10536
10537
10538 fi
10539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
10540 $as_echo "$gl_cv_next_stdint_h" >&6; }
10541 fi
10542 NEXT_STDINT_H=$gl_cv_next_stdint_h
10543
10544 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
10545 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10546 gl_next_as_first_directive='<'stdint.h'>'
10547 else
10548 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10549 gl_next_as_first_directive=$gl_cv_next_stdint_h
10550 fi
10551 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
10552
10553
10554
10555
10556 if test $ac_cv_header_stdint_h = yes; then
10557 HAVE_STDINT_H=1
10558 else
10559 HAVE_STDINT_H=0
10560 fi
10561
10562
10563 if test $ac_cv_header_stdint_h = yes; then
10564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
10565 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
10566 if ${gl_cv_header_working_stdint_h+:} false; then :
10567 $as_echo_n "(cached) " >&6
10568 else
10569 gl_cv_header_working_stdint_h=no
10570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10571 /* end confdefs.h. */
10572
10573
10574 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
10575 #define __STDC_CONSTANT_MACROS 1
10576 #define __STDC_LIMIT_MACROS 1
10577 #include <stdint.h>
10578 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
10579 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
10580 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
10581 #endif
10582
10583
10584 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10585 included before <wchar.h>. */
10586 #include <stddef.h>
10587 #include <signal.h>
10588 #if HAVE_WCHAR_H
10589 # include <stdio.h>
10590 # include <time.h>
10591 # include <wchar.h>
10592 #endif
10593
10594
10595 #ifdef INT8_MAX
10596 int8_t a1 = INT8_MAX;
10597 int8_t a1min = INT8_MIN;
10598 #endif
10599 #ifdef INT16_MAX
10600 int16_t a2 = INT16_MAX;
10601 int16_t a2min = INT16_MIN;
10602 #endif
10603 #ifdef INT32_MAX
10604 int32_t a3 = INT32_MAX;
10605 int32_t a3min = INT32_MIN;
10606 #endif
10607 #ifdef INT64_MAX
10608 int64_t a4 = INT64_MAX;
10609 int64_t a4min = INT64_MIN;
10610 #endif
10611 #ifdef UINT8_MAX
10612 uint8_t b1 = UINT8_MAX;
10613 #else
10614 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
10615 #endif
10616 #ifdef UINT16_MAX
10617 uint16_t b2 = UINT16_MAX;
10618 #endif
10619 #ifdef UINT32_MAX
10620 uint32_t b3 = UINT32_MAX;
10621 #endif
10622 #ifdef UINT64_MAX
10623 uint64_t b4 = UINT64_MAX;
10624 #endif
10625 int_least8_t c1 = INT8_C (0x7f);
10626 int_least8_t c1max = INT_LEAST8_MAX;
10627 int_least8_t c1min = INT_LEAST8_MIN;
10628 int_least16_t c2 = INT16_C (0x7fff);
10629 int_least16_t c2max = INT_LEAST16_MAX;
10630 int_least16_t c2min = INT_LEAST16_MIN;
10631 int_least32_t c3 = INT32_C (0x7fffffff);
10632 int_least32_t c3max = INT_LEAST32_MAX;
10633 int_least32_t c3min = INT_LEAST32_MIN;
10634 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
10635 int_least64_t c4max = INT_LEAST64_MAX;
10636 int_least64_t c4min = INT_LEAST64_MIN;
10637 uint_least8_t d1 = UINT8_C (0xff);
10638 uint_least8_t d1max = UINT_LEAST8_MAX;
10639 uint_least16_t d2 = UINT16_C (0xffff);
10640 uint_least16_t d2max = UINT_LEAST16_MAX;
10641 uint_least32_t d3 = UINT32_C (0xffffffff);
10642 uint_least32_t d3max = UINT_LEAST32_MAX;
10643 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
10644 uint_least64_t d4max = UINT_LEAST64_MAX;
10645 int_fast8_t e1 = INT_FAST8_MAX;
10646 int_fast8_t e1min = INT_FAST8_MIN;
10647 int_fast16_t e2 = INT_FAST16_MAX;
10648 int_fast16_t e2min = INT_FAST16_MIN;
10649 int_fast32_t e3 = INT_FAST32_MAX;
10650 int_fast32_t e3min = INT_FAST32_MIN;
10651 int_fast64_t e4 = INT_FAST64_MAX;
10652 int_fast64_t e4min = INT_FAST64_MIN;
10653 uint_fast8_t f1 = UINT_FAST8_MAX;
10654 uint_fast16_t f2 = UINT_FAST16_MAX;
10655 uint_fast32_t f3 = UINT_FAST32_MAX;
10656 uint_fast64_t f4 = UINT_FAST64_MAX;
10657 #ifdef INTPTR_MAX
10658 intptr_t g = INTPTR_MAX;
10659 intptr_t gmin = INTPTR_MIN;
10660 #endif
10661 #ifdef UINTPTR_MAX
10662 uintptr_t h = UINTPTR_MAX;
10663 #endif
10664 intmax_t i = INTMAX_MAX;
10665 uintmax_t j = UINTMAX_MAX;
10666
10667 /* Check that SIZE_MAX has the correct type, if possible. */
10668 #if 201112 <= __STDC_VERSION__
10669 int k = _Generic (SIZE_MAX, size_t: 0);
10670 #elif (2 <= __GNUC__ || defined __IBM__TYPEOF__ \
10671 || (0x5110 <= __SUNPRO_C && !__STDC__))
10672 extern size_t k;
10673 extern __typeof__ (SIZE_MAX) k;
10674 #endif
10675
10676 #include <limits.h> /* for CHAR_BIT */
10677 #define TYPE_MINIMUM(t) \
10678 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
10679 #define TYPE_MAXIMUM(t) \
10680 ((t) ((t) 0 < (t) -1 \
10681 ? (t) -1 \
10682 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
10683 struct s {
10684 int check_PTRDIFF:
10685 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
10686 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
10687 ? 1 : -1;
10688 /* Detect bug in FreeBSD 6.0 / ia64. */
10689 int check_SIG_ATOMIC:
10690 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
10691 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
10692 ? 1 : -1;
10693 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
10694 int check_WCHAR:
10695 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
10696 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
10697 ? 1 : -1;
10698 /* Detect bug in mingw. */
10699 int check_WINT:
10700 WINT_MIN == TYPE_MINIMUM (wint_t)
10701 && WINT_MAX == TYPE_MAXIMUM (wint_t)
10702 ? 1 : -1;
10703
10704 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
10705 int check_UINT8_C:
10706 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
10707 int check_UINT16_C:
10708 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
10709
10710 /* Detect bugs in OpenBSD 3.9 stdint.h. */
10711 #ifdef UINT8_MAX
10712 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
10713 #endif
10714 #ifdef UINT16_MAX
10715 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
10716 #endif
10717 #ifdef UINT32_MAX
10718 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
10719 #endif
10720 #ifdef UINT64_MAX
10721 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
10722 #endif
10723 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
10724 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
10725 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
10726 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
10727 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
10728 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
10729 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
10730 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
10731 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
10732 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
10733 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
10734 };
10735
10736 int
10737 main ()
10738 {
10739
10740 ;
10741 return 0;
10742 }
10743 _ACEOF
10744 if ac_fn_c_try_compile "$LINENO"; then :
10745 if test "$cross_compiling" = yes; then :
10746 gl_cv_header_working_stdint_h=yes
10747
10748 else
10749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10750 /* end confdefs.h. */
10751
10752
10753 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
10754 #define __STDC_CONSTANT_MACROS 1
10755 #define __STDC_LIMIT_MACROS 1
10756 #include <stdint.h>
10757
10758
10759 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10760 included before <wchar.h>. */
10761 #include <stddef.h>
10762 #include <signal.h>
10763 #if HAVE_WCHAR_H
10764 # include <stdio.h>
10765 # include <time.h>
10766 # include <wchar.h>
10767 #endif
10768
10769
10770 #include <stdio.h>
10771 #include <string.h>
10772 #define MVAL(macro) MVAL1(macro)
10773 #define MVAL1(expression) #expression
10774 static const char *macro_values[] =
10775 {
10776 #ifdef INT8_MAX
10777 MVAL (INT8_MAX),
10778 #endif
10779 #ifdef INT16_MAX
10780 MVAL (INT16_MAX),
10781 #endif
10782 #ifdef INT32_MAX
10783 MVAL (INT32_MAX),
10784 #endif
10785 #ifdef INT64_MAX
10786 MVAL (INT64_MAX),
10787 #endif
10788 #ifdef UINT8_MAX
10789 MVAL (UINT8_MAX),
10790 #endif
10791 #ifdef UINT16_MAX
10792 MVAL (UINT16_MAX),
10793 #endif
10794 #ifdef UINT32_MAX
10795 MVAL (UINT32_MAX),
10796 #endif
10797 #ifdef UINT64_MAX
10798 MVAL (UINT64_MAX),
10799 #endif
10800 NULL
10801 };
10802
10803 int
10804 main ()
10805 {
10806
10807 const char **mv;
10808 for (mv = macro_values; *mv != NULL; mv++)
10809 {
10810 const char *value = *mv;
10811 /* Test whether it looks like a cast expression. */
10812 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
10813 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
10814 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
10815 || strncmp (value, "((int)"/*)*/, 6) == 0
10816 || strncmp (value, "((signed short)"/*)*/, 15) == 0
10817 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
10818 return mv - macro_values + 1;
10819 }
10820 return 0;
10821
10822 ;
10823 return 0;
10824 }
10825 _ACEOF
10826 if ac_fn_c_try_run "$LINENO"; then :
10827 gl_cv_header_working_stdint_h=yes
10828 fi
10829 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10830 conftest.$ac_objext conftest.beam conftest.$ac_ext
10831 fi
10832
10833
10834 fi
10835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10836
10837 fi
10838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
10839 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
10840 fi
10841
10842 HAVE_C99_STDINT_H=0
10843 HAVE_SYS_BITYPES_H=0
10844 HAVE_SYS_INTTYPES_H=0
10845 STDINT_H=stdint.h
10846 if test "$gl_cv_header_working_stdint_h" = yes; then
10847 HAVE_C99_STDINT_H=1
10848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h predates C++11" >&5
10849 $as_echo_n "checking whether stdint.h predates C++11... " >&6; }
10850 if ${gl_cv_header_stdint_predates_cxx11_h+:} false; then :
10851 $as_echo_n "(cached) " >&6
10852 else
10853 gl_cv_header_stdint_predates_cxx11_h=yes
10854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10855 /* end confdefs.h. */
10856
10857
10858 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
10859 #include <stdint.h>
10860
10861
10862 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10863 included before <wchar.h>. */
10864 #include <stddef.h>
10865 #include <signal.h>
10866 #if HAVE_WCHAR_H
10867 # include <stdio.h>
10868 # include <time.h>
10869 # include <wchar.h>
10870 #endif
10871
10872
10873 intmax_t im = INTMAX_MAX;
10874 int32_t i32 = INT32_C (0x7fffffff);
10875
10876 int
10877 main ()
10878 {
10879
10880 ;
10881 return 0;
10882 }
10883 _ACEOF
10884 if ac_fn_c_try_compile "$LINENO"; then :
10885 gl_cv_header_stdint_predates_cxx11_h=no
10886 fi
10887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10888 fi
10889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_predates_cxx11_h" >&5
10890 $as_echo "$gl_cv_header_stdint_predates_cxx11_h" >&6; }
10891
10892 if test "$gl_cv_header_stdint_predates_cxx11_h" = yes; then
10893
10894 $as_echo "#define __STDC_CONSTANT_MACROS 1" >>confdefs.h
10895
10896
10897 $as_echo "#define __STDC_LIMIT_MACROS 1" >>confdefs.h
10898
10899 fi
10900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h has UINTMAX_WIDTH etc." >&5
10901 $as_echo_n "checking whether stdint.h has UINTMAX_WIDTH etc.... " >&6; }
10902 if ${gl_cv_header_stdint_width+:} false; then :
10903 $as_echo_n "(cached) " >&6
10904 else
10905 gl_cv_header_stdint_width=no
10906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10907 /* end confdefs.h. */
10908
10909 /* Work if build is not clean. */
10910 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1
10911 #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
10912 #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
10913 #endif
10914 #include <stdint.h>
10915
10916 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10917 included before <wchar.h>. */
10918 #include <stddef.h>
10919 #include <signal.h>
10920 #if HAVE_WCHAR_H
10921 # include <stdio.h>
10922 # include <time.h>
10923 # include <wchar.h>
10924 #endif
10925
10926 int iw = UINTMAX_WIDTH;
10927
10928 int
10929 main ()
10930 {
10931
10932 ;
10933 return 0;
10934 }
10935 _ACEOF
10936 if ac_fn_c_try_compile "$LINENO"; then :
10937 gl_cv_header_stdint_width=yes
10938 fi
10939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10940 fi
10941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_width" >&5
10942 $as_echo "$gl_cv_header_stdint_width" >&6; }
10943 if test "$gl_cv_header_stdint_width" = yes; then
10944 STDINT_H=
10945 fi
10946 else
10947 for ac_header in sys/inttypes.h sys/bitypes.h
10948 do :
10949 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10950 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10951 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10952 cat >>confdefs.h <<_ACEOF
10953 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10954 _ACEOF
10955
10956 fi
10957
10958 done
10959
10960 if test $ac_cv_header_sys_inttypes_h = yes; then
10961 HAVE_SYS_INTTYPES_H=1
10962 fi
10963 if test $ac_cv_header_sys_bitypes_h = yes; then
10964 HAVE_SYS_BITYPES_H=1
10965 fi
10966
10967
10968 if test $APPLE_UNIVERSAL_BUILD = 0; then
10969
10970
10971 for gltype in ptrdiff_t size_t ; do
10972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
10973 $as_echo_n "checking for bit size of $gltype... " >&6; }
10974 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
10975 $as_echo_n "(cached) " >&6
10976 else
10977 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
10978 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10979 included before <wchar.h>. */
10980 #include <stddef.h>
10981 #include <signal.h>
10982 #if HAVE_WCHAR_H
10983 # include <stdio.h>
10984 # include <time.h>
10985 # include <wchar.h>
10986 #endif
10987
10988 #include <limits.h>"; then :
10989
10990 else
10991 result=unknown
10992 fi
10993
10994 eval gl_cv_bitsizeof_${gltype}=\$result
10995
10996 fi
10997 eval ac_res=\$gl_cv_bitsizeof_${gltype}
10998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10999 $as_echo "$ac_res" >&6; }
11000 eval result=\$gl_cv_bitsizeof_${gltype}
11001 if test $result = unknown; then
11002 result=0
11003 fi
11004 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
11005 cat >>confdefs.h <<_ACEOF
11006 #define BITSIZEOF_${GLTYPE} $result
11007 _ACEOF
11008
11009 eval BITSIZEOF_${GLTYPE}=\$result
11010 done
11011
11012
11013 fi
11014
11015
11016 for gltype in sig_atomic_t wchar_t wint_t ; do
11017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
11018 $as_echo_n "checking for bit size of $gltype... " >&6; }
11019 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
11020 $as_echo_n "(cached) " >&6
11021 else
11022 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
11023 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11024 included before <wchar.h>. */
11025 #include <stddef.h>
11026 #include <signal.h>
11027 #if HAVE_WCHAR_H
11028 # include <stdio.h>
11029 # include <time.h>
11030 # include <wchar.h>
11031 #endif
11032
11033 #include <limits.h>"; then :
11034
11035 else
11036 result=unknown
11037 fi
11038
11039 eval gl_cv_bitsizeof_${gltype}=\$result
11040
11041 fi
11042 eval ac_res=\$gl_cv_bitsizeof_${gltype}
11043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11044 $as_echo "$ac_res" >&6; }
11045 eval result=\$gl_cv_bitsizeof_${gltype}
11046 if test $result = unknown; then
11047 result=0
11048 fi
11049 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
11050 cat >>confdefs.h <<_ACEOF
11051 #define BITSIZEOF_${GLTYPE} $result
11052 _ACEOF
11053
11054 eval BITSIZEOF_${GLTYPE}=\$result
11055 done
11056
11057
11058
11059
11060 for gltype in sig_atomic_t wchar_t wint_t ; do
11061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
11062 $as_echo_n "checking whether $gltype is signed... " >&6; }
11063 if eval \${gl_cv_type_${gltype}_signed+:} false; then :
11064 $as_echo_n "(cached) " >&6
11065 else
11066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11067 /* end confdefs.h. */
11068
11069 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11070 included before <wchar.h>. */
11071 #include <stddef.h>
11072 #include <signal.h>
11073 #if HAVE_WCHAR_H
11074 # include <stdio.h>
11075 # include <time.h>
11076 # include <wchar.h>
11077 #endif
11078
11079 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
11080 int
11081 main ()
11082 {
11083
11084 ;
11085 return 0;
11086 }
11087 _ACEOF
11088 if ac_fn_c_try_compile "$LINENO"; then :
11089 result=yes
11090 else
11091 result=no
11092 fi
11093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11094 eval gl_cv_type_${gltype}_signed=\$result
11095
11096 fi
11097 eval ac_res=\$gl_cv_type_${gltype}_signed
11098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11099 $as_echo "$ac_res" >&6; }
11100 eval result=\$gl_cv_type_${gltype}_signed
11101 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
11102 if test "$result" = yes; then
11103 cat >>confdefs.h <<_ACEOF
11104 #define HAVE_SIGNED_${GLTYPE} 1
11105 _ACEOF
11106
11107 eval HAVE_SIGNED_${GLTYPE}=1
11108 else
11109 eval HAVE_SIGNED_${GLTYPE}=0
11110 fi
11111 done
11112
11113
11114 gl_cv_type_ptrdiff_t_signed=yes
11115 gl_cv_type_size_t_signed=no
11116 if test $APPLE_UNIVERSAL_BUILD = 0; then
11117
11118
11119 for gltype in ptrdiff_t size_t ; do
11120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
11121 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
11122 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
11123 $as_echo_n "(cached) " >&6
11124 else
11125 eval gl_cv_type_${gltype}_suffix=no
11126 eval result=\$gl_cv_type_${gltype}_signed
11127 if test "$result" = yes; then
11128 glsufu=
11129 else
11130 glsufu=u
11131 fi
11132 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
11133 case $glsuf in
11134 '') gltype1='int';;
11135 l) gltype1='long int';;
11136 ll) gltype1='long long int';;
11137 i64) gltype1='__int64';;
11138 u) gltype1='unsigned int';;
11139 ul) gltype1='unsigned long int';;
11140 ull) gltype1='unsigned long long int';;
11141 ui64)gltype1='unsigned __int64';;
11142 esac
11143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11144 /* end confdefs.h. */
11145
11146 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11147 included before <wchar.h>. */
11148 #include <stddef.h>
11149 #include <signal.h>
11150 #if HAVE_WCHAR_H
11151 # include <stdio.h>
11152 # include <time.h>
11153 # include <wchar.h>
11154 #endif
11155
11156 extern $gltype foo;
11157 extern $gltype1 foo;
11158 int
11159 main ()
11160 {
11161
11162 ;
11163 return 0;
11164 }
11165 _ACEOF
11166 if ac_fn_c_try_compile "$LINENO"; then :
11167 eval gl_cv_type_${gltype}_suffix=\$glsuf
11168 fi
11169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11170 eval result=\$gl_cv_type_${gltype}_suffix
11171 test "$result" != no && break
11172 done
11173 fi
11174 eval ac_res=\$gl_cv_type_${gltype}_suffix
11175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11176 $as_echo "$ac_res" >&6; }
11177 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
11178 eval result=\$gl_cv_type_${gltype}_suffix
11179 test "$result" = no && result=
11180 eval ${GLTYPE}_SUFFIX=\$result
11181 cat >>confdefs.h <<_ACEOF
11182 #define ${GLTYPE}_SUFFIX $result
11183 _ACEOF
11184
11185 done
11186
11187
11188 fi
11189
11190
11191 for gltype in sig_atomic_t wchar_t wint_t ; do
11192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
11193 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
11194 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
11195 $as_echo_n "(cached) " >&6
11196 else
11197 eval gl_cv_type_${gltype}_suffix=no
11198 eval result=\$gl_cv_type_${gltype}_signed
11199 if test "$result" = yes; then
11200 glsufu=
11201 else
11202 glsufu=u
11203 fi
11204 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
11205 case $glsuf in
11206 '') gltype1='int';;
11207 l) gltype1='long int';;
11208 ll) gltype1='long long int';;
11209 i64) gltype1='__int64';;
11210 u) gltype1='unsigned int';;
11211 ul) gltype1='unsigned long int';;
11212 ull) gltype1='unsigned long long int';;
11213 ui64)gltype1='unsigned __int64';;
11214 esac
11215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11216 /* end confdefs.h. */
11217
11218 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11219 included before <wchar.h>. */
11220 #include <stddef.h>
11221 #include <signal.h>
11222 #if HAVE_WCHAR_H
11223 # include <stdio.h>
11224 # include <time.h>
11225 # include <wchar.h>
11226 #endif
11227
11228 extern $gltype foo;
11229 extern $gltype1 foo;
11230 int
11231 main ()
11232 {
11233
11234 ;
11235 return 0;
11236 }
11237 _ACEOF
11238 if ac_fn_c_try_compile "$LINENO"; then :
11239 eval gl_cv_type_${gltype}_suffix=\$glsuf
11240 fi
11241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11242 eval result=\$gl_cv_type_${gltype}_suffix
11243 test "$result" != no && break
11244 done
11245 fi
11246 eval ac_res=\$gl_cv_type_${gltype}_suffix
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11248 $as_echo "$ac_res" >&6; }
11249 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
11250 eval result=\$gl_cv_type_${gltype}_suffix
11251 test "$result" = no && result=
11252 eval ${GLTYPE}_SUFFIX=\$result
11253 cat >>confdefs.h <<_ACEOF
11254 #define ${GLTYPE}_SUFFIX $result
11255 _ACEOF
11256
11257 done
11258
11259
11260
11261 if test $BITSIZEOF_WINT_T -lt 32; then
11262 BITSIZEOF_WINT_T=32
11263 fi
11264
11265 fi
11266
11267 # The substitute stdint.h needs the substitute limit.h's _GL_INTEGER_WIDTH.
11268 LIMITS_H=limits.h
11269 if test -n "$LIMITS_H"; then
11270 GL_GENERATE_LIMITS_H_TRUE=
11271 GL_GENERATE_LIMITS_H_FALSE='#'
11272 else
11273 GL_GENERATE_LIMITS_H_TRUE='#'
11274 GL_GENERATE_LIMITS_H_FALSE=
11275 fi
11276
11277
11278
11279
11280
11281
11282 if test -n "$STDINT_H"; then
11283 GL_GENERATE_STDINT_H_TRUE=
11284 GL_GENERATE_STDINT_H_FALSE='#'
11285 else
11286 GL_GENERATE_STDINT_H_TRUE='#'
11287 GL_GENERATE_STDINT_H_FALSE=
11288 fi
11289
11290
11291
11292
11293
11294
11295
11296
11297 GNULIB_IMAXABS=0;
11298 GNULIB_IMAXDIV=0;
11299 GNULIB_STRTOIMAX=0;
11300 GNULIB_STRTOUMAX=0;
11301 HAVE_DECL_IMAXABS=1;
11302 HAVE_DECL_IMAXDIV=1;
11303 HAVE_DECL_STRTOIMAX=1;
11304 HAVE_DECL_STRTOUMAX=1;
11305 REPLACE_STRTOIMAX=0;
11306 REPLACE_STRTOUMAX=0;
11307 INT32_MAX_LT_INTMAX_MAX=1;
11308 INT64_MAX_EQ_LONG_MAX='defined _LP64';
11309 PRI_MACROS_BROKEN=0;
11310 PRIPTR_PREFIX=__PRIPTR_PREFIX;
11311 UINT32_MAX_LT_UINTMAX_MAX=1;
11312 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
11313
11314
11315
11316
11317 :
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331 :
11332
11333
11334
11335
11336
11337
11338
11339
11340 if test $gl_cv_have_include_next = yes; then
11341 gl_cv_next_inttypes_h='<'inttypes.h'>'
11342 else
11343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
11344 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
11345 if ${gl_cv_next_inttypes_h+:} false; then :
11346 $as_echo_n "(cached) " >&6
11347 else
11348
11349 if test $ac_cv_header_inttypes_h = yes; then
11350
11351
11352
11353
11354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11355 /* end confdefs.h. */
11356 #include <inttypes.h>
11357 _ACEOF
11358 case "$host_os" in
11359 aix*) gl_absname_cpp="$ac_cpp -C" ;;
11360 *) gl_absname_cpp="$ac_cpp" ;;
11361 esac
11362
11363 case "$host_os" in
11364 mingw*)
11365 gl_dirsep_regex='[/\\]'
11366 ;;
11367 *)
11368 gl_dirsep_regex='\/'
11369 ;;
11370 esac
11371 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
11372 gl_header_literal_regex=`echo 'inttypes.h' \
11373 | sed -e "$gl_make_literal_regex_sed"`
11374 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11375 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11376 s|^/[^/]|//&|
11377 p
11378 q
11379 }'
11380
11381 gl_cv_absolute_inttypes_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11382 sed -n "$gl_absolute_header_sed"`
11383
11384 gl_header=$gl_cv_absolute_inttypes_h
11385 gl_cv_next_inttypes_h='"'$gl_header'"'
11386 else
11387 gl_cv_next_inttypes_h='<'inttypes.h'>'
11388 fi
11389
11390
11391 fi
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
11393 $as_echo "$gl_cv_next_inttypes_h" >&6; }
11394 fi
11395 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
11396
11397 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11398 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11399 gl_next_as_first_directive='<'inttypes.h'>'
11400 else
11401 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11402 gl_next_as_first_directive=$gl_cv_next_inttypes_h
11403 fi
11404 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
11405
11406
11407
11408
11409
11410
11411
11412
11413 for gl_func in imaxabs imaxdiv strtoimax strtoumax; do
11414 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
11416 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
11417 if eval \${$as_gl_Symbol+:} false; then :
11418 $as_echo_n "(cached) " >&6
11419 else
11420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11421 /* end confdefs.h. */
11422 #include <inttypes.h>
11423
11424 int
11425 main ()
11426 {
11427 #undef $gl_func
11428 (void) $gl_func;
11429 ;
11430 return 0;
11431 }
11432 _ACEOF
11433 if ac_fn_c_try_compile "$LINENO"; then :
11434 eval "$as_gl_Symbol=yes"
11435 else
11436 eval "$as_gl_Symbol=no"
11437 fi
11438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11439 fi
11440 eval ac_res=\$$as_gl_Symbol
11441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11442 $as_echo "$ac_res" >&6; }
11443 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
11444 cat >>confdefs.h <<_ACEOF
11445 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
11446 _ACEOF
11447
11448 eval ac_cv_have_decl_$gl_func=yes
11449 fi
11450 done
11451
11452
11453
11454 for ac_header in inttypes.h
11455 do :
11456 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
11457 if test "x$ac_cv_header_inttypes_h" = xyes; then :
11458 cat >>confdefs.h <<_ACEOF
11459 #define HAVE_INTTYPES_H 1
11460 _ACEOF
11461
11462 fi
11463
11464 done
11465
11466 if test $ac_cv_header_inttypes_h = yes; then
11467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
11468 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
11469 if ${gt_cv_inttypes_pri_broken+:} false; then :
11470 $as_echo_n "(cached) " >&6
11471 else
11472
11473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11474 /* end confdefs.h. */
11475
11476 #include <inttypes.h>
11477 #ifdef PRId32
11478 char *p = PRId32;
11479 #endif
11480
11481 int
11482 main ()
11483 {
11484
11485 ;
11486 return 0;
11487 }
11488 _ACEOF
11489 if ac_fn_c_try_compile "$LINENO"; then :
11490 gt_cv_inttypes_pri_broken=no
11491 else
11492 gt_cv_inttypes_pri_broken=yes
11493 fi
11494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11495
11496 fi
11497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
11498 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
11499 fi
11500 if test "$gt_cv_inttypes_pri_broken" = yes; then
11501
11502 cat >>confdefs.h <<_ACEOF
11503 #define PRI_MACROS_BROKEN 1
11504 _ACEOF
11505
11506 PRI_MACROS_BROKEN=1
11507 else
11508 PRI_MACROS_BROKEN=0
11509 fi
11510
11511
11512
11513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
11514 $as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
11515 if ${gl_cv_cc_double_expbit0+:} false; then :
11516 $as_echo_n "(cached) " >&6
11517 else
11518
11519 if test "$cross_compiling" = yes; then :
11520
11521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11522 /* end confdefs.h. */
11523
11524 #if defined arm || defined __arm || defined __arm__
11525 mixed_endianness
11526 #endif
11527
11528 _ACEOF
11529 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11530 $EGREP "mixed_endianness" >/dev/null 2>&1; then :
11531 gl_cv_cc_double_expbit0="unknown"
11532 else
11533
11534 :
11535 if ${ac_cv_c_bigendian+:} false; then :
11536 $as_echo_n "(cached) " >&6
11537 else
11538 ac_cv_c_bigendian=unknown
11539 # See if we're dealing with a universal compiler.
11540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11541 /* end confdefs.h. */
11542 #ifndef __APPLE_CC__
11543 not a universal capable compiler
11544 #endif
11545 typedef int dummy;
11546
11547 _ACEOF
11548 if ac_fn_c_try_compile "$LINENO"; then :
11549
11550 # Check for potential -arch flags. It is not universal unless
11551 # there are at least two -arch flags with different values.
11552 ac_arch=
11553 ac_prev=
11554 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
11555 if test -n "$ac_prev"; then
11556 case $ac_word in
11557 i?86 | x86_64 | ppc | ppc64)
11558 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
11559 ac_arch=$ac_word
11560 else
11561 ac_cv_c_bigendian=universal
11562 break
11563 fi
11564 ;;
11565 esac
11566 ac_prev=
11567 elif test "x$ac_word" = "x-arch"; then
11568 ac_prev=arch
11569 fi
11570 done
11571 fi
11572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11573 if test $ac_cv_c_bigendian = unknown; then
11574 # See if sys/param.h defines the BYTE_ORDER macro.
11575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11576 /* end confdefs.h. */
11577 #include <sys/types.h>
11578 #include <sys/param.h>
11579
11580 int
11581 main ()
11582 {
11583 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
11584 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
11585 && LITTLE_ENDIAN)
11586 bogus endian macros
11587 #endif
11588
11589 ;
11590 return 0;
11591 }
11592 _ACEOF
11593 if ac_fn_c_try_compile "$LINENO"; then :
11594 # It does; now see whether it defined to BIG_ENDIAN or not.
11595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11596 /* end confdefs.h. */
11597 #include <sys/types.h>
11598 #include <sys/param.h>
11599
11600 int
11601 main ()
11602 {
11603 #if BYTE_ORDER != BIG_ENDIAN
11604 not big endian
11605 #endif
11606
11607 ;
11608 return 0;
11609 }
11610 _ACEOF
11611 if ac_fn_c_try_compile "$LINENO"; then :
11612 ac_cv_c_bigendian=yes
11613 else
11614 ac_cv_c_bigendian=no
11615 fi
11616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11617 fi
11618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11619 fi
11620 if test $ac_cv_c_bigendian = unknown; then
11621 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
11622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11623 /* end confdefs.h. */
11624 #include <limits.h>
11625
11626 int
11627 main ()
11628 {
11629 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
11630 bogus endian macros
11631 #endif
11632
11633 ;
11634 return 0;
11635 }
11636 _ACEOF
11637 if ac_fn_c_try_compile "$LINENO"; then :
11638 # It does; now see whether it defined to _BIG_ENDIAN or not.
11639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11640 /* end confdefs.h. */
11641 #include <limits.h>
11642
11643 int
11644 main ()
11645 {
11646 #ifndef _BIG_ENDIAN
11647 not big endian
11648 #endif
11649
11650 ;
11651 return 0;
11652 }
11653 _ACEOF
11654 if ac_fn_c_try_compile "$LINENO"; then :
11655 ac_cv_c_bigendian=yes
11656 else
11657 ac_cv_c_bigendian=no
11658 fi
11659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11660 fi
11661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11662 fi
11663 if test $ac_cv_c_bigendian = unknown; then
11664 # Compile a test program.
11665 if test "$cross_compiling" = yes; then :
11666 # Try to guess by grepping values from an object file.
11667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11668 /* end confdefs.h. */
11669 short int ascii_mm[] =
11670 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
11671 short int ascii_ii[] =
11672 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
11673 int use_ascii (int i) {
11674 return ascii_mm[i] + ascii_ii[i];
11675 }
11676 short int ebcdic_ii[] =
11677 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
11678 short int ebcdic_mm[] =
11679 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
11680 int use_ebcdic (int i) {
11681 return ebcdic_mm[i] + ebcdic_ii[i];
11682 }
11683 extern int foo;
11684
11685 int
11686 main ()
11687 {
11688 return use_ascii (foo) == use_ebcdic (foo);
11689 ;
11690 return 0;
11691 }
11692 _ACEOF
11693 if ac_fn_c_try_compile "$LINENO"; then :
11694 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
11695 ac_cv_c_bigendian=yes
11696 fi
11697 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
11698 if test "$ac_cv_c_bigendian" = unknown; then
11699 ac_cv_c_bigendian=no
11700 else
11701 # finding both strings is unlikely to happen, but who knows?
11702 ac_cv_c_bigendian=unknown
11703 fi
11704 fi
11705 fi
11706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11707 else
11708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11709 /* end confdefs.h. */
11710 $ac_includes_default
11711 int
11712 main ()
11713 {
11714
11715 /* Are we little or big endian? From Harbison&Steele. */
11716 union
11717 {
11718 long int l;
11719 char c[sizeof (long int)];
11720 } u;
11721 u.l = 1;
11722 return u.c[sizeof (long int) - 1] == 1;
11723
11724 ;
11725 return 0;
11726 }
11727 _ACEOF
11728 if ac_fn_c_try_run "$LINENO"; then :
11729 ac_cv_c_bigendian=no
11730 else
11731 ac_cv_c_bigendian=yes
11732 fi
11733 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11734 conftest.$ac_objext conftest.beam conftest.$ac_ext
11735 fi
11736
11737 fi
11738 fi
11739 :
11740 case $ac_cv_c_bigendian in #(
11741 yes)
11742 gl_cv_cc_double_expbit0="word 0 bit 20";; #(
11743 no)
11744 gl_cv_cc_double_expbit0="word 1 bit 20" ;; #(
11745 universal)
11746
11747 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
11748
11749 ;; #(
11750 *)
11751 gl_cv_cc_double_expbit0="unknown" ;;
11752 esac
11753
11754
11755 fi
11756 rm -f conftest*
11757
11758
11759 else
11760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11761 /* end confdefs.h. */
11762
11763 #include <float.h>
11764 #include <stddef.h>
11765 #include <stdio.h>
11766 #include <string.h>
11767 #define NWORDS \
11768 ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
11769 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
11770 static unsigned int ored_words[NWORDS];
11771 static unsigned int anded_words[NWORDS];
11772 static void add_to_ored_words (double x)
11773 {
11774 memory_double m;
11775 size_t i;
11776 /* Clear it first, in case sizeof (double) < sizeof (memory_double). */
11777 memset (&m, 0, sizeof (memory_double));
11778 m.value = x;
11779 for (i = 0; i < NWORDS; i++)
11780 {
11781 ored_words[i] |= m.word[i];
11782 anded_words[i] &= m.word[i];
11783 }
11784 }
11785 int main ()
11786 {
11787 size_t j;
11788 FILE *fp = fopen ("conftest.out", "w");
11789 if (fp == NULL)
11790 return 1;
11791 for (j = 0; j < NWORDS; j++)
11792 anded_words[j] = ~ (unsigned int) 0;
11793 add_to_ored_words (0.25);
11794 add_to_ored_words (0.5);
11795 add_to_ored_words (1.0);
11796 add_to_ored_words (2.0);
11797 add_to_ored_words (4.0);
11798 /* Remove bits that are common (e.g. if representation of the first mantissa
11799 bit is explicit). */
11800 for (j = 0; j < NWORDS; j++)
11801 ored_words[j] &= ~anded_words[j];
11802 /* Now find the nonzero word. */
11803 for (j = 0; j < NWORDS; j++)
11804 if (ored_words[j] != 0)
11805 break;
11806 if (j < NWORDS)
11807 {
11808 size_t i;
11809 for (i = j + 1; i < NWORDS; i++)
11810 if (ored_words[i] != 0)
11811 {
11812 fprintf (fp, "unknown");
11813 return (fclose (fp) != 0);
11814 }
11815 for (i = 0; ; i++)
11816 if ((ored_words[j] >> i) & 1)
11817 {
11818 fprintf (fp, "word %d bit %d", (int) j, (int) i);
11819 return (fclose (fp) != 0);
11820 }
11821 }
11822 fprintf (fp, "unknown");
11823 return (fclose (fp) != 0);
11824 }
11825
11826 _ACEOF
11827 if ac_fn_c_try_run "$LINENO"; then :
11828 gl_cv_cc_double_expbit0=`cat conftest.out`
11829 else
11830 gl_cv_cc_double_expbit0="unknown"
11831 fi
11832 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11833 conftest.$ac_objext conftest.beam conftest.$ac_ext
11834 fi
11835
11836 rm -f conftest.out
11837
11838 fi
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
11840 $as_echo "$gl_cv_cc_double_expbit0" >&6; }
11841 case "$gl_cv_cc_double_expbit0" in
11842 word*bit*)
11843 word=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
11844 bit=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
11845
11846 cat >>confdefs.h <<_ACEOF
11847 #define DBL_EXPBIT0_WORD $word
11848 _ACEOF
11849
11850
11851 cat >>confdefs.h <<_ACEOF
11852 #define DBL_EXPBIT0_BIT $bit
11853 _ACEOF
11854
11855 ;;
11856 esac
11857
11858
11859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
11860 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
11861 if ${ac_cv_c_bigendian+:} false; then :
11862 $as_echo_n "(cached) " >&6
11863 else
11864 ac_cv_c_bigendian=unknown
11865 # See if we're dealing with a universal compiler.
11866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11867 /* end confdefs.h. */
11868 #ifndef __APPLE_CC__
11869 not a universal capable compiler
11870 #endif
11871 typedef int dummy;
11872
11873 _ACEOF
11874 if ac_fn_c_try_compile "$LINENO"; then :
11875
11876 # Check for potential -arch flags. It is not universal unless
11877 # there are at least two -arch flags with different values.
11878 ac_arch=
11879 ac_prev=
11880 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
11881 if test -n "$ac_prev"; then
11882 case $ac_word in
11883 i?86 | x86_64 | ppc | ppc64)
11884 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
11885 ac_arch=$ac_word
11886 else
11887 ac_cv_c_bigendian=universal
11888 break
11889 fi
11890 ;;
11891 esac
11892 ac_prev=
11893 elif test "x$ac_word" = "x-arch"; then
11894 ac_prev=arch
11895 fi
11896 done
11897 fi
11898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11899 if test $ac_cv_c_bigendian = unknown; then
11900 # See if sys/param.h defines the BYTE_ORDER macro.
11901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11902 /* end confdefs.h. */
11903 #include <sys/types.h>
11904 #include <sys/param.h>
11905
11906 int
11907 main ()
11908 {
11909 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
11910 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
11911 && LITTLE_ENDIAN)
11912 bogus endian macros
11913 #endif
11914
11915 ;
11916 return 0;
11917 }
11918 _ACEOF
11919 if ac_fn_c_try_compile "$LINENO"; then :
11920 # It does; now see whether it defined to BIG_ENDIAN or not.
11921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11922 /* end confdefs.h. */
11923 #include <sys/types.h>
11924 #include <sys/param.h>
11925
11926 int
11927 main ()
11928 {
11929 #if BYTE_ORDER != BIG_ENDIAN
11930 not big endian
11931 #endif
11932
11933 ;
11934 return 0;
11935 }
11936 _ACEOF
11937 if ac_fn_c_try_compile "$LINENO"; then :
11938 ac_cv_c_bigendian=yes
11939 else
11940 ac_cv_c_bigendian=no
11941 fi
11942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11943 fi
11944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11945 fi
11946 if test $ac_cv_c_bigendian = unknown; then
11947 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
11948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11949 /* end confdefs.h. */
11950 #include <limits.h>
11951
11952 int
11953 main ()
11954 {
11955 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
11956 bogus endian macros
11957 #endif
11958
11959 ;
11960 return 0;
11961 }
11962 _ACEOF
11963 if ac_fn_c_try_compile "$LINENO"; then :
11964 # It does; now see whether it defined to _BIG_ENDIAN or not.
11965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11966 /* end confdefs.h. */
11967 #include <limits.h>
11968
11969 int
11970 main ()
11971 {
11972 #ifndef _BIG_ENDIAN
11973 not big endian
11974 #endif
11975
11976 ;
11977 return 0;
11978 }
11979 _ACEOF
11980 if ac_fn_c_try_compile "$LINENO"; then :
11981 ac_cv_c_bigendian=yes
11982 else
11983 ac_cv_c_bigendian=no
11984 fi
11985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11986 fi
11987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11988 fi
11989 if test $ac_cv_c_bigendian = unknown; then
11990 # Compile a test program.
11991 if test "$cross_compiling" = yes; then :
11992 # Try to guess by grepping values from an object file.
11993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11994 /* end confdefs.h. */
11995 short int ascii_mm[] =
11996 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
11997 short int ascii_ii[] =
11998 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
11999 int use_ascii (int i) {
12000 return ascii_mm[i] + ascii_ii[i];
12001 }
12002 short int ebcdic_ii[] =
12003 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12004 short int ebcdic_mm[] =
12005 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12006 int use_ebcdic (int i) {
12007 return ebcdic_mm[i] + ebcdic_ii[i];
12008 }
12009 extern int foo;
12010
12011 int
12012 main ()
12013 {
12014 return use_ascii (foo) == use_ebcdic (foo);
12015 ;
12016 return 0;
12017 }
12018 _ACEOF
12019 if ac_fn_c_try_compile "$LINENO"; then :
12020 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12021 ac_cv_c_bigendian=yes
12022 fi
12023 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12024 if test "$ac_cv_c_bigendian" = unknown; then
12025 ac_cv_c_bigendian=no
12026 else
12027 # finding both strings is unlikely to happen, but who knows?
12028 ac_cv_c_bigendian=unknown
12029 fi
12030 fi
12031 fi
12032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12033 else
12034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12035 /* end confdefs.h. */
12036 $ac_includes_default
12037 int
12038 main ()
12039 {
12040
12041 /* Are we little or big endian? From Harbison&Steele. */
12042 union
12043 {
12044 long int l;
12045 char c[sizeof (long int)];
12046 } u;
12047 u.l = 1;
12048 return u.c[sizeof (long int) - 1] == 1;
12049
12050 ;
12051 return 0;
12052 }
12053 _ACEOF
12054 if ac_fn_c_try_run "$LINENO"; then :
12055 ac_cv_c_bigendian=no
12056 else
12057 ac_cv_c_bigendian=yes
12058 fi
12059 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12060 conftest.$ac_objext conftest.beam conftest.$ac_ext
12061 fi
12062
12063 fi
12064 fi
12065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12066 $as_echo "$ac_cv_c_bigendian" >&6; }
12067 case $ac_cv_c_bigendian in #(
12068 yes)
12069 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12070 ;; #(
12071 no)
12072 ;; #(
12073 universal)
12074
12075 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12076
12077 ;; #(
12078 *)
12079 as_fn_error $? "unknown endianness
12080 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12081 esac
12082
12083
12084
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
12086 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
12087 if ${am_cv_langinfo_codeset+:} false; then :
12088 $as_echo_n "(cached) " >&6
12089 else
12090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12091 /* end confdefs.h. */
12092 #include <langinfo.h>
12093 int
12094 main ()
12095 {
12096 char* cs = nl_langinfo(CODESET); return !cs;
12097 ;
12098 return 0;
12099 }
12100 _ACEOF
12101 if ac_fn_c_try_link "$LINENO"; then :
12102 am_cv_langinfo_codeset=yes
12103 else
12104 am_cv_langinfo_codeset=no
12105 fi
12106 rm -f core conftest.err conftest.$ac_objext \
12107 conftest$ac_exeext conftest.$ac_ext
12108
12109 fi
12110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
12111 $as_echo "$am_cv_langinfo_codeset" >&6; }
12112 if test $am_cv_langinfo_codeset = yes; then
12113
12114 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
12115
12116 fi
12117
12118
12119 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
12120 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
12121 ac_have_decl=1
12122 else
12123 ac_have_decl=0
12124 fi
12125
12126 cat >>confdefs.h <<_ACEOF
12127 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
12128 _ACEOF
12129
12130
12131
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
12133 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
12134 if ${ac_cv_gnu_library_2_1+:} false; then :
12135 $as_echo_n "(cached) " >&6
12136 else
12137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12138 /* end confdefs.h. */
12139
12140 #include <features.h>
12141 #ifdef __GNU_LIBRARY__
12142 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
12143 Lucky GNU user
12144 #endif
12145 #endif
12146 #ifdef __UCLIBC__
12147 Lucky user
12148 #endif
12149
12150 _ACEOF
12151 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12152 $EGREP "Lucky" >/dev/null 2>&1; then :
12153 ac_cv_gnu_library_2_1=yes
12154 else
12155 ac_cv_gnu_library_2_1=no
12156 fi
12157 rm -f conftest*
12158
12159
12160
12161 fi
12162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
12163 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
12164
12165 GLIBC21="$ac_cv_gnu_library_2_1"
12166
12167
12168
12169
12170
12171
12172
12173
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
12175 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
12176 if ${gl_cv_func_malloc_posix+:} false; then :
12177 $as_echo_n "(cached) " >&6
12178 else
12179
12180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12181 /* end confdefs.h. */
12182
12183 int
12184 main ()
12185 {
12186 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
12187 choke me
12188 #endif
12189
12190 ;
12191 return 0;
12192 }
12193 _ACEOF
12194 if ac_fn_c_try_compile "$LINENO"; then :
12195 gl_cv_func_malloc_posix=yes
12196 else
12197 gl_cv_func_malloc_posix=no
12198 fi
12199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12200
12201 fi
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
12203 $as_echo "$gl_cv_func_malloc_posix" >&6; }
12204
12205
12206
12207 for ac_header in stdlib.h
12208 do :
12209 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
12210 if test "x$ac_cv_header_stdlib_h" = xyes; then :
12211 cat >>confdefs.h <<_ACEOF
12212 #define HAVE_STDLIB_H 1
12213 _ACEOF
12214
12215 fi
12216
12217 done
12218
12219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
12220 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
12221 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
12222 $as_echo_n "(cached) " >&6
12223 else
12224 if test "$cross_compiling" = yes; then :
12225 case "$host_os" in
12226 # Guess yes on platforms where we know the result.
12227 *-gnu* | freebsd* | netbsd* | openbsd* \
12228 | hpux* | solaris* | cygwin* | mingw*)
12229 ac_cv_func_malloc_0_nonnull=yes ;;
12230 # If we don't know, assume the worst.
12231 *) ac_cv_func_malloc_0_nonnull=no ;;
12232 esac
12233
12234 else
12235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12236 /* end confdefs.h. */
12237 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
12238 # include <stdlib.h>
12239 #else
12240 char *malloc ();
12241 #endif
12242
12243 int
12244 main ()
12245 {
12246 char *p = malloc (0);
12247 int result = !p;
12248 free (p);
12249 return result;
12250 ;
12251 return 0;
12252 }
12253
12254 _ACEOF
12255 if ac_fn_c_try_run "$LINENO"; then :
12256 ac_cv_func_malloc_0_nonnull=yes
12257 else
12258 ac_cv_func_malloc_0_nonnull=no
12259 fi
12260 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12261 conftest.$ac_objext conftest.beam conftest.$ac_ext
12262 fi
12263
12264
12265 fi
12266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
12267 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
12268 if test $ac_cv_func_malloc_0_nonnull = yes; then :
12269 gl_cv_func_malloc_0_nonnull=1
12270 else
12271 gl_cv_func_malloc_0_nonnull=0
12272 fi
12273
12274
12275 cat >>confdefs.h <<_ACEOF
12276 #define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
12277 _ACEOF
12278
12279
12280
12281
12282
12283
12284
12285
12286 GNULIB_BTOWC=0;
12287 GNULIB_WCTOB=0;
12288 GNULIB_MBSINIT=0;
12289 GNULIB_MBRTOWC=0;
12290 GNULIB_MBRLEN=0;
12291 GNULIB_MBSRTOWCS=0;
12292 GNULIB_MBSNRTOWCS=0;
12293 GNULIB_WCRTOMB=0;
12294 GNULIB_WCSRTOMBS=0;
12295 GNULIB_WCSNRTOMBS=0;
12296 GNULIB_WCWIDTH=0;
12297 GNULIB_WMEMCHR=0;
12298 GNULIB_WMEMCMP=0;
12299 GNULIB_WMEMCPY=0;
12300 GNULIB_WMEMMOVE=0;
12301 GNULIB_WMEMSET=0;
12302 GNULIB_WCSLEN=0;
12303 GNULIB_WCSNLEN=0;
12304 GNULIB_WCSCPY=0;
12305 GNULIB_WCPCPY=0;
12306 GNULIB_WCSNCPY=0;
12307 GNULIB_WCPNCPY=0;
12308 GNULIB_WCSCAT=0;
12309 GNULIB_WCSNCAT=0;
12310 GNULIB_WCSCMP=0;
12311 GNULIB_WCSNCMP=0;
12312 GNULIB_WCSCASECMP=0;
12313 GNULIB_WCSNCASECMP=0;
12314 GNULIB_WCSCOLL=0;
12315 GNULIB_WCSXFRM=0;
12316 GNULIB_WCSDUP=0;
12317 GNULIB_WCSCHR=0;
12318 GNULIB_WCSRCHR=0;
12319 GNULIB_WCSCSPN=0;
12320 GNULIB_WCSSPN=0;
12321 GNULIB_WCSPBRK=0;
12322 GNULIB_WCSSTR=0;
12323 GNULIB_WCSTOK=0;
12324 GNULIB_WCSWIDTH=0;
12325 HAVE_BTOWC=1;
12326 HAVE_MBSINIT=1;
12327 HAVE_MBRTOWC=1;
12328 HAVE_MBRLEN=1;
12329 HAVE_MBSRTOWCS=1;
12330 HAVE_MBSNRTOWCS=1;
12331 HAVE_WCRTOMB=1;
12332 HAVE_WCSRTOMBS=1;
12333 HAVE_WCSNRTOMBS=1;
12334 HAVE_WMEMCHR=1;
12335 HAVE_WMEMCMP=1;
12336 HAVE_WMEMCPY=1;
12337 HAVE_WMEMMOVE=1;
12338 HAVE_WMEMSET=1;
12339 HAVE_WCSLEN=1;
12340 HAVE_WCSNLEN=1;
12341 HAVE_WCSCPY=1;
12342 HAVE_WCPCPY=1;
12343 HAVE_WCSNCPY=1;
12344 HAVE_WCPNCPY=1;
12345 HAVE_WCSCAT=1;
12346 HAVE_WCSNCAT=1;
12347 HAVE_WCSCMP=1;
12348 HAVE_WCSNCMP=1;
12349 HAVE_WCSCASECMP=1;
12350 HAVE_WCSNCASECMP=1;
12351 HAVE_WCSCOLL=1;
12352 HAVE_WCSXFRM=1;
12353 HAVE_WCSDUP=1;
12354 HAVE_WCSCHR=1;
12355 HAVE_WCSRCHR=1;
12356 HAVE_WCSCSPN=1;
12357 HAVE_WCSSPN=1;
12358 HAVE_WCSPBRK=1;
12359 HAVE_WCSSTR=1;
12360 HAVE_WCSTOK=1;
12361 HAVE_WCSWIDTH=1;
12362 HAVE_DECL_WCTOB=1;
12363 HAVE_DECL_WCWIDTH=1;
12364 REPLACE_MBSTATE_T=0;
12365 REPLACE_BTOWC=0;
12366 REPLACE_WCTOB=0;
12367 REPLACE_MBSINIT=0;
12368 REPLACE_MBRTOWC=0;
12369 REPLACE_MBRLEN=0;
12370 REPLACE_MBSRTOWCS=0;
12371 REPLACE_MBSNRTOWCS=0;
12372 REPLACE_WCRTOMB=0;
12373 REPLACE_WCSRTOMBS=0;
12374 REPLACE_WCSNRTOMBS=0;
12375 REPLACE_WCWIDTH=0;
12376 REPLACE_WCSWIDTH=0;
12377
12378
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
12392 $as_echo_n "checking for a traditional japanese locale... " >&6; }
12393 if ${gt_cv_locale_ja+:} false; then :
12394 $as_echo_n "(cached) " >&6
12395 else
12396
12397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12398 /* end confdefs.h. */
12399
12400 #include <locale.h>
12401 #include <time.h>
12402 #if HAVE_LANGINFO_CODESET
12403 # include <langinfo.h>
12404 #endif
12405 #include <stdlib.h>
12406 #include <string.h>
12407 struct tm t;
12408 char buf[16];
12409 int main ()
12410 {
12411 const char *p;
12412 /* Check whether the given locale name is recognized by the system. */
12413 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
12414 /* On native Windows, setlocale(category, "") looks at the system settings,
12415 not at the environment variables. Also, when an encoding suffix such
12416 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
12417 category of the locale to "C". */
12418 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
12419 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
12420 return 1;
12421 #else
12422 if (setlocale (LC_ALL, "") == NULL) return 1;
12423 #endif
12424 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
12425 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
12426 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
12427 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
12428 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
12429 some unit tests fail.
12430 On MirBSD 10, when an unsupported locale is specified, setlocale()
12431 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
12432 #if HAVE_LANGINFO_CODESET
12433 {
12434 const char *cs = nl_langinfo (CODESET);
12435 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
12436 || strcmp (cs, "UTF-8") == 0)
12437 return 1;
12438 }
12439 #endif
12440 #ifdef __CYGWIN__
12441 /* On Cygwin, avoid locale names without encoding suffix, because the
12442 locale_charset() function relies on the encoding suffix. Note that
12443 LC_ALL is set on the command line. */
12444 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
12445 #endif
12446 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales
12447 on Cygwin 1.5.x. */
12448 if (MB_CUR_MAX == 1)
12449 return 1;
12450 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
12451 This excludes the UTF-8 encoding (except on MirBSD). */
12452 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
12453 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
12454 for (p = buf; *p != '\0'; p++)
12455 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
12456 return 1;
12457 return 0;
12458 }
12459
12460 _ACEOF
12461 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12462 (eval $ac_link) 2>&5
12463 ac_status=$?
12464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12465 test $ac_status = 0; } && test -s conftest$ac_exeext; then
12466 case "$host_os" in
12467 # Handle native Windows specially, because there setlocale() interprets
12468 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
12469 # "fr" or "fra" as "French" or "French_France.1252",
12470 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
12471 # "ja" as "Japanese" or "Japanese_Japan.932",
12472 # and similar.
12473 mingw*)
12474 # Note that on native Windows, the Japanese locale is
12475 # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
12476 # cannot use it here.
12477 gt_cv_locale_ja=none
12478 ;;
12479 *)
12480 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
12481 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
12482 # configure script would override the LC_ALL setting. Likewise for
12483 # LC_CTYPE, which is also set at the beginning of the configure script.
12484 # Test for the AIX locale name.
12485 if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
12486 gt_cv_locale_ja=ja_JP
12487 else
12488 # Test for the locale name with explicit encoding suffix.
12489 if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
12490 gt_cv_locale_ja=ja_JP.EUC-JP
12491 else
12492 # Test for the HP-UX, OSF/1, NetBSD locale name.
12493 if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
12494 gt_cv_locale_ja=ja_JP.eucJP
12495 else
12496 # Test for the IRIX, FreeBSD locale name.
12497 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
12498 gt_cv_locale_ja=ja_JP.EUC
12499 else
12500 # Test for the Solaris 7 locale name.
12501 if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
12502 gt_cv_locale_ja=ja
12503 else
12504 # Special test for NetBSD 1.6.
12505 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
12506 gt_cv_locale_ja=ja_JP.eucJP
12507 else
12508 # None found.
12509 gt_cv_locale_ja=none
12510 fi
12511 fi
12512 fi
12513 fi
12514 fi
12515 fi
12516 ;;
12517 esac
12518 fi
12519 rm -fr conftest*
12520
12521 fi
12522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
12523 $as_echo "$gt_cv_locale_ja" >&6; }
12524 LOCALE_JA=$gt_cv_locale_ja
12525
12526
12527
12528
12529
12530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
12531 $as_echo_n "checking for a transitional chinese locale... " >&6; }
12532 if ${gt_cv_locale_zh_CN+:} false; then :
12533 $as_echo_n "(cached) " >&6
12534 else
12535
12536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12537 /* end confdefs.h. */
12538
12539 #include <locale.h>
12540 #include <stdlib.h>
12541 #include <time.h>
12542 #if HAVE_LANGINFO_CODESET
12543 # include <langinfo.h>
12544 #endif
12545 #include <stdlib.h>
12546 #include <string.h>
12547 struct tm t;
12548 char buf[16];
12549 int main ()
12550 {
12551 const char *p;
12552 /* Check whether the given locale name is recognized by the system. */
12553 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
12554 /* On native Windows, setlocale(category, "") looks at the system settings,
12555 not at the environment variables. Also, when an encoding suffix such
12556 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
12557 category of the locale to "C". */
12558 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
12559 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
12560 return 1;
12561 #else
12562 if (setlocale (LC_ALL, "") == NULL) return 1;
12563 #endif
12564 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
12565 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
12566 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
12567 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
12568 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
12569 some unit tests fail.
12570 On MirBSD 10, when an unsupported locale is specified, setlocale()
12571 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
12572 #if HAVE_LANGINFO_CODESET
12573 {
12574 const char *cs = nl_langinfo (CODESET);
12575 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
12576 || strcmp (cs, "UTF-8") == 0)
12577 return 1;
12578 }
12579 #endif
12580 #ifdef __CYGWIN__
12581 /* On Cygwin, avoid locale names without encoding suffix, because the
12582 locale_charset() function relies on the encoding suffix. Note that
12583 LC_ALL is set on the command line. */
12584 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
12585 #endif
12586 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
12587 This excludes the UTF-8 encoding (except on MirBSD). */
12588 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
12589 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
12590 for (p = buf; *p != '\0'; p++)
12591 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
12592 return 1;
12593 /* Check whether a typical GB18030 multibyte sequence is recognized as a
12594 single wide character. This excludes the GB2312 and GBK encodings. */
12595 if (mblen ("\203\062\332\066", 5) != 4)
12596 return 1;
12597 return 0;
12598 }
12599
12600 _ACEOF
12601 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12602 (eval $ac_link) 2>&5
12603 ac_status=$?
12604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12605 test $ac_status = 0; } && test -s conftest$ac_exeext; then
12606 case "$host_os" in
12607 # Handle native Windows specially, because there setlocale() interprets
12608 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
12609 # "fr" or "fra" as "French" or "French_France.1252",
12610 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
12611 # "ja" as "Japanese" or "Japanese_Japan.932",
12612 # and similar.
12613 mingw*)
12614 # Test for the hypothetical native Windows locale name.
12615 if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
12616 gt_cv_locale_zh_CN=Chinese_China.54936
12617 else
12618 # None found.
12619 gt_cv_locale_zh_CN=none
12620 fi
12621 ;;
12622 solaris2.8)
12623 # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
12624 # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
12625 # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
12626 gt_cv_locale_zh_CN=none
12627 ;;
12628 *)
12629 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
12630 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
12631 # configure script would override the LC_ALL setting. Likewise for
12632 # LC_CTYPE, which is also set at the beginning of the configure script.
12633 # Test for the locale name without encoding suffix.
12634 if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
12635 gt_cv_locale_zh_CN=zh_CN
12636 else
12637 # Test for the locale name with explicit encoding suffix.
12638 if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
12639 gt_cv_locale_zh_CN=zh_CN.GB18030
12640 else
12641 # None found.
12642 gt_cv_locale_zh_CN=none
12643 fi
12644 fi
12645 ;;
12646 esac
12647 else
12648 # If there was a link error, due to mblen(), the system is so old that
12649 # it certainly doesn't have a chinese locale.
12650 gt_cv_locale_zh_CN=none
12651 fi
12652 rm -fr conftest*
12653
12654 fi
12655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
12656 $as_echo "$gt_cv_locale_zh_CN" >&6; }
12657 LOCALE_ZH_CN=$gt_cv_locale_zh_CN
12658
12659
12660
12661
12662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
12663 $as_echo_n "checking for a french Unicode locale... " >&6; }
12664 if ${gt_cv_locale_fr_utf8+:} false; then :
12665 $as_echo_n "(cached) " >&6
12666 else
12667
12668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12669 /* end confdefs.h. */
12670
12671 #include <locale.h>
12672 #include <time.h>
12673 #if HAVE_LANGINFO_CODESET
12674 # include <langinfo.h>
12675 #endif
12676 #include <stdlib.h>
12677 #include <string.h>
12678 struct tm t;
12679 char buf[16];
12680 int main () {
12681 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
12682 imitates locale dependent behaviour by looking at the environment
12683 variables, and all locales use the UTF-8 encoding. */
12684 #if !(defined __BEOS__ || defined __HAIKU__)
12685 /* Check whether the given locale name is recognized by the system. */
12686 # if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
12687 /* On native Windows, setlocale(category, "") looks at the system settings,
12688 not at the environment variables. Also, when an encoding suffix such
12689 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
12690 category of the locale to "C". */
12691 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
12692 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
12693 return 1;
12694 # else
12695 if (setlocale (LC_ALL, "") == NULL) return 1;
12696 # endif
12697 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
12698 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
12699 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
12700 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
12701 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
12702 some unit tests fail. */
12703 # if HAVE_LANGINFO_CODESET
12704 {
12705 const char *cs = nl_langinfo (CODESET);
12706 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
12707 return 1;
12708 }
12709 # endif
12710 # ifdef __CYGWIN__
12711 /* On Cygwin, avoid locale names without encoding suffix, because the
12712 locale_charset() function relies on the encoding suffix. Note that
12713 LC_ALL is set on the command line. */
12714 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
12715 # endif
12716 /* Check whether in the abbreviation of the second month, the second
12717 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
12718 two bytes long, with UTF-8 encoding. */
12719 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
12720 if (strftime (buf, sizeof (buf), "%b", &t) < 4
12721 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
12722 return 1;
12723 #endif
12724 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
12725 /* Check whether the decimal separator is a comma.
12726 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
12727 are nl_langinfo(RADIXCHAR) are both ".". */
12728 if (localeconv () ->decimal_point[0] != ',') return 1;
12729 #endif
12730 return 0;
12731 }
12732
12733 _ACEOF
12734 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12735 (eval $ac_link) 2>&5
12736 ac_status=$?
12737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12738 test $ac_status = 0; } && test -s conftest$ac_exeext; then
12739 case "$host_os" in
12740 # Handle native Windows specially, because there setlocale() interprets
12741 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
12742 # "fr" or "fra" as "French" or "French_France.1252",
12743 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
12744 # "ja" as "Japanese" or "Japanese_Japan.932",
12745 # and similar.
12746 mingw*)
12747 # Test for the hypothetical native Windows locale name.
12748 if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
12749 gt_cv_locale_fr_utf8=French_France.65001
12750 else
12751 # None found.
12752 gt_cv_locale_fr_utf8=none
12753 fi
12754 ;;
12755 *)
12756 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
12757 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
12758 # configure script would override the LC_ALL setting. Likewise for
12759 # LC_CTYPE, which is also set at the beginning of the configure script.
12760 # Test for the usual locale name.
12761 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
12762 gt_cv_locale_fr_utf8=fr_FR
12763 else
12764 # Test for the locale name with explicit encoding suffix.
12765 if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
12766 gt_cv_locale_fr_utf8=fr_FR.UTF-8
12767 else
12768 # Test for the Solaris 7 locale name.
12769 if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
12770 gt_cv_locale_fr_utf8=fr.UTF-8
12771 else
12772 # None found.
12773 gt_cv_locale_fr_utf8=none
12774 fi
12775 fi
12776 fi
12777 ;;
12778 esac
12779 fi
12780 rm -fr conftest*
12781
12782 fi
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
12784 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
12785 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
12786
12787
12788
12789
12790
12791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
12792 $as_echo_n "checking for a traditional french locale... " >&6; }
12793 if ${gt_cv_locale_fr+:} false; then :
12794 $as_echo_n "(cached) " >&6
12795 else
12796
12797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12798 /* end confdefs.h. */
12799
12800 #include <locale.h>
12801 #include <time.h>
12802 #if HAVE_LANGINFO_CODESET
12803 # include <langinfo.h>
12804 #endif
12805 #include <stdlib.h>
12806 #include <string.h>
12807 struct tm t;
12808 char buf[16];
12809 int main () {
12810 /* Check whether the given locale name is recognized by the system. */
12811 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
12812 /* On native Windows, setlocale(category, "") looks at the system settings,
12813 not at the environment variables. Also, when an encoding suffix such
12814 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
12815 category of the locale to "C". */
12816 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
12817 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
12818 return 1;
12819 #else
12820 if (setlocale (LC_ALL, "") == NULL) return 1;
12821 #endif
12822 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
12823 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
12824 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
12825 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
12826 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
12827 some unit tests fail.
12828 On MirBSD 10, when an unsupported locale is specified, setlocale()
12829 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
12830 #if HAVE_LANGINFO_CODESET
12831 {
12832 const char *cs = nl_langinfo (CODESET);
12833 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
12834 || strcmp (cs, "UTF-8") == 0)
12835 return 1;
12836 }
12837 #endif
12838 #ifdef __CYGWIN__
12839 /* On Cygwin, avoid locale names without encoding suffix, because the
12840 locale_charset() function relies on the encoding suffix. Note that
12841 LC_ALL is set on the command line. */
12842 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
12843 #endif
12844 /* Check whether in the abbreviation of the second month, the second
12845 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
12846 one byte long. This excludes the UTF-8 encoding. */
12847 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
12848 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
12849 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
12850 /* Check whether the decimal separator is a comma.
12851 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
12852 are nl_langinfo(RADIXCHAR) are both ".". */
12853 if (localeconv () ->decimal_point[0] != ',') return 1;
12854 #endif
12855 return 0;
12856 }
12857
12858 _ACEOF
12859 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12860 (eval $ac_link) 2>&5
12861 ac_status=$?
12862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12863 test $ac_status = 0; } && test -s conftest$ac_exeext; then
12864 case "$host_os" in
12865 # Handle native Windows specially, because there setlocale() interprets
12866 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
12867 # "fr" or "fra" as "French" or "French_France.1252",
12868 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
12869 # "ja" as "Japanese" or "Japanese_Japan.932",
12870 # and similar.
12871 mingw*)
12872 # Test for the native Windows locale name.
12873 if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
12874 gt_cv_locale_fr=French_France.1252
12875 else
12876 # None found.
12877 gt_cv_locale_fr=none
12878 fi
12879 ;;
12880 *)
12881 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
12882 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
12883 # configure script would override the LC_ALL setting. Likewise for
12884 # LC_CTYPE, which is also set at the beginning of the configure script.
12885 # Test for the usual locale name.
12886 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
12887 gt_cv_locale_fr=fr_FR
12888 else
12889 # Test for the locale name with explicit encoding suffix.
12890 if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
12891 gt_cv_locale_fr=fr_FR.ISO-8859-1
12892 else
12893 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
12894 if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
12895 gt_cv_locale_fr=fr_FR.ISO8859-1
12896 else
12897 # Test for the HP-UX locale name.
12898 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
12899 gt_cv_locale_fr=fr_FR.iso88591
12900 else
12901 # Test for the Solaris 7 locale name.
12902 if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
12903 gt_cv_locale_fr=fr
12904 else
12905 # None found.
12906 gt_cv_locale_fr=none
12907 fi
12908 fi
12909 fi
12910 fi
12911 fi
12912 ;;
12913 esac
12914 fi
12915 rm -fr conftest*
12916
12917 fi
12918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
12919 $as_echo "$gt_cv_locale_fr" >&6; }
12920 LOCALE_FR=$gt_cv_locale_fr
12921
12922
12923
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934 GNULIB_FFSL=0;
12935 GNULIB_FFSLL=0;
12936 GNULIB_MEMCHR=0;
12937 GNULIB_MEMMEM=0;
12938 GNULIB_MEMPCPY=0;
12939 GNULIB_MEMRCHR=0;
12940 GNULIB_RAWMEMCHR=0;
12941 GNULIB_STPCPY=0;
12942 GNULIB_STPNCPY=0;
12943 GNULIB_STRCHRNUL=0;
12944 GNULIB_STRDUP=0;
12945 GNULIB_STRNCAT=0;
12946 GNULIB_STRNDUP=0;
12947 GNULIB_STRNLEN=0;
12948 GNULIB_STRPBRK=0;
12949 GNULIB_STRSEP=0;
12950 GNULIB_STRSTR=0;
12951 GNULIB_STRCASESTR=0;
12952 GNULIB_STRTOK_R=0;
12953 GNULIB_MBSLEN=0;
12954 GNULIB_MBSNLEN=0;
12955 GNULIB_MBSCHR=0;
12956 GNULIB_MBSRCHR=0;
12957 GNULIB_MBSSTR=0;
12958 GNULIB_MBSCASECMP=0;
12959 GNULIB_MBSNCASECMP=0;
12960 GNULIB_MBSPCASECMP=0;
12961 GNULIB_MBSCASESTR=0;
12962 GNULIB_MBSCSPN=0;
12963 GNULIB_MBSPBRK=0;
12964 GNULIB_MBSSPN=0;
12965 GNULIB_MBSSEP=0;
12966 GNULIB_MBSTOK_R=0;
12967 GNULIB_STRERROR=0;
12968 GNULIB_STRERROR_R=0;
12969 GNULIB_STRSIGNAL=0;
12970 GNULIB_STRVERSCMP=0;
12971 HAVE_MBSLEN=0;
12972 HAVE_FFSL=1;
12973 HAVE_FFSLL=1;
12974 HAVE_MEMCHR=1;
12975 HAVE_DECL_MEMMEM=1;
12976 HAVE_MEMPCPY=1;
12977 HAVE_DECL_MEMRCHR=1;
12978 HAVE_RAWMEMCHR=1;
12979 HAVE_STPCPY=1;
12980 HAVE_STPNCPY=1;
12981 HAVE_STRCHRNUL=1;
12982 HAVE_DECL_STRDUP=1;
12983 HAVE_DECL_STRNDUP=1;
12984 HAVE_DECL_STRNLEN=1;
12985 HAVE_STRPBRK=1;
12986 HAVE_STRSEP=1;
12987 HAVE_STRCASESTR=1;
12988 HAVE_DECL_STRTOK_R=1;
12989 HAVE_DECL_STRERROR_R=1;
12990 HAVE_DECL_STRSIGNAL=1;
12991 HAVE_STRVERSCMP=1;
12992 REPLACE_MEMCHR=0;
12993 REPLACE_MEMMEM=0;
12994 REPLACE_STPNCPY=0;
12995 REPLACE_STRDUP=0;
12996 REPLACE_STRSTR=0;
12997 REPLACE_STRCASESTR=0;
12998 REPLACE_STRCHRNUL=0;
12999 REPLACE_STRERROR=0;
13000 REPLACE_STRERROR_R=0;
13001 REPLACE_STRNCAT=0;
13002 REPLACE_STRNDUP=0;
13003 REPLACE_STRNLEN=0;
13004 REPLACE_STRSIGNAL=0;
13005 REPLACE_STRTOK_R=0;
13006 UNDEFINE_STRTOK_R=0;
13007
13008
13009
13010
13011
13012 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
13013 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
13014 # irrelevant for anonymous mappings.
13015 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
13016 if test "x$ac_cv_func_mmap" = xyes; then :
13017 gl_have_mmap=yes
13018 else
13019 gl_have_mmap=no
13020 fi
13021
13022
13023 # Try to allow MAP_ANONYMOUS.
13024 gl_have_mmap_anonymous=no
13025 if test $gl_have_mmap = yes; then
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
13027 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
13028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13029 /* end confdefs.h. */
13030
13031 #include <sys/mman.h>
13032 #ifdef MAP_ANONYMOUS
13033 I cannot identify this map
13034 #endif
13035
13036 _ACEOF
13037 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13038 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
13039 gl_have_mmap_anonymous=yes
13040 fi
13041 rm -f conftest*
13042
13043 if test $gl_have_mmap_anonymous != yes; then
13044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13045 /* end confdefs.h. */
13046
13047 #include <sys/mman.h>
13048 #ifdef MAP_ANON
13049 I cannot identify this map
13050 #endif
13051
13052 _ACEOF
13053 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13054 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
13055
13056 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
13057
13058 gl_have_mmap_anonymous=yes
13059 fi
13060 rm -f conftest*
13061
13062 fi
13063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
13064 $as_echo "$gl_have_mmap_anonymous" >&6; }
13065 if test $gl_have_mmap_anonymous = yes; then
13066
13067 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
13068
13069 fi
13070 fi
13071
13072
13073 :
13074
13075
13076
13077
13078
13079
13080 :
13081
13082
13083
13084
13085
13086
13087
13088
13089 if test $HAVE_MEMCHR = 1; then
13090 # Detect platform-specific bugs in some versions of glibc:
13091 # memchr should not dereference anything with length 0
13092 # http://bugzilla.redhat.com/499689
13093 # memchr should not dereference overestimated length after a match
13094 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
13095 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
13096 # Assume that memchr works on platforms that lack mprotect.
13097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
13098 $as_echo_n "checking whether memchr works... " >&6; }
13099 if ${gl_cv_func_memchr_works+:} false; then :
13100 $as_echo_n "(cached) " >&6
13101 else
13102 if test "$cross_compiling" = yes; then :
13103 gl_cv_func_memchr_works="guessing no"
13104 else
13105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13106 /* end confdefs.h. */
13107
13108 #include <string.h>
13109 #if HAVE_SYS_MMAN_H
13110 # include <fcntl.h>
13111 # include <unistd.h>
13112 # include <sys/types.h>
13113 # include <sys/mman.h>
13114 # ifndef MAP_FILE
13115 # define MAP_FILE 0
13116 # endif
13117 #endif
13118
13119 int
13120 main ()
13121 {
13122
13123 int result = 0;
13124 char *fence = NULL;
13125 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
13126 # if HAVE_MAP_ANONYMOUS
13127 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
13128 const int fd = -1;
13129 # else /* !HAVE_MAP_ANONYMOUS */
13130 const int flags = MAP_FILE | MAP_PRIVATE;
13131 int fd = open ("/dev/zero", O_RDONLY, 0666);
13132 if (fd >= 0)
13133 # endif
13134 {
13135 int pagesize = getpagesize ();
13136 char *two_pages =
13137 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
13138 flags, fd, 0);
13139 if (two_pages != (char *)(-1)
13140 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
13141 fence = two_pages + pagesize;
13142 }
13143 #endif
13144 if (fence)
13145 {
13146 if (memchr (fence, 0, 0))
13147 result |= 1;
13148 strcpy (fence - 9, "12345678");
13149 if (memchr (fence - 9, 0, 79) != fence - 1)
13150 result |= 2;
13151 if (memchr (fence - 1, 0, 3) != fence - 1)
13152 result |= 4;
13153 }
13154 return result;
13155
13156 ;
13157 return 0;
13158 }
13159 _ACEOF
13160 if ac_fn_c_try_run "$LINENO"; then :
13161 gl_cv_func_memchr_works=yes
13162 else
13163 gl_cv_func_memchr_works=no
13164 fi
13165 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13166 conftest.$ac_objext conftest.beam conftest.$ac_ext
13167 fi
13168
13169 fi
13170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
13171 $as_echo "$gl_cv_func_memchr_works" >&6; }
13172 if test "$gl_cv_func_memchr_works" != yes; then
13173 REPLACE_MEMCHR=1
13174 fi
13175 fi
13176
13177
13178 ac_fn_c_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
13179 if test "x$ac_cv_have_decl_memmem" = xyes; then :
13180 ac_have_decl=1
13181 else
13182 ac_have_decl=0
13183 fi
13184
13185 cat >>confdefs.h <<_ACEOF
13186 #define HAVE_DECL_MEMMEM $ac_have_decl
13187 _ACEOF
13188
13189
13190
13191
13192
13193
13194 for ac_func in memmem
13195 do :
13196 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
13197 if test "x$ac_cv_func_memmem" = xyes; then :
13198 cat >>confdefs.h <<_ACEOF
13199 #define HAVE_MEMMEM 1
13200 _ACEOF
13201
13202 fi
13203 done
13204
13205 if test $ac_cv_func_memmem = yes; then
13206 HAVE_MEMMEM=1
13207 else
13208 HAVE_MEMMEM=0
13209 fi
13210
13211 :
13212
13213
13214
13215
13216
13217 if test $ac_cv_have_decl_memmem = no; then
13218 HAVE_DECL_MEMMEM=0
13219 else
13220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
13221 $as_echo_n "checking whether memmem works... " >&6; }
13222 if ${gl_cv_func_memmem_works_always+:} false; then :
13223 $as_echo_n "(cached) " >&6
13224 else
13225 if test "$cross_compiling" = yes; then :
13226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13227 /* end confdefs.h. */
13228
13229 #ifdef __GNU_LIBRARY__
13230 #include <features.h>
13231 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
13232 || __GLIBC_MINOR__ > 12)) \
13233 || (__GLIBC__ > 2)) \
13234 || defined __UCLIBC__
13235 Lucky user
13236 #endif
13237 #elif defined __CYGWIN__
13238 #include <cygwin/version.h>
13239 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
13240 Lucky user
13241 #endif
13242 #else
13243 Lucky user
13244 #endif
13245
13246 _ACEOF
13247 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13248 $EGREP "Lucky user" >/dev/null 2>&1; then :
13249 gl_cv_func_memmem_works_always="guessing yes"
13250 else
13251 gl_cv_func_memmem_works_always="guessing no"
13252 fi
13253 rm -f conftest*
13254
13255
13256 else
13257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13258 /* end confdefs.h. */
13259
13260 #include <string.h> /* for memmem */
13261 #define P "_EF_BF_BD"
13262 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
13263 #define NEEDLE P P P P P
13264
13265 int
13266 main ()
13267 {
13268
13269 int result = 0;
13270 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
13271 result |= 1;
13272 /* Check for empty needle behavior. */
13273 {
13274 const char *haystack = "AAA";
13275 if (memmem (haystack, 3, NULL, 0) != haystack)
13276 result |= 2;
13277 }
13278 return result;
13279
13280 ;
13281 return 0;
13282 }
13283 _ACEOF
13284 if ac_fn_c_try_run "$LINENO"; then :
13285 gl_cv_func_memmem_works_always=yes
13286 else
13287 gl_cv_func_memmem_works_always=no
13288 fi
13289 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13290 conftest.$ac_objext conftest.beam conftest.$ac_ext
13291 fi
13292
13293
13294 fi
13295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
13296 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
13297 case "$gl_cv_func_memmem_works_always" in
13298 *yes) ;;
13299 *)
13300 REPLACE_MEMMEM=1
13301 ;;
13302 esac
13303 fi
13304 :
13305
13306
13307 ac_fn_c_check_decl "$LINENO" "memrchr" "ac_cv_have_decl_memrchr" "$ac_includes_default"
13308 if test "x$ac_cv_have_decl_memrchr" = xyes; then :
13309 ac_have_decl=1
13310 else
13311 ac_have_decl=0
13312 fi
13313
13314 cat >>confdefs.h <<_ACEOF
13315 #define HAVE_DECL_MEMRCHR $ac_have_decl
13316 _ACEOF
13317
13318
13319
13320
13321
13322
13323
13324
13325
13326
13327
13328
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for promoted mode_t type" >&5
13330 $as_echo_n "checking for promoted mode_t type... " >&6; }
13331 if ${gl_cv_promoted_mode_t+:} false; then :
13332 $as_echo_n "(cached) " >&6
13333 else
13334
13335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13336 /* end confdefs.h. */
13337 #include <sys/types.h>
13338 int
13339 main ()
13340 {
13341 typedef int array[2 * (sizeof (mode_t) < sizeof (int)) - 1];
13342 ;
13343 return 0;
13344 }
13345 _ACEOF
13346 if ac_fn_c_try_compile "$LINENO"; then :
13347 gl_cv_promoted_mode_t='int'
13348 else
13349 gl_cv_promoted_mode_t='mode_t'
13350 fi
13351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13352
13353 fi
13354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_promoted_mode_t" >&5
13355 $as_echo "$gl_cv_promoted_mode_t" >&6; }
13356
13357 cat >>confdefs.h <<_ACEOF
13358 #define PROMOTED_MODE_T $gl_cv_promoted_mode_t
13359 _ACEOF
13360
13361
13362
13363
13364
13365
13366
13367
13368 GNULIB_DPRINTF=0;
13369 GNULIB_FCLOSE=0;
13370 GNULIB_FDOPEN=0;
13371 GNULIB_FFLUSH=0;
13372 GNULIB_FGETC=0;
13373 GNULIB_FGETS=0;
13374 GNULIB_FOPEN=0;
13375 GNULIB_FPRINTF=0;
13376 GNULIB_FPRINTF_POSIX=0;
13377 GNULIB_FPURGE=0;
13378 GNULIB_FPUTC=0;
13379 GNULIB_FPUTS=0;
13380 GNULIB_FREAD=0;
13381 GNULIB_FREOPEN=0;
13382 GNULIB_FSCANF=0;
13383 GNULIB_FSEEK=0;
13384 GNULIB_FSEEKO=0;
13385 GNULIB_FTELL=0;
13386 GNULIB_FTELLO=0;
13387 GNULIB_FWRITE=0;
13388 GNULIB_GETC=0;
13389 GNULIB_GETCHAR=0;
13390 GNULIB_GETDELIM=0;
13391 GNULIB_GETLINE=0;
13392 GNULIB_OBSTACK_PRINTF=0;
13393 GNULIB_OBSTACK_PRINTF_POSIX=0;
13394 GNULIB_PCLOSE=0;
13395 GNULIB_PERROR=0;
13396 GNULIB_POPEN=0;
13397 GNULIB_PRINTF=0;
13398 GNULIB_PRINTF_POSIX=0;
13399 GNULIB_PUTC=0;
13400 GNULIB_PUTCHAR=0;
13401 GNULIB_PUTS=0;
13402 GNULIB_REMOVE=0;
13403 GNULIB_RENAME=0;
13404 GNULIB_RENAMEAT=0;
13405 GNULIB_SCANF=0;
13406 GNULIB_SNPRINTF=0;
13407 GNULIB_SPRINTF_POSIX=0;
13408 GNULIB_STDIO_H_NONBLOCKING=0;
13409 GNULIB_STDIO_H_SIGPIPE=0;
13410 GNULIB_TMPFILE=0;
13411 GNULIB_VASPRINTF=0;
13412 GNULIB_VFSCANF=0;
13413 GNULIB_VSCANF=0;
13414 GNULIB_VDPRINTF=0;
13415 GNULIB_VFPRINTF=0;
13416 GNULIB_VFPRINTF_POSIX=0;
13417 GNULIB_VPRINTF=0;
13418 GNULIB_VPRINTF_POSIX=0;
13419 GNULIB_VSNPRINTF=0;
13420 GNULIB_VSPRINTF_POSIX=0;
13421 HAVE_DECL_FPURGE=1;
13422 HAVE_DECL_FSEEKO=1;
13423 HAVE_DECL_FTELLO=1;
13424 HAVE_DECL_GETDELIM=1;
13425 HAVE_DECL_GETLINE=1;
13426 HAVE_DECL_OBSTACK_PRINTF=1;
13427 HAVE_DECL_SNPRINTF=1;
13428 HAVE_DECL_VSNPRINTF=1;
13429 HAVE_DPRINTF=1;
13430 HAVE_FSEEKO=1;
13431 HAVE_FTELLO=1;
13432 HAVE_PCLOSE=1;
13433 HAVE_POPEN=1;
13434 HAVE_RENAMEAT=1;
13435 HAVE_VASPRINTF=1;
13436 HAVE_VDPRINTF=1;
13437 REPLACE_DPRINTF=0;
13438 REPLACE_FCLOSE=0;
13439 REPLACE_FDOPEN=0;
13440 REPLACE_FFLUSH=0;
13441 REPLACE_FOPEN=0;
13442 REPLACE_FPRINTF=0;
13443 REPLACE_FPURGE=0;
13444 REPLACE_FREOPEN=0;
13445 REPLACE_FSEEK=0;
13446 REPLACE_FSEEKO=0;
13447 REPLACE_FTELL=0;
13448 REPLACE_FTELLO=0;
13449 REPLACE_GETDELIM=0;
13450 REPLACE_GETLINE=0;
13451 REPLACE_OBSTACK_PRINTF=0;
13452 REPLACE_PERROR=0;
13453 REPLACE_POPEN=0;
13454 REPLACE_PRINTF=0;
13455 REPLACE_REMOVE=0;
13456 REPLACE_RENAME=0;
13457 REPLACE_RENAMEAT=0;
13458 REPLACE_SNPRINTF=0;
13459 REPLACE_SPRINTF=0;
13460 REPLACE_STDIO_READ_FUNCS=0;
13461 REPLACE_STDIO_WRITE_FUNCS=0;
13462 REPLACE_TMPFILE=0;
13463 REPLACE_VASPRINTF=0;
13464 REPLACE_VDPRINTF=0;
13465 REPLACE_VFPRINTF=0;
13466 REPLACE_VPRINTF=0;
13467 REPLACE_VSNPRINTF=0;
13468 REPLACE_VSPRINTF=0;
13469
13470
13471
13472
13473
13474
13475
13476
13477
13478
13479
13480
13481
13482
13483
13484
13485
13486
13487
13488
13489
13490
13491
13492
13493
13494
13495
13496
13497
13498
13499
13500
13501 ac_fn_c_check_decl "$LINENO" "setenv" "ac_cv_have_decl_setenv" "$ac_includes_default"
13502 if test "x$ac_cv_have_decl_setenv" = xyes; then :
13503 ac_have_decl=1
13504 else
13505 ac_have_decl=0
13506 fi
13507
13508 cat >>confdefs.h <<_ACEOF
13509 #define HAVE_DECL_SETENV $ac_have_decl
13510 _ACEOF
13511
13512
13513
13514
13515
13516
13517
13518
13519
13520
13521 :
13522
13523
13524
13525
13526
13527 if test $ac_cv_have_decl_setenv = no; then
13528 HAVE_DECL_SETENV=0
13529 fi
13530
13531 :
13532
13533
13534
13535
13536
13537
13538
13539
13540
13541 :
13542
13543
13544
13545
13546
13547 for ac_header in search.h
13548 do :
13549 ac_fn_c_check_header_mongrel "$LINENO" "search.h" "ac_cv_header_search_h" "$ac_includes_default"
13550 if test "x$ac_cv_header_search_h" = xyes; then :
13551 cat >>confdefs.h <<_ACEOF
13552 #define HAVE_SEARCH_H 1
13553 _ACEOF
13554
13555 fi
13556
13557 done
13558
13559 for ac_func in tsearch
13560 do :
13561 ac_fn_c_check_func "$LINENO" "tsearch" "ac_cv_func_tsearch"
13562 if test "x$ac_cv_func_tsearch" = xyes; then :
13563 cat >>confdefs.h <<_ACEOF
13564 #define HAVE_TSEARCH 1
13565 _ACEOF
13566
13567 fi
13568 done
13569
13570
13571
13572
13573 GNULIB_PTHREAD_SIGMASK=0;
13574 GNULIB_RAISE=0;
13575 GNULIB_SIGNAL_H_SIGPIPE=0;
13576 GNULIB_SIGPROCMASK=0;
13577 GNULIB_SIGACTION=0;
13578 HAVE_POSIX_SIGNALBLOCKING=1;
13579 HAVE_PTHREAD_SIGMASK=1;
13580 HAVE_RAISE=1;
13581 HAVE_SIGSET_T=1;
13582 HAVE_SIGINFO_T=1;
13583 HAVE_SIGACTION=1;
13584 HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
13585
13586 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
13587
13588 HAVE_SIGHANDLER_T=1;
13589 REPLACE_PTHREAD_SIGMASK=0;
13590 REPLACE_RAISE=0;
13591
13592
13593 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
13594 #include <signal.h>
13595 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
13596 #include <sys/types.h>
13597
13598 "
13599 if test "x$ac_cv_type_sigset_t" = xyes; then :
13600
13601 cat >>confdefs.h <<_ACEOF
13602 #define HAVE_SIGSET_T 1
13603 _ACEOF
13604
13605 gl_cv_type_sigset_t=yes
13606 else
13607 gl_cv_type_sigset_t=no
13608 fi
13609
13610 if test $gl_cv_type_sigset_t != yes; then
13611 HAVE_SIGSET_T=0
13612 fi
13613
13614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
13615 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
13616 if ${ac_cv_type_uid_t+:} false; then :
13617 $as_echo_n "(cached) " >&6
13618 else
13619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13620 /* end confdefs.h. */
13621 #include <sys/types.h>
13622
13623 _ACEOF
13624 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13625 $EGREP "uid_t" >/dev/null 2>&1; then :
13626 ac_cv_type_uid_t=yes
13627 else
13628 ac_cv_type_uid_t=no
13629 fi
13630 rm -f conftest*
13631
13632 fi
13633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
13634 $as_echo "$ac_cv_type_uid_t" >&6; }
13635 if test $ac_cv_type_uid_t = no; then
13636
13637 $as_echo "#define uid_t int" >>confdefs.h
13638
13639
13640 $as_echo "#define gid_t int" >>confdefs.h
13641
13642 fi
13643
13644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
13645 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
13646 if ${ac_cv_header_stdbool_h+:} false; then :
13647 $as_echo_n "(cached) " >&6
13648 else
13649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13650 /* end confdefs.h. */
13651
13652 #include <stdbool.h>
13653
13654 #ifdef __cplusplus
13655 typedef bool Bool;
13656 #else
13657 typedef _Bool Bool;
13658 #ifndef bool
13659 "error: bool is not defined"
13660 #endif
13661 #ifndef false
13662 "error: false is not defined"
13663 #endif
13664 #if false
13665 "error: false is not 0"
13666 #endif
13667 #ifndef true
13668 "error: true is not defined"
13669 #endif
13670 #if true != 1
13671 "error: true is not 1"
13672 #endif
13673 #endif
13674
13675 #ifndef __bool_true_false_are_defined
13676 "error: __bool_true_false_are_defined is not defined"
13677 #endif
13678
13679 struct s { Bool s: 1; Bool t; bool u: 1; bool v; } s;
13680
13681 char a[true == 1 ? 1 : -1];
13682 char b[false == 0 ? 1 : -1];
13683 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
13684 char d[(bool) 0.5 == true ? 1 : -1];
13685 /* See body of main program for 'e'. */
13686 char f[(Bool) 0.0 == false ? 1 : -1];
13687 char g[true];
13688 char h[sizeof (Bool)];
13689 char i[sizeof s.t];
13690 enum { j = false, k = true, l = false * true, m = true * 256 };
13691 /* The following fails for
13692 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
13693 Bool n[m];
13694 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
13695 char p[-1 - (Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
13696 /* Catch a bug in an HP-UX C compiler. See
13697 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
13698 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
13699 */
13700 Bool q = true;
13701 Bool *pq = &q;
13702 bool *qq = &q;
13703
13704 int
13705 main ()
13706 {
13707
13708 bool e = &s;
13709 *pq |= q; *pq |= ! q;
13710 *qq |= q; *qq |= ! q;
13711 /* Refer to every declared value, to avoid compiler optimizations. */
13712 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
13713 + !m + !n + !o + !p + !q + !pq + !qq);
13714
13715 ;
13716 return 0;
13717 }
13718 _ACEOF
13719 if ac_fn_c_try_compile "$LINENO"; then :
13720 ac_cv_header_stdbool_h=yes
13721 else
13722 ac_cv_header_stdbool_h=no
13723 fi
13724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13725 fi
13726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
13727 $as_echo "$ac_cv_header_stdbool_h" >&6; }
13728 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
13729 if test "x$ac_cv_type__Bool" = xyes; then :
13730
13731 cat >>confdefs.h <<_ACEOF
13732 #define HAVE__BOOL 1
13733 _ACEOF
13734
13735
13736 fi
13737
13738
13739
13740 REPLACE_NULL=0;
13741 HAVE_MAX_ALIGN_T=1;
13742 HAVE_WCHAR_T=1;
13743
13744
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
13746 $as_echo_n "checking for wchar_t... " >&6; }
13747 if ${gt_cv_c_wchar_t+:} false; then :
13748 $as_echo_n "(cached) " >&6
13749 else
13750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13751 /* end confdefs.h. */
13752 #include <stddef.h>
13753 wchar_t foo = (wchar_t)'\0';
13754 int
13755 main ()
13756 {
13757
13758 ;
13759 return 0;
13760 }
13761 _ACEOF
13762 if ac_fn_c_try_compile "$LINENO"; then :
13763 gt_cv_c_wchar_t=yes
13764 else
13765 gt_cv_c_wchar_t=no
13766 fi
13767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13768 fi
13769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
13770 $as_echo "$gt_cv_c_wchar_t" >&6; }
13771 if test $gt_cv_c_wchar_t = yes; then
13772
13773 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
13774
13775 fi
13776
13777
13778
13779
13780
13781
13782
13783 ac_fn_c_check_decl "$LINENO" "strdup" "ac_cv_have_decl_strdup" "$ac_includes_default"
13784 if test "x$ac_cv_have_decl_strdup" = xyes; then :
13785 ac_have_decl=1
13786 else
13787 ac_have_decl=0
13788 fi
13789
13790 cat >>confdefs.h <<_ACEOF
13791 #define HAVE_DECL_STRDUP $ac_have_decl
13792 _ACEOF
13793
13794
13795
13796 REPLACE_STRERROR_0=0
13797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror(0) succeeds" >&5
13798 $as_echo_n "checking whether strerror(0) succeeds... " >&6; }
13799 if ${gl_cv_func_strerror_0_works+:} false; then :
13800 $as_echo_n "(cached) " >&6
13801 else
13802 if test "$cross_compiling" = yes; then :
13803 case "$host_os" in
13804 # Guess yes on glibc systems.
13805 *-gnu*) gl_cv_func_strerror_0_works="guessing yes" ;;
13806 # If we don't know, assume the worst.
13807 *) gl_cv_func_strerror_0_works="guessing no" ;;
13808 esac
13809
13810 else
13811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13812 /* end confdefs.h. */
13813 #include <string.h>
13814 #include <errno.h>
13815
13816 int
13817 main ()
13818 {
13819 int result = 0;
13820 char *str;
13821 errno = 0;
13822 str = strerror (0);
13823 if (!*str) result |= 1;
13824 if (errno) result |= 2;
13825 if (strstr (str, "nknown") || strstr (str, "ndefined"))
13826 result |= 4;
13827 return result;
13828 ;
13829 return 0;
13830 }
13831 _ACEOF
13832 if ac_fn_c_try_run "$LINENO"; then :
13833 gl_cv_func_strerror_0_works=yes
13834 else
13835 gl_cv_func_strerror_0_works=no
13836 fi
13837 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13838 conftest.$ac_objext conftest.beam conftest.$ac_ext
13839 fi
13840
13841
13842 fi
13843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_0_works" >&5
13844 $as_echo "$gl_cv_func_strerror_0_works" >&6; }
13845 case "$gl_cv_func_strerror_0_works" in
13846 *yes) ;;
13847 *)
13848 REPLACE_STRERROR_0=1
13849
13850 $as_echo "#define REPLACE_STRERROR_0 1" >>confdefs.h
13851
13852 ;;
13853 esac
13854
13855
13856
13857
13858
13859
13860
13861
13862
13863
13864
13865
13866 if test $gl_cv_have_include_next = yes; then
13867 gl_cv_next_string_h='<'string.h'>'
13868 else
13869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
13870 $as_echo_n "checking absolute name of <string.h>... " >&6; }
13871 if ${gl_cv_next_string_h+:} false; then :
13872 $as_echo_n "(cached) " >&6
13873 else
13874
13875
13876
13877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13878 /* end confdefs.h. */
13879 #include <string.h>
13880 _ACEOF
13881 case "$host_os" in
13882 aix*) gl_absname_cpp="$ac_cpp -C" ;;
13883 *) gl_absname_cpp="$ac_cpp" ;;
13884 esac
13885
13886 case "$host_os" in
13887 mingw*)
13888 gl_dirsep_regex='[/\\]'
13889 ;;
13890 *)
13891 gl_dirsep_regex='\/'
13892 ;;
13893 esac
13894 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
13895 gl_header_literal_regex=`echo 'string.h' \
13896 | sed -e "$gl_make_literal_regex_sed"`
13897 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
13898 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
13899 s|^/[^/]|//&|
13900 p
13901 q
13902 }'
13903
13904 gl_cv_absolute_string_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13905 sed -n "$gl_absolute_header_sed"`
13906
13907 gl_header=$gl_cv_absolute_string_h
13908 gl_cv_next_string_h='"'$gl_header'"'
13909
13910
13911 fi
13912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
13913 $as_echo "$gl_cv_next_string_h" >&6; }
13914 fi
13915 NEXT_STRING_H=$gl_cv_next_string_h
13916
13917 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
13918 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13919 gl_next_as_first_directive='<'string.h'>'
13920 else
13921 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13922 gl_next_as_first_directive=$gl_cv_next_string_h
13923 fi
13924 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
13925
13926
13927
13928
13929
13930
13931 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
13932 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
13933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
13934 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
13935 if eval \${$as_gl_Symbol+:} false; then :
13936 $as_echo_n "(cached) " >&6
13937 else
13938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13939 /* end confdefs.h. */
13940 #include <string.h>
13941
13942 int
13943 main ()
13944 {
13945 #undef $gl_func
13946 (void) $gl_func;
13947 ;
13948 return 0;
13949 }
13950 _ACEOF
13951 if ac_fn_c_try_compile "$LINENO"; then :
13952 eval "$as_gl_Symbol=yes"
13953 else
13954 eval "$as_gl_Symbol=no"
13955 fi
13956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13957 fi
13958 eval ac_res=\$$as_gl_Symbol
13959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13960 $as_echo "$ac_res" >&6; }
13961 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
13962 cat >>confdefs.h <<_ACEOF
13963 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
13964 _ACEOF
13965
13966 eval ac_cv_have_decl_$gl_func=yes
13967 fi
13968 done
13969
13970
13971
13972
13973
13974 if test "$gl_cv_func_memchr_works" != yes; then
13975 REPLACE_STRSTR=1
13976 else
13977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
13978 $as_echo_n "checking whether strstr works... " >&6; }
13979 if ${gl_cv_func_strstr_works_always+:} false; then :
13980 $as_echo_n "(cached) " >&6
13981 else
13982 if test "$cross_compiling" = yes; then :
13983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13984 /* end confdefs.h. */
13985
13986 #ifdef __GNU_LIBRARY__
13987 #include <features.h>
13988 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
13989 || defined __UCLIBC__
13990 Lucky user
13991 #endif
13992 #elif defined __CYGWIN__
13993 #include <cygwin/version.h>
13994 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
13995 Lucky user
13996 #endif
13997 #else
13998 Lucky user
13999 #endif
14000
14001 _ACEOF
14002 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14003 $EGREP "Lucky user" >/dev/null 2>&1; then :
14004 gl_cv_func_strstr_works_always="guessing yes"
14005 else
14006 gl_cv_func_strstr_works_always="guessing no"
14007 fi
14008 rm -f conftest*
14009
14010
14011 else
14012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14013 /* end confdefs.h. */
14014
14015 #include <string.h> /* for strstr */
14016 #define P "_EF_BF_BD"
14017 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
14018 #define NEEDLE P P P P P
14019
14020 int
14021 main ()
14022 {
14023 return !!strstr (HAYSTACK, NEEDLE);
14024
14025 ;
14026 return 0;
14027 }
14028 _ACEOF
14029 if ac_fn_c_try_run "$LINENO"; then :
14030 gl_cv_func_strstr_works_always=yes
14031 else
14032 gl_cv_func_strstr_works_always=no
14033 fi
14034 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14035 conftest.$ac_objext conftest.beam conftest.$ac_ext
14036 fi
14037
14038
14039 fi
14040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
14041 $as_echo "$gl_cv_func_strstr_works_always" >&6; }
14042 case "$gl_cv_func_strstr_works_always" in
14043 *yes) ;;
14044 *)
14045 REPLACE_STRSTR=1
14046 ;;
14047 esac
14048 fi
14049
14050
14051 ac_fn_c_check_decl "$LINENO" "strtok_r" "ac_cv_have_decl_strtok_r" "$ac_includes_default"
14052 if test "x$ac_cv_have_decl_strtok_r" = xyes; then :
14053 ac_have_decl=1
14054 else
14055 ac_have_decl=0
14056 fi
14057
14058 cat >>confdefs.h <<_ACEOF
14059 #define HAVE_DECL_STRTOK_R $ac_have_decl
14060 _ACEOF
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081 if test $gl_cv_have_include_next = yes; then
14082 gl_cv_next_sys_types_h='<'sys/types.h'>'
14083 else
14084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
14085 $as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
14086 if ${gl_cv_next_sys_types_h+:} false; then :
14087 $as_echo_n "(cached) " >&6
14088 else
14089
14090
14091
14092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14093 /* end confdefs.h. */
14094 #include <sys/types.h>
14095 _ACEOF
14096 case "$host_os" in
14097 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14098 *) gl_absname_cpp="$ac_cpp" ;;
14099 esac
14100
14101 case "$host_os" in
14102 mingw*)
14103 gl_dirsep_regex='[/\\]'
14104 ;;
14105 *)
14106 gl_dirsep_regex='\/'
14107 ;;
14108 esac
14109 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14110 gl_header_literal_regex=`echo 'sys/types.h' \
14111 | sed -e "$gl_make_literal_regex_sed"`
14112 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14113 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14114 s|^/[^/]|//&|
14115 p
14116 q
14117 }'
14118
14119 gl_cv_absolute_sys_types_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14120 sed -n "$gl_absolute_header_sed"`
14121
14122 gl_header=$gl_cv_absolute_sys_types_h
14123 gl_cv_next_sys_types_h='"'$gl_header'"'
14124
14125
14126 fi
14127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
14128 $as_echo "$gl_cv_next_sys_types_h" >&6; }
14129 fi
14130 NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
14131
14132 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14133 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14134 gl_next_as_first_directive='<'sys/types.h'>'
14135 else
14136 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14137 gl_next_as_first_directive=$gl_cv_next_sys_types_h
14138 fi
14139 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
14140
14141
14142
14143
14144
14145
14146
14147
14148
14149
14150
14151
14152
14153
14154
14155
14156
14157
14158
14159 GNULIB_MKTIME=0;
14160 GNULIB_NANOSLEEP=0;
14161 GNULIB_STRPTIME=0;
14162 GNULIB_TIMEGM=0;
14163 GNULIB_TIME_R=0;
14164 GNULIB_TIME_RZ=0;
14165 HAVE_DECL_LOCALTIME_R=1;
14166 HAVE_NANOSLEEP=1;
14167 HAVE_STRPTIME=1;
14168 HAVE_TIMEGM=1;
14169 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
14170 REPLACE_MKTIME=GNULIB_PORTCHECK;
14171 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
14172 REPLACE_TIMEGM=GNULIB_PORTCHECK;
14173
14174 : ${GNULIB_GETTIMEOFDAY=0};
14175 REPLACE_GMTIME=0;
14176 REPLACE_LOCALTIME=0;
14177
14178
14179
14180 :
14181
14182
14183
14184
14185
14186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
14187 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
14188 if ${gl_cv_sys_struct_timespec_in_time_h+:} false; then :
14189 $as_echo_n "(cached) " >&6
14190 else
14191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14192 /* end confdefs.h. */
14193 #include <time.h>
14194
14195 int
14196 main ()
14197 {
14198 static struct timespec x; x.tv_sec = x.tv_nsec;
14199 ;
14200 return 0;
14201 }
14202 _ACEOF
14203 if ac_fn_c_try_compile "$LINENO"; then :
14204 gl_cv_sys_struct_timespec_in_time_h=yes
14205 else
14206 gl_cv_sys_struct_timespec_in_time_h=no
14207 fi
14208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14209 fi
14210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
14211 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
14212
14213 TIME_H_DEFINES_STRUCT_TIMESPEC=0
14214 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
14215 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
14216 UNISTD_H_DEFINES_STRUCT_TIMESPEC=0
14217 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
14218 TIME_H_DEFINES_STRUCT_TIMESPEC=1
14219 else
14220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
14221 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
14222 if ${gl_cv_sys_struct_timespec_in_sys_time_h+:} false; then :
14223 $as_echo_n "(cached) " >&6
14224 else
14225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14226 /* end confdefs.h. */
14227 #include <sys/time.h>
14228
14229 int
14230 main ()
14231 {
14232 static struct timespec x; x.tv_sec = x.tv_nsec;
14233 ;
14234 return 0;
14235 }
14236 _ACEOF
14237 if ac_fn_c_try_compile "$LINENO"; then :
14238 gl_cv_sys_struct_timespec_in_sys_time_h=yes
14239 else
14240 gl_cv_sys_struct_timespec_in_sys_time_h=no
14241 fi
14242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14243 fi
14244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
14245 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
14246 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
14247 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
14248 else
14249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
14250 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
14251 if ${gl_cv_sys_struct_timespec_in_pthread_h+:} false; then :
14252 $as_echo_n "(cached) " >&6
14253 else
14254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14255 /* end confdefs.h. */
14256 #include <pthread.h>
14257
14258 int
14259 main ()
14260 {
14261 static struct timespec x; x.tv_sec = x.tv_nsec;
14262 ;
14263 return 0;
14264 }
14265 _ACEOF
14266 if ac_fn_c_try_compile "$LINENO"; then :
14267 gl_cv_sys_struct_timespec_in_pthread_h=yes
14268 else
14269 gl_cv_sys_struct_timespec_in_pthread_h=no
14270 fi
14271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14272 fi
14273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
14274 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
14275 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
14276 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
14277 else
14278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <unistd.h>" >&5
14279 $as_echo_n "checking for struct timespec in <unistd.h>... " >&6; }
14280 if ${gl_cv_sys_struct_timespec_in_unistd_h+:} false; then :
14281 $as_echo_n "(cached) " >&6
14282 else
14283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14284 /* end confdefs.h. */
14285 #include <unistd.h>
14286
14287 int
14288 main ()
14289 {
14290 static struct timespec x; x.tv_sec = x.tv_nsec;
14291 ;
14292 return 0;
14293 }
14294 _ACEOF
14295 if ac_fn_c_try_compile "$LINENO"; then :
14296 gl_cv_sys_struct_timespec_in_unistd_h=yes
14297 else
14298 gl_cv_sys_struct_timespec_in_unistd_h=no
14299 fi
14300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14301 fi
14302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_unistd_h" >&5
14303 $as_echo "$gl_cv_sys_struct_timespec_in_unistd_h" >&6; }
14304 if test $gl_cv_sys_struct_timespec_in_unistd_h = yes; then
14305 UNISTD_H_DEFINES_STRUCT_TIMESPEC=1
14306 fi
14307 fi
14308 fi
14309 fi
14310
14311
14312
14313
14314
14315
14316
14317
14318
14319
14320
14321
14322
14323
14324
14325
14326 if test $gl_cv_have_include_next = yes; then
14327 gl_cv_next_time_h='<'time.h'>'
14328 else
14329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
14330 $as_echo_n "checking absolute name of <time.h>... " >&6; }
14331 if ${gl_cv_next_time_h+:} false; then :
14332 $as_echo_n "(cached) " >&6
14333 else
14334
14335
14336
14337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14338 /* end confdefs.h. */
14339 #include <time.h>
14340 _ACEOF
14341 case "$host_os" in
14342 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14343 *) gl_absname_cpp="$ac_cpp" ;;
14344 esac
14345
14346 case "$host_os" in
14347 mingw*)
14348 gl_dirsep_regex='[/\\]'
14349 ;;
14350 *)
14351 gl_dirsep_regex='\/'
14352 ;;
14353 esac
14354 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14355 gl_header_literal_regex=`echo 'time.h' \
14356 | sed -e "$gl_make_literal_regex_sed"`
14357 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14358 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14359 s|^/[^/]|//&|
14360 p
14361 q
14362 }'
14363
14364 gl_cv_absolute_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14365 sed -n "$gl_absolute_header_sed"`
14366
14367 gl_header=$gl_cv_absolute_time_h
14368 gl_cv_next_time_h='"'$gl_header'"'
14369
14370
14371 fi
14372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
14373 $as_echo "$gl_cv_next_time_h" >&6; }
14374 fi
14375 NEXT_TIME_H=$gl_cv_next_time_h
14376
14377 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14378 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14379 gl_next_as_first_directive='<'time.h'>'
14380 else
14381 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14382 gl_next_as_first_directive=$gl_cv_next_time_h
14383 fi
14384 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
14385
14386
14387
14388
14389
14390
14391
14392
14393
14394
14395
14396
14397 ac_fn_c_check_decl "$LINENO" "unsetenv" "ac_cv_have_decl_unsetenv" "$ac_includes_default"
14398 if test "x$ac_cv_have_decl_unsetenv" = xyes; then :
14399 ac_have_decl=1
14400 else
14401 ac_have_decl=0
14402 fi
14403
14404 cat >>confdefs.h <<_ACEOF
14405 #define HAVE_DECL_UNSETENV $ac_have_decl
14406 _ACEOF
14407
14408
14409
14410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
14411 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
14412 if ${gl_cv_header_wchar_h_correct_inline+:} false; then :
14413 $as_echo_n "(cached) " >&6
14414 else
14415 gl_cv_header_wchar_h_correct_inline=yes
14416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14417 /* end confdefs.h. */
14418
14419 #define wcstod renamed_wcstod
14420 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14421 <wchar.h>.
14422 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14423 included before <wchar.h>. */
14424 #include <stddef.h>
14425 #include <stdio.h>
14426 #include <time.h>
14427 #include <wchar.h>
14428 extern int zero (void);
14429 int main () { return zero(); }
14430
14431 _ACEOF
14432 save_ac_compile="$ac_compile"
14433 ac_compile=`echo "$save_ac_compile" | sed s/conftest/conftest1/`
14434 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14435 (eval $ac_compile) 2>&5
14436 ac_status=$?
14437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14438 test $ac_status = 0; }; then
14439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14440 /* end confdefs.h. */
14441
14442 #define wcstod renamed_wcstod
14443 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14444 <wchar.h>.
14445 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14446 included before <wchar.h>. */
14447 #include <stddef.h>
14448 #include <stdio.h>
14449 #include <time.h>
14450 #include <wchar.h>
14451 int zero (void) { return 0; }
14452
14453 _ACEOF
14454 ac_compile=`echo "$save_ac_compile" | sed s/conftest/conftest2/`
14455 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14456 (eval $ac_compile) 2>&5
14457 ac_status=$?
14458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14459 test $ac_status = 0; }; then
14460 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
14461 :
14462 else
14463 gl_cv_header_wchar_h_correct_inline=no
14464 fi
14465 fi
14466 fi
14467 ac_compile="$save_ac_compile"
14468 rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
14469
14470 fi
14471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
14472 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
14473 if test $gl_cv_header_wchar_h_correct_inline = no; then
14474 as_fn_error $? "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
14475 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
14476 C99 mode. You have four options:
14477 - Add the flag -fgnu89-inline to CC and reconfigure, or
14478 - Fix your include files, using parts of
14479 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
14480 - Use a gcc version older than 4.3, or
14481 - Don't use the flags -std=c99 or -std=gnu99.
14482 Configuration aborted." "$LINENO" 5
14483 fi
14484
14485
14486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
14487 $as_echo_n "checking for wint_t... " >&6; }
14488 if ${gt_cv_c_wint_t+:} false; then :
14489 $as_echo_n "(cached) " >&6
14490 else
14491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14492 /* end confdefs.h. */
14493
14494 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14495 <wchar.h>.
14496 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
14497 before <wchar.h>. */
14498 #include <stddef.h>
14499 #include <stdio.h>
14500 #include <time.h>
14501 #include <wchar.h>
14502 wint_t foo = (wchar_t)'\0';
14503 int
14504 main ()
14505 {
14506
14507 ;
14508 return 0;
14509 }
14510 _ACEOF
14511 if ac_fn_c_try_compile "$LINENO"; then :
14512 gt_cv_c_wint_t=yes
14513 else
14514 gt_cv_c_wint_t=no
14515 fi
14516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14517 fi
14518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
14519 $as_echo "$gt_cv_c_wint_t" >&6; }
14520 if test $gt_cv_c_wint_t = yes; then
14521
14522 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
14523
14524 fi
14525
14526
14527 GNULIB_ISWBLANK=0;
14528 GNULIB_WCTYPE=0;
14529 GNULIB_ISWCTYPE=0;
14530 GNULIB_WCTRANS=0;
14531 GNULIB_TOWCTRANS=0;
14532 HAVE_ISWBLANK=1;
14533 HAVE_WCTYPE_T=1;
14534 HAVE_WCTRANS_T=1;
14535 REPLACE_ISWBLANK=0;
14536
14537
14538
14539
14540
14541
14542
14543 if false; then
14544 GL_COND_LIBTOOL_TRUE=
14545 GL_COND_LIBTOOL_FALSE='#'
14546 else
14547 GL_COND_LIBTOOL_TRUE='#'
14548 GL_COND_LIBTOOL_FALSE=
14549 fi
14550
14551 gl_cond_libtool=false
14552 gl_libdeps=
14553 gl_ltlibdeps=
14554 gl_m4_base='import/m4'
14555
14556
14557
14558
14559
14560
14561
14562
14563
14564 gl_source_base='import'
14565
14566
14567 if test $ac_cv_func_alloca_works = no; then
14568 :
14569 fi
14570
14571 # Define an additional variable used in the Makefile substitution.
14572 if test $ac_cv_working_alloca_h = yes; then
14573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
14574 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
14575 if ${gl_cv_rpl_alloca+:} false; then :
14576 $as_echo_n "(cached) " >&6
14577 else
14578
14579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14580 /* end confdefs.h. */
14581
14582 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
14583 Need own alloca
14584 #endif
14585
14586 _ACEOF
14587 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14588 $EGREP "Need own alloca" >/dev/null 2>&1; then :
14589 gl_cv_rpl_alloca=yes
14590 else
14591 gl_cv_rpl_alloca=no
14592 fi
14593 rm -f conftest*
14594
14595
14596 fi
14597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
14598 $as_echo "$gl_cv_rpl_alloca" >&6; }
14599 if test $gl_cv_rpl_alloca = yes; then
14600
14601 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
14602
14603 ALLOCA_H=alloca.h
14604 else
14605 ALLOCA_H=
14606 fi
14607 else
14608 ALLOCA_H=alloca.h
14609 fi
14610
14611 if test -n "$ALLOCA_H"; then
14612 GL_GENERATE_ALLOCA_H_TRUE=
14613 GL_GENERATE_ALLOCA_H_FALSE='#'
14614 else
14615 GL_GENERATE_ALLOCA_H_TRUE='#'
14616 GL_GENERATE_ALLOCA_H_FALSE=
14617 fi
14618
14619
14620
14621
14622
14623
14624 :
14625
14626
14627
14628
14629
14630 if test $ac_cv_header_arpa_inet_h = yes; then
14631 HAVE_ARPA_INET_H=1
14632 else
14633 HAVE_ARPA_INET_H=0
14634 fi
14635
14636
14637
14638
14639
14640
14641
14642 :
14643
14644
14645
14646
14647
14648
14649
14650
14651 if test $gl_cv_have_include_next = yes; then
14652 gl_cv_next_arpa_inet_h='<'arpa/inet.h'>'
14653 else
14654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <arpa/inet.h>" >&5
14655 $as_echo_n "checking absolute name of <arpa/inet.h>... " >&6; }
14656 if ${gl_cv_next_arpa_inet_h+:} false; then :
14657 $as_echo_n "(cached) " >&6
14658 else
14659
14660 if test $ac_cv_header_arpa_inet_h = yes; then
14661
14662
14663
14664
14665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14666 /* end confdefs.h. */
14667 #include <arpa/inet.h>
14668 _ACEOF
14669 case "$host_os" in
14670 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14671 *) gl_absname_cpp="$ac_cpp" ;;
14672 esac
14673
14674 case "$host_os" in
14675 mingw*)
14676 gl_dirsep_regex='[/\\]'
14677 ;;
14678 *)
14679 gl_dirsep_regex='\/'
14680 ;;
14681 esac
14682 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14683 gl_header_literal_regex=`echo 'arpa/inet.h' \
14684 | sed -e "$gl_make_literal_regex_sed"`
14685 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14686 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14687 s|^/[^/]|//&|
14688 p
14689 q
14690 }'
14691
14692 gl_cv_absolute_arpa_inet_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14693 sed -n "$gl_absolute_header_sed"`
14694
14695 gl_header=$gl_cv_absolute_arpa_inet_h
14696 gl_cv_next_arpa_inet_h='"'$gl_header'"'
14697 else
14698 gl_cv_next_arpa_inet_h='<'arpa/inet.h'>'
14699 fi
14700
14701
14702 fi
14703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_arpa_inet_h" >&5
14704 $as_echo "$gl_cv_next_arpa_inet_h" >&6; }
14705 fi
14706 NEXT_ARPA_INET_H=$gl_cv_next_arpa_inet_h
14707
14708 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14709 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14710 gl_next_as_first_directive='<'arpa/inet.h'>'
14711 else
14712 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14713 gl_next_as_first_directive=$gl_cv_next_arpa_inet_h
14714 fi
14715 NEXT_AS_FIRST_DIRECTIVE_ARPA_INET_H=$gl_next_as_first_directive
14716
14717
14718
14719
14720
14721
14722
14723
14724 for gl_func in inet_ntop inet_pton; do
14725 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
14726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
14727 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
14728 if eval \${$as_gl_Symbol+:} false; then :
14729 $as_echo_n "(cached) " >&6
14730 else
14731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14732 /* end confdefs.h. */
14733
14734 /* On some systems, this header is not self-consistent. */
14735 #if !(defined __GLIBC__ || defined __UCLIBC__)
14736 # include <sys/socket.h>
14737 #endif
14738 #ifdef __TANDEM
14739 # include <netdb.h>
14740 #endif
14741 #include <arpa/inet.h>
14742
14743 int
14744 main ()
14745 {
14746 #undef $gl_func
14747 (void) $gl_func;
14748 ;
14749 return 0;
14750 }
14751 _ACEOF
14752 if ac_fn_c_try_compile "$LINENO"; then :
14753 eval "$as_gl_Symbol=yes"
14754 else
14755 eval "$as_gl_Symbol=no"
14756 fi
14757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14758 fi
14759 eval ac_res=\$$as_gl_Symbol
14760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14761 $as_echo "$ac_res" >&6; }
14762 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
14763 cat >>confdefs.h <<_ACEOF
14764 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
14765 _ACEOF
14766
14767 eval ac_cv_have_decl_$gl_func=yes
14768 fi
14769 done
14770
14771
14772
14773
14774
14775
14776
14777
14778
14779
14780
14781 gl_LIBOBJS="$gl_LIBOBJS openat-proc.$ac_objext"
14782
14783
14784
14785
14786 if test $ac_cv_func_canonicalize_file_name = no; then
14787 HAVE_CANONICALIZE_FILE_NAME=0
14788 if test $ac_cv_func_realpath = no; then
14789 HAVE_REALPATH=0
14790 else
14791 case "$gl_cv_func_realpath_works" in
14792 *yes) ;;
14793 *) REPLACE_REALPATH=1 ;;
14794 esac
14795 fi
14796 else
14797 case "$gl_cv_func_realpath_works" in
14798 *yes)
14799 ;;
14800 *)
14801 REPLACE_CANONICALIZE_FILE_NAME=1
14802 REPLACE_REALPATH=1
14803 ;;
14804 esac
14805 fi
14806
14807 if test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1; then
14808
14809
14810
14811
14812
14813
14814
14815
14816 gl_LIBOBJS="$gl_LIBOBJS canonicalize-lgpl.$ac_objext"
14817
14818 fi
14819
14820
14821 cat >>confdefs.h <<_ACEOF
14822 #define GNULIB_CANONICALIZE_LGPL 1
14823 _ACEOF
14824
14825
14826
14827
14828
14829
14830
14831 GNULIB_CANONICALIZE_FILE_NAME=1
14832
14833
14834
14835
14836
14837 $as_echo "#define GNULIB_TEST_CANONICALIZE_FILE_NAME 1" >>confdefs.h
14838
14839
14840
14841
14842
14843
14844
14845
14846 GNULIB_REALPATH=1
14847
14848
14849
14850
14851
14852 $as_echo "#define GNULIB_TEST_REALPATH 1" >>confdefs.h
14853
14854
14855
14856
14857
14858
14859
14860
14861 GNULIB_CHDIR=1
14862
14863
14864
14865
14866
14867 $as_echo "#define GNULIB_TEST_CHDIR 1" >>confdefs.h
14868
14869
14870
14871
14872
14873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether this system has an arbitrary file name length limit" >&5
14874 $as_echo_n "checking whether this system has an arbitrary file name length limit... " >&6; }
14875 if ${gl_cv_have_arbitrary_file_name_length_limit+:} false; then :
14876 $as_echo_n "(cached) " >&6
14877 else
14878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14879 /* end confdefs.h. */
14880
14881 /* Arrange to define PATH_MAX, like "pathmax.h" does. */
14882 #if HAVE_UNISTD_H
14883 # include <unistd.h>
14884 #endif
14885 #include <limits.h>
14886 #if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN
14887 # include <sys/param.h>
14888 #endif
14889 #if !defined PATH_MAX && defined MAXPATHLEN
14890 # define PATH_MAX MAXPATHLEN
14891 #endif
14892 #ifdef __hpux
14893 # undef PATH_MAX
14894 # define PATH_MAX 1024
14895 #endif
14896 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
14897 # undef PATH_MAX
14898 # define PATH_MAX 260
14899 #endif
14900
14901 #ifdef PATH_MAX
14902 have_arbitrary_file_name_length_limit
14903 #endif
14904 _ACEOF
14905 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14906 $EGREP "have_arbitrary_file_name_length_limit" >/dev/null 2>&1; then :
14907 gl_cv_have_arbitrary_file_name_length_limit=yes
14908 else
14909 gl_cv_have_arbitrary_file_name_length_limit=no
14910 fi
14911 rm -f conftest*
14912
14913 fi
14914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_arbitrary_file_name_length_limit" >&5
14915 $as_echo "$gl_cv_have_arbitrary_file_name_length_limit" >&6; }
14916
14917 if test $gl_cv_have_arbitrary_file_name_length_limit = yes; then
14918
14919
14920
14921
14922
14923
14924
14925
14926 gl_LIBOBJS="$gl_LIBOBJS chdir-long.$ac_objext"
14927
14928 :
14929 fi
14930
14931
14932 $as_echo "#define GNULIB_TEST_CLOEXEC 1" >>confdefs.h
14933
14934
14935
14936
14937
14938 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
14939 REPLACE_CLOSE=1
14940 fi
14941
14942
14943
14944
14945
14946 :
14947
14948
14949
14950
14951
14952 if test $ac_cv_header_sys_socket_h != yes; then
14953 for ac_header in winsock2.h
14954 do :
14955 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
14956 if test "x$ac_cv_header_winsock2_h" = xyes; then :
14957 cat >>confdefs.h <<_ACEOF
14958 #define HAVE_WINSOCK2_H 1
14959 _ACEOF
14960
14961 fi
14962
14963 done
14964
14965 fi
14966 if test "$ac_cv_header_winsock2_h" = yes; then
14967 HAVE_WINSOCK2_H=1
14968 UNISTD_H_HAVE_WINSOCK2_H=1
14969 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
14970 else
14971 HAVE_WINSOCK2_H=0
14972 fi
14973
14974
14975 if test $UNISTD_H_HAVE_WINSOCK2_H = 1; then
14976 REPLACE_CLOSE=1
14977 fi
14978
14979
14980 if test $REPLACE_CLOSE = 0; then
14981
14982
14983
14984 :
14985
14986
14987
14988
14989
14990 if test $ac_cv_func_fchdir = no; then
14991 HAVE_FCHDIR=0
14992 fi
14993
14994 if test $HAVE_FCHDIR = 0; then
14995 REPLACE_CLOSE=1
14996 fi
14997 fi
14998
14999
15000 if test $REPLACE_CLOSE = 1; then
15001
15002
15003
15004
15005
15006
15007
15008
15009 gl_LIBOBJS="$gl_LIBOBJS close.$ac_objext"
15010
15011 fi
15012
15013
15014
15015
15016
15017 GNULIB_CLOSE=1
15018
15019
15020
15021
15022
15023 $as_echo "#define GNULIB_TEST_CLOSE 1" >>confdefs.h
15024
15025
15026
15027
15028
15029
15030 for ac_func in closedir
15031 do :
15032 ac_fn_c_check_func "$LINENO" "closedir" "ac_cv_func_closedir"
15033 if test "x$ac_cv_func_closedir" = xyes; then :
15034 cat >>confdefs.h <<_ACEOF
15035 #define HAVE_CLOSEDIR 1
15036 _ACEOF
15037
15038 fi
15039 done
15040
15041 if test $ac_cv_func_closedir = no; then
15042 HAVE_CLOSEDIR=0
15043 fi
15044
15045
15046
15047
15048 :
15049
15050
15051
15052
15053
15054 if test $ac_cv_func_fchdir = no; then
15055 HAVE_FCHDIR=0
15056 fi
15057
15058 if test $HAVE_FCHDIR = 0; then
15059 if test $HAVE_CLOSEDIR = 1; then
15060 REPLACE_CLOSEDIR=1
15061 fi
15062 fi
15063
15064 case $host_os,$HAVE_CLOSEDIR in
15065 os2*,1)
15066 REPLACE_CLOSEDIR=1;;
15067 esac
15068
15069 if test $HAVE_CLOSEDIR = 0 || test $REPLACE_CLOSEDIR = 1; then
15070
15071
15072
15073
15074
15075
15076
15077
15078 gl_LIBOBJS="$gl_LIBOBJS closedir.$ac_objext"
15079
15080 fi
15081
15082
15083
15084
15085
15086 GNULIB_CLOSEDIR=1
15087
15088
15089
15090
15091
15092 $as_echo "#define GNULIB_TEST_CLOSEDIR 1" >>confdefs.h
15093
15094
15095
15096
15097 if test "x$datarootdir" = x; then
15098 datarootdir='${datadir}'
15099
15100 fi
15101 if test "x$docdir" = x; then
15102 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
15103
15104 fi
15105 if test "x$htmldir" = x; then
15106 htmldir='${docdir}'
15107
15108 fi
15109 if test "x$dvidir" = x; then
15110 dvidir='${docdir}'
15111
15112 fi
15113 if test "x$pdfdir" = x; then
15114 pdfdir='${docdir}'
15115
15116 fi
15117 if test "x$psdir" = x; then
15118 psdir='${docdir}'
15119
15120 fi
15121 if test "x$lispdir" = x; then
15122 lispdir='${datarootdir}/emacs/site-lisp'
15123
15124 fi
15125 if test "x$localedir" = x; then
15126 localedir='${datarootdir}/locale'
15127
15128 fi
15129 if test "x$runstatedir" = x; then
15130 runstatedir='${localstatedir}/run'
15131
15132 fi
15133
15134 pkglibexecdir='${libexecdir}/${PACKAGE}'
15135
15136
15137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for d_ino member in directory struct" >&5
15138 $as_echo_n "checking for d_ino member in directory struct... " >&6; }
15139 if ${gl_cv_struct_dirent_d_ino+:} false; then :
15140 $as_echo_n "(cached) " >&6
15141 else
15142 if test "$cross_compiling" = yes; then :
15143 case "$host_os" in
15144 # Guess yes on glibc systems with Linux kernel.
15145 linux*-gnu*) gl_cv_struct_dirent_d_ino="guessing yes" ;;
15146 # If we don't know, assume the worst.
15147 *) gl_cv_struct_dirent_d_ino="guessing no" ;;
15148 esac
15149
15150 else
15151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15152 /* end confdefs.h. */
15153 #include <sys/types.h>
15154 #include <sys/stat.h>
15155 #include <dirent.h>
15156
15157 int
15158 main ()
15159 {
15160 DIR *dp = opendir (".");
15161 struct dirent *e;
15162 struct stat st;
15163 if (! dp)
15164 return 1;
15165 e = readdir (dp);
15166 if (! e)
15167 return 2;
15168 if (lstat (e->d_name, &st) != 0)
15169 return 3;
15170 if (e->d_ino != st.st_ino)
15171 return 4;
15172 closedir (dp);
15173 return 0;
15174
15175 ;
15176 return 0;
15177 }
15178 _ACEOF
15179 if ac_fn_c_try_run "$LINENO"; then :
15180 gl_cv_struct_dirent_d_ino=yes
15181 else
15182 gl_cv_struct_dirent_d_ino=no
15183 fi
15184 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15185 conftest.$ac_objext conftest.beam conftest.$ac_ext
15186 fi
15187
15188 fi
15189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_struct_dirent_d_ino" >&5
15190 $as_echo "$gl_cv_struct_dirent_d_ino" >&6; }
15191 case "$gl_cv_struct_dirent_d_ino" in
15192 *yes)
15193
15194 $as_echo "#define D_INO_IN_DIRENT 1" >>confdefs.h
15195
15196 ;;
15197 esac
15198
15199
15200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for d_type member in directory struct" >&5
15201 $as_echo_n "checking for d_type member in directory struct... " >&6; }
15202 if ${gl_cv_struct_dirent_d_type+:} false; then :
15203 $as_echo_n "(cached) " >&6
15204 else
15205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15206 /* end confdefs.h. */
15207
15208 #include <sys/types.h>
15209 #include <dirent.h>
15210
15211 int
15212 main ()
15213 {
15214 struct dirent dp; dp.d_type = 0;
15215 ;
15216 return 0;
15217 }
15218 _ACEOF
15219 if ac_fn_c_try_link "$LINENO"; then :
15220 gl_cv_struct_dirent_d_type=yes
15221 else
15222 gl_cv_struct_dirent_d_type=no
15223 fi
15224 rm -f core conftest.err conftest.$ac_objext \
15225 conftest$ac_exeext conftest.$ac_ext
15226
15227
15228 fi
15229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_struct_dirent_d_type" >&5
15230 $as_echo "$gl_cv_struct_dirent_d_type" >&6; }
15231 if test $gl_cv_struct_dirent_d_type = yes; then
15232
15233 $as_echo "#define HAVE_STRUCT_DIRENT_D_TYPE 1" >>confdefs.h
15234
15235 fi
15236
15237
15238
15239
15240
15241
15242
15243
15244
15245
15246
15247 :
15248
15249
15250
15251
15252
15253
15254
15255
15256 if test $gl_cv_have_include_next = yes; then
15257 gl_cv_next_dirent_h='<'dirent.h'>'
15258 else
15259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <dirent.h>" >&5
15260 $as_echo_n "checking absolute name of <dirent.h>... " >&6; }
15261 if ${gl_cv_next_dirent_h+:} false; then :
15262 $as_echo_n "(cached) " >&6
15263 else
15264
15265 if test $ac_cv_header_dirent_h = yes; then
15266
15267
15268
15269
15270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15271 /* end confdefs.h. */
15272 #include <dirent.h>
15273 _ACEOF
15274 case "$host_os" in
15275 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15276 *) gl_absname_cpp="$ac_cpp" ;;
15277 esac
15278
15279 case "$host_os" in
15280 mingw*)
15281 gl_dirsep_regex='[/\\]'
15282 ;;
15283 *)
15284 gl_dirsep_regex='\/'
15285 ;;
15286 esac
15287 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
15288 gl_header_literal_regex=`echo 'dirent.h' \
15289 | sed -e "$gl_make_literal_regex_sed"`
15290 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15291 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15292 s|^/[^/]|//&|
15293 p
15294 q
15295 }'
15296
15297 gl_cv_absolute_dirent_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15298 sed -n "$gl_absolute_header_sed"`
15299
15300 gl_header=$gl_cv_absolute_dirent_h
15301 gl_cv_next_dirent_h='"'$gl_header'"'
15302 else
15303 gl_cv_next_dirent_h='<'dirent.h'>'
15304 fi
15305
15306
15307 fi
15308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_dirent_h" >&5
15309 $as_echo "$gl_cv_next_dirent_h" >&6; }
15310 fi
15311 NEXT_DIRENT_H=$gl_cv_next_dirent_h
15312
15313 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15314 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15315 gl_next_as_first_directive='<'dirent.h'>'
15316 else
15317 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15318 gl_next_as_first_directive=$gl_cv_next_dirent_h
15319 fi
15320 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H=$gl_next_as_first_directive
15321
15322
15323
15324
15325 if test $ac_cv_header_dirent_h = yes; then
15326 HAVE_DIRENT_H=1
15327 else
15328 HAVE_DIRENT_H=0
15329 fi
15330
15331
15332
15333 for gl_func in alphasort closedir dirfd fdopendir opendir readdir rewinddir scandir; do
15334 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
15335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
15336 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
15337 if eval \${$as_gl_Symbol+:} false; then :
15338 $as_echo_n "(cached) " >&6
15339 else
15340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15341 /* end confdefs.h. */
15342 #include <dirent.h>
15343
15344 int
15345 main ()
15346 {
15347 #undef $gl_func
15348 (void) $gl_func;
15349 ;
15350 return 0;
15351 }
15352 _ACEOF
15353 if ac_fn_c_try_compile "$LINENO"; then :
15354 eval "$as_gl_Symbol=yes"
15355 else
15356 eval "$as_gl_Symbol=no"
15357 fi
15358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15359 fi
15360 eval ac_res=\$$as_gl_Symbol
15361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15362 $as_echo "$ac_res" >&6; }
15363 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
15364 cat >>confdefs.h <<_ACEOF
15365 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
15366 _ACEOF
15367
15368 eval ac_cv_have_decl_$gl_func=yes
15369 fi
15370 done
15371
15372
15373
15374
15375
15376
15377
15378 for ac_func in dirfd
15379 do :
15380 ac_fn_c_check_func "$LINENO" "dirfd" "ac_cv_func_dirfd"
15381 if test "x$ac_cv_func_dirfd" = xyes; then :
15382 cat >>confdefs.h <<_ACEOF
15383 #define HAVE_DIRFD 1
15384 _ACEOF
15385
15386 fi
15387 done
15388
15389 ac_fn_c_check_decl "$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "#include <sys/types.h>
15390 #include <dirent.h>
15391 "
15392 if test "x$ac_cv_have_decl_dirfd" = xyes; then :
15393 ac_have_decl=1
15394 else
15395 ac_have_decl=0
15396 fi
15397
15398 cat >>confdefs.h <<_ACEOF
15399 #define HAVE_DECL_DIRFD $ac_have_decl
15400 _ACEOF
15401
15402 if test $ac_cv_have_decl_dirfd = no; then
15403 HAVE_DECL_DIRFD=0
15404 fi
15405
15406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dirfd is a macro" >&5
15407 $as_echo_n "checking whether dirfd is a macro... " >&6; }
15408 if ${gl_cv_func_dirfd_macro+:} false; then :
15409 $as_echo_n "(cached) " >&6
15410 else
15411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15412 /* end confdefs.h. */
15413
15414 #include <sys/types.h>
15415 #include <dirent.h>
15416 #ifdef dirfd
15417 dirent_header_defines_dirfd
15418 #endif
15419 _ACEOF
15420 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15421 $EGREP "dirent_header_defines_dirfd" >/dev/null 2>&1; then :
15422 gl_cv_func_dirfd_macro=yes
15423 else
15424 gl_cv_func_dirfd_macro=no
15425 fi
15426 rm -f conftest*
15427
15428 fi
15429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dirfd_macro" >&5
15430 $as_echo "$gl_cv_func_dirfd_macro" >&6; }
15431
15432 # Use the replacement if we have no function or macro with that name,
15433 # or if OS/2 kLIBC whose dirfd() does not work.
15434 # Replace only if the system declares dirfd already.
15435 case $ac_cv_func_dirfd,$gl_cv_func_dirfd_macro,$host_os,$ac_cv_have_decl_dirfd in
15436 no,no,*,yes | *,*,os2*,yes)
15437 REPLACE_DIRFD=1
15438
15439 $as_echo "#define REPLACE_DIRFD 1" >>confdefs.h
15440 ;;
15441 esac
15442
15443 if test $ac_cv_func_dirfd = no && test $gl_cv_func_dirfd_macro = no \
15444 || test $REPLACE_DIRFD = 1; then
15445
15446
15447
15448
15449
15450
15451
15452
15453 gl_LIBOBJS="$gl_LIBOBJS dirfd.$ac_objext"
15454
15455
15456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get the file descriptor associated with an open DIR*" >&5
15457 $as_echo_n "checking how to get the file descriptor associated with an open DIR*... " >&6; }
15458 if ${gl_cv_sys_dir_fd_member_name+:} false; then :
15459 $as_echo_n "(cached) " >&6
15460 else
15461
15462 dirfd_save_CFLAGS=$CFLAGS
15463 for ac_expr in d_fd dd_fd; do
15464
15465 CFLAGS="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr"
15466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15467 /* end confdefs.h. */
15468
15469 #include <sys/types.h>
15470 #include <dirent.h>
15471 int
15472 main ()
15473 {
15474 DIR *dir_p = opendir("."); (void) dir_p->DIR_FD_MEMBER_NAME;
15475 ;
15476 return 0;
15477 }
15478 _ACEOF
15479 if ac_fn_c_try_compile "$LINENO"; then :
15480 dir_fd_found=yes
15481
15482 fi
15483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15484 CFLAGS=$dirfd_save_CFLAGS
15485 test "$dir_fd_found" = yes && break
15486 done
15487 test "$dir_fd_found" = yes || ac_expr=no_such_member
15488
15489 gl_cv_sys_dir_fd_member_name=$ac_expr
15490
15491
15492 fi
15493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_dir_fd_member_name" >&5
15494 $as_echo "$gl_cv_sys_dir_fd_member_name" >&6; }
15495 if test $gl_cv_sys_dir_fd_member_name != no_such_member; then
15496
15497 cat >>confdefs.h <<_ACEOF
15498 #define DIR_FD_MEMBER_NAME $gl_cv_sys_dir_fd_member_name
15499 _ACEOF
15500
15501 fi
15502
15503
15504 fi
15505
15506
15507
15508
15509
15510 GNULIB_DIRFD=1
15511
15512
15513
15514
15515
15516 $as_echo "#define GNULIB_TEST_DIRFD 1" >>confdefs.h
15517
15518
15519
15520
15521
15522
15523
15524
15525
15526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
15527 $as_echo_n "checking whether // is distinct from /... " >&6; }
15528 if ${gl_cv_double_slash_root+:} false; then :
15529 $as_echo_n "(cached) " >&6
15530 else
15531 if test x"$cross_compiling" = xyes ; then
15532 # When cross-compiling, there is no way to tell whether // is special
15533 # short of a list of hosts. However, the only known hosts to date
15534 # that have a distinct // are Apollo DomainOS (too old to port to),
15535 # Cygwin, and z/OS. If anyone knows of another system for which // has
15536 # special semantics and is distinct from /, please report it to
15537 # <bug-gnulib@gnu.org>.
15538 case $host in
15539 *-cygwin | i370-ibm-openedition)
15540 gl_cv_double_slash_root=yes ;;
15541 *)
15542 # Be optimistic and assume that / and // are the same when we
15543 # don't know.
15544 gl_cv_double_slash_root='unknown, assuming no' ;;
15545 esac
15546 else
15547 set x `ls -di / // 2>/dev/null`
15548 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
15549 gl_cv_double_slash_root=no
15550 else
15551 gl_cv_double_slash_root=yes
15552 fi
15553 fi
15554 fi
15555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
15556 $as_echo "$gl_cv_double_slash_root" >&6; }
15557 if test "$gl_cv_double_slash_root" = yes; then
15558
15559 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
15560
15561 fi
15562
15563
15564
15565
15566 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
15567 REPLACE_DUP=1
15568 fi
15569
15570
15571
15572
15573 :
15574
15575
15576
15577
15578
15579 if test $ac_cv_func_fchdir = no; then
15580 HAVE_FCHDIR=0
15581 fi
15582
15583 if test $HAVE_FCHDIR = 0; then
15584 REPLACE_DUP=1
15585 fi
15586
15587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup works" >&5
15588 $as_echo_n "checking whether dup works... " >&6; }
15589 if ${gl_cv_func_dup_works+:} false; then :
15590 $as_echo_n "(cached) " >&6
15591 else
15592 if test "$cross_compiling" = yes; then :
15593 gl_cv_func_dup_works='guessing yes'
15594 else
15595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15596 /* end confdefs.h. */
15597 #include <unistd.h>
15598 #include <fcntl.h>
15599 #include <errno.h>
15600 int
15601 main ()
15602 {
15603 /* On OS/2 kLIBC, dup does not work on a directory fd. */
15604 int fd = open (".", O_RDONLY);
15605 return fd < 0 ? 1 : dup (fd) < 0 ? 2 : 0;
15606
15607 ;
15608 return 0;
15609 }
15610
15611 _ACEOF
15612 if ac_fn_c_try_run "$LINENO"; then :
15613 gl_cv_func_dup_works=yes
15614 else
15615 gl_cv_func_dup_works=no
15616 fi
15617 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15618 conftest.$ac_objext conftest.beam conftest.$ac_ext
15619 fi
15620
15621
15622 fi
15623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup_works" >&5
15624 $as_echo "$gl_cv_func_dup_works" >&6; }
15625 case "$gl_cv_func_dup_works" in
15626 *yes) ;;
15627 *)
15628 REPLACE_DUP=1
15629 ;;
15630 esac
15631
15632 if test $REPLACE_DUP = 1; then
15633
15634
15635
15636
15637
15638
15639
15640
15641 gl_LIBOBJS="$gl_LIBOBJS dup.$ac_objext"
15642
15643 :
15644 fi
15645
15646
15647
15648
15649
15650 GNULIB_DUP=1
15651
15652
15653
15654
15655
15656 $as_echo "#define GNULIB_TEST_DUP 1" >>confdefs.h
15657
15658
15659
15660
15661
15662
15663
15664
15665 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
15666
15667
15668 if test $HAVE_DUP2 = 1; then
15669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
15670 $as_echo_n "checking whether dup2 works... " >&6; }
15671 if ${gl_cv_func_dup2_works+:} false; then :
15672 $as_echo_n "(cached) " >&6
15673 else
15674 if test "$cross_compiling" = yes; then :
15675 case "$host_os" in
15676 mingw*) # on this platform, dup2 always returns 0 for success
15677 gl_cv_func_dup2_works="guessing no" ;;
15678 cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
15679 gl_cv_func_dup2_works="guessing no" ;;
15680 aix* | freebsd*)
15681 # on AIX 7.1 and FreeBSD 6.1, dup2 (1,toobig) gives EMFILE,
15682 # not EBADF.
15683 gl_cv_func_dup2_works="guessing no" ;;
15684 haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
15685 gl_cv_func_dup2_works="guessing no" ;;
15686 *-android*) # implemented using dup3(), which fails if oldfd == newfd
15687 gl_cv_func_dup2_works="guessing no" ;;
15688 os2*) # on OS/2 kLIBC, dup2() does not work on a directory fd.
15689 gl_cv_func_dup2_works="guessing no" ;;
15690 *) gl_cv_func_dup2_works="guessing yes" ;;
15691 esac
15692 else
15693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15694 /* end confdefs.h. */
15695
15696 #include <errno.h>
15697 #include <fcntl.h>
15698 #include <limits.h>
15699 #include <sys/resource.h>
15700 #include <unistd.h>
15701 #ifndef RLIM_SAVED_CUR
15702 # define RLIM_SAVED_CUR RLIM_INFINITY
15703 #endif
15704 #ifndef RLIM_SAVED_MAX
15705 # define RLIM_SAVED_MAX RLIM_INFINITY
15706 #endif
15707
15708 int
15709 main ()
15710 {
15711 int result = 0;
15712 int bad_fd = INT_MAX;
15713 struct rlimit rlim;
15714 if (getrlimit (RLIMIT_NOFILE, &rlim) == 0
15715 && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX
15716 && rlim.rlim_cur != RLIM_INFINITY
15717 && rlim.rlim_cur != RLIM_SAVED_MAX
15718 && rlim.rlim_cur != RLIM_SAVED_CUR)
15719 bad_fd = rlim.rlim_cur;
15720 #ifdef FD_CLOEXEC
15721 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
15722 result |= 1;
15723 #endif
15724 if (dup2 (1, 1) != 1)
15725 result |= 2;
15726 #ifdef FD_CLOEXEC
15727 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
15728 result |= 4;
15729 #endif
15730 close (0);
15731 if (dup2 (0, 0) != -1)
15732 result |= 8;
15733 /* Many gnulib modules require POSIX conformance of EBADF. */
15734 if (dup2 (2, bad_fd) == -1 && errno != EBADF)
15735 result |= 16;
15736 /* Flush out some cygwin core dumps. */
15737 if (dup2 (2, -1) != -1 || errno != EBADF)
15738 result |= 32;
15739 dup2 (2, 255);
15740 dup2 (2, 256);
15741 /* On OS/2 kLIBC, dup2() does not work on a directory fd. */
15742 {
15743 int fd = open (".", O_RDONLY);
15744 if (fd == -1)
15745 result |= 64;
15746 else if (dup2 (fd, fd + 1) == -1)
15747 result |= 128;
15748
15749 close (fd);
15750 }
15751 return result;
15752 ;
15753 return 0;
15754 }
15755
15756 _ACEOF
15757 if ac_fn_c_try_run "$LINENO"; then :
15758 gl_cv_func_dup2_works=yes
15759 else
15760 gl_cv_func_dup2_works=no
15761 fi
15762 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15763 conftest.$ac_objext conftest.beam conftest.$ac_ext
15764 fi
15765
15766
15767 fi
15768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
15769 $as_echo "$gl_cv_func_dup2_works" >&6; }
15770 case "$gl_cv_func_dup2_works" in
15771 *yes) ;;
15772 *)
15773 REPLACE_DUP2=1
15774 for ac_func in setdtablesize
15775 do :
15776 ac_fn_c_check_func "$LINENO" "setdtablesize" "ac_cv_func_setdtablesize"
15777 if test "x$ac_cv_func_setdtablesize" = xyes; then :
15778 cat >>confdefs.h <<_ACEOF
15779 #define HAVE_SETDTABLESIZE 1
15780 _ACEOF
15781
15782 fi
15783 done
15784
15785 ;;
15786 esac
15787 fi
15788
15789
15790
15791
15792 :
15793
15794
15795
15796
15797
15798 if test $ac_cv_func_fchdir = no; then
15799 HAVE_FCHDIR=0
15800 fi
15801
15802 if test $HAVE_FCHDIR = 0; then
15803 if test $HAVE_DUP2 = 1; then
15804 REPLACE_DUP2=1
15805 fi
15806 fi
15807
15808
15809 if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then
15810
15811
15812
15813
15814
15815
15816
15817
15818 gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
15819
15820
15821 fi
15822
15823
15824
15825
15826
15827 GNULIB_DUP2=1
15828
15829
15830
15831
15832
15833 $as_echo "#define GNULIB_TEST_DUP2 1" >>confdefs.h
15834
15835
15836
15837
15838
15839
15840
15841
15842
15843 GNULIB_ENVIRON=1
15844
15845
15846
15847
15848
15849 $as_echo "#define GNULIB_TEST_ENVIRON 1" >>confdefs.h
15850
15851
15852
15853
15854
15855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
15856 $as_echo_n "checking for error_at_line... " >&6; }
15857 if ${ac_cv_lib_error_at_line+:} false; then :
15858 $as_echo_n "(cached) " >&6
15859 else
15860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15861 /* end confdefs.h. */
15862 #include <error.h>
15863 int
15864 main ()
15865 {
15866 error_at_line (0, 0, "", 0, "an error occurred");
15867 ;
15868 return 0;
15869 }
15870 _ACEOF
15871 if ac_fn_c_try_link "$LINENO"; then :
15872 ac_cv_lib_error_at_line=yes
15873 else
15874 ac_cv_lib_error_at_line=no
15875 fi
15876 rm -f core conftest.err conftest.$ac_objext \
15877 conftest$ac_exeext conftest.$ac_ext
15878 fi
15879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
15880 $as_echo "$ac_cv_lib_error_at_line" >&6; }
15881
15882 if test $ac_cv_lib_error_at_line = no; then
15883
15884
15885
15886
15887
15888
15889
15890
15891 gl_LIBOBJS="$gl_LIBOBJS error.$ac_objext"
15892
15893
15894
15895 :
15896
15897 fi
15898
15899
15900
15901
15902
15903
15904
15905 :
15906
15907
15908
15909
15910
15911 if test $ac_cv_have_decl_fchdir = no; then
15912 HAVE_DECL_FCHDIR=0
15913 fi
15914
15915
15916 if test $HAVE_FCHDIR = 0; then
15917
15918
15919
15920
15921
15922
15923
15924
15925 gl_LIBOBJS="$gl_LIBOBJS fchdir.$ac_objext"
15926
15927 :
15928
15929 $as_echo "#define REPLACE_FCHDIR 1" >>confdefs.h
15930
15931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open can visit directories" >&5
15932 $as_echo_n "checking whether open can visit directories... " >&6; }
15933 if ${gl_cv_func_open_directory_works+:} false; then :
15934 $as_echo_n "(cached) " >&6
15935 else
15936 if test "$cross_compiling" = yes; then :
15937 case "$host_os" in
15938 # Guess yes on glibc systems.
15939 *-gnu*) gl_cv_func_open_directory_works="guessing yes" ;;
15940 # If we don't know, assume the worst.
15941 *) gl_cv_func_open_directory_works="guessing no" ;;
15942 esac
15943
15944 else
15945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15946 /* end confdefs.h. */
15947 #include <fcntl.h>
15948
15949 int
15950 main ()
15951 {
15952 return open(".", O_RDONLY) < 0;
15953 ;
15954 return 0;
15955 }
15956 _ACEOF
15957 if ac_fn_c_try_run "$LINENO"; then :
15958 gl_cv_func_open_directory_works=yes
15959 else
15960 gl_cv_func_open_directory_works=no
15961 fi
15962 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15963 conftest.$ac_objext conftest.beam conftest.$ac_ext
15964 fi
15965
15966 fi
15967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_open_directory_works" >&5
15968 $as_echo "$gl_cv_func_open_directory_works" >&6; }
15969 case "$gl_cv_func_open_directory_works" in
15970 *yes) ;;
15971 *)
15972
15973 $as_echo "#define REPLACE_OPEN_DIRECTORY 1" >>confdefs.h
15974
15975 ;;
15976 esac
15977 fi
15978
15979
15980
15981
15982
15983
15984 GNULIB_FCHDIR=1
15985
15986
15987
15988
15989
15990 $as_echo "#define GNULIB_TEST_FCHDIR 1" >>confdefs.h
15991
15992
15993
15994
15995
15996
15997
15998
15999 :
16000
16001
16002
16003
16004
16005 if test $ac_cv_func_fcntl = no; then
16006
16007
16008
16009 :
16010
16011
16012
16013
16014
16015 if test $ac_cv_func_fcntl = no; then
16016 HAVE_FCNTL=0
16017 else
16018 REPLACE_FCNTL=1
16019 fi
16020
16021 else
16022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl handles F_DUPFD correctly" >&5
16023 $as_echo_n "checking whether fcntl handles F_DUPFD correctly... " >&6; }
16024 if ${gl_cv_func_fcntl_f_dupfd_works+:} false; then :
16025 $as_echo_n "(cached) " >&6
16026 else
16027 if test "$cross_compiling" = yes; then :
16028 case $host_os in
16029 aix* | cygwin* | haiku*)
16030 gl_cv_func_fcntl_f_dupfd_works="guessing no" ;;
16031 *) gl_cv_func_fcntl_f_dupfd_works="guessing yes" ;;
16032 esac
16033 else
16034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16035 /* end confdefs.h. */
16036 #include <errno.h>
16037 #include <fcntl.h>
16038 #include <limits.h>
16039 #include <sys/resource.h>
16040 #include <unistd.h>
16041 #ifndef RLIM_SAVED_CUR
16042 # define RLIM_SAVED_CUR RLIM_INFINITY
16043 #endif
16044 #ifndef RLIM_SAVED_MAX
16045 # define RLIM_SAVED_MAX RLIM_INFINITY
16046 #endif
16047
16048 int
16049 main ()
16050 {
16051 int result = 0;
16052 int bad_fd = INT_MAX;
16053 struct rlimit rlim;
16054 if (getrlimit (RLIMIT_NOFILE, &rlim) == 0
16055 && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX
16056 && rlim.rlim_cur != RLIM_INFINITY
16057 && rlim.rlim_cur != RLIM_SAVED_MAX
16058 && rlim.rlim_cur != RLIM_SAVED_CUR)
16059 bad_fd = rlim.rlim_cur;
16060 if (fcntl (0, F_DUPFD, -1) != -1) result |= 1;
16061 if (errno != EINVAL) result |= 2;
16062 if (fcntl (0, F_DUPFD, bad_fd) != -1) result |= 4;
16063 if (errno != EINVAL) result |= 8;
16064 /* On OS/2 kLIBC, F_DUPFD does not work on a directory fd */
16065 {
16066 int fd;
16067 fd = open (".", O_RDONLY);
16068 if (fd == -1)
16069 result |= 16;
16070 else if (fcntl (fd, F_DUPFD, STDERR_FILENO + 1) == -1)
16071 result |= 32;
16072
16073 close (fd);
16074 }
16075 return result;
16076 ;
16077 return 0;
16078 }
16079 _ACEOF
16080 if ac_fn_c_try_run "$LINENO"; then :
16081 gl_cv_func_fcntl_f_dupfd_works=yes
16082 else
16083 gl_cv_func_fcntl_f_dupfd_works=no
16084 fi
16085 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16086 conftest.$ac_objext conftest.beam conftest.$ac_ext
16087 fi
16088
16089 fi
16090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_works" >&5
16091 $as_echo "$gl_cv_func_fcntl_f_dupfd_works" >&6; }
16092 case $gl_cv_func_fcntl_f_dupfd_works in
16093 *yes) ;;
16094 *)
16095
16096
16097 :
16098
16099
16100
16101
16102
16103 if test $ac_cv_func_fcntl = no; then
16104 HAVE_FCNTL=0
16105 else
16106 REPLACE_FCNTL=1
16107 fi
16108
16109
16110 $as_echo "#define FCNTL_DUPFD_BUGGY 1" >>confdefs.h
16111 ;;
16112 esac
16113
16114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl understands F_DUPFD_CLOEXEC" >&5
16115 $as_echo_n "checking whether fcntl understands F_DUPFD_CLOEXEC... " >&6; }
16116 if ${gl_cv_func_fcntl_f_dupfd_cloexec+:} false; then :
16117 $as_echo_n "(cached) " >&6
16118 else
16119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16120 /* end confdefs.h. */
16121
16122 #include <fcntl.h>
16123 #ifndef F_DUPFD_CLOEXEC
16124 choke me
16125 #endif
16126
16127 int
16128 main ()
16129 {
16130
16131 ;
16132 return 0;
16133 }
16134 _ACEOF
16135 if ac_fn_c_try_compile "$LINENO"; then :
16136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16137 /* end confdefs.h. */
16138
16139 #ifdef __linux__
16140 /* The Linux kernel only added F_DUPFD_CLOEXEC in 2.6.24, so we always replace
16141 it to support the semantics on older kernels that failed with EINVAL. */
16142 choke me
16143 #endif
16144
16145 int
16146 main ()
16147 {
16148
16149 ;
16150 return 0;
16151 }
16152 _ACEOF
16153 if ac_fn_c_try_compile "$LINENO"; then :
16154 gl_cv_func_fcntl_f_dupfd_cloexec=yes
16155 else
16156 gl_cv_func_fcntl_f_dupfd_cloexec="needs runtime check"
16157 fi
16158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16159 else
16160 gl_cv_func_fcntl_f_dupfd_cloexec=no
16161 fi
16162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16163 fi
16164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_cloexec" >&5
16165 $as_echo "$gl_cv_func_fcntl_f_dupfd_cloexec" >&6; }
16166 if test "$gl_cv_func_fcntl_f_dupfd_cloexec" != yes; then
16167
16168
16169
16170 :
16171
16172
16173
16174
16175
16176 if test $ac_cv_func_fcntl = no; then
16177 HAVE_FCNTL=0
16178 else
16179 REPLACE_FCNTL=1
16180 fi
16181
16182 fi
16183 fi
16184
16185
16186
16187
16188 :
16189
16190
16191
16192
16193
16194 if test $ac_cv_func_fchdir = no; then
16195 HAVE_FCHDIR=0
16196 fi
16197
16198 if test $HAVE_FCHDIR = 0; then
16199
16200
16201
16202 :
16203
16204
16205
16206
16207
16208 if test $ac_cv_func_fcntl = no; then
16209 HAVE_FCNTL=0
16210 else
16211 REPLACE_FCNTL=1
16212 fi
16213
16214 fi
16215
16216
16217 if test $HAVE_FCNTL = 0 || test $REPLACE_FCNTL = 1; then
16218
16219
16220
16221
16222
16223
16224
16225
16226 gl_LIBOBJS="$gl_LIBOBJS fcntl.$ac_objext"
16227
16228 fi
16229
16230
16231
16232
16233
16234 GNULIB_FCNTL=1
16235
16236
16237
16238
16239
16240 $as_echo "#define GNULIB_TEST_FCNTL 1" >>confdefs.h
16241
16242
16243
16244
16245
16246
16247
16248
16249
16250
16251
16252
16253
16254
16255 if test $gl_cv_have_include_next = yes; then
16256 gl_cv_next_fcntl_h='<'fcntl.h'>'
16257 else
16258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
16259 $as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
16260 if ${gl_cv_next_fcntl_h+:} false; then :
16261 $as_echo_n "(cached) " >&6
16262 else
16263
16264
16265
16266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16267 /* end confdefs.h. */
16268 #include <fcntl.h>
16269 _ACEOF
16270 case "$host_os" in
16271 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16272 *) gl_absname_cpp="$ac_cpp" ;;
16273 esac
16274
16275 case "$host_os" in
16276 mingw*)
16277 gl_dirsep_regex='[/\\]'
16278 ;;
16279 *)
16280 gl_dirsep_regex='\/'
16281 ;;
16282 esac
16283 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
16284 gl_header_literal_regex=`echo 'fcntl.h' \
16285 | sed -e "$gl_make_literal_regex_sed"`
16286 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16287 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16288 s|^/[^/]|//&|
16289 p
16290 q
16291 }'
16292
16293 gl_cv_absolute_fcntl_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16294 sed -n "$gl_absolute_header_sed"`
16295
16296 gl_header=$gl_cv_absolute_fcntl_h
16297 gl_cv_next_fcntl_h='"'$gl_header'"'
16298
16299
16300 fi
16301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
16302 $as_echo "$gl_cv_next_fcntl_h" >&6; }
16303 fi
16304 NEXT_FCNTL_H=$gl_cv_next_fcntl_h
16305
16306 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16307 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16308 gl_next_as_first_directive='<'fcntl.h'>'
16309 else
16310 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16311 gl_next_as_first_directive=$gl_cv_next_fcntl_h
16312 fi
16313 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H=$gl_next_as_first_directive
16314
16315
16316
16317
16318
16319
16320
16321
16322
16323
16324 for gl_func in fcntl openat; do
16325 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
16326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
16327 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
16328 if eval \${$as_gl_Symbol+:} false; then :
16329 $as_echo_n "(cached) " >&6
16330 else
16331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16332 /* end confdefs.h. */
16333 #include <fcntl.h>
16334
16335 int
16336 main ()
16337 {
16338 #undef $gl_func
16339 (void) $gl_func;
16340 ;
16341 return 0;
16342 }
16343 _ACEOF
16344 if ac_fn_c_try_compile "$LINENO"; then :
16345 eval "$as_gl_Symbol=yes"
16346 else
16347 eval "$as_gl_Symbol=no"
16348 fi
16349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16350 fi
16351 eval ac_res=\$$as_gl_Symbol
16352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16353 $as_echo "$ac_res" >&6; }
16354 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
16355 cat >>confdefs.h <<_ACEOF
16356 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
16357 _ACEOF
16358
16359 eval ac_cv_have_decl_$gl_func=yes
16360 fi
16361 done
16362
16363
16364
16365
16366
16367
16368
16369 ac_fn_c_check_decl "$LINENO" "fdopendir" "ac_cv_have_decl_fdopendir" "
16370 #include <dirent.h>
16371
16372 "
16373 if test "x$ac_cv_have_decl_fdopendir" = xyes; then :
16374 ac_have_decl=1
16375 else
16376 ac_have_decl=0
16377 fi
16378
16379 cat >>confdefs.h <<_ACEOF
16380 #define HAVE_DECL_FDOPENDIR $ac_have_decl
16381 _ACEOF
16382 if test $ac_have_decl = 1; then :
16383
16384 else
16385 HAVE_DECL_FDOPENDIR=0
16386 fi
16387
16388
16389 :
16390
16391
16392
16393
16394
16395 if test $ac_cv_func_fdopendir = no; then
16396 HAVE_FDOPENDIR=0
16397 else
16398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fdopendir works" >&5
16399 $as_echo_n "checking whether fdopendir works... " >&6; }
16400 if ${gl_cv_func_fdopendir_works+:} false; then :
16401 $as_echo_n "(cached) " >&6
16402 else
16403 if test "$cross_compiling" = yes; then :
16404 case "$host_os" in
16405 # Guess yes on glibc systems.
16406 *-gnu*) gl_cv_func_fdopendir_works="guessing yes" ;;
16407 # If we don't know, assume the worst.
16408 *) gl_cv_func_fdopendir_works="guessing no" ;;
16409 esac
16410
16411 else
16412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16413 /* end confdefs.h. */
16414
16415 #include <dirent.h>
16416 #include <fcntl.h>
16417 #include <unistd.h>
16418 #if !HAVE_DECL_FDOPENDIR
16419 extern
16420 # ifdef __cplusplus
16421 "C"
16422 # endif
16423 DIR *fdopendir (int);
16424 #endif
16425
16426 int
16427 main ()
16428 {
16429 int result = 0;
16430 int fd = open ("conftest.c", O_RDONLY);
16431 if (fd < 0) result |= 1;
16432 if (fdopendir (fd)) result |= 2;
16433 if (close (fd)) result |= 4;
16434 return result;
16435 ;
16436 return 0;
16437 }
16438 _ACEOF
16439 if ac_fn_c_try_run "$LINENO"; then :
16440 gl_cv_func_fdopendir_works=yes
16441 else
16442 gl_cv_func_fdopendir_works=no
16443 fi
16444 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16445 conftest.$ac_objext conftest.beam conftest.$ac_ext
16446 fi
16447
16448 fi
16449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fdopendir_works" >&5
16450 $as_echo "$gl_cv_func_fdopendir_works" >&6; }
16451 case "$gl_cv_func_fdopendir_works" in
16452 *yes) ;;
16453 *)
16454 REPLACE_FDOPENDIR=1
16455 ;;
16456 esac
16457 fi
16458
16459 if test $HAVE_FDOPENDIR = 0 || test $REPLACE_FDOPENDIR = 1; then
16460
16461
16462
16463
16464
16465
16466
16467
16468 gl_LIBOBJS="$gl_LIBOBJS fdopendir.$ac_objext"
16469
16470 fi
16471
16472
16473
16474
16475
16476 GNULIB_FDOPENDIR=1
16477
16478
16479
16480
16481
16482 $as_echo "#define GNULIB_TEST_FDOPENDIR 1" >>confdefs.h
16483
16484
16485
16486
16487
16488 cat >>confdefs.h <<_ACEOF
16489 #define GNULIB_FDOPENDIR 1
16490 _ACEOF
16491
16492
16493
16494
16495 :
16496
16497
16498
16499
16500
16501
16502
16503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array member" >&5
16504 $as_echo_n "checking for flexible array member... " >&6; }
16505 if ${ac_cv_c_flexmember+:} false; then :
16506 $as_echo_n "(cached) " >&6
16507 else
16508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16509 /* end confdefs.h. */
16510 #include <stdlib.h>
16511 #include <stdio.h>
16512 #include <stddef.h>
16513 struct s { int n; double d[]; };
16514 int
16515 main ()
16516 {
16517 int m = getchar ();
16518 size_t nbytes = offsetof (struct s, d) + m * sizeof (double);
16519 nbytes += sizeof (struct s) - 1;
16520 nbytes -= nbytes % sizeof (struct s);
16521 struct s *p = malloc (nbytes);
16522 p->d[0] = 0.0;
16523 return p->d != (double *) NULL;
16524 ;
16525 return 0;
16526 }
16527 _ACEOF
16528 if ac_fn_c_try_compile "$LINENO"; then :
16529 ac_cv_c_flexmember=yes
16530 else
16531 ac_cv_c_flexmember=no
16532 fi
16533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16534 fi
16535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5
16536 $as_echo "$ac_cv_c_flexmember" >&6; }
16537 if test $ac_cv_c_flexmember = yes; then
16538
16539 $as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h
16540
16541 else
16542 $as_echo "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h
16543
16544 fi
16545
16546
16547
16548
16549 FLOAT_H=
16550 REPLACE_FLOAT_LDBL=0
16551 case "$host_os" in
16552 aix* | beos* | openbsd* | mirbsd* | irix*)
16553 FLOAT_H=float.h
16554 ;;
16555 freebsd*)
16556 case "$host_cpu" in
16557 i[34567]86 )
16558 FLOAT_H=float.h
16559 ;;
16560 x86_64 )
16561 # On x86_64 systems, the C compiler may still be generating
16562 # 32-bit code.
16563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16564 /* end confdefs.h. */
16565 #if defined __LP64__ || defined __x86_64__ || defined __amd64__
16566 yes
16567 #endif
16568 _ACEOF
16569 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16570 $EGREP "yes" >/dev/null 2>&1; then :
16571
16572 else
16573 FLOAT_H=float.h
16574 fi
16575 rm -f conftest*
16576
16577 ;;
16578 esac
16579 ;;
16580 linux*)
16581 case "$host_cpu" in
16582 powerpc*)
16583 FLOAT_H=float.h
16584 ;;
16585 esac
16586 ;;
16587 esac
16588 case "$host_os" in
16589 aix* | freebsd* | linux*)
16590 if test -n "$FLOAT_H"; then
16591 REPLACE_FLOAT_LDBL=1
16592 fi
16593 ;;
16594 esac
16595
16596 REPLACE_ITOLD=0
16597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
16598 $as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
16599 if ${gl_cv_func_itold_works+:} false; then :
16600 $as_echo_n "(cached) " >&6
16601 else
16602
16603 if test "$cross_compiling" = yes; then :
16604 case "$host" in
16605 sparc*-*-linux*)
16606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16607 /* end confdefs.h. */
16608 #if defined __LP64__ || defined __arch64__
16609 yes
16610 #endif
16611 _ACEOF
16612 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16613 $EGREP "yes" >/dev/null 2>&1; then :
16614 gl_cv_func_itold_works="guessing no"
16615 else
16616 gl_cv_func_itold_works="guessing yes"
16617 fi
16618 rm -f conftest*
16619
16620 ;;
16621 *) gl_cv_func_itold_works="guessing yes" ;;
16622 esac
16623
16624 else
16625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16626 /* end confdefs.h. */
16627
16628 int i = -1;
16629 volatile long double ld;
16630 int main ()
16631 {
16632 ld += i * 1.0L;
16633 if (ld > 0)
16634 return 1;
16635 return 0;
16636 }
16637 _ACEOF
16638 if ac_fn_c_try_run "$LINENO"; then :
16639 gl_cv_func_itold_works=yes
16640 else
16641 gl_cv_func_itold_works=no
16642 fi
16643 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16644 conftest.$ac_objext conftest.beam conftest.$ac_ext
16645 fi
16646
16647
16648 fi
16649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
16650 $as_echo "$gl_cv_func_itold_works" >&6; }
16651 case "$gl_cv_func_itold_works" in
16652 *no)
16653 REPLACE_ITOLD=1
16654 FLOAT_H=float.h
16655 ;;
16656 esac
16657
16658 if test -n "$FLOAT_H"; then
16659
16660
16661
16662
16663
16664
16665
16666
16667 if test $gl_cv_have_include_next = yes; then
16668 gl_cv_next_float_h='<'float.h'>'
16669 else
16670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
16671 $as_echo_n "checking absolute name of <float.h>... " >&6; }
16672 if ${gl_cv_next_float_h+:} false; then :
16673 $as_echo_n "(cached) " >&6
16674 else
16675
16676
16677
16678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16679 /* end confdefs.h. */
16680 #include <float.h>
16681 _ACEOF
16682 case "$host_os" in
16683 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16684 *) gl_absname_cpp="$ac_cpp" ;;
16685 esac
16686
16687 case "$host_os" in
16688 mingw*)
16689 gl_dirsep_regex='[/\\]'
16690 ;;
16691 *)
16692 gl_dirsep_regex='\/'
16693 ;;
16694 esac
16695 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
16696 gl_header_literal_regex=`echo 'float.h' \
16697 | sed -e "$gl_make_literal_regex_sed"`
16698 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16699 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16700 s|^/[^/]|//&|
16701 p
16702 q
16703 }'
16704
16705 gl_cv_absolute_float_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16706 sed -n "$gl_absolute_header_sed"`
16707
16708 gl_header=$gl_cv_absolute_float_h
16709 gl_cv_next_float_h='"'$gl_header'"'
16710
16711
16712 fi
16713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
16714 $as_echo "$gl_cv_next_float_h" >&6; }
16715 fi
16716 NEXT_FLOAT_H=$gl_cv_next_float_h
16717
16718 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16719 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16720 gl_next_as_first_directive='<'float.h'>'
16721 else
16722 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16723 gl_next_as_first_directive=$gl_cv_next_float_h
16724 fi
16725 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
16726
16727
16728
16729
16730 fi
16731
16732 if test -n "$FLOAT_H"; then
16733 GL_GENERATE_FLOAT_H_TRUE=
16734 GL_GENERATE_FLOAT_H_FALSE='#'
16735 else
16736 GL_GENERATE_FLOAT_H_TRUE='#'
16737 GL_GENERATE_FLOAT_H_FALSE=
16738 fi
16739
16740
16741
16742 if test $REPLACE_FLOAT_LDBL = 1; then
16743
16744
16745
16746
16747
16748
16749
16750
16751 gl_LIBOBJS="$gl_LIBOBJS float.$ac_objext"
16752
16753 fi
16754 if test $REPLACE_ITOLD = 1; then
16755
16756
16757
16758
16759
16760
16761
16762
16763 gl_LIBOBJS="$gl_LIBOBJS itold.$ac_objext"
16764
16765 fi
16766
16767
16768
16769
16770
16771 FNMATCH_H=
16772 gl_fnmatch_required_lowercase=`
16773 echo $gl_fnmatch_required | LC_ALL=C tr '[A-Z]' '[a-z]'
16774 `
16775 gl_fnmatch_cache_var="gl_cv_func_fnmatch_${gl_fnmatch_required_lowercase}"
16776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working $gl_fnmatch_required fnmatch" >&5
16777 $as_echo_n "checking for working $gl_fnmatch_required fnmatch... " >&6; }
16778 if eval \${$gl_fnmatch_cache_var+:} false; then :
16779 $as_echo_n "(cached) " >&6
16780 else
16781 if test $gl_fnmatch_required = GNU; then
16782 gl_fnmatch_gnu_start=
16783 gl_fnmatch_gnu_end=
16784 else
16785 gl_fnmatch_gnu_start='#if 0'
16786 gl_fnmatch_gnu_end='#endif'
16787 fi
16788 if test "$cross_compiling" = yes; then :
16789 eval "$gl_fnmatch_cache_var=\"guessing no\""
16790 else
16791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16792 /* end confdefs.h. */
16793 #include <fnmatch.h>
16794 static int
16795 y (char const *pattern, char const *string, int flags)
16796 {
16797 return fnmatch (pattern, string, flags) == 0;
16798 }
16799 static int
16800 n (char const *pattern, char const *string, int flags)
16801 {
16802 return fnmatch (pattern, string, flags) == FNM_NOMATCH;
16803 }
16804
16805 int
16806 main ()
16807 {
16808 char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]";
16809 char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]";
16810 static char const A_1[] = { 'A' - 1, 0 };
16811 static char const A01[] = { 'A' + 1, 0 };
16812 static char const a_1[] = { 'a' - 1, 0 };
16813 static char const a01[] = { 'a' + 1, 0 };
16814 static char const bs_1[] = { '\\\\' - 1, 0 };
16815 static char const bs01[] = { '\\\\' + 1, 0 };
16816 int result = 0;
16817 if (!n ("a*", "", 0))
16818 return 1;
16819 if (!y ("a*", "abc", 0))
16820 return 1;
16821 if (!y ("[/b", "[/b", 0)) /*"]]"*/ /* glibc Bugzilla bug 12378 */
16822 return 1;
16823 if (!n ("d*/*1", "d/s/1", FNM_PATHNAME))
16824 return 2;
16825 if (!y ("a\\\\bc", "abc", 0))
16826 return 3;
16827 if (!n ("a\\\\bc", "abc", FNM_NOESCAPE))
16828 return 3;
16829 if (!y ("*x", ".x", 0))
16830 return 4;
16831 if (!n ("*x", ".x", FNM_PERIOD))
16832 return 4;
16833 if (!y (Apat, "\\\\", 0))
16834 return 5;
16835 if (!y (Apat, "A", 0))
16836 return 5;
16837 if (!y (apat, "\\\\", 0))
16838 return 5;
16839 if (!y (apat, "a", 0))
16840 return 5;
16841 if (!(n (Apat, A_1, 0) == ('A' < '\\\\')))
16842 return 5;
16843 if (!(n (apat, a_1, 0) == ('a' < '\\\\')))
16844 return 5;
16845 if (!(y (Apat, A01, 0) == ('A' < '\\\\')))
16846 return 5;
16847 if (!(y (apat, a01, 0) == ('a' < '\\\\')))
16848 return 5;
16849 if (!(y (Apat, bs_1, 0) == ('A' < '\\\\')))
16850 return 5;
16851 if (!(y (apat, bs_1, 0) == ('a' < '\\\\')))
16852 return 5;
16853 if (!(n (Apat, bs01, 0) == ('A' < '\\\\')))
16854 return 5;
16855 if (!(n (apat, bs01, 0) == ('a' < '\\\\')))
16856 return 5;
16857 $gl_fnmatch_gnu_start
16858 if (!y ("xxXX", "xXxX", FNM_CASEFOLD))
16859 result |= 8;
16860 if (!y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH))
16861 result |= 16;
16862 if (!n ("d*/*1", "d/s/1", FNM_FILE_NAME))
16863 result |= 32;
16864 if (!y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR))
16865 result |= 64;
16866 if (!y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR))
16867 result |= 64;
16868 if (!y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR))
16869 result |= 64;
16870 $gl_fnmatch_gnu_end
16871 return result;
16872
16873 ;
16874 return 0;
16875 }
16876 _ACEOF
16877 if ac_fn_c_try_run "$LINENO"; then :
16878 eval "$gl_fnmatch_cache_var=yes"
16879 else
16880 eval "$gl_fnmatch_cache_var=no"
16881 fi
16882 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16883 conftest.$ac_objext conftest.beam conftest.$ac_ext
16884 fi
16885
16886
16887 fi
16888 eval ac_res=\$$gl_fnmatch_cache_var
16889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16890 $as_echo "$ac_res" >&6; }
16891 eval "gl_fnmatch_result=\"\$$gl_fnmatch_cache_var\""
16892 if test "$gl_fnmatch_result" = yes; then
16893 rm -f "$gl_source_base/fnmatch.h"
16894 else
16895 FNMATCH_H=fnmatch.h
16896 fi
16897
16898 if test -n "$FNMATCH_H"; then
16899 GL_GENERATE_FNMATCH_H_TRUE=
16900 GL_GENERATE_FNMATCH_H_FALSE='#'
16901 else
16902 GL_GENERATE_FNMATCH_H_TRUE='#'
16903 GL_GENERATE_FNMATCH_H_FALSE=
16904 fi
16905
16906
16907 if test -n "$FNMATCH_H"; then
16908
16909
16910
16911
16912
16913
16914
16915
16916 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
16917
16918
16919
16920 cat >>confdefs.h <<_ACEOF
16921 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
16922 _ACEOF
16923
16924
16925 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
16926 "
16927 if test "x$ac_cv_have_decl_isblank" = xyes; then :
16928 ac_have_decl=1
16929 else
16930 ac_have_decl=0
16931 fi
16932
16933 cat >>confdefs.h <<_ACEOF
16934 #define HAVE_DECL_ISBLANK $ac_have_decl
16935 _ACEOF
16936
16937
16938 :
16939
16940
16941
16942
16943
16944
16945
16946
16947
16948
16949
16950
16951
16952
16953
16954
16955
16956
16957
16958
16959
16960
16961
16962
16963
16964
16965
16966 :
16967
16968
16969
16970
16971
16972
16973 fi
16974
16975
16976
16977
16978
16979 if test -n "$FNMATCH_H"; then
16980
16981
16982
16983
16984
16985
16986
16987
16988 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
16989
16990
16991
16992 cat >>confdefs.h <<_ACEOF
16993 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
16994 _ACEOF
16995
16996
16997 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
16998 "
16999 if test "x$ac_cv_have_decl_isblank" = xyes; then :
17000 ac_have_decl=1
17001 else
17002 ac_have_decl=0
17003 fi
17004
17005 cat >>confdefs.h <<_ACEOF
17006 #define HAVE_DECL_ISBLANK $ac_have_decl
17007 _ACEOF
17008
17009
17010 :
17011
17012
17013
17014
17015
17016
17017
17018
17019
17020
17021
17022
17023
17024
17025
17026
17027
17028
17029
17030
17031
17032
17033
17034
17035
17036
17037
17038 :
17039
17040
17041
17042
17043
17044
17045 fi
17046
17047
17048
17049 FREXP_LIBM=
17050 if test $gl_cv_func_frexp_no_libm = no; then
17051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used with libm" >&5
17052 $as_echo_n "checking whether frexp() can be used with libm... " >&6; }
17053 if ${gl_cv_func_frexp_in_libm+:} false; then :
17054 $as_echo_n "(cached) " >&6
17055 else
17056
17057 save_LIBS="$LIBS"
17058 LIBS="$LIBS -lm"
17059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17060 /* end confdefs.h. */
17061 #include <math.h>
17062 double x;
17063 int
17064 main ()
17065 {
17066 int e; return frexp (x, &e) > 0;
17067 ;
17068 return 0;
17069 }
17070 _ACEOF
17071 if ac_fn_c_try_link "$LINENO"; then :
17072 gl_cv_func_frexp_in_libm=yes
17073 else
17074 gl_cv_func_frexp_in_libm=no
17075 fi
17076 rm -f core conftest.err conftest.$ac_objext \
17077 conftest$ac_exeext conftest.$ac_ext
17078 LIBS="$save_LIBS"
17079
17080 fi
17081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_in_libm" >&5
17082 $as_echo "$gl_cv_func_frexp_in_libm" >&6; }
17083 if test $gl_cv_func_frexp_in_libm = yes; then
17084 FREXP_LIBM=-lm
17085 fi
17086 fi
17087 if test $gl_cv_func_frexp_no_libm = yes \
17088 || test $gl_cv_func_frexp_in_libm = yes; then
17089 save_LIBS="$LIBS"
17090 LIBS="$LIBS $FREXP_LIBM"
17091
17092
17093
17094 :
17095
17096
17097
17098
17099
17100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp works" >&5
17101 $as_echo_n "checking whether frexp works... " >&6; }
17102 if ${gl_cv_func_frexp_works+:} false; then :
17103 $as_echo_n "(cached) " >&6
17104 else
17105
17106 if test "$cross_compiling" = yes; then :
17107 case "$host_os" in
17108 netbsd* | irix* | mingw*) gl_cv_func_frexp_works="guessing no";;
17109 *) gl_cv_func_frexp_works="guessing yes";;
17110 esac
17111
17112 else
17113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17114 /* end confdefs.h. */
17115
17116 #include <float.h>
17117 #include <math.h>
17118 #include <string.h>
17119 #if HAVE_DECL_ALARM
17120 # include <signal.h>
17121 # include <unistd.h>
17122 #endif
17123 /* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0.
17124 ICC 10.0 has a bug when optimizing the expression -zero.
17125 The expression -DBL_MIN * DBL_MIN does not work when cross-compiling
17126 to PowerPC on Mac OS X 10.5. */
17127 #if defined __hpux || defined __sgi || defined __ICC
17128 static double
17129 compute_minus_zero (void)
17130 {
17131 return -DBL_MIN * DBL_MIN;
17132 }
17133 # define minus_zero compute_minus_zero ()
17134 #else
17135 double minus_zero = -0.0;
17136 #endif
17137 int main()
17138 {
17139 int result = 0;
17140 int i;
17141 volatile double x;
17142 double zero = 0.0;
17143 #if HAVE_DECL_ALARM
17144 /* NeXTstep 3.3 frexp() runs into an endless loop when called on an infinite
17145 number. Let the test fail in this case. */
17146 signal (SIGALRM, SIG_DFL);
17147 alarm (5);
17148 #endif
17149 /* Test on denormalized numbers. */
17150 for (i = 1, x = 1.0; i >= DBL_MIN_EXP; i--, x *= 0.5)
17151 ;
17152 if (x > 0.0)
17153 {
17154 int exp;
17155 double y = frexp (x, &exp);
17156 /* On machines with IEEE754 arithmetic: x = 1.11254e-308, exp = -1022.
17157 On NetBSD: y = 0.75. Correct: y = 0.5. */
17158 if (y != 0.5)
17159 result |= 1;
17160 }
17161 /* Test on infinite numbers. */
17162 x = 1.0 / zero;
17163 {
17164 int exp;
17165 double y = frexp (x, &exp);
17166 if (y != x)
17167 result |= 2;
17168 }
17169 /* Test on negative zero. */
17170 x = minus_zero;
17171 {
17172 int exp;
17173 double y = frexp (x, &exp);
17174 if (memcmp (&y, &x, sizeof x))
17175 result |= 4;
17176 }
17177 return result;
17178 }
17179 _ACEOF
17180 if ac_fn_c_try_run "$LINENO"; then :
17181 gl_cv_func_frexp_works=yes
17182 else
17183 gl_cv_func_frexp_works=no
17184 fi
17185 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17186 conftest.$ac_objext conftest.beam conftest.$ac_ext
17187 fi
17188
17189
17190 fi
17191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_works" >&5
17192 $as_echo "$gl_cv_func_frexp_works" >&6; }
17193
17194 LIBS="$save_LIBS"
17195 case "$gl_cv_func_frexp_works" in
17196 *yes) gl_func_frexp=yes ;;
17197 *) gl_func_frexp=no; REPLACE_FREXP=1; FREXP_LIBM= ;;
17198 esac
17199 else
17200 gl_func_frexp=no
17201 fi
17202 if test $gl_func_frexp = yes; then
17203
17204 $as_echo "#define HAVE_FREXP 1" >>confdefs.h
17205
17206 fi
17207
17208
17209 if test $gl_func_frexp != yes; then
17210
17211
17212
17213
17214
17215
17216
17217
17218 gl_LIBOBJS="$gl_LIBOBJS frexp.$ac_objext"
17219
17220 fi
17221
17222
17223
17224
17225
17226 GNULIB_FREXP=1
17227
17228
17229
17230
17231
17232 $as_echo "#define GNULIB_TEST_FREXP 1" >>confdefs.h
17233
17234
17235
17236
17237
17238
17239
17240
17241
17242 ac_fn_c_check_decl "$LINENO" "frexpl" "ac_cv_have_decl_frexpl" "#include <math.h>
17243 "
17244 if test "x$ac_cv_have_decl_frexpl" = xyes; then :
17245
17246 else
17247 HAVE_DECL_FREXPL=0
17248 fi
17249
17250
17251 FREXPL_LIBM=
17252 if test $HAVE_DECL_FREXPL = 1; then
17253
17254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used without linking with libm" >&5
17255 $as_echo_n "checking whether frexpl() can be used without linking with libm... " >&6; }
17256 if ${gl_cv_func_frexpl_no_libm+:} false; then :
17257 $as_echo_n "(cached) " >&6
17258 else
17259
17260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17261 /* end confdefs.h. */
17262 #include <math.h>
17263 long double x;
17264 int
17265 main ()
17266 {
17267 int e; return frexpl (x, &e) > 0;
17268 ;
17269 return 0;
17270 }
17271 _ACEOF
17272 if ac_fn_c_try_link "$LINENO"; then :
17273 gl_cv_func_frexpl_no_libm=yes
17274 else
17275 gl_cv_func_frexpl_no_libm=no
17276 fi
17277 rm -f core conftest.err conftest.$ac_objext \
17278 conftest$ac_exeext conftest.$ac_ext
17279
17280 fi
17281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_no_libm" >&5
17282 $as_echo "$gl_cv_func_frexpl_no_libm" >&6; }
17283
17284 if test $gl_cv_func_frexpl_no_libm = no; then
17285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used with libm" >&5
17286 $as_echo_n "checking whether frexpl() can be used with libm... " >&6; }
17287 if ${gl_cv_func_frexpl_in_libm+:} false; then :
17288 $as_echo_n "(cached) " >&6
17289 else
17290
17291 save_LIBS="$LIBS"
17292 LIBS="$LIBS -lm"
17293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17294 /* end confdefs.h. */
17295 #include <math.h>
17296 long double x;
17297 int
17298 main ()
17299 {
17300 int e; return frexpl (x, &e) > 0;
17301 ;
17302 return 0;
17303 }
17304 _ACEOF
17305 if ac_fn_c_try_link "$LINENO"; then :
17306 gl_cv_func_frexpl_in_libm=yes
17307 else
17308 gl_cv_func_frexpl_in_libm=no
17309 fi
17310 rm -f core conftest.err conftest.$ac_objext \
17311 conftest$ac_exeext conftest.$ac_ext
17312 LIBS="$save_LIBS"
17313
17314 fi
17315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_in_libm" >&5
17316 $as_echo "$gl_cv_func_frexpl_in_libm" >&6; }
17317 if test $gl_cv_func_frexpl_in_libm = yes; then
17318 FREXPL_LIBM=-lm
17319 fi
17320 fi
17321 if test $gl_cv_func_frexpl_no_libm = yes \
17322 || test $gl_cv_func_frexpl_in_libm = yes; then
17323 save_LIBS="$LIBS"
17324 LIBS="$LIBS $FREXPL_LIBM"
17325
17326
17327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl works" >&5
17328 $as_echo_n "checking whether frexpl works... " >&6; }
17329 if ${gl_cv_func_frexpl_works+:} false; then :
17330 $as_echo_n "(cached) " >&6
17331 else
17332
17333 if test "$cross_compiling" = yes; then :
17334
17335 case "$host_os" in
17336 aix | aix[3-6]* | beos* | darwin* | irix* | mingw* | pw*)
17337 gl_cv_func_frexpl_works="guessing no";;
17338 *) gl_cv_func_frexpl_works="guessing yes";;
17339 esac
17340
17341 else
17342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17343 /* end confdefs.h. */
17344
17345 #include <float.h>
17346 #include <math.h>
17347 /* Override the values of <float.h>, like done in float.in.h. */
17348 #if defined __i386__ && (defined __BEOS__ || defined __OpenBSD__)
17349 # undef LDBL_MIN_EXP
17350 # define LDBL_MIN_EXP (-16381)
17351 #endif
17352 #if defined __i386__ && defined __FreeBSD__
17353 # undef LDBL_MIN_EXP
17354 # define LDBL_MIN_EXP (-16381)
17355 #endif
17356 #if (defined _ARCH_PPC || defined _POWER) && defined _AIX && (LDBL_MANT_DIG == 106) && defined __GNUC__
17357 # undef LDBL_MIN_EXP
17358 # define LDBL_MIN_EXP DBL_MIN_EXP
17359 #endif
17360 #if defined __sgi && (LDBL_MANT_DIG >= 106)
17361 # if defined __GNUC__
17362 # undef LDBL_MIN_EXP
17363 # define LDBL_MIN_EXP DBL_MIN_EXP
17364 # endif
17365 #endif
17366 extern
17367 #ifdef __cplusplus
17368 "C"
17369 #endif
17370 long double frexpl (long double, int *);
17371 int main()
17372 {
17373 int result = 0;
17374 volatile long double x;
17375 /* Test on finite numbers that fails on AIX 5.1. */
17376 x = 16.0L;
17377 {
17378 int exp = -9999;
17379 frexpl (x, &exp);
17380 if (exp != 5)
17381 result |= 1;
17382 }
17383 /* Test on finite numbers that fails on Mac OS X 10.4, because its frexpl
17384 function returns an invalid (incorrectly normalized) value: it returns
17385 y = { 0x3fe028f5, 0xc28f5c28, 0x3c9eb851, 0xeb851eb8 }
17386 but the correct result is
17387 0.505L = { 0x3fe028f5, 0xc28f5c29, 0xbc547ae1, 0x47ae1480 } */
17388 x = 1.01L;
17389 {
17390 int exp = -9999;
17391 long double y = frexpl (x, &exp);
17392 if (!(exp == 1 && y == 0.505L))
17393 result |= 2;
17394 }
17395 /* Test on large finite numbers. This fails on BeOS at i = 16322, while
17396 LDBL_MAX_EXP = 16384.
17397 In the loop end test, we test x against Infinity, rather than comparing
17398 i with LDBL_MAX_EXP, because BeOS <float.h> has a wrong LDBL_MAX_EXP. */
17399 {
17400 int i;
17401 for (i = 1, x = 1.0L; x != x + x; i++, x *= 2.0L)
17402 {
17403 int exp = -9999;
17404 frexpl (x, &exp);
17405 if (exp != i)
17406 {
17407 result |= 4;
17408 break;
17409 }
17410 }
17411 }
17412 /* Test on denormalized numbers. */
17413 {
17414 int i;
17415 for (i = 1, x = 1.0L; i >= LDBL_MIN_EXP; i--, x *= 0.5L)
17416 ;
17417 if (x > 0.0L)
17418 {
17419 int exp;
17420 long double y = frexpl (x, &exp);
17421 /* On machines with IEEE854 arithmetic: x = 1.68105e-4932,
17422 exp = -16382, y = 0.5. On Mac OS X 10.5: exp = -16384, y = 0.5. */
17423 if (exp != LDBL_MIN_EXP - 1)
17424 result |= 8;
17425 }
17426 }
17427 /* Test on infinite numbers. */
17428 x = 1.0L / 0.0L;
17429 {
17430 int exp;
17431 long double y = frexpl (x, &exp);
17432 if (y != x)
17433 result |= 16;
17434 }
17435 return result;
17436 }
17437 _ACEOF
17438 if ac_fn_c_try_run "$LINENO"; then :
17439 gl_cv_func_frexpl_works=yes
17440 else
17441 gl_cv_func_frexpl_works=no
17442 fi
17443 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17444 conftest.$ac_objext conftest.beam conftest.$ac_ext
17445 fi
17446
17447
17448 fi
17449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_works" >&5
17450 $as_echo "$gl_cv_func_frexpl_works" >&6; }
17451
17452 LIBS="$save_LIBS"
17453 case "$gl_cv_func_frexpl_works" in
17454 *yes) gl_func_frexpl=yes ;;
17455 *) gl_func_frexpl=no; REPLACE_FREXPL=1 ;;
17456 esac
17457 else
17458 gl_func_frexpl=no
17459 fi
17460 if test $gl_func_frexpl = yes; then
17461
17462 $as_echo "#define HAVE_FREXPL 1" >>confdefs.h
17463
17464 fi
17465 fi
17466 if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl = no; then
17467 if test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1; then
17468
17469 FREXPL_LIBM="$FREXP_LIBM"
17470 else
17471 FREXPL_LIBM=
17472 fi
17473 fi
17474
17475
17476 if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl = no; then
17477
17478
17479
17480
17481
17482
17483
17484
17485 gl_LIBOBJS="$gl_LIBOBJS frexpl.$ac_objext"
17486
17487 fi
17488
17489
17490
17491
17492
17493 GNULIB_FREXPL=1
17494
17495
17496
17497
17498
17499 $as_echo "#define GNULIB_TEST_FREXPL 1" >>confdefs.h
17500
17501
17502
17503
17504
17505
17506
17507 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
17508 REPLACE_FSTAT=1
17509 fi
17510
17511
17512 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
17513 REPLACE_FSTAT=1
17514 fi
17515
17516
17517
17518
17519
17520 :
17521
17522
17523
17524
17525
17526 if test $ac_cv_func_fchdir = no; then
17527 HAVE_FCHDIR=0
17528 fi
17529
17530 if test $HAVE_FCHDIR = 0; then
17531 case "$gl_cv_func_open_directory_works" in
17532 *yes) ;;
17533 *)
17534 REPLACE_FSTAT=1
17535 ;;
17536 esac
17537 fi
17538
17539
17540 if test $REPLACE_FSTAT = 1; then
17541
17542
17543
17544
17545
17546
17547
17548
17549 gl_LIBOBJS="$gl_LIBOBJS fstat.$ac_objext"
17550
17551 :
17552 fi
17553
17554
17555
17556
17557
17558 GNULIB_FSTAT=1
17559
17560
17561
17562
17563
17564 $as_echo "#define GNULIB_TEST_FSTAT 1" >>confdefs.h
17565
17566
17567
17568
17569
17570
17571
17572
17573 :
17574
17575
17576
17577
17578
17579
17580 if test $ac_cv_func_fstatat = no; then
17581 HAVE_FSTATAT=0
17582 else
17583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fstatat (..., 0) works" >&5
17584 $as_echo_n "checking whether fstatat (..., 0) works... " >&6; }
17585 if ${gl_cv_func_fstatat_zero_flag+:} false; then :
17586 $as_echo_n "(cached) " >&6
17587 else
17588 if test "$cross_compiling" = yes; then :
17589 case "$host_os" in
17590 aix*) gl_cv_func_fstatat_zero_flag="guessing no";;
17591 *) gl_cv_func_fstatat_zero_flag="guessing yes";;
17592 esac
17593
17594 else
17595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17596 /* end confdefs.h. */
17597
17598 #include <fcntl.h>
17599 #include <sys/stat.h>
17600 int
17601 main (void)
17602 {
17603 struct stat a;
17604 return fstatat (AT_FDCWD, ".", &a, 0) != 0;
17605 }
17606
17607 _ACEOF
17608 if ac_fn_c_try_run "$LINENO"; then :
17609 gl_cv_func_fstatat_zero_flag=yes
17610 else
17611 gl_cv_func_fstatat_zero_flag=no
17612 fi
17613 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17614 conftest.$ac_objext conftest.beam conftest.$ac_ext
17615 fi
17616
17617
17618 fi
17619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fstatat_zero_flag" >&5
17620 $as_echo "$gl_cv_func_fstatat_zero_flag" >&6; }
17621
17622 case $gl_cv_func_fstatat_zero_flag+$gl_cv_func_lstat_dereferences_slashed_symlink in
17623 *yes+*yes) ;;
17624 *) REPLACE_FSTATAT=1
17625 case $gl_cv_func_fstatat_zero_flag in
17626 *yes)
17627
17628 $as_echo "#define HAVE_WORKING_FSTATAT_ZERO_FLAG 1" >>confdefs.h
17629
17630 ;;
17631 esac
17632 ;;
17633 esac
17634 fi
17635
17636 if test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1; then
17637
17638
17639
17640
17641
17642
17643
17644
17645 gl_LIBOBJS="$gl_LIBOBJS fstatat.$ac_objext"
17646
17647 fi
17648
17649
17650
17651
17652
17653 GNULIB_FSTATAT=1
17654
17655
17656
17657
17658
17659 $as_echo "#define GNULIB_TEST_FSTATAT 1" >>confdefs.h
17660
17661
17662
17663
17664
17665
17666
17667
17668 gl_abort_bug=no
17669 case "$host_os" in
17670 mingw*)
17671 gl_cv_func_getcwd_path_max=yes
17672 ;;
17673 *)
17674
17675
17676 :
17677
17678
17679
17680
17681
17682
17683
17684 :
17685
17686
17687
17688
17689
17690
17691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd handles long file names properly" >&5
17692 $as_echo_n "checking whether getcwd handles long file names properly... " >&6; }
17693 if ${gl_cv_func_getcwd_path_max+:} false; then :
17694 $as_echo_n "(cached) " >&6
17695 else
17696 # Arrange for deletion of the temporary directory this test creates.
17697 ac_clean_files="$ac_clean_files confdir3"
17698 if test "$cross_compiling" = yes; then :
17699 case "$host_os" in
17700 aix*) gl_cv_func_getcwd_path_max='no, it has the AIX bug';;
17701 *) gl_cv_func_getcwd_path_max=no;;
17702 esac
17703 else
17704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17705 /* end confdefs.h. */
17706
17707 #include <errno.h>
17708 #include <stdlib.h>
17709 #if HAVE_UNISTD_H
17710 # include <unistd.h>
17711 #else
17712 # include <direct.h>
17713 #endif
17714 #include <string.h>
17715 #include <limits.h>
17716 #include <sys/stat.h>
17717 #include <sys/types.h>
17718 #include <fcntl.h>
17719
17720
17721 /* Arrange to define PATH_MAX, like "pathmax.h" does. */
17722 #if HAVE_UNISTD_H
17723 # include <unistd.h>
17724 #endif
17725 #include <limits.h>
17726 #if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN
17727 # include <sys/param.h>
17728 #endif
17729 #if !defined PATH_MAX && defined MAXPATHLEN
17730 # define PATH_MAX MAXPATHLEN
17731 #endif
17732 #ifdef __hpux
17733 # undef PATH_MAX
17734 # define PATH_MAX 1024
17735 #endif
17736 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
17737 # undef PATH_MAX
17738 # define PATH_MAX 260
17739 #endif
17740
17741
17742 #ifndef AT_FDCWD
17743 # define AT_FDCWD 0
17744 #endif
17745 #ifdef ENAMETOOLONG
17746 # define is_ENAMETOOLONG(x) ((x) == ENAMETOOLONG)
17747 #else
17748 # define is_ENAMETOOLONG(x) 0
17749 #endif
17750
17751 /* Use the getcwd function, not any macro. */
17752 #undef getcwd
17753
17754 /* Don't get link errors because mkdir is redefined to rpl_mkdir. */
17755 #undef mkdir
17756
17757 #ifndef S_IRWXU
17758 # define S_IRWXU 0700
17759 #endif
17760
17761 /* The length of this name must be 8. */
17762 #define DIR_NAME "confdir3"
17763 #define DIR_NAME_LEN 8
17764 #define DIR_NAME_SIZE (DIR_NAME_LEN + 1)
17765
17766 /* The length of "../". */
17767 #define DOTDOTSLASH_LEN 3
17768
17769 /* Leftover bytes in the buffer, to work around library or OS bugs. */
17770 #define BUF_SLOP 20
17771
17772 int
17773 main ()
17774 {
17775 #ifndef PATH_MAX
17776 /* The Hurd doesn't define this, so getcwd can't exhibit the bug --
17777 at least not on a local file system. And if we were to start worrying
17778 about remote file systems, we'd have to enable the wrapper function
17779 all of the time, just to be safe. That's not worth the cost. */
17780 exit (0);
17781 #elif ((INT_MAX / (DIR_NAME_SIZE / DOTDOTSLASH_LEN + 1) \
17782 - DIR_NAME_SIZE - BUF_SLOP) \
17783 <= PATH_MAX)
17784 /* FIXME: Assuming there's a system for which this is true,
17785 this should be done in a compile test. */
17786 exit (0);
17787 #else
17788 char buf[PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN + 1)
17789 + DIR_NAME_SIZE + BUF_SLOP];
17790 char *cwd = getcwd (buf, PATH_MAX);
17791 size_t initial_cwd_len;
17792 size_t cwd_len;
17793 int fail = 0;
17794 size_t n_chdirs = 0;
17795
17796 if (cwd == NULL)
17797 exit (10);
17798
17799 cwd_len = initial_cwd_len = strlen (cwd);
17800
17801 while (1)
17802 {
17803 size_t dotdot_max = PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN);
17804 char *c = NULL;
17805
17806 cwd_len += DIR_NAME_SIZE;
17807 /* If mkdir or chdir fails, it could be that this system cannot create
17808 any file with an absolute name longer than PATH_MAX, such as cygwin.
17809 If so, leave fail as 0, because the current working directory can't
17810 be too long for getcwd if it can't even be created. For other
17811 errors, be pessimistic and consider that as a failure, too. */
17812 if (mkdir (DIR_NAME, S_IRWXU) < 0 || chdir (DIR_NAME) < 0)
17813 {
17814 if (! (errno == ERANGE || is_ENAMETOOLONG (errno)))
17815 fail = 20;
17816 break;
17817 }
17818
17819 if (PATH_MAX <= cwd_len && cwd_len < PATH_MAX + DIR_NAME_SIZE)
17820 {
17821 struct stat sb;
17822
17823 c = getcwd (buf, PATH_MAX);
17824 if (!c && errno == ENOENT)
17825 {
17826 fail = 11;
17827 break;
17828 }
17829 if (c)
17830 {
17831 fail = 31;
17832 break;
17833 }
17834 if (! (errno == ERANGE || is_ENAMETOOLONG (errno)))
17835 {
17836 fail = 21;
17837 break;
17838 }
17839
17840 /* Our replacement needs to be able to stat() long ../../paths,
17841 so generate a path larger than PATH_MAX to check,
17842 avoiding the replacement if we can't stat(). */
17843 c = getcwd (buf, cwd_len + 1);
17844 if (c && !AT_FDCWD && stat (c, &sb) != 0 && is_ENAMETOOLONG (errno))
17845 {
17846 fail = 32;
17847 break;
17848 }
17849 }
17850
17851 if (dotdot_max <= cwd_len - initial_cwd_len)
17852 {
17853 if (dotdot_max + DIR_NAME_SIZE < cwd_len - initial_cwd_len)
17854 break;
17855 c = getcwd (buf, cwd_len + 1);
17856 if (!c)
17857 {
17858 if (! (errno == ERANGE || errno == ENOENT
17859 || is_ENAMETOOLONG (errno)))
17860 {
17861 fail = 22;
17862 break;
17863 }
17864 if (AT_FDCWD || errno == ERANGE || errno == ENOENT)
17865 {
17866 fail = 12;
17867 break;
17868 }
17869 }
17870 }
17871
17872 if (c && strlen (c) != cwd_len)
17873 {
17874 fail = 23;
17875 break;
17876 }
17877 ++n_chdirs;
17878 }
17879
17880 /* Leaving behind such a deep directory is not polite.
17881 So clean up here, right away, even though the driving
17882 shell script would also clean up. */
17883 {
17884 size_t i;
17885
17886 /* Try rmdir first, in case the chdir failed. */
17887 rmdir (DIR_NAME);
17888 for (i = 0; i <= n_chdirs; i++)
17889 {
17890 if (chdir ("..") < 0)
17891 break;
17892 if (rmdir (DIR_NAME) != 0)
17893 break;
17894 }
17895 }
17896
17897 exit (fail);
17898 #endif
17899 }
17900
17901 _ACEOF
17902 if ac_fn_c_try_run "$LINENO"; then :
17903 gl_cv_func_getcwd_path_max=yes
17904 else
17905 case $? in
17906 10|11|12) gl_cv_func_getcwd_path_max='no, but it is partly working';;
17907 31) gl_cv_func_getcwd_path_max='no, it has the AIX bug';;
17908 32) gl_cv_func_getcwd_path_max='yes, but with shorter paths';;
17909 *) gl_cv_func_getcwd_path_max=no;;
17910 esac
17911 fi
17912 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17913 conftest.$ac_objext conftest.beam conftest.$ac_ext
17914 fi
17915
17916
17917 fi
17918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_path_max" >&5
17919 $as_echo "$gl_cv_func_getcwd_path_max" >&6; }
17920
17921 case "$gl_cv_func_getcwd_null" in
17922 *yes)
17923
17924
17925 :
17926
17927
17928
17929
17930
17931
17932 :
17933
17934
17935
17936
17937
17938
17939 for ac_func in getpagesize
17940 do :
17941 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
17942 if test "x$ac_cv_func_getpagesize" = xyes; then :
17943 cat >>confdefs.h <<_ACEOF
17944 #define HAVE_GETPAGESIZE 1
17945 _ACEOF
17946
17947 fi
17948 done
17949
17950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd aborts when 4k < cwd_length < 16k" >&5
17951 $as_echo_n "checking whether getcwd aborts when 4k < cwd_length < 16k... " >&6; }
17952 if ${gl_cv_func_getcwd_abort_bug+:} false; then :
17953 $as_echo_n "(cached) " >&6
17954 else
17955 # Remove any remnants of a previous test.
17956 rm -rf confdir-14B---
17957 # Arrange for deletion of the temporary directory this test creates.
17958 ac_clean_files="$ac_clean_files confdir-14B---"
17959 if test "$cross_compiling" = yes; then :
17960 gl_cv_func_getcwd_abort_bug=yes
17961 else
17962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17963 /* end confdefs.h. */
17964
17965 #include <errno.h>
17966 #include <stdlib.h>
17967 #if HAVE_UNISTD_H
17968 # include <unistd.h>
17969 #else /* on Windows with MSVC */
17970 # include <direct.h>
17971 #endif
17972 #include <string.h>
17973 #include <sys/stat.h>
17974
17975
17976 /* Arrange to define PATH_MAX, like "pathmax.h" does. */
17977 #if HAVE_UNISTD_H
17978 # include <unistd.h>
17979 #endif
17980 #include <limits.h>
17981 #if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN
17982 # include <sys/param.h>
17983 #endif
17984 #if !defined PATH_MAX && defined MAXPATHLEN
17985 # define PATH_MAX MAXPATHLEN
17986 #endif
17987 #ifdef __hpux
17988 # undef PATH_MAX
17989 # define PATH_MAX 1024
17990 #endif
17991 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
17992 # undef PATH_MAX
17993 # define PATH_MAX 260
17994 #endif
17995
17996
17997 /* Don't get link errors because mkdir is redefined to rpl_mkdir. */
17998 #undef mkdir
17999
18000 #ifndef S_IRWXU
18001 # define S_IRWXU 0700
18002 #endif
18003
18004 /* FIXME: skip the run-test altogether on systems without getpagesize. */
18005 #if ! HAVE_GETPAGESIZE
18006 # define getpagesize() 0
18007 #endif
18008
18009 /* This size is chosen to be larger than PATH_MAX (4k), yet smaller than
18010 the 16kB pagesize on ia64 linux. Those conditions make the code below
18011 trigger a bug in glibc's getcwd implementation before 2.4.90-10. */
18012 #define TARGET_LEN (5 * 1024)
18013
18014 int
18015 main ()
18016 {
18017 char *cwd;
18018 size_t initial_cwd_len;
18019 int fail = 0;
18020
18021 /* The bug is triggered when PATH_MAX < getpagesize (), so skip
18022 this relatively expensive and invasive test if that's not true. */
18023 #ifdef PATH_MAX
18024 int bug_possible = PATH_MAX < getpagesize ();
18025 #else
18026 int bug_possible = 0;
18027 #endif
18028 if (! bug_possible)
18029 return 0;
18030
18031 cwd = getcwd (NULL, 0);
18032 if (cwd == NULL)
18033 return 2;
18034
18035 initial_cwd_len = strlen (cwd);
18036 free (cwd);
18037
18038 if (1)
18039 {
18040 static char const dir_name[] = "confdir-14B---";
18041 size_t desired_depth = ((TARGET_LEN - 1 - initial_cwd_len)
18042 / sizeof dir_name);
18043 size_t d;
18044 for (d = 0; d < desired_depth; d++)
18045 {
18046 if (mkdir (dir_name, S_IRWXU) < 0 || chdir (dir_name) < 0)
18047 {
18048 if (! (errno == ERANGE || errno == ENAMETOOLONG
18049 || errno == ENOENT))
18050 fail = 3; /* Unable to construct deep hierarchy. */
18051 break;
18052 }
18053 }
18054
18055 /* If libc has the bug in question, this invocation of getcwd
18056 results in a failed assertion. */
18057 cwd = getcwd (NULL, 0);
18058 if (cwd == NULL)
18059 fail = 4; /* getcwd didn't assert, but it failed for a long name
18060 where the answer could have been learned. */
18061 free (cwd);
18062
18063 /* Call rmdir first, in case the above chdir failed. */
18064 rmdir (dir_name);
18065 while (0 < d--)
18066 {
18067 if (chdir ("..") < 0)
18068 {
18069 fail = 5;
18070 break;
18071 }
18072 rmdir (dir_name);
18073 }
18074 }
18075
18076 return fail;
18077 }
18078
18079 _ACEOF
18080 if ac_fn_c_try_run "$LINENO"; then :
18081 gl_cv_func_getcwd_abort_bug=no
18082 else
18083 ret=$?
18084 if test $ret -ge 128 || test $ret = 4; then
18085 gl_cv_func_getcwd_abort_bug=yes
18086 else
18087 gl_cv_func_getcwd_abort_bug=no
18088 fi
18089 fi
18090 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18091 conftest.$ac_objext conftest.beam conftest.$ac_ext
18092 fi
18093
18094
18095 fi
18096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_abort_bug" >&5
18097 $as_echo "$gl_cv_func_getcwd_abort_bug" >&6; }
18098 if test $gl_cv_func_getcwd_abort_bug = yes; then :
18099 gl_abort_bug=yes
18100 fi
18101
18102 ;;
18103 esac
18104 ;;
18105 esac
18106 case "$gl_cv_func_getcwd_path_max" in
18107 "no"|"no, it has the AIX bug") ;;
18108 *)
18109
18110 $as_echo "#define HAVE_MINIMALLY_WORKING_GETCWD 1" >>confdefs.h
18111
18112 ;;
18113 esac
18114 case "$gl_cv_func_getcwd_path_max" in
18115 "no, but it is partly working")
18116
18117 $as_echo "#define HAVE_PARTLY_WORKING_GETCWD 1" >>confdefs.h
18118
18119 ;;
18120 "yes, but with shorter paths")
18121
18122 $as_echo "#define HAVE_GETCWD_SHORTER 1" >>confdefs.h
18123
18124 ;;
18125 esac
18126
18127 if { case "$gl_cv_func_getcwd_null" in *yes) false;; *) true;; esac; } \
18128 || test $gl_cv_func_getcwd_posix_signature != yes \
18129 || { case "$gl_cv_func_getcwd_path_max" in *yes*) false;; *) true;; esac; } \
18130 || test $gl_abort_bug = yes; then
18131 REPLACE_GETCWD=1
18132 fi
18133
18134 if test $REPLACE_GETCWD = 1; then
18135
18136
18137
18138
18139
18140
18141
18142
18143 gl_LIBOBJS="$gl_LIBOBJS getcwd.$ac_objext"
18144
18145
18146
18147
18148 :
18149
18150 fi
18151
18152
18153 cat >>confdefs.h <<_ACEOF
18154 #define GNULIB_GETCWD 1
18155 _ACEOF
18156
18157
18158
18159
18160
18161
18162
18163 GNULIB_GETCWD=1
18164
18165
18166
18167
18168
18169 $as_echo "#define GNULIB_TEST_GETCWD 1" >>confdefs.h
18170
18171
18172
18173
18174
18175
18176
18177
18178 case $gl_cv_func_getcwd_null,$gl_cv_func_getcwd_posix_signature in
18179 *yes,yes) ;;
18180 *)
18181 REPLACE_GETCWD=1
18182 ;;
18183 esac
18184
18185 if test $REPLACE_GETCWD = 1; then
18186
18187
18188
18189
18190
18191
18192
18193
18194 gl_LIBOBJS="$gl_LIBOBJS getcwd-lgpl.$ac_objext"
18195
18196 fi
18197
18198
18199
18200
18201
18202 GNULIB_GETCWD=1
18203
18204
18205
18206
18207
18208 $as_echo "#define GNULIB_TEST_GETCWD 1" >>confdefs.h
18209
18210
18211
18212
18213
18214
18215
18216 :
18217
18218
18219
18220
18221
18222
18223 :
18224
18225
18226
18227
18228
18229 if test $ac_cv_func_getdtablesize = yes &&
18230 test $ac_cv_have_decl_getdtablesize = yes; then
18231 # Cygwin 1.7.25 automatically increases the RLIMIT_NOFILE soft limit
18232 # up to an unchangeable hard limit; all other platforms correctly
18233 # require setrlimit before getdtablesize() can report a larger value.
18234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getdtablesize works" >&5
18235 $as_echo_n "checking whether getdtablesize works... " >&6; }
18236 if ${gl_cv_func_getdtablesize_works+:} false; then :
18237 $as_echo_n "(cached) " >&6
18238 else
18239 if test "$cross_compiling" = yes; then :
18240 case "$host_os" in
18241 cygwin*) # on cygwin 1.5.25, getdtablesize() automatically grows
18242 gl_cv_func_getdtablesize_works="guessing no" ;;
18243 *) gl_cv_func_getdtablesize_works="guessing yes" ;;
18244 esac
18245 else
18246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18247 /* end confdefs.h. */
18248
18249 #include <unistd.h>
18250 int
18251 main ()
18252 {
18253 int size = getdtablesize();
18254 if (dup2 (0, getdtablesize()) != -1)
18255 return 1;
18256 if (size != getdtablesize())
18257 return 2;
18258
18259 ;
18260 return 0;
18261 }
18262 _ACEOF
18263 if ac_fn_c_try_run "$LINENO"; then :
18264 gl_cv_func_getdtablesize_works=yes
18265 else
18266 gl_cv_func_getdtablesize_works=no
18267 fi
18268 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18269 conftest.$ac_objext conftest.beam conftest.$ac_ext
18270 fi
18271
18272
18273 fi
18274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getdtablesize_works" >&5
18275 $as_echo "$gl_cv_func_getdtablesize_works" >&6; }
18276 case "$gl_cv_func_getdtablesize_works" in
18277 *yes) ;;
18278 *) REPLACE_GETDTABLESIZE=1 ;;
18279 esac
18280 else
18281 HAVE_GETDTABLESIZE=0
18282 fi
18283
18284 if test $HAVE_GETDTABLESIZE = 0 || test $REPLACE_GETDTABLESIZE = 1; then
18285
18286
18287
18288
18289
18290
18291
18292
18293 gl_LIBOBJS="$gl_LIBOBJS getdtablesize.$ac_objext"
18294
18295 :
18296 fi
18297
18298
18299
18300
18301
18302 GNULIB_GETDTABLESIZE=1
18303
18304
18305
18306
18307
18308 $as_echo "#define GNULIB_TEST_GETDTABLESIZE 1" >>confdefs.h
18309
18310
18311
18312
18313
18314
18315
18316
18317
18318 :
18319
18320
18321
18322
18323
18324 if test $ac_cv_have_decl_getlogin_r = no; then
18325 HAVE_DECL_GETLOGIN_R=0
18326 fi
18327
18328
18329 :
18330
18331
18332
18333
18334
18335 if test $ac_cv_func_getlogin_r = no; then
18336 HAVE_GETLOGIN_R=0
18337 else
18338 HAVE_GETLOGIN_R=1
18339
18340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getlogin_r works with small buffers" >&5
18341 $as_echo_n "checking whether getlogin_r works with small buffers... " >&6; }
18342 if ${gl_cv_func_getlogin_r_works+:} false; then :
18343 $as_echo_n "(cached) " >&6
18344 else
18345
18346 case "$host_os" in
18347 # Guess no on OSF/1.
18348 osf*) gl_cv_func_getlogin_r_works="guessing no" ;;
18349 # Guess yes otherwise.
18350 *) gl_cv_func_getlogin_r_works="guessing yes" ;;
18351 esac
18352 if test "$cross_compiling" = yes; then :
18353 :
18354 else
18355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18356 /* end confdefs.h. */
18357
18358 #include <stddef.h>
18359 #include <unistd.h>
18360 #if !HAVE_DECL_GETLOGIN_R
18361 extern
18362 # ifdef __cplusplus
18363 "C"
18364 # endif
18365 int getlogin_r (char *, size_t);
18366 #endif
18367 int
18368 main (void)
18369 {
18370 int result = 0;
18371 char buf[100];
18372
18373 if (getlogin_r (buf, 0) == 0)
18374 result |= 16;
18375 if (getlogin_r (buf, 1) == 0)
18376 result |= 17;
18377 return result;
18378 }
18379 _ACEOF
18380 if ac_fn_c_try_run "$LINENO"; then :
18381 gl_cv_func_getlogin_r_works=yes
18382 else
18383 case $? in
18384 16 | 17) gl_cv_func_getlogin_r_works=no ;;
18385 esac
18386
18387 fi
18388 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18389 conftest.$ac_objext conftest.beam conftest.$ac_ext
18390 fi
18391
18392
18393 fi
18394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getlogin_r_works" >&5
18395 $as_echo "$gl_cv_func_getlogin_r_works" >&6; }
18396 case "$gl_cv_func_getlogin_r_works" in
18397 *yes) ;;
18398 *) REPLACE_GETLOGIN_R=1 ;;
18399 esac
18400 fi
18401
18402 if test $HAVE_GETLOGIN_R = 0 || test $REPLACE_GETLOGIN_R = 1; then
18403
18404
18405
18406
18407
18408
18409
18410
18411 gl_LIBOBJS="$gl_LIBOBJS getlogin_r.$ac_objext"
18412
18413
18414
18415 :
18416
18417
18418
18419
18420
18421
18422 fi
18423
18424
18425
18426
18427
18428 GNULIB_GETLOGIN_R=1
18429
18430
18431
18432
18433
18434 $as_echo "#define GNULIB_TEST_GETLOGIN_R 1" >>confdefs.h
18435
18436
18437
18438
18439
18440 :
18441
18442
18443
18444
18445
18446
18447
18448
18449
18450 ac_found=0
18451 ac_fn_c_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
18452 "
18453 if test "x$ac_cv_have_decl_program_invocation_name" = xyes; then :
18454 ac_have_decl=1
18455 else
18456 ac_have_decl=0
18457 fi
18458
18459 cat >>confdefs.h <<_ACEOF
18460 #define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl
18461 _ACEOF
18462 if test $ac_have_decl = 1; then :
18463 ac_found=1
18464 fi
18465
18466 ac_fn_c_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
18467 "
18468 if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes; then :
18469 ac_have_decl=1
18470 else
18471 ac_have_decl=0
18472 fi
18473
18474 cat >>confdefs.h <<_ACEOF
18475 #define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl
18476 _ACEOF
18477 if test $ac_have_decl = 1; then :
18478 ac_found=1
18479 fi
18480
18481 ac_fn_c_check_decl "$LINENO" "__argv" "ac_cv_have_decl___argv" "#include <stdlib.h>
18482 "
18483 if test "x$ac_cv_have_decl___argv" = xyes; then :
18484 ac_have_decl=1
18485 else
18486 ac_have_decl=0
18487 fi
18488
18489 cat >>confdefs.h <<_ACEOF
18490 #define HAVE_DECL___ARGV $ac_have_decl
18491 _ACEOF
18492 if test $ac_have_decl = 1; then :
18493 ac_found=1
18494 fi
18495
18496
18497 # Incur the cost of this test only if none of the above worked.
18498 if test $ac_found = 0; then
18499 # On OpenBSD 5.1, using the global __progname variable appears to be
18500 # the only way to implement getprogname.
18501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __progname is defined in default libraries" >&5
18502 $as_echo_n "checking whether __progname is defined in default libraries... " >&6; }
18503 if ${gl_cv_var___progname+:} false; then :
18504 $as_echo_n "(cached) " >&6
18505 else
18506
18507 gl_cv_var___progname=
18508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18509 /* end confdefs.h. */
18510 extern char *__progname;
18511 int
18512 main ()
18513 {
18514 return *__progname;
18515
18516 ;
18517 return 0;
18518 }
18519 _ACEOF
18520 if ac_fn_c_try_link "$LINENO"; then :
18521 gl_cv_var___progname=yes
18522
18523 fi
18524 rm -f core conftest.err conftest.$ac_objext \
18525 conftest$ac_exeext conftest.$ac_ext
18526
18527
18528 fi
18529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_var___progname" >&5
18530 $as_echo "$gl_cv_var___progname" >&6; }
18531 if test "$gl_cv_var___progname" = yes; then
18532
18533 $as_echo "#define HAVE_VAR___PROGNAME 1" >>confdefs.h
18534
18535 fi
18536 fi
18537
18538
18539
18540
18541
18542
18543
18544
18545 :
18546
18547
18548
18549
18550
18551
18552 gl_gettimeofday_timezone=void
18553 if test $ac_cv_func_gettimeofday != yes; then
18554 HAVE_GETTIMEOFDAY=0
18555 else
18556
18557
18558
18559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
18560 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
18561 if ${gl_cv_func_gettimeofday_clobber+:} false; then :
18562 $as_echo_n "(cached) " >&6
18563 else
18564 if test "$cross_compiling" = yes; then :
18565 # When cross-compiling:
18566 case "$host_os" in
18567 # Guess all is fine on glibc systems.
18568 *-gnu*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
18569 # If we don't know, assume the worst.
18570 *) gl_cv_func_gettimeofday_clobber="guessing yes" ;;
18571 esac
18572
18573 else
18574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18575 /* end confdefs.h. */
18576 #include <string.h>
18577 #include <sys/time.h>
18578 #include <time.h>
18579 #include <stdlib.h>
18580
18581 int
18582 main ()
18583 {
18584
18585 time_t t = 0;
18586 struct tm *lt;
18587 struct tm saved_lt;
18588 struct timeval tv;
18589 lt = localtime (&t);
18590 saved_lt = *lt;
18591 gettimeofday (&tv, NULL);
18592 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
18593
18594 ;
18595 return 0;
18596 }
18597 _ACEOF
18598 if ac_fn_c_try_run "$LINENO"; then :
18599 gl_cv_func_gettimeofday_clobber=no
18600 else
18601 gl_cv_func_gettimeofday_clobber=yes
18602 fi
18603 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18604 conftest.$ac_objext conftest.beam conftest.$ac_ext
18605 fi
18606
18607 fi
18608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
18609 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
18610
18611 case "$gl_cv_func_gettimeofday_clobber" in
18612 *yes)
18613 REPLACE_GETTIMEOFDAY=1
18614
18615 REPLACE_GMTIME=1
18616 REPLACE_LOCALTIME=1
18617
18618
18619 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
18620
18621 ;;
18622 esac
18623
18624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
18625 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
18626 if ${gl_cv_func_gettimeofday_posix_signature+:} false; then :
18627 $as_echo_n "(cached) " >&6
18628 else
18629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18630 /* end confdefs.h. */
18631 #include <sys/time.h>
18632 struct timeval c;
18633 int gettimeofday (struct timeval *restrict, void *restrict);
18634
18635 int
18636 main ()
18637 {
18638 /* glibc uses struct timezone * rather than the POSIX void *
18639 if _GNU_SOURCE is defined. However, since the only portable
18640 use of gettimeofday uses NULL as the second parameter, and
18641 since the glibc definition is actually more typesafe, it is
18642 not worth wrapping this to get a compliant signature. */
18643 int (*f) (struct timeval *restrict, void *restrict)
18644 = gettimeofday;
18645 int x = f (&c, 0);
18646 return !(x | c.tv_sec | c.tv_usec);
18647
18648 ;
18649 return 0;
18650 }
18651 _ACEOF
18652 if ac_fn_c_try_compile "$LINENO"; then :
18653 gl_cv_func_gettimeofday_posix_signature=yes
18654 else
18655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18656 /* end confdefs.h. */
18657 #include <sys/time.h>
18658 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
18659
18660 int
18661 main ()
18662 {
18663
18664 ;
18665 return 0;
18666 }
18667 _ACEOF
18668 if ac_fn_c_try_compile "$LINENO"; then :
18669 gl_cv_func_gettimeofday_posix_signature=almost
18670 else
18671 gl_cv_func_gettimeofday_posix_signature=no
18672 fi
18673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18674 fi
18675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18676 fi
18677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
18678 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
18679 if test $gl_cv_func_gettimeofday_posix_signature = almost; then
18680 gl_gettimeofday_timezone='struct timezone'
18681 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
18682 REPLACE_GETTIMEOFDAY=1
18683 fi
18684 if test $REPLACE_STRUCT_TIMEVAL = 1; then
18685 REPLACE_GETTIMEOFDAY=1
18686 fi
18687
18688 fi
18689
18690 cat >>confdefs.h <<_ACEOF
18691 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
18692 _ACEOF
18693
18694
18695 if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
18696
18697
18698
18699
18700
18701
18702
18703
18704 gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
18705
18706
18707 for ac_header in sys/timeb.h
18708 do :
18709 ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
18710 if test "x$ac_cv_header_sys_timeb_h" = xyes; then :
18711 cat >>confdefs.h <<_ACEOF
18712 #define HAVE_SYS_TIMEB_H 1
18713 _ACEOF
18714
18715 fi
18716
18717 done
18718
18719 for ac_func in _ftime
18720 do :
18721 ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime"
18722 if test "x$ac_cv_func__ftime" = xyes; then :
18723 cat >>confdefs.h <<_ACEOF
18724 #define HAVE__FTIME 1
18725 _ACEOF
18726
18727 fi
18728 done
18729
18730
18731 fi
18732
18733
18734
18735
18736
18737 GNULIB_GETTIMEOFDAY=1
18738
18739
18740
18741
18742
18743 $as_echo "#define GNULIB_TEST_GETTIMEOFDAY 1" >>confdefs.h
18744
18745
18746
18747 GLOB_H=
18748 for ac_header in glob.h
18749 do :
18750 ac_fn_c_check_header_mongrel "$LINENO" "glob.h" "ac_cv_header_glob_h" "$ac_includes_default"
18751 if test "x$ac_cv_header_glob_h" = xyes; then :
18752 cat >>confdefs.h <<_ACEOF
18753 #define HAVE_GLOB_H 1
18754 _ACEOF
18755
18756 else
18757 GLOB_H=glob.h
18758 fi
18759
18760 done
18761
18762
18763 if test -z "$GLOB_H"; then
18764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU glob interface version 1" >&5
18765 $as_echo_n "checking for GNU glob interface version 1... " >&6; }
18766 if ${gl_cv_gnu_glob_interface_version_1+:} false; then :
18767 $as_echo_n "(cached) " >&6
18768 else
18769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18770 /* end confdefs.h. */
18771 #include <gnu-versions.h>
18772 char a[_GNU_GLOB_INTERFACE_VERSION == 1 ? 1 : -1];
18773 _ACEOF
18774 if ac_fn_c_try_compile "$LINENO"; then :
18775 gl_cv_gnu_glob_interface_version_1=yes
18776 else
18777 gl_cv_gnu_glob_interface_version_1=no
18778 fi
18779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18780 fi
18781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_gnu_glob_interface_version_1" >&5
18782 $as_echo "$gl_cv_gnu_glob_interface_version_1" >&6; }
18783
18784 if test "$gl_cv_gnu_glob_interface_version_1" = "no"; then
18785 GLOB_H=glob.h
18786 fi
18787 fi
18788
18789 if test -z "$GLOB_H"; then
18790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether glob lists broken symlinks" >&5
18791 $as_echo_n "checking whether glob lists broken symlinks... " >&6; }
18792 if ${gl_cv_glob_lists_symlinks+:} false; then :
18793 $as_echo_n "(cached) " >&6
18794 else
18795 if ln -s conf-doesntexist conf$$-globtest 2>/dev/null; then
18796 gl_cv_glob_lists_symlinks=maybe
18797 else
18798 # If we can't make a symlink, then we cannot test this issue. Be
18799 # pessimistic about this.
18800 gl_cv_glob_lists_symlinks=no
18801 fi
18802
18803 if test $gl_cv_glob_lists_symlinks = maybe; then
18804 if test "$cross_compiling" = yes; then :
18805 gl_cv_glob_lists_symlinks=no
18806 else
18807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18808 /* end confdefs.h. */
18809
18810 #include <stddef.h>
18811 #include <glob.h>
18812 int
18813 main ()
18814 {
18815 glob_t found;
18816 if (glob ("conf*-globtest", 0, NULL, &found) == GLOB_NOMATCH) return 1;
18817 ;
18818 return 0;
18819 }
18820 _ACEOF
18821 if ac_fn_c_try_run "$LINENO"; then :
18822 gl_cv_glob_lists_symlinks=yes
18823 else
18824 gl_cv_glob_lists_symlinks=no
18825 fi
18826 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18827 conftest.$ac_objext conftest.beam conftest.$ac_ext
18828 fi
18829
18830 fi
18831 fi
18832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_glob_lists_symlinks" >&5
18833 $as_echo "$gl_cv_glob_lists_symlinks" >&6; }
18834
18835 if test $gl_cv_glob_lists_symlinks = no; then
18836 GLOB_H=glob.h
18837 fi
18838 fi
18839
18840 rm -f conf$$-globtest
18841
18842
18843 if test -n "$GLOB_H"; then
18844 GL_GENERATE_GLOB_H_TRUE=
18845 GL_GENERATE_GLOB_H_FALSE='#'
18846 else
18847 GL_GENERATE_GLOB_H_TRUE='#'
18848 GL_GENERATE_GLOB_H_FALSE=
18849 fi
18850
18851
18852 if test -n "$GLOB_H"; then
18853
18854
18855
18856
18857
18858
18859
18860
18861 gl_LIBOBJS="$gl_LIBOBJS glob.$ac_objext"
18862
18863
18864
18865 :
18866
18867
18868
18869
18870
18871
18872
18873 if test $ac_cv_header_sys_cdefs_h = yes; then
18874 HAVE_SYS_CDEFS_H=1
18875 else
18876 HAVE_SYS_CDEFS_H=0
18877 fi
18878
18879
18880 :
18881
18882
18883
18884
18885
18886
18887
18888
18889
18890
18891
18892 fi
18893
18894 :
18895
18896
18897
18898
18899
18900
18901
18902
18903 HAVE_INET_NTOP=1
18904 INET_NTOP_LIB=
18905
18906
18907
18908
18909 :
18910
18911
18912
18913
18914
18915 if test $ac_cv_header_sys_socket_h != yes; then
18916 for ac_header in winsock2.h
18917 do :
18918 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
18919 if test "x$ac_cv_header_winsock2_h" = xyes; then :
18920 cat >>confdefs.h <<_ACEOF
18921 #define HAVE_WINSOCK2_H 1
18922 _ACEOF
18923
18924 fi
18925
18926 done
18927
18928 fi
18929 if test "$ac_cv_header_winsock2_h" = yes; then
18930 HAVE_WINSOCK2_H=1
18931 UNISTD_H_HAVE_WINSOCK2_H=1
18932 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
18933 else
18934 HAVE_WINSOCK2_H=0
18935 fi
18936
18937
18938 if test $HAVE_WINSOCK2_H = 1; then
18939 ac_fn_c_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "#include <ws2tcpip.h>
18940 "
18941 if test "x$ac_cv_have_decl_inet_ntop" = xyes; then :
18942 ac_have_decl=1
18943 else
18944 ac_have_decl=0
18945 fi
18946
18947 cat >>confdefs.h <<_ACEOF
18948 #define HAVE_DECL_INET_NTOP $ac_have_decl
18949 _ACEOF
18950
18951 if test $ac_cv_have_decl_inet_ntop = yes; then
18952 REPLACE_INET_NTOP=1
18953 INET_NTOP_LIB="-lws2_32"
18954 else
18955 HAVE_DECL_INET_NTOP=0
18956 HAVE_INET_NTOP=0
18957 fi
18958 else
18959 gl_save_LIBS=$LIBS
18960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
18961 $as_echo_n "checking for library containing inet_ntop... " >&6; }
18962 if ${ac_cv_search_inet_ntop+:} false; then :
18963 $as_echo_n "(cached) " >&6
18964 else
18965 ac_func_search_save_LIBS=$LIBS
18966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18967 /* end confdefs.h. */
18968
18969 /* Override any GCC internal prototype to avoid an error.
18970 Use char because int might match the return type of a GCC
18971 builtin and then its argument prototype would still apply. */
18972 #ifdef __cplusplus
18973 extern "C"
18974 #endif
18975 char inet_ntop ();
18976 int
18977 main ()
18978 {
18979 return inet_ntop ();
18980 ;
18981 return 0;
18982 }
18983 _ACEOF
18984 for ac_lib in '' nsl resolv; do
18985 if test -z "$ac_lib"; then
18986 ac_res="none required"
18987 else
18988 ac_res=-l$ac_lib
18989 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18990 fi
18991 if ac_fn_c_try_link "$LINENO"; then :
18992 ac_cv_search_inet_ntop=$ac_res
18993 fi
18994 rm -f core conftest.err conftest.$ac_objext \
18995 conftest$ac_exeext
18996 if ${ac_cv_search_inet_ntop+:} false; then :
18997 break
18998 fi
18999 done
19000 if ${ac_cv_search_inet_ntop+:} false; then :
19001
19002 else
19003 ac_cv_search_inet_ntop=no
19004 fi
19005 rm conftest.$ac_ext
19006 LIBS=$ac_func_search_save_LIBS
19007 fi
19008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
19009 $as_echo "$ac_cv_search_inet_ntop" >&6; }
19010 ac_res=$ac_cv_search_inet_ntop
19011 if test "$ac_res" != no; then :
19012 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19013
19014 else
19015 for ac_func in inet_ntop
19016 do :
19017 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
19018 if test "x$ac_cv_func_inet_ntop" = xyes; then :
19019 cat >>confdefs.h <<_ACEOF
19020 #define HAVE_INET_NTOP 1
19021 _ACEOF
19022
19023 fi
19024 done
19025
19026 if test $ac_cv_func_inet_ntop = no; then
19027 HAVE_INET_NTOP=0
19028 fi
19029
19030 fi
19031
19032 LIBS=$gl_save_LIBS
19033
19034 if test "$ac_cv_search_inet_ntop" != "no" \
19035 && test "$ac_cv_search_inet_ntop" != "none required"; then
19036 INET_NTOP_LIB="$ac_cv_search_inet_ntop"
19037 fi
19038
19039
19040 :
19041
19042
19043
19044
19045
19046 ac_fn_c_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "#include <arpa/inet.h>
19047 #if HAVE_NETDB_H
19048 # include <netdb.h>
19049 #endif
19050
19051 "
19052 if test "x$ac_cv_have_decl_inet_ntop" = xyes; then :
19053 ac_have_decl=1
19054 else
19055 ac_have_decl=0
19056 fi
19057
19058 cat >>confdefs.h <<_ACEOF
19059 #define HAVE_DECL_INET_NTOP $ac_have_decl
19060 _ACEOF
19061
19062 if test $ac_cv_have_decl_inet_ntop = no; then
19063 HAVE_DECL_INET_NTOP=0
19064 fi
19065 fi
19066
19067
19068 if test $HAVE_INET_NTOP = 0 || test $REPLACE_INET_NTOP = 1; then
19069
19070
19071
19072
19073
19074
19075
19076
19077 gl_LIBOBJS="$gl_LIBOBJS inet_ntop.$ac_objext"
19078
19079
19080
19081
19082 fi
19083
19084
19085
19086
19087
19088 GNULIB_INET_NTOP=1
19089
19090
19091
19092
19093
19094
19095
19096
19097
19098 PRIPTR_PREFIX=
19099 if test -n "$STDINT_H"; then
19100 PRIPTR_PREFIX='"l"'
19101 else
19102 for glpfx in '' l ll I64; do
19103 case $glpfx in
19104 '') gltype1='int';;
19105 l) gltype1='long int';;
19106 ll) gltype1='long long int';;
19107 I64) gltype1='__int64';;
19108 esac
19109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19110 /* end confdefs.h. */
19111 #include <stdint.h>
19112 extern intptr_t foo;
19113 extern $gltype1 foo;
19114 int
19115 main ()
19116 {
19117
19118 ;
19119 return 0;
19120 }
19121 _ACEOF
19122 if ac_fn_c_try_compile "$LINENO"; then :
19123 PRIPTR_PREFIX='"'$glpfx'"'
19124 fi
19125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19126 test -n "$PRIPTR_PREFIX" && break
19127 done
19128 fi
19129
19130
19131
19132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5
19133 $as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
19134 if ${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+:} false; then :
19135 $as_echo_n "(cached) " >&6
19136 else
19137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19138 /* end confdefs.h. */
19139 /* Work also in C++ mode. */
19140 #define __STDC_LIMIT_MACROS 1
19141
19142 /* Work if build is not clean. */
19143 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
19144
19145 #include <limits.h>
19146 #if HAVE_STDINT_H
19147 #include <stdint.h>
19148 #endif
19149
19150 #if defined INT32_MAX && defined INTMAX_MAX
19151 #define CONDITION (INT32_MAX < INTMAX_MAX)
19152 #elif HAVE_LONG_LONG_INT
19153 #define CONDITION (sizeof (int) < sizeof (long long int))
19154 #else
19155 #define CONDITION 0
19156 #endif
19157 int test[CONDITION ? 1 : -1];
19158 int
19159 main ()
19160 {
19161
19162 ;
19163 return 0;
19164 }
19165 _ACEOF
19166 if ac_fn_c_try_compile "$LINENO"; then :
19167 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=yes
19168 else
19169 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=no
19170 fi
19171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19172 fi
19173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
19174 $as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
19175 if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
19176 INT32_MAX_LT_INTMAX_MAX=1;
19177 else
19178 INT32_MAX_LT_INTMAX_MAX=0;
19179 fi
19180
19181
19182 if test $APPLE_UNIVERSAL_BUILD = 0; then
19183
19184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5
19185 $as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; }
19186 if ${gl_cv_test_INT64_MAX_EQ_LONG_MAX+:} false; then :
19187 $as_echo_n "(cached) " >&6
19188 else
19189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19190 /* end confdefs.h. */
19191 /* Work also in C++ mode. */
19192 #define __STDC_LIMIT_MACROS 1
19193
19194 /* Work if build is not clean. */
19195 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
19196
19197 #include <limits.h>
19198 #if HAVE_STDINT_H
19199 #include <stdint.h>
19200 #endif
19201
19202 #if defined INT64_MAX
19203 #define CONDITION (INT64_MAX == LONG_MAX)
19204 #elif HAVE_LONG_LONG_INT
19205 #define CONDITION (sizeof (long long int) == sizeof (long int))
19206 #else
19207 #define CONDITION 0
19208 #endif
19209 int test[CONDITION ? 1 : -1];
19210 int
19211 main ()
19212 {
19213
19214 ;
19215 return 0;
19216 }
19217 _ACEOF
19218 if ac_fn_c_try_compile "$LINENO"; then :
19219 gl_cv_test_INT64_MAX_EQ_LONG_MAX=yes
19220 else
19221 gl_cv_test_INT64_MAX_EQ_LONG_MAX=no
19222 fi
19223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19224 fi
19225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
19226 $as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
19227 if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
19228 INT64_MAX_EQ_LONG_MAX=1;
19229 else
19230 INT64_MAX_EQ_LONG_MAX=0;
19231 fi
19232
19233
19234 else
19235 INT64_MAX_EQ_LONG_MAX=-1
19236 fi
19237
19238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5
19239 $as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
19240 if ${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+:} false; then :
19241 $as_echo_n "(cached) " >&6
19242 else
19243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19244 /* end confdefs.h. */
19245 /* Work also in C++ mode. */
19246 #define __STDC_LIMIT_MACROS 1
19247
19248 /* Work if build is not clean. */
19249 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
19250
19251 #include <limits.h>
19252 #if HAVE_STDINT_H
19253 #include <stdint.h>
19254 #endif
19255
19256 #if defined UINT32_MAX && defined UINTMAX_MAX
19257 #define CONDITION (UINT32_MAX < UINTMAX_MAX)
19258 #elif HAVE_LONG_LONG_INT
19259 #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
19260 #else
19261 #define CONDITION 0
19262 #endif
19263 int test[CONDITION ? 1 : -1];
19264 int
19265 main ()
19266 {
19267
19268 ;
19269 return 0;
19270 }
19271 _ACEOF
19272 if ac_fn_c_try_compile "$LINENO"; then :
19273 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=yes
19274 else
19275 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=no
19276 fi
19277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19278 fi
19279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
19280 $as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
19281 if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
19282 UINT32_MAX_LT_UINTMAX_MAX=1;
19283 else
19284 UINT32_MAX_LT_UINTMAX_MAX=0;
19285 fi
19286
19287
19288 if test $APPLE_UNIVERSAL_BUILD = 0; then
19289
19290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5
19291 $as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
19292 if ${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+:} false; then :
19293 $as_echo_n "(cached) " >&6
19294 else
19295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19296 /* end confdefs.h. */
19297 /* Work also in C++ mode. */
19298 #define __STDC_LIMIT_MACROS 1
19299
19300 /* Work if build is not clean. */
19301 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
19302
19303 #include <limits.h>
19304 #if HAVE_STDINT_H
19305 #include <stdint.h>
19306 #endif
19307
19308 #if defined UINT64_MAX
19309 #define CONDITION (UINT64_MAX == ULONG_MAX)
19310 #elif HAVE_LONG_LONG_INT
19311 #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
19312 #else
19313 #define CONDITION 0
19314 #endif
19315 int test[CONDITION ? 1 : -1];
19316 int
19317 main ()
19318 {
19319
19320 ;
19321 return 0;
19322 }
19323 _ACEOF
19324 if ac_fn_c_try_compile "$LINENO"; then :
19325 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=yes
19326 else
19327 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=no
19328 fi
19329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19330 fi
19331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
19332 $as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
19333 if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
19334 UINT64_MAX_EQ_ULONG_MAX=1;
19335 else
19336 UINT64_MAX_EQ_ULONG_MAX=0;
19337 fi
19338
19339
19340 else
19341 UINT64_MAX_EQ_ULONG_MAX=-1
19342 fi
19343
19344
19345
19346
19347
19348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(double) can be used without linking with libm" >&5
19349 $as_echo_n "checking whether isnan(double) can be used without linking with libm... " >&6; }
19350 if ${gl_cv_func_isnand_no_libm+:} false; then :
19351 $as_echo_n "(cached) " >&6
19352 else
19353
19354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19355 /* end confdefs.h. */
19356 #include <math.h>
19357 #if __GNUC__ >= 4
19358 # undef isnand
19359 # define isnand(x) __builtin_isnan ((double)(x))
19360 #else
19361 # undef isnand
19362 # define isnand(x) isnan ((double)(x))
19363 #endif
19364 double x;
19365 int
19366 main ()
19367 {
19368 return isnand (x);
19369 ;
19370 return 0;
19371 }
19372 _ACEOF
19373 if ac_fn_c_try_link "$LINENO"; then :
19374 gl_cv_func_isnand_no_libm=yes
19375 else
19376 gl_cv_func_isnand_no_libm=no
19377 fi
19378 rm -f core conftest.err conftest.$ac_objext \
19379 conftest$ac_exeext conftest.$ac_ext
19380
19381 fi
19382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnand_no_libm" >&5
19383 $as_echo "$gl_cv_func_isnand_no_libm" >&6; }
19384
19385 gl_func_isnand_no_libm=$gl_cv_func_isnand_no_libm
19386 if test $gl_cv_func_isnand_no_libm = yes; then
19387
19388 $as_echo "#define HAVE_ISNAND_IN_LIBC 1" >>confdefs.h
19389
19390 fi
19391
19392 if test $gl_func_isnand_no_libm != yes; then
19393
19394
19395
19396
19397
19398
19399
19400
19401 gl_LIBOBJS="$gl_LIBOBJS isnand.$ac_objext"
19402
19403
19404
19405
19406 fi
19407
19408
19409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(long double) can be used without linking with libm" >&5
19410 $as_echo_n "checking whether isnan(long double) can be used without linking with libm... " >&6; }
19411 if ${gl_cv_func_isnanl_no_libm+:} false; then :
19412 $as_echo_n "(cached) " >&6
19413 else
19414
19415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19416 /* end confdefs.h. */
19417 #include <math.h>
19418 #if __GNUC__ >= 4
19419 # undef isnanl
19420 # define isnanl(x) __builtin_isnanl ((long double)(x))
19421 #elif defined isnan
19422 # undef isnanl
19423 # define isnanl(x) isnan ((long double)(x))
19424 #endif
19425 long double x;
19426 int
19427 main ()
19428 {
19429 return isnanl (x);
19430 ;
19431 return 0;
19432 }
19433 _ACEOF
19434 if ac_fn_c_try_link "$LINENO"; then :
19435 gl_cv_func_isnanl_no_libm=yes
19436 else
19437 gl_cv_func_isnanl_no_libm=no
19438 fi
19439 rm -f core conftest.err conftest.$ac_objext \
19440 conftest$ac_exeext conftest.$ac_ext
19441
19442 fi
19443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_no_libm" >&5
19444 $as_echo "$gl_cv_func_isnanl_no_libm" >&6; }
19445
19446 gl_func_isnanl_no_libm=$gl_cv_func_isnanl_no_libm
19447 if test $gl_func_isnanl_no_libm = yes; then
19448
19449
19450
19451
19452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnanl works" >&5
19453 $as_echo_n "checking whether isnanl works... " >&6; }
19454 if ${gl_cv_func_isnanl_works+:} false; then :
19455 $as_echo_n "(cached) " >&6
19456 else
19457
19458 if test "$cross_compiling" = yes; then :
19459 gl_cv_func_isnanl_works="guessing yes"
19460 else
19461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19462 /* end confdefs.h. */
19463
19464 #include <float.h>
19465 #include <limits.h>
19466 #include <math.h>
19467 #if __GNUC__ >= 4
19468 # undef isnanl
19469 # define isnanl(x) __builtin_isnanl ((long double)(x))
19470 #elif defined isnan
19471 # undef isnanl
19472 # define isnanl(x) isnan ((long double)(x))
19473 #endif
19474 #define NWORDS \
19475 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
19476 typedef union { unsigned int word[NWORDS]; long double value; }
19477 memory_long_double;
19478 /* On Irix 6.5, gcc 3.4.3 can't compute compile-time NaN, and needs the
19479 runtime type conversion. */
19480 #ifdef __sgi
19481 static long double NaNl ()
19482 {
19483 double zero = 0.0;
19484 return zero / zero;
19485 }
19486 #else
19487 # define NaNl() (0.0L / 0.0L)
19488 #endif
19489 int main ()
19490 {
19491 int result = 0;
19492
19493 if (!isnanl (NaNl ()))
19494 result |= 1;
19495
19496 {
19497 memory_long_double m;
19498 unsigned int i;
19499
19500 /* The isnanl function should be immune against changes in the sign bit and
19501 in the mantissa bits. The xor operation twiddles a bit that can only be
19502 a sign bit or a mantissa bit (since the exponent never extends to
19503 bit 31). */
19504 m.value = NaNl ();
19505 m.word[NWORDS / 2] ^= (unsigned int) 1 << (sizeof (unsigned int) * CHAR_BIT - 1);
19506 for (i = 0; i < NWORDS; i++)
19507 m.word[i] |= 1;
19508 if (!isnanl (m.value))
19509 result |= 1;
19510 }
19511
19512 #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
19513 /* Representation of an 80-bit 'long double' as an initializer for a sequence
19514 of 'unsigned int' words. */
19515 # ifdef WORDS_BIGENDIAN
19516 # define LDBL80_WORDS(exponent,manthi,mantlo) \
19517 { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
19518 ((unsigned int) (manthi) << 16) | ((unsigned int) (mantlo) >> 16), \
19519 (unsigned int) (mantlo) << 16 \
19520 }
19521 # else
19522 # define LDBL80_WORDS(exponent,manthi,mantlo) \
19523 { mantlo, manthi, exponent }
19524 # endif
19525 { /* Quiet NaN. */
19526 static memory_long_double x =
19527 { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) };
19528 if (!isnanl (x.value))
19529 result |= 2;
19530 }
19531 {
19532 /* Signalling NaN. */
19533 static memory_long_double x =
19534 { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) };
19535 if (!isnanl (x.value))
19536 result |= 2;
19537 }
19538 /* isnanl should return something even for noncanonical values. */
19539 { /* Pseudo-NaN. */
19540 static memory_long_double x =
19541 { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) };
19542 if (isnanl (x.value) && !isnanl (x.value))
19543 result |= 4;
19544 }
19545 { /* Pseudo-Infinity. */
19546 static memory_long_double x =
19547 { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) };
19548 if (isnanl (x.value) && !isnanl (x.value))
19549 result |= 8;
19550 }
19551 { /* Pseudo-Zero. */
19552 static memory_long_double x =
19553 { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) };
19554 if (isnanl (x.value) && !isnanl (x.value))
19555 result |= 16;
19556 }
19557 { /* Unnormalized number. */
19558 static memory_long_double x =
19559 { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) };
19560 if (isnanl (x.value) && !isnanl (x.value))
19561 result |= 32;
19562 }
19563 { /* Pseudo-Denormal. */
19564 static memory_long_double x =
19565 { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) };
19566 if (isnanl (x.value) && !isnanl (x.value))
19567 result |= 64;
19568 }
19569 #endif
19570
19571 return result;
19572 }
19573 _ACEOF
19574 if ac_fn_c_try_run "$LINENO"; then :
19575 gl_cv_func_isnanl_works=yes
19576 else
19577 gl_cv_func_isnanl_works=no
19578 fi
19579 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19580 conftest.$ac_objext conftest.beam conftest.$ac_ext
19581 fi
19582
19583
19584 fi
19585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_works" >&5
19586 $as_echo "$gl_cv_func_isnanl_works" >&6; }
19587
19588 case "$gl_cv_func_isnanl_works" in
19589 *yes) ;;
19590 *) gl_func_isnanl_no_libm=no ;;
19591 esac
19592 fi
19593 if test $gl_func_isnanl_no_libm = yes; then
19594
19595 $as_echo "#define HAVE_ISNANL_IN_LIBC 1" >>confdefs.h
19596
19597 fi
19598
19599 if test $gl_func_isnanl_no_libm != yes; then
19600
19601
19602
19603
19604
19605
19606
19607
19608 gl_LIBOBJS="$gl_LIBOBJS isnanl.$ac_objext"
19609
19610
19611
19612
19613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'long double'" >&5
19614 $as_echo_n "checking where to find the exponent in a 'long double'... " >&6; }
19615 if ${gl_cv_cc_long_double_expbit0+:} false; then :
19616 $as_echo_n "(cached) " >&6
19617 else
19618
19619 if test "$cross_compiling" = yes; then :
19620
19621 gl_cv_cc_long_double_expbit0="unknown"
19622
19623 else
19624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19625 /* end confdefs.h. */
19626
19627 #include <float.h>
19628 #include <stddef.h>
19629 #include <stdio.h>
19630 #include <string.h>
19631 #define NWORDS \
19632 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
19633 typedef union { long double value; unsigned int word[NWORDS]; }
19634 memory_long_double;
19635 static unsigned int ored_words[NWORDS];
19636 static unsigned int anded_words[NWORDS];
19637 static void add_to_ored_words (long double x)
19638 {
19639 memory_long_double m;
19640 size_t i;
19641 /* Clear it first, in case
19642 sizeof (long double) < sizeof (memory_long_double). */
19643 memset (&m, 0, sizeof (memory_long_double));
19644 m.value = x;
19645 for (i = 0; i < NWORDS; i++)
19646 {
19647 ored_words[i] |= m.word[i];
19648 anded_words[i] &= m.word[i];
19649 }
19650 }
19651 int main ()
19652 {
19653 size_t j;
19654 FILE *fp = fopen ("conftest.out", "w");
19655 if (fp == NULL)
19656 return 1;
19657 for (j = 0; j < NWORDS; j++)
19658 anded_words[j] = ~ (unsigned int) 0;
19659 add_to_ored_words (0.25L);
19660 add_to_ored_words (0.5L);
19661 add_to_ored_words (1.0L);
19662 add_to_ored_words (2.0L);
19663 add_to_ored_words (4.0L);
19664 /* Remove bits that are common (e.g. if representation of the first mantissa
19665 bit is explicit). */
19666 for (j = 0; j < NWORDS; j++)
19667 ored_words[j] &= ~anded_words[j];
19668 /* Now find the nonzero word. */
19669 for (j = 0; j < NWORDS; j++)
19670 if (ored_words[j] != 0)
19671 break;
19672 if (j < NWORDS)
19673 {
19674 size_t i;
19675 for (i = j + 1; i < NWORDS; i++)
19676 if (ored_words[i] != 0)
19677 {
19678 fprintf (fp, "unknown");
19679 return (fclose (fp) != 0);
19680 }
19681 for (i = 0; ; i++)
19682 if ((ored_words[j] >> i) & 1)
19683 {
19684 fprintf (fp, "word %d bit %d", (int) j, (int) i);
19685 return (fclose (fp) != 0);
19686 }
19687 }
19688 fprintf (fp, "unknown");
19689 return (fclose (fp) != 0);
19690 }
19691
19692 _ACEOF
19693 if ac_fn_c_try_run "$LINENO"; then :
19694 gl_cv_cc_long_double_expbit0=`cat conftest.out`
19695 else
19696 gl_cv_cc_long_double_expbit0="unknown"
19697 fi
19698 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19699 conftest.$ac_objext conftest.beam conftest.$ac_ext
19700 fi
19701
19702 rm -f conftest.out
19703
19704 fi
19705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_long_double_expbit0" >&5
19706 $as_echo "$gl_cv_cc_long_double_expbit0" >&6; }
19707 case "$gl_cv_cc_long_double_expbit0" in
19708 word*bit*)
19709 word=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
19710 bit=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word.*bit //'`
19711
19712 cat >>confdefs.h <<_ACEOF
19713 #define LDBL_EXPBIT0_WORD $word
19714 _ACEOF
19715
19716
19717 cat >>confdefs.h <<_ACEOF
19718 #define LDBL_EXPBIT0_BIT $bit
19719 _ACEOF
19720
19721 ;;
19722 esac
19723
19724
19725
19726 fi
19727
19728
19729
19730
19731
19732
19733 :
19734
19735
19736
19737
19738
19739
19740
19741
19742
19743 LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
19744
19745
19746
19747
19748 :
19749
19750
19751
19752
19753
19754 if test $ac_cv_func_lstat = yes; then
19755
19756 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
19757 *no)
19758 REPLACE_LSTAT=1
19759 ;;
19760 esac
19761 else
19762 HAVE_LSTAT=0
19763 fi
19764
19765 if test $REPLACE_LSTAT = 1; then
19766
19767
19768
19769
19770
19771
19772
19773
19774 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
19775
19776 :
19777 fi
19778
19779
19780
19781
19782
19783 GNULIB_LSTAT=1
19784
19785
19786
19787
19788
19789 $as_echo "#define GNULIB_TEST_LSTAT 1" >>confdefs.h
19790
19791
19792
19793
19794
19795
19796 if test $gl_cv_func_malloc_posix = yes; then
19797
19798 $as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
19799
19800 else
19801 REPLACE_MALLOC=1
19802 fi
19803
19804 if test $REPLACE_MALLOC = 1; then
19805
19806
19807
19808
19809
19810
19811
19812
19813 gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
19814
19815 fi
19816
19817
19818
19819
19820
19821 GNULIB_MALLOC_POSIX=1
19822
19823
19824
19825
19826
19827 $as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
19828
19829
19830
19831
19832
19833
19834
19835
19836
19837
19838
19839
19840
19841
19842
19843 :
19844
19845
19846
19847
19848
19849
19850
19851
19852 if test $gl_cv_have_include_next = yes; then
19853 gl_cv_next_math_h='<'math.h'>'
19854 else
19855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <math.h>" >&5
19856 $as_echo_n "checking absolute name of <math.h>... " >&6; }
19857 if ${gl_cv_next_math_h+:} false; then :
19858 $as_echo_n "(cached) " >&6
19859 else
19860
19861 if test $ac_cv_header_math_h = yes; then
19862
19863
19864
19865
19866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19867 /* end confdefs.h. */
19868 #include <math.h>
19869 _ACEOF
19870 case "$host_os" in
19871 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19872 *) gl_absname_cpp="$ac_cpp" ;;
19873 esac
19874
19875 case "$host_os" in
19876 mingw*)
19877 gl_dirsep_regex='[/\\]'
19878 ;;
19879 *)
19880 gl_dirsep_regex='\/'
19881 ;;
19882 esac
19883 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19884 gl_header_literal_regex=`echo 'math.h' \
19885 | sed -e "$gl_make_literal_regex_sed"`
19886 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19887 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19888 s|^/[^/]|//&|
19889 p
19890 q
19891 }'
19892
19893 gl_cv_absolute_math_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19894 sed -n "$gl_absolute_header_sed"`
19895
19896 gl_header=$gl_cv_absolute_math_h
19897 gl_cv_next_math_h='"'$gl_header'"'
19898 else
19899 gl_cv_next_math_h='<'math.h'>'
19900 fi
19901
19902
19903 fi
19904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_math_h" >&5
19905 $as_echo "$gl_cv_next_math_h" >&6; }
19906 fi
19907 NEXT_MATH_H=$gl_cv_next_math_h
19908
19909 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19910 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19911 gl_next_as_first_directive='<'math.h'>'
19912 else
19913 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19914 gl_next_as_first_directive=$gl_cv_next_math_h
19915 fi
19916 NEXT_AS_FIRST_DIRECTIVE_MATH_H=$gl_next_as_first_directive
19917
19918
19919
19920
19921
19922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NAN macro works" >&5
19923 $as_echo_n "checking whether NAN macro works... " >&6; }
19924 if ${gl_cv_header_math_nan_works+:} false; then :
19925 $as_echo_n "(cached) " >&6
19926 else
19927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19928 /* end confdefs.h. */
19929 #include <math.h>
19930 int
19931 main ()
19932 {
19933 /* Solaris 10 has a broken definition of NAN. Other platforms
19934 fail to provide NAN, or provide it only in C99 mode; this
19935 test only needs to fail when NAN is provided but wrong. */
19936 float f = 1.0f;
19937 #ifdef NAN
19938 f = NAN;
19939 #endif
19940 return f == 0;
19941 ;
19942 return 0;
19943 }
19944 _ACEOF
19945 if ac_fn_c_try_compile "$LINENO"; then :
19946 gl_cv_header_math_nan_works=yes
19947 else
19948 gl_cv_header_math_nan_works=no
19949 fi
19950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19951 fi
19952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_nan_works" >&5
19953 $as_echo "$gl_cv_header_math_nan_works" >&6; }
19954 if test $gl_cv_header_math_nan_works = no; then
19955 REPLACE_NAN=1
19956 fi
19957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether HUGE_VAL works" >&5
19958 $as_echo_n "checking whether HUGE_VAL works... " >&6; }
19959 if ${gl_cv_header_math_huge_val_works+:} false; then :
19960 $as_echo_n "(cached) " >&6
19961 else
19962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19963 /* end confdefs.h. */
19964 #include <math.h>
19965 int
19966 main ()
19967 {
19968 /* Solaris 10 has a broken definition of HUGE_VAL. */
19969 double d = HUGE_VAL;
19970 return d == 0;
19971 ;
19972 return 0;
19973 }
19974 _ACEOF
19975 if ac_fn_c_try_compile "$LINENO"; then :
19976 gl_cv_header_math_huge_val_works=yes
19977 else
19978 gl_cv_header_math_huge_val_works=no
19979 fi
19980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19981 fi
19982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_huge_val_works" >&5
19983 $as_echo "$gl_cv_header_math_huge_val_works" >&6; }
19984 if test $gl_cv_header_math_huge_val_works = no; then
19985 REPLACE_HUGE_VAL=1
19986 fi
19987
19988
19989 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
19990 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
19991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
19992 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
19993 if eval \${$as_gl_Symbol+:} false; then :
19994 $as_echo_n "(cached) " >&6
19995 else
19996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19997 /* end confdefs.h. */
19998 #include <math.h>
19999 int
20000 main ()
20001 {
20002 #undef $gl_func
20003 (void) $gl_func;
20004 ;
20005 return 0;
20006 }
20007 _ACEOF
20008 if ac_fn_c_try_compile "$LINENO"; then :
20009 eval "$as_gl_Symbol=yes"
20010 else
20011 eval "$as_gl_Symbol=no"
20012 fi
20013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20014 fi
20015 eval ac_res=\$$as_gl_Symbol
20016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20017 $as_echo "$ac_res" >&6; }
20018 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
20019 cat >>confdefs.h <<_ACEOF
20020 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
20021 _ACEOF
20022
20023 eval ac_cv_have_decl_$gl_func=yes
20024 fi
20025 done
20026
20027
20028
20029
20030
20031
20032
20033
20034
20035
20036
20037 :
20038
20039
20040
20041
20042
20043
20044 :
20045
20046
20047
20048
20049
20050 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
20051
20052
20053
20054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
20055 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
20056 if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then :
20057 $as_echo_n "(cached) " >&6
20058 else
20059
20060 case "$host_os" in
20061 # Guess no on AIX and OSF/1.
20062 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
20063 # Guess yes otherwise.
20064 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
20065 esac
20066 if test $LOCALE_JA != none; then
20067 if test "$cross_compiling" = yes; then :
20068 :
20069 else
20070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20071 /* end confdefs.h. */
20072
20073 #include <locale.h>
20074 #include <string.h>
20075 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20076 <wchar.h>.
20077 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20078 included before <wchar.h>. */
20079 #include <stddef.h>
20080 #include <stdio.h>
20081 #include <time.h>
20082 #include <wchar.h>
20083 int main ()
20084 {
20085 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
20086 {
20087 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
20088 mbstate_t state;
20089 wchar_t wc;
20090
20091 memset (&state, '\0', sizeof (mbstate_t));
20092 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
20093 if (mbsinit (&state))
20094 return 1;
20095 }
20096 return 0;
20097 }
20098 _ACEOF
20099 if ac_fn_c_try_run "$LINENO"; then :
20100 gl_cv_func_mbrtowc_incomplete_state=yes
20101 else
20102 gl_cv_func_mbrtowc_incomplete_state=no
20103 fi
20104 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20105 conftest.$ac_objext conftest.beam conftest.$ac_ext
20106 fi
20107
20108 fi
20109
20110 fi
20111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
20112 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
20113
20114
20115
20116
20117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
20118 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
20119 if ${gl_cv_func_mbrtowc_sanitycheck+:} false; then :
20120 $as_echo_n "(cached) " >&6
20121 else
20122
20123 case "$host_os" in
20124 # Guess no on Solaris 8.
20125 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
20126 # Guess yes otherwise.
20127 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
20128 esac
20129 if test $LOCALE_ZH_CN != none; then
20130 if test "$cross_compiling" = yes; then :
20131 :
20132 else
20133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20134 /* end confdefs.h. */
20135
20136 #include <locale.h>
20137 #include <stdlib.h>
20138 #include <string.h>
20139 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20140 <wchar.h>.
20141 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20142 included before <wchar.h>. */
20143 #include <stddef.h>
20144 #include <stdio.h>
20145 #include <time.h>
20146 #include <wchar.h>
20147 int main ()
20148 {
20149 /* This fails on Solaris 8:
20150 mbrtowc returns 2, and sets wc to 0x00F0.
20151 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
20152 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
20153 {
20154 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
20155 mbstate_t state;
20156 wchar_t wc;
20157
20158 memset (&state, '\0', sizeof (mbstate_t));
20159 if (mbrtowc (&wc, input + 3, 6, &state) != 4
20160 && mbtowc (&wc, input + 3, 6) == 4)
20161 return 1;
20162 }
20163 return 0;
20164 }
20165 _ACEOF
20166 if ac_fn_c_try_run "$LINENO"; then :
20167 gl_cv_func_mbrtowc_sanitycheck=yes
20168 else
20169 gl_cv_func_mbrtowc_sanitycheck=no
20170 fi
20171 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20172 conftest.$ac_objext conftest.beam conftest.$ac_ext
20173 fi
20174
20175 fi
20176
20177 fi
20178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
20179 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
20180
20181 REPLACE_MBSTATE_T=0
20182 case "$gl_cv_func_mbrtowc_incomplete_state" in
20183 *yes) ;;
20184 *) REPLACE_MBSTATE_T=1 ;;
20185 esac
20186 case "$gl_cv_func_mbrtowc_sanitycheck" in
20187 *yes) ;;
20188 *) REPLACE_MBSTATE_T=1 ;;
20189 esac
20190 else
20191 REPLACE_MBSTATE_T=1
20192 fi
20193
20194
20195
20196 :
20197
20198
20199
20200
20201
20202 if test $ac_cv_func_mbrtowc = no; then
20203 HAVE_MBRTOWC=0
20204 ac_fn_c_check_decl "$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" "
20205 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20206 <wchar.h>.
20207 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20208 included before <wchar.h>. */
20209 #include <stddef.h>
20210 #include <stdio.h>
20211 #include <time.h>
20212 #include <wchar.h>
20213
20214 "
20215 if test "x$ac_cv_have_decl_mbrtowc" = xyes; then :
20216 ac_have_decl=1
20217 else
20218 ac_have_decl=0
20219 fi
20220
20221 cat >>confdefs.h <<_ACEOF
20222 #define HAVE_DECL_MBRTOWC $ac_have_decl
20223 _ACEOF
20224
20225 if test $ac_cv_have_decl_mbrtowc = yes; then
20226 REPLACE_MBRTOWC=1
20227 fi
20228 else
20229 if test $REPLACE_MBSTATE_T = 1; then
20230 REPLACE_MBRTOWC=1
20231 else
20232
20233
20234
20235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL pwc argument" >&5
20236 $as_echo_n "checking whether mbrtowc handles a NULL pwc argument... " >&6; }
20237 if ${gl_cv_func_mbrtowc_null_arg1+:} false; then :
20238 $as_echo_n "(cached) " >&6
20239 else
20240
20241 case "$host_os" in
20242 # Guess no on Solaris.
20243 solaris*) gl_cv_func_mbrtowc_null_arg1="guessing no" ;;
20244 # Guess yes otherwise.
20245 *) gl_cv_func_mbrtowc_null_arg1="guessing yes" ;;
20246 esac
20247 if test $LOCALE_FR_UTF8 != none; then
20248 if test "$cross_compiling" = yes; then :
20249 :
20250 else
20251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20252 /* end confdefs.h. */
20253
20254 #include <locale.h>
20255 #include <stdlib.h>
20256 #include <string.h>
20257 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20258 <wchar.h>.
20259 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20260 included before <wchar.h>. */
20261 #include <stddef.h>
20262 #include <stdio.h>
20263 #include <time.h>
20264 #include <wchar.h>
20265 int main ()
20266 {
20267 int result = 0;
20268
20269 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
20270 {
20271 char input[] = "\303\237er";
20272 mbstate_t state;
20273 wchar_t wc;
20274 size_t ret;
20275
20276 memset (&state, '\0', sizeof (mbstate_t));
20277 wc = (wchar_t) 0xBADFACE;
20278 ret = mbrtowc (&wc, input, 5, &state);
20279 if (ret != 2)
20280 result |= 1;
20281 if (!mbsinit (&state))
20282 result |= 2;
20283
20284 memset (&state, '\0', sizeof (mbstate_t));
20285 ret = mbrtowc (NULL, input, 5, &state);
20286 if (ret != 2) /* Solaris 7 fails here: ret is -1. */
20287 result |= 4;
20288 if (!mbsinit (&state))
20289 result |= 8;
20290 }
20291 return result;
20292 }
20293 _ACEOF
20294 if ac_fn_c_try_run "$LINENO"; then :
20295 gl_cv_func_mbrtowc_null_arg1=yes
20296 else
20297 gl_cv_func_mbrtowc_null_arg1=no
20298 fi
20299 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20300 conftest.$ac_objext conftest.beam conftest.$ac_ext
20301 fi
20302
20303 fi
20304
20305 fi
20306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg1" >&5
20307 $as_echo "$gl_cv_func_mbrtowc_null_arg1" >&6; }
20308
20309
20310
20311
20312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
20313 $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
20314 if ${gl_cv_func_mbrtowc_null_arg2+:} false; then :
20315 $as_echo_n "(cached) " >&6
20316 else
20317
20318 case "$host_os" in
20319 # Guess no on OSF/1.
20320 osf*) gl_cv_func_mbrtowc_null_arg2="guessing no" ;;
20321 # Guess yes otherwise.
20322 *) gl_cv_func_mbrtowc_null_arg2="guessing yes" ;;
20323 esac
20324 if test $LOCALE_FR_UTF8 != none; then
20325 if test "$cross_compiling" = yes; then :
20326 :
20327 else
20328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20329 /* end confdefs.h. */
20330
20331 #include <locale.h>
20332 #include <string.h>
20333 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20334 <wchar.h>.
20335 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20336 included before <wchar.h>. */
20337 #include <stddef.h>
20338 #include <stdio.h>
20339 #include <time.h>
20340 #include <wchar.h>
20341 int main ()
20342 {
20343 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
20344 {
20345 mbstate_t state;
20346 wchar_t wc;
20347 int ret;
20348
20349 memset (&state, '\0', sizeof (mbstate_t));
20350 wc = (wchar_t) 0xBADFACE;
20351 mbrtowc (&wc, NULL, 5, &state);
20352 /* Check that wc was not modified. */
20353 if (wc != (wchar_t) 0xBADFACE)
20354 return 1;
20355 }
20356 return 0;
20357 }
20358 _ACEOF
20359 if ac_fn_c_try_run "$LINENO"; then :
20360 gl_cv_func_mbrtowc_null_arg2=yes
20361 else
20362 gl_cv_func_mbrtowc_null_arg2=no
20363 fi
20364 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20365 conftest.$ac_objext conftest.beam conftest.$ac_ext
20366 fi
20367
20368 fi
20369
20370 fi
20371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg2" >&5
20372 $as_echo "$gl_cv_func_mbrtowc_null_arg2" >&6; }
20373
20374
20375
20376
20377
20378
20379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
20380 $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
20381 if ${gl_cv_func_mbrtowc_retval+:} false; then :
20382 $as_echo_n "(cached) " >&6
20383 else
20384
20385 case "$host_os" in
20386 # Guess no on HP-UX, Solaris, native Windows.
20387 hpux* | solaris* | mingw*) gl_cv_func_mbrtowc_retval="guessing no" ;;
20388 # Guess yes otherwise.
20389 *) gl_cv_func_mbrtowc_retval="guessing yes" ;;
20390 esac
20391 if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none \
20392 || { case "$host_os" in mingw*) true;; *) false;; esac; }; then
20393 if test "$cross_compiling" = yes; then :
20394 :
20395 else
20396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20397 /* end confdefs.h. */
20398
20399 #include <locale.h>
20400 #include <string.h>
20401 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20402 <wchar.h>.
20403 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20404 included before <wchar.h>. */
20405 #include <stddef.h>
20406 #include <stdio.h>
20407 #include <time.h>
20408 #include <wchar.h>
20409 int main ()
20410 {
20411 int result = 0;
20412 int found_some_locale = 0;
20413 /* This fails on Solaris. */
20414 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
20415 {
20416 char input[] = "B\303\274\303\237er"; /* "Büßer" */
20417 mbstate_t state;
20418 wchar_t wc;
20419
20420 memset (&state, '\0', sizeof (mbstate_t));
20421 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
20422 {
20423 input[1] = '\0';
20424 if (mbrtowc (&wc, input + 2, 5, &state) != 1)
20425 result |= 1;
20426 }
20427 found_some_locale = 1;
20428 }
20429 /* This fails on HP-UX 11.11. */
20430 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
20431 {
20432 char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
20433 mbstate_t state;
20434 wchar_t wc;
20435
20436 memset (&state, '\0', sizeof (mbstate_t));
20437 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
20438 {
20439 input[1] = '\0';
20440 if (mbrtowc (&wc, input + 2, 5, &state) != 2)
20441 result |= 2;
20442 }
20443 found_some_locale = 1;
20444 }
20445 /* This fails on native Windows. */
20446 if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
20447 {
20448 char input[] = "<\223\372\226\173\214\352>"; /* "<日本語>" */
20449 mbstate_t state;
20450 wchar_t wc;
20451
20452 memset (&state, '\0', sizeof (mbstate_t));
20453 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
20454 {
20455 input[3] = '\0';
20456 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
20457 result |= 4;
20458 }
20459 found_some_locale = 1;
20460 }
20461 if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
20462 {
20463 char input[] = "<\244\351\245\273\273\171>"; /* "<日本語>" */
20464 mbstate_t state;
20465 wchar_t wc;
20466
20467 memset (&state, '\0', sizeof (mbstate_t));
20468 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
20469 {
20470 input[3] = '\0';
20471 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
20472 result |= 8;
20473 }
20474 found_some_locale = 1;
20475 }
20476 if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
20477 {
20478 char input[] = "<\310\325\261\276\325\132>"; /* "<日本語>" */
20479 mbstate_t state;
20480 wchar_t wc;
20481
20482 memset (&state, '\0', sizeof (mbstate_t));
20483 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
20484 {
20485 input[3] = '\0';
20486 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
20487 result |= 16;
20488 }
20489 found_some_locale = 1;
20490 }
20491 return (found_some_locale ? result : 77);
20492 }
20493 _ACEOF
20494 if ac_fn_c_try_run "$LINENO"; then :
20495 gl_cv_func_mbrtowc_retval=yes
20496 else
20497 if test $? != 77; then
20498 gl_cv_func_mbrtowc_retval=no
20499 fi
20500
20501 fi
20502 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20503 conftest.$ac_objext conftest.beam conftest.$ac_ext
20504 fi
20505
20506 fi
20507
20508 fi
20509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
20510 $as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
20511
20512
20513
20514
20515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
20516 $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
20517 if ${gl_cv_func_mbrtowc_nul_retval+:} false; then :
20518 $as_echo_n "(cached) " >&6
20519 else
20520
20521 case "$host_os" in
20522 # Guess no on Solaris 8 and 9.
20523 solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
20524 # Guess yes otherwise.
20525 *) gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
20526 esac
20527 if test $LOCALE_ZH_CN != none; then
20528 if test "$cross_compiling" = yes; then :
20529 :
20530 else
20531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20532 /* end confdefs.h. */
20533
20534 #include <locale.h>
20535 #include <string.h>
20536 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20537 <wchar.h>.
20538 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20539 included before <wchar.h>. */
20540 #include <stddef.h>
20541 #include <stdio.h>
20542 #include <time.h>
20543 #include <wchar.h>
20544 int main ()
20545 {
20546 /* This fails on Solaris 8 and 9. */
20547 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
20548 {
20549 mbstate_t state;
20550 wchar_t wc;
20551
20552 memset (&state, '\0', sizeof (mbstate_t));
20553 if (mbrtowc (&wc, "", 1, &state) != 0)
20554 return 1;
20555 }
20556 return 0;
20557 }
20558 _ACEOF
20559 if ac_fn_c_try_run "$LINENO"; then :
20560 gl_cv_func_mbrtowc_nul_retval=yes
20561 else
20562 gl_cv_func_mbrtowc_nul_retval=no
20563 fi
20564 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20565 conftest.$ac_objext conftest.beam conftest.$ac_ext
20566 fi
20567
20568 fi
20569
20570 fi
20571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
20572 $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
20573
20574
20575
20576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works on empty input" >&5
20577 $as_echo_n "checking whether mbrtowc works on empty input... " >&6; }
20578 if ${gl_cv_func_mbrtowc_empty_input+:} false; then :
20579 $as_echo_n "(cached) " >&6
20580 else
20581
20582 case "$host_os" in
20583 # Guess no on AIX and glibc systems.
20584 aix* | *-gnu*)
20585 gl_cv_func_mbrtowc_empty_input="guessing no" ;;
20586 *) gl_cv_func_mbrtowc_empty_input="guessing yes" ;;
20587 esac
20588 if test "$cross_compiling" = yes; then :
20589 :
20590 else
20591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20592 /* end confdefs.h. */
20593
20594 #include <wchar.h>
20595 static wchar_t wc;
20596 static mbstate_t mbs;
20597 int
20598 main (void)
20599 {
20600 return mbrtowc (&wc, "", 0, &mbs) != (size_t) -2;
20601 }
20602 _ACEOF
20603 if ac_fn_c_try_run "$LINENO"; then :
20604 gl_cv_func_mbrtowc_empty_input=yes
20605 else
20606 gl_cv_func_mbrtowc_empty_input=no
20607 fi
20608 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20609 conftest.$ac_objext conftest.beam conftest.$ac_ext
20610 fi
20611
20612
20613 fi
20614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_empty_input" >&5
20615 $as_echo "$gl_cv_func_mbrtowc_empty_input" >&6; }
20616
20617
20618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C locale is free of encoding errors" >&5
20619 $as_echo_n "checking whether the C locale is free of encoding errors... " >&6; }
20620 if ${gl_cv_C_locale_sans_EILSEQ+:} false; then :
20621 $as_echo_n "(cached) " >&6
20622 else
20623
20624 gl_cv_C_locale_sans_EILSEQ="guessing no"
20625
20626 if test "$cross_compiling" = yes; then :
20627 :
20628 else
20629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20630 /* end confdefs.h. */
20631 #include <limits.h>
20632 #include <locale.h>
20633 #include <wchar.h>
20634
20635 int
20636 main ()
20637 {
20638
20639 int i;
20640 char *locale = setlocale (LC_ALL, "C");
20641 if (! locale)
20642 return 1;
20643 for (i = CHAR_MIN; i <= CHAR_MAX; i++)
20644 {
20645 char c = i;
20646 wchar_t wc;
20647 mbstate_t mbs = { 0, };
20648 size_t ss = mbrtowc (&wc, &c, 1, &mbs);
20649 if (1 < ss)
20650 return 1;
20651 }
20652 return 0;
20653
20654 ;
20655 return 0;
20656 }
20657 _ACEOF
20658 if ac_fn_c_try_run "$LINENO"; then :
20659 gl_cv_C_locale_sans_EILSEQ=yes
20660 else
20661 gl_cv_C_locale_sans_EILSEQ=no
20662 fi
20663 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20664 conftest.$ac_objext conftest.beam conftest.$ac_ext
20665 fi
20666
20667 fi
20668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_C_locale_sans_EILSEQ" >&5
20669 $as_echo "$gl_cv_C_locale_sans_EILSEQ" >&6; }
20670
20671 case "$gl_cv_func_mbrtowc_null_arg1" in
20672 *yes) ;;
20673 *)
20674 $as_echo "#define MBRTOWC_NULL_ARG1_BUG 1" >>confdefs.h
20675
20676 REPLACE_MBRTOWC=1
20677 ;;
20678 esac
20679 case "$gl_cv_func_mbrtowc_null_arg2" in
20680 *yes) ;;
20681 *)
20682 $as_echo "#define MBRTOWC_NULL_ARG2_BUG 1" >>confdefs.h
20683
20684 REPLACE_MBRTOWC=1
20685 ;;
20686 esac
20687 case "$gl_cv_func_mbrtowc_retval" in
20688 *yes) ;;
20689 *)
20690 $as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
20691
20692 REPLACE_MBRTOWC=1
20693 ;;
20694 esac
20695 case "$gl_cv_func_mbrtowc_nul_retval" in
20696 *yes) ;;
20697 *)
20698 $as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
20699
20700 REPLACE_MBRTOWC=1
20701 ;;
20702 esac
20703 case "$gl_cv_func_mbrtowc_empty_input" in
20704 *yes) ;;
20705 *)
20706 $as_echo "#define MBRTOWC_EMPTY_INPUT_BUG 1" >>confdefs.h
20707
20708 REPLACE_MBRTOWC=1
20709 ;;
20710 esac
20711 case $gl_cv_C_locale_sans_EILSEQ in
20712 *yes) ;;
20713 *)
20714 $as_echo "#define C_LOCALE_MAYBE_EILSEQ 1" >>confdefs.h
20715
20716 REPLACE_MBRTOWC=1
20717 ;;
20718 esac
20719 fi
20720 fi
20721
20722 if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
20723
20724
20725
20726
20727
20728
20729
20730
20731 gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext"
20732
20733
20734 :
20735
20736 fi
20737
20738
20739
20740
20741
20742 GNULIB_MBRTOWC=1
20743
20744
20745
20746
20747
20748 $as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
20749
20750
20751
20752
20753
20754
20755
20756
20757
20758
20759
20760
20761
20762 :
20763
20764
20765
20766
20767
20768
20769 :
20770
20771
20772
20773
20774
20775 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
20776
20777
20778
20779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
20780 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
20781 if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then :
20782 $as_echo_n "(cached) " >&6
20783 else
20784
20785 case "$host_os" in
20786 # Guess no on AIX and OSF/1.
20787 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
20788 # Guess yes otherwise.
20789 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
20790 esac
20791 if test $LOCALE_JA != none; then
20792 if test "$cross_compiling" = yes; then :
20793 :
20794 else
20795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20796 /* end confdefs.h. */
20797
20798 #include <locale.h>
20799 #include <string.h>
20800 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20801 <wchar.h>.
20802 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20803 included before <wchar.h>. */
20804 #include <stddef.h>
20805 #include <stdio.h>
20806 #include <time.h>
20807 #include <wchar.h>
20808 int main ()
20809 {
20810 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
20811 {
20812 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
20813 mbstate_t state;
20814 wchar_t wc;
20815
20816 memset (&state, '\0', sizeof (mbstate_t));
20817 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
20818 if (mbsinit (&state))
20819 return 1;
20820 }
20821 return 0;
20822 }
20823 _ACEOF
20824 if ac_fn_c_try_run "$LINENO"; then :
20825 gl_cv_func_mbrtowc_incomplete_state=yes
20826 else
20827 gl_cv_func_mbrtowc_incomplete_state=no
20828 fi
20829 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20830 conftest.$ac_objext conftest.beam conftest.$ac_ext
20831 fi
20832
20833 fi
20834
20835 fi
20836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
20837 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
20838
20839
20840
20841
20842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
20843 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
20844 if ${gl_cv_func_mbrtowc_sanitycheck+:} false; then :
20845 $as_echo_n "(cached) " >&6
20846 else
20847
20848 case "$host_os" in
20849 # Guess no on Solaris 8.
20850 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
20851 # Guess yes otherwise.
20852 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
20853 esac
20854 if test $LOCALE_ZH_CN != none; then
20855 if test "$cross_compiling" = yes; then :
20856 :
20857 else
20858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20859 /* end confdefs.h. */
20860
20861 #include <locale.h>
20862 #include <stdlib.h>
20863 #include <string.h>
20864 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20865 <wchar.h>.
20866 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20867 included before <wchar.h>. */
20868 #include <stddef.h>
20869 #include <stdio.h>
20870 #include <time.h>
20871 #include <wchar.h>
20872 int main ()
20873 {
20874 /* This fails on Solaris 8:
20875 mbrtowc returns 2, and sets wc to 0x00F0.
20876 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
20877 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
20878 {
20879 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
20880 mbstate_t state;
20881 wchar_t wc;
20882
20883 memset (&state, '\0', sizeof (mbstate_t));
20884 if (mbrtowc (&wc, input + 3, 6, &state) != 4
20885 && mbtowc (&wc, input + 3, 6) == 4)
20886 return 1;
20887 }
20888 return 0;
20889 }
20890 _ACEOF
20891 if ac_fn_c_try_run "$LINENO"; then :
20892 gl_cv_func_mbrtowc_sanitycheck=yes
20893 else
20894 gl_cv_func_mbrtowc_sanitycheck=no
20895 fi
20896 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20897 conftest.$ac_objext conftest.beam conftest.$ac_ext
20898 fi
20899
20900 fi
20901
20902 fi
20903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
20904 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
20905
20906 REPLACE_MBSTATE_T=0
20907 case "$gl_cv_func_mbrtowc_incomplete_state" in
20908 *yes) ;;
20909 *) REPLACE_MBSTATE_T=1 ;;
20910 esac
20911 case "$gl_cv_func_mbrtowc_sanitycheck" in
20912 *yes) ;;
20913 *) REPLACE_MBSTATE_T=1 ;;
20914 esac
20915 else
20916 REPLACE_MBSTATE_T=1
20917 fi
20918
20919
20920
20921 :
20922
20923
20924
20925
20926
20927 if test $ac_cv_func_mbsinit = no; then
20928 HAVE_MBSINIT=0
20929 ac_fn_c_check_decl "$LINENO" "mbsinit" "ac_cv_have_decl_mbsinit" "
20930 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20931 <wchar.h>.
20932 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20933 included before <wchar.h>. */
20934 #include <stddef.h>
20935 #include <stdio.h>
20936 #include <time.h>
20937 #include <wchar.h>
20938
20939 "
20940 if test "x$ac_cv_have_decl_mbsinit" = xyes; then :
20941 ac_have_decl=1
20942 else
20943 ac_have_decl=0
20944 fi
20945
20946 cat >>confdefs.h <<_ACEOF
20947 #define HAVE_DECL_MBSINIT $ac_have_decl
20948 _ACEOF
20949
20950 if test $ac_cv_have_decl_mbsinit = yes; then
20951 REPLACE_MBSINIT=1
20952 fi
20953 else
20954 if test $REPLACE_MBSTATE_T = 1; then
20955 REPLACE_MBSINIT=1
20956 else
20957 case "$host_os" in
20958 mingw*) REPLACE_MBSINIT=1 ;;
20959 esac
20960 fi
20961 fi
20962
20963 if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
20964
20965
20966
20967
20968
20969
20970
20971
20972 gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext"
20973
20974
20975 :
20976
20977 fi
20978
20979
20980
20981
20982
20983 GNULIB_MBSINIT=1
20984
20985
20986
20987
20988
20989 $as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
20990
20991
20992
20993
20994
20995
20996
20997
20998
20999
21000
21001
21002 :
21003
21004
21005
21006
21007
21008
21009 :
21010
21011
21012
21013
21014
21015 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
21016
21017
21018
21019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
21020 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
21021 if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then :
21022 $as_echo_n "(cached) " >&6
21023 else
21024
21025 case "$host_os" in
21026 # Guess no on AIX and OSF/1.
21027 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
21028 # Guess yes otherwise.
21029 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
21030 esac
21031 if test $LOCALE_JA != none; then
21032 if test "$cross_compiling" = yes; then :
21033 :
21034 else
21035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21036 /* end confdefs.h. */
21037
21038 #include <locale.h>
21039 #include <string.h>
21040 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
21041 <wchar.h>.
21042 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21043 included before <wchar.h>. */
21044 #include <stddef.h>
21045 #include <stdio.h>
21046 #include <time.h>
21047 #include <wchar.h>
21048 int main ()
21049 {
21050 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
21051 {
21052 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
21053 mbstate_t state;
21054 wchar_t wc;
21055
21056 memset (&state, '\0', sizeof (mbstate_t));
21057 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
21058 if (mbsinit (&state))
21059 return 1;
21060 }
21061 return 0;
21062 }
21063 _ACEOF
21064 if ac_fn_c_try_run "$LINENO"; then :
21065 gl_cv_func_mbrtowc_incomplete_state=yes
21066 else
21067 gl_cv_func_mbrtowc_incomplete_state=no
21068 fi
21069 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21070 conftest.$ac_objext conftest.beam conftest.$ac_ext
21071 fi
21072
21073 fi
21074
21075 fi
21076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
21077 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
21078
21079
21080
21081
21082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
21083 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
21084 if ${gl_cv_func_mbrtowc_sanitycheck+:} false; then :
21085 $as_echo_n "(cached) " >&6
21086 else
21087
21088 case "$host_os" in
21089 # Guess no on Solaris 8.
21090 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
21091 # Guess yes otherwise.
21092 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
21093 esac
21094 if test $LOCALE_ZH_CN != none; then
21095 if test "$cross_compiling" = yes; then :
21096 :
21097 else
21098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21099 /* end confdefs.h. */
21100
21101 #include <locale.h>
21102 #include <stdlib.h>
21103 #include <string.h>
21104 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
21105 <wchar.h>.
21106 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21107 included before <wchar.h>. */
21108 #include <stddef.h>
21109 #include <stdio.h>
21110 #include <time.h>
21111 #include <wchar.h>
21112 int main ()
21113 {
21114 /* This fails on Solaris 8:
21115 mbrtowc returns 2, and sets wc to 0x00F0.
21116 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
21117 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
21118 {
21119 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
21120 mbstate_t state;
21121 wchar_t wc;
21122
21123 memset (&state, '\0', sizeof (mbstate_t));
21124 if (mbrtowc (&wc, input + 3, 6, &state) != 4
21125 && mbtowc (&wc, input + 3, 6) == 4)
21126 return 1;
21127 }
21128 return 0;
21129 }
21130 _ACEOF
21131 if ac_fn_c_try_run "$LINENO"; then :
21132 gl_cv_func_mbrtowc_sanitycheck=yes
21133 else
21134 gl_cv_func_mbrtowc_sanitycheck=no
21135 fi
21136 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21137 conftest.$ac_objext conftest.beam conftest.$ac_ext
21138 fi
21139
21140 fi
21141
21142 fi
21143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
21144 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
21145
21146 REPLACE_MBSTATE_T=0
21147 case "$gl_cv_func_mbrtowc_incomplete_state" in
21148 *yes) ;;
21149 *) REPLACE_MBSTATE_T=1 ;;
21150 esac
21151 case "$gl_cv_func_mbrtowc_sanitycheck" in
21152 *yes) ;;
21153 *) REPLACE_MBSTATE_T=1 ;;
21154 esac
21155 else
21156 REPLACE_MBSTATE_T=1
21157 fi
21158
21159
21160
21161 :
21162
21163
21164
21165
21166
21167 if test $ac_cv_func_mbsrtowcs = no; then
21168 HAVE_MBSRTOWCS=0
21169 ac_fn_c_check_decl "$LINENO" "mbsrtowcs" "ac_cv_have_decl_mbsrtowcs" "
21170 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
21171 <wchar.h>.
21172 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21173 included before <wchar.h>. */
21174 #include <stddef.h>
21175 #include <stdio.h>
21176 #include <time.h>
21177 #include <wchar.h>
21178
21179 "
21180 if test "x$ac_cv_have_decl_mbsrtowcs" = xyes; then :
21181 ac_have_decl=1
21182 else
21183 ac_have_decl=0
21184 fi
21185
21186 cat >>confdefs.h <<_ACEOF
21187 #define HAVE_DECL_MBSRTOWCS $ac_have_decl
21188 _ACEOF
21189
21190 if test $ac_cv_have_decl_mbsrtowcs = yes; then
21191 REPLACE_MBSRTOWCS=1
21192 fi
21193 else
21194 if test $REPLACE_MBSTATE_T = 1; then
21195 REPLACE_MBSRTOWCS=1
21196 else
21197
21198
21199
21200
21201
21202
21203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbsrtowcs works" >&5
21204 $as_echo_n "checking whether mbsrtowcs works... " >&6; }
21205 if ${gl_cv_func_mbsrtowcs_works+:} false; then :
21206 $as_echo_n "(cached) " >&6
21207 else
21208
21209 case "$host_os" in
21210 # Guess no on HP-UX, Solaris, mingw.
21211 hpux* | solaris* | mingw*) gl_cv_func_mbsrtowcs_works="guessing no" ;;
21212 # Guess yes otherwise.
21213 *) gl_cv_func_mbsrtowcs_works="guessing yes" ;;
21214 esac
21215 if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
21216 if test "$cross_compiling" = yes; then :
21217 :
21218 else
21219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21220 /* end confdefs.h. */
21221
21222 #include <locale.h>
21223 #include <string.h>
21224 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
21225 <wchar.h>.
21226 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21227 included before <wchar.h>. */
21228 #include <stddef.h>
21229 #include <stdio.h>
21230 #include <time.h>
21231 #include <wchar.h>
21232 int main ()
21233 {
21234 int result = 0;
21235 /* Test whether the function supports a NULL destination argument.
21236 This fails on native Windows. */
21237 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
21238 {
21239 const char input[] = "\337er";
21240 const char *src = input;
21241 mbstate_t state;
21242
21243 memset (&state, '\0', sizeof (mbstate_t));
21244 if (mbsrtowcs (NULL, &src, 1, &state) != 3
21245 || src != input)
21246 result |= 1;
21247 }
21248 /* Test whether the function works when started with a conversion state
21249 in non-initial state. This fails on HP-UX 11.11 and Solaris 10. */
21250 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
21251 {
21252 const char input[] = "B\303\274\303\237er";
21253 mbstate_t state;
21254
21255 memset (&state, '\0', sizeof (mbstate_t));
21256 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
21257 if (!mbsinit (&state))
21258 {
21259 const char *src = input + 2;
21260 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
21261 result |= 2;
21262 }
21263 }
21264 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
21265 {
21266 const char input[] = "<\306\374\313\334\270\354>";
21267 mbstate_t state;
21268
21269 memset (&state, '\0', sizeof (mbstate_t));
21270 if (mbrtowc (NULL, input + 3, 1, &state) == (size_t)(-2))
21271 if (!mbsinit (&state))
21272 {
21273 const char *src = input + 4;
21274 if (mbsrtowcs (NULL, &src, 10, &state) != 3)
21275 result |= 4;
21276 }
21277 }
21278 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
21279 {
21280 const char input[] = "B\250\271\201\060\211\070er";
21281 mbstate_t state;
21282
21283 memset (&state, '\0', sizeof (mbstate_t));
21284 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
21285 if (!mbsinit (&state))
21286 {
21287 const char *src = input + 2;
21288 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
21289 result |= 8;
21290 }
21291 }
21292 return result;
21293 }
21294 _ACEOF
21295 if ac_fn_c_try_run "$LINENO"; then :
21296 gl_cv_func_mbsrtowcs_works=yes
21297 else
21298 gl_cv_func_mbsrtowcs_works=no
21299 fi
21300 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21301 conftest.$ac_objext conftest.beam conftest.$ac_ext
21302 fi
21303
21304 fi
21305
21306 fi
21307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbsrtowcs_works" >&5
21308 $as_echo "$gl_cv_func_mbsrtowcs_works" >&6; }
21309
21310 case "$gl_cv_func_mbsrtowcs_works" in
21311 *yes) ;;
21312 *) REPLACE_MBSRTOWCS=1 ;;
21313 esac
21314 fi
21315 fi
21316
21317 if test $HAVE_MBSRTOWCS = 0 || test $REPLACE_MBSRTOWCS = 1; then
21318
21319
21320
21321
21322
21323
21324
21325
21326 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs.$ac_objext"
21327
21328
21329
21330
21331
21332
21333
21334
21335
21336 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs-state.$ac_objext"
21337
21338
21339 :
21340
21341 fi
21342
21343
21344
21345
21346
21347 GNULIB_MBSRTOWCS=1
21348
21349
21350
21351
21352
21353 $as_echo "#define GNULIB_TEST_MBSRTOWCS 1" >>confdefs.h
21354
21355
21356
21357
21358 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
21359
21360
21361
21362
21363
21364
21365
21366
21367 gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
21368
21369
21370 for ac_header in bp-sym.h
21371 do :
21372 ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
21373 if test "x$ac_cv_header_bp_sym_h" = xyes; then :
21374 cat >>confdefs.h <<_ACEOF
21375 #define HAVE_BP_SYM_H 1
21376 _ACEOF
21377
21378 fi
21379
21380 done
21381
21382
21383 fi
21384
21385
21386
21387
21388
21389 GNULIB_MEMCHR=1
21390
21391
21392
21393
21394
21395 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
21396
21397
21398
21399
21400
21401 if test $HAVE_DECL_MEMMEM = 1 && test $REPLACE_MEMMEM = 0; then
21402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
21403 $as_echo_n "checking whether memmem works in linear time... " >&6; }
21404 if ${gl_cv_func_memmem_works_fast+:} false; then :
21405 $as_echo_n "(cached) " >&6
21406 else
21407 if test "$cross_compiling" = yes; then :
21408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21409 /* end confdefs.h. */
21410
21411 #include <features.h>
21412 #ifdef __GNU_LIBRARY__
21413 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)) \
21414 && !defined __UCLIBC__
21415 Lucky user
21416 #endif
21417 #endif
21418 #ifdef __CYGWIN__
21419 #include <cygwin/version.h>
21420 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 0)
21421 Lucky user
21422 #endif
21423 #endif
21424
21425 _ACEOF
21426 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21427 $EGREP "Lucky user" >/dev/null 2>&1; then :
21428 gl_cv_func_memmem_works_fast="guessing yes"
21429 else
21430 gl_cv_func_memmem_works_fast="guessing no"
21431 fi
21432 rm -f conftest*
21433
21434
21435 else
21436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21437 /* end confdefs.h. */
21438
21439 #include <signal.h> /* for signal */
21440 #include <string.h> /* for memmem */
21441 #include <stdlib.h> /* for malloc */
21442 #include <unistd.h> /* for alarm */
21443 static void quit (int sig) { _exit (sig + 128); }
21444
21445 int
21446 main ()
21447 {
21448
21449 int result = 0;
21450 size_t m = 1000000;
21451 char *haystack = (char *) malloc (2 * m + 1);
21452 char *needle = (char *) malloc (m + 1);
21453 /* Failure to compile this test due to missing alarm is okay,
21454 since all such platforms (mingw) also lack memmem. */
21455 signal (SIGALRM, quit);
21456 alarm (5);
21457 /* Check for quadratic performance. */
21458 if (haystack && needle)
21459 {
21460 memset (haystack, 'A', 2 * m);
21461 haystack[2 * m] = 'B';
21462 memset (needle, 'A', m);
21463 needle[m] = 'B';
21464 if (!memmem (haystack, 2 * m + 1, needle, m + 1))
21465 result |= 1;
21466 }
21467 return result;
21468
21469 ;
21470 return 0;
21471 }
21472 _ACEOF
21473 if ac_fn_c_try_run "$LINENO"; then :
21474 gl_cv_func_memmem_works_fast=yes
21475 else
21476 gl_cv_func_memmem_works_fast=no
21477 fi
21478 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21479 conftest.$ac_objext conftest.beam conftest.$ac_ext
21480 fi
21481
21482
21483 fi
21484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_fast" >&5
21485 $as_echo "$gl_cv_func_memmem_works_fast" >&6; }
21486 case "$gl_cv_func_memmem_works_fast" in
21487 *yes) ;;
21488 *)
21489 REPLACE_MEMMEM=1
21490 ;;
21491 esac
21492 fi
21493
21494 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
21495
21496
21497
21498
21499
21500
21501
21502
21503 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
21504
21505 fi
21506
21507
21508
21509
21510 for ac_func in memmem
21511 do :
21512 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
21513 if test "x$ac_cv_func_memmem" = xyes; then :
21514 cat >>confdefs.h <<_ACEOF
21515 #define HAVE_MEMMEM 1
21516 _ACEOF
21517
21518 fi
21519 done
21520
21521 if test $ac_cv_func_memmem = yes; then
21522 HAVE_MEMMEM=1
21523 else
21524 HAVE_MEMMEM=0
21525 fi
21526
21527 :
21528
21529
21530
21531
21532
21533 if test $ac_cv_have_decl_memmem = no; then
21534 HAVE_DECL_MEMMEM=0
21535 else
21536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
21537 $as_echo_n "checking whether memmem works... " >&6; }
21538 if ${gl_cv_func_memmem_works_always+:} false; then :
21539 $as_echo_n "(cached) " >&6
21540 else
21541 if test "$cross_compiling" = yes; then :
21542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21543 /* end confdefs.h. */
21544
21545 #ifdef __GNU_LIBRARY__
21546 #include <features.h>
21547 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
21548 || __GLIBC_MINOR__ > 12)) \
21549 || (__GLIBC__ > 2)) \
21550 || defined __UCLIBC__
21551 Lucky user
21552 #endif
21553 #elif defined __CYGWIN__
21554 #include <cygwin/version.h>
21555 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
21556 Lucky user
21557 #endif
21558 #else
21559 Lucky user
21560 #endif
21561
21562 _ACEOF
21563 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21564 $EGREP "Lucky user" >/dev/null 2>&1; then :
21565 gl_cv_func_memmem_works_always="guessing yes"
21566 else
21567 gl_cv_func_memmem_works_always="guessing no"
21568 fi
21569 rm -f conftest*
21570
21571
21572 else
21573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21574 /* end confdefs.h. */
21575
21576 #include <string.h> /* for memmem */
21577 #define P "_EF_BF_BD"
21578 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
21579 #define NEEDLE P P P P P
21580
21581 int
21582 main ()
21583 {
21584
21585 int result = 0;
21586 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
21587 result |= 1;
21588 /* Check for empty needle behavior. */
21589 {
21590 const char *haystack = "AAA";
21591 if (memmem (haystack, 3, NULL, 0) != haystack)
21592 result |= 2;
21593 }
21594 return result;
21595
21596 ;
21597 return 0;
21598 }
21599 _ACEOF
21600 if ac_fn_c_try_run "$LINENO"; then :
21601 gl_cv_func_memmem_works_always=yes
21602 else
21603 gl_cv_func_memmem_works_always=no
21604 fi
21605 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21606 conftest.$ac_objext conftest.beam conftest.$ac_ext
21607 fi
21608
21609
21610 fi
21611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
21612 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
21613 case "$gl_cv_func_memmem_works_always" in
21614 *yes) ;;
21615 *)
21616 REPLACE_MEMMEM=1
21617 ;;
21618 esac
21619 fi
21620 :
21621
21622 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
21623
21624
21625
21626
21627
21628
21629
21630
21631 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
21632
21633 fi
21634
21635
21636
21637
21638
21639 GNULIB_MEMMEM=1
21640
21641
21642
21643
21644
21645 $as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
21646
21647
21648
21649
21650
21651
21652
21653
21654
21655 for ac_func in mempcpy
21656 do :
21657 ac_fn_c_check_func "$LINENO" "mempcpy" "ac_cv_func_mempcpy"
21658 if test "x$ac_cv_func_mempcpy" = xyes; then :
21659 cat >>confdefs.h <<_ACEOF
21660 #define HAVE_MEMPCPY 1
21661 _ACEOF
21662
21663 fi
21664 done
21665
21666 if test $ac_cv_func_mempcpy = no; then
21667 HAVE_MEMPCPY=0
21668 fi
21669
21670 if test $HAVE_MEMPCPY = 0; then
21671
21672
21673
21674
21675
21676
21677
21678
21679 gl_LIBOBJS="$gl_LIBOBJS mempcpy.$ac_objext"
21680
21681
21682 :
21683
21684 fi
21685
21686
21687
21688
21689
21690 GNULIB_MEMPCPY=1
21691
21692
21693
21694
21695
21696 $as_echo "#define GNULIB_TEST_MEMPCPY 1" >>confdefs.h
21697
21698
21699
21700
21701
21702
21703
21704
21705 :
21706
21707
21708
21709
21710
21711 if test $ac_cv_have_decl_memrchr = no; then
21712 HAVE_DECL_MEMRCHR=0
21713 fi
21714
21715 for ac_func in memrchr
21716 do :
21717 ac_fn_c_check_func "$LINENO" "memrchr" "ac_cv_func_memrchr"
21718 if test "x$ac_cv_func_memrchr" = xyes; then :
21719 cat >>confdefs.h <<_ACEOF
21720 #define HAVE_MEMRCHR 1
21721 _ACEOF
21722
21723 fi
21724 done
21725
21726
21727 if test $ac_cv_func_memrchr = no; then
21728
21729
21730
21731
21732
21733
21734
21735
21736 gl_LIBOBJS="$gl_LIBOBJS memrchr.$ac_objext"
21737
21738 :
21739 fi
21740
21741
21742
21743
21744
21745 GNULIB_MEMRCHR=1
21746
21747
21748
21749
21750
21751 $as_echo "#define GNULIB_TEST_MEMRCHR 1" >>confdefs.h
21752
21753
21754
21755
21756
21757 :
21758
21759
21760
21761
21762
21763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir handles trailing slash" >&5
21764 $as_echo_n "checking whether mkdir handles trailing slash... " >&6; }
21765 if ${gl_cv_func_mkdir_trailing_slash_works+:} false; then :
21766 $as_echo_n "(cached) " >&6
21767 else
21768 rm -rf conftest.dir
21769 if test "$cross_compiling" = yes; then :
21770 case "$host_os" in
21771 # Guess yes on glibc systems.
21772 *-gnu*) gl_cv_func_mkdir_trailing_slash_works="guessing yes" ;;
21773 # If we don't know, assume the worst.
21774 *) gl_cv_func_mkdir_trailing_slash_works="guessing no" ;;
21775 esac
21776
21777 else
21778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21779 /* end confdefs.h. */
21780
21781 # include <sys/types.h>
21782 # include <sys/stat.h>
21783
21784 int
21785 main ()
21786 {
21787 return mkdir ("conftest.dir/", 0700);
21788 ;
21789 return 0;
21790 }
21791 _ACEOF
21792 if ac_fn_c_try_run "$LINENO"; then :
21793 gl_cv_func_mkdir_trailing_slash_works=yes
21794 else
21795 gl_cv_func_mkdir_trailing_slash_works=no
21796 fi
21797 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21798 conftest.$ac_objext conftest.beam conftest.$ac_ext
21799 fi
21800
21801 rm -rf conftest.dir
21802
21803
21804 fi
21805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mkdir_trailing_slash_works" >&5
21806 $as_echo "$gl_cv_func_mkdir_trailing_slash_works" >&6; }
21807 case "$gl_cv_func_mkdir_trailing_slash_works" in
21808 *yes) ;;
21809 *)
21810 REPLACE_MKDIR=1
21811 ;;
21812 esac
21813
21814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir handles trailing dot" >&5
21815 $as_echo_n "checking whether mkdir handles trailing dot... " >&6; }
21816 if ${gl_cv_func_mkdir_trailing_dot_works+:} false; then :
21817 $as_echo_n "(cached) " >&6
21818 else
21819 rm -rf conftest.dir
21820 if test "$cross_compiling" = yes; then :
21821 case "$host_os" in
21822 # Guess yes on glibc systems.
21823 *-gnu*) gl_cv_func_mkdir_trailing_dot_works="guessing yes" ;;
21824 # If we don't know, assume the worst.
21825 *) gl_cv_func_mkdir_trailing_dot_works="guessing no" ;;
21826 esac
21827
21828 else
21829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21830 /* end confdefs.h. */
21831
21832 # include <sys/types.h>
21833 # include <sys/stat.h>
21834
21835 int
21836 main ()
21837 {
21838 return !mkdir ("conftest.dir/./", 0700);
21839 ;
21840 return 0;
21841 }
21842 _ACEOF
21843 if ac_fn_c_try_run "$LINENO"; then :
21844 gl_cv_func_mkdir_trailing_dot_works=yes
21845 else
21846 gl_cv_func_mkdir_trailing_dot_works=no
21847 fi
21848 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21849 conftest.$ac_objext conftest.beam conftest.$ac_ext
21850 fi
21851
21852 rm -rf conftest.dir
21853
21854
21855 fi
21856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mkdir_trailing_dot_works" >&5
21857 $as_echo "$gl_cv_func_mkdir_trailing_dot_works" >&6; }
21858 case "$gl_cv_func_mkdir_trailing_dot_works" in
21859 *yes) ;;
21860 *)
21861 REPLACE_MKDIR=1
21862
21863 $as_echo "#define FUNC_MKDIR_DOT_BUG 1" >>confdefs.h
21864
21865 ;;
21866 esac
21867
21868 if test $REPLACE_MKDIR = 1; then
21869
21870
21871
21872
21873
21874
21875
21876
21877 gl_LIBOBJS="$gl_LIBOBJS mkdir.$ac_objext"
21878
21879 fi
21880
21881
21882
21883
21884 :
21885
21886
21887
21888
21889
21890 if test $ac_cv_func_mkstemp = yes; then
21891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mkstemp" >&5
21892 $as_echo_n "checking for working mkstemp... " >&6; }
21893 if ${gl_cv_func_working_mkstemp+:} false; then :
21894 $as_echo_n "(cached) " >&6
21895 else
21896
21897 mkdir conftest.mkstemp
21898 if test "$cross_compiling" = yes; then :
21899 case "$host_os" in
21900 # Guess yes on glibc systems.
21901 *-gnu*) gl_cv_func_working_mkstemp="guessing yes" ;;
21902 # If we don't know, assume the worst.
21903 *) gl_cv_func_working_mkstemp="guessing no" ;;
21904 esac
21905
21906 else
21907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21908 /* end confdefs.h. */
21909 $ac_includes_default
21910 int
21911 main ()
21912 {
21913 int result = 0;
21914 int i;
21915 off_t large = (off_t) 4294967295u;
21916 if (large < 0)
21917 large = 2147483647;
21918 umask (0);
21919 for (i = 0; i < 70; i++)
21920 {
21921 char templ[] = "conftest.mkstemp/coXXXXXX";
21922 int (*mkstemp_function) (char *) = mkstemp;
21923 int fd = mkstemp_function (templ);
21924 if (fd < 0)
21925 result |= 1;
21926 else
21927 {
21928 struct stat st;
21929 if (lseek (fd, large, SEEK_SET) != large)
21930 result |= 2;
21931 if (fstat (fd, &st) < 0)
21932 result |= 4;
21933 else if (st.st_mode & 0077)
21934 result |= 8;
21935 if (close (fd))
21936 result |= 16;
21937 }
21938 }
21939 return result;
21940 ;
21941 return 0;
21942 }
21943 _ACEOF
21944 if ac_fn_c_try_run "$LINENO"; then :
21945 gl_cv_func_working_mkstemp=yes
21946 else
21947 gl_cv_func_working_mkstemp=no
21948 fi
21949 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21950 conftest.$ac_objext conftest.beam conftest.$ac_ext
21951 fi
21952
21953 rm -rf conftest.mkstemp
21954
21955 fi
21956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mkstemp" >&5
21957 $as_echo "$gl_cv_func_working_mkstemp" >&6; }
21958 case "$gl_cv_func_working_mkstemp" in
21959 *yes) ;;
21960 *)
21961 REPLACE_MKSTEMP=1
21962 ;;
21963 esac
21964 else
21965 HAVE_MKSTEMP=0
21966 fi
21967
21968 if test $HAVE_MKSTEMP = 0 || test $REPLACE_MKSTEMP = 1; then
21969
21970
21971
21972
21973
21974
21975
21976
21977 gl_LIBOBJS="$gl_LIBOBJS mkstemp.$ac_objext"
21978
21979
21980
21981 fi
21982
21983
21984
21985
21986
21987 GNULIB_MKSTEMP=1
21988
21989
21990
21991
21992
21993 $as_echo "#define GNULIB_TEST_MKSTEMP 1" >>confdefs.h
21994
21995
21996
21997
21998 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
21999
22000
22001
22002
22003
22004
22005
22006
22007 gl_LIBOBJS="$gl_LIBOBJS msvc-inval.$ac_objext"
22008
22009 fi
22010
22011 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
22012
22013
22014
22015
22016
22017
22018
22019
22020 gl_LIBOBJS="$gl_LIBOBJS msvc-nothrow.$ac_objext"
22021
22022 fi
22023
22024
22025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <netinet/in.h> is self-contained" >&5
22026 $as_echo_n "checking whether <netinet/in.h> is self-contained... " >&6; }
22027 if ${gl_cv_header_netinet_in_h_selfcontained+:} false; then :
22028 $as_echo_n "(cached) " >&6
22029 else
22030
22031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22032 /* end confdefs.h. */
22033 #include <netinet/in.h>
22034 int
22035 main ()
22036 {
22037
22038 ;
22039 return 0;
22040 }
22041 _ACEOF
22042 if ac_fn_c_try_compile "$LINENO"; then :
22043 gl_cv_header_netinet_in_h_selfcontained=yes
22044 else
22045 gl_cv_header_netinet_in_h_selfcontained=no
22046 fi
22047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22048
22049 fi
22050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_netinet_in_h_selfcontained" >&5
22051 $as_echo "$gl_cv_header_netinet_in_h_selfcontained" >&6; }
22052 if test $gl_cv_header_netinet_in_h_selfcontained = yes; then
22053 NETINET_IN_H=''
22054 else
22055 NETINET_IN_H='netinet/in.h'
22056 for ac_header in netinet/in.h
22057 do :
22058 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
22059 if test "x$ac_cv_header_netinet_in_h" = xyes; then :
22060 cat >>confdefs.h <<_ACEOF
22061 #define HAVE_NETINET_IN_H 1
22062 _ACEOF
22063
22064 fi
22065
22066 done
22067
22068
22069
22070
22071
22072
22073
22074 :
22075
22076
22077
22078
22079
22080
22081
22082
22083 if test $gl_cv_have_include_next = yes; then
22084 gl_cv_next_netinet_in_h='<'netinet/in.h'>'
22085 else
22086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <netinet/in.h>" >&5
22087 $as_echo_n "checking absolute name of <netinet/in.h>... " >&6; }
22088 if ${gl_cv_next_netinet_in_h+:} false; then :
22089 $as_echo_n "(cached) " >&6
22090 else
22091
22092 if test $ac_cv_header_netinet_in_h = yes; then
22093
22094
22095
22096
22097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22098 /* end confdefs.h. */
22099 #include <netinet/in.h>
22100 _ACEOF
22101 case "$host_os" in
22102 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22103 *) gl_absname_cpp="$ac_cpp" ;;
22104 esac
22105
22106 case "$host_os" in
22107 mingw*)
22108 gl_dirsep_regex='[/\\]'
22109 ;;
22110 *)
22111 gl_dirsep_regex='\/'
22112 ;;
22113 esac
22114 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22115 gl_header_literal_regex=`echo 'netinet/in.h' \
22116 | sed -e "$gl_make_literal_regex_sed"`
22117 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22118 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22119 s|^/[^/]|//&|
22120 p
22121 q
22122 }'
22123
22124 gl_cv_absolute_netinet_in_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22125 sed -n "$gl_absolute_header_sed"`
22126
22127 gl_header=$gl_cv_absolute_netinet_in_h
22128 gl_cv_next_netinet_in_h='"'$gl_header'"'
22129 else
22130 gl_cv_next_netinet_in_h='<'netinet/in.h'>'
22131 fi
22132
22133
22134 fi
22135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_netinet_in_h" >&5
22136 $as_echo "$gl_cv_next_netinet_in_h" >&6; }
22137 fi
22138 NEXT_NETINET_IN_H=$gl_cv_next_netinet_in_h
22139
22140 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22141 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22142 gl_next_as_first_directive='<'netinet/in.h'>'
22143 else
22144 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22145 gl_next_as_first_directive=$gl_cv_next_netinet_in_h
22146 fi
22147 NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H=$gl_next_as_first_directive
22148
22149
22150
22151
22152 if test $ac_cv_header_netinet_in_h = yes; then
22153 HAVE_NETINET_IN_H=1
22154 else
22155 HAVE_NETINET_IN_H=0
22156 fi
22157
22158 fi
22159
22160 if test -n "$NETINET_IN_H"; then
22161 GL_GENERATE_NETINET_IN_H_TRUE=
22162 GL_GENERATE_NETINET_IN_H_FALSE='#'
22163 else
22164 GL_GENERATE_NETINET_IN_H_TRUE='#'
22165 GL_GENERATE_NETINET_IN_H_FALSE=
22166 fi
22167
22168
22169
22170
22171
22172 case "$host_os" in
22173 mingw* | pw*)
22174 REPLACE_OPEN=1
22175 ;;
22176 *)
22177
22178 :
22179
22180
22181
22182
22183
22184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open recognizes a trailing slash" >&5
22185 $as_echo_n "checking whether open recognizes a trailing slash... " >&6; }
22186 if ${gl_cv_func_open_slash+:} false; then :
22187 $as_echo_n "(cached) " >&6
22188 else
22189 # Assume that if we have lstat, we can also check symlinks.
22190 if test $ac_cv_func_lstat = yes; then
22191 touch conftest.tmp
22192 ln -s conftest.tmp conftest.lnk
22193 fi
22194 if test "$cross_compiling" = yes; then :
22195
22196 case "$host_os" in
22197 freebsd* | aix* | hpux* | solaris2.[0-9] | solaris2.[0-9].*)
22198 gl_cv_func_open_slash="guessing no" ;;
22199 *)
22200 gl_cv_func_open_slash="guessing yes" ;;
22201 esac
22202
22203 else
22204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22205 /* end confdefs.h. */
22206
22207 #include <fcntl.h>
22208 #if HAVE_UNISTD_H
22209 # include <unistd.h>
22210 #endif
22211 int main ()
22212 {
22213 int result = 0;
22214 #if HAVE_LSTAT
22215 if (open ("conftest.lnk/", O_RDONLY) != -1)
22216 result |= 1;
22217 #endif
22218 if (open ("conftest.sl/", O_CREAT, 0600) >= 0)
22219 result |= 2;
22220 return result;
22221 }
22222 _ACEOF
22223 if ac_fn_c_try_run "$LINENO"; then :
22224 gl_cv_func_open_slash=yes
22225 else
22226 gl_cv_func_open_slash=no
22227 fi
22228 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22229 conftest.$ac_objext conftest.beam conftest.$ac_ext
22230 fi
22231
22232 rm -f conftest.sl conftest.tmp conftest.lnk
22233
22234 fi
22235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_open_slash" >&5
22236 $as_echo "$gl_cv_func_open_slash" >&6; }
22237 case "$gl_cv_func_open_slash" in
22238 *no)
22239
22240 $as_echo "#define OPEN_TRAILING_SLASH_BUG 1" >>confdefs.h
22241
22242 REPLACE_OPEN=1
22243 ;;
22244 esac
22245 ;;
22246 esac
22247
22248 if test $REPLACE_OPEN = 0; then
22249
22250
22251
22252 :
22253
22254
22255
22256
22257
22258 if test $ac_cv_func_fchdir = no; then
22259 HAVE_FCHDIR=0
22260 fi
22261
22262 if test $HAVE_FCHDIR = 0; then
22263 REPLACE_OPEN=1
22264 fi
22265 fi
22266
22267
22268
22269 if test $REPLACE_OPEN = 1; then
22270
22271
22272
22273
22274
22275
22276
22277
22278 gl_LIBOBJS="$gl_LIBOBJS open.$ac_objext"
22279
22280
22281
22282 :
22283
22284 fi
22285
22286
22287
22288
22289
22290 GNULIB_OPEN=1
22291
22292
22293
22294
22295
22296 $as_echo "#define GNULIB_TEST_OPEN 1" >>confdefs.h
22297
22298
22299
22300
22301
22302
22303
22304 :
22305
22306
22307
22308
22309
22310
22311 case $ac_cv_func_openat+$gl_cv_func_lstat_dereferences_slashed_symlink in
22312 yes+*yes)
22313 ;;
22314 yes+*)
22315 # Solaris 9 has *at functions, but uniformly mishandles trailing
22316 # slash in all of them.
22317 REPLACE_OPENAT=1
22318 ;;
22319 *)
22320 HAVE_OPENAT=0
22321 ;;
22322 esac
22323
22324 if test $HAVE_OPENAT = 0 || test $REPLACE_OPENAT = 1; then
22325
22326
22327
22328
22329
22330
22331
22332
22333 gl_LIBOBJS="$gl_LIBOBJS openat.$ac_objext"
22334
22335
22336
22337 :
22338
22339 fi
22340
22341
22342 cat >>confdefs.h <<_ACEOF
22343 #define GNULIB_OPENAT 1
22344 _ACEOF
22345
22346
22347
22348
22349
22350
22351 GNULIB_OPENAT=1
22352
22353
22354
22355
22356
22357 $as_echo "#define GNULIB_TEST_OPENAT 1" >>confdefs.h
22358
22359
22360
22361
22362
22363
22364 for ac_func in opendir
22365 do :
22366 ac_fn_c_check_func "$LINENO" "opendir" "ac_cv_func_opendir"
22367 if test "x$ac_cv_func_opendir" = xyes; then :
22368 cat >>confdefs.h <<_ACEOF
22369 #define HAVE_OPENDIR 1
22370 _ACEOF
22371
22372 fi
22373 done
22374
22375 if test $ac_cv_func_opendir = no; then
22376 HAVE_OPENDIR=0
22377 fi
22378
22379
22380
22381
22382 :
22383
22384
22385
22386
22387
22388 if test $ac_cv_func_fchdir = no; then
22389 HAVE_FCHDIR=0
22390 fi
22391
22392 if test $HAVE_FCHDIR = 0; then
22393 if test $HAVE_OPENDIR = 1; then
22394 REPLACE_OPENDIR=1
22395 fi
22396 fi
22397
22398 case $host_os,$HAVE_OPENDIR in
22399 os2*,1)
22400 REPLACE_OPENDIR=1;;
22401 esac
22402
22403 if test $HAVE_OPENDIR = 0 || test $REPLACE_OPENDIR = 1; then
22404
22405
22406
22407
22408
22409
22410
22411
22412 gl_LIBOBJS="$gl_LIBOBJS opendir.$ac_objext"
22413
22414 fi
22415
22416
22417
22418
22419
22420 GNULIB_OPENDIR=1
22421
22422
22423
22424
22425
22426 $as_echo "#define GNULIB_TEST_OPENDIR 1" >>confdefs.h
22427
22428
22429
22430
22431
22432 :
22433
22434
22435
22436
22437
22438
22439
22440
22441
22442
22443 for ac_func in rawmemchr
22444 do :
22445 ac_fn_c_check_func "$LINENO" "rawmemchr" "ac_cv_func_rawmemchr"
22446 if test "x$ac_cv_func_rawmemchr" = xyes; then :
22447 cat >>confdefs.h <<_ACEOF
22448 #define HAVE_RAWMEMCHR 1
22449 _ACEOF
22450
22451 fi
22452 done
22453
22454 if test $ac_cv_func_rawmemchr = no; then
22455 HAVE_RAWMEMCHR=0
22456 fi
22457
22458 if test $HAVE_RAWMEMCHR = 0; then
22459
22460
22461
22462
22463
22464
22465
22466
22467 gl_LIBOBJS="$gl_LIBOBJS rawmemchr.$ac_objext"
22468
22469 :
22470 fi
22471
22472
22473
22474
22475
22476 GNULIB_RAWMEMCHR=1
22477
22478
22479
22480
22481
22482 $as_echo "#define GNULIB_TEST_RAWMEMCHR 1" >>confdefs.h
22483
22484
22485
22486
22487
22488
22489 for ac_func in readdir
22490 do :
22491 ac_fn_c_check_func "$LINENO" "readdir" "ac_cv_func_readdir"
22492 if test "x$ac_cv_func_readdir" = xyes; then :
22493 cat >>confdefs.h <<_ACEOF
22494 #define HAVE_READDIR 1
22495 _ACEOF
22496
22497 fi
22498 done
22499
22500 if test $ac_cv_func_readdir = no; then
22501 HAVE_READDIR=0
22502 fi
22503
22504 if test $HAVE_READDIR = 0; then
22505
22506
22507
22508
22509
22510
22511
22512
22513 gl_LIBOBJS="$gl_LIBOBJS readdir.$ac_objext"
22514
22515 fi
22516
22517
22518
22519
22520
22521 GNULIB_READDIR=1
22522
22523
22524
22525
22526
22527 $as_echo "#define GNULIB_TEST_READDIR 1" >>confdefs.h
22528
22529
22530
22531
22532
22533
22534 :
22535
22536
22537
22538
22539
22540 if test $ac_cv_func_readlink = no; then
22541 HAVE_READLINK=0
22542 else
22543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
22544 $as_echo_n "checking whether readlink signature is correct... " >&6; }
22545 if ${gl_cv_decl_readlink_works+:} false; then :
22546 $as_echo_n "(cached) " >&6
22547 else
22548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22549 /* end confdefs.h. */
22550 #include <unistd.h>
22551 /* Cause compilation failure if original declaration has wrong type. */
22552 ssize_t readlink (const char *, char *, size_t);
22553 int
22554 main ()
22555 {
22556
22557 ;
22558 return 0;
22559 }
22560 _ACEOF
22561 if ac_fn_c_try_compile "$LINENO"; then :
22562 gl_cv_decl_readlink_works=yes
22563 else
22564 gl_cv_decl_readlink_works=no
22565 fi
22566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22567 fi
22568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
22569 $as_echo "$gl_cv_decl_readlink_works" >&6; }
22570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
22571 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
22572 if ${gl_cv_func_readlink_works+:} false; then :
22573 $as_echo_n "(cached) " >&6
22574 else
22575 # We have readlink, so assume ln -s works.
22576 ln -s conftest.no-such conftest.link
22577 ln -s conftest.link conftest.lnk2
22578 if test "$cross_compiling" = yes; then :
22579 case "$host_os" in
22580 # Guess yes on glibc systems.
22581 *-gnu*) gl_cv_func_readlink_works="guessing yes" ;;
22582 # If we don't know, assume the worst.
22583 *) gl_cv_func_readlink_works="guessing no" ;;
22584 esac
22585
22586 else
22587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22588 /* end confdefs.h. */
22589 #include <unistd.h>
22590
22591 int
22592 main ()
22593 {
22594 char buf[20];
22595 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
22596 ;
22597 return 0;
22598 }
22599 _ACEOF
22600 if ac_fn_c_try_run "$LINENO"; then :
22601 gl_cv_func_readlink_works=yes
22602 else
22603 gl_cv_func_readlink_works=no
22604 fi
22605 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22606 conftest.$ac_objext conftest.beam conftest.$ac_ext
22607 fi
22608
22609 rm -f conftest.link conftest.lnk2
22610 fi
22611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
22612 $as_echo "$gl_cv_func_readlink_works" >&6; }
22613 case "$gl_cv_func_readlink_works" in
22614 *yes)
22615 if test "$gl_cv_decl_readlink_works" != yes; then
22616 REPLACE_READLINK=1
22617 fi
22618 ;;
22619 *)
22620
22621 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
22622
22623 REPLACE_READLINK=1
22624 ;;
22625 esac
22626 fi
22627
22628 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
22629
22630
22631
22632
22633
22634
22635
22636
22637 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
22638
22639
22640 :
22641
22642 fi
22643
22644
22645
22646
22647
22648 GNULIB_READLINK=1
22649
22650
22651
22652
22653
22654 $as_echo "#define GNULIB_TEST_READLINK 1" >>confdefs.h
22655
22656
22657
22658
22659
22660
22661 if test $gl_cv_func_malloc_posix = yes; then
22662
22663 $as_echo "#define HAVE_REALLOC_POSIX 1" >>confdefs.h
22664
22665 else
22666 REPLACE_REALLOC=1
22667 fi
22668
22669 if test $REPLACE_REALLOC = 1; then
22670
22671
22672
22673
22674
22675
22676
22677
22678 gl_LIBOBJS="$gl_LIBOBJS realloc.$ac_objext"
22679
22680 fi
22681
22682
22683
22684
22685
22686 GNULIB_REALLOC_POSIX=1
22687
22688
22689
22690
22691
22692 $as_echo "#define GNULIB_TEST_REALLOC_POSIX 1" >>confdefs.h
22693
22694
22695
22696
22697
22698
22699
22700 :
22701
22702
22703
22704
22705
22706
22707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename honors trailing slash on destination" >&5
22708 $as_echo_n "checking whether rename honors trailing slash on destination... " >&6; }
22709 if ${gl_cv_func_rename_slash_dst_works+:} false; then :
22710 $as_echo_n "(cached) " >&6
22711 else
22712 rm -rf conftest.f conftest.f1 conftest.f2 conftest.d1 conftest.d2 conftest.lnk
22713 touch conftest.f && touch conftest.f1 && mkdir conftest.d1 ||
22714 as_fn_error $? "cannot create temporary files" "$LINENO" 5
22715 # Assume that if we have lstat, we can also check symlinks.
22716 if test $ac_cv_func_lstat = yes; then
22717 ln -s conftest.f conftest.lnk
22718 fi
22719 if test "$cross_compiling" = yes; then :
22720 case "$host_os" in
22721 # Guess yes on glibc systems.
22722 *-gnu*) gl_cv_func_rename_slash_dst_works="guessing yes" ;;
22723 # If we don't know, assume the worst.
22724 *) gl_cv_func_rename_slash_dst_works="guessing no" ;;
22725 esac
22726
22727 else
22728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22729 /* end confdefs.h. */
22730
22731 # include <stdio.h>
22732 # include <stdlib.h>
22733
22734 int
22735 main ()
22736 {
22737 int result = 0;
22738 if (rename ("conftest.f1", "conftest.f2/") == 0)
22739 result |= 1;
22740 if (rename ("conftest.d1", "conftest.d2/") != 0)
22741 result |= 2;
22742 #if HAVE_LSTAT
22743 if (rename ("conftest.f", "conftest.lnk/") == 0)
22744 result |= 4;
22745 #endif
22746 return result;
22747
22748 ;
22749 return 0;
22750 }
22751 _ACEOF
22752 if ac_fn_c_try_run "$LINENO"; then :
22753 gl_cv_func_rename_slash_dst_works=yes
22754 else
22755 gl_cv_func_rename_slash_dst_works=no
22756 fi
22757 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22758 conftest.$ac_objext conftest.beam conftest.$ac_ext
22759 fi
22760
22761 rm -rf conftest.f conftest.f1 conftest.f2 conftest.d1 conftest.d2 conftest.lnk
22762
22763 fi
22764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_slash_dst_works" >&5
22765 $as_echo "$gl_cv_func_rename_slash_dst_works" >&6; }
22766 case "$gl_cv_func_rename_slash_dst_works" in
22767 *yes) ;;
22768 *)
22769 REPLACE_RENAME=1
22770
22771 $as_echo "#define RENAME_TRAILING_SLASH_DEST_BUG 1" >>confdefs.h
22772
22773 ;;
22774 esac
22775
22776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename honors trailing slash on source" >&5
22777 $as_echo_n "checking whether rename honors trailing slash on source... " >&6; }
22778 if ${gl_cv_func_rename_slash_src_works+:} false; then :
22779 $as_echo_n "(cached) " >&6
22780 else
22781 rm -rf conftest.f conftest.f1 conftest.d1 conftest.d2 conftest.d3 conftest.lnk
22782 touch conftest.f && touch conftest.f1 && mkdir conftest.d1 ||
22783 as_fn_error $? "cannot create temporary files" "$LINENO" 5
22784 # Assume that if we have lstat, we can also check symlinks.
22785 if test $ac_cv_func_lstat = yes; then
22786 ln -s conftest.f conftest.lnk
22787 fi
22788 if test "$cross_compiling" = yes; then :
22789 case "$host_os" in
22790 # Guess yes on glibc systems.
22791 *-gnu*) gl_cv_func_rename_slash_src_works="guessing yes" ;;
22792 # If we don't know, assume the worst.
22793 *) gl_cv_func_rename_slash_src_works="guessing no" ;;
22794 esac
22795
22796 else
22797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22798 /* end confdefs.h. */
22799
22800 # include <stdio.h>
22801 # include <stdlib.h>
22802
22803 int
22804 main ()
22805 {
22806 int result = 0;
22807 if (rename ("conftest.f1/", "conftest.d3") == 0)
22808 result |= 1;
22809 if (rename ("conftest.d1/", "conftest.d2") != 0)
22810 result |= 2;
22811 #if HAVE_LSTAT
22812 if (rename ("conftest.lnk/", "conftest.f") == 0)
22813 result |= 4;
22814 #endif
22815 return result;
22816
22817 ;
22818 return 0;
22819 }
22820 _ACEOF
22821 if ac_fn_c_try_run "$LINENO"; then :
22822 gl_cv_func_rename_slash_src_works=yes
22823 else
22824 gl_cv_func_rename_slash_src_works=no
22825 fi
22826 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22827 conftest.$ac_objext conftest.beam conftest.$ac_ext
22828 fi
22829
22830 rm -rf conftest.f conftest.f1 conftest.d1 conftest.d2 conftest.d3 conftest.lnk
22831
22832 fi
22833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_slash_src_works" >&5
22834 $as_echo "$gl_cv_func_rename_slash_src_works" >&6; }
22835 case "$gl_cv_func_rename_slash_src_works" in
22836 *yes) ;;
22837 *)
22838 REPLACE_RENAME=1
22839
22840 $as_echo "#define RENAME_TRAILING_SLASH_SOURCE_BUG 1" >>confdefs.h
22841
22842 ;;
22843 esac
22844
22845
22846 :
22847
22848
22849
22850
22851
22852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename manages hard links correctly" >&5
22853 $as_echo_n "checking whether rename manages hard links correctly... " >&6; }
22854 if ${gl_cv_func_rename_link_works+:} false; then :
22855 $as_echo_n "(cached) " >&6
22856 else
22857 if test $ac_cv_func_link = yes; then
22858 rm -rf conftest.f conftest.f1
22859 if touch conftest.f && ln conftest.f conftest.f1 &&
22860 set x `ls -i conftest.f conftest.f1` && test "" = ""; then
22861 if test "$cross_compiling" = yes; then :
22862 case "$host_os" in
22863 # Guess yes on glibc systems.
22864 *-gnu*) gl_cv_func_rename_link_works="guessing yes" ;;
22865 # If we don't know, assume the worst.
22866 *) gl_cv_func_rename_link_works="guessing no" ;;
22867 esac
22868
22869 else
22870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22871 /* end confdefs.h. */
22872
22873 # include <stdio.h>
22874 # include <stdlib.h>
22875 # include <unistd.h>
22876
22877 int
22878 main ()
22879 {
22880 int result = 0;
22881 if (rename ("conftest.f", "conftest.f1"))
22882 result |= 1;
22883 if (unlink ("conftest.f1"))
22884 result |= 2;
22885 if (rename ("conftest.f", "conftest.f"))
22886 result |= 4;
22887 if (rename ("conftest.f1", "conftest.f1") == 0)
22888 result |= 8;
22889 return result;
22890
22891 ;
22892 return 0;
22893 }
22894 _ACEOF
22895 if ac_fn_c_try_run "$LINENO"; then :
22896 gl_cv_func_rename_link_works=yes
22897 else
22898 gl_cv_func_rename_link_works=no
22899 fi
22900 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22901 conftest.$ac_objext conftest.beam conftest.$ac_ext
22902 fi
22903
22904 else
22905 gl_cv_func_rename_link_works="guessing no"
22906 fi
22907 rm -rf conftest.f conftest.f1
22908 else
22909 gl_cv_func_rename_link_works=yes
22910 fi
22911
22912 fi
22913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_link_works" >&5
22914 $as_echo "$gl_cv_func_rename_link_works" >&6; }
22915 case "$gl_cv_func_rename_link_works" in
22916 *yes) ;;
22917 *)
22918 REPLACE_RENAME=1
22919
22920 $as_echo "#define RENAME_HARD_LINK_BUG 1" >>confdefs.h
22921
22922 ;;
22923 esac
22924
22925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename manages existing destinations correctly" >&5
22926 $as_echo_n "checking whether rename manages existing destinations correctly... " >&6; }
22927 if ${gl_cv_func_rename_dest_works+:} false; then :
22928 $as_echo_n "(cached) " >&6
22929 else
22930 rm -rf conftest.f conftest.d1 conftest.d2
22931 touch conftest.f && mkdir conftest.d1 conftest.d2 ||
22932 as_fn_error $? "cannot create temporary files" "$LINENO" 5
22933 if test "$cross_compiling" = yes; then :
22934 case "$host_os" in
22935 # Guess yes on glibc systems.
22936 *-gnu*) gl_cv_func_rename_dest_works="guessing yes" ;;
22937 # If we don't know, assume the worst.
22938 *) gl_cv_func_rename_dest_works="guessing no" ;;
22939 esac
22940
22941 else
22942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22943 /* end confdefs.h. */
22944
22945 # include <stdio.h>
22946 # include <stdlib.h>
22947
22948 int
22949 main ()
22950 {
22951 int result = 0;
22952 if (rename ("conftest.d1", "conftest.d2") != 0)
22953 result |= 1;
22954 if (rename ("conftest.d2", "conftest.f") == 0)
22955 result |= 2;
22956 return result;
22957
22958 ;
22959 return 0;
22960 }
22961 _ACEOF
22962 if ac_fn_c_try_run "$LINENO"; then :
22963 gl_cv_func_rename_dest_works=yes
22964 else
22965 gl_cv_func_rename_dest_works=no
22966 fi
22967 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22968 conftest.$ac_objext conftest.beam conftest.$ac_ext
22969 fi
22970
22971 rm -rf conftest.f conftest.d1 conftest.d2
22972
22973 fi
22974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_dest_works" >&5
22975 $as_echo "$gl_cv_func_rename_dest_works" >&6; }
22976 case "$gl_cv_func_rename_dest_works" in
22977 *yes) ;;
22978 *)
22979 REPLACE_RENAME=1
22980
22981 $as_echo "#define RENAME_DEST_EXISTS_BUG 1" >>confdefs.h
22982
22983 ;;
22984 esac
22985
22986 if test $REPLACE_RENAME = 1; then
22987
22988
22989
22990
22991
22992
22993
22994
22995 gl_LIBOBJS="$gl_LIBOBJS rename.$ac_objext"
22996
22997 fi
22998
22999
23000
23001
23002
23003 GNULIB_RENAME=1
23004
23005
23006
23007
23008
23009 $as_echo "#define GNULIB_TEST_RENAME 1" >>confdefs.h
23010
23011
23012
23013
23014
23015
23016 for ac_func in rewinddir
23017 do :
23018 ac_fn_c_check_func "$LINENO" "rewinddir" "ac_cv_func_rewinddir"
23019 if test "x$ac_cv_func_rewinddir" = xyes; then :
23020 cat >>confdefs.h <<_ACEOF
23021 #define HAVE_REWINDDIR 1
23022 _ACEOF
23023
23024 fi
23025 done
23026
23027 if test $ac_cv_func_rewinddir = no; then
23028 HAVE_REWINDDIR=0
23029 fi
23030
23031 if test $HAVE_REWINDDIR = 0; then
23032
23033
23034
23035
23036
23037
23038
23039
23040 gl_LIBOBJS="$gl_LIBOBJS rewinddir.$ac_objext"
23041
23042 fi
23043
23044
23045
23046
23047
23048 GNULIB_REWINDDIR=1
23049
23050
23051
23052
23053
23054 $as_echo "#define GNULIB_TEST_REWINDDIR 1" >>confdefs.h
23055
23056
23057
23058
23059
23060
23061 :
23062
23063
23064
23065
23066
23067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rmdir works" >&5
23068 $as_echo_n "checking whether rmdir works... " >&6; }
23069 if ${gl_cv_func_rmdir_works+:} false; then :
23070 $as_echo_n "(cached) " >&6
23071 else
23072 mkdir conftest.dir
23073 touch conftest.file
23074 if test "$cross_compiling" = yes; then :
23075 case "$host_os" in
23076 # Guess yes on glibc systems.
23077 *-gnu*) gl_cv_func_rmdir_works="guessing yes" ;;
23078 # If we don't know, assume the worst.
23079 *) gl_cv_func_rmdir_works="guessing no" ;;
23080 esac
23081
23082 else
23083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23084 /* end confdefs.h. */
23085 #include <stdio.h>
23086 #include <errno.h>
23087 #if HAVE_UNISTD_H
23088 # include <unistd.h>
23089 #else /* on Windows with MSVC */
23090 # include <direct.h>
23091 #endif
23092
23093 int
23094 main ()
23095 {
23096 int result = 0;
23097 if (!rmdir ("conftest.file/"))
23098 result |= 1;
23099 else if (errno != ENOTDIR)
23100 result |= 2;
23101 if (!rmdir ("conftest.dir/./"))
23102 result |= 4;
23103 return result;
23104
23105 ;
23106 return 0;
23107 }
23108 _ACEOF
23109 if ac_fn_c_try_run "$LINENO"; then :
23110 gl_cv_func_rmdir_works=yes
23111 else
23112 gl_cv_func_rmdir_works=no
23113 fi
23114 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23115 conftest.$ac_objext conftest.beam conftest.$ac_ext
23116 fi
23117
23118 rm -rf conftest.dir conftest.file
23119 fi
23120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rmdir_works" >&5
23121 $as_echo "$gl_cv_func_rmdir_works" >&6; }
23122 case "$gl_cv_func_rmdir_works" in
23123 *yes) ;;
23124 *)
23125 REPLACE_RMDIR=1
23126 ;;
23127 esac
23128
23129 if test $REPLACE_RMDIR = 1; then
23130
23131
23132
23133
23134
23135
23136
23137
23138 gl_LIBOBJS="$gl_LIBOBJS rmdir.$ac_objext"
23139
23140 fi
23141
23142
23143
23144
23145
23146 GNULIB_RMDIR=1
23147
23148
23149
23150
23151
23152 $as_echo "#define GNULIB_TEST_RMDIR 1" >>confdefs.h
23153
23154
23155
23156
23157
23158 :
23159
23160
23161
23162
23163
23164
23165
23166
23167
23168
23169
23170 :
23171
23172
23173
23174
23175
23176 if test $ac_cv_func_secure_getenv = no; then
23177 HAVE_SECURE_GETENV=0
23178 fi
23179
23180 if test $HAVE_SECURE_GETENV = 0; then
23181
23182
23183
23184
23185
23186
23187
23188
23189 gl_LIBOBJS="$gl_LIBOBJS secure_getenv.$ac_objext"
23190
23191
23192 for ac_func in __secure_getenv
23193 do :
23194 ac_fn_c_check_func "$LINENO" "__secure_getenv" "ac_cv_func___secure_getenv"
23195 if test "x$ac_cv_func___secure_getenv" = xyes; then :
23196 cat >>confdefs.h <<_ACEOF
23197 #define HAVE___SECURE_GETENV 1
23198 _ACEOF
23199
23200 fi
23201 done
23202
23203 if test $ac_cv_func___secure_getenv = no; then
23204 for ac_func in issetugid
23205 do :
23206 ac_fn_c_check_func "$LINENO" "issetugid" "ac_cv_func_issetugid"
23207 if test "x$ac_cv_func_issetugid" = xyes; then :
23208 cat >>confdefs.h <<_ACEOF
23209 #define HAVE_ISSETUGID 1
23210 _ACEOF
23211
23212 fi
23213 done
23214
23215 fi
23216
23217 :
23218
23219
23220
23221
23222
23223
23224
23225
23226
23227
23228
23229
23230
23231
23232
23233 fi
23234
23235
23236
23237
23238
23239 GNULIB_SECURE_GETENV=1
23240
23241
23242
23243
23244
23245 $as_echo "#define GNULIB_TEST_SECURE_GETENV 1" >>confdefs.h
23246
23247
23248
23249
23250
23251 if test $ac_cv_func_setenv = no; then
23252 HAVE_SETENV=0
23253 else
23254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setenv validates arguments" >&5
23255 $as_echo_n "checking whether setenv validates arguments... " >&6; }
23256 if ${gl_cv_func_setenv_works+:} false; then :
23257 $as_echo_n "(cached) " >&6
23258 else
23259 if test "$cross_compiling" = yes; then :
23260 case "$host_os" in
23261 # Guess yes on glibc systems.
23262 *-gnu*) gl_cv_func_setenv_works="guessing yes" ;;
23263 # If we don't know, assume the worst.
23264 *) gl_cv_func_setenv_works="guessing no" ;;
23265 esac
23266
23267 else
23268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23269 /* end confdefs.h. */
23270
23271 #include <stdlib.h>
23272 #include <errno.h>
23273 #include <string.h>
23274
23275 int
23276 main ()
23277 {
23278
23279 int result = 0;
23280 {
23281 if (setenv ("", "", 0) != -1)
23282 result |= 1;
23283 else if (errno != EINVAL)
23284 result |= 2;
23285 }
23286 {
23287 if (setenv ("a", "=", 1) != 0)
23288 result |= 4;
23289 else if (strcmp (getenv ("a"), "=") != 0)
23290 result |= 8;
23291 }
23292 return result;
23293
23294 ;
23295 return 0;
23296 }
23297 _ACEOF
23298 if ac_fn_c_try_run "$LINENO"; then :
23299 gl_cv_func_setenv_works=yes
23300 else
23301 gl_cv_func_setenv_works=no
23302 fi
23303 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23304 conftest.$ac_objext conftest.beam conftest.$ac_ext
23305 fi
23306
23307 fi
23308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setenv_works" >&5
23309 $as_echo "$gl_cv_func_setenv_works" >&6; }
23310 case "$gl_cv_func_setenv_works" in
23311 *yes) ;;
23312 *)
23313 REPLACE_SETENV=1
23314 ;;
23315 esac
23316 fi
23317
23318 if test $HAVE_SETENV = 0 || test $REPLACE_SETENV = 1; then
23319
23320
23321
23322
23323
23324
23325
23326
23327 gl_LIBOBJS="$gl_LIBOBJS setenv.$ac_objext"
23328
23329 fi
23330
23331
23332
23333
23334
23335 GNULIB_SETENV=1
23336
23337
23338
23339
23340
23341 $as_echo "#define GNULIB_TEST_SETENV 1" >>confdefs.h
23342
23343
23344
23345
23346
23347
23348
23349
23350
23351
23352
23353
23354
23355
23356 if test $gl_cv_have_include_next = yes; then
23357 gl_cv_next_signal_h='<'signal.h'>'
23358 else
23359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
23360 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
23361 if ${gl_cv_next_signal_h+:} false; then :
23362 $as_echo_n "(cached) " >&6
23363 else
23364
23365
23366
23367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23368 /* end confdefs.h. */
23369 #include <signal.h>
23370 _ACEOF
23371 case "$host_os" in
23372 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23373 *) gl_absname_cpp="$ac_cpp" ;;
23374 esac
23375
23376 case "$host_os" in
23377 mingw*)
23378 gl_dirsep_regex='[/\\]'
23379 ;;
23380 *)
23381 gl_dirsep_regex='\/'
23382 ;;
23383 esac
23384 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23385 gl_header_literal_regex=`echo 'signal.h' \
23386 | sed -e "$gl_make_literal_regex_sed"`
23387 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23388 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23389 s|^/[^/]|//&|
23390 p
23391 q
23392 }'
23393
23394 gl_cv_absolute_signal_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23395 sed -n "$gl_absolute_header_sed"`
23396
23397 gl_header=$gl_cv_absolute_signal_h
23398 gl_cv_next_signal_h='"'$gl_header'"'
23399
23400
23401 fi
23402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
23403 $as_echo "$gl_cv_next_signal_h" >&6; }
23404 fi
23405 NEXT_SIGNAL_H=$gl_cv_next_signal_h
23406
23407 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23408 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23409 gl_next_as_first_directive='<'signal.h'>'
23410 else
23411 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23412 gl_next_as_first_directive=$gl_cv_next_signal_h
23413 fi
23414 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
23415
23416
23417
23418
23419
23420 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
23421 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
23422 ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
23423 #include <signal.h>
23424
23425 "
23426 if test "x$ac_cv_type_volatile_sig_atomic_t" = xyes; then :
23427
23428 else
23429 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
23430 fi
23431
23432
23433
23434
23435
23436
23437
23438 ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
23439 #include <signal.h>
23440
23441 "
23442 if test "x$ac_cv_type_sighandler_t" = xyes; then :
23443
23444 else
23445 HAVE_SIGHANDLER_T=0
23446 fi
23447
23448
23449
23450 for gl_func in pthread_sigmask sigaction sigaddset sigdelset sigemptyset sigfillset sigismember sigpending sigprocmask; do
23451 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
23452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
23453 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
23454 if eval \${$as_gl_Symbol+:} false; then :
23455 $as_echo_n "(cached) " >&6
23456 else
23457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23458 /* end confdefs.h. */
23459 #include <signal.h>
23460
23461 int
23462 main ()
23463 {
23464 #undef $gl_func
23465 (void) $gl_func;
23466 ;
23467 return 0;
23468 }
23469 _ACEOF
23470 if ac_fn_c_try_compile "$LINENO"; then :
23471 eval "$as_gl_Symbol=yes"
23472 else
23473 eval "$as_gl_Symbol=no"
23474 fi
23475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23476 fi
23477 eval ac_res=\$$as_gl_Symbol
23478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23479 $as_echo "$ac_res" >&6; }
23480 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
23481 cat >>confdefs.h <<_ACEOF
23482 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
23483 _ACEOF
23484
23485 eval ac_cv_have_decl_$gl_func=yes
23486 fi
23487 done
23488
23489
23490 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
23491 /* <sys/types.h> is not needed according to POSIX, but the
23492 <sys/socket.h> in i386-unknown-freebsd4.10 and
23493 powerpc-apple-darwin5.5 required it. */
23494 #include <sys/types.h>
23495 #if HAVE_SYS_SOCKET_H
23496 # include <sys/socket.h>
23497 #elif HAVE_WS2TCPIP_H
23498 # include <ws2tcpip.h>
23499 #endif
23500
23501 "
23502 if test "x$ac_cv_type_socklen_t" = xyes; then :
23503
23504 else
23505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
23506 $as_echo_n "checking for socklen_t equivalent... " >&6; }
23507 if ${gl_cv_socklen_t_equiv+:} false; then :
23508 $as_echo_n "(cached) " >&6
23509 else
23510 # Systems have either "struct sockaddr *" or
23511 # "void *" as the second argument to getpeername
23512 gl_cv_socklen_t_equiv=
23513 for arg2 in "struct sockaddr" void; do
23514 for t in int size_t "unsigned int" "long int" "unsigned long int"; do
23515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23516 /* end confdefs.h. */
23517 #include <sys/types.h>
23518 #include <sys/socket.h>
23519
23520 int getpeername (int, $arg2 *, $t *);
23521 int
23522 main ()
23523 {
23524 $t len;
23525 getpeername (0, 0, &len);
23526 ;
23527 return 0;
23528 }
23529 _ACEOF
23530 if ac_fn_c_try_compile "$LINENO"; then :
23531 gl_cv_socklen_t_equiv="$t"
23532 fi
23533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23534 test "$gl_cv_socklen_t_equiv" != "" && break
23535 done
23536 test "$gl_cv_socklen_t_equiv" != "" && break
23537 done
23538
23539 fi
23540
23541 if test "$gl_cv_socklen_t_equiv" = ""; then
23542 as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5
23543 fi
23544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
23545 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
23546
23547 cat >>confdefs.h <<_ACEOF
23548 #define socklen_t $gl_cv_socklen_t_equiv
23549 _ACEOF
23550
23551 fi
23552
23553
23554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
23555 $as_echo_n "checking for ssize_t... " >&6; }
23556 if ${gt_cv_ssize_t+:} false; then :
23557 $as_echo_n "(cached) " >&6
23558 else
23559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23560 /* end confdefs.h. */
23561 #include <sys/types.h>
23562 int
23563 main ()
23564 {
23565 int x = sizeof (ssize_t *) + sizeof (ssize_t);
23566 return !x;
23567 ;
23568 return 0;
23569 }
23570 _ACEOF
23571 if ac_fn_c_try_compile "$LINENO"; then :
23572 gt_cv_ssize_t=yes
23573 else
23574 gt_cv_ssize_t=no
23575 fi
23576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23577 fi
23578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
23579 $as_echo "$gt_cv_ssize_t" >&6; }
23580 if test $gt_cv_ssize_t = no; then
23581
23582 $as_echo "#define ssize_t int" >>confdefs.h
23583
23584 fi
23585
23586
23587
23588
23589 :
23590
23591
23592
23593
23594
23595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
23596 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
23597 if ${gl_cv_func_stat_dir_slash+:} false; then :
23598 $as_echo_n "(cached) " >&6
23599 else
23600 if test "$cross_compiling" = yes; then :
23601 case $host_os in
23602 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
23603 *) gl_cv_func_stat_dir_slash="guessing yes";;
23604 esac
23605 else
23606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23607 /* end confdefs.h. */
23608 #include <sys/stat.h>
23609
23610 int
23611 main ()
23612 {
23613 struct stat st; return stat (".", &st) != stat ("./", &st);
23614 ;
23615 return 0;
23616 }
23617 _ACEOF
23618 if ac_fn_c_try_run "$LINENO"; then :
23619 gl_cv_func_stat_dir_slash=yes
23620 else
23621 gl_cv_func_stat_dir_slash=no
23622 fi
23623 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23624 conftest.$ac_objext conftest.beam conftest.$ac_ext
23625 fi
23626
23627 fi
23628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
23629 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
23630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
23631 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
23632 if ${gl_cv_func_stat_file_slash+:} false; then :
23633 $as_echo_n "(cached) " >&6
23634 else
23635 touch conftest.tmp
23636 # Assume that if we have lstat, we can also check symlinks.
23637 if test $ac_cv_func_lstat = yes; then
23638 ln -s conftest.tmp conftest.lnk
23639 fi
23640 if test "$cross_compiling" = yes; then :
23641 case "$host_os" in
23642 # Guess yes on glibc systems.
23643 *-gnu*) gl_cv_func_stat_file_slash="guessing yes" ;;
23644 # If we don't know, assume the worst.
23645 *) gl_cv_func_stat_file_slash="guessing no" ;;
23646 esac
23647
23648 else
23649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23650 /* end confdefs.h. */
23651 #include <sys/stat.h>
23652
23653 int
23654 main ()
23655 {
23656 int result = 0;
23657 struct stat st;
23658 if (!stat ("conftest.tmp/", &st))
23659 result |= 1;
23660 #if HAVE_LSTAT
23661 if (!stat ("conftest.lnk/", &st))
23662 result |= 2;
23663 #endif
23664 return result;
23665
23666 ;
23667 return 0;
23668 }
23669 _ACEOF
23670 if ac_fn_c_try_run "$LINENO"; then :
23671 gl_cv_func_stat_file_slash=yes
23672 else
23673 gl_cv_func_stat_file_slash=no
23674 fi
23675 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23676 conftest.$ac_objext conftest.beam conftest.$ac_ext
23677 fi
23678
23679 rm -f conftest.tmp conftest.lnk
23680 fi
23681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
23682 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
23683 case $gl_cv_func_stat_dir_slash in
23684 *no) REPLACE_STAT=1
23685
23686 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
23687 ;;
23688 esac
23689 case $gl_cv_func_stat_file_slash in
23690 *no) REPLACE_STAT=1
23691
23692 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
23693 ;;
23694 esac
23695
23696 if test $REPLACE_STAT = 1; then
23697
23698
23699
23700
23701
23702
23703
23704
23705 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
23706
23707 :
23708 fi
23709
23710
23711
23712
23713
23714 GNULIB_STAT=1
23715
23716
23717
23718
23719
23720 $as_echo "#define GNULIB_TEST_STAT 1" >>confdefs.h
23721
23722
23723
23724
23725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
23726 $as_echo_n "checking for working stdalign.h... " >&6; }
23727 if ${gl_cv_header_working_stdalign_h+:} false; then :
23728 $as_echo_n "(cached) " >&6
23729 else
23730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23731 /* end confdefs.h. */
23732 #include <stdalign.h>
23733 #include <stddef.h>
23734
23735 /* Test that alignof yields a result consistent with offsetof.
23736 This catches GCC bug 52023
23737 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */
23738 #ifdef __cplusplus
23739 template <class t> struct alignof_helper { char a; t b; };
23740 # define ao(type) offsetof (alignof_helper<type>, b)
23741 #else
23742 # define ao(type) offsetof (struct { char a; type b; }, b)
23743 #endif
23744 char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
23745 char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
23746 char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
23747
23748 /* Test _Alignas only on platforms where gnulib can help. */
23749 #if \
23750 ((defined __cplusplus && 201103 <= __cplusplus) \
23751 || (defined __APPLE__ && defined __MACH__ \
23752 ? 4 < __GNUC__ + (1 <= __GNUC_MINOR__) \
23753 : __GNUC__) \
23754 || __HP_cc || __HP_aCC || __IBMC__ || __IBMCPP__ \
23755 || __ICC || 0x5110 <= __SUNPRO_C \
23756 || 1300 <= _MSC_VER)
23757 struct alignas_test { char c; char alignas (8) alignas_8; };
23758 char test_alignas[offsetof (struct alignas_test, alignas_8) == 8
23759 ? 1 : -1];
23760 #endif
23761
23762 int
23763 main ()
23764 {
23765
23766 ;
23767 return 0;
23768 }
23769 _ACEOF
23770 if ac_fn_c_try_compile "$LINENO"; then :
23771 gl_cv_header_working_stdalign_h=yes
23772 else
23773 gl_cv_header_working_stdalign_h=no
23774 fi
23775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23776 fi
23777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
23778 $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
23779
23780 if test $gl_cv_header_working_stdalign_h = yes; then
23781 STDALIGN_H=''
23782 else
23783 STDALIGN_H='stdalign.h'
23784 fi
23785
23786
23787 if test -n "$STDALIGN_H"; then
23788 GL_GENERATE_STDALIGN_H_TRUE=
23789 GL_GENERATE_STDALIGN_H_FALSE='#'
23790 else
23791 GL_GENERATE_STDALIGN_H_TRUE='#'
23792 GL_GENERATE_STDALIGN_H_FALSE=
23793 fi
23794
23795
23796
23797
23798
23799 # Define two additional variables used in the Makefile substitution.
23800
23801 if test "$ac_cv_header_stdbool_h" = yes; then
23802 STDBOOL_H=''
23803 else
23804 STDBOOL_H='stdbool.h'
23805 fi
23806
23807 if test -n "$STDBOOL_H"; then
23808 GL_GENERATE_STDBOOL_H_TRUE=
23809 GL_GENERATE_STDBOOL_H_FALSE='#'
23810 else
23811 GL_GENERATE_STDBOOL_H_TRUE='#'
23812 GL_GENERATE_STDBOOL_H_FALSE=
23813 fi
23814
23815
23816 if test "$ac_cv_type__Bool" = yes; then
23817 HAVE__BOOL=1
23818 else
23819 HAVE__BOOL=0
23820 fi
23821
23822
23823
23824
23825
23826 STDDEF_H=
23827 ac_fn_c_check_type "$LINENO" "max_align_t" "ac_cv_type_max_align_t" "#include <stddef.h>
23828
23829 "
23830 if test "x$ac_cv_type_max_align_t" = xyes; then :
23831
23832 else
23833 HAVE_MAX_ALIGN_T=0; STDDEF_H=stddef.h
23834 fi
23835
23836 if test $gt_cv_c_wchar_t = no; then
23837 HAVE_WCHAR_T=0
23838 STDDEF_H=stddef.h
23839 fi
23840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
23841 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
23842 if ${gl_cv_decl_null_works+:} false; then :
23843 $as_echo_n "(cached) " >&6
23844 else
23845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23846 /* end confdefs.h. */
23847 #include <stddef.h>
23848 int test[2 * (sizeof NULL == sizeof (void *)) -1];
23849
23850 int
23851 main ()
23852 {
23853
23854 ;
23855 return 0;
23856 }
23857 _ACEOF
23858 if ac_fn_c_try_compile "$LINENO"; then :
23859 gl_cv_decl_null_works=yes
23860 else
23861 gl_cv_decl_null_works=no
23862 fi
23863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23864 fi
23865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
23866 $as_echo "$gl_cv_decl_null_works" >&6; }
23867 if test $gl_cv_decl_null_works = no; then
23868 REPLACE_NULL=1
23869 STDDEF_H=stddef.h
23870 fi
23871
23872 if test -n "$STDDEF_H"; then
23873 GL_GENERATE_STDDEF_H_TRUE=
23874 GL_GENERATE_STDDEF_H_FALSE='#'
23875 else
23876 GL_GENERATE_STDDEF_H_TRUE='#'
23877 GL_GENERATE_STDDEF_H_FALSE=
23878 fi
23879
23880 if test -n "$STDDEF_H"; then
23881
23882
23883
23884
23885
23886
23887
23888
23889 if test $gl_cv_have_include_next = yes; then
23890 gl_cv_next_stddef_h='<'stddef.h'>'
23891 else
23892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
23893 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
23894 if ${gl_cv_next_stddef_h+:} false; then :
23895 $as_echo_n "(cached) " >&6
23896 else
23897
23898
23899
23900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23901 /* end confdefs.h. */
23902 #include <stddef.h>
23903 _ACEOF
23904 case "$host_os" in
23905 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23906 *) gl_absname_cpp="$ac_cpp" ;;
23907 esac
23908
23909 case "$host_os" in
23910 mingw*)
23911 gl_dirsep_regex='[/\\]'
23912 ;;
23913 *)
23914 gl_dirsep_regex='\/'
23915 ;;
23916 esac
23917 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23918 gl_header_literal_regex=`echo 'stddef.h' \
23919 | sed -e "$gl_make_literal_regex_sed"`
23920 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23921 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23922 s|^/[^/]|//&|
23923 p
23924 q
23925 }'
23926
23927 gl_cv_absolute_stddef_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23928 sed -n "$gl_absolute_header_sed"`
23929
23930 gl_header=$gl_cv_absolute_stddef_h
23931 gl_cv_next_stddef_h='"'$gl_header'"'
23932
23933
23934 fi
23935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
23936 $as_echo "$gl_cv_next_stddef_h" >&6; }
23937 fi
23938 NEXT_STDDEF_H=$gl_cv_next_stddef_h
23939
23940 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23941 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23942 gl_next_as_first_directive='<'stddef.h'>'
23943 else
23944 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23945 gl_next_as_first_directive=$gl_cv_next_stddef_h
23946 fi
23947 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
23948
23949
23950
23951
23952 fi
23953
23954
23955
23956
23957 $as_echo "#define __USE_MINGW_ANSI_STDIO 1" >>confdefs.h
23958
23959
23960
23961
23962
23963
23964
23965
23966
23967
23968 if test $gl_cv_have_include_next = yes; then
23969 gl_cv_next_stdio_h='<'stdio.h'>'
23970 else
23971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
23972 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
23973 if ${gl_cv_next_stdio_h+:} false; then :
23974 $as_echo_n "(cached) " >&6
23975 else
23976
23977
23978
23979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23980 /* end confdefs.h. */
23981 #include <stdio.h>
23982 _ACEOF
23983 case "$host_os" in
23984 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23985 *) gl_absname_cpp="$ac_cpp" ;;
23986 esac
23987
23988 case "$host_os" in
23989 mingw*)
23990 gl_dirsep_regex='[/\\]'
23991 ;;
23992 *)
23993 gl_dirsep_regex='\/'
23994 ;;
23995 esac
23996 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23997 gl_header_literal_regex=`echo 'stdio.h' \
23998 | sed -e "$gl_make_literal_regex_sed"`
23999 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24000 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24001 s|^/[^/]|//&|
24002 p
24003 q
24004 }'
24005
24006 gl_cv_absolute_stdio_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24007 sed -n "$gl_absolute_header_sed"`
24008
24009 gl_header=$gl_cv_absolute_stdio_h
24010 gl_cv_next_stdio_h='"'$gl_header'"'
24011
24012
24013 fi
24014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
24015 $as_echo "$gl_cv_next_stdio_h" >&6; }
24016 fi
24017 NEXT_STDIO_H=$gl_cv_next_stdio_h
24018
24019 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24020 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24021 gl_next_as_first_directive='<'stdio.h'>'
24022 else
24023 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24024 gl_next_as_first_directive=$gl_cv_next_stdio_h
24025 fi
24026 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
24027
24028
24029
24030
24031
24032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which flavor of printf attribute matches inttypes macros" >&5
24033 $as_echo_n "checking which flavor of printf attribute matches inttypes macros... " >&6; }
24034 if ${gl_cv_func_printf_attribute_flavor+:} false; then :
24035 $as_echo_n "(cached) " >&6
24036 else
24037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24038 /* end confdefs.h. */
24039
24040 #define __STDC_FORMAT_MACROS 1
24041 #include <stdio.h>
24042 #include <inttypes.h>
24043 /* For non-mingw systems, compilation will trivially succeed.
24044 For mingw, compilation will succeed for older mingw (system
24045 printf, "I64d") and fail for newer mingw (gnu printf, "lld"). */
24046 #if ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) && \
24047 (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4))
24048 extern char PRIdMAX_probe[sizeof PRIdMAX == sizeof "I64d" ? 1 : -1];
24049 #endif
24050
24051 int
24052 main ()
24053 {
24054
24055 ;
24056 return 0;
24057 }
24058 _ACEOF
24059 if ac_fn_c_try_compile "$LINENO"; then :
24060 gl_cv_func_printf_attribute_flavor=system
24061 else
24062 gl_cv_func_printf_attribute_flavor=gnu
24063 fi
24064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24065 fi
24066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_attribute_flavor" >&5
24067 $as_echo "$gl_cv_func_printf_attribute_flavor" >&6; }
24068 if test "$gl_cv_func_printf_attribute_flavor" = gnu; then
24069
24070 $as_echo "#define GNULIB_PRINTF_ATTRIBUTE_FLAVOR_GNU 1" >>confdefs.h
24071
24072 fi
24073
24074 GNULIB_FSCANF=1
24075
24076
24077 cat >>confdefs.h <<_ACEOF
24078 #define GNULIB_FSCANF 1
24079 _ACEOF
24080
24081
24082 GNULIB_SCANF=1
24083
24084
24085 cat >>confdefs.h <<_ACEOF
24086 #define GNULIB_SCANF 1
24087 _ACEOF
24088
24089
24090 GNULIB_FGETC=1
24091 GNULIB_GETC=1
24092 GNULIB_GETCHAR=1
24093 GNULIB_FGETS=1
24094 GNULIB_FREAD=1
24095
24096
24097 GNULIB_FPRINTF=1
24098 GNULIB_PRINTF=1
24099 GNULIB_VFPRINTF=1
24100 GNULIB_VPRINTF=1
24101 GNULIB_FPUTC=1
24102 GNULIB_PUTC=1
24103 GNULIB_PUTCHAR=1
24104 GNULIB_FPUTS=1
24105 GNULIB_PUTS=1
24106 GNULIB_FWRITE=1
24107
24108
24109
24110
24111 for gl_func in dprintf fpurge fseeko ftello getdelim getline gets pclose popen renameat snprintf tmpfile vdprintf vsnprintf; do
24112 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
24113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
24114 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
24115 if eval \${$as_gl_Symbol+:} false; then :
24116 $as_echo_n "(cached) " >&6
24117 else
24118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24119 /* end confdefs.h. */
24120 #include <stdio.h>
24121
24122 int
24123 main ()
24124 {
24125 #undef $gl_func
24126 (void) $gl_func;
24127 ;
24128 return 0;
24129 }
24130 _ACEOF
24131 if ac_fn_c_try_compile "$LINENO"; then :
24132 eval "$as_gl_Symbol=yes"
24133 else
24134 eval "$as_gl_Symbol=no"
24135 fi
24136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24137 fi
24138 eval ac_res=\$$as_gl_Symbol
24139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24140 $as_echo "$ac_res" >&6; }
24141 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
24142 cat >>confdefs.h <<_ACEOF
24143 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
24144 _ACEOF
24145
24146 eval ac_cv_have_decl_$gl_func=yes
24147 fi
24148 done
24149
24150
24151
24152
24153
24154
24155
24156
24157
24158
24159
24160
24161 if test $gl_cv_have_include_next = yes; then
24162 gl_cv_next_stdlib_h='<'stdlib.h'>'
24163 else
24164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
24165 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
24166 if ${gl_cv_next_stdlib_h+:} false; then :
24167 $as_echo_n "(cached) " >&6
24168 else
24169
24170
24171
24172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24173 /* end confdefs.h. */
24174 #include <stdlib.h>
24175 _ACEOF
24176 case "$host_os" in
24177 aix*) gl_absname_cpp="$ac_cpp -C" ;;
24178 *) gl_absname_cpp="$ac_cpp" ;;
24179 esac
24180
24181 case "$host_os" in
24182 mingw*)
24183 gl_dirsep_regex='[/\\]'
24184 ;;
24185 *)
24186 gl_dirsep_regex='\/'
24187 ;;
24188 esac
24189 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24190 gl_header_literal_regex=`echo 'stdlib.h' \
24191 | sed -e "$gl_make_literal_regex_sed"`
24192 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24193 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24194 s|^/[^/]|//&|
24195 p
24196 q
24197 }'
24198
24199 gl_cv_absolute_stdlib_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24200 sed -n "$gl_absolute_header_sed"`
24201
24202 gl_header=$gl_cv_absolute_stdlib_h
24203 gl_cv_next_stdlib_h='"'$gl_header'"'
24204
24205
24206 fi
24207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
24208 $as_echo "$gl_cv_next_stdlib_h" >&6; }
24209 fi
24210 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
24211
24212 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24213 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24214 gl_next_as_first_directive='<'stdlib.h'>'
24215 else
24216 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24217 gl_next_as_first_directive=$gl_cv_next_stdlib_h
24218 fi
24219 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
24220
24221
24222
24223
24224
24225
24226 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
24227 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
24228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
24229 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
24230 if eval \${$as_gl_Symbol+:} false; then :
24231 $as_echo_n "(cached) " >&6
24232 else
24233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24234 /* end confdefs.h. */
24235 #include <stdlib.h>
24236 #if HAVE_SYS_LOADAVG_H
24237 # include <sys/loadavg.h>
24238 #endif
24239 #if HAVE_RANDOM_H
24240 # include <random.h>
24241 #endif
24242
24243 int
24244 main ()
24245 {
24246 #undef $gl_func
24247 (void) $gl_func;
24248 ;
24249 return 0;
24250 }
24251 _ACEOF
24252 if ac_fn_c_try_compile "$LINENO"; then :
24253 eval "$as_gl_Symbol=yes"
24254 else
24255 eval "$as_gl_Symbol=no"
24256 fi
24257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24258 fi
24259 eval ac_res=\$$as_gl_Symbol
24260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24261 $as_echo "$ac_res" >&6; }
24262 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
24263 cat >>confdefs.h <<_ACEOF
24264 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
24265 _ACEOF
24266
24267 eval ac_cv_have_decl_$gl_func=yes
24268 fi
24269 done
24270
24271
24272
24273
24274
24275
24276 for ac_func in strchrnul
24277 do :
24278 ac_fn_c_check_func "$LINENO" "strchrnul" "ac_cv_func_strchrnul"
24279 if test "x$ac_cv_func_strchrnul" = xyes; then :
24280 cat >>confdefs.h <<_ACEOF
24281 #define HAVE_STRCHRNUL 1
24282 _ACEOF
24283
24284 fi
24285 done
24286
24287 if test $ac_cv_func_strchrnul = no; then
24288 HAVE_STRCHRNUL=0
24289 else
24290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strchrnul works" >&5
24291 $as_echo_n "checking whether strchrnul works... " >&6; }
24292 if ${gl_cv_func_strchrnul_works+:} false; then :
24293 $as_echo_n "(cached) " >&6
24294 else
24295 if test "$cross_compiling" = yes; then :
24296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24297 /* end confdefs.h. */
24298
24299 #if defined __CYGWIN__
24300 #include <cygwin/version.h>
24301 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 9)
24302 Lucky user
24303 #endif
24304 #else
24305 Lucky user
24306 #endif
24307
24308 _ACEOF
24309 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24310 $EGREP "Lucky user" >/dev/null 2>&1; then :
24311 gl_cv_func_strchrnul_works="guessing yes"
24312 else
24313 gl_cv_func_strchrnul_works="guessing no"
24314 fi
24315 rm -f conftest*
24316
24317
24318 else
24319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24320 /* end confdefs.h. */
24321
24322 #include <string.h> /* for strchrnul */
24323
24324 int
24325 main ()
24326 {
24327 const char *buf = "a";
24328 return strchrnul (buf, 'b') != buf + 1;
24329
24330 ;
24331 return 0;
24332 }
24333 _ACEOF
24334 if ac_fn_c_try_run "$LINENO"; then :
24335 gl_cv_func_strchrnul_works=yes
24336 else
24337 gl_cv_func_strchrnul_works=no
24338 fi
24339 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24340 conftest.$ac_objext conftest.beam conftest.$ac_ext
24341 fi
24342
24343
24344 fi
24345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strchrnul_works" >&5
24346 $as_echo "$gl_cv_func_strchrnul_works" >&6; }
24347 case "$gl_cv_func_strchrnul_works" in
24348 *yes) ;;
24349 *) REPLACE_STRCHRNUL=1 ;;
24350 esac
24351 fi
24352
24353 if test $HAVE_STRCHRNUL = 0 || test $REPLACE_STRCHRNUL = 1; then
24354
24355
24356
24357
24358
24359
24360
24361
24362 gl_LIBOBJS="$gl_LIBOBJS strchrnul.$ac_objext"
24363
24364 :
24365 fi
24366
24367
24368
24369
24370
24371 GNULIB_STRCHRNUL=1
24372
24373
24374
24375
24376
24377 $as_echo "#define GNULIB_TEST_STRCHRNUL 1" >>confdefs.h
24378
24379
24380
24381
24382
24383
24384
24385 :
24386
24387
24388
24389
24390
24391 if test $ac_cv_func_strdup = yes; then
24392 if test $gl_cv_func_malloc_posix != yes; then
24393 REPLACE_STRDUP=1
24394 fi
24395 fi
24396
24397 :
24398
24399
24400
24401
24402
24403 if test $ac_cv_have_decl_strdup = no; then
24404 HAVE_DECL_STRDUP=0
24405 fi
24406
24407 if test $ac_cv_func_strdup = no || test $REPLACE_STRDUP = 1; then
24408
24409
24410
24411
24412
24413
24414
24415
24416 gl_LIBOBJS="$gl_LIBOBJS strdup.$ac_objext"
24417
24418 :
24419 fi
24420
24421
24422
24423
24424
24425 GNULIB_STRDUP=1
24426
24427
24428
24429
24430
24431 $as_echo "#define GNULIB_TEST_STRDUP 1" >>confdefs.h
24432
24433
24434
24435
24436
24437
24438
24439
24440 if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
24441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
24442 $as_echo_n "checking for working strerror function... " >&6; }
24443 if ${gl_cv_func_working_strerror+:} false; then :
24444 $as_echo_n "(cached) " >&6
24445 else
24446 if test "$cross_compiling" = yes; then :
24447 case "$host_os" in
24448 # Guess yes on glibc systems.
24449 *-gnu*) gl_cv_func_working_strerror="guessing yes" ;;
24450 # If we don't know, assume the worst.
24451 *) gl_cv_func_working_strerror="guessing no" ;;
24452 esac
24453
24454 else
24455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24456 /* end confdefs.h. */
24457 #include <string.h>
24458
24459 int
24460 main ()
24461 {
24462 if (!*strerror (-2)) return 1;
24463 ;
24464 return 0;
24465 }
24466 _ACEOF
24467 if ac_fn_c_try_run "$LINENO"; then :
24468 gl_cv_func_working_strerror=yes
24469 else
24470 gl_cv_func_working_strerror=no
24471 fi
24472 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24473 conftest.$ac_objext conftest.beam conftest.$ac_ext
24474 fi
24475
24476
24477 fi
24478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
24479 $as_echo "$gl_cv_func_working_strerror" >&6; }
24480 case "$gl_cv_func_working_strerror" in
24481 *yes) ;;
24482 *)
24483 REPLACE_STRERROR=1
24484 ;;
24485 esac
24486
24487 else
24488 REPLACE_STRERROR=1
24489 fi
24490
24491 if test $REPLACE_STRERROR = 1; then
24492
24493
24494
24495
24496
24497
24498
24499
24500 gl_LIBOBJS="$gl_LIBOBJS strerror.$ac_objext"
24501
24502 fi
24503
24504
24505 cat >>confdefs.h <<_ACEOF
24506 #define GNULIB_STRERROR 1
24507 _ACEOF
24508
24509
24510
24511
24512
24513
24514
24515 GNULIB_STRERROR=1
24516
24517
24518
24519
24520
24521 $as_echo "#define GNULIB_TEST_STRERROR 1" >>confdefs.h
24522
24523
24524
24525
24526
24527 if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then
24528
24529
24530
24531
24532
24533
24534
24535
24536 gl_LIBOBJS="$gl_LIBOBJS strerror-override.$ac_objext"
24537
24538
24539
24540
24541
24542 :
24543
24544
24545
24546
24547
24548 if test $ac_cv_header_sys_socket_h != yes; then
24549 for ac_header in winsock2.h
24550 do :
24551 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
24552 if test "x$ac_cv_header_winsock2_h" = xyes; then :
24553 cat >>confdefs.h <<_ACEOF
24554 #define HAVE_WINSOCK2_H 1
24555 _ACEOF
24556
24557 fi
24558
24559 done
24560
24561 fi
24562 if test "$ac_cv_header_winsock2_h" = yes; then
24563 HAVE_WINSOCK2_H=1
24564 UNISTD_H_HAVE_WINSOCK2_H=1
24565 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
24566 else
24567 HAVE_WINSOCK2_H=0
24568 fi
24569
24570
24571 fi
24572
24573
24574
24575
24576
24577 if test $REPLACE_STRSTR = 0; then
24578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works in linear time" >&5
24579 $as_echo_n "checking whether strstr works in linear time... " >&6; }
24580 if ${gl_cv_func_strstr_linear+:} false; then :
24581 $as_echo_n "(cached) " >&6
24582 else
24583 if test "$cross_compiling" = yes; then :
24584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24585 /* end confdefs.h. */
24586
24587 #include <features.h>
24588 #ifdef __GNU_LIBRARY__
24589 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
24590 && !(defined __i386__ || defined __x86_64__) \
24591 && !defined __UCLIBC__
24592 Lucky user
24593 #endif
24594 #endif
24595 #ifdef __CYGWIN__
24596 #include <cygwin/version.h>
24597 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
24598 Lucky user
24599 #endif
24600 #endif
24601
24602 _ACEOF
24603 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24604 $EGREP "Lucky user" >/dev/null 2>&1; then :
24605 gl_cv_func_strstr_linear="guessing yes"
24606 else
24607 gl_cv_func_strstr_linear="guessing no"
24608 fi
24609 rm -f conftest*
24610
24611
24612 else
24613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24614 /* end confdefs.h. */
24615
24616 #ifdef __MVS__
24617 /* z/OS does not deliver signals while strstr() is running (thanks to
24618 restrictions on its LE runtime), which prevents us from limiting the
24619 running time of this test. */
24620 # error "This test does not work properly on z/OS"
24621 #endif
24622 #include <signal.h> /* for signal */
24623 #include <string.h> /* for strstr */
24624 #include <stdlib.h> /* for malloc */
24625 #include <unistd.h> /* for alarm */
24626 static void quit (int sig) { _exit (sig + 128); }
24627
24628 int
24629 main ()
24630 {
24631
24632 int result = 0;
24633 size_t m = 1000000;
24634 char *haystack = (char *) malloc (2 * m + 2);
24635 char *needle = (char *) malloc (m + 2);
24636 /* Failure to compile this test due to missing alarm is okay,
24637 since all such platforms (mingw) also have quadratic strstr. */
24638 signal (SIGALRM, quit);
24639 alarm (5);
24640 /* Check for quadratic performance. */
24641 if (haystack && needle)
24642 {
24643 memset (haystack, 'A', 2 * m);
24644 haystack[2 * m] = 'B';
24645 haystack[2 * m + 1] = 0;
24646 memset (needle, 'A', m);
24647 needle[m] = 'B';
24648 needle[m + 1] = 0;
24649 if (!strstr (haystack, needle))
24650 result |= 1;
24651 }
24652 return result;
24653
24654 ;
24655 return 0;
24656 }
24657 _ACEOF
24658 if ac_fn_c_try_run "$LINENO"; then :
24659 gl_cv_func_strstr_linear=yes
24660 else
24661 gl_cv_func_strstr_linear=no
24662 fi
24663 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24664 conftest.$ac_objext conftest.beam conftest.$ac_ext
24665 fi
24666
24667
24668 fi
24669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_linear" >&5
24670 $as_echo "$gl_cv_func_strstr_linear" >&6; }
24671 case "$gl_cv_func_strstr_linear" in
24672 *yes) ;;
24673 *)
24674 REPLACE_STRSTR=1
24675 ;;
24676 esac
24677 fi
24678
24679 if test $REPLACE_STRSTR = 1; then
24680
24681
24682
24683
24684
24685
24686
24687
24688 gl_LIBOBJS="$gl_LIBOBJS strstr.$ac_objext"
24689
24690 fi
24691
24692
24693
24694 if test "$gl_cv_func_memchr_works" != yes; then
24695 REPLACE_STRSTR=1
24696 else
24697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
24698 $as_echo_n "checking whether strstr works... " >&6; }
24699 if ${gl_cv_func_strstr_works_always+:} false; then :
24700 $as_echo_n "(cached) " >&6
24701 else
24702 if test "$cross_compiling" = yes; then :
24703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24704 /* end confdefs.h. */
24705
24706 #ifdef __GNU_LIBRARY__
24707 #include <features.h>
24708 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
24709 || defined __UCLIBC__
24710 Lucky user
24711 #endif
24712 #elif defined __CYGWIN__
24713 #include <cygwin/version.h>
24714 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
24715 Lucky user
24716 #endif
24717 #else
24718 Lucky user
24719 #endif
24720
24721 _ACEOF
24722 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24723 $EGREP "Lucky user" >/dev/null 2>&1; then :
24724 gl_cv_func_strstr_works_always="guessing yes"
24725 else
24726 gl_cv_func_strstr_works_always="guessing no"
24727 fi
24728 rm -f conftest*
24729
24730
24731 else
24732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24733 /* end confdefs.h. */
24734
24735 #include <string.h> /* for strstr */
24736 #define P "_EF_BF_BD"
24737 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
24738 #define NEEDLE P P P P P
24739
24740 int
24741 main ()
24742 {
24743 return !!strstr (HAYSTACK, NEEDLE);
24744
24745 ;
24746 return 0;
24747 }
24748 _ACEOF
24749 if ac_fn_c_try_run "$LINENO"; then :
24750 gl_cv_func_strstr_works_always=yes
24751 else
24752 gl_cv_func_strstr_works_always=no
24753 fi
24754 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24755 conftest.$ac_objext conftest.beam conftest.$ac_ext
24756 fi
24757
24758
24759 fi
24760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
24761 $as_echo "$gl_cv_func_strstr_works_always" >&6; }
24762 case "$gl_cv_func_strstr_works_always" in
24763 *yes) ;;
24764 *)
24765 REPLACE_STRSTR=1
24766 ;;
24767 esac
24768 fi
24769
24770 if test $REPLACE_STRSTR = 1; then
24771
24772
24773
24774
24775
24776
24777
24778
24779 gl_LIBOBJS="$gl_LIBOBJS strstr.$ac_objext"
24780
24781 fi
24782
24783
24784
24785
24786
24787 GNULIB_STRSTR=1
24788
24789
24790
24791
24792
24793 $as_echo "#define GNULIB_TEST_STRSTR 1" >>confdefs.h
24794
24795
24796
24797
24798
24799
24800
24801 for ac_func in strtok_r
24802 do :
24803 ac_fn_c_check_func "$LINENO" "strtok_r" "ac_cv_func_strtok_r"
24804 if test "x$ac_cv_func_strtok_r" = xyes; then :
24805 cat >>confdefs.h <<_ACEOF
24806 #define HAVE_STRTOK_R 1
24807 _ACEOF
24808
24809 fi
24810 done
24811
24812 if test $ac_cv_func_strtok_r = yes; then
24813 HAVE_STRTOK_R=1
24814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtok_r works" >&5
24815 $as_echo_n "checking whether strtok_r works... " >&6; }
24816 if ${gl_cv_func_strtok_r_works+:} false; then :
24817 $as_echo_n "(cached) " >&6
24818 else
24819 if test "$cross_compiling" = yes; then :
24820
24821 case "$host_os" in
24822 # Guess no on glibc systems.
24823 *-gnu*) gl_cv_func_strtok_r_works="guessing no";;
24824 *) gl_cv_func_strtok_r_works="guessing yes";;
24825 esac
24826
24827 else
24828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24829 /* end confdefs.h. */
24830
24831 #ifndef __OPTIMIZE__
24832 # define __OPTIMIZE__ 1
24833 #endif
24834 #undef __OPTIMIZE_SIZE__
24835 #undef __NO_INLINE__
24836 #include <stdlib.h>
24837 #include <string.h>
24838
24839 int
24840 main ()
24841 {
24842 static const char dummy[] = "\177\01a";
24843 char delimiters[] = "xxxxxxxx";
24844 char *save_ptr = (char *) dummy;
24845 strtok_r (delimiters, "x", &save_ptr);
24846 strtok_r (NULL, "x", &save_ptr);
24847 return 0;
24848
24849 ;
24850 return 0;
24851 }
24852
24853 _ACEOF
24854 if ac_fn_c_try_run "$LINENO"; then :
24855 gl_cv_func_strtok_r_works=yes
24856 else
24857 gl_cv_func_strtok_r_works=no
24858 fi
24859 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24860 conftest.$ac_objext conftest.beam conftest.$ac_ext
24861 fi
24862
24863
24864 fi
24865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtok_r_works" >&5
24866 $as_echo "$gl_cv_func_strtok_r_works" >&6; }
24867 case "$gl_cv_func_strtok_r_works" in
24868 *no)
24869 UNDEFINE_STRTOK_R=1
24870 ;;
24871 esac
24872 else
24873 HAVE_STRTOK_R=0
24874 fi
24875
24876 :
24877
24878
24879
24880
24881
24882 if test $ac_cv_have_decl_strtok_r = no; then
24883 HAVE_DECL_STRTOK_R=0
24884 fi
24885
24886 if test $HAVE_STRTOK_R = 0 || test $REPLACE_STRTOK_R = 1; then
24887
24888
24889
24890
24891
24892
24893
24894
24895 gl_LIBOBJS="$gl_LIBOBJS strtok_r.$ac_objext"
24896
24897
24898 :
24899
24900 fi
24901
24902
24903
24904
24905
24906 GNULIB_STRTOK_R=1
24907
24908
24909
24910
24911
24912 $as_echo "#define GNULIB_TEST_STRTOK_R 1" >>confdefs.h
24913
24914
24915
24916
24917
24918
24919
24920
24921
24922
24923
24924
24925
24926
24927
24928
24929 :
24930
24931
24932
24933
24934
24935
24936
24937
24938 if test $gl_cv_have_include_next = yes; then
24939 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
24940 else
24941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
24942 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
24943 if ${gl_cv_next_sys_stat_h+:} false; then :
24944 $as_echo_n "(cached) " >&6
24945 else
24946
24947 if test $ac_cv_header_sys_stat_h = yes; then
24948
24949
24950
24951
24952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24953 /* end confdefs.h. */
24954 #include <sys/stat.h>
24955 _ACEOF
24956 case "$host_os" in
24957 aix*) gl_absname_cpp="$ac_cpp -C" ;;
24958 *) gl_absname_cpp="$ac_cpp" ;;
24959 esac
24960
24961 case "$host_os" in
24962 mingw*)
24963 gl_dirsep_regex='[/\\]'
24964 ;;
24965 *)
24966 gl_dirsep_regex='\/'
24967 ;;
24968 esac
24969 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24970 gl_header_literal_regex=`echo 'sys/stat.h' \
24971 | sed -e "$gl_make_literal_regex_sed"`
24972 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24973 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24974 s|^/[^/]|//&|
24975 p
24976 q
24977 }'
24978
24979 gl_cv_absolute_sys_stat_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24980 sed -n "$gl_absolute_header_sed"`
24981
24982 gl_header=$gl_cv_absolute_sys_stat_h
24983 gl_cv_next_sys_stat_h='"'$gl_header'"'
24984 else
24985 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
24986 fi
24987
24988
24989 fi
24990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
24991 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
24992 fi
24993 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
24994
24995 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24996 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24997 gl_next_as_first_directive='<'sys/stat.h'>'
24998 else
24999 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25000 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
25001 fi
25002 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
25003
25004
25005
25006
25007
25008
25009
25010
25011
25012
25013
25014 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
25015
25016 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
25017
25018 fi
25019
25020 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
25021 #include <sys/stat.h>
25022 "
25023 if test "x$ac_cv_type_nlink_t" = xyes; then :
25024
25025 else
25026
25027 $as_echo "#define nlink_t int" >>confdefs.h
25028
25029 fi
25030
25031
25032
25033 for gl_func in fchmodat fstat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat mknod mknodat stat utimensat; do
25034 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
25035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
25036 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
25037 if eval \${$as_gl_Symbol+:} false; then :
25038 $as_echo_n "(cached) " >&6
25039 else
25040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25041 /* end confdefs.h. */
25042 #include <sys/stat.h>
25043
25044 int
25045 main ()
25046 {
25047 #undef $gl_func
25048 (void) $gl_func;
25049 ;
25050 return 0;
25051 }
25052 _ACEOF
25053 if ac_fn_c_try_compile "$LINENO"; then :
25054 eval "$as_gl_Symbol=yes"
25055 else
25056 eval "$as_gl_Symbol=no"
25057 fi
25058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25059 fi
25060 eval ac_res=\$$as_gl_Symbol
25061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25062 $as_echo "$ac_res" >&6; }
25063 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
25064 cat >>confdefs.h <<_ACEOF
25065 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
25066 _ACEOF
25067
25068 eval ac_cv_have_decl_$gl_func=yes
25069 fi
25070 done
25071
25072
25073
25074
25075
25076
25077
25078
25079
25080
25081
25082
25083
25084
25085
25086
25087
25088 :
25089
25090
25091
25092
25093
25094
25095
25096
25097 if test $gl_cv_have_include_next = yes; then
25098 gl_cv_next_sys_uio_h='<'sys/uio.h'>'
25099 else
25100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/uio.h>" >&5
25101 $as_echo_n "checking absolute name of <sys/uio.h>... " >&6; }
25102 if ${gl_cv_next_sys_uio_h+:} false; then :
25103 $as_echo_n "(cached) " >&6
25104 else
25105
25106 if test $ac_cv_header_sys_uio_h = yes; then
25107
25108
25109
25110
25111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25112 /* end confdefs.h. */
25113 #include <sys/uio.h>
25114 _ACEOF
25115 case "$host_os" in
25116 aix*) gl_absname_cpp="$ac_cpp -C" ;;
25117 *) gl_absname_cpp="$ac_cpp" ;;
25118 esac
25119
25120 case "$host_os" in
25121 mingw*)
25122 gl_dirsep_regex='[/\\]'
25123 ;;
25124 *)
25125 gl_dirsep_regex='\/'
25126 ;;
25127 esac
25128 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
25129 gl_header_literal_regex=`echo 'sys/uio.h' \
25130 | sed -e "$gl_make_literal_regex_sed"`
25131 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25132 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25133 s|^/[^/]|//&|
25134 p
25135 q
25136 }'
25137
25138 gl_cv_absolute_sys_uio_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25139 sed -n "$gl_absolute_header_sed"`
25140
25141 gl_header=$gl_cv_absolute_sys_uio_h
25142 gl_cv_next_sys_uio_h='"'$gl_header'"'
25143 else
25144 gl_cv_next_sys_uio_h='<'sys/uio.h'>'
25145 fi
25146
25147
25148 fi
25149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_uio_h" >&5
25150 $as_echo "$gl_cv_next_sys_uio_h" >&6; }
25151 fi
25152 NEXT_SYS_UIO_H=$gl_cv_next_sys_uio_h
25153
25154 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25155 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25156 gl_next_as_first_directive='<'sys/uio.h'>'
25157 else
25158 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25159 gl_next_as_first_directive=$gl_cv_next_sys_uio_h
25160 fi
25161 NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H=$gl_next_as_first_directive
25162
25163
25164
25165
25166 if test $ac_cv_header_sys_uio_h = yes; then
25167 HAVE_SYS_UIO_H=1
25168 else
25169 HAVE_SYS_UIO_H=0
25170 fi
25171
25172
25173
25174
25175
25176 :
25177
25178
25179
25180
25181
25182
25183
25184
25185
25186
25187
25188
25189
25190
25191 :
25192
25193
25194
25195
25196
25197
25198
25199
25200 if test $gl_cv_have_include_next = yes; then
25201 gl_cv_next_unistd_h='<'unistd.h'>'
25202 else
25203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
25204 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
25205 if ${gl_cv_next_unistd_h+:} false; then :
25206 $as_echo_n "(cached) " >&6
25207 else
25208
25209 if test $ac_cv_header_unistd_h = yes; then
25210
25211
25212
25213
25214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25215 /* end confdefs.h. */
25216 #include <unistd.h>
25217 _ACEOF
25218 case "$host_os" in
25219 aix*) gl_absname_cpp="$ac_cpp -C" ;;
25220 *) gl_absname_cpp="$ac_cpp" ;;
25221 esac
25222
25223 case "$host_os" in
25224 mingw*)
25225 gl_dirsep_regex='[/\\]'
25226 ;;
25227 *)
25228 gl_dirsep_regex='\/'
25229 ;;
25230 esac
25231 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
25232 gl_header_literal_regex=`echo 'unistd.h' \
25233 | sed -e "$gl_make_literal_regex_sed"`
25234 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25235 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25236 s|^/[^/]|//&|
25237 p
25238 q
25239 }'
25240
25241 gl_cv_absolute_unistd_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25242 sed -n "$gl_absolute_header_sed"`
25243
25244 gl_header=$gl_cv_absolute_unistd_h
25245 gl_cv_next_unistd_h='"'$gl_header'"'
25246 else
25247 gl_cv_next_unistd_h='<'unistd.h'>'
25248 fi
25249
25250
25251 fi
25252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
25253 $as_echo "$gl_cv_next_unistd_h" >&6; }
25254 fi
25255 NEXT_UNISTD_H=$gl_cv_next_unistd_h
25256
25257 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25258 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25259 gl_next_as_first_directive='<'unistd.h'>'
25260 else
25261 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25262 gl_next_as_first_directive=$gl_cv_next_unistd_h
25263 fi
25264 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
25265
25266
25267
25268
25269 if test $ac_cv_header_unistd_h = yes; then
25270 HAVE_UNISTD_H=1
25271 else
25272 HAVE_UNISTD_H=0
25273 fi
25274
25275
25276
25277
25278
25279
25280
25281 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
25282 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
25283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
25284 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
25285 if eval \${$as_gl_Symbol+:} false; then :
25286 $as_echo_n "(cached) " >&6
25287 else
25288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25289 /* end confdefs.h. */
25290
25291 #if HAVE_UNISTD_H
25292 # include <unistd.h>
25293 #endif
25294 /* Some systems declare various items in the wrong headers. */
25295 #if !(defined __GLIBC__ && !defined __UCLIBC__)
25296 # include <fcntl.h>
25297 # include <stdio.h>
25298 # include <stdlib.h>
25299 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
25300 # include <io.h>
25301 # endif
25302 #endif
25303
25304 int
25305 main ()
25306 {
25307 #undef $gl_func
25308 (void) $gl_func;
25309 ;
25310 return 0;
25311 }
25312 _ACEOF
25313 if ac_fn_c_try_compile "$LINENO"; then :
25314 eval "$as_gl_Symbol=yes"
25315 else
25316 eval "$as_gl_Symbol=no"
25317 fi
25318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25319 fi
25320 eval ac_res=\$$as_gl_Symbol
25321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25322 $as_echo "$ac_res" >&6; }
25323 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
25324 cat >>confdefs.h <<_ACEOF
25325 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
25326 _ACEOF
25327
25328 eval ac_cv_have_decl_$gl_func=yes
25329 fi
25330 done
25331
25332
25333
25334
25335 :
25336
25337
25338
25339
25340
25341
25342
25343
25344
25345 :
25346
25347
25348
25349
25350
25351 if test $ac_cv_have_decl_unsetenv = no; then
25352 HAVE_DECL_UNSETENV=0
25353 fi
25354 for ac_func in unsetenv
25355 do :
25356 ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
25357 if test "x$ac_cv_func_unsetenv" = xyes; then :
25358 cat >>confdefs.h <<_ACEOF
25359 #define HAVE_UNSETENV 1
25360 _ACEOF
25361
25362 fi
25363 done
25364
25365 if test $ac_cv_func_unsetenv = no; then
25366 HAVE_UNSETENV=0
25367 else
25368 HAVE_UNSETENV=1
25369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsetenv() return type" >&5
25370 $as_echo_n "checking for unsetenv() return type... " >&6; }
25371 if ${gt_cv_func_unsetenv_ret+:} false; then :
25372 $as_echo_n "(cached) " >&6
25373 else
25374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25375 /* end confdefs.h. */
25376
25377 #undef _BSD
25378 #define _BSD 1 /* unhide unsetenv declaration in OSF/1 5.1 <stdlib.h> */
25379 #include <stdlib.h>
25380 extern
25381 #ifdef __cplusplus
25382 "C"
25383 #endif
25384 int unsetenv (const char *name);
25385
25386 int
25387 main ()
25388 {
25389
25390 ;
25391 return 0;
25392 }
25393 _ACEOF
25394 if ac_fn_c_try_compile "$LINENO"; then :
25395 gt_cv_func_unsetenv_ret='int'
25396 else
25397 gt_cv_func_unsetenv_ret='void'
25398 fi
25399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25400 fi
25401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_unsetenv_ret" >&5
25402 $as_echo "$gt_cv_func_unsetenv_ret" >&6; }
25403 if test $gt_cv_func_unsetenv_ret = 'void'; then
25404
25405 $as_echo "#define VOID_UNSETENV 1" >>confdefs.h
25406
25407 REPLACE_UNSETENV=1
25408 fi
25409
25410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv obeys POSIX" >&5
25411 $as_echo_n "checking whether unsetenv obeys POSIX... " >&6; }
25412 if ${gl_cv_func_unsetenv_works+:} false; then :
25413 $as_echo_n "(cached) " >&6
25414 else
25415 if test "$cross_compiling" = yes; then :
25416 case "$host_os" in
25417 # Guess yes on glibc systems.
25418 *-gnu*) gl_cv_func_unsetenv_works="guessing yes" ;;
25419 # If we don't know, assume the worst.
25420 *) gl_cv_func_unsetenv_works="guessing no" ;;
25421 esac
25422
25423 else
25424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25425 /* end confdefs.h. */
25426
25427 #include <stdlib.h>
25428 #include <errno.h>
25429 extern char **environ;
25430
25431 int
25432 main ()
25433 {
25434
25435 char entry1[] = "a=1";
25436 char entry2[] = "b=2";
25437 char *env[] = { entry1, entry2, NULL };
25438 if (putenv ((char *) "a=1")) return 1;
25439 if (putenv (entry2)) return 2;
25440 entry2[0] = 'a';
25441 unsetenv ("a");
25442 if (getenv ("a")) return 3;
25443 if (!unsetenv ("") || errno != EINVAL) return 4;
25444 entry2[0] = 'b';
25445 environ = env;
25446 if (!getenv ("a")) return 5;
25447 entry2[0] = 'a';
25448 unsetenv ("a");
25449 if (getenv ("a")) return 6;
25450
25451 ;
25452 return 0;
25453 }
25454 _ACEOF
25455 if ac_fn_c_try_run "$LINENO"; then :
25456 gl_cv_func_unsetenv_works=yes
25457 else
25458 gl_cv_func_unsetenv_works=no
25459 fi
25460 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25461 conftest.$ac_objext conftest.beam conftest.$ac_ext
25462 fi
25463
25464 fi
25465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unsetenv_works" >&5
25466 $as_echo "$gl_cv_func_unsetenv_works" >&6; }
25467 case "$gl_cv_func_unsetenv_works" in
25468 *yes) ;;
25469 *)
25470 REPLACE_UNSETENV=1
25471 ;;
25472 esac
25473 fi
25474
25475 if test $HAVE_UNSETENV = 0 || test $REPLACE_UNSETENV = 1; then
25476
25477
25478
25479
25480
25481
25482
25483
25484 gl_LIBOBJS="$gl_LIBOBJS unsetenv.$ac_objext"
25485
25486
25487
25488
25489 :
25490
25491
25492
25493
25494
25495
25496 fi
25497
25498
25499
25500
25501
25502 GNULIB_UNSETENV=1
25503
25504
25505
25506
25507
25508 $as_echo "#define GNULIB_TEST_UNSETENV 1" >>confdefs.h
25509
25510
25511
25512
25513
25514
25515
25516
25517
25518
25519
25520
25521 :
25522
25523
25524
25525
25526
25527
25528
25529
25530 if test $gl_cv_have_include_next = yes; then
25531 gl_cv_next_wchar_h='<'wchar.h'>'
25532 else
25533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
25534 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
25535 if ${gl_cv_next_wchar_h+:} false; then :
25536 $as_echo_n "(cached) " >&6
25537 else
25538
25539 if test $ac_cv_header_wchar_h = yes; then
25540
25541
25542
25543
25544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25545 /* end confdefs.h. */
25546 #include <wchar.h>
25547 _ACEOF
25548 case "$host_os" in
25549 aix*) gl_absname_cpp="$ac_cpp -C" ;;
25550 *) gl_absname_cpp="$ac_cpp" ;;
25551 esac
25552
25553 case "$host_os" in
25554 mingw*)
25555 gl_dirsep_regex='[/\\]'
25556 ;;
25557 *)
25558 gl_dirsep_regex='\/'
25559 ;;
25560 esac
25561 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
25562 gl_header_literal_regex=`echo 'wchar.h' \
25563 | sed -e "$gl_make_literal_regex_sed"`
25564 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25565 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25566 s|^/[^/]|//&|
25567 p
25568 q
25569 }'
25570
25571 gl_cv_absolute_wchar_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25572 sed -n "$gl_absolute_header_sed"`
25573
25574 gl_header=$gl_cv_absolute_wchar_h
25575 gl_cv_next_wchar_h='"'$gl_header'"'
25576 else
25577 gl_cv_next_wchar_h='<'wchar.h'>'
25578 fi
25579
25580
25581 fi
25582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
25583 $as_echo "$gl_cv_next_wchar_h" >&6; }
25584 fi
25585 NEXT_WCHAR_H=$gl_cv_next_wchar_h
25586
25587 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25588 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25589 gl_next_as_first_directive='<'wchar.h'>'
25590 else
25591 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25592 gl_next_as_first_directive=$gl_cv_next_wchar_h
25593 fi
25594 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
25595
25596
25597
25598
25599 if test $ac_cv_header_wchar_h = yes; then
25600 HAVE_WCHAR_H=1
25601 else
25602 HAVE_WCHAR_H=0
25603 fi
25604
25605
25606
25607
25608
25609 if test $gt_cv_c_wint_t = yes; then
25610 HAVE_WINT_T=1
25611 else
25612 HAVE_WINT_T=0
25613 fi
25614
25615
25616
25617 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
25618 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
25619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
25620 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
25621 if eval \${$as_gl_Symbol+:} false; then :
25622 $as_echo_n "(cached) " >&6
25623 else
25624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25625 /* end confdefs.h. */
25626
25627 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
25628 <wchar.h>.
25629 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
25630 included before <wchar.h>. */
25631 #if !(defined __GLIBC__ && !defined __UCLIBC__)
25632 # include <stddef.h>
25633 # include <stdio.h>
25634 # include <time.h>
25635 #endif
25636 #include <wchar.h>
25637
25638 int
25639 main ()
25640 {
25641 #undef $gl_func
25642 (void) $gl_func;
25643 ;
25644 return 0;
25645 }
25646 _ACEOF
25647 if ac_fn_c_try_compile "$LINENO"; then :
25648 eval "$as_gl_Symbol=yes"
25649 else
25650 eval "$as_gl_Symbol=no"
25651 fi
25652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25653 fi
25654 eval ac_res=\$$as_gl_Symbol
25655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25656 $as_echo "$ac_res" >&6; }
25657 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
25658 cat >>confdefs.h <<_ACEOF
25659 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
25660 _ACEOF
25661
25662 eval ac_cv_have_decl_$gl_func=yes
25663 fi
25664 done
25665
25666
25667
25668
25669
25670
25671
25672 :
25673
25674
25675
25676
25677
25678 if test $ac_cv_func_iswcntrl = yes; then
25679 HAVE_ISWCNTRL=1
25680 else
25681 HAVE_ISWCNTRL=0
25682 fi
25683
25684
25685
25686 if test $gt_cv_c_wint_t = yes; then
25687 HAVE_WINT_T=1
25688 else
25689 HAVE_WINT_T=0
25690 fi
25691
25692
25693
25694
25695
25696
25697
25698
25699 :
25700
25701
25702
25703
25704
25705
25706
25707
25708 if test $gl_cv_have_include_next = yes; then
25709 gl_cv_next_wctype_h='<'wctype.h'>'
25710 else
25711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
25712 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
25713 if ${gl_cv_next_wctype_h+:} false; then :
25714 $as_echo_n "(cached) " >&6
25715 else
25716
25717 if test $ac_cv_header_wctype_h = yes; then
25718
25719
25720
25721
25722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25723 /* end confdefs.h. */
25724 #include <wctype.h>
25725 _ACEOF
25726 case "$host_os" in
25727 aix*) gl_absname_cpp="$ac_cpp -C" ;;
25728 *) gl_absname_cpp="$ac_cpp" ;;
25729 esac
25730
25731 case "$host_os" in
25732 mingw*)
25733 gl_dirsep_regex='[/\\]'
25734 ;;
25735 *)
25736 gl_dirsep_regex='\/'
25737 ;;
25738 esac
25739 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
25740 gl_header_literal_regex=`echo 'wctype.h' \
25741 | sed -e "$gl_make_literal_regex_sed"`
25742 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25743 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25744 s|^/[^/]|//&|
25745 p
25746 q
25747 }'
25748
25749 gl_cv_absolute_wctype_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25750 sed -n "$gl_absolute_header_sed"`
25751
25752 gl_header=$gl_cv_absolute_wctype_h
25753 gl_cv_next_wctype_h='"'$gl_header'"'
25754 else
25755 gl_cv_next_wctype_h='<'wctype.h'>'
25756 fi
25757
25758
25759 fi
25760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
25761 $as_echo "$gl_cv_next_wctype_h" >&6; }
25762 fi
25763 NEXT_WCTYPE_H=$gl_cv_next_wctype_h
25764
25765 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25766 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25767 gl_next_as_first_directive='<'wctype.h'>'
25768 else
25769 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25770 gl_next_as_first_directive=$gl_cv_next_wctype_h
25771 fi
25772 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
25773
25774
25775
25776
25777 if test $ac_cv_header_wctype_h = yes; then
25778 if test $ac_cv_func_iswcntrl = yes; then
25779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
25780 $as_echo_n "checking whether iswcntrl works... " >&6; }
25781 if ${gl_cv_func_iswcntrl_works+:} false; then :
25782 $as_echo_n "(cached) " >&6
25783 else
25784
25785 if test "$cross_compiling" = yes; then :
25786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25787 /* end confdefs.h. */
25788 #include <stdlib.h>
25789 #if __GNU_LIBRARY__ == 1
25790 Linux libc5 i18n is broken.
25791 #endif
25792 int
25793 main ()
25794 {
25795
25796 ;
25797 return 0;
25798 }
25799 _ACEOF
25800 if ac_fn_c_try_compile "$LINENO"; then :
25801 gl_cv_func_iswcntrl_works="guessing yes"
25802 else
25803 gl_cv_func_iswcntrl_works="guessing no"
25804 fi
25805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25806
25807 else
25808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25809 /* end confdefs.h. */
25810
25811 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
25812 included before <wchar.h>.
25813 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
25814 must be included before <wchar.h>. */
25815 #include <stddef.h>
25816 #include <stdio.h>
25817 #include <time.h>
25818 #include <wchar.h>
25819 #include <wctype.h>
25820 int main () { return iswprint ('x') == 0; }
25821
25822 _ACEOF
25823 if ac_fn_c_try_run "$LINENO"; then :
25824 gl_cv_func_iswcntrl_works=yes
25825 else
25826 gl_cv_func_iswcntrl_works=no
25827 fi
25828 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25829 conftest.$ac_objext conftest.beam conftest.$ac_ext
25830 fi
25831
25832
25833 fi
25834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
25835 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
25836 fi
25837 HAVE_WCTYPE_H=1
25838 else
25839 HAVE_WCTYPE_H=0
25840 fi
25841
25842
25843 case "$gl_cv_func_iswcntrl_works" in
25844 *yes) REPLACE_ISWCNTRL=0 ;;
25845 *) REPLACE_ISWCNTRL=1 ;;
25846 esac
25847
25848
25849 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
25850 :
25851 fi
25852
25853 if test $REPLACE_ISWCNTRL = 1; then
25854 REPLACE_TOWLOWER=1
25855 else
25856 for ac_func in towlower
25857 do :
25858 ac_fn_c_check_func "$LINENO" "towlower" "ac_cv_func_towlower"
25859 if test "x$ac_cv_func_towlower" = xyes; then :
25860 cat >>confdefs.h <<_ACEOF
25861 #define HAVE_TOWLOWER 1
25862 _ACEOF
25863
25864 fi
25865 done
25866
25867 if test $ac_cv_func_towlower = yes; then
25868 REPLACE_TOWLOWER=0
25869 else
25870 ac_fn_c_check_decl "$LINENO" "towlower" "ac_cv_have_decl_towlower" "/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
25871 included before <wchar.h>.
25872 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
25873 must be included before <wchar.h>. */
25874 #include <stddef.h>
25875 #include <stdio.h>
25876 #include <time.h>
25877 #include <wchar.h>
25878 #if HAVE_WCTYPE_H
25879 # include <wctype.h>
25880 #endif
25881
25882 "
25883 if test "x$ac_cv_have_decl_towlower" = xyes; then :
25884 ac_have_decl=1
25885 else
25886 ac_have_decl=0
25887 fi
25888
25889 cat >>confdefs.h <<_ACEOF
25890 #define HAVE_DECL_TOWLOWER $ac_have_decl
25891 _ACEOF
25892
25893 if test $ac_cv_have_decl_towlower = yes; then
25894 REPLACE_TOWLOWER=1
25895 else
25896 REPLACE_TOWLOWER=0
25897 fi
25898 fi
25899 fi
25900
25901
25902 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_TOWLOWER = 1; then
25903 :
25904 fi
25905
25906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
25907 $as_echo_n "checking for wctype_t... " >&6; }
25908 if ${gl_cv_type_wctype_t+:} false; then :
25909 $as_echo_n "(cached) " >&6
25910 else
25911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25912 /* end confdefs.h. */
25913 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
25914 included before <wchar.h>.
25915 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
25916 must be included before <wchar.h>. */
25917 #include <stddef.h>
25918 #include <stdio.h>
25919 #include <time.h>
25920 #include <wchar.h>
25921 #if HAVE_WCTYPE_H
25922 # include <wctype.h>
25923 #endif
25924 wctype_t a;
25925
25926 int
25927 main ()
25928 {
25929
25930 ;
25931 return 0;
25932 }
25933 _ACEOF
25934 if ac_fn_c_try_compile "$LINENO"; then :
25935 gl_cv_type_wctype_t=yes
25936 else
25937 gl_cv_type_wctype_t=no
25938 fi
25939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25940
25941 fi
25942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
25943 $as_echo "$gl_cv_type_wctype_t" >&6; }
25944 if test $gl_cv_type_wctype_t = no; then
25945 HAVE_WCTYPE_T=0
25946 fi
25947
25948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
25949 $as_echo_n "checking for wctrans_t... " >&6; }
25950 if ${gl_cv_type_wctrans_t+:} false; then :
25951 $as_echo_n "(cached) " >&6
25952 else
25953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25954 /* end confdefs.h. */
25955 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
25956 included before <wchar.h>.
25957 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
25958 must be included before <wchar.h>. */
25959 #include <stddef.h>
25960 #include <stdio.h>
25961 #include <time.h>
25962 #include <wchar.h>
25963 #include <wctype.h>
25964 wctrans_t a;
25965
25966 int
25967 main ()
25968 {
25969
25970 ;
25971 return 0;
25972 }
25973 _ACEOF
25974 if ac_fn_c_try_compile "$LINENO"; then :
25975 gl_cv_type_wctrans_t=yes
25976 else
25977 gl_cv_type_wctrans_t=no
25978 fi
25979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25980
25981 fi
25982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
25983 $as_echo "$gl_cv_type_wctrans_t" >&6; }
25984 if test $gl_cv_type_wctrans_t = no; then
25985 HAVE_WCTRANS_T=0
25986 fi
25987
25988
25989 for gl_func in wctype iswctype wctrans towctrans ; do
25990 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
25991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
25992 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
25993 if eval \${$as_gl_Symbol+:} false; then :
25994 $as_echo_n "(cached) " >&6
25995 else
25996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25997 /* end confdefs.h. */
25998
25999 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
26000 <wchar.h>.
26001 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
26002 included before <wchar.h>. */
26003 #if !(defined __GLIBC__ && !defined __UCLIBC__)
26004 # include <stddef.h>
26005 # include <stdio.h>
26006 # include <time.h>
26007 # include <wchar.h>
26008 #endif
26009 #include <wctype.h>
26010
26011 int
26012 main ()
26013 {
26014 #undef $gl_func
26015 (void) $gl_func;
26016 ;
26017 return 0;
26018 }
26019 _ACEOF
26020 if ac_fn_c_try_compile "$LINENO"; then :
26021 eval "$as_gl_Symbol=yes"
26022 else
26023 eval "$as_gl_Symbol=no"
26024 fi
26025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26026 fi
26027 eval ac_res=\$$as_gl_Symbol
26028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
26029 $as_echo "$ac_res" >&6; }
26030 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
26031 cat >>confdefs.h <<_ACEOF
26032 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
26033 _ACEOF
26034
26035 eval ac_cv_have_decl_$gl_func=yes
26036 fi
26037 done
26038
26039
26040 # End of code from modules
26041
26042
26043
26044
26045
26046
26047
26048
26049
26050 gltests_libdeps=
26051 gltests_ltlibdeps=
26052
26053
26054
26055
26056
26057
26058
26059
26060
26061 gl_source_base='tests'
26062 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
26063
26064 gl_module_indicator_condition=$gltests_WITNESS
26065
26066
26067
26068
26069
26070
26071
26072
26073
26074 LIBGNU_LIBDEPS="$gl_libdeps"
26075
26076 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
26077
26078
26079
26080 # We don't use automake, but gnulib does. This line lets us generate
26081 # its Makefile.in.
26082 am__api_version='1.15'
26083
26084 # Find a good install program. We prefer a C program (faster),
26085 # so one script is as good as another. But avoid the broken or
26086 # incompatible versions:
26087 # SysV /etc/install, /usr/sbin/install
26088 # SunOS /usr/etc/install
26089 # IRIX /sbin/install
26090 # AIX /bin/install
26091 # AmigaOS /C/install, which installs bootblocks on floppy discs
26092 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
26093 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
26094 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
26095 # OS/2's system install, which has a completely different semantic
26096 # ./install, which can be erroneously created by make from ./install.sh.
26097 # Reject install programs that cannot install multiple files.
26098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
26099 $as_echo_n "checking for a BSD-compatible install... " >&6; }
26100 if test -z "$INSTALL"; then
26101 if ${ac_cv_path_install+:} false; then :
26102 $as_echo_n "(cached) " >&6
26103 else
26104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26105 for as_dir in $PATH
26106 do
26107 IFS=$as_save_IFS
26108 test -z "$as_dir" && as_dir=.
26109 # Account for people who put trailing slashes in PATH elements.
26110 case $as_dir/ in #((
26111 ./ | .// | /[cC]/* | \
26112 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
26113 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
26114 /usr/ucb/* ) ;;
26115 *)
26116 # OSF1 and SCO ODT 3.0 have their own names for install.
26117 # Don't use installbsd from OSF since it installs stuff as root
26118 # by default.
26119 for ac_prog in ginstall scoinst install; do
26120 for ac_exec_ext in '' $ac_executable_extensions; do
26121 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
26122 if test $ac_prog = install &&
26123 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
26124 # AIX install. It has an incompatible calling convention.
26125 :
26126 elif test $ac_prog = install &&
26127 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
26128 # program-specific install script used by HP pwplus--don't use.
26129 :
26130 else
26131 rm -rf conftest.one conftest.two conftest.dir
26132 echo one > conftest.one
26133 echo two > conftest.two
26134 mkdir conftest.dir
26135 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
26136 test -s conftest.one && test -s conftest.two &&
26137 test -s conftest.dir/conftest.one &&
26138 test -s conftest.dir/conftest.two
26139 then
26140 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
26141 break 3
26142 fi
26143 fi
26144 fi
26145 done
26146 done
26147 ;;
26148 esac
26149
26150 done
26151 IFS=$as_save_IFS
26152
26153 rm -rf conftest.one conftest.two conftest.dir
26154
26155 fi
26156 if test "${ac_cv_path_install+set}" = set; then
26157 INSTALL=$ac_cv_path_install
26158 else
26159 # As a last resort, use the slow shell script. Don't cache a
26160 # value for INSTALL within a source directory, because that will
26161 # break other packages using the cache if that directory is
26162 # removed, or if the value is a relative name.
26163 INSTALL=$ac_install_sh
26164 fi
26165 fi
26166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
26167 $as_echo "$INSTALL" >&6; }
26168
26169 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
26170 # It thinks the first close brace ends the variable substitution.
26171 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
26172
26173 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
26174
26175 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
26176
26177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
26178 $as_echo_n "checking whether build environment is sane... " >&6; }
26179 # Reject unsafe characters in $srcdir or the absolute working directory
26180 # name. Accept space and tab only in the latter.
26181 am_lf='
26182 '
26183 case `pwd` in
26184 *[\\\"\#\$\&\'\`$am_lf]*)
26185 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
26186 esac
26187 case $srcdir in
26188 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
26189 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
26190 esac
26191
26192 # Do 'set' in a subshell so we don't clobber the current shell's
26193 # arguments. Must try -L first in case configure is actually a
26194 # symlink; some systems play weird games with the mod time of symlinks
26195 # (eg FreeBSD returns the mod time of the symlink's containing
26196 # directory).
26197 if (
26198 am_has_slept=no
26199 for am_try in 1 2; do
26200 echo "timestamp, slept: $am_has_slept" > conftest.file
26201 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
26202 if test "$*" = "X"; then
26203 # -L didn't work.
26204 set X `ls -t "$srcdir/configure" conftest.file`
26205 fi
26206 if test "$*" != "X $srcdir/configure conftest.file" \
26207 && test "$*" != "X conftest.file $srcdir/configure"; then
26208
26209 # If neither matched, then we have a broken ls. This can happen
26210 # if, for instance, CONFIG_SHELL is bash and it inherits a
26211 # broken ls alias from the environment. This has actually
26212 # happened. Such a system could not be considered "sane".
26213 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
26214 alias in your environment" "$LINENO" 5
26215 fi
26216 if test "$2" = conftest.file || test $am_try -eq 2; then
26217 break
26218 fi
26219 # Just in case.
26220 sleep 1
26221 am_has_slept=yes
26222 done
26223 test "$2" = conftest.file
26224 )
26225 then
26226 # Ok.
26227 :
26228 else
26229 as_fn_error $? "newly created file is older than distributed files!
26230 Check your system clock" "$LINENO" 5
26231 fi
26232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26233 $as_echo "yes" >&6; }
26234 # If we didn't sleep, we still need to ensure time stamps of config.status and
26235 # generated files are strictly newer.
26236 am_sleep_pid=
26237 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
26238 ( sleep 1 ) &
26239 am_sleep_pid=$!
26240 fi
26241
26242 rm -f conftest.file
26243
26244 test "$program_prefix" != NONE &&
26245 program_transform_name="s&^&$program_prefix&;$program_transform_name"
26246 # Use a double $ so make ignores it.
26247 test "$program_suffix" != NONE &&
26248 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
26249 # Double any \ or $.
26250 # By default was `s,x,x', remove it if useless.
26251 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
26252 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
26253
26254 if test x"${MISSING+set}" != xset; then
26255 case $am_aux_dir in
26256 *\ * | *\ *)
26257 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
26258 *)
26259 MISSING="\${SHELL} $am_aux_dir/missing" ;;
26260 esac
26261 fi
26262 # Use eval to expand $SHELL
26263 if eval "$MISSING --is-lightweight"; then
26264 am_missing_run="$MISSING "
26265 else
26266 am_missing_run=
26267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
26268 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
26269 fi
26270
26271 if test x"${install_sh+set}" != xset; then
26272 case $am_aux_dir in
26273 *\ * | *\ *)
26274 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
26275 *)
26276 install_sh="\${SHELL} $am_aux_dir/install-sh"
26277 esac
26278 fi
26279
26280 # Installed binaries are usually stripped using 'strip' when the user
26281 # run "make install-strip". However 'strip' might not be the right
26282 # tool to use in cross-compilation environments, therefore Automake
26283 # will honor the 'STRIP' environment variable to overrule this program.
26284 if test "$cross_compiling" != no; then
26285 if test -n "$ac_tool_prefix"; then
26286 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
26287 set dummy ${ac_tool_prefix}strip; ac_word=$2
26288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26289 $as_echo_n "checking for $ac_word... " >&6; }
26290 if ${ac_cv_prog_STRIP+:} false; then :
26291 $as_echo_n "(cached) " >&6
26292 else
26293 if test -n "$STRIP"; then
26294 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
26295 else
26296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26297 for as_dir in $PATH
26298 do
26299 IFS=$as_save_IFS
26300 test -z "$as_dir" && as_dir=.
26301 for ac_exec_ext in '' $ac_executable_extensions; do
26302 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26303 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
26304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26305 break 2
26306 fi
26307 done
26308 done
26309 IFS=$as_save_IFS
26310
26311 fi
26312 fi
26313 STRIP=$ac_cv_prog_STRIP
26314 if test -n "$STRIP"; then
26315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
26316 $as_echo "$STRIP" >&6; }
26317 else
26318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26319 $as_echo "no" >&6; }
26320 fi
26321
26322
26323 fi
26324 if test -z "$ac_cv_prog_STRIP"; then
26325 ac_ct_STRIP=$STRIP
26326 # Extract the first word of "strip", so it can be a program name with args.
26327 set dummy strip; ac_word=$2
26328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26329 $as_echo_n "checking for $ac_word... " >&6; }
26330 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
26331 $as_echo_n "(cached) " >&6
26332 else
26333 if test -n "$ac_ct_STRIP"; then
26334 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
26335 else
26336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26337 for as_dir in $PATH
26338 do
26339 IFS=$as_save_IFS
26340 test -z "$as_dir" && as_dir=.
26341 for ac_exec_ext in '' $ac_executable_extensions; do
26342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26343 ac_cv_prog_ac_ct_STRIP="strip"
26344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26345 break 2
26346 fi
26347 done
26348 done
26349 IFS=$as_save_IFS
26350
26351 fi
26352 fi
26353 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
26354 if test -n "$ac_ct_STRIP"; then
26355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
26356 $as_echo "$ac_ct_STRIP" >&6; }
26357 else
26358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26359 $as_echo "no" >&6; }
26360 fi
26361
26362 if test "x$ac_ct_STRIP" = x; then
26363 STRIP=":"
26364 else
26365 case $cross_compiling:$ac_tool_warned in
26366 yes:)
26367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26368 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26369 ac_tool_warned=yes ;;
26370 esac
26371 STRIP=$ac_ct_STRIP
26372 fi
26373 else
26374 STRIP="$ac_cv_prog_STRIP"
26375 fi
26376
26377 fi
26378 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
26379
26380 for ac_prog in gawk mawk nawk awk
26381 do
26382 # Extract the first word of "$ac_prog", so it can be a program name with args.
26383 set dummy $ac_prog; ac_word=$2
26384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26385 $as_echo_n "checking for $ac_word... " >&6; }
26386 if ${ac_cv_prog_AWK+:} false; then :
26387 $as_echo_n "(cached) " >&6
26388 else
26389 if test -n "$AWK"; then
26390 ac_cv_prog_AWK="$AWK" # Let the user override the test.
26391 else
26392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26393 for as_dir in $PATH
26394 do
26395 IFS=$as_save_IFS
26396 test -z "$as_dir" && as_dir=.
26397 for ac_exec_ext in '' $ac_executable_extensions; do
26398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26399 ac_cv_prog_AWK="$ac_prog"
26400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26401 break 2
26402 fi
26403 done
26404 done
26405 IFS=$as_save_IFS
26406
26407 fi
26408 fi
26409 AWK=$ac_cv_prog_AWK
26410 if test -n "$AWK"; then
26411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
26412 $as_echo "$AWK" >&6; }
26413 else
26414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26415 $as_echo "no" >&6; }
26416 fi
26417
26418
26419 test -n "$AWK" && break
26420 done
26421
26422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
26423 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
26424 set x ${MAKE-make}
26425 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
26426 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
26427 $as_echo_n "(cached) " >&6
26428 else
26429 cat >conftest.make <<\_ACEOF
26430 SHELL = /bin/sh
26431 all:
26432 @echo '@@@%%%=$(MAKE)=@@@%%%'
26433 _ACEOF
26434 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
26435 case `${MAKE-make} -f conftest.make 2>/dev/null` in
26436 *@@@%%%=?*=@@@%%%*)
26437 eval ac_cv_prog_make_${ac_make}_set=yes;;
26438 *)
26439 eval ac_cv_prog_make_${ac_make}_set=no;;
26440 esac
26441 rm -f conftest.make
26442 fi
26443 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
26444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26445 $as_echo "yes" >&6; }
26446 SET_MAKE=
26447 else
26448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26449 $as_echo "no" >&6; }
26450 SET_MAKE="MAKE=${MAKE-make}"
26451 fi
26452
26453 rm -rf .tst 2>/dev/null
26454 mkdir .tst 2>/dev/null
26455 if test -d .tst; then
26456 am__leading_dot=.
26457 else
26458 am__leading_dot=_
26459 fi
26460 rmdir .tst 2>/dev/null
26461
26462 DEPDIR="${am__leading_dot}deps"
26463
26464 ac_config_commands="$ac_config_commands depfiles"
26465
26466
26467 am_make=${MAKE-make}
26468 cat > confinc << 'END'
26469 am__doit:
26470 @echo this is the am__doit target
26471 .PHONY: am__doit
26472 END
26473 # If we don't find an include directive, just comment out the code.
26474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
26475 $as_echo_n "checking for style of include used by $am_make... " >&6; }
26476 am__include="#"
26477 am__quote=
26478 _am_result=none
26479 # First try GNU make style include.
26480 echo "include confinc" > confmf
26481 # Ignore all kinds of additional output from 'make'.
26482 case `$am_make -s -f confmf 2> /dev/null` in #(
26483 *the\ am__doit\ target*)
26484 am__include=include
26485 am__quote=
26486 _am_result=GNU
26487 ;;
26488 esac
26489 # Now try BSD make style include.
26490 if test "$am__include" = "#"; then
26491 echo '.include "confinc"' > confmf
26492 case `$am_make -s -f confmf 2> /dev/null` in #(
26493 *the\ am__doit\ target*)
26494 am__include=.include
26495 am__quote="\""
26496 _am_result=BSD
26497 ;;
26498 esac
26499 fi
26500
26501
26502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
26503 $as_echo "$_am_result" >&6; }
26504 rm -f confinc confmf
26505
26506 # Check whether --enable-dependency-tracking was given.
26507 if test "${enable_dependency_tracking+set}" = set; then :
26508 enableval=$enable_dependency_tracking;
26509 fi
26510
26511 if test "x$enable_dependency_tracking" != xno; then
26512 am_depcomp="$ac_aux_dir/depcomp"
26513 AMDEPBACKSLASH='\'
26514 am__nodep='_no'
26515 fi
26516 if test "x$enable_dependency_tracking" != xno; then
26517 AMDEP_TRUE=
26518 AMDEP_FALSE='#'
26519 else
26520 AMDEP_TRUE='#'
26521 AMDEP_FALSE=
26522 fi
26523
26524
26525 # Check whether --enable-silent-rules was given.
26526 if test "${enable_silent_rules+set}" = set; then :
26527 enableval=$enable_silent_rules;
26528 fi
26529
26530 case $enable_silent_rules in # (((
26531 yes) AM_DEFAULT_VERBOSITY=0;;
26532 no) AM_DEFAULT_VERBOSITY=1;;
26533 *) AM_DEFAULT_VERBOSITY=1;;
26534 esac
26535 am_make=${MAKE-make}
26536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
26537 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
26538 if ${am_cv_make_support_nested_variables+:} false; then :
26539 $as_echo_n "(cached) " >&6
26540 else
26541 if $as_echo 'TRUE=$(BAR$(V))
26542 BAR0=false
26543 BAR1=true
26544 V=1
26545 am__doit:
26546 @$(TRUE)
26547 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
26548 am_cv_make_support_nested_variables=yes
26549 else
26550 am_cv_make_support_nested_variables=no
26551 fi
26552 fi
26553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
26554 $as_echo "$am_cv_make_support_nested_variables" >&6; }
26555 if test $am_cv_make_support_nested_variables = yes; then
26556 AM_V='$(V)'
26557 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
26558 else
26559 AM_V=$AM_DEFAULT_VERBOSITY
26560 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
26561 fi
26562 AM_BACKSLASH='\'
26563
26564 if test "`cd $srcdir && pwd`" != "`pwd`"; then
26565 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
26566 # is not polluted with repeated "-I."
26567 am__isrc=' -I$(srcdir)'
26568 # test to see if srcdir already configured
26569 if test -f $srcdir/config.status; then
26570 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
26571 fi
26572 fi
26573
26574 # test whether we have cygpath
26575 if test -z "$CYGPATH_W"; then
26576 if (cygpath --version) >/dev/null 2>/dev/null; then
26577 CYGPATH_W='cygpath -w'
26578 else
26579 CYGPATH_W=echo
26580 fi
26581 fi
26582
26583
26584 # Define the identity of the package.
26585 PACKAGE='libgnu'
26586 VERSION='UNUSED-VERSION'
26587
26588
26589 # Some tools Automake needs.
26590
26591 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
26592
26593
26594 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
26595
26596
26597 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
26598
26599
26600 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
26601
26602
26603 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
26604
26605 # For better backward compatibility. To be removed once Automake 1.9.x
26606 # dies out for good. For more background, see:
26607 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
26608 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
26609 mkdir_p='$(MKDIR_P)'
26610
26611 # We need awk for the "check" target (and possibly the TAP driver). The
26612 # system "awk" is bad on some platforms.
26613 # Always define AMTAR for backward compatibility. Yes, it's still used
26614 # in the wild :-( We should find a proper way to deprecate it ...
26615 AMTAR='$${TAR-tar}'
26616
26617
26618 # We'll loop over all known methods to create a tar archive until one works.
26619 _am_tools='gnutar pax cpio none'
26620
26621 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
26622
26623
26624
26625
26626
26627 depcc="$CC" am_compiler_list=
26628
26629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
26630 $as_echo_n "checking dependency style of $depcc... " >&6; }
26631 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
26632 $as_echo_n "(cached) " >&6
26633 else
26634 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
26635 # We make a subdir and do the tests there. Otherwise we can end up
26636 # making bogus files that we don't know about and never remove. For
26637 # instance it was reported that on HP-UX the gcc test will end up
26638 # making a dummy file named 'D' -- because '-MD' means "put the output
26639 # in D".
26640 rm -rf conftest.dir
26641 mkdir conftest.dir
26642 # Copy depcomp to subdir because otherwise we won't find it if we're
26643 # using a relative directory.
26644 cp "$am_depcomp" conftest.dir
26645 cd conftest.dir
26646 # We will build objects and dependencies in a subdirectory because
26647 # it helps to detect inapplicable dependency modes. For instance
26648 # both Tru64's cc and ICC support -MD to output dependencies as a
26649 # side effect of compilation, but ICC will put the dependencies in
26650 # the current directory while Tru64 will put them in the object
26651 # directory.
26652 mkdir sub
26653
26654 am_cv_CC_dependencies_compiler_type=none
26655 if test "$am_compiler_list" = ""; then
26656 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
26657 fi
26658 am__universal=false
26659 case " $depcc " in #(
26660 *\ -arch\ *\ -arch\ *) am__universal=true ;;
26661 esac
26662
26663 for depmode in $am_compiler_list; do
26664 # Setup a source with many dependencies, because some compilers
26665 # like to wrap large dependency lists on column 80 (with \), and
26666 # we should not choose a depcomp mode which is confused by this.
26667 #
26668 # We need to recreate these files for each test, as the compiler may
26669 # overwrite some of them when testing with obscure command lines.
26670 # This happens at least with the AIX C compiler.
26671 : > sub/conftest.c
26672 for i in 1 2 3 4 5 6; do
26673 echo '#include "conftst'$i'.h"' >> sub/conftest.c
26674 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
26675 # Solaris 10 /bin/sh.
26676 echo '/* dummy */' > sub/conftst$i.h
26677 done
26678 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
26679
26680 # We check with '-c' and '-o' for the sake of the "dashmstdout"
26681 # mode. It turns out that the SunPro C++ compiler does not properly
26682 # handle '-M -o', and we need to detect this. Also, some Intel
26683 # versions had trouble with output in subdirs.
26684 am__obj=sub/conftest.${OBJEXT-o}
26685 am__minus_obj="-o $am__obj"
26686 case $depmode in
26687 gcc)
26688 # This depmode causes a compiler race in universal mode.
26689 test "$am__universal" = false || continue
26690 ;;
26691 nosideeffect)
26692 # After this tag, mechanisms are not by side-effect, so they'll
26693 # only be used when explicitly requested.
26694 if test "x$enable_dependency_tracking" = xyes; then
26695 continue
26696 else
26697 break
26698 fi
26699 ;;
26700 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
26701 # This compiler won't grok '-c -o', but also, the minuso test has
26702 # not run yet. These depmodes are late enough in the game, and
26703 # so weak that their functioning should not be impacted.
26704 am__obj=conftest.${OBJEXT-o}
26705 am__minus_obj=
26706 ;;
26707 none) break ;;
26708 esac
26709 if depmode=$depmode \
26710 source=sub/conftest.c object=$am__obj \
26711 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
26712 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
26713 >/dev/null 2>conftest.err &&
26714 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
26715 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
26716 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
26717 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
26718 # icc doesn't choke on unknown options, it will just issue warnings
26719 # or remarks (even with -Werror). So we grep stderr for any message
26720 # that says an option was ignored or not supported.
26721 # When given -MP, icc 7.0 and 7.1 complain thusly:
26722 # icc: Command line warning: ignoring option '-M'; no argument required
26723 # The diagnosis changed in icc 8.0:
26724 # icc: Command line remark: option '-MP' not supported
26725 if (grep 'ignoring option' conftest.err ||
26726 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
26727 am_cv_CC_dependencies_compiler_type=$depmode
26728 break
26729 fi
26730 fi
26731 done
26732
26733 cd ..
26734 rm -rf conftest.dir
26735 else
26736 am_cv_CC_dependencies_compiler_type=none
26737 fi
26738
26739 fi
26740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
26741 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
26742 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
26743
26744 if
26745 test "x$enable_dependency_tracking" != xno \
26746 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
26747 am__fastdepCC_TRUE=
26748 am__fastdepCC_FALSE='#'
26749 else
26750 am__fastdepCC_TRUE='#'
26751 am__fastdepCC_FALSE=
26752 fi
26753
26754
26755
26756 # POSIX will say in a future version that running "rm -f" with no argument
26757 # is OK; and we want to be able to make that assumption in our Makefile
26758 # recipes. So use an aggressive probe to check that the usage we want is
26759 # actually supported "in the wild" to an acceptable degree.
26760 # See automake bug#10828.
26761 # To make any issue more visible, cause the running configure to be aborted
26762 # by default if the 'rm' program in use doesn't match our expectations; the
26763 # user can still override this though.
26764 if rm -f && rm -fr && rm -rf; then : OK; else
26765 cat >&2 <<'END'
26766 Oops!
26767
26768 Your 'rm' program seems unable to run without file operands specified
26769 on the command line, even when the '-f' option is present. This is contrary
26770 to the behaviour of most rm programs out there, and not conforming with
26771 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
26772
26773 Please tell bug-automake@gnu.org about your system, including the value
26774 of your $PATH and any error possibly output before this message. This
26775 can help us improve future automake versions.
26776
26777 END
26778 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
26779 echo 'Configuration will proceed anyway, since you have set the' >&2
26780 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
26781 echo >&2
26782 else
26783 cat >&2 <<'END'
26784 Aborting the configuration process, to ensure you take notice of the issue.
26785
26786 You can download and install GNU coreutils to get an 'rm' implementation
26787 that behaves properly: <http://www.gnu.org/software/coreutils/>.
26788
26789 If you want to complete the configuration process using your problematic
26790 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
26791 to "yes", and re-run configure.
26792
26793 END
26794 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
26795 fi
26796 fi
26797
26798
26799 # Check whether --enable-silent-rules was given.
26800 if test "${enable_silent_rules+set}" = set; then :
26801 enableval=$enable_silent_rules;
26802 fi
26803
26804 case $enable_silent_rules in # (((
26805 yes) AM_DEFAULT_VERBOSITY=0;;
26806 no) AM_DEFAULT_VERBOSITY=1;;
26807 *) AM_DEFAULT_VERBOSITY=0;;
26808 esac
26809 am_make=${MAKE-make}
26810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
26811 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
26812 if ${am_cv_make_support_nested_variables+:} false; then :
26813 $as_echo_n "(cached) " >&6
26814 else
26815 if $as_echo 'TRUE=$(BAR$(V))
26816 BAR0=false
26817 BAR1=true
26818 V=1
26819 am__doit:
26820 @$(TRUE)
26821 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
26822 am_cv_make_support_nested_variables=yes
26823 else
26824 am_cv_make_support_nested_variables=no
26825 fi
26826 fi
26827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
26828 $as_echo "$am_cv_make_support_nested_variables" >&6; }
26829 if test $am_cv_make_support_nested_variables = yes; then
26830 AM_V='$(V)'
26831 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
26832 else
26833 AM_V=$AM_DEFAULT_VERBOSITY
26834 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
26835 fi
26836 AM_BACKSLASH='\'
26837
26838
26839 # --------------------- #
26840 # Checks for programs. #
26841 # --------------------- #
26842
26843
26844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
26845 $as_echo_n "checking whether ln -s works... " >&6; }
26846 LN_S=$as_ln_s
26847 if test "$LN_S" = "ln -s"; then
26848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26849 $as_echo "yes" >&6; }
26850 else
26851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
26852 $as_echo "no, using $LN_S" >&6; }
26853 fi
26854
26855 if test -n "$ac_tool_prefix"; then
26856 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
26857 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
26858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26859 $as_echo_n "checking for $ac_word... " >&6; }
26860 if ${ac_cv_prog_RANLIB+:} false; then :
26861 $as_echo_n "(cached) " >&6
26862 else
26863 if test -n "$RANLIB"; then
26864 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
26865 else
26866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26867 for as_dir in $PATH
26868 do
26869 IFS=$as_save_IFS
26870 test -z "$as_dir" && as_dir=.
26871 for ac_exec_ext in '' $ac_executable_extensions; do
26872 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26873 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
26874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26875 break 2
26876 fi
26877 done
26878 done
26879 IFS=$as_save_IFS
26880
26881 fi
26882 fi
26883 RANLIB=$ac_cv_prog_RANLIB
26884 if test -n "$RANLIB"; then
26885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
26886 $as_echo "$RANLIB" >&6; }
26887 else
26888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26889 $as_echo "no" >&6; }
26890 fi
26891
26892
26893 fi
26894 if test -z "$ac_cv_prog_RANLIB"; then
26895 ac_ct_RANLIB=$RANLIB
26896 # Extract the first word of "ranlib", so it can be a program name with args.
26897 set dummy ranlib; ac_word=$2
26898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26899 $as_echo_n "checking for $ac_word... " >&6; }
26900 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
26901 $as_echo_n "(cached) " >&6
26902 else
26903 if test -n "$ac_ct_RANLIB"; then
26904 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
26905 else
26906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26907 for as_dir in $PATH
26908 do
26909 IFS=$as_save_IFS
26910 test -z "$as_dir" && as_dir=.
26911 for ac_exec_ext in '' $ac_executable_extensions; do
26912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26913 ac_cv_prog_ac_ct_RANLIB="ranlib"
26914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26915 break 2
26916 fi
26917 done
26918 done
26919 IFS=$as_save_IFS
26920
26921 fi
26922 fi
26923 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
26924 if test -n "$ac_ct_RANLIB"; then
26925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
26926 $as_echo "$ac_ct_RANLIB" >&6; }
26927 else
26928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26929 $as_echo "no" >&6; }
26930 fi
26931
26932 if test "x$ac_ct_RANLIB" = x; then
26933 RANLIB=":"
26934 else
26935 case $cross_compiling:$ac_tool_warned in
26936 yes:)
26937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26938 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26939 ac_tool_warned=yes ;;
26940 esac
26941 RANLIB=$ac_ct_RANLIB
26942 fi
26943 else
26944 RANLIB="$ac_cv_prog_RANLIB"
26945 fi
26946
26947
26948 if test -n "$ac_tool_prefix"; then
26949 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
26950 set dummy ${ac_tool_prefix}ar; ac_word=$2
26951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26952 $as_echo_n "checking for $ac_word... " >&6; }
26953 if ${ac_cv_prog_AR+:} false; then :
26954 $as_echo_n "(cached) " >&6
26955 else
26956 if test -n "$AR"; then
26957 ac_cv_prog_AR="$AR" # Let the user override the test.
26958 else
26959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26960 for as_dir in $PATH
26961 do
26962 IFS=$as_save_IFS
26963 test -z "$as_dir" && as_dir=.
26964 for ac_exec_ext in '' $ac_executable_extensions; do
26965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26966 ac_cv_prog_AR="${ac_tool_prefix}ar"
26967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26968 break 2
26969 fi
26970 done
26971 done
26972 IFS=$as_save_IFS
26973
26974 fi
26975 fi
26976 AR=$ac_cv_prog_AR
26977 if test -n "$AR"; then
26978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
26979 $as_echo "$AR" >&6; }
26980 else
26981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26982 $as_echo "no" >&6; }
26983 fi
26984
26985
26986 fi
26987 if test -z "$ac_cv_prog_AR"; then
26988 ac_ct_AR=$AR
26989 # Extract the first word of "ar", so it can be a program name with args.
26990 set dummy ar; ac_word=$2
26991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26992 $as_echo_n "checking for $ac_word... " >&6; }
26993 if ${ac_cv_prog_ac_ct_AR+:} false; then :
26994 $as_echo_n "(cached) " >&6
26995 else
26996 if test -n "$ac_ct_AR"; then
26997 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
26998 else
26999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27000 for as_dir in $PATH
27001 do
27002 IFS=$as_save_IFS
27003 test -z "$as_dir" && as_dir=.
27004 for ac_exec_ext in '' $ac_executable_extensions; do
27005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27006 ac_cv_prog_ac_ct_AR="ar"
27007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27008 break 2
27009 fi
27010 done
27011 done
27012 IFS=$as_save_IFS
27013
27014 fi
27015 fi
27016 ac_ct_AR=$ac_cv_prog_ac_ct_AR
27017 if test -n "$ac_ct_AR"; then
27018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
27019 $as_echo "$ac_ct_AR" >&6; }
27020 else
27021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27022 $as_echo "no" >&6; }
27023 fi
27024
27025 if test "x$ac_ct_AR" = x; then
27026 AR=""
27027 else
27028 case $cross_compiling:$ac_tool_warned in
27029 yes:)
27030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
27031 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27032 ac_tool_warned=yes ;;
27033 esac
27034 AR=$ac_ct_AR
27035 fi
27036 else
27037 AR="$ac_cv_prog_AR"
27038 fi
27039
27040
27041 # ---------------------- #
27042 # Checks for libraries. #
27043 # ---------------------- #
27044
27045 ac_config_files="$ac_config_files Makefile import/Makefile"
27046
27047 ac_config_commands="$ac_config_commands default"
27048
27049 cat >confcache <<\_ACEOF
27050 # This file is a shell script that caches the results of configure
27051 # tests run on this system so they can be shared between configure
27052 # scripts and configure runs, see configure's option --config-cache.
27053 # It is not useful on other systems. If it contains results you don't
27054 # want to keep, you may remove or edit it.
27055 #
27056 # config.status only pays attention to the cache file if you give it
27057 # the --recheck option to rerun configure.
27058 #
27059 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27060 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27061 # following values.
27062
27063 _ACEOF
27064
27065 # The following way of writing the cache mishandles newlines in values,
27066 # but we know of no workaround that is simple, portable, and efficient.
27067 # So, we kill variables containing newlines.
27068 # Ultrix sh set writes to stderr and can't be redirected directly,
27069 # and sets the high bit in the cache file unless we assign to the vars.
27070 (
27071 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27072 eval ac_val=\$$ac_var
27073 case $ac_val in #(
27074 *${as_nl}*)
27075 case $ac_var in #(
27076 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27077 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27078 esac
27079 case $ac_var in #(
27080 _ | IFS | as_nl) ;; #(
27081 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
27082 *) { eval $ac_var=; unset $ac_var;} ;;
27083 esac ;;
27084 esac
27085 done
27086
27087 (set) 2>&1 |
27088 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27089 *${as_nl}ac_space=\ *)
27090 # `set' does not quote correctly, so add quotes: double-quote
27091 # substitution turns \\\\ into \\, and sed turns \\ into \.
27092 sed -n \
27093 "s/'/'\\\\''/g;
27094 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27095 ;; #(
27096 *)
27097 # `set' quotes correctly as required by POSIX, so do not add quotes.
27098 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27099 ;;
27100 esac |
27101 sort
27102 ) |
27103 sed '
27104 /^ac_cv_env_/b end
27105 t clear
27106 :clear
27107 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27108 t end
27109 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27110 :end' >>confcache
27111 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27112 if test -w "$cache_file"; then
27113 if test "x$cache_file" != "x/dev/null"; then
27114 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27115 $as_echo "$as_me: updating cache $cache_file" >&6;}
27116 if test ! -f "$cache_file" || test -h "$cache_file"; then
27117 cat confcache >"$cache_file"
27118 else
27119 case $cache_file in #(
27120 */* | ?:*)
27121 mv -f confcache "$cache_file"$$ &&
27122 mv -f "$cache_file"$$ "$cache_file" ;; #(
27123 *)
27124 mv -f confcache "$cache_file" ;;
27125 esac
27126 fi
27127 fi
27128 else
27129 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27130 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27131 fi
27132 fi
27133 rm -f confcache
27134
27135 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27136 # Let make expand exec_prefix.
27137 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27138
27139 DEFS=-DHAVE_CONFIG_H
27140
27141 ac_libobjs=
27142 ac_ltlibobjs=
27143 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27144 # 1. Remove the extension, and $U if already installed.
27145 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27146 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
27147 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27148 # will be set to the directory where LIBOBJS objects are built.
27149 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27150 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
27151 done
27152 LIBOBJS=$ac_libobjs
27153
27154 LTLIBOBJS=$ac_ltlibobjs
27155
27156
27157 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
27158 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
27159 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27160 fi
27161 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
27162 as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
27163 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27164 fi
27165 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
27166 as_fn_error $? "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
27167 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27168 fi
27169 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
27170 as_fn_error $? "conditional \"GL_GENERATE_ERRNO_H\" was never defined.
27171 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27172 fi
27173 if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
27174 as_fn_error $? "conditional \"GL_GENERATE_FLOAT_H\" was never defined.
27175 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27176 fi
27177 if test -z "${GL_GENERATE_FNMATCH_H_TRUE}" && test -z "${GL_GENERATE_FNMATCH_H_FALSE}"; then
27178 as_fn_error $? "conditional \"GL_GENERATE_FNMATCH_H\" was never defined.
27179 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27180 fi
27181 if test -z "${GL_GENERATE_GLOB_H_TRUE}" && test -z "${GL_GENERATE_GLOB_H_FALSE}"; then
27182 as_fn_error $? "conditional \"GL_GENERATE_GLOB_H\" was never defined.
27183 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27184 fi
27185 if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
27186 as_fn_error $? "conditional \"GL_GENERATE_LIMITS_H\" was never defined.
27187 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27188 fi
27189 if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
27190 as_fn_error $? "conditional \"GL_GENERATE_LIMITS_H\" was never defined.
27191 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27192 fi
27193 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
27194 as_fn_error $? "conditional \"GL_GENERATE_STDINT_H\" was never defined.
27195 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27196 fi
27197
27198
27199 if test -z "${GL_GENERATE_NETINET_IN_H_TRUE}" && test -z "${GL_GENERATE_NETINET_IN_H_FALSE}"; then
27200 as_fn_error $? "conditional \"GL_GENERATE_NETINET_IN_H\" was never defined.
27201 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27202 fi
27203 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
27204 as_fn_error $? "conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
27205 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27206 fi
27207 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
27208 as_fn_error $? "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
27209 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27210 fi
27211 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
27212 as_fn_error $? "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
27213 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27214 fi
27215
27216 gl_libobjs=
27217 gl_ltlibobjs=
27218 if test -n "$gl_LIBOBJS"; then
27219 # Remove the extension.
27220 sed_drop_objext='s/\.o$//;s/\.obj$//'
27221 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
27222 gl_libobjs="$gl_libobjs $i.$ac_objext"
27223 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
27224 done
27225 fi
27226 gl_LIBOBJS=$gl_libobjs
27227
27228 gl_LTLIBOBJS=$gl_ltlibobjs
27229
27230
27231
27232 gltests_libobjs=
27233 gltests_ltlibobjs=
27234 if test -n "$gltests_LIBOBJS"; then
27235 # Remove the extension.
27236 sed_drop_objext='s/\.o$//;s/\.obj$//'
27237 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
27238 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
27239 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
27240 done
27241 fi
27242 gltests_LIBOBJS=$gltests_libobjs
27243
27244 gltests_LTLIBOBJS=$gltests_ltlibobjs
27245
27246
27247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
27248 $as_echo_n "checking that generated files are newer than configure... " >&6; }
27249 if test -n "$am_sleep_pid"; then
27250 # Hide warnings about reused PIDs.
27251 wait $am_sleep_pid 2>/dev/null
27252 fi
27253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
27254 $as_echo "done" >&6; }
27255 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
27256 as_fn_error $? "conditional \"AMDEP\" was never defined.
27257 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27258 fi
27259 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27260 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
27261 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27262 fi
27263 if test -n "$EXEEXT"; then
27264 am__EXEEXT_TRUE=
27265 am__EXEEXT_FALSE='#'
27266 else
27267 am__EXEEXT_TRUE='#'
27268 am__EXEEXT_FALSE=
27269 fi
27270
27271
27272 : "${CONFIG_STATUS=./config.status}"
27273 ac_write_fail=0
27274 ac_clean_files_save=$ac_clean_files
27275 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27276 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27277 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27278 as_write_fail=0
27279 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27280 #! $SHELL
27281 # Generated by $as_me.
27282 # Run this file to recreate the current configuration.
27283 # Compiler output produced by configure, useful for debugging
27284 # configure, is in config.log if it exists.
27285
27286 debug=false
27287 ac_cs_recheck=false
27288 ac_cs_silent=false
27289
27290 SHELL=\${CONFIG_SHELL-$SHELL}
27291 export SHELL
27292 _ASEOF
27293 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
27294 ## -------------------- ##
27295 ## M4sh Initialization. ##
27296 ## -------------------- ##
27297
27298 # Be more Bourne compatible
27299 DUALCASE=1; export DUALCASE # for MKS sh
27300 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
27301 emulate sh
27302 NULLCMD=:
27303 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27304 # is contrary to our usage. Disable this feature.
27305 alias -g '${1+"$@"}'='"$@"'
27306 setopt NO_GLOB_SUBST
27307 else
27308 case `(set -o) 2>/dev/null` in #(
27309 *posix*) :
27310 set -o posix ;; #(
27311 *) :
27312 ;;
27313 esac
27314 fi
27315
27316
27317 as_nl='
27318 '
27319 export as_nl
27320 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27321 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27322 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27323 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27324 # Prefer a ksh shell builtin over an external printf program on Solaris,
27325 # but without wasting forks for bash or zsh.
27326 if test -z "$BASH_VERSION$ZSH_VERSION" \
27327 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27328 as_echo='print -r --'
27329 as_echo_n='print -rn --'
27330 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27331 as_echo='printf %s\n'
27332 as_echo_n='printf %s'
27333 else
27334 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27335 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
27336 as_echo_n='/usr/ucb/echo -n'
27337 else
27338 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27339 as_echo_n_body='eval
27340 arg=$1;
27341 case $arg in #(
27342 *"$as_nl"*)
27343 expr "X$arg" : "X\\(.*\\)$as_nl";
27344 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27345 esac;
27346 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
27347 '
27348 export as_echo_n_body
27349 as_echo_n='sh -c $as_echo_n_body as_echo'
27350 fi
27351 export as_echo_body
27352 as_echo='sh -c $as_echo_body as_echo'
27353 fi
27354
27355 # The user is always right.
27356 if test "${PATH_SEPARATOR+set}" != set; then
27357 PATH_SEPARATOR=:
27358 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27359 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27360 PATH_SEPARATOR=';'
27361 }
27362 fi
27363
27364
27365 # IFS
27366 # We need space, tab and new line, in precisely that order. Quoting is
27367 # there to prevent editors from complaining about space-tab.
27368 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27369 # splitting by setting IFS to empty value.)
27370 IFS=" "" $as_nl"
27371
27372 # Find who we are. Look in the path if we contain no directory separator.
27373 as_myself=
27374 case $0 in #((
27375 *[\\/]* ) as_myself=$0 ;;
27376 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27377 for as_dir in $PATH
27378 do
27379 IFS=$as_save_IFS
27380 test -z "$as_dir" && as_dir=.
27381 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27382 done
27383 IFS=$as_save_IFS
27384
27385 ;;
27386 esac
27387 # We did not find ourselves, most probably we were run as `sh COMMAND'
27388 # in which case we are not to be found in the path.
27389 if test "x$as_myself" = x; then
27390 as_myself=$0
27391 fi
27392 if test ! -f "$as_myself"; then
27393 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27394 exit 1
27395 fi
27396
27397 # Unset variables that we do not need and which cause bugs (e.g. in
27398 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
27399 # suppresses any "Segmentation fault" message there. '((' could
27400 # trigger a bug in pdksh 5.2.14.
27401 for as_var in BASH_ENV ENV MAIL MAILPATH
27402 do eval test x\${$as_var+set} = xset \
27403 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
27404 done
27405 PS1='$ '
27406 PS2='> '
27407 PS4='+ '
27408
27409 # NLS nuisances.
27410 LC_ALL=C
27411 export LC_ALL
27412 LANGUAGE=C
27413 export LANGUAGE
27414
27415 # CDPATH.
27416 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27417
27418
27419 # as_fn_error STATUS ERROR [LINENO LOG_FD]
27420 # ----------------------------------------
27421 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27422 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27423 # script with STATUS, using 1 if that was 0.
27424 as_fn_error ()
27425 {
27426 as_status=$1; test $as_status -eq 0 && as_status=1
27427 if test "$4"; then
27428 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
27429 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
27430 fi
27431 $as_echo "$as_me: error: $2" >&2
27432 as_fn_exit $as_status
27433 } # as_fn_error
27434
27435
27436 # as_fn_set_status STATUS
27437 # -----------------------
27438 # Set $? to STATUS, without forking.
27439 as_fn_set_status ()
27440 {
27441 return $1
27442 } # as_fn_set_status
27443
27444 # as_fn_exit STATUS
27445 # -----------------
27446 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27447 as_fn_exit ()
27448 {
27449 set +e
27450 as_fn_set_status $1
27451 exit $1
27452 } # as_fn_exit
27453
27454 # as_fn_unset VAR
27455 # ---------------
27456 # Portably unset VAR.
27457 as_fn_unset ()
27458 {
27459 { eval $1=; unset $1;}
27460 }
27461 as_unset=as_fn_unset
27462 # as_fn_append VAR VALUE
27463 # ----------------------
27464 # Append the text in VALUE to the end of the definition contained in VAR. Take
27465 # advantage of any shell optimizations that allow amortized linear growth over
27466 # repeated appends, instead of the typical quadratic growth present in naive
27467 # implementations.
27468 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
27469 eval 'as_fn_append ()
27470 {
27471 eval $1+=\$2
27472 }'
27473 else
27474 as_fn_append ()
27475 {
27476 eval $1=\$$1\$2
27477 }
27478 fi # as_fn_append
27479
27480 # as_fn_arith ARG...
27481 # ------------------
27482 # Perform arithmetic evaluation on the ARGs, and store the result in the
27483 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27484 # must be portable across $(()) and expr.
27485 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
27486 eval 'as_fn_arith ()
27487 {
27488 as_val=$(( $* ))
27489 }'
27490 else
27491 as_fn_arith ()
27492 {
27493 as_val=`expr "$@" || test $? -eq 1`
27494 }
27495 fi # as_fn_arith
27496
27497
27498 if expr a : '\(a\)' >/dev/null 2>&1 &&
27499 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27500 as_expr=expr
27501 else
27502 as_expr=false
27503 fi
27504
27505 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27506 as_basename=basename
27507 else
27508 as_basename=false
27509 fi
27510
27511 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27512 as_dirname=dirname
27513 else
27514 as_dirname=false
27515 fi
27516
27517 as_me=`$as_basename -- "$0" ||
27518 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27519 X"$0" : 'X\(//\)$' \| \
27520 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27521 $as_echo X/"$0" |
27522 sed '/^.*\/\([^/][^/]*\)\/*$/{
27523 s//\1/
27524 q
27525 }
27526 /^X\/\(\/\/\)$/{
27527 s//\1/
27528 q
27529 }
27530 /^X\/\(\/\).*/{
27531 s//\1/
27532 q
27533 }
27534 s/.*/./; q'`
27535
27536 # Avoid depending upon Character Ranges.
27537 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27538 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27539 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27540 as_cr_digits='0123456789'
27541 as_cr_alnum=$as_cr_Letters$as_cr_digits
27542
27543 ECHO_C= ECHO_N= ECHO_T=
27544 case `echo -n x` in #(((((
27545 -n*)
27546 case `echo 'xy\c'` in
27547 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27548 xy) ECHO_C='\c';;
27549 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
27550 ECHO_T=' ';;
27551 esac;;
27552 *)
27553 ECHO_N='-n';;
27554 esac
27555
27556 rm -f conf$$ conf$$.exe conf$$.file
27557 if test -d conf$$.dir; then
27558 rm -f conf$$.dir/conf$$.file
27559 else
27560 rm -f conf$$.dir
27561 mkdir conf$$.dir 2>/dev/null
27562 fi
27563 if (echo >conf$$.file) 2>/dev/null; then
27564 if ln -s conf$$.file conf$$ 2>/dev/null; then
27565 as_ln_s='ln -s'
27566 # ... but there are two gotchas:
27567 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27568 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27569 # In both cases, we have to default to `cp -pR'.
27570 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27571 as_ln_s='cp -pR'
27572 elif ln conf$$.file conf$$ 2>/dev/null; then
27573 as_ln_s=ln
27574 else
27575 as_ln_s='cp -pR'
27576 fi
27577 else
27578 as_ln_s='cp -pR'
27579 fi
27580 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27581 rmdir conf$$.dir 2>/dev/null
27582
27583
27584 # as_fn_mkdir_p
27585 # -------------
27586 # Create "$as_dir" as a directory, including parents if necessary.
27587 as_fn_mkdir_p ()
27588 {
27589
27590 case $as_dir in #(
27591 -*) as_dir=./$as_dir;;
27592 esac
27593 test -d "$as_dir" || eval $as_mkdir_p || {
27594 as_dirs=
27595 while :; do
27596 case $as_dir in #(
27597 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27598 *) as_qdir=$as_dir;;
27599 esac
27600 as_dirs="'$as_qdir' $as_dirs"
27601 as_dir=`$as_dirname -- "$as_dir" ||
27602 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27603 X"$as_dir" : 'X\(//\)[^/]' \| \
27604 X"$as_dir" : 'X\(//\)$' \| \
27605 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27606 $as_echo X"$as_dir" |
27607 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27608 s//\1/
27609 q
27610 }
27611 /^X\(\/\/\)[^/].*/{
27612 s//\1/
27613 q
27614 }
27615 /^X\(\/\/\)$/{
27616 s//\1/
27617 q
27618 }
27619 /^X\(\/\).*/{
27620 s//\1/
27621 q
27622 }
27623 s/.*/./; q'`
27624 test -d "$as_dir" && break
27625 done
27626 test -z "$as_dirs" || eval "mkdir $as_dirs"
27627 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
27628
27629
27630 } # as_fn_mkdir_p
27631 if mkdir -p . 2>/dev/null; then
27632 as_mkdir_p='mkdir -p "$as_dir"'
27633 else
27634 test -d ./-p && rmdir ./-p
27635 as_mkdir_p=false
27636 fi
27637
27638
27639 # as_fn_executable_p FILE
27640 # -----------------------
27641 # Test if FILE is an executable regular file.
27642 as_fn_executable_p ()
27643 {
27644 test -f "$1" && test -x "$1"
27645 } # as_fn_executable_p
27646 as_test_x='test -x'
27647 as_executable_p=as_fn_executable_p
27648
27649 # Sed expression to map a string onto a valid CPP name.
27650 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27651
27652 # Sed expression to map a string onto a valid variable name.
27653 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27654
27655
27656 exec 6>&1
27657 ## ----------------------------------- ##
27658 ## Main body of $CONFIG_STATUS script. ##
27659 ## ----------------------------------- ##
27660 _ASEOF
27661 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
27662
27663 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27664 # Save the log message, to keep $0 and so on meaningful, and to
27665 # report actual input values of CONFIG_FILES etc. instead of their
27666 # values after options handling.
27667 ac_log="
27668 This file was extended by libgnu $as_me UNUSED-VERSION, which was
27669 generated by GNU Autoconf 2.69. Invocation command line was
27670
27671 CONFIG_FILES = $CONFIG_FILES
27672 CONFIG_HEADERS = $CONFIG_HEADERS
27673 CONFIG_LINKS = $CONFIG_LINKS
27674 CONFIG_COMMANDS = $CONFIG_COMMANDS
27675 $ $0 $@
27676
27677 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27678 "
27679
27680 _ACEOF
27681
27682 case $ac_config_files in *"
27683 "*) set x $ac_config_files; shift; ac_config_files=$*;;
27684 esac
27685
27686 case $ac_config_headers in *"
27687 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27688 esac
27689
27690
27691 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27692 # Files that config.status was made for.
27693 config_files="$ac_config_files"
27694 config_headers="$ac_config_headers"
27695 config_commands="$ac_config_commands"
27696
27697 _ACEOF
27698
27699 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27700 ac_cs_usage="\
27701 \`$as_me' instantiates files and other configuration actions
27702 from templates according to the current configuration. Unless the files
27703 and actions are specified as TAGs, all are instantiated by default.
27704
27705 Usage: $0 [OPTION]... [TAG]...
27706
27707 -h, --help print this help, then exit
27708 -V, --version print version number and configuration settings, then exit
27709 --config print configuration, then exit
27710 -q, --quiet, --silent
27711 do not print progress messages
27712 -d, --debug don't remove temporary files
27713 --recheck update $as_me by reconfiguring in the same conditions
27714 --file=FILE[:TEMPLATE]
27715 instantiate the configuration file FILE
27716 --header=FILE[:TEMPLATE]
27717 instantiate the configuration header FILE
27718
27719 Configuration files:
27720 $config_files
27721
27722 Configuration headers:
27723 $config_headers
27724
27725 Configuration commands:
27726 $config_commands
27727
27728 Report bugs to the package provider."
27729
27730 _ACEOF
27731 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27732 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
27733 ac_cs_version="\\
27734 libgnu config.status UNUSED-VERSION
27735 configured by $0, generated by GNU Autoconf 2.69,
27736 with options \\"\$ac_cs_config\\"
27737
27738 Copyright (C) 2012 Free Software Foundation, Inc.
27739 This config.status script is free software; the Free Software Foundation
27740 gives unlimited permission to copy, distribute and modify it."
27741
27742 ac_pwd='$ac_pwd'
27743 srcdir='$srcdir'
27744 INSTALL='$INSTALL'
27745 MKDIR_P='$MKDIR_P'
27746 AWK='$AWK'
27747 test -n "\$AWK" || AWK=awk
27748 _ACEOF
27749
27750 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27751 # The default lists apply if the user does not specify any file.
27752 ac_need_defaults=:
27753 while test $# != 0
27754 do
27755 case $1 in
27756 --*=?*)
27757 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27758 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27759 ac_shift=:
27760 ;;
27761 --*=)
27762 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27763 ac_optarg=
27764 ac_shift=:
27765 ;;
27766 *)
27767 ac_option=$1
27768 ac_optarg=$2
27769 ac_shift=shift
27770 ;;
27771 esac
27772
27773 case $ac_option in
27774 # Handling of the options.
27775 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27776 ac_cs_recheck=: ;;
27777 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27778 $as_echo "$ac_cs_version"; exit ;;
27779 --config | --confi | --conf | --con | --co | --c )
27780 $as_echo "$ac_cs_config"; exit ;;
27781 --debug | --debu | --deb | --de | --d | -d )
27782 debug=: ;;
27783 --file | --fil | --fi | --f )
27784 $ac_shift
27785 case $ac_optarg in
27786 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27787 '') as_fn_error $? "missing file argument" ;;
27788 esac
27789 as_fn_append CONFIG_FILES " '$ac_optarg'"
27790 ac_need_defaults=false;;
27791 --header | --heade | --head | --hea )
27792 $ac_shift
27793 case $ac_optarg in
27794 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27795 esac
27796 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
27797 ac_need_defaults=false;;
27798 --he | --h)
27799 # Conflict between --help and --header
27800 as_fn_error $? "ambiguous option: \`$1'
27801 Try \`$0 --help' for more information.";;
27802 --help | --hel | -h )
27803 $as_echo "$ac_cs_usage"; exit ;;
27804 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27805 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27806 ac_cs_silent=: ;;
27807
27808 # This is an error.
27809 -*) as_fn_error $? "unrecognized option: \`$1'
27810 Try \`$0 --help' for more information." ;;
27811
27812 *) as_fn_append ac_config_targets " $1"
27813 ac_need_defaults=false ;;
27814
27815 esac
27816 shift
27817 done
27818
27819 ac_configure_extra_args=
27820
27821 if $ac_cs_silent; then
27822 exec 6>/dev/null
27823 ac_configure_extra_args="$ac_configure_extra_args --silent"
27824 fi
27825
27826 _ACEOF
27827 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27828 if \$ac_cs_recheck; then
27829 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27830 shift
27831 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27832 CONFIG_SHELL='$SHELL'
27833 export CONFIG_SHELL
27834 exec "\$@"
27835 fi
27836
27837 _ACEOF
27838 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27839 exec 5>>config.log
27840 {
27841 echo
27842 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27843 ## Running $as_me. ##
27844 _ASBOX
27845 $as_echo "$ac_log"
27846 } >&5
27847
27848 _ACEOF
27849 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27850 #
27851 # INIT-COMMANDS
27852 #
27853 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
27854
27855 _ACEOF
27856
27857 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27858
27859 # Handling of arguments.
27860 for ac_config_target in $ac_config_targets
27861 do
27862 case $ac_config_target in
27863 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
27864 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27865 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27866 "import/Makefile") CONFIG_FILES="$CONFIG_FILES import/Makefile" ;;
27867 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
27868
27869 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27870 esac
27871 done
27872
27873
27874 # If the user did not use the arguments to specify the items to instantiate,
27875 # then the envvar interface is used. Set only those that are not.
27876 # We use the long form for the default assignment because of an extremely
27877 # bizarre bug on SunOS 4.1.3.
27878 if $ac_need_defaults; then
27879 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27880 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27881 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27882 fi
27883
27884 # Have a temporary directory for convenience. Make it in the build tree
27885 # simply because there is no reason against having it here, and in addition,
27886 # creating and moving files from /tmp can sometimes cause problems.
27887 # Hook for its removal unless debugging.
27888 # Note that there is a small window in which the directory will not be cleaned:
27889 # after its creation but before its name has been assigned to `$tmp'.
27890 $debug ||
27891 {
27892 tmp= ac_tmp=
27893 trap 'exit_status=$?
27894 : "${ac_tmp:=$tmp}"
27895 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
27896 ' 0
27897 trap 'as_fn_exit 1' 1 2 13 15
27898 }
27899 # Create a (secure) tmp directory for tmp files.
27900
27901 {
27902 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27903 test -d "$tmp"
27904 } ||
27905 {
27906 tmp=./conf$$-$RANDOM
27907 (umask 077 && mkdir "$tmp")
27908 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
27909 ac_tmp=$tmp
27910
27911 # Set up the scripts for CONFIG_FILES section.
27912 # No need to generate them if there are no CONFIG_FILES.
27913 # This happens for instance with `./config.status config.h'.
27914 if test -n "$CONFIG_FILES"; then
27915
27916
27917 ac_cr=`echo X | tr X '\015'`
27918 # On cygwin, bash can eat \r inside `` if the user requested igncr.
27919 # But we know of no other shell where ac_cr would be empty at this
27920 # point, so we can use a bashism as a fallback.
27921 if test "x$ac_cr" = x; then
27922 eval ac_cr=\$\'\\r\'
27923 fi
27924 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27925 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27926 ac_cs_awk_cr='\\r'
27927 else
27928 ac_cs_awk_cr=$ac_cr
27929 fi
27930
27931 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
27932 _ACEOF
27933
27934
27935 {
27936 echo "cat >conf$$subs.awk <<_ACEOF" &&
27937 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27938 echo "_ACEOF"
27939 } >conf$$subs.sh ||
27940 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27941 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
27942 ac_delim='%!_!# '
27943 for ac_last_try in false false false false false :; do
27944 . ./conf$$subs.sh ||
27945 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27946
27947 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
27948 if test $ac_delim_n = $ac_delim_num; then
27949 break
27950 elif $ac_last_try; then
27951 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27952 else
27953 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27954 fi
27955 done
27956 rm -f conf$$subs.sh
27957
27958 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27959 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
27960 _ACEOF
27961 sed -n '
27962 h
27963 s/^/S["/; s/!.*/"]=/
27964 p
27965 g
27966 s/^[^!]*!//
27967 :repl
27968 t repl
27969 s/'"$ac_delim"'$//
27970 t delim
27971 :nl
27972 h
27973 s/\(.\{148\}\)..*/\1/
27974 t more1
27975 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27976 p
27977 n
27978 b repl
27979 :more1
27980 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27981 p
27982 g
27983 s/.\{148\}//
27984 t nl
27985 :delim
27986 h
27987 s/\(.\{148\}\)..*/\1/
27988 t more2
27989 s/["\\]/\\&/g; s/^/"/; s/$/"/
27990 p
27991 b
27992 :more2
27993 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27994 p
27995 g
27996 s/.\{148\}//
27997 t delim
27998 ' <conf$$subs.awk | sed '
27999 /^[^""]/{
28000 N
28001 s/\n//
28002 }
28003 ' >>$CONFIG_STATUS || ac_write_fail=1
28004 rm -f conf$$subs.awk
28005 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28006 _ACAWK
28007 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
28008 for (key in S) S_is_set[key] = 1
28009 FS = "\a"
28010
28011 }
28012 {
28013 line = $ 0
28014 nfields = split(line, field, "@")
28015 substed = 0
28016 len = length(field[1])
28017 for (i = 2; i < nfields; i++) {
28018 key = field[i]
28019 keylen = length(key)
28020 if (S_is_set[key]) {
28021 value = S[key]
28022 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28023 len += length(value) + length(field[++i])
28024 substed = 1
28025 } else
28026 len += 1 + keylen
28027 }
28028
28029 print line
28030 }
28031
28032 _ACAWK
28033 _ACEOF
28034 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28035 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28036 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
28037 else
28038 cat
28039 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
28040 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
28041 _ACEOF
28042
28043 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
28044 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
28045 # trailing colons and then remove the whole line if VPATH becomes empty
28046 # (actually we leave an empty line to preserve line numbers).
28047 if test "x$srcdir" = x.; then
28048 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
28049 h
28050 s///
28051 s/^/:/
28052 s/[ ]*$/:/
28053 s/:\$(srcdir):/:/g
28054 s/:\${srcdir}:/:/g
28055 s/:@srcdir@:/:/g
28056 s/^:*//
28057 s/:*$//
28058 x
28059 s/\(=[ ]*\).*/\1/
28060 G
28061 s/\n//
28062 s/^[^=]*=[ ]*$//
28063 }'
28064 fi
28065
28066 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28067 fi # test -n "$CONFIG_FILES"
28068
28069 # Set up the scripts for CONFIG_HEADERS section.
28070 # No need to generate them if there are no CONFIG_HEADERS.
28071 # This happens for instance with `./config.status Makefile'.
28072 if test -n "$CONFIG_HEADERS"; then
28073 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
28074 BEGIN {
28075 _ACEOF
28076
28077 # Transform confdefs.h into an awk script `defines.awk', embedded as
28078 # here-document in config.status, that substitutes the proper values into
28079 # config.h.in to produce config.h.
28080
28081 # Create a delimiter string that does not exist in confdefs.h, to ease
28082 # handling of long lines.
28083 ac_delim='%!_!# '
28084 for ac_last_try in false false :; do
28085 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
28086 if test -z "$ac_tt"; then
28087 break
28088 elif $ac_last_try; then
28089 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
28090 else
28091 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28092 fi
28093 done
28094
28095 # For the awk script, D is an array of macro values keyed by name,
28096 # likewise P contains macro parameters if any. Preserve backslash
28097 # newline sequences.
28098
28099 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28100 sed -n '
28101 s/.\{148\}/&'"$ac_delim"'/g
28102 t rset
28103 :rset
28104 s/^[ ]*#[ ]*define[ ][ ]*/ /
28105 t def
28106 d
28107 :def
28108 s/\\$//
28109 t bsnl
28110 s/["\\]/\\&/g
28111 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28112 D["\1"]=" \3"/p
28113 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
28114 d
28115 :bsnl
28116 s/["\\]/\\&/g
28117 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28118 D["\1"]=" \3\\\\\\n"\\/p
28119 t cont
28120 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
28121 t cont
28122 d
28123 :cont
28124 n
28125 s/.\{148\}/&'"$ac_delim"'/g
28126 t clear
28127 :clear
28128 s/\\$//
28129 t bsnlc
28130 s/["\\]/\\&/g; s/^/"/; s/$/"/p
28131 d
28132 :bsnlc
28133 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
28134 b cont
28135 ' <confdefs.h | sed '
28136 s/'"$ac_delim"'/"\\\
28137 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28138
28139 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28140 for (key in D) D_is_set[key] = 1
28141 FS = "\a"
28142 }
28143 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28144 line = \$ 0
28145 split(line, arg, " ")
28146 if (arg[1] == "#") {
28147 defundef = arg[2]
28148 mac1 = arg[3]
28149 } else {
28150 defundef = substr(arg[1], 2)
28151 mac1 = arg[2]
28152 }
28153 split(mac1, mac2, "(") #)
28154 macro = mac2[1]
28155 prefix = substr(line, 1, index(line, defundef) - 1)
28156 if (D_is_set[macro]) {
28157 # Preserve the white space surrounding the "#".
28158 print prefix "define", macro P[macro] D[macro]
28159 next
28160 } else {
28161 # Replace #undef with comments. This is necessary, for example,
28162 # in the case of _POSIX_SOURCE, which is predefined and required
28163 # on some systems where configure will not decide to define it.
28164 if (defundef == "undef") {
28165 print "/*", prefix defundef, macro, "*/"
28166 next
28167 }
28168 }
28169 }
28170 { print }
28171 _ACAWK
28172 _ACEOF
28173 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28174 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
28175 fi # test -n "$CONFIG_HEADERS"
28176
28177
28178 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28179 shift
28180 for ac_tag
28181 do
28182 case $ac_tag in
28183 :[FHLC]) ac_mode=$ac_tag; continue;;
28184 esac
28185 case $ac_mode$ac_tag in
28186 :[FHL]*:*);;
28187 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
28188 :[FH]-) ac_tag=-:-;;
28189 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28190 esac
28191 ac_save_IFS=$IFS
28192 IFS=:
28193 set x $ac_tag
28194 IFS=$ac_save_IFS
28195 shift
28196 ac_file=$1
28197 shift
28198
28199 case $ac_mode in
28200 :L) ac_source=$1;;
28201 :[FH])
28202 ac_file_inputs=
28203 for ac_f
28204 do
28205 case $ac_f in
28206 -) ac_f="$ac_tmp/stdin";;
28207 *) # Look for the file first in the build tree, then in the source tree
28208 # (if the path is not absolute). The absolute path cannot be DOS-style,
28209 # because $ac_f cannot contain `:'.
28210 test -f "$ac_f" ||
28211 case $ac_f in
28212 [\\/$]*) false;;
28213 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28214 esac ||
28215 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
28216 esac
28217 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28218 as_fn_append ac_file_inputs " '$ac_f'"
28219 done
28220
28221 # Let's still pretend it is `configure' which instantiates (i.e., don't
28222 # use $as_me), people would be surprised to read:
28223 # /* config.h. Generated by config.status. */
28224 configure_input='Generated from '`
28225 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28226 `' by configure.'
28227 if test x"$ac_file" != x-; then
28228 configure_input="$ac_file. $configure_input"
28229 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28230 $as_echo "$as_me: creating $ac_file" >&6;}
28231 fi
28232 # Neutralize special characters interpreted by sed in replacement strings.
28233 case $configure_input in #(
28234 *\&* | *\|* | *\\* )
28235 ac_sed_conf_input=`$as_echo "$configure_input" |
28236 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28237 *) ac_sed_conf_input=$configure_input;;
28238 esac
28239
28240 case $ac_tag in
28241 *:-:* | *:-) cat >"$ac_tmp/stdin" \
28242 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
28243 esac
28244 ;;
28245 esac
28246
28247 ac_dir=`$as_dirname -- "$ac_file" ||
28248 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28249 X"$ac_file" : 'X\(//\)[^/]' \| \
28250 X"$ac_file" : 'X\(//\)$' \| \
28251 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28252 $as_echo X"$ac_file" |
28253 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28254 s//\1/
28255 q
28256 }
28257 /^X\(\/\/\)[^/].*/{
28258 s//\1/
28259 q
28260 }
28261 /^X\(\/\/\)$/{
28262 s//\1/
28263 q
28264 }
28265 /^X\(\/\).*/{
28266 s//\1/
28267 q
28268 }
28269 s/.*/./; q'`
28270 as_dir="$ac_dir"; as_fn_mkdir_p
28271 ac_builddir=.
28272
28273 case "$ac_dir" in
28274 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28275 *)
28276 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28277 # A ".." for each directory in $ac_dir_suffix.
28278 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28279 case $ac_top_builddir_sub in
28280 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28281 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28282 esac ;;
28283 esac
28284 ac_abs_top_builddir=$ac_pwd
28285 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28286 # for backward compatibility:
28287 ac_top_builddir=$ac_top_build_prefix
28288
28289 case $srcdir in
28290 .) # We are building in place.
28291 ac_srcdir=.
28292 ac_top_srcdir=$ac_top_builddir_sub
28293 ac_abs_top_srcdir=$ac_pwd ;;
28294 [\\/]* | ?:[\\/]* ) # Absolute name.
28295 ac_srcdir=$srcdir$ac_dir_suffix;
28296 ac_top_srcdir=$srcdir
28297 ac_abs_top_srcdir=$srcdir ;;
28298 *) # Relative name.
28299 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28300 ac_top_srcdir=$ac_top_build_prefix$srcdir
28301 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28302 esac
28303 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28304
28305
28306 case $ac_mode in
28307 :F)
28308 #
28309 # CONFIG_FILE
28310 #
28311
28312 case $INSTALL in
28313 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28314 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
28315 esac
28316 ac_MKDIR_P=$MKDIR_P
28317 case $MKDIR_P in
28318 [\\/$]* | ?:[\\/]* ) ;;
28319 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
28320 esac
28321 _ACEOF
28322
28323 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28324 # If the template does not know about datarootdir, expand it.
28325 # FIXME: This hack should be removed a few years after 2.60.
28326 ac_datarootdir_hack=; ac_datarootdir_seen=
28327 ac_sed_dataroot='
28328 /datarootdir/ {
28329 p
28330 q
28331 }
28332 /@datadir@/p
28333 /@docdir@/p
28334 /@infodir@/p
28335 /@localedir@/p
28336 /@mandir@/p'
28337 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28338 *datarootdir*) ac_datarootdir_seen=yes;;
28339 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28340 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28341 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28342 _ACEOF
28343 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28344 ac_datarootdir_hack='
28345 s&@datadir@&$datadir&g
28346 s&@docdir@&$docdir&g
28347 s&@infodir@&$infodir&g
28348 s&@localedir@&$localedir&g
28349 s&@mandir@&$mandir&g
28350 s&\\\${datarootdir}&$datarootdir&g' ;;
28351 esac
28352 _ACEOF
28353
28354 # Neutralize VPATH when `$srcdir' = `.'.
28355 # Shell code in configure.ac might set extrasub.
28356 # FIXME: do we really want to maintain this feature?
28357 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28358 ac_sed_extra="$ac_vpsub
28359 $extrasub
28360 _ACEOF
28361 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28362 :t
28363 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28364 s|@configure_input@|$ac_sed_conf_input|;t t
28365 s&@top_builddir@&$ac_top_builddir_sub&;t t
28366 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28367 s&@srcdir@&$ac_srcdir&;t t
28368 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28369 s&@top_srcdir@&$ac_top_srcdir&;t t
28370 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28371 s&@builddir@&$ac_builddir&;t t
28372 s&@abs_builddir@&$ac_abs_builddir&;t t
28373 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28374 s&@INSTALL@&$ac_INSTALL&;t t
28375 s&@MKDIR_P@&$ac_MKDIR_P&;t t
28376 $ac_datarootdir_hack
28377 "
28378 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
28379 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28380
28381 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28382 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
28383 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
28384 "$ac_tmp/out"`; test -z "$ac_out"; } &&
28385 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28386 which seems to be undefined. Please make sure it is defined" >&5
28387 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28388 which seems to be undefined. Please make sure it is defined" >&2;}
28389
28390 rm -f "$ac_tmp/stdin"
28391 case $ac_file in
28392 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
28393 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
28394 esac \
28395 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28396 ;;
28397 :H)
28398 #
28399 # CONFIG_HEADER
28400 #
28401 if test x"$ac_file" != x-; then
28402 {
28403 $as_echo "/* $configure_input */" \
28404 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
28405 } >"$ac_tmp/config.h" \
28406 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28407 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
28408 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28409 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28410 else
28411 rm -f "$ac_file"
28412 mv "$ac_tmp/config.h" "$ac_file" \
28413 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28414 fi
28415 else
28416 $as_echo "/* $configure_input */" \
28417 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
28418 || as_fn_error $? "could not create -" "$LINENO" 5
28419 fi
28420 # Compute "$ac_file"'s index in $config_headers.
28421 _am_arg="$ac_file"
28422 _am_stamp_count=1
28423 for _am_header in $config_headers :; do
28424 case $_am_header in
28425 $_am_arg | $_am_arg:* )
28426 break ;;
28427 * )
28428 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
28429 esac
28430 done
28431 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
28432 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28433 X"$_am_arg" : 'X\(//\)[^/]' \| \
28434 X"$_am_arg" : 'X\(//\)$' \| \
28435 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
28436 $as_echo X"$_am_arg" |
28437 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28438 s//\1/
28439 q
28440 }
28441 /^X\(\/\/\)[^/].*/{
28442 s//\1/
28443 q
28444 }
28445 /^X\(\/\/\)$/{
28446 s//\1/
28447 q
28448 }
28449 /^X\(\/\).*/{
28450 s//\1/
28451 q
28452 }
28453 s/.*/./; q'`/stamp-h$_am_stamp_count
28454 ;;
28455
28456 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28457 $as_echo "$as_me: executing $ac_file commands" >&6;}
28458 ;;
28459 esac
28460
28461
28462 case $ac_file$ac_mode in
28463 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
28464 # Older Autoconf quotes --file arguments for eval, but not when files
28465 # are listed without --file. Let's play safe and only enable the eval
28466 # if we detect the quoting.
28467 case $CONFIG_FILES in
28468 *\'*) eval set x "$CONFIG_FILES" ;;
28469 *) set x $CONFIG_FILES ;;
28470 esac
28471 shift
28472 for mf
28473 do
28474 # Strip MF so we end up with the name of the file.
28475 mf=`echo "$mf" | sed -e 's/:.*$//'`
28476 # Check whether this is an Automake generated Makefile or not.
28477 # We used to match only the files named 'Makefile.in', but
28478 # some people rename them; so instead we look at the file content.
28479 # Grep'ing the first line is not enough: some people post-process
28480 # each Makefile.in and add a new line on top of each file to say so.
28481 # Grep'ing the whole file is not good either: AIX grep has a line
28482 # limit of 2048, but all sed's we know have understand at least 4000.
28483 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
28484 dirpart=`$as_dirname -- "$mf" ||
28485 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28486 X"$mf" : 'X\(//\)[^/]' \| \
28487 X"$mf" : 'X\(//\)$' \| \
28488 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
28489 $as_echo X"$mf" |
28490 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28491 s//\1/
28492 q
28493 }
28494 /^X\(\/\/\)[^/].*/{
28495 s//\1/
28496 q
28497 }
28498 /^X\(\/\/\)$/{
28499 s//\1/
28500 q
28501 }
28502 /^X\(\/\).*/{
28503 s//\1/
28504 q
28505 }
28506 s/.*/./; q'`
28507 else
28508 continue
28509 fi
28510 # Extract the definition of DEPDIR, am__include, and am__quote
28511 # from the Makefile without running 'make'.
28512 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
28513 test -z "$DEPDIR" && continue
28514 am__include=`sed -n 's/^am__include = //p' < "$mf"`
28515 test -z "$am__include" && continue
28516 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
28517 # Find all dependency output files, they are included files with
28518 # $(DEPDIR) in their names. We invoke sed twice because it is the
28519 # simplest approach to changing $(DEPDIR) to its actual value in the
28520 # expansion.
28521 for file in `sed -n "
28522 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
28523 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
28524 # Make sure the directory exists.
28525 test -f "$dirpart/$file" && continue
28526 fdir=`$as_dirname -- "$file" ||
28527 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28528 X"$file" : 'X\(//\)[^/]' \| \
28529 X"$file" : 'X\(//\)$' \| \
28530 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
28531 $as_echo X"$file" |
28532 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28533 s//\1/
28534 q
28535 }
28536 /^X\(\/\/\)[^/].*/{
28537 s//\1/
28538 q
28539 }
28540 /^X\(\/\/\)$/{
28541 s//\1/
28542 q
28543 }
28544 /^X\(\/\).*/{
28545 s//\1/
28546 q
28547 }
28548 s/.*/./; q'`
28549 as_dir=$dirpart/$fdir; as_fn_mkdir_p
28550 # echo "creating $dirpart/$file"
28551 echo '# dummy' > "$dirpart/$file"
28552 done
28553 done
28554 }
28555 ;;
28556 "default":C)
28557 case x$CONFIG_HEADERS in
28558 xconfig.h:config.in)
28559 echo > stamp-h ;;
28560 esac
28561 ;;
28562
28563 esac
28564 done # for ac_tag
28565
28566
28567 as_fn_exit 0
28568 _ACEOF
28569 ac_clean_files=$ac_clean_files_save
28570
28571 test $ac_write_fail = 0 ||
28572 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
28573
28574
28575 # configure is writing to config.log, and then calls config.status.
28576 # config.status does its own redirection, appending to config.log.
28577 # Unfortunately, on DOS this fails, as config.log is still kept open
28578 # by configure, so config.status won't be able to write to it; its
28579 # output is simply discarded. So we exec the FD to /dev/null,
28580 # effectively closing config.log, so it can be properly (re)opened and
28581 # appended to by config.status. When coming back to configure, we
28582 # need to make the FD available again.
28583 if test "$no_create" != yes; then
28584 ac_cs_success=:
28585 ac_config_status_args=
28586 test "$silent" = yes &&
28587 ac_config_status_args="$ac_config_status_args --quiet"
28588 exec 5>/dev/null
28589 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28590 exec 5>>config.log
28591 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28592 # would make configure fail if this is the last instruction.
28593 $ac_cs_success || as_fn_exit 1
28594 fi
28595 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28597 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
28598 fi
28599
28600
28601 exit 0
This page took 0.832285 seconds and 4 git commands to generate.