]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/gnulib/configure
340c622cb399829fe60529d1c9ec7e07d33b1168
[thirdparty/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 mkostemp"
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 mkdtemp:
5845 # Code from module mkostemp:
5846 # Code from module msvc-inval:
5847 # Code from module msvc-nothrow:
5848 # Code from module multiarch:
5849 # Code from module netinet_in:
5850 # Code from module nocrash:
5851 # Code from module open:
5852 # Code from module openat:
5853 # Code from module openat-die:
5854 # Code from module openat-h:
5855 # Code from module opendir:
5856 # Code from module pathmax:
5857 # Code from module rawmemchr:
5858 # Code from module readdir:
5859 # Code from module readlink:
5860 # Code from module realloc-posix:
5861 # Code from module rename:
5862 # Code from module rewinddir:
5863 # Code from module rmdir:
5864 # Code from module same-inode:
5865 # Code from module save-cwd:
5866 # Code from module secure_getenv:
5867 # Code from module setenv:
5868 # Code from module signal-h:
5869 # Code from module snippet/_Noreturn:
5870 # Code from module snippet/arg-nonnull:
5871 # Code from module snippet/c++defs:
5872 # Code from module snippet/warn-on-use:
5873 # Code from module socklen:
5874 # Code from module ssize_t:
5875 # Code from module stat:
5876 # Code from module stdalign:
5877 # Code from module stdbool:
5878 # Code from module stddef:
5879 # Code from module stdint:
5880 # Code from module stdio:
5881 # Code from module stdlib:
5882 # Code from module strchrnul:
5883 # Code from module strdup-posix:
5884 # Code from module streq:
5885 # Code from module strerror:
5886 # Code from module strerror-override:
5887 # Code from module string:
5888 # Code from module strnlen1:
5889 # Code from module strstr:
5890 # Code from module strstr-simple:
5891 # Code from module strtok_r:
5892 # Code from module sys_socket:
5893 # Code from module sys_stat:
5894 # Code from module sys_time:
5895 # Code from module sys_types:
5896 # Code from module sys_uio:
5897 # Code from module tempname:
5898 # Code from module time:
5899 # Code from module unistd:
5900 # Code from module unistd-safer:
5901 # Code from module unsetenv:
5902 # Code from module update-copyright:
5903 # Code from module verify:
5904 # Code from module wchar:
5905 # Code from module wctype-h:
5906
5907 ac_ext=c
5908 ac_cpp='$CPP $CPPFLAGS'
5909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5912 if test -n "$ac_tool_prefix"; then
5913 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5914 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5916 $as_echo_n "checking for $ac_word... " >&6; }
5917 if ${ac_cv_prog_CC+:} false; then :
5918 $as_echo_n "(cached) " >&6
5919 else
5920 if test -n "$CC"; then
5921 ac_cv_prog_CC="$CC" # Let the user override the test.
5922 else
5923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5924 for as_dir in $PATH
5925 do
5926 IFS=$as_save_IFS
5927 test -z "$as_dir" && as_dir=.
5928 for ac_exec_ext in '' $ac_executable_extensions; do
5929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5930 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5932 break 2
5933 fi
5934 done
5935 done
5936 IFS=$as_save_IFS
5937
5938 fi
5939 fi
5940 CC=$ac_cv_prog_CC
5941 if test -n "$CC"; then
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5943 $as_echo "$CC" >&6; }
5944 else
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5946 $as_echo "no" >&6; }
5947 fi
5948
5949
5950 fi
5951 if test -z "$ac_cv_prog_CC"; then
5952 ac_ct_CC=$CC
5953 # Extract the first word of "gcc", so it can be a program name with args.
5954 set dummy gcc; ac_word=$2
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5956 $as_echo_n "checking for $ac_word... " >&6; }
5957 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5958 $as_echo_n "(cached) " >&6
5959 else
5960 if test -n "$ac_ct_CC"; then
5961 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5962 else
5963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5964 for as_dir in $PATH
5965 do
5966 IFS=$as_save_IFS
5967 test -z "$as_dir" && as_dir=.
5968 for ac_exec_ext in '' $ac_executable_extensions; do
5969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5970 ac_cv_prog_ac_ct_CC="gcc"
5971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5972 break 2
5973 fi
5974 done
5975 done
5976 IFS=$as_save_IFS
5977
5978 fi
5979 fi
5980 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5981 if test -n "$ac_ct_CC"; then
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5983 $as_echo "$ac_ct_CC" >&6; }
5984 else
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5986 $as_echo "no" >&6; }
5987 fi
5988
5989 if test "x$ac_ct_CC" = x; then
5990 CC=""
5991 else
5992 case $cross_compiling:$ac_tool_warned in
5993 yes:)
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5995 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5996 ac_tool_warned=yes ;;
5997 esac
5998 CC=$ac_ct_CC
5999 fi
6000 else
6001 CC="$ac_cv_prog_CC"
6002 fi
6003
6004 if test -z "$CC"; then
6005 if test -n "$ac_tool_prefix"; then
6006 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6007 set dummy ${ac_tool_prefix}cc; ac_word=$2
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6009 $as_echo_n "checking for $ac_word... " >&6; }
6010 if ${ac_cv_prog_CC+:} false; then :
6011 $as_echo_n "(cached) " >&6
6012 else
6013 if test -n "$CC"; then
6014 ac_cv_prog_CC="$CC" # Let the user override the test.
6015 else
6016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6017 for as_dir in $PATH
6018 do
6019 IFS=$as_save_IFS
6020 test -z "$as_dir" && as_dir=.
6021 for ac_exec_ext in '' $ac_executable_extensions; do
6022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6023 ac_cv_prog_CC="${ac_tool_prefix}cc"
6024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6025 break 2
6026 fi
6027 done
6028 done
6029 IFS=$as_save_IFS
6030
6031 fi
6032 fi
6033 CC=$ac_cv_prog_CC
6034 if test -n "$CC"; then
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6036 $as_echo "$CC" >&6; }
6037 else
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6039 $as_echo "no" >&6; }
6040 fi
6041
6042
6043 fi
6044 fi
6045 if test -z "$CC"; then
6046 # Extract the first word of "cc", so it can be a program name with args.
6047 set dummy cc; ac_word=$2
6048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6049 $as_echo_n "checking for $ac_word... " >&6; }
6050 if ${ac_cv_prog_CC+:} false; then :
6051 $as_echo_n "(cached) " >&6
6052 else
6053 if test -n "$CC"; then
6054 ac_cv_prog_CC="$CC" # Let the user override the test.
6055 else
6056 ac_prog_rejected=no
6057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6058 for as_dir in $PATH
6059 do
6060 IFS=$as_save_IFS
6061 test -z "$as_dir" && as_dir=.
6062 for ac_exec_ext in '' $ac_executable_extensions; do
6063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6064 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6065 ac_prog_rejected=yes
6066 continue
6067 fi
6068 ac_cv_prog_CC="cc"
6069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6070 break 2
6071 fi
6072 done
6073 done
6074 IFS=$as_save_IFS
6075
6076 if test $ac_prog_rejected = yes; then
6077 # We found a bogon in the path, so make sure we never use it.
6078 set dummy $ac_cv_prog_CC
6079 shift
6080 if test $# != 0; then
6081 # We chose a different compiler from the bogus one.
6082 # However, it has the same basename, so the bogon will be chosen
6083 # first if we set CC to just the basename; use the full file name.
6084 shift
6085 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6086 fi
6087 fi
6088 fi
6089 fi
6090 CC=$ac_cv_prog_CC
6091 if test -n "$CC"; then
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6093 $as_echo "$CC" >&6; }
6094 else
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6096 $as_echo "no" >&6; }
6097 fi
6098
6099
6100 fi
6101 if test -z "$CC"; then
6102 if test -n "$ac_tool_prefix"; then
6103 for ac_prog in cl.exe
6104 do
6105 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6106 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6108 $as_echo_n "checking for $ac_word... " >&6; }
6109 if ${ac_cv_prog_CC+:} false; then :
6110 $as_echo_n "(cached) " >&6
6111 else
6112 if test -n "$CC"; then
6113 ac_cv_prog_CC="$CC" # Let the user override the test.
6114 else
6115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6116 for as_dir in $PATH
6117 do
6118 IFS=$as_save_IFS
6119 test -z "$as_dir" && as_dir=.
6120 for ac_exec_ext in '' $ac_executable_extensions; do
6121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6122 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6124 break 2
6125 fi
6126 done
6127 done
6128 IFS=$as_save_IFS
6129
6130 fi
6131 fi
6132 CC=$ac_cv_prog_CC
6133 if test -n "$CC"; then
6134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6135 $as_echo "$CC" >&6; }
6136 else
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6138 $as_echo "no" >&6; }
6139 fi
6140
6141
6142 test -n "$CC" && break
6143 done
6144 fi
6145 if test -z "$CC"; then
6146 ac_ct_CC=$CC
6147 for ac_prog in cl.exe
6148 do
6149 # Extract the first word of "$ac_prog", so it can be a program name with args.
6150 set dummy $ac_prog; ac_word=$2
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6152 $as_echo_n "checking for $ac_word... " >&6; }
6153 if ${ac_cv_prog_ac_ct_CC+:} false; then :
6154 $as_echo_n "(cached) " >&6
6155 else
6156 if test -n "$ac_ct_CC"; then
6157 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6158 else
6159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6160 for as_dir in $PATH
6161 do
6162 IFS=$as_save_IFS
6163 test -z "$as_dir" && as_dir=.
6164 for ac_exec_ext in '' $ac_executable_extensions; do
6165 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6166 ac_cv_prog_ac_ct_CC="$ac_prog"
6167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6168 break 2
6169 fi
6170 done
6171 done
6172 IFS=$as_save_IFS
6173
6174 fi
6175 fi
6176 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6177 if test -n "$ac_ct_CC"; then
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6179 $as_echo "$ac_ct_CC" >&6; }
6180 else
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6182 $as_echo "no" >&6; }
6183 fi
6184
6185
6186 test -n "$ac_ct_CC" && break
6187 done
6188
6189 if test "x$ac_ct_CC" = x; then
6190 CC=""
6191 else
6192 case $cross_compiling:$ac_tool_warned in
6193 yes:)
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6195 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6196 ac_tool_warned=yes ;;
6197 esac
6198 CC=$ac_ct_CC
6199 fi
6200 fi
6201
6202 fi
6203
6204
6205 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6206 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6207 as_fn_error $? "no acceptable C compiler found in \$PATH
6208 See \`config.log' for more details" "$LINENO" 5; }
6209
6210 # Provide some information about the compiler.
6211 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6212 set X $ac_compile
6213 ac_compiler=$2
6214 for ac_option in --version -v -V -qversion; do
6215 { { ac_try="$ac_compiler $ac_option >&5"
6216 case "(($ac_try" in
6217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6218 *) ac_try_echo=$ac_try;;
6219 esac
6220 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6221 $as_echo "$ac_try_echo"; } >&5
6222 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6223 ac_status=$?
6224 if test -s conftest.err; then
6225 sed '10a\
6226 ... rest of stderr output deleted ...
6227 10q' conftest.err >conftest.er1
6228 cat conftest.er1 >&5
6229 fi
6230 rm -f conftest.er1 conftest.err
6231 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6232 test $ac_status = 0; }
6233 done
6234
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6236 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6237 if ${ac_cv_c_compiler_gnu+:} false; then :
6238 $as_echo_n "(cached) " >&6
6239 else
6240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6241 /* end confdefs.h. */
6242
6243 int
6244 main ()
6245 {
6246 #ifndef __GNUC__
6247 choke me
6248 #endif
6249
6250 ;
6251 return 0;
6252 }
6253 _ACEOF
6254 if ac_fn_c_try_compile "$LINENO"; then :
6255 ac_compiler_gnu=yes
6256 else
6257 ac_compiler_gnu=no
6258 fi
6259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6260 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6261
6262 fi
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6264 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
6265 if test $ac_compiler_gnu = yes; then
6266 GCC=yes
6267 else
6268 GCC=
6269 fi
6270 ac_test_CFLAGS=${CFLAGS+set}
6271 ac_save_CFLAGS=$CFLAGS
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6273 $as_echo_n "checking whether $CC accepts -g... " >&6; }
6274 if ${ac_cv_prog_cc_g+:} false; then :
6275 $as_echo_n "(cached) " >&6
6276 else
6277 ac_save_c_werror_flag=$ac_c_werror_flag
6278 ac_c_werror_flag=yes
6279 ac_cv_prog_cc_g=no
6280 CFLAGS="-g"
6281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6282 /* end confdefs.h. */
6283
6284 int
6285 main ()
6286 {
6287
6288 ;
6289 return 0;
6290 }
6291 _ACEOF
6292 if ac_fn_c_try_compile "$LINENO"; then :
6293 ac_cv_prog_cc_g=yes
6294 else
6295 CFLAGS=""
6296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6297 /* end confdefs.h. */
6298
6299 int
6300 main ()
6301 {
6302
6303 ;
6304 return 0;
6305 }
6306 _ACEOF
6307 if ac_fn_c_try_compile "$LINENO"; then :
6308
6309 else
6310 ac_c_werror_flag=$ac_save_c_werror_flag
6311 CFLAGS="-g"
6312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6313 /* end confdefs.h. */
6314
6315 int
6316 main ()
6317 {
6318
6319 ;
6320 return 0;
6321 }
6322 _ACEOF
6323 if ac_fn_c_try_compile "$LINENO"; then :
6324 ac_cv_prog_cc_g=yes
6325 fi
6326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6327 fi
6328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6329 fi
6330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6331 ac_c_werror_flag=$ac_save_c_werror_flag
6332 fi
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6334 $as_echo "$ac_cv_prog_cc_g" >&6; }
6335 if test "$ac_test_CFLAGS" = set; then
6336 CFLAGS=$ac_save_CFLAGS
6337 elif test $ac_cv_prog_cc_g = yes; then
6338 if test "$GCC" = yes; then
6339 CFLAGS="-g -O2"
6340 else
6341 CFLAGS="-g"
6342 fi
6343 else
6344 if test "$GCC" = yes; then
6345 CFLAGS="-O2"
6346 else
6347 CFLAGS=
6348 fi
6349 fi
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6351 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6352 if ${ac_cv_prog_cc_c89+:} false; then :
6353 $as_echo_n "(cached) " >&6
6354 else
6355 ac_cv_prog_cc_c89=no
6356 ac_save_CC=$CC
6357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6358 /* end confdefs.h. */
6359 #include <stdarg.h>
6360 #include <stdio.h>
6361 struct stat;
6362 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6363 struct buf { int x; };
6364 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6365 static char *e (p, i)
6366 char **p;
6367 int i;
6368 {
6369 return p[i];
6370 }
6371 static char *f (char * (*g) (char **, int), char **p, ...)
6372 {
6373 char *s;
6374 va_list v;
6375 va_start (v,p);
6376 s = g (p, va_arg (v,int));
6377 va_end (v);
6378 return s;
6379 }
6380
6381 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6382 function prototypes and stuff, but not '\xHH' hex character constants.
6383 These don't provoke an error unfortunately, instead are silently treated
6384 as 'x'. The following induces an error, until -std is added to get
6385 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6386 array size at least. It's necessary to write '\x00'==0 to get something
6387 that's true only with -std. */
6388 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6389
6390 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6391 inside strings and character constants. */
6392 #define FOO(x) 'x'
6393 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6394
6395 int test (int i, double x);
6396 struct s1 {int (*f) (int a);};
6397 struct s2 {int (*f) (double a);};
6398 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6399 int argc;
6400 char **argv;
6401 int
6402 main ()
6403 {
6404 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6405 ;
6406 return 0;
6407 }
6408 _ACEOF
6409 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6410 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6411 do
6412 CC="$ac_save_CC $ac_arg"
6413 if ac_fn_c_try_compile "$LINENO"; then :
6414 ac_cv_prog_cc_c89=$ac_arg
6415 fi
6416 rm -f core conftest.err conftest.$ac_objext
6417 test "x$ac_cv_prog_cc_c89" != "xno" && break
6418 done
6419 rm -f conftest.$ac_ext
6420 CC=$ac_save_CC
6421
6422 fi
6423 # AC_CACHE_VAL
6424 case "x$ac_cv_prog_cc_c89" in
6425 x)
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6427 $as_echo "none needed" >&6; } ;;
6428 xno)
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6430 $as_echo "unsupported" >&6; } ;;
6431 *)
6432 CC="$CC $ac_cv_prog_cc_c89"
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6434 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6435 esac
6436 if test "x$ac_cv_prog_cc_c89" != xno; then :
6437
6438 fi
6439
6440 ac_ext=c
6441 ac_cpp='$CPP $CPPFLAGS'
6442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6445
6446 ac_ext=c
6447 ac_cpp='$CPP $CPPFLAGS'
6448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6450 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6452 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
6453 if ${am_cv_prog_cc_c_o+:} false; then :
6454 $as_echo_n "(cached) " >&6
6455 else
6456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6457 /* end confdefs.h. */
6458
6459 int
6460 main ()
6461 {
6462
6463 ;
6464 return 0;
6465 }
6466 _ACEOF
6467 # Make sure it works both with $CC and with simple cc.
6468 # Following AC_PROG_CC_C_O, we do the test twice because some
6469 # compilers refuse to overwrite an existing .o file with -o,
6470 # though they will create one.
6471 am_cv_prog_cc_c_o=yes
6472 for am_i in 1 2; do
6473 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6474 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6475 ac_status=$?
6476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6477 (exit $ac_status); } \
6478 && test -f conftest2.$ac_objext; then
6479 : OK
6480 else
6481 am_cv_prog_cc_c_o=no
6482 break
6483 fi
6484 done
6485 rm -f core conftest*
6486 unset am_i
6487 fi
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6489 $as_echo "$am_cv_prog_cc_c_o" >&6; }
6490 if test "$am_cv_prog_cc_c_o" != yes; then
6491 # Losing compiler, so override with the script.
6492 # FIXME: It is wrong to rewrite CC.
6493 # But if we don't then we get into trouble of one sort or another.
6494 # A longer-term fix would be to have automake use am__CC in this case,
6495 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6496 CC="$am_aux_dir/compile $CC"
6497 fi
6498 ac_ext=c
6499 ac_cpp='$CPP $CPPFLAGS'
6500 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6501 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6502 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6503
6504
6505 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
6506
6507
6508 ac_aux_dir=
6509 for ac_dir in ../.. "$srcdir"/../..; do
6510 if test -f "$ac_dir/install-sh"; then
6511 ac_aux_dir=$ac_dir
6512 ac_install_sh="$ac_aux_dir/install-sh -c"
6513 break
6514 elif test -f "$ac_dir/install.sh"; then
6515 ac_aux_dir=$ac_dir
6516 ac_install_sh="$ac_aux_dir/install.sh -c"
6517 break
6518 elif test -f "$ac_dir/shtool"; then
6519 ac_aux_dir=$ac_dir
6520 ac_install_sh="$ac_aux_dir/shtool install -c"
6521 break
6522 fi
6523 done
6524 if test -z "$ac_aux_dir"; then
6525 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5
6526 fi
6527
6528 # These three variables are undocumented and unsupported,
6529 # and are intended to be withdrawn in a future Autoconf release.
6530 # They can cause serious problems if a builder's source tree is in a directory
6531 # whose full name contains unusual characters.
6532 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
6533 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
6534 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
6535
6536
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
6538 $as_echo_n "checking target system type... " >&6; }
6539 if ${ac_cv_target+:} false; then :
6540 $as_echo_n "(cached) " >&6
6541 else
6542 if test "x$target_alias" = x; then
6543 ac_cv_target=$ac_cv_host
6544 else
6545 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
6546 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
6547 fi
6548
6549 fi
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
6551 $as_echo "$ac_cv_target" >&6; }
6552 case $ac_cv_target in
6553 *-*-*) ;;
6554 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
6555 esac
6556 target=$ac_cv_target
6557 ac_save_IFS=$IFS; IFS='-'
6558 set x $ac_cv_target
6559 shift
6560 target_cpu=$1
6561 target_vendor=$2
6562 shift; shift
6563 # Remember, the first character of IFS is used to create $*,
6564 # except with old shells:
6565 target_os=$*
6566 IFS=$ac_save_IFS
6567 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
6568
6569
6570 # The aliases save the names the user supplied, while $host etc.
6571 # will get canonicalized.
6572 test -n "$target_alias" &&
6573 test "$program_prefix$program_suffix$program_transform_name" = \
6574 NONENONEs,x,x, &&
6575 program_prefix=${target_alias}-
6576
6577
6578
6579
6580
6581
6582
6583 LIBC_FATAL_STDERR_=1
6584 export LIBC_FATAL_STDERR_
6585
6586 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6587 if test "x$ac_cv_type_size_t" = xyes; then :
6588
6589 else
6590
6591 cat >>confdefs.h <<_ACEOF
6592 #define size_t unsigned int
6593 _ACEOF
6594
6595 fi
6596
6597 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6598 # for constant arguments. Useless!
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6600 $as_echo_n "checking for working alloca.h... " >&6; }
6601 if ${ac_cv_working_alloca_h+:} false; then :
6602 $as_echo_n "(cached) " >&6
6603 else
6604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6605 /* end confdefs.h. */
6606 #include <alloca.h>
6607 int
6608 main ()
6609 {
6610 char *p = (char *) alloca (2 * sizeof (int));
6611 if (p) return 0;
6612 ;
6613 return 0;
6614 }
6615 _ACEOF
6616 if ac_fn_c_try_link "$LINENO"; then :
6617 ac_cv_working_alloca_h=yes
6618 else
6619 ac_cv_working_alloca_h=no
6620 fi
6621 rm -f core conftest.err conftest.$ac_objext \
6622 conftest$ac_exeext conftest.$ac_ext
6623 fi
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6625 $as_echo "$ac_cv_working_alloca_h" >&6; }
6626 if test $ac_cv_working_alloca_h = yes; then
6627
6628 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6629
6630 fi
6631
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6633 $as_echo_n "checking for alloca... " >&6; }
6634 if ${ac_cv_func_alloca_works+:} false; then :
6635 $as_echo_n "(cached) " >&6
6636 else
6637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6638 /* end confdefs.h. */
6639 #ifdef __GNUC__
6640 # define alloca __builtin_alloca
6641 #else
6642 # ifdef _MSC_VER
6643 # include <malloc.h>
6644 # define alloca _alloca
6645 # else
6646 # ifdef HAVE_ALLOCA_H
6647 # include <alloca.h>
6648 # else
6649 # ifdef _AIX
6650 #pragma alloca
6651 # else
6652 # ifndef alloca /* predefined by HP cc +Olibcalls */
6653 void *alloca (size_t);
6654 # endif
6655 # endif
6656 # endif
6657 # endif
6658 #endif
6659
6660 int
6661 main ()
6662 {
6663 char *p = (char *) alloca (1);
6664 if (p) return 0;
6665 ;
6666 return 0;
6667 }
6668 _ACEOF
6669 if ac_fn_c_try_link "$LINENO"; then :
6670 ac_cv_func_alloca_works=yes
6671 else
6672 ac_cv_func_alloca_works=no
6673 fi
6674 rm -f core conftest.err conftest.$ac_objext \
6675 conftest$ac_exeext conftest.$ac_ext
6676 fi
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6678 $as_echo "$ac_cv_func_alloca_works" >&6; }
6679
6680 if test $ac_cv_func_alloca_works = yes; then
6681
6682 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6683
6684 else
6685 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6686 # that cause trouble. Some versions do not even contain alloca or
6687 # contain a buggy version. If you still want to use their alloca,
6688 # use ar to extract alloca.o from them instead of compiling alloca.c.
6689
6690
6691
6692
6693
6694 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6695
6696 $as_echo "#define C_ALLOCA 1" >>confdefs.h
6697
6698
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6700 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6701 if ${ac_cv_os_cray+:} false; then :
6702 $as_echo_n "(cached) " >&6
6703 else
6704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6705 /* end confdefs.h. */
6706 #if defined CRAY && ! defined CRAY2
6707 webecray
6708 #else
6709 wenotbecray
6710 #endif
6711
6712 _ACEOF
6713 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6714 $EGREP "webecray" >/dev/null 2>&1; then :
6715 ac_cv_os_cray=yes
6716 else
6717 ac_cv_os_cray=no
6718 fi
6719 rm -f conftest*
6720
6721 fi
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6723 $as_echo "$ac_cv_os_cray" >&6; }
6724 if test $ac_cv_os_cray = yes; then
6725 for ac_func in _getb67 GETB67 getb67; do
6726 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6727 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6728 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6729
6730 cat >>confdefs.h <<_ACEOF
6731 #define CRAY_STACKSEG_END $ac_func
6732 _ACEOF
6733
6734 break
6735 fi
6736
6737 done
6738 fi
6739
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6741 $as_echo_n "checking stack direction for C alloca... " >&6; }
6742 if ${ac_cv_c_stack_direction+:} false; then :
6743 $as_echo_n "(cached) " >&6
6744 else
6745 if test "$cross_compiling" = yes; then :
6746 ac_cv_c_stack_direction=0
6747 else
6748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6749 /* end confdefs.h. */
6750 $ac_includes_default
6751 int
6752 find_stack_direction (int *addr, int depth)
6753 {
6754 int dir, dummy = 0;
6755 if (! addr)
6756 addr = &dummy;
6757 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
6758 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
6759 return dir + dummy;
6760 }
6761
6762 int
6763 main (int argc, char **argv)
6764 {
6765 return find_stack_direction (0, argc + !argv + 20) < 0;
6766 }
6767 _ACEOF
6768 if ac_fn_c_try_run "$LINENO"; then :
6769 ac_cv_c_stack_direction=1
6770 else
6771 ac_cv_c_stack_direction=-1
6772 fi
6773 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6774 conftest.$ac_objext conftest.beam conftest.$ac_ext
6775 fi
6776
6777 fi
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6779 $as_echo "$ac_cv_c_stack_direction" >&6; }
6780 cat >>confdefs.h <<_ACEOF
6781 #define STACK_DIRECTION $ac_cv_c_stack_direction
6782 _ACEOF
6783
6784
6785 fi
6786
6787
6788 GNULIB_INET_NTOP=0;
6789 GNULIB_INET_PTON=0;
6790 HAVE_DECL_INET_NTOP=1;
6791 HAVE_DECL_INET_PTON=1;
6792 REPLACE_INET_NTOP=0;
6793 REPLACE_INET_PTON=0;
6794
6795
6796
6797
6798
6799 for ac_header in $gl_header_list
6800 do :
6801 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6802 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6803 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6804 cat >>confdefs.h <<_ACEOF
6805 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6806 _ACEOF
6807
6808 fi
6809
6810 done
6811
6812
6813
6814
6815
6816
6817
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
6819 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
6820 if ${gl_cv_have_include_next+:} false; then :
6821 $as_echo_n "(cached) " >&6
6822 else
6823 rm -rf conftestd1a conftestd1b conftestd2
6824 mkdir conftestd1a conftestd1b conftestd2
6825 cat <<EOF > conftestd1a/conftest.h
6826 #define DEFINED_IN_CONFTESTD1
6827 #include_next <conftest.h>
6828 #ifdef DEFINED_IN_CONFTESTD2
6829 int foo;
6830 #else
6831 #error "include_next doesn't work"
6832 #endif
6833 EOF
6834 cat <<EOF > conftestd1b/conftest.h
6835 #define DEFINED_IN_CONFTESTD1
6836 #include <stdio.h>
6837 #include_next <conftest.h>
6838 #ifdef DEFINED_IN_CONFTESTD2
6839 int foo;
6840 #else
6841 #error "include_next doesn't work"
6842 #endif
6843 EOF
6844 cat <<EOF > conftestd2/conftest.h
6845 #ifndef DEFINED_IN_CONFTESTD1
6846 #error "include_next test doesn't work"
6847 #endif
6848 #define DEFINED_IN_CONFTESTD2
6849 EOF
6850 gl_save_CPPFLAGS="$CPPFLAGS"
6851 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
6852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6853 /* end confdefs.h. */
6854 #include <conftest.h>
6855 _ACEOF
6856 if ac_fn_c_try_compile "$LINENO"; then :
6857 gl_cv_have_include_next=yes
6858 else
6859 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
6860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6861 /* end confdefs.h. */
6862 #include <conftest.h>
6863 _ACEOF
6864 if ac_fn_c_try_compile "$LINENO"; then :
6865 gl_cv_have_include_next=buggy
6866 else
6867 gl_cv_have_include_next=no
6868 fi
6869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6870
6871 fi
6872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6873 CPPFLAGS="$gl_save_CPPFLAGS"
6874 rm -rf conftestd1a conftestd1b conftestd2
6875
6876 fi
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
6878 $as_echo "$gl_cv_have_include_next" >&6; }
6879 PRAGMA_SYSTEM_HEADER=
6880 if test $gl_cv_have_include_next = yes; then
6881 INCLUDE_NEXT=include_next
6882 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
6883 if test -n "$GCC"; then
6884 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
6885 fi
6886 else
6887 if test $gl_cv_have_include_next = buggy; then
6888 INCLUDE_NEXT=include
6889 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
6890 else
6891 INCLUDE_NEXT=include
6892 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
6893 fi
6894 fi
6895
6896
6897
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
6899 $as_echo_n "checking whether system header files limit the line length... " >&6; }
6900 if ${gl_cv_pragma_columns+:} false; then :
6901 $as_echo_n "(cached) " >&6
6902 else
6903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6904 /* end confdefs.h. */
6905
6906 #ifdef __TANDEM
6907 choke me
6908 #endif
6909
6910 _ACEOF
6911 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6912 $EGREP "choke me" >/dev/null 2>&1; then :
6913 gl_cv_pragma_columns=yes
6914 else
6915 gl_cv_pragma_columns=no
6916 fi
6917 rm -f conftest*
6918
6919
6920 fi
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
6922 $as_echo "$gl_cv_pragma_columns" >&6; }
6923 if test $gl_cv_pragma_columns = yes; then
6924 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
6925 else
6926 PRAGMA_COLUMNS=
6927 fi
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937 :
6938
6939
6940
6941
6942
6943 if test $ac_cv_header_features_h = yes; then
6944 HAVE_FEATURES_H=1
6945 else
6946 HAVE_FEATURES_H=0
6947 fi
6948
6949
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
6951 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6952 if test -z "$MKDIR_P"; then
6953 if ${ac_cv_path_mkdir+:} false; then :
6954 $as_echo_n "(cached) " >&6
6955 else
6956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6957 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6958 do
6959 IFS=$as_save_IFS
6960 test -z "$as_dir" && as_dir=.
6961 for ac_prog in mkdir gmkdir; do
6962 for ac_exec_ext in '' $ac_executable_extensions; do
6963 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
6964 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6965 'mkdir (GNU coreutils) '* | \
6966 'mkdir (coreutils) '* | \
6967 'mkdir (fileutils) '4.1*)
6968 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6969 break 3;;
6970 esac
6971 done
6972 done
6973 done
6974 IFS=$as_save_IFS
6975
6976 fi
6977
6978 test -d ./--version && rmdir ./--version
6979 if test "${ac_cv_path_mkdir+set}" = set; then
6980 MKDIR_P="$ac_cv_path_mkdir -p"
6981 else
6982 # As a last resort, use the slow shell script. Don't cache a
6983 # value for MKDIR_P within a source directory, because that will
6984 # break other packages using the cache if that directory is
6985 # removed, or if the value is a relative name.
6986 MKDIR_P="$ac_install_sh -d"
6987 fi
6988 fi
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
6990 $as_echo "$MKDIR_P" >&6; }
6991
6992
6993 GNULIB__EXIT=0;
6994 GNULIB_ATOLL=0;
6995 GNULIB_CALLOC_POSIX=0;
6996 GNULIB_CANONICALIZE_FILE_NAME=0;
6997 GNULIB_GETLOADAVG=0;
6998 GNULIB_GETSUBOPT=0;
6999 GNULIB_GRANTPT=0;
7000 GNULIB_MALLOC_POSIX=0;
7001 GNULIB_MBTOWC=0;
7002 GNULIB_MKDTEMP=0;
7003 GNULIB_MKOSTEMP=0;
7004 GNULIB_MKOSTEMPS=0;
7005 GNULIB_MKSTEMP=0;
7006 GNULIB_MKSTEMPS=0;
7007 GNULIB_POSIX_OPENPT=0;
7008 GNULIB_PTSNAME=0;
7009 GNULIB_PTSNAME_R=0;
7010 GNULIB_PUTENV=0;
7011 GNULIB_QSORT_R=0;
7012 GNULIB_RANDOM=0;
7013 GNULIB_RANDOM_R=0;
7014 GNULIB_REALLOC_POSIX=0;
7015 GNULIB_REALPATH=0;
7016 GNULIB_RPMATCH=0;
7017 GNULIB_SECURE_GETENV=0;
7018 GNULIB_SETENV=0;
7019 GNULIB_STRTOD=0;
7020 GNULIB_STRTOLL=0;
7021 GNULIB_STRTOULL=0;
7022 GNULIB_SYSTEM_POSIX=0;
7023 GNULIB_UNLOCKPT=0;
7024 GNULIB_UNSETENV=0;
7025 GNULIB_WCTOMB=0;
7026 HAVE__EXIT=1;
7027 HAVE_ATOLL=1;
7028 HAVE_CANONICALIZE_FILE_NAME=1;
7029 HAVE_DECL_GETLOADAVG=1;
7030 HAVE_GETSUBOPT=1;
7031 HAVE_GRANTPT=1;
7032 HAVE_MKDTEMP=1;
7033 HAVE_MKOSTEMP=1;
7034 HAVE_MKOSTEMPS=1;
7035 HAVE_MKSTEMP=1;
7036 HAVE_MKSTEMPS=1;
7037 HAVE_POSIX_OPENPT=1;
7038 HAVE_PTSNAME=1;
7039 HAVE_PTSNAME_R=1;
7040 HAVE_QSORT_R=1;
7041 HAVE_RANDOM=1;
7042 HAVE_RANDOM_H=1;
7043 HAVE_RANDOM_R=1;
7044 HAVE_REALPATH=1;
7045 HAVE_RPMATCH=1;
7046 HAVE_SECURE_GETENV=1;
7047 HAVE_SETENV=1;
7048 HAVE_DECL_SETENV=1;
7049 HAVE_STRTOD=1;
7050 HAVE_STRTOLL=1;
7051 HAVE_STRTOULL=1;
7052 HAVE_STRUCT_RANDOM_DATA=1;
7053 HAVE_SYS_LOADAVG_H=0;
7054 HAVE_UNLOCKPT=1;
7055 HAVE_DECL_UNSETENV=1;
7056 REPLACE_CALLOC=0;
7057 REPLACE_CANONICALIZE_FILE_NAME=0;
7058 REPLACE_MALLOC=0;
7059 REPLACE_MBTOWC=0;
7060 REPLACE_MKSTEMP=0;
7061 REPLACE_PTSNAME=0;
7062 REPLACE_PTSNAME_R=0;
7063 REPLACE_PUTENV=0;
7064 REPLACE_QSORT_R=0;
7065 REPLACE_RANDOM_R=0;
7066 REPLACE_REALLOC=0;
7067 REPLACE_REALPATH=0;
7068 REPLACE_SETENV=0;
7069 REPLACE_STRTOD=0;
7070 REPLACE_UNSETENV=0;
7071 REPLACE_WCTOMB=0;
7072
7073
7074
7075
7076
7077 for ac_func in $gl_func_list
7078 do :
7079 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7080 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7081 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7082 cat >>confdefs.h <<_ACEOF
7083 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7084 _ACEOF
7085
7086 fi
7087 done
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
7106 $as_echo_n "checking whether // is distinct from /... " >&6; }
7107 if ${gl_cv_double_slash_root+:} false; then :
7108 $as_echo_n "(cached) " >&6
7109 else
7110 if test x"$cross_compiling" = xyes ; then
7111 # When cross-compiling, there is no way to tell whether // is special
7112 # short of a list of hosts. However, the only known hosts to date
7113 # that have a distinct // are Apollo DomainOS (too old to port to),
7114 # Cygwin, and z/OS. If anyone knows of another system for which // has
7115 # special semantics and is distinct from /, please report it to
7116 # <bug-gnulib@gnu.org>.
7117 case $host in
7118 *-cygwin | i370-ibm-openedition)
7119 gl_cv_double_slash_root=yes ;;
7120 *)
7121 # Be optimistic and assume that / and // are the same when we
7122 # don't know.
7123 gl_cv_double_slash_root='unknown, assuming no' ;;
7124 esac
7125 else
7126 set x `ls -di / // 2>/dev/null`
7127 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
7128 gl_cv_double_slash_root=no
7129 else
7130 gl_cv_double_slash_root=yes
7131 fi
7132 fi
7133 fi
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
7135 $as_echo "$gl_cv_double_slash_root" >&6; }
7136 if test "$gl_cv_double_slash_root" = yes; then
7137
7138 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
7139
7140 fi
7141
7142
7143
7144
7145
7146
7147
7148
7149 :
7150
7151
7152
7153
7154
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether realpath works" >&5
7156 $as_echo_n "checking whether realpath works... " >&6; }
7157 if ${gl_cv_func_realpath_works+:} false; then :
7158 $as_echo_n "(cached) " >&6
7159 else
7160
7161 touch conftest.a
7162 mkdir conftest.d
7163 if test "$cross_compiling" = yes; then :
7164 case "$host_os" in
7165 # Guess yes on glibc systems.
7166 *-gnu* | gnu*) gl_cv_func_realpath_works="guessing yes" ;;
7167 # If we don't know, assume the worst.
7168 *) gl_cv_func_realpath_works="guessing no" ;;
7169 esac
7170
7171 else
7172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7173 /* end confdefs.h. */
7174
7175
7176
7177 #include <stdlib.h>
7178 #if defined __MACH__ && defined __APPLE__
7179 /* Avoid a crash on Mac OS X. */
7180 #include <mach/mach.h>
7181 #include <mach/mach_error.h>
7182 #include <mach/thread_status.h>
7183 #include <mach/exception.h>
7184 #include <mach/task.h>
7185 #include <pthread.h>
7186 /* The exception port on which our thread listens. */
7187 static mach_port_t our_exception_port;
7188 /* The main function of the thread listening for exceptions of type
7189 EXC_BAD_ACCESS. */
7190 static void *
7191 mach_exception_thread (void *arg)
7192 {
7193 /* Buffer for a message to be received. */
7194 struct {
7195 mach_msg_header_t head;
7196 mach_msg_body_t msgh_body;
7197 char data[1024];
7198 } msg;
7199 mach_msg_return_t retval;
7200 /* Wait for a message on the exception port. */
7201 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
7202 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
7203 if (retval != MACH_MSG_SUCCESS)
7204 abort ();
7205 exit (1);
7206 }
7207 static void
7208 nocrash_init (void)
7209 {
7210 mach_port_t self = mach_task_self ();
7211 /* Allocate a port on which the thread shall listen for exceptions. */
7212 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
7213 == KERN_SUCCESS) {
7214 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
7215 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
7216 MACH_MSG_TYPE_MAKE_SEND)
7217 == KERN_SUCCESS) {
7218 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
7219 for us. */
7220 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
7221 /* Create the thread listening on the exception port. */
7222 pthread_attr_t attr;
7223 pthread_t thread;
7224 if (pthread_attr_init (&attr) == 0
7225 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
7226 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
7227 pthread_attr_destroy (&attr);
7228 /* Replace the exception port info for these exceptions with our own.
7229 Note that we replace the exception port for the entire task, not only
7230 for a particular thread. This has the effect that when our exception
7231 port gets the message, the thread specific exception port has already
7232 been asked, and we don't need to bother about it.
7233 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
7234 task_set_exception_ports (self, mask, our_exception_port,
7235 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
7236 }
7237 }
7238 }
7239 }
7240 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
7241 /* Avoid a crash on native Windows. */
7242 #define WIN32_LEAN_AND_MEAN
7243 #include <windows.h>
7244 #include <winerror.h>
7245 static LONG WINAPI
7246 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
7247 {
7248 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
7249 {
7250 case EXCEPTION_ACCESS_VIOLATION:
7251 case EXCEPTION_IN_PAGE_ERROR:
7252 case EXCEPTION_STACK_OVERFLOW:
7253 case EXCEPTION_GUARD_PAGE:
7254 case EXCEPTION_PRIV_INSTRUCTION:
7255 case EXCEPTION_ILLEGAL_INSTRUCTION:
7256 case EXCEPTION_DATATYPE_MISALIGNMENT:
7257 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
7258 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
7259 exit (1);
7260 }
7261 return EXCEPTION_CONTINUE_SEARCH;
7262 }
7263 static void
7264 nocrash_init (void)
7265 {
7266 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
7267 }
7268 #else
7269 /* Avoid a crash on POSIX systems. */
7270 #include <signal.h>
7271 #include <unistd.h>
7272 /* A POSIX signal handler. */
7273 static void
7274 exception_handler (int sig)
7275 {
7276 _exit (1);
7277 }
7278 static void
7279 nocrash_init (void)
7280 {
7281 #ifdef SIGSEGV
7282 signal (SIGSEGV, exception_handler);
7283 #endif
7284 #ifdef SIGBUS
7285 signal (SIGBUS, exception_handler);
7286 #endif
7287 }
7288 #endif
7289
7290 #include <stdlib.h>
7291 #include <string.h>
7292
7293 int
7294 main ()
7295 {
7296
7297 int result = 0;
7298 {
7299 char *name = realpath ("conftest.a", NULL);
7300 if (!(name && *name == '/'))
7301 result |= 1;
7302 free (name);
7303 }
7304 {
7305 char *name = realpath ("conftest.b/../conftest.a", NULL);
7306 if (name != NULL)
7307 result |= 2;
7308 free (name);
7309 }
7310 {
7311 char *name = realpath ("conftest.a/", NULL);
7312 if (name != NULL)
7313 result |= 4;
7314 free (name);
7315 }
7316 {
7317 char *name1 = realpath (".", NULL);
7318 char *name2 = realpath ("conftest.d//./..", NULL);
7319 if (! name1 || ! name2 || strcmp (name1, name2))
7320 result |= 8;
7321 free (name1);
7322 free (name2);
7323 }
7324 return result;
7325
7326 ;
7327 return 0;
7328 }
7329
7330 _ACEOF
7331 if ac_fn_c_try_run "$LINENO"; then :
7332 gl_cv_func_realpath_works=yes
7333 else
7334 gl_cv_func_realpath_works=no
7335 fi
7336 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7337 conftest.$ac_objext conftest.beam conftest.$ac_ext
7338 fi
7339
7340 rm -rf conftest.a conftest.d
7341
7342 fi
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_realpath_works" >&5
7344 $as_echo "$gl_cv_func_realpath_works" >&6; }
7345 case "$gl_cv_func_realpath_works" in
7346 *yes)
7347
7348 $as_echo "#define FUNC_REALPATH_WORKS 1" >>confdefs.h
7349
7350 ;;
7351 esac
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
7384 GNULIB_CHDIR=0;
7385 GNULIB_CHOWN=0;
7386 GNULIB_CLOSE=0;
7387 GNULIB_DUP=0;
7388 GNULIB_DUP2=0;
7389 GNULIB_DUP3=0;
7390 GNULIB_ENVIRON=0;
7391 GNULIB_EUIDACCESS=0;
7392 GNULIB_FACCESSAT=0;
7393 GNULIB_FCHDIR=0;
7394 GNULIB_FCHOWNAT=0;
7395 GNULIB_FDATASYNC=0;
7396 GNULIB_FSYNC=0;
7397 GNULIB_FTRUNCATE=0;
7398 GNULIB_GETCWD=0;
7399 GNULIB_GETDOMAINNAME=0;
7400 GNULIB_GETDTABLESIZE=0;
7401 GNULIB_GETGROUPS=0;
7402 GNULIB_GETHOSTNAME=0;
7403 GNULIB_GETLOGIN=0;
7404 GNULIB_GETLOGIN_R=0;
7405 GNULIB_GETPAGESIZE=0;
7406 GNULIB_GETUSERSHELL=0;
7407 GNULIB_GROUP_MEMBER=0;
7408 GNULIB_ISATTY=0;
7409 GNULIB_LCHOWN=0;
7410 GNULIB_LINK=0;
7411 GNULIB_LINKAT=0;
7412 GNULIB_LSEEK=0;
7413 GNULIB_PIPE=0;
7414 GNULIB_PIPE2=0;
7415 GNULIB_PREAD=0;
7416 GNULIB_PWRITE=0;
7417 GNULIB_READ=0;
7418 GNULIB_READLINK=0;
7419 GNULIB_READLINKAT=0;
7420 GNULIB_RMDIR=0;
7421 GNULIB_SETHOSTNAME=0;
7422 GNULIB_SLEEP=0;
7423 GNULIB_SYMLINK=0;
7424 GNULIB_SYMLINKAT=0;
7425 GNULIB_TTYNAME_R=0;
7426 GNULIB_UNISTD_H_NONBLOCKING=0;
7427 GNULIB_UNISTD_H_SIGPIPE=0;
7428 GNULIB_UNLINK=0;
7429 GNULIB_UNLINKAT=0;
7430 GNULIB_USLEEP=0;
7431 GNULIB_WRITE=0;
7432 HAVE_CHOWN=1;
7433 HAVE_DUP2=1;
7434 HAVE_DUP3=1;
7435 HAVE_EUIDACCESS=1;
7436 HAVE_FACCESSAT=1;
7437 HAVE_FCHDIR=1;
7438 HAVE_FCHOWNAT=1;
7439 HAVE_FDATASYNC=1;
7440 HAVE_FSYNC=1;
7441 HAVE_FTRUNCATE=1;
7442 HAVE_GETDTABLESIZE=1;
7443 HAVE_GETGROUPS=1;
7444 HAVE_GETHOSTNAME=1;
7445 HAVE_GETLOGIN=1;
7446 HAVE_GETPAGESIZE=1;
7447 HAVE_GROUP_MEMBER=1;
7448 HAVE_LCHOWN=1;
7449 HAVE_LINK=1;
7450 HAVE_LINKAT=1;
7451 HAVE_PIPE=1;
7452 HAVE_PIPE2=1;
7453 HAVE_PREAD=1;
7454 HAVE_PWRITE=1;
7455 HAVE_READLINK=1;
7456 HAVE_READLINKAT=1;
7457 HAVE_SETHOSTNAME=1;
7458 HAVE_SLEEP=1;
7459 HAVE_SYMLINK=1;
7460 HAVE_SYMLINKAT=1;
7461 HAVE_UNLINKAT=1;
7462 HAVE_USLEEP=1;
7463 HAVE_DECL_ENVIRON=1;
7464 HAVE_DECL_FCHDIR=1;
7465 HAVE_DECL_FDATASYNC=1;
7466 HAVE_DECL_GETDOMAINNAME=1;
7467 HAVE_DECL_GETLOGIN_R=1;
7468 HAVE_DECL_GETPAGESIZE=1;
7469 HAVE_DECL_GETUSERSHELL=1;
7470 HAVE_DECL_SETHOSTNAME=1;
7471 HAVE_DECL_TTYNAME_R=1;
7472 HAVE_OS_H=0;
7473 HAVE_SYS_PARAM_H=0;
7474 REPLACE_CHOWN=0;
7475 REPLACE_CLOSE=0;
7476 REPLACE_DUP=0;
7477 REPLACE_DUP2=0;
7478 REPLACE_FCHOWNAT=0;
7479 REPLACE_FTRUNCATE=0;
7480 REPLACE_GETCWD=0;
7481 REPLACE_GETDOMAINNAME=0;
7482 REPLACE_GETDTABLESIZE=0;
7483 REPLACE_GETLOGIN_R=0;
7484 REPLACE_GETGROUPS=0;
7485 REPLACE_GETPAGESIZE=0;
7486 REPLACE_ISATTY=0;
7487 REPLACE_LCHOWN=0;
7488 REPLACE_LINK=0;
7489 REPLACE_LINKAT=0;
7490 REPLACE_LSEEK=0;
7491 REPLACE_PREAD=0;
7492 REPLACE_PWRITE=0;
7493 REPLACE_READ=0;
7494 REPLACE_READLINK=0;
7495 REPLACE_READLINKAT=0;
7496 REPLACE_RMDIR=0;
7497 REPLACE_SLEEP=0;
7498 REPLACE_SYMLINK=0;
7499 REPLACE_SYMLINKAT=0;
7500 REPLACE_TTYNAME_R=0;
7501 REPLACE_UNLINK=0;
7502 REPLACE_UNLINKAT=0;
7503 REPLACE_USLEEP=0;
7504 REPLACE_WRITE=0;
7505 UNISTD_H_HAVE_WINSOCK2_H=0;
7506 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
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
7539 if test $ac_cv_func__set_invalid_parameter_handler = yes; then
7540 HAVE_MSVC_INVALID_PARAMETER_HANDLER=1
7541
7542 $as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
7543
7544 else
7545 HAVE_MSVC_INVALID_PARAMETER_HANDLER=0
7546 fi
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560 GNULIB_OPENDIR=0;
7561 GNULIB_READDIR=0;
7562 GNULIB_REWINDDIR=0;
7563 GNULIB_CLOSEDIR=0;
7564 GNULIB_DIRFD=0;
7565 GNULIB_FDOPENDIR=0;
7566 GNULIB_SCANDIR=0;
7567 GNULIB_ALPHASORT=0;
7568 HAVE_OPENDIR=1;
7569 HAVE_READDIR=1;
7570 HAVE_REWINDDIR=1;
7571 HAVE_CLOSEDIR=1;
7572 HAVE_DECL_DIRFD=1;
7573 HAVE_DECL_FDOPENDIR=1;
7574 HAVE_FDOPENDIR=1;
7575 HAVE_SCANDIR=1;
7576 HAVE_ALPHASORT=1;
7577 REPLACE_OPENDIR=0;
7578 REPLACE_CLOSEDIR=0;
7579 REPLACE_DIRFD=0;
7580 REPLACE_FDOPENDIR=0;
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592 :
7593
7594
7595
7596
7597
7598
7599
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
7601 $as_echo_n "checking if environ is properly declared... " >&6; }
7602 if ${gt_cv_var_environ_declaration+:} false; then :
7603 $as_echo_n "(cached) " >&6
7604 else
7605
7606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7607 /* end confdefs.h. */
7608 #if HAVE_UNISTD_H
7609 #include <unistd.h>
7610 #endif
7611 /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>. */
7612 #include <stdlib.h>
7613
7614 extern struct { int foo; } environ;
7615 int
7616 main ()
7617 {
7618 environ.foo = 1;
7619 ;
7620 return 0;
7621 }
7622 _ACEOF
7623 if ac_fn_c_try_compile "$LINENO"; then :
7624 gt_cv_var_environ_declaration=no
7625 else
7626 gt_cv_var_environ_declaration=yes
7627 fi
7628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7629 fi
7630
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
7632 $as_echo "$gt_cv_var_environ_declaration" >&6; }
7633 if test $gt_cv_var_environ_declaration = yes; then
7634
7635 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
7636
7637 fi
7638
7639
7640 if test $gt_cv_var_environ_declaration != yes; then
7641 HAVE_DECL_ENVIRON=0
7642 fi
7643
7644
7645
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
7647 $as_echo_n "checking for complete errno.h... " >&6; }
7648 if ${gl_cv_header_errno_h_complete+:} false; then :
7649 $as_echo_n "(cached) " >&6
7650 else
7651
7652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7653 /* end confdefs.h. */
7654
7655 #include <errno.h>
7656 #if !defined ETXTBSY
7657 booboo
7658 #endif
7659 #if !defined ENOMSG
7660 booboo
7661 #endif
7662 #if !defined EIDRM
7663 booboo
7664 #endif
7665 #if !defined ENOLINK
7666 booboo
7667 #endif
7668 #if !defined EPROTO
7669 booboo
7670 #endif
7671 #if !defined EMULTIHOP
7672 booboo
7673 #endif
7674 #if !defined EBADMSG
7675 booboo
7676 #endif
7677 #if !defined EOVERFLOW
7678 booboo
7679 #endif
7680 #if !defined ENOTSUP
7681 booboo
7682 #endif
7683 #if !defined ENETRESET
7684 booboo
7685 #endif
7686 #if !defined ECONNABORTED
7687 booboo
7688 #endif
7689 #if !defined ESTALE
7690 booboo
7691 #endif
7692 #if !defined EDQUOT
7693 booboo
7694 #endif
7695 #if !defined ECANCELED
7696 booboo
7697 #endif
7698 #if !defined EOWNERDEAD
7699 booboo
7700 #endif
7701 #if !defined ENOTRECOVERABLE
7702 booboo
7703 #endif
7704 #if !defined EILSEQ
7705 booboo
7706 #endif
7707
7708 _ACEOF
7709 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7710 $EGREP "booboo" >/dev/null 2>&1; then :
7711 gl_cv_header_errno_h_complete=no
7712 else
7713 gl_cv_header_errno_h_complete=yes
7714 fi
7715 rm -f conftest*
7716
7717
7718 fi
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
7720 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
7721 if test $gl_cv_header_errno_h_complete = yes; then
7722 ERRNO_H=''
7723 else
7724
7725
7726
7727
7728
7729
7730
7731
7732 if test $gl_cv_have_include_next = yes; then
7733 gl_cv_next_errno_h='<'errno.h'>'
7734 else
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
7736 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
7737 if ${gl_cv_next_errno_h+:} false; then :
7738 $as_echo_n "(cached) " >&6
7739 else
7740
7741
7742
7743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7744 /* end confdefs.h. */
7745 #include <errno.h>
7746 _ACEOF
7747 case "$host_os" in
7748 aix*) gl_absname_cpp="$ac_cpp -C" ;;
7749 *) gl_absname_cpp="$ac_cpp" ;;
7750 esac
7751
7752 case "$host_os" in
7753 mingw*)
7754 gl_dirsep_regex='[/\\]'
7755 ;;
7756 *)
7757 gl_dirsep_regex='\/'
7758 ;;
7759 esac
7760 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
7761 gl_header_literal_regex=`echo 'errno.h' \
7762 | sed -e "$gl_make_literal_regex_sed"`
7763 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
7764 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
7765 s|^/[^/]|//&|
7766 p
7767 q
7768 }'
7769
7770 gl_cv_absolute_errno_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7771 sed -n "$gl_absolute_header_sed"`
7772
7773 gl_header=$gl_cv_absolute_errno_h
7774 gl_cv_next_errno_h='"'$gl_header'"'
7775
7776
7777 fi
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
7779 $as_echo "$gl_cv_next_errno_h" >&6; }
7780 fi
7781 NEXT_ERRNO_H=$gl_cv_next_errno_h
7782
7783 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
7784 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7785 gl_next_as_first_directive='<'errno.h'>'
7786 else
7787 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7788 gl_next_as_first_directive=$gl_cv_next_errno_h
7789 fi
7790 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
7791
7792
7793
7794
7795 ERRNO_H='errno.h'
7796 fi
7797
7798 if test -n "$ERRNO_H"; then
7799 GL_GENERATE_ERRNO_H_TRUE=
7800 GL_GENERATE_ERRNO_H_FALSE='#'
7801 else
7802 GL_GENERATE_ERRNO_H_TRUE='#'
7803 GL_GENERATE_ERRNO_H_FALSE=
7804 fi
7805
7806
7807 if test -n "$ERRNO_H"; then
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
7809 $as_echo_n "checking for EMULTIHOP value... " >&6; }
7810 if ${gl_cv_header_errno_h_EMULTIHOP+:} false; then :
7811 $as_echo_n "(cached) " >&6
7812 else
7813
7814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7815 /* end confdefs.h. */
7816
7817 #include <errno.h>
7818 #ifdef EMULTIHOP
7819 yes
7820 #endif
7821
7822 _ACEOF
7823 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7824 $EGREP "yes" >/dev/null 2>&1; then :
7825 gl_cv_header_errno_h_EMULTIHOP=yes
7826 else
7827 gl_cv_header_errno_h_EMULTIHOP=no
7828 fi
7829 rm -f conftest*
7830
7831 if test $gl_cv_header_errno_h_EMULTIHOP = no; then
7832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7833 /* end confdefs.h. */
7834
7835 #define _XOPEN_SOURCE_EXTENDED 1
7836 #include <errno.h>
7837 #ifdef EMULTIHOP
7838 yes
7839 #endif
7840
7841 _ACEOF
7842 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7843 $EGREP "yes" >/dev/null 2>&1; then :
7844 gl_cv_header_errno_h_EMULTIHOP=hidden
7845 fi
7846 rm -f conftest*
7847
7848 if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
7849 if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
7850 #define _XOPEN_SOURCE_EXTENDED 1
7851 #include <errno.h>
7852 /* The following two lines are a workaround against an autoconf-2.52 bug. */
7853 #include <stdio.h>
7854 #include <stdlib.h>
7855 "; then :
7856
7857 fi
7858
7859 fi
7860 fi
7861
7862 fi
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
7864 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
7865 case $gl_cv_header_errno_h_EMULTIHOP in
7866 yes | no)
7867 EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
7868 ;;
7869 *)
7870 EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
7871 ;;
7872 esac
7873
7874
7875 fi
7876
7877
7878 if test -n "$ERRNO_H"; then
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
7880 $as_echo_n "checking for ENOLINK value... " >&6; }
7881 if ${gl_cv_header_errno_h_ENOLINK+:} false; then :
7882 $as_echo_n "(cached) " >&6
7883 else
7884
7885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7886 /* end confdefs.h. */
7887
7888 #include <errno.h>
7889 #ifdef ENOLINK
7890 yes
7891 #endif
7892
7893 _ACEOF
7894 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7895 $EGREP "yes" >/dev/null 2>&1; then :
7896 gl_cv_header_errno_h_ENOLINK=yes
7897 else
7898 gl_cv_header_errno_h_ENOLINK=no
7899 fi
7900 rm -f conftest*
7901
7902 if test $gl_cv_header_errno_h_ENOLINK = no; then
7903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7904 /* end confdefs.h. */
7905
7906 #define _XOPEN_SOURCE_EXTENDED 1
7907 #include <errno.h>
7908 #ifdef ENOLINK
7909 yes
7910 #endif
7911
7912 _ACEOF
7913 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7914 $EGREP "yes" >/dev/null 2>&1; then :
7915 gl_cv_header_errno_h_ENOLINK=hidden
7916 fi
7917 rm -f conftest*
7918
7919 if test $gl_cv_header_errno_h_ENOLINK = hidden; then
7920 if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
7921 #define _XOPEN_SOURCE_EXTENDED 1
7922 #include <errno.h>
7923 /* The following two lines are a workaround against an autoconf-2.52 bug. */
7924 #include <stdio.h>
7925 #include <stdlib.h>
7926 "; then :
7927
7928 fi
7929
7930 fi
7931 fi
7932
7933 fi
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
7935 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
7936 case $gl_cv_header_errno_h_ENOLINK in
7937 yes | no)
7938 ENOLINK_HIDDEN=0; ENOLINK_VALUE=
7939 ;;
7940 *)
7941 ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
7942 ;;
7943 esac
7944
7945
7946 fi
7947
7948
7949 if test -n "$ERRNO_H"; then
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
7951 $as_echo_n "checking for EOVERFLOW value... " >&6; }
7952 if ${gl_cv_header_errno_h_EOVERFLOW+:} false; then :
7953 $as_echo_n "(cached) " >&6
7954 else
7955
7956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7957 /* end confdefs.h. */
7958
7959 #include <errno.h>
7960 #ifdef EOVERFLOW
7961 yes
7962 #endif
7963
7964 _ACEOF
7965 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7966 $EGREP "yes" >/dev/null 2>&1; then :
7967 gl_cv_header_errno_h_EOVERFLOW=yes
7968 else
7969 gl_cv_header_errno_h_EOVERFLOW=no
7970 fi
7971 rm -f conftest*
7972
7973 if test $gl_cv_header_errno_h_EOVERFLOW = no; then
7974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7975 /* end confdefs.h. */
7976
7977 #define _XOPEN_SOURCE_EXTENDED 1
7978 #include <errno.h>
7979 #ifdef EOVERFLOW
7980 yes
7981 #endif
7982
7983 _ACEOF
7984 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7985 $EGREP "yes" >/dev/null 2>&1; then :
7986 gl_cv_header_errno_h_EOVERFLOW=hidden
7987 fi
7988 rm -f conftest*
7989
7990 if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
7991 if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
7992 #define _XOPEN_SOURCE_EXTENDED 1
7993 #include <errno.h>
7994 /* The following two lines are a workaround against an autoconf-2.52 bug. */
7995 #include <stdio.h>
7996 #include <stdlib.h>
7997 "; then :
7998
7999 fi
8000
8001 fi
8002 fi
8003
8004 fi
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
8006 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
8007 case $gl_cv_header_errno_h_EOVERFLOW in
8008 yes | no)
8009 EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
8010 ;;
8011 *)
8012 EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
8013 ;;
8014 esac
8015
8016
8017 fi
8018
8019
8020 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
8021 if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
8022 ac_have_decl=1
8023 else
8024 ac_have_decl=0
8025 fi
8026
8027 cat >>confdefs.h <<_ACEOF
8028 #define HAVE_DECL_STRERROR_R $ac_have_decl
8029 _ACEOF
8030
8031 for ac_func in strerror_r
8032 do :
8033 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
8034 if test "x$ac_cv_func_strerror_r" = xyes; then :
8035 cat >>confdefs.h <<_ACEOF
8036 #define HAVE_STRERROR_R 1
8037 _ACEOF
8038
8039 fi
8040 done
8041
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
8043 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
8044 if ${ac_cv_func_strerror_r_char_p+:} false; then :
8045 $as_echo_n "(cached) " >&6
8046 else
8047
8048 ac_cv_func_strerror_r_char_p=no
8049 if test $ac_cv_have_decl_strerror_r = yes; then
8050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8051 /* end confdefs.h. */
8052 $ac_includes_default
8053 int
8054 main ()
8055 {
8056
8057 char buf[100];
8058 char x = *strerror_r (0, buf, sizeof buf);
8059 char *p = strerror_r (0, buf, sizeof buf);
8060 return !p || x;
8061
8062 ;
8063 return 0;
8064 }
8065 _ACEOF
8066 if ac_fn_c_try_compile "$LINENO"; then :
8067 ac_cv_func_strerror_r_char_p=yes
8068 fi
8069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8070 else
8071 # strerror_r is not declared. Choose between
8072 # systems that have relatively inaccessible declarations for the
8073 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
8074 # former has a strerror_r that returns char*, while the latter
8075 # has a strerror_r that returns `int'.
8076 # This test should segfault on the DEC system.
8077 if test "$cross_compiling" = yes; then :
8078 :
8079 else
8080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8081 /* end confdefs.h. */
8082 $ac_includes_default
8083 extern char *strerror_r ();
8084 int
8085 main ()
8086 {
8087 char buf[100];
8088 char x = *strerror_r (0, buf, sizeof buf);
8089 return ! isalpha (x);
8090 ;
8091 return 0;
8092 }
8093 _ACEOF
8094 if ac_fn_c_try_run "$LINENO"; then :
8095 ac_cv_func_strerror_r_char_p=yes
8096 fi
8097 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8098 conftest.$ac_objext conftest.beam conftest.$ac_ext
8099 fi
8100
8101 fi
8102
8103 fi
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
8105 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
8106 if test $ac_cv_func_strerror_r_char_p = yes; then
8107
8108 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
8109
8110 fi
8111
8112
8113
8114
8115
8116 ac_fn_c_check_decl "$LINENO" "fchdir" "ac_cv_have_decl_fchdir" "$ac_includes_default"
8117 if test "x$ac_cv_have_decl_fchdir" = xyes; then :
8118 ac_have_decl=1
8119 else
8120 ac_have_decl=0
8121 fi
8122
8123 cat >>confdefs.h <<_ACEOF
8124 #define HAVE_DECL_FCHDIR $ac_have_decl
8125 _ACEOF
8126
8127
8128
8129 GNULIB_FCNTL=0;
8130 GNULIB_NONBLOCKING=0;
8131 GNULIB_OPEN=0;
8132 GNULIB_OPENAT=0;
8133 HAVE_FCNTL=1;
8134 HAVE_OPENAT=1;
8135 REPLACE_FCNTL=0;
8136 REPLACE_OPEN=0;
8137 REPLACE_OPENAT=0;
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
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
8167 $as_echo_n "checking for working fcntl.h... " >&6; }
8168 if ${gl_cv_header_working_fcntl_h+:} false; then :
8169 $as_echo_n "(cached) " >&6
8170 else
8171 if test "$cross_compiling" = yes; then :
8172 gl_cv_header_working_fcntl_h=cross-compiling
8173 else
8174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8175 /* end confdefs.h. */
8176 #include <sys/types.h>
8177 #include <sys/stat.h>
8178 #if HAVE_UNISTD_H
8179 # include <unistd.h>
8180 #else /* on Windows with MSVC */
8181 # include <io.h>
8182 # include <stdlib.h>
8183 # defined sleep(n) _sleep ((n) * 1000)
8184 #endif
8185 #include <fcntl.h>
8186 #ifndef O_NOATIME
8187 #define O_NOATIME 0
8188 #endif
8189 #ifndef O_NOFOLLOW
8190 #define O_NOFOLLOW 0
8191 #endif
8192 static int const constants[] =
8193 {
8194 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
8195 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
8196 };
8197
8198 int
8199 main ()
8200 {
8201
8202 int result = !constants;
8203 #if HAVE_SYMLINK
8204 {
8205 static char const sym[] = "conftest.sym";
8206 if (symlink ("/dev/null", sym) != 0)
8207 result |= 2;
8208 else
8209 {
8210 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
8211 if (fd >= 0)
8212 {
8213 close (fd);
8214 result |= 4;
8215 }
8216 }
8217 if (unlink (sym) != 0 || symlink (".", sym) != 0)
8218 result |= 2;
8219 else
8220 {
8221 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
8222 if (fd >= 0)
8223 {
8224 close (fd);
8225 result |= 4;
8226 }
8227 }
8228 unlink (sym);
8229 }
8230 #endif
8231 {
8232 static char const file[] = "confdefs.h";
8233 int fd = open (file, O_RDONLY | O_NOATIME);
8234 if (fd < 0)
8235 result |= 8;
8236 else
8237 {
8238 struct stat st0;
8239 if (fstat (fd, &st0) != 0)
8240 result |= 16;
8241 else
8242 {
8243 char c;
8244 sleep (1);
8245 if (read (fd, &c, 1) != 1)
8246 result |= 24;
8247 else
8248 {
8249 if (close (fd) != 0)
8250 result |= 32;
8251 else
8252 {
8253 struct stat st1;
8254 if (stat (file, &st1) != 0)
8255 result |= 40;
8256 else
8257 if (st0.st_atime != st1.st_atime)
8258 result |= 64;
8259 }
8260 }
8261 }
8262 }
8263 }
8264 return result;
8265 ;
8266 return 0;
8267 }
8268 _ACEOF
8269 if ac_fn_c_try_run "$LINENO"; then :
8270 gl_cv_header_working_fcntl_h=yes
8271 else
8272 case $? in #(
8273 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
8274 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
8275 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
8276 *) gl_cv_header_working_fcntl_h='no';;
8277 esac
8278 fi
8279 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8280 conftest.$ac_objext conftest.beam conftest.$ac_ext
8281 fi
8282
8283 fi
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
8285 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
8286
8287 case $gl_cv_header_working_fcntl_h in #(
8288 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
8289 *) ac_val=1;;
8290 esac
8291
8292 cat >>confdefs.h <<_ACEOF
8293 #define HAVE_WORKING_O_NOATIME $ac_val
8294 _ACEOF
8295
8296
8297 case $gl_cv_header_working_fcntl_h in #(
8298 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
8299 *) ac_val=1;;
8300 esac
8301
8302 cat >>confdefs.h <<_ACEOF
8303 #define HAVE_WORKING_O_NOFOLLOW $ac_val
8304 _ACEOF
8305
8306
8307 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8308 if test "x$ac_cv_type_pid_t" = xyes; then :
8309
8310 else
8311
8312 cat >>confdefs.h <<_ACEOF
8313 #define pid_t int
8314 _ACEOF
8315
8316 fi
8317
8318 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
8319 if test "x$ac_cv_type_mode_t" = xyes; then :
8320
8321 else
8322
8323 cat >>confdefs.h <<_ACEOF
8324 #define mode_t int
8325 _ACEOF
8326
8327 fi
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
8342 $as_echo_n "checking for mbstate_t... " >&6; }
8343 if ${ac_cv_type_mbstate_t+:} false; then :
8344 $as_echo_n "(cached) " >&6
8345 else
8346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8347 /* end confdefs.h. */
8348 $ac_includes_default
8349 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
8350 <wchar.h>.
8351 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8352 included before <wchar.h>. */
8353 #include <stddef.h>
8354 #include <stdio.h>
8355 #include <time.h>
8356 #include <wchar.h>
8357 int
8358 main ()
8359 {
8360 mbstate_t x; return sizeof x;
8361 ;
8362 return 0;
8363 }
8364 _ACEOF
8365 if ac_fn_c_try_compile "$LINENO"; then :
8366 ac_cv_type_mbstate_t=yes
8367 else
8368 ac_cv_type_mbstate_t=no
8369 fi
8370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8371 fi
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
8373 $as_echo "$ac_cv_type_mbstate_t" >&6; }
8374 if test $ac_cv_type_mbstate_t = yes; then
8375
8376 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
8377
8378 else
8379
8380 $as_echo "#define mbstate_t int" >>confdefs.h
8381
8382 fi
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
8425 GNULIB_ACOSF=0;
8426 GNULIB_ACOSL=0;
8427 GNULIB_ASINF=0;
8428 GNULIB_ASINL=0;
8429 GNULIB_ATANF=0;
8430 GNULIB_ATANL=0;
8431 GNULIB_ATAN2F=0;
8432 GNULIB_CBRT=0;
8433 GNULIB_CBRTF=0;
8434 GNULIB_CBRTL=0;
8435 GNULIB_CEIL=0;
8436 GNULIB_CEILF=0;
8437 GNULIB_CEILL=0;
8438 GNULIB_COPYSIGN=0;
8439 GNULIB_COPYSIGNF=0;
8440 GNULIB_COPYSIGNL=0;
8441 GNULIB_COSF=0;
8442 GNULIB_COSL=0;
8443 GNULIB_COSHF=0;
8444 GNULIB_EXPF=0;
8445 GNULIB_EXPL=0;
8446 GNULIB_EXP2=0;
8447 GNULIB_EXP2F=0;
8448 GNULIB_EXP2L=0;
8449 GNULIB_EXPM1=0;
8450 GNULIB_EXPM1F=0;
8451 GNULIB_EXPM1L=0;
8452 GNULIB_FABSF=0;
8453 GNULIB_FABSL=0;
8454 GNULIB_FLOOR=0;
8455 GNULIB_FLOORF=0;
8456 GNULIB_FLOORL=0;
8457 GNULIB_FMA=0;
8458 GNULIB_FMAF=0;
8459 GNULIB_FMAL=0;
8460 GNULIB_FMOD=0;
8461 GNULIB_FMODF=0;
8462 GNULIB_FMODL=0;
8463 GNULIB_FREXPF=0;
8464 GNULIB_FREXP=0;
8465 GNULIB_FREXPL=0;
8466 GNULIB_HYPOT=0;
8467 GNULIB_HYPOTF=0;
8468 GNULIB_HYPOTL=0;
8469 GNULIB_ILOGB=0;
8470 GNULIB_ILOGBF=0;
8471 GNULIB_ILOGBL=0;
8472 GNULIB_ISFINITE=0;
8473 GNULIB_ISINF=0;
8474 GNULIB_ISNAN=0;
8475 GNULIB_ISNANF=0;
8476 GNULIB_ISNAND=0;
8477 GNULIB_ISNANL=0;
8478 GNULIB_LDEXPF=0;
8479 GNULIB_LDEXPL=0;
8480 GNULIB_LOG=0;
8481 GNULIB_LOGF=0;
8482 GNULIB_LOGL=0;
8483 GNULIB_LOG10=0;
8484 GNULIB_LOG10F=0;
8485 GNULIB_LOG10L=0;
8486 GNULIB_LOG1P=0;
8487 GNULIB_LOG1PF=0;
8488 GNULIB_LOG1PL=0;
8489 GNULIB_LOG2=0;
8490 GNULIB_LOG2F=0;
8491 GNULIB_LOG2L=0;
8492 GNULIB_LOGB=0;
8493 GNULIB_LOGBF=0;
8494 GNULIB_LOGBL=0;
8495 GNULIB_MODF=0;
8496 GNULIB_MODFF=0;
8497 GNULIB_MODFL=0;
8498 GNULIB_POWF=0;
8499 GNULIB_REMAINDER=0;
8500 GNULIB_REMAINDERF=0;
8501 GNULIB_REMAINDERL=0;
8502 GNULIB_RINT=0;
8503 GNULIB_RINTF=0;
8504 GNULIB_RINTL=0;
8505 GNULIB_ROUND=0;
8506 GNULIB_ROUNDF=0;
8507 GNULIB_ROUNDL=0;
8508 GNULIB_SIGNBIT=0;
8509 GNULIB_SINF=0;
8510 GNULIB_SINL=0;
8511 GNULIB_SINHF=0;
8512 GNULIB_SQRTF=0;
8513 GNULIB_SQRTL=0;
8514 GNULIB_TANF=0;
8515 GNULIB_TANL=0;
8516 GNULIB_TANHF=0;
8517 GNULIB_TRUNC=0;
8518 GNULIB_TRUNCF=0;
8519 GNULIB_TRUNCL=0;
8520 HAVE_ACOSF=1;
8521 HAVE_ACOSL=1;
8522 HAVE_ASINF=1;
8523 HAVE_ASINL=1;
8524 HAVE_ATANF=1;
8525 HAVE_ATANL=1;
8526 HAVE_ATAN2F=1;
8527 HAVE_CBRT=1;
8528 HAVE_CBRTF=1;
8529 HAVE_CBRTL=1;
8530 HAVE_COPYSIGN=1;
8531 HAVE_COPYSIGNL=1;
8532 HAVE_COSF=1;
8533 HAVE_COSL=1;
8534 HAVE_COSHF=1;
8535 HAVE_EXPF=1;
8536 HAVE_EXPL=1;
8537 HAVE_EXPM1=1;
8538 HAVE_EXPM1F=1;
8539 HAVE_FABSF=1;
8540 HAVE_FABSL=1;
8541 HAVE_FMA=1;
8542 HAVE_FMAF=1;
8543 HAVE_FMAL=1;
8544 HAVE_FMODF=1;
8545 HAVE_FMODL=1;
8546 HAVE_FREXPF=1;
8547 HAVE_HYPOTF=1;
8548 HAVE_HYPOTL=1;
8549 HAVE_ILOGB=1;
8550 HAVE_ILOGBF=1;
8551 HAVE_ILOGBL=1;
8552 HAVE_ISNANF=1;
8553 HAVE_ISNAND=1;
8554 HAVE_ISNANL=1;
8555 HAVE_LDEXPF=1;
8556 HAVE_LOGF=1;
8557 HAVE_LOGL=1;
8558 HAVE_LOG10F=1;
8559 HAVE_LOG10L=1;
8560 HAVE_LOG1P=1;
8561 HAVE_LOG1PF=1;
8562 HAVE_LOG1PL=1;
8563 HAVE_LOGBF=1;
8564 HAVE_LOGBL=1;
8565 HAVE_MODFF=1;
8566 HAVE_MODFL=1;
8567 HAVE_POWF=1;
8568 HAVE_REMAINDER=1;
8569 HAVE_REMAINDERF=1;
8570 HAVE_RINT=1;
8571 HAVE_RINTL=1;
8572 HAVE_SINF=1;
8573 HAVE_SINL=1;
8574 HAVE_SINHF=1;
8575 HAVE_SQRTF=1;
8576 HAVE_SQRTL=1;
8577 HAVE_TANF=1;
8578 HAVE_TANL=1;
8579 HAVE_TANHF=1;
8580 HAVE_DECL_ACOSL=1;
8581 HAVE_DECL_ASINL=1;
8582 HAVE_DECL_ATANL=1;
8583 HAVE_DECL_CBRTF=1;
8584 HAVE_DECL_CBRTL=1;
8585 HAVE_DECL_CEILF=1;
8586 HAVE_DECL_CEILL=1;
8587 HAVE_DECL_COPYSIGNF=1;
8588 HAVE_DECL_COSL=1;
8589 HAVE_DECL_EXPL=1;
8590 HAVE_DECL_EXP2=1;
8591 HAVE_DECL_EXP2F=1;
8592 HAVE_DECL_EXP2L=1;
8593 HAVE_DECL_EXPM1L=1;
8594 HAVE_DECL_FLOORF=1;
8595 HAVE_DECL_FLOORL=1;
8596 HAVE_DECL_FREXPL=1;
8597 HAVE_DECL_LDEXPL=1;
8598 HAVE_DECL_LOGL=1;
8599 HAVE_DECL_LOG10L=1;
8600 HAVE_DECL_LOG2=1;
8601 HAVE_DECL_LOG2F=1;
8602 HAVE_DECL_LOG2L=1;
8603 HAVE_DECL_LOGB=1;
8604 HAVE_DECL_REMAINDER=1;
8605 HAVE_DECL_REMAINDERL=1;
8606 HAVE_DECL_RINTF=1;
8607 HAVE_DECL_ROUND=1;
8608 HAVE_DECL_ROUNDF=1;
8609 HAVE_DECL_ROUNDL=1;
8610 HAVE_DECL_SINL=1;
8611 HAVE_DECL_SQRTL=1;
8612 HAVE_DECL_TANL=1;
8613 HAVE_DECL_TRUNC=1;
8614 HAVE_DECL_TRUNCF=1;
8615 HAVE_DECL_TRUNCL=1;
8616 REPLACE_CBRTF=0;
8617 REPLACE_CBRTL=0;
8618 REPLACE_CEIL=0;
8619 REPLACE_CEILF=0;
8620 REPLACE_CEILL=0;
8621 REPLACE_EXPM1=0;
8622 REPLACE_EXPM1F=0;
8623 REPLACE_EXP2=0;
8624 REPLACE_EXP2L=0;
8625 REPLACE_FABSL=0;
8626 REPLACE_FLOOR=0;
8627 REPLACE_FLOORF=0;
8628 REPLACE_FLOORL=0;
8629 REPLACE_FMA=0;
8630 REPLACE_FMAF=0;
8631 REPLACE_FMAL=0;
8632 REPLACE_FMOD=0;
8633 REPLACE_FMODF=0;
8634 REPLACE_FMODL=0;
8635 REPLACE_FREXPF=0;
8636 REPLACE_FREXP=0;
8637 REPLACE_FREXPL=0;
8638 REPLACE_HUGE_VAL=0;
8639 REPLACE_HYPOT=0;
8640 REPLACE_HYPOTF=0;
8641 REPLACE_HYPOTL=0;
8642 REPLACE_ILOGB=0;
8643 REPLACE_ILOGBF=0;
8644 REPLACE_ISFINITE=0;
8645 REPLACE_ISINF=0;
8646 REPLACE_ISNAN=0;
8647 REPLACE_LDEXPL=0;
8648 REPLACE_LOG=0;
8649 REPLACE_LOGF=0;
8650 REPLACE_LOGL=0;
8651 REPLACE_LOG10=0;
8652 REPLACE_LOG10F=0;
8653 REPLACE_LOG10L=0;
8654 REPLACE_LOG1P=0;
8655 REPLACE_LOG1PF=0;
8656 REPLACE_LOG1PL=0;
8657 REPLACE_LOG2=0;
8658 REPLACE_LOG2F=0;
8659 REPLACE_LOG2L=0;
8660 REPLACE_LOGB=0;
8661 REPLACE_LOGBF=0;
8662 REPLACE_LOGBL=0;
8663 REPLACE_MODF=0;
8664 REPLACE_MODFF=0;
8665 REPLACE_MODFL=0;
8666 REPLACE_NAN=0;
8667 REPLACE_REMAINDER=0;
8668 REPLACE_REMAINDERF=0;
8669 REPLACE_REMAINDERL=0;
8670 REPLACE_ROUND=0;
8671 REPLACE_ROUNDF=0;
8672 REPLACE_ROUNDL=0;
8673 REPLACE_SIGNBIT=0;
8674 REPLACE_SIGNBIT_USING_GCC=0;
8675 REPLACE_SQRTL=0;
8676 REPLACE_TRUNC=0;
8677 REPLACE_TRUNCF=0;
8678 REPLACE_TRUNCL=0;
8679
8680
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used without linking with libm" >&5
8682 $as_echo_n "checking whether frexp() can be used without linking with libm... " >&6; }
8683 if ${gl_cv_func_frexp_no_libm+:} false; then :
8684 $as_echo_n "(cached) " >&6
8685 else
8686
8687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8688 /* end confdefs.h. */
8689 #include <math.h>
8690 double x;
8691 int
8692 main ()
8693 {
8694 int e; return frexp (x, &e) > 0;
8695 ;
8696 return 0;
8697 }
8698 _ACEOF
8699 if ac_fn_c_try_link "$LINENO"; then :
8700 gl_cv_func_frexp_no_libm=yes
8701 else
8702 gl_cv_func_frexp_no_libm=no
8703 fi
8704 rm -f core conftest.err conftest.$ac_objext \
8705 conftest$ac_exeext conftest.$ac_ext
8706
8707 fi
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_no_libm" >&5
8709 $as_echo "$gl_cv_func_frexp_no_libm" >&6; }
8710
8711
8712 ac_fn_c_check_decl "$LINENO" "alarm" "ac_cv_have_decl_alarm" "$ac_includes_default"
8713 if test "x$ac_cv_have_decl_alarm" = xyes; then :
8714 ac_have_decl=1
8715 else
8716 ac_have_decl=0
8717 fi
8718
8719 cat >>confdefs.h <<_ACEOF
8720 #define HAVE_DECL_ALARM $ac_have_decl
8721 _ACEOF
8722
8723
8724
8725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long double and double are the same" >&5
8726 $as_echo_n "checking whether long double and double are the same... " >&6; }
8727 if ${gl_cv_long_double_equals_double+:} false; then :
8728 $as_echo_n "(cached) " >&6
8729 else
8730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8731 /* end confdefs.h. */
8732 #include <float.h>
8733 int
8734 main ()
8735 {
8736 typedef int check[sizeof (long double) == sizeof (double)
8737 && LDBL_MANT_DIG == DBL_MANT_DIG
8738 && LDBL_MAX_EXP == DBL_MAX_EXP
8739 && LDBL_MIN_EXP == DBL_MIN_EXP
8740 ? 1 : -1];
8741
8742 ;
8743 return 0;
8744 }
8745 _ACEOF
8746 if ac_fn_c_try_compile "$LINENO"; then :
8747 gl_cv_long_double_equals_double=yes
8748 else
8749 gl_cv_long_double_equals_double=no
8750 fi
8751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8752
8753 fi
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_long_double_equals_double" >&5
8755 $as_echo "$gl_cv_long_double_equals_double" >&6; }
8756 if test $gl_cv_long_double_equals_double = yes; then
8757
8758 $as_echo "#define HAVE_SAME_LONG_DOUBLE_AS_DOUBLE 1" >>confdefs.h
8759
8760 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=1
8761 else
8762 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=0
8763 fi
8764
8765
8766
8767 GNULIB_FCHMODAT=0;
8768 GNULIB_FSTAT=0;
8769 GNULIB_FSTATAT=0;
8770 GNULIB_FUTIMENS=0;
8771 GNULIB_LCHMOD=0;
8772 GNULIB_LSTAT=0;
8773 GNULIB_MKDIRAT=0;
8774 GNULIB_MKFIFO=0;
8775 GNULIB_MKFIFOAT=0;
8776 GNULIB_MKNOD=0;
8777 GNULIB_MKNODAT=0;
8778 GNULIB_STAT=0;
8779 GNULIB_UTIMENSAT=0;
8780 HAVE_FCHMODAT=1;
8781 HAVE_FSTATAT=1;
8782 HAVE_FUTIMENS=1;
8783 HAVE_LCHMOD=1;
8784 HAVE_LSTAT=1;
8785 HAVE_MKDIRAT=1;
8786 HAVE_MKFIFO=1;
8787 HAVE_MKFIFOAT=1;
8788 HAVE_MKNOD=1;
8789 HAVE_MKNODAT=1;
8790 HAVE_UTIMENSAT=1;
8791 REPLACE_FSTAT=0;
8792 REPLACE_FSTATAT=0;
8793 REPLACE_FUTIMENS=0;
8794 REPLACE_LSTAT=0;
8795 REPLACE_MKDIR=0;
8796 REPLACE_MKFIFO=0;
8797 REPLACE_MKNOD=0;
8798 REPLACE_STAT=0;
8799 REPLACE_UTIMENSAT=0;
8800
8801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
8802 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
8803 if ${ac_cv_header_stat_broken+:} false; then :
8804 $as_echo_n "(cached) " >&6
8805 else
8806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8807 /* end confdefs.h. */
8808 #include <sys/types.h>
8809 #include <sys/stat.h>
8810
8811 #if defined S_ISBLK && defined S_IFDIR
8812 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
8813 #endif
8814
8815 #if defined S_ISBLK && defined S_IFCHR
8816 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
8817 #endif
8818
8819 #if defined S_ISLNK && defined S_IFREG
8820 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
8821 #endif
8822
8823 #if defined S_ISSOCK && defined S_IFREG
8824 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
8825 #endif
8826
8827 _ACEOF
8828 if ac_fn_c_try_compile "$LINENO"; then :
8829 ac_cv_header_stat_broken=no
8830 else
8831 ac_cv_header_stat_broken=yes
8832 fi
8833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8834 fi
8835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
8836 $as_echo "$ac_cv_header_stat_broken" >&6; }
8837 if test $ac_cv_header_stat_broken = yes; then
8838
8839 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
8840
8841 fi
8842
8843
8844
8845
8846
8847
8848
8849
8850 case "$host_os" in
8851 mingw*)
8852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
8853 $as_echo_n "checking for 64-bit off_t... " >&6; }
8854 if ${gl_cv_type_off_t_64+:} false; then :
8855 $as_echo_n "(cached) " >&6
8856 else
8857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8858 /* end confdefs.h. */
8859 #include <sys/types.h>
8860 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
8861
8862 int
8863 main ()
8864 {
8865
8866 ;
8867 return 0;
8868 }
8869 _ACEOF
8870 if ac_fn_c_try_compile "$LINENO"; then :
8871 gl_cv_type_off_t_64=yes
8872 else
8873 gl_cv_type_off_t_64=no
8874 fi
8875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8876
8877 fi
8878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
8879 $as_echo "$gl_cv_type_off_t_64" >&6; }
8880 if test $gl_cv_type_off_t_64 = no; then
8881 WINDOWS_64_BIT_OFF_T=1
8882 else
8883 WINDOWS_64_BIT_OFF_T=0
8884 fi
8885 WINDOWS_64_BIT_ST_SIZE=1
8886 ;;
8887 *)
8888 WINDOWS_64_BIT_OFF_T=0
8889 WINDOWS_64_BIT_ST_SIZE=0
8890 ;;
8891 esac
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904 :
8905
8906
8907
8908
8909
8910
8911
8912
8913 if test $gl_cv_have_include_next = yes; then
8914 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
8915 else
8916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
8917 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
8918 if ${gl_cv_next_sys_stat_h+:} false; then :
8919 $as_echo_n "(cached) " >&6
8920 else
8921
8922 if test $ac_cv_header_sys_stat_h = yes; then
8923
8924
8925
8926
8927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8928 /* end confdefs.h. */
8929 #include <sys/stat.h>
8930 _ACEOF
8931 case "$host_os" in
8932 aix*) gl_absname_cpp="$ac_cpp -C" ;;
8933 *) gl_absname_cpp="$ac_cpp" ;;
8934 esac
8935
8936 case "$host_os" in
8937 mingw*)
8938 gl_dirsep_regex='[/\\]'
8939 ;;
8940 *)
8941 gl_dirsep_regex='\/'
8942 ;;
8943 esac
8944 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
8945 gl_header_literal_regex=`echo 'sys/stat.h' \
8946 | sed -e "$gl_make_literal_regex_sed"`
8947 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
8948 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
8949 s|^/[^/]|//&|
8950 p
8951 q
8952 }'
8953
8954 gl_cv_absolute_sys_stat_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
8955 sed -n "$gl_absolute_header_sed"`
8956
8957 gl_header=$gl_cv_absolute_sys_stat_h
8958 gl_cv_next_sys_stat_h='"'$gl_header'"'
8959 else
8960 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
8961 fi
8962
8963
8964 fi
8965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
8966 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
8967 fi
8968 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
8969
8970 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
8971 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
8972 gl_next_as_first_directive='<'sys/stat.h'>'
8973 else
8974 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
8975 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
8976 fi
8977 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
8990
8991 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
8992
8993 fi
8994
8995 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
8996 #include <sys/stat.h>
8997 "
8998 if test "x$ac_cv_type_nlink_t" = xyes; then :
8999
9000 else
9001
9002 $as_echo "#define nlink_t int" >>confdefs.h
9003
9004 fi
9005
9006
9007
9008 for gl_func in fchmodat fstat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat mknod mknodat stat utimensat; do
9009 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
9010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
9011 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
9012 if eval \${$as_gl_Symbol+:} false; then :
9013 $as_echo_n "(cached) " >&6
9014 else
9015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9016 /* end confdefs.h. */
9017 #include <sys/stat.h>
9018
9019 int
9020 main ()
9021 {
9022 #undef $gl_func
9023 (void) $gl_func;
9024 ;
9025 return 0;
9026 }
9027 _ACEOF
9028 if ac_fn_c_try_compile "$LINENO"; then :
9029 eval "$as_gl_Symbol=yes"
9030 else
9031 eval "$as_gl_Symbol=no"
9032 fi
9033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9034 fi
9035 eval ac_res=\$$as_gl_Symbol
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9037 $as_echo "$ac_res" >&6; }
9038 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
9039 cat >>confdefs.h <<_ACEOF
9040 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
9041 _ACEOF
9042
9043 eval ac_cv_have_decl_$gl_func=yes
9044 fi
9045 done
9046
9047
9048
9049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
9050 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
9051 if ${gl_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
9052 $as_echo_n "(cached) " >&6
9053 else
9054 rm -f conftest.sym conftest.file
9055 echo >conftest.file
9056 if test "$cross_compiling" = yes; then :
9057 case "$host_os" in
9058 *-gnu*)
9059 # Guess yes on glibc systems.
9060 gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
9061 *)
9062 # If we don't know, assume the worst.
9063 gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
9064 esac
9065
9066 else
9067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9068 /* end confdefs.h. */
9069 $ac_includes_default
9070 int
9071 main ()
9072 {
9073 struct stat sbuf;
9074 if (symlink ("conftest.file", "conftest.sym") != 0)
9075 return 1;
9076 /* Linux will dereference the symlink and fail, as required by
9077 POSIX. That is better in the sense that it means we will not
9078 have to compile and use the lstat wrapper. */
9079 return lstat ("conftest.sym/", &sbuf) == 0;
9080
9081 ;
9082 return 0;
9083 }
9084 _ACEOF
9085 if ac_fn_c_try_run "$LINENO"; then :
9086 gl_cv_func_lstat_dereferences_slashed_symlink=yes
9087 else
9088 gl_cv_func_lstat_dereferences_slashed_symlink=no
9089 fi
9090 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9091 conftest.$ac_objext conftest.beam conftest.$ac_ext
9092 fi
9093
9094 rm -f conftest.sym conftest.file
9095
9096 fi
9097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
9098 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
9099 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
9100 *yes)
9101
9102 cat >>confdefs.h <<_ACEOF
9103 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
9104 _ACEOF
9105
9106 ;;
9107 esac
9108
9109
9110
9111
9112
9113
9114
9115
9116 :
9117
9118
9119
9120
9121
9122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd (NULL, 0) allocates memory for result" >&5
9123 $as_echo_n "checking whether getcwd (NULL, 0) allocates memory for result... " >&6; }
9124 if ${gl_cv_func_getcwd_null+:} false; then :
9125 $as_echo_n "(cached) " >&6
9126 else
9127 if test "$cross_compiling" = yes; then :
9128 case "$host_os" in
9129 # Guess yes on glibc systems.
9130 *-gnu*) gl_cv_func_getcwd_null="guessing yes";;
9131 # Guess yes on Cygwin.
9132 cygwin*) gl_cv_func_getcwd_null="guessing yes";;
9133 # If we don't know, assume the worst.
9134 *) gl_cv_func_getcwd_null="guessing no";;
9135 esac
9136
9137 else
9138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9139 /* end confdefs.h. */
9140
9141 # include <stdlib.h>
9142 # if HAVE_UNISTD_H
9143 # include <unistd.h>
9144 # else /* on Windows with MSVC */
9145 # include <direct.h>
9146 # endif
9147 # ifndef getcwd
9148 char *getcwd ();
9149 # endif
9150
9151 int
9152 main ()
9153 {
9154
9155 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
9156 /* mingw cwd does not start with '/', but getcwd does allocate.
9157 However, mingw fails to honor non-zero size. */
9158 #else
9159 if (chdir ("/") != 0)
9160 return 1;
9161 else
9162 {
9163 char *f = getcwd (NULL, 0);
9164 if (! f)
9165 return 2;
9166 if (f[0] != '/')
9167 return 3;
9168 if (f[1] != '\0')
9169 return 4;
9170 free (f);
9171 return 0;
9172 }
9173 #endif
9174
9175 ;
9176 return 0;
9177 }
9178 _ACEOF
9179 if ac_fn_c_try_run "$LINENO"; then :
9180 gl_cv_func_getcwd_null=yes
9181 else
9182 gl_cv_func_getcwd_null=no
9183 fi
9184 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9185 conftest.$ac_objext conftest.beam conftest.$ac_ext
9186 fi
9187
9188 fi
9189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_null" >&5
9190 $as_echo "$gl_cv_func_getcwd_null" >&6; }
9191
9192
9193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getcwd with POSIX signature" >&5
9194 $as_echo_n "checking for getcwd with POSIX signature... " >&6; }
9195 if ${gl_cv_func_getcwd_posix_signature+:} false; then :
9196 $as_echo_n "(cached) " >&6
9197 else
9198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9199 /* end confdefs.h. */
9200 #include <unistd.h>
9201 int
9202 main ()
9203 {
9204 extern
9205 #ifdef __cplusplus
9206 "C"
9207 #endif
9208 char *getcwd (char *, size_t);
9209
9210 ;
9211 return 0;
9212 }
9213
9214 _ACEOF
9215 if ac_fn_c_try_compile "$LINENO"; then :
9216 gl_cv_func_getcwd_posix_signature=yes
9217 else
9218 gl_cv_func_getcwd_posix_signature=no
9219 fi
9220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9221
9222 fi
9223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_posix_signature" >&5
9224 $as_echo "$gl_cv_func_getcwd_posix_signature" >&6; }
9225
9226
9227 ac_fn_c_check_decl "$LINENO" "getcwd" "ac_cv_have_decl_getcwd" "$ac_includes_default"
9228 if test "x$ac_cv_have_decl_getcwd" = xyes; then :
9229 ac_have_decl=1
9230 else
9231 ac_have_decl=0
9232 fi
9233
9234 cat >>confdefs.h <<_ACEOF
9235 #define HAVE_DECL_GETCWD $ac_have_decl
9236 _ACEOF
9237
9238
9239
9240
9241
9242
9243
9244
9245 ac_fn_c_check_decl "$LINENO" "getdtablesize" "ac_cv_have_decl_getdtablesize" "$ac_includes_default"
9246 if test "x$ac_cv_have_decl_getdtablesize" = xyes; then :
9247 ac_have_decl=1
9248 else
9249 ac_have_decl=0
9250 fi
9251
9252 cat >>confdefs.h <<_ACEOF
9253 #define HAVE_DECL_GETDTABLESIZE $ac_have_decl
9254 _ACEOF
9255
9256
9257
9258 ac_fn_c_check_decl "$LINENO" "getlogin_r" "ac_cv_have_decl_getlogin_r" "$ac_includes_default"
9259 if test "x$ac_cv_have_decl_getlogin_r" = xyes; then :
9260 ac_have_decl=1
9261 else
9262 ac_have_decl=0
9263 fi
9264
9265 cat >>confdefs.h <<_ACEOF
9266 #define HAVE_DECL_GETLOGIN_R $ac_have_decl
9267 _ACEOF
9268
9269
9270
9271
9272
9273
9274
9275
9276 ac_fn_c_check_decl "$LINENO" "getlogin" "ac_cv_have_decl_getlogin" "$ac_includes_default"
9277 if test "x$ac_cv_have_decl_getlogin" = xyes; then :
9278 ac_have_decl=1
9279 else
9280 ac_have_decl=0
9281 fi
9282
9283 cat >>confdefs.h <<_ACEOF
9284 #define HAVE_DECL_GETLOGIN $ac_have_decl
9285 _ACEOF
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
9299 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
9300 if ${ac_cv_c_restrict+:} false; then :
9301 $as_echo_n "(cached) " >&6
9302 else
9303 ac_cv_c_restrict=no
9304 # The order here caters to the fact that C++ does not require restrict.
9305 for ac_kw in __restrict __restrict__ _Restrict restrict; do
9306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9307 /* end confdefs.h. */
9308 typedef int *int_ptr;
9309 int foo (int_ptr $ac_kw ip) { return ip[0]; }
9310 int bar (int [$ac_kw]); /* Catch GCC bug 14050. */
9311 int bar (int ip[$ac_kw]) { return ip[0]; }
9312
9313 int
9314 main ()
9315 {
9316 int s[1];
9317 int *$ac_kw t = s;
9318 t[0] = 0;
9319 return foo (t) + bar (t);
9320
9321 ;
9322 return 0;
9323 }
9324 _ACEOF
9325 if ac_fn_c_try_compile "$LINENO"; then :
9326 ac_cv_c_restrict=$ac_kw
9327 fi
9328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9329 test "$ac_cv_c_restrict" != no && break
9330 done
9331
9332 fi
9333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
9334 $as_echo "$ac_cv_c_restrict" >&6; }
9335
9336 case $ac_cv_c_restrict in
9337 restrict) ;;
9338 no) $as_echo "#define restrict /**/" >>confdefs.h
9339 ;;
9340 *) cat >>confdefs.h <<_ACEOF
9341 #define restrict $ac_cv_c_restrict
9342 _ACEOF
9343 ;;
9344 esac
9345
9346
9347 GNULIB_GETTIMEOFDAY=0;
9348 HAVE_GETTIMEOFDAY=1;
9349 HAVE_STRUCT_TIMEVAL=1;
9350 HAVE_SYS_TIME_H=1;
9351 HAVE_TIMEZONE_T=0;
9352 REPLACE_GETTIMEOFDAY=0;
9353 REPLACE_STRUCT_TIMEVAL=0;
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
9385 if test $gl_cv_have_include_next = yes; then
9386 gl_cv_next_sys_time_h='<'sys/time.h'>'
9387 else
9388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
9389 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
9390 if ${gl_cv_next_sys_time_h+:} false; then :
9391 $as_echo_n "(cached) " >&6
9392 else
9393
9394 if test $ac_cv_header_sys_time_h = yes; then
9395
9396
9397
9398
9399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9400 /* end confdefs.h. */
9401 #include <sys/time.h>
9402 _ACEOF
9403 case "$host_os" in
9404 aix*) gl_absname_cpp="$ac_cpp -C" ;;
9405 *) gl_absname_cpp="$ac_cpp" ;;
9406 esac
9407
9408 case "$host_os" in
9409 mingw*)
9410 gl_dirsep_regex='[/\\]'
9411 ;;
9412 *)
9413 gl_dirsep_regex='\/'
9414 ;;
9415 esac
9416 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
9417 gl_header_literal_regex=`echo 'sys/time.h' \
9418 | sed -e "$gl_make_literal_regex_sed"`
9419 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9420 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9421 s|^/[^/]|//&|
9422 p
9423 q
9424 }'
9425
9426 gl_cv_absolute_sys_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9427 sed -n "$gl_absolute_header_sed"`
9428
9429 gl_header=$gl_cv_absolute_sys_time_h
9430 gl_cv_next_sys_time_h='"'$gl_header'"'
9431 else
9432 gl_cv_next_sys_time_h='<'sys/time.h'>'
9433 fi
9434
9435
9436 fi
9437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
9438 $as_echo "$gl_cv_next_sys_time_h" >&6; }
9439 fi
9440 NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
9441
9442 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
9443 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9444 gl_next_as_first_directive='<'sys/time.h'>'
9445 else
9446 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9447 gl_next_as_first_directive=$gl_cv_next_sys_time_h
9448 fi
9449 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
9450
9451
9452
9453
9454
9455 if test $ac_cv_header_sys_time_h != yes; then
9456 HAVE_SYS_TIME_H=0
9457 fi
9458
9459
9460
9461
9462
9463 :
9464
9465
9466
9467
9468
9469 if test $ac_cv_header_sys_socket_h != yes; then
9470 for ac_header in winsock2.h
9471 do :
9472 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
9473 if test "x$ac_cv_header_winsock2_h" = xyes; then :
9474 cat >>confdefs.h <<_ACEOF
9475 #define HAVE_WINSOCK2_H 1
9476 _ACEOF
9477
9478 fi
9479
9480 done
9481
9482 fi
9483 if test "$ac_cv_header_winsock2_h" = yes; then
9484 HAVE_WINSOCK2_H=1
9485 UNISTD_H_HAVE_WINSOCK2_H=1
9486 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
9487 else
9488 HAVE_WINSOCK2_H=0
9489 fi
9490
9491
9492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
9493 $as_echo_n "checking for struct timeval... " >&6; }
9494 if ${gl_cv_sys_struct_timeval+:} false; then :
9495 $as_echo_n "(cached) " >&6
9496 else
9497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9498 /* end confdefs.h. */
9499 #if HAVE_SYS_TIME_H
9500 #include <sys/time.h>
9501 #endif
9502 #include <time.h>
9503 #if HAVE_WINSOCK2_H
9504 # include <winsock2.h>
9505 #endif
9506
9507 int
9508 main ()
9509 {
9510 static struct timeval x; x.tv_sec = x.tv_usec;
9511 ;
9512 return 0;
9513 }
9514 _ACEOF
9515 if ac_fn_c_try_compile "$LINENO"; then :
9516 gl_cv_sys_struct_timeval=yes
9517 else
9518 gl_cv_sys_struct_timeval=no
9519 fi
9520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9521
9522 fi
9523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
9524 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
9525 if test $gl_cv_sys_struct_timeval != yes; then
9526 HAVE_STRUCT_TIMEVAL=0
9527 else
9528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
9529 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
9530 if ${gl_cv_sys_struct_timeval_tv_sec+:} false; then :
9531 $as_echo_n "(cached) " >&6
9532 else
9533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9534 /* end confdefs.h. */
9535 #if HAVE_SYS_TIME_H
9536 #include <sys/time.h>
9537 #endif
9538 #include <time.h>
9539 #if HAVE_WINSOCK2_H
9540 # include <winsock2.h>
9541 #endif
9542
9543 int
9544 main ()
9545 {
9546 static struct timeval x;
9547 typedef int verify_tv_sec_type[
9548 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
9549 ];
9550
9551 ;
9552 return 0;
9553 }
9554 _ACEOF
9555 if ac_fn_c_try_compile "$LINENO"; then :
9556 gl_cv_sys_struct_timeval_tv_sec=yes
9557 else
9558 gl_cv_sys_struct_timeval_tv_sec=no
9559 fi
9560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9561
9562 fi
9563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
9564 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
9565 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
9566 REPLACE_STRUCT_TIMEVAL=1
9567 fi
9568 fi
9569
9570
9571 for gl_func in gettimeofday; do
9572 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
9573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
9574 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
9575 if eval \${$as_gl_Symbol+:} false; then :
9576 $as_echo_n "(cached) " >&6
9577 else
9578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9579 /* end confdefs.h. */
9580
9581 #if HAVE_SYS_TIME_H
9582 # include <sys/time.h>
9583 #endif
9584 #include <time.h>
9585
9586 int
9587 main ()
9588 {
9589 #undef $gl_func
9590 (void) $gl_func;
9591 ;
9592 return 0;
9593 }
9594 _ACEOF
9595 if ac_fn_c_try_compile "$LINENO"; then :
9596 eval "$as_gl_Symbol=yes"
9597 else
9598 eval "$as_gl_Symbol=no"
9599 fi
9600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9601 fi
9602 eval ac_res=\$$as_gl_Symbol
9603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9604 $as_echo "$ac_res" >&6; }
9605 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
9606 cat >>confdefs.h <<_ACEOF
9607 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
9608 _ACEOF
9609
9610 eval ac_cv_have_decl_$gl_func=yes
9611 fi
9612 done
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
9639 GNULIB_SOCKET=0;
9640 GNULIB_CONNECT=0;
9641 GNULIB_ACCEPT=0;
9642 GNULIB_BIND=0;
9643 GNULIB_GETPEERNAME=0;
9644 GNULIB_GETSOCKNAME=0;
9645 GNULIB_GETSOCKOPT=0;
9646 GNULIB_LISTEN=0;
9647 GNULIB_RECV=0;
9648 GNULIB_SEND=0;
9649 GNULIB_RECVFROM=0;
9650 GNULIB_SENDTO=0;
9651 GNULIB_SETSOCKOPT=0;
9652 GNULIB_SHUTDOWN=0;
9653 GNULIB_ACCEPT4=0;
9654 HAVE_STRUCT_SOCKADDR_STORAGE=1;
9655 HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY=1;
9656
9657 HAVE_SA_FAMILY_T=1;
9658 HAVE_ACCEPT4=1;
9659
9660
9661 :
9662
9663
9664
9665
9666
9667 if test $ac_cv_header_sys_socket_h = no; then
9668 for ac_header in ws2tcpip.h
9669 do :
9670 ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
9671 if test "x$ac_cv_header_ws2tcpip_h" = xyes; then :
9672 cat >>confdefs.h <<_ACEOF
9673 #define HAVE_WS2TCPIP_H 1
9674 _ACEOF
9675
9676 fi
9677
9678 done
9679
9680 fi
9681
9682
9683
9684
9685
9686 case "$host_os" in
9687 osf*)
9688
9689 $as_echo "#define _POSIX_PII_SOCKET 1" >>confdefs.h
9690
9691 ;;
9692 esac
9693
9694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> is self-contained" >&5
9695 $as_echo_n "checking whether <sys/socket.h> is self-contained... " >&6; }
9696 if ${gl_cv_header_sys_socket_h_selfcontained+:} false; then :
9697 $as_echo_n "(cached) " >&6
9698 else
9699
9700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9701 /* end confdefs.h. */
9702 #include <sys/socket.h>
9703 int
9704 main ()
9705 {
9706
9707 ;
9708 return 0;
9709 }
9710 _ACEOF
9711 if ac_fn_c_try_compile "$LINENO"; then :
9712 gl_cv_header_sys_socket_h_selfcontained=yes
9713 else
9714 gl_cv_header_sys_socket_h_selfcontained=no
9715 fi
9716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9717
9718 fi
9719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_selfcontained" >&5
9720 $as_echo "$gl_cv_header_sys_socket_h_selfcontained" >&6; }
9721 if test $gl_cv_header_sys_socket_h_selfcontained = yes; then
9722 for ac_func in shutdown
9723 do :
9724 ac_fn_c_check_func "$LINENO" "shutdown" "ac_cv_func_shutdown"
9725 if test "x$ac_cv_func_shutdown" = xyes; then :
9726 cat >>confdefs.h <<_ACEOF
9727 #define HAVE_SHUTDOWN 1
9728 _ACEOF
9729
9730 fi
9731 done
9732
9733 if test $ac_cv_func_shutdown = yes; then
9734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> defines the SHUT_* macros" >&5
9735 $as_echo_n "checking whether <sys/socket.h> defines the SHUT_* macros... " >&6; }
9736 if ${gl_cv_header_sys_socket_h_shut+:} false; then :
9737 $as_echo_n "(cached) " >&6
9738 else
9739
9740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9741 /* end confdefs.h. */
9742 #include <sys/socket.h>
9743 int
9744 main ()
9745 {
9746 int a[] = { SHUT_RD, SHUT_WR, SHUT_RDWR };
9747 ;
9748 return 0;
9749 }
9750 _ACEOF
9751 if ac_fn_c_try_compile "$LINENO"; then :
9752 gl_cv_header_sys_socket_h_shut=yes
9753 else
9754 gl_cv_header_sys_socket_h_shut=no
9755 fi
9756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9757
9758 fi
9759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_shut" >&5
9760 $as_echo "$gl_cv_header_sys_socket_h_shut" >&6; }
9761 if test $gl_cv_header_sys_socket_h_shut = no; then
9762 SYS_SOCKET_H='sys/socket.h'
9763 fi
9764 fi
9765 fi
9766 # We need to check for ws2tcpip.h now.
9767
9768
9769
9770
9771
9772
9773
9774
9775 :
9776
9777
9778
9779
9780
9781
9782
9783
9784 if test $gl_cv_have_include_next = yes; then
9785 gl_cv_next_sys_socket_h='<'sys/socket.h'>'
9786 else
9787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/socket.h>" >&5
9788 $as_echo_n "checking absolute name of <sys/socket.h>... " >&6; }
9789 if ${gl_cv_next_sys_socket_h+:} false; then :
9790 $as_echo_n "(cached) " >&6
9791 else
9792
9793 if test $ac_cv_header_sys_socket_h = yes; then
9794
9795
9796
9797
9798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9799 /* end confdefs.h. */
9800 #include <sys/socket.h>
9801 _ACEOF
9802 case "$host_os" in
9803 aix*) gl_absname_cpp="$ac_cpp -C" ;;
9804 *) gl_absname_cpp="$ac_cpp" ;;
9805 esac
9806
9807 case "$host_os" in
9808 mingw*)
9809 gl_dirsep_regex='[/\\]'
9810 ;;
9811 *)
9812 gl_dirsep_regex='\/'
9813 ;;
9814 esac
9815 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
9816 gl_header_literal_regex=`echo 'sys/socket.h' \
9817 | sed -e "$gl_make_literal_regex_sed"`
9818 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9819 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9820 s|^/[^/]|//&|
9821 p
9822 q
9823 }'
9824
9825 gl_cv_absolute_sys_socket_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9826 sed -n "$gl_absolute_header_sed"`
9827
9828 gl_header=$gl_cv_absolute_sys_socket_h
9829 gl_cv_next_sys_socket_h='"'$gl_header'"'
9830 else
9831 gl_cv_next_sys_socket_h='<'sys/socket.h'>'
9832 fi
9833
9834
9835 fi
9836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_socket_h" >&5
9837 $as_echo "$gl_cv_next_sys_socket_h" >&6; }
9838 fi
9839 NEXT_SYS_SOCKET_H=$gl_cv_next_sys_socket_h
9840
9841 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
9842 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9843 gl_next_as_first_directive='<'sys/socket.h'>'
9844 else
9845 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9846 gl_next_as_first_directive=$gl_cv_next_sys_socket_h
9847 fi
9848 NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H=$gl_next_as_first_directive
9849
9850
9851
9852
9853 if test $ac_cv_header_sys_socket_h = yes; then
9854 HAVE_SYS_SOCKET_H=1
9855 HAVE_WS2TCPIP_H=0
9856 else
9857 HAVE_SYS_SOCKET_H=0
9858 if test $ac_cv_header_ws2tcpip_h = yes; then
9859 HAVE_WS2TCPIP_H=1
9860 else
9861 HAVE_WS2TCPIP_H=0
9862 fi
9863 fi
9864
9865
9866
9867 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
9868 /* sys/types.h is not needed according to POSIX, but the
9869 sys/socket.h in i386-unknown-freebsd4.10 and
9870 powerpc-apple-darwin5.5 required it. */
9871 #include <sys/types.h>
9872 #ifdef HAVE_SYS_SOCKET_H
9873 #include <sys/socket.h>
9874 #endif
9875 #ifdef HAVE_WS2TCPIP_H
9876 #include <ws2tcpip.h>
9877 #endif
9878
9879 "
9880 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
9881
9882 cat >>confdefs.h <<_ACEOF
9883 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
9884 _ACEOF
9885
9886
9887 fi
9888 ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "
9889 /* sys/types.h is not needed according to POSIX, but the
9890 sys/socket.h in i386-unknown-freebsd4.10 and
9891 powerpc-apple-darwin5.5 required it. */
9892 #include <sys/types.h>
9893 #ifdef HAVE_SYS_SOCKET_H
9894 #include <sys/socket.h>
9895 #endif
9896 #ifdef HAVE_WS2TCPIP_H
9897 #include <ws2tcpip.h>
9898 #endif
9899
9900 "
9901 if test "x$ac_cv_type_sa_family_t" = xyes; then :
9902
9903 cat >>confdefs.h <<_ACEOF
9904 #define HAVE_SA_FAMILY_T 1
9905 _ACEOF
9906
9907
9908 fi
9909
9910 if test $ac_cv_type_struct_sockaddr_storage = no; then
9911 HAVE_STRUCT_SOCKADDR_STORAGE=0
9912 fi
9913 if test $ac_cv_type_sa_family_t = no; then
9914 HAVE_SA_FAMILY_T=0
9915 fi
9916 if test $ac_cv_type_struct_sockaddr_storage != no; then
9917 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include <sys/types.h>
9918 #ifdef HAVE_SYS_SOCKET_H
9919 #include <sys/socket.h>
9920 #endif
9921 #ifdef HAVE_WS2TCPIP_H
9922 #include <ws2tcpip.h>
9923 #endif
9924
9925 "
9926 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes; then :
9927
9928 cat >>confdefs.h <<_ACEOF
9929 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
9930 _ACEOF
9931
9932
9933 else
9934 HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY=0
9935 fi
9936
9937 fi
9938 if test $HAVE_STRUCT_SOCKADDR_STORAGE = 0 || test $HAVE_SA_FAMILY_T = 0 \
9939 || test $HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY = 0; then
9940 SYS_SOCKET_H='sys/socket.h'
9941 fi
9942
9943
9944
9945
9946 :
9947
9948
9949
9950
9951
9952 if test $ac_cv_header_sys_socket_h != yes; then
9953 for ac_header in winsock2.h
9954 do :
9955 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
9956 if test "x$ac_cv_header_winsock2_h" = xyes; then :
9957 cat >>confdefs.h <<_ACEOF
9958 #define HAVE_WINSOCK2_H 1
9959 _ACEOF
9960
9961 fi
9962
9963 done
9964
9965 fi
9966 if test "$ac_cv_header_winsock2_h" = yes; then
9967 HAVE_WINSOCK2_H=1
9968 UNISTD_H_HAVE_WINSOCK2_H=1
9969 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
9970 else
9971 HAVE_WINSOCK2_H=0
9972 fi
9973
9974
9975
9976
9977 for gl_func in socket connect accept bind getpeername getsockname getsockopt listen recv send recvfrom sendto setsockopt shutdown accept4; do
9978 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
9979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
9980 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
9981 if eval \${$as_gl_Symbol+:} false; then :
9982 $as_echo_n "(cached) " >&6
9983 else
9984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9985 /* end confdefs.h. */
9986
9987 /* Some systems require prerequisite headers. */
9988 #include <sys/types.h>
9989 #include <sys/socket.h>
9990
9991 int
9992 main ()
9993 {
9994 #undef $gl_func
9995 (void) $gl_func;
9996 ;
9997 return 0;
9998 }
9999 _ACEOF
10000 if ac_fn_c_try_compile "$LINENO"; then :
10001 eval "$as_gl_Symbol=yes"
10002 else
10003 eval "$as_gl_Symbol=no"
10004 fi
10005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10006 fi
10007 eval ac_res=\$$as_gl_Symbol
10008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10009 $as_echo "$ac_res" >&6; }
10010 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
10011 cat >>confdefs.h <<_ACEOF
10012 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
10013 _ACEOF
10014
10015 eval ac_cv_have_decl_$gl_func=yes
10016 fi
10017 done
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028 :
10029
10030
10031
10032
10033
10034
10035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv4 sockets" >&5
10036 $as_echo_n "checking for IPv4 sockets... " >&6; }
10037 if ${gl_cv_socket_ipv4+:} false; then :
10038 $as_echo_n "(cached) " >&6
10039 else
10040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10041 /* end confdefs.h. */
10042 #include <sys/types.h>
10043 #ifdef HAVE_SYS_SOCKET_H
10044 #include <sys/socket.h>
10045 #endif
10046 #ifdef HAVE_NETINET_IN_H
10047 #include <netinet/in.h>
10048 #endif
10049 #ifdef HAVE_WINSOCK2_H
10050 #include <winsock2.h>
10051 #endif
10052 int
10053 main ()
10054 {
10055 int x = AF_INET; struct in_addr y; struct sockaddr_in z;
10056 if (&x && &y && &z) return 0;
10057 ;
10058 return 0;
10059 }
10060 _ACEOF
10061 if ac_fn_c_try_compile "$LINENO"; then :
10062 gl_cv_socket_ipv4=yes
10063 else
10064 gl_cv_socket_ipv4=no
10065 fi
10066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10067 fi
10068
10069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socket_ipv4" >&5
10070 $as_echo "$gl_cv_socket_ipv4" >&6; }
10071 if test $gl_cv_socket_ipv4 = yes; then
10072
10073 $as_echo "#define HAVE_IPV4 1" >>confdefs.h
10074
10075 fi
10076
10077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 sockets" >&5
10078 $as_echo_n "checking for IPv6 sockets... " >&6; }
10079 if ${gl_cv_socket_ipv6+:} false; then :
10080 $as_echo_n "(cached) " >&6
10081 else
10082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10083 /* end confdefs.h. */
10084 #include <sys/types.h>
10085 #ifdef HAVE_SYS_SOCKET_H
10086 #include <sys/socket.h>
10087 #endif
10088 #ifdef HAVE_NETINET_IN_H
10089 #include <netinet/in.h>
10090 #endif
10091 #ifdef HAVE_WINSOCK2_H
10092 #include <winsock2.h>
10093 #endif
10094 #ifdef HAVE_WS2TCPIP_H
10095 #include <ws2tcpip.h>
10096 #endif
10097 int
10098 main ()
10099 {
10100 int x = AF_INET6; struct in6_addr y; struct sockaddr_in6 z;
10101 if (&x && &y && &z) return 0;
10102 ;
10103 return 0;
10104 }
10105 _ACEOF
10106 if ac_fn_c_try_compile "$LINENO"; then :
10107 gl_cv_socket_ipv6=yes
10108 else
10109 gl_cv_socket_ipv6=no
10110 fi
10111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10112 fi
10113
10114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socket_ipv6" >&5
10115 $as_echo "$gl_cv_socket_ipv6" >&6; }
10116 if test $gl_cv_socket_ipv6 = yes; then
10117
10118 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
10119
10120 fi
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134 :
10135
10136
10137
10138
10139
10140
10141
10142
10143 if test $gl_cv_have_include_next = yes; then
10144 gl_cv_next_limits_h='<'limits.h'>'
10145 else
10146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <limits.h>" >&5
10147 $as_echo_n "checking absolute name of <limits.h>... " >&6; }
10148 if ${gl_cv_next_limits_h+:} false; then :
10149 $as_echo_n "(cached) " >&6
10150 else
10151
10152 if test $ac_cv_header_limits_h = yes; then
10153
10154
10155
10156
10157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10158 /* end confdefs.h. */
10159 #include <limits.h>
10160 _ACEOF
10161 case "$host_os" in
10162 aix*) gl_absname_cpp="$ac_cpp -C" ;;
10163 *) gl_absname_cpp="$ac_cpp" ;;
10164 esac
10165
10166 case "$host_os" in
10167 mingw*)
10168 gl_dirsep_regex='[/\\]'
10169 ;;
10170 *)
10171 gl_dirsep_regex='\/'
10172 ;;
10173 esac
10174 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
10175 gl_header_literal_regex=`echo 'limits.h' \
10176 | sed -e "$gl_make_literal_regex_sed"`
10177 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10178 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10179 s|^/[^/]|//&|
10180 p
10181 q
10182 }'
10183
10184 gl_cv_absolute_limits_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10185 sed -n "$gl_absolute_header_sed"`
10186
10187 gl_header=$gl_cv_absolute_limits_h
10188 gl_cv_next_limits_h='"'$gl_header'"'
10189 else
10190 gl_cv_next_limits_h='<'limits.h'>'
10191 fi
10192
10193
10194 fi
10195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_limits_h" >&5
10196 $as_echo "$gl_cv_next_limits_h" >&6; }
10197 fi
10198 NEXT_LIMITS_H=$gl_cv_next_limits_h
10199
10200 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
10201 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10202 gl_next_as_first_directive='<'limits.h'>'
10203 else
10204 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10205 gl_next_as_first_directive=$gl_cv_next_limits_h
10206 fi
10207 NEXT_AS_FIRST_DIRECTIVE_LIMITS_H=$gl_next_as_first_directive
10208
10209
10210
10211
10212
10213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether limits.h has ULLONG_WIDTH etc." >&5
10214 $as_echo_n "checking whether limits.h has ULLONG_WIDTH etc.... " >&6; }
10215 if ${gl_cv_header_limits_width+:} false; then :
10216 $as_echo_n "(cached) " >&6
10217 else
10218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10219 /* end confdefs.h. */
10220 #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
10221 #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
10222 #endif
10223 #include <limits.h>
10224 int ullw = ULLONG_WIDTH;
10225 int
10226 main ()
10227 {
10228
10229 ;
10230 return 0;
10231 }
10232 _ACEOF
10233 if ac_fn_c_try_compile "$LINENO"; then :
10234 gl_cv_header_limits_width=yes
10235 else
10236 gl_cv_header_limits_width=no
10237 fi
10238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10239 fi
10240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_limits_width" >&5
10241 $as_echo "$gl_cv_header_limits_width" >&6; }
10242 if test "$gl_cv_header_limits_width" = yes; then
10243 LIMITS_H=
10244 else
10245 LIMITS_H=limits.h
10246 fi
10247
10248 if test -n "$LIMITS_H"; then
10249 GL_GENERATE_LIMITS_H_TRUE=
10250 GL_GENERATE_LIMITS_H_FALSE='#'
10251 else
10252 GL_GENERATE_LIMITS_H_TRUE='#'
10253 GL_GENERATE_LIMITS_H_FALSE=
10254 fi
10255
10256
10257
10258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
10259 $as_echo_n "checking for unsigned long long int... " >&6; }
10260 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
10261 $as_echo_n "(cached) " >&6
10262 else
10263 ac_cv_type_unsigned_long_long_int=yes
10264 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
10265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10266 /* end confdefs.h. */
10267
10268 /* For now, do not test the preprocessor; as of 2007 there are too many
10269 implementations with broken preprocessors. Perhaps this can
10270 be revisited in 2012. In the meantime, code should not expect
10271 #if to work with literals wider than 32 bits. */
10272 /* Test literals. */
10273 long long int ll = 9223372036854775807ll;
10274 long long int nll = -9223372036854775807LL;
10275 unsigned long long int ull = 18446744073709551615ULL;
10276 /* Test constant expressions. */
10277 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
10278 ? 1 : -1)];
10279 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
10280 ? 1 : -1)];
10281 int i = 63;
10282 int
10283 main ()
10284 {
10285 /* Test availability of runtime routines for shift and division. */
10286 long long int llmax = 9223372036854775807ll;
10287 unsigned long long int ullmax = 18446744073709551615ull;
10288 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
10289 | (llmax / ll) | (llmax % ll)
10290 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
10291 | (ullmax / ull) | (ullmax % ull));
10292 ;
10293 return 0;
10294 }
10295
10296 _ACEOF
10297 if ac_fn_c_try_link "$LINENO"; then :
10298
10299 else
10300 ac_cv_type_unsigned_long_long_int=no
10301 fi
10302 rm -f core conftest.err conftest.$ac_objext \
10303 conftest$ac_exeext conftest.$ac_ext
10304 fi
10305 fi
10306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
10307 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
10308 if test $ac_cv_type_unsigned_long_long_int = yes; then
10309
10310 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
10311
10312 fi
10313
10314
10315
10316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
10317 $as_echo_n "checking for long long int... " >&6; }
10318 if ${ac_cv_type_long_long_int+:} false; then :
10319 $as_echo_n "(cached) " >&6
10320 else
10321 ac_cv_type_long_long_int=yes
10322 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
10323 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
10324 if test $ac_cv_type_long_long_int = yes; then
10325 if test "$cross_compiling" = yes; then :
10326 :
10327 else
10328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10329 /* end confdefs.h. */
10330 #include <limits.h>
10331 #ifndef LLONG_MAX
10332 # define HALF \
10333 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
10334 # define LLONG_MAX (HALF - 1 + HALF)
10335 #endif
10336 int
10337 main ()
10338 {
10339 long long int n = 1;
10340 int i;
10341 for (i = 0; ; i++)
10342 {
10343 long long int m = n << i;
10344 if (m >> i != n)
10345 return 1;
10346 if (LLONG_MAX / 2 < m)
10347 break;
10348 }
10349 return 0;
10350 ;
10351 return 0;
10352 }
10353 _ACEOF
10354 if ac_fn_c_try_run "$LINENO"; then :
10355
10356 else
10357 ac_cv_type_long_long_int=no
10358 fi
10359 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10360 conftest.$ac_objext conftest.beam conftest.$ac_ext
10361 fi
10362
10363 fi
10364 fi
10365 fi
10366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
10367 $as_echo "$ac_cv_type_long_long_int" >&6; }
10368 if test $ac_cv_type_long_long_int = yes; then
10369
10370 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
10371
10372 fi
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385 gl_cv_c_multiarch=no
10386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10387 /* end confdefs.h. */
10388 #ifndef __APPLE_CC__
10389 not a universal capable compiler
10390 #endif
10391 typedef int dummy;
10392
10393 _ACEOF
10394 if ac_fn_c_try_compile "$LINENO"; then :
10395
10396 arch=
10397 prev=
10398 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
10399 if test -n "$prev"; then
10400 case $word in
10401 i?86 | x86_64 | ppc | ppc64)
10402 if test -z "$arch" || test "$arch" = "$word"; then
10403 arch="$word"
10404 else
10405 gl_cv_c_multiarch=yes
10406 fi
10407 ;;
10408 esac
10409 prev=
10410 else
10411 if test "x$word" = "x-arch"; then
10412 prev=arch
10413 fi
10414 fi
10415 done
10416
10417 fi
10418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10419 if test $gl_cv_c_multiarch = yes; then
10420 APPLE_UNIVERSAL_BUILD=1
10421 else
10422 APPLE_UNIVERSAL_BUILD=0
10423 fi
10424
10425
10426
10427
10428
10429
10430
10431 if test $ac_cv_type_long_long_int = yes; then
10432 HAVE_LONG_LONG_INT=1
10433 else
10434 HAVE_LONG_LONG_INT=0
10435 fi
10436
10437
10438 if test $ac_cv_type_unsigned_long_long_int = yes; then
10439 HAVE_UNSIGNED_LONG_LONG_INT=1
10440 else
10441 HAVE_UNSIGNED_LONG_LONG_INT=0
10442 fi
10443
10444
10445
10446 :
10447
10448
10449
10450
10451
10452 if test $ac_cv_header_wchar_h = yes; then
10453 HAVE_WCHAR_H=1
10454 else
10455 HAVE_WCHAR_H=0
10456 fi
10457
10458
10459 if test $ac_cv_header_inttypes_h = yes; then
10460 HAVE_INTTYPES_H=1
10461 else
10462 HAVE_INTTYPES_H=0
10463 fi
10464
10465
10466 if test $ac_cv_header_sys_types_h = yes; then
10467 HAVE_SYS_TYPES_H=1
10468 else
10469 HAVE_SYS_TYPES_H=0
10470 fi
10471
10472
10473
10474
10475
10476
10477
10478
10479 :
10480
10481
10482
10483
10484
10485
10486
10487
10488 if test $gl_cv_have_include_next = yes; then
10489 gl_cv_next_stdint_h='<'stdint.h'>'
10490 else
10491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
10492 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
10493 if ${gl_cv_next_stdint_h+:} false; then :
10494 $as_echo_n "(cached) " >&6
10495 else
10496
10497 if test $ac_cv_header_stdint_h = yes; then
10498
10499
10500
10501
10502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10503 /* end confdefs.h. */
10504 #include <stdint.h>
10505 _ACEOF
10506 case "$host_os" in
10507 aix*) gl_absname_cpp="$ac_cpp -C" ;;
10508 *) gl_absname_cpp="$ac_cpp" ;;
10509 esac
10510
10511 case "$host_os" in
10512 mingw*)
10513 gl_dirsep_regex='[/\\]'
10514 ;;
10515 *)
10516 gl_dirsep_regex='\/'
10517 ;;
10518 esac
10519 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
10520 gl_header_literal_regex=`echo 'stdint.h' \
10521 | sed -e "$gl_make_literal_regex_sed"`
10522 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10523 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10524 s|^/[^/]|//&|
10525 p
10526 q
10527 }'
10528
10529 gl_cv_absolute_stdint_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10530 sed -n "$gl_absolute_header_sed"`
10531
10532 gl_header=$gl_cv_absolute_stdint_h
10533 gl_cv_next_stdint_h='"'$gl_header'"'
10534 else
10535 gl_cv_next_stdint_h='<'stdint.h'>'
10536 fi
10537
10538
10539 fi
10540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
10541 $as_echo "$gl_cv_next_stdint_h" >&6; }
10542 fi
10543 NEXT_STDINT_H=$gl_cv_next_stdint_h
10544
10545 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
10546 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10547 gl_next_as_first_directive='<'stdint.h'>'
10548 else
10549 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10550 gl_next_as_first_directive=$gl_cv_next_stdint_h
10551 fi
10552 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
10553
10554
10555
10556
10557 if test $ac_cv_header_stdint_h = yes; then
10558 HAVE_STDINT_H=1
10559 else
10560 HAVE_STDINT_H=0
10561 fi
10562
10563
10564 if test $ac_cv_header_stdint_h = yes; then
10565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
10566 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
10567 if ${gl_cv_header_working_stdint_h+:} false; then :
10568 $as_echo_n "(cached) " >&6
10569 else
10570 gl_cv_header_working_stdint_h=no
10571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10572 /* end confdefs.h. */
10573
10574
10575 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
10576 #define __STDC_CONSTANT_MACROS 1
10577 #define __STDC_LIMIT_MACROS 1
10578 #include <stdint.h>
10579 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
10580 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
10581 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
10582 #endif
10583
10584
10585 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10586 included before <wchar.h>. */
10587 #include <stddef.h>
10588 #include <signal.h>
10589 #if HAVE_WCHAR_H
10590 # include <stdio.h>
10591 # include <time.h>
10592 # include <wchar.h>
10593 #endif
10594
10595
10596 #ifdef INT8_MAX
10597 int8_t a1 = INT8_MAX;
10598 int8_t a1min = INT8_MIN;
10599 #endif
10600 #ifdef INT16_MAX
10601 int16_t a2 = INT16_MAX;
10602 int16_t a2min = INT16_MIN;
10603 #endif
10604 #ifdef INT32_MAX
10605 int32_t a3 = INT32_MAX;
10606 int32_t a3min = INT32_MIN;
10607 #endif
10608 #ifdef INT64_MAX
10609 int64_t a4 = INT64_MAX;
10610 int64_t a4min = INT64_MIN;
10611 #endif
10612 #ifdef UINT8_MAX
10613 uint8_t b1 = UINT8_MAX;
10614 #else
10615 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
10616 #endif
10617 #ifdef UINT16_MAX
10618 uint16_t b2 = UINT16_MAX;
10619 #endif
10620 #ifdef UINT32_MAX
10621 uint32_t b3 = UINT32_MAX;
10622 #endif
10623 #ifdef UINT64_MAX
10624 uint64_t b4 = UINT64_MAX;
10625 #endif
10626 int_least8_t c1 = INT8_C (0x7f);
10627 int_least8_t c1max = INT_LEAST8_MAX;
10628 int_least8_t c1min = INT_LEAST8_MIN;
10629 int_least16_t c2 = INT16_C (0x7fff);
10630 int_least16_t c2max = INT_LEAST16_MAX;
10631 int_least16_t c2min = INT_LEAST16_MIN;
10632 int_least32_t c3 = INT32_C (0x7fffffff);
10633 int_least32_t c3max = INT_LEAST32_MAX;
10634 int_least32_t c3min = INT_LEAST32_MIN;
10635 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
10636 int_least64_t c4max = INT_LEAST64_MAX;
10637 int_least64_t c4min = INT_LEAST64_MIN;
10638 uint_least8_t d1 = UINT8_C (0xff);
10639 uint_least8_t d1max = UINT_LEAST8_MAX;
10640 uint_least16_t d2 = UINT16_C (0xffff);
10641 uint_least16_t d2max = UINT_LEAST16_MAX;
10642 uint_least32_t d3 = UINT32_C (0xffffffff);
10643 uint_least32_t d3max = UINT_LEAST32_MAX;
10644 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
10645 uint_least64_t d4max = UINT_LEAST64_MAX;
10646 int_fast8_t e1 = INT_FAST8_MAX;
10647 int_fast8_t e1min = INT_FAST8_MIN;
10648 int_fast16_t e2 = INT_FAST16_MAX;
10649 int_fast16_t e2min = INT_FAST16_MIN;
10650 int_fast32_t e3 = INT_FAST32_MAX;
10651 int_fast32_t e3min = INT_FAST32_MIN;
10652 int_fast64_t e4 = INT_FAST64_MAX;
10653 int_fast64_t e4min = INT_FAST64_MIN;
10654 uint_fast8_t f1 = UINT_FAST8_MAX;
10655 uint_fast16_t f2 = UINT_FAST16_MAX;
10656 uint_fast32_t f3 = UINT_FAST32_MAX;
10657 uint_fast64_t f4 = UINT_FAST64_MAX;
10658 #ifdef INTPTR_MAX
10659 intptr_t g = INTPTR_MAX;
10660 intptr_t gmin = INTPTR_MIN;
10661 #endif
10662 #ifdef UINTPTR_MAX
10663 uintptr_t h = UINTPTR_MAX;
10664 #endif
10665 intmax_t i = INTMAX_MAX;
10666 uintmax_t j = UINTMAX_MAX;
10667
10668 /* Check that SIZE_MAX has the correct type, if possible. */
10669 #if 201112 <= __STDC_VERSION__
10670 int k = _Generic (SIZE_MAX, size_t: 0);
10671 #elif (2 <= __GNUC__ || defined __IBM__TYPEOF__ \
10672 || (0x5110 <= __SUNPRO_C && !__STDC__))
10673 extern size_t k;
10674 extern __typeof__ (SIZE_MAX) k;
10675 #endif
10676
10677 #include <limits.h> /* for CHAR_BIT */
10678 #define TYPE_MINIMUM(t) \
10679 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
10680 #define TYPE_MAXIMUM(t) \
10681 ((t) ((t) 0 < (t) -1 \
10682 ? (t) -1 \
10683 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
10684 struct s {
10685 int check_PTRDIFF:
10686 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
10687 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
10688 ? 1 : -1;
10689 /* Detect bug in FreeBSD 6.0 / ia64. */
10690 int check_SIG_ATOMIC:
10691 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
10692 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
10693 ? 1 : -1;
10694 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
10695 int check_WCHAR:
10696 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
10697 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
10698 ? 1 : -1;
10699 /* Detect bug in mingw. */
10700 int check_WINT:
10701 WINT_MIN == TYPE_MINIMUM (wint_t)
10702 && WINT_MAX == TYPE_MAXIMUM (wint_t)
10703 ? 1 : -1;
10704
10705 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
10706 int check_UINT8_C:
10707 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
10708 int check_UINT16_C:
10709 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
10710
10711 /* Detect bugs in OpenBSD 3.9 stdint.h. */
10712 #ifdef UINT8_MAX
10713 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
10714 #endif
10715 #ifdef UINT16_MAX
10716 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
10717 #endif
10718 #ifdef UINT32_MAX
10719 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
10720 #endif
10721 #ifdef UINT64_MAX
10722 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
10723 #endif
10724 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
10725 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
10726 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
10727 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
10728 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
10729 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
10730 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
10731 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
10732 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
10733 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
10734 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
10735 };
10736
10737 int
10738 main ()
10739 {
10740
10741 ;
10742 return 0;
10743 }
10744 _ACEOF
10745 if ac_fn_c_try_compile "$LINENO"; then :
10746 if test "$cross_compiling" = yes; then :
10747 gl_cv_header_working_stdint_h=yes
10748
10749 else
10750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10751 /* end confdefs.h. */
10752
10753
10754 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
10755 #define __STDC_CONSTANT_MACROS 1
10756 #define __STDC_LIMIT_MACROS 1
10757 #include <stdint.h>
10758
10759
10760 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10761 included before <wchar.h>. */
10762 #include <stddef.h>
10763 #include <signal.h>
10764 #if HAVE_WCHAR_H
10765 # include <stdio.h>
10766 # include <time.h>
10767 # include <wchar.h>
10768 #endif
10769
10770
10771 #include <stdio.h>
10772 #include <string.h>
10773 #define MVAL(macro) MVAL1(macro)
10774 #define MVAL1(expression) #expression
10775 static const char *macro_values[] =
10776 {
10777 #ifdef INT8_MAX
10778 MVAL (INT8_MAX),
10779 #endif
10780 #ifdef INT16_MAX
10781 MVAL (INT16_MAX),
10782 #endif
10783 #ifdef INT32_MAX
10784 MVAL (INT32_MAX),
10785 #endif
10786 #ifdef INT64_MAX
10787 MVAL (INT64_MAX),
10788 #endif
10789 #ifdef UINT8_MAX
10790 MVAL (UINT8_MAX),
10791 #endif
10792 #ifdef UINT16_MAX
10793 MVAL (UINT16_MAX),
10794 #endif
10795 #ifdef UINT32_MAX
10796 MVAL (UINT32_MAX),
10797 #endif
10798 #ifdef UINT64_MAX
10799 MVAL (UINT64_MAX),
10800 #endif
10801 NULL
10802 };
10803
10804 int
10805 main ()
10806 {
10807
10808 const char **mv;
10809 for (mv = macro_values; *mv != NULL; mv++)
10810 {
10811 const char *value = *mv;
10812 /* Test whether it looks like a cast expression. */
10813 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
10814 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
10815 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
10816 || strncmp (value, "((int)"/*)*/, 6) == 0
10817 || strncmp (value, "((signed short)"/*)*/, 15) == 0
10818 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
10819 return mv - macro_values + 1;
10820 }
10821 return 0;
10822
10823 ;
10824 return 0;
10825 }
10826 _ACEOF
10827 if ac_fn_c_try_run "$LINENO"; then :
10828 gl_cv_header_working_stdint_h=yes
10829 fi
10830 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10831 conftest.$ac_objext conftest.beam conftest.$ac_ext
10832 fi
10833
10834
10835 fi
10836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10837
10838 fi
10839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
10840 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
10841 fi
10842
10843 HAVE_C99_STDINT_H=0
10844 HAVE_SYS_BITYPES_H=0
10845 HAVE_SYS_INTTYPES_H=0
10846 STDINT_H=stdint.h
10847 if test "$gl_cv_header_working_stdint_h" = yes; then
10848 HAVE_C99_STDINT_H=1
10849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h predates C++11" >&5
10850 $as_echo_n "checking whether stdint.h predates C++11... " >&6; }
10851 if ${gl_cv_header_stdint_predates_cxx11_h+:} false; then :
10852 $as_echo_n "(cached) " >&6
10853 else
10854 gl_cv_header_stdint_predates_cxx11_h=yes
10855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10856 /* end confdefs.h. */
10857
10858
10859 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
10860 #include <stdint.h>
10861
10862
10863 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10864 included before <wchar.h>. */
10865 #include <stddef.h>
10866 #include <signal.h>
10867 #if HAVE_WCHAR_H
10868 # include <stdio.h>
10869 # include <time.h>
10870 # include <wchar.h>
10871 #endif
10872
10873
10874 intmax_t im = INTMAX_MAX;
10875 int32_t i32 = INT32_C (0x7fffffff);
10876
10877 int
10878 main ()
10879 {
10880
10881 ;
10882 return 0;
10883 }
10884 _ACEOF
10885 if ac_fn_c_try_compile "$LINENO"; then :
10886 gl_cv_header_stdint_predates_cxx11_h=no
10887 fi
10888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10889 fi
10890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_predates_cxx11_h" >&5
10891 $as_echo "$gl_cv_header_stdint_predates_cxx11_h" >&6; }
10892
10893 if test "$gl_cv_header_stdint_predates_cxx11_h" = yes; then
10894
10895 $as_echo "#define __STDC_CONSTANT_MACROS 1" >>confdefs.h
10896
10897
10898 $as_echo "#define __STDC_LIMIT_MACROS 1" >>confdefs.h
10899
10900 fi
10901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h has UINTMAX_WIDTH etc." >&5
10902 $as_echo_n "checking whether stdint.h has UINTMAX_WIDTH etc.... " >&6; }
10903 if ${gl_cv_header_stdint_width+:} false; then :
10904 $as_echo_n "(cached) " >&6
10905 else
10906 gl_cv_header_stdint_width=no
10907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10908 /* end confdefs.h. */
10909
10910 /* Work if build is not clean. */
10911 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1
10912 #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
10913 #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
10914 #endif
10915 #include <stdint.h>
10916
10917 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10918 included before <wchar.h>. */
10919 #include <stddef.h>
10920 #include <signal.h>
10921 #if HAVE_WCHAR_H
10922 # include <stdio.h>
10923 # include <time.h>
10924 # include <wchar.h>
10925 #endif
10926
10927 int iw = UINTMAX_WIDTH;
10928
10929 int
10930 main ()
10931 {
10932
10933 ;
10934 return 0;
10935 }
10936 _ACEOF
10937 if ac_fn_c_try_compile "$LINENO"; then :
10938 gl_cv_header_stdint_width=yes
10939 fi
10940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10941 fi
10942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_width" >&5
10943 $as_echo "$gl_cv_header_stdint_width" >&6; }
10944 if test "$gl_cv_header_stdint_width" = yes; then
10945 STDINT_H=
10946 fi
10947 else
10948 for ac_header in sys/inttypes.h sys/bitypes.h
10949 do :
10950 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10951 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10952 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10953 cat >>confdefs.h <<_ACEOF
10954 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10955 _ACEOF
10956
10957 fi
10958
10959 done
10960
10961 if test $ac_cv_header_sys_inttypes_h = yes; then
10962 HAVE_SYS_INTTYPES_H=1
10963 fi
10964 if test $ac_cv_header_sys_bitypes_h = yes; then
10965 HAVE_SYS_BITYPES_H=1
10966 fi
10967
10968
10969 if test $APPLE_UNIVERSAL_BUILD = 0; then
10970
10971
10972 for gltype in ptrdiff_t size_t ; do
10973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
10974 $as_echo_n "checking for bit size of $gltype... " >&6; }
10975 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
10976 $as_echo_n "(cached) " >&6
10977 else
10978 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
10979 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10980 included before <wchar.h>. */
10981 #include <stddef.h>
10982 #include <signal.h>
10983 #if HAVE_WCHAR_H
10984 # include <stdio.h>
10985 # include <time.h>
10986 # include <wchar.h>
10987 #endif
10988
10989 #include <limits.h>"; then :
10990
10991 else
10992 result=unknown
10993 fi
10994
10995 eval gl_cv_bitsizeof_${gltype}=\$result
10996
10997 fi
10998 eval ac_res=\$gl_cv_bitsizeof_${gltype}
10999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11000 $as_echo "$ac_res" >&6; }
11001 eval result=\$gl_cv_bitsizeof_${gltype}
11002 if test $result = unknown; then
11003 result=0
11004 fi
11005 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
11006 cat >>confdefs.h <<_ACEOF
11007 #define BITSIZEOF_${GLTYPE} $result
11008 _ACEOF
11009
11010 eval BITSIZEOF_${GLTYPE}=\$result
11011 done
11012
11013
11014 fi
11015
11016
11017 for gltype in sig_atomic_t wchar_t wint_t ; do
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
11019 $as_echo_n "checking for bit size of $gltype... " >&6; }
11020 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
11021 $as_echo_n "(cached) " >&6
11022 else
11023 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
11024 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11025 included before <wchar.h>. */
11026 #include <stddef.h>
11027 #include <signal.h>
11028 #if HAVE_WCHAR_H
11029 # include <stdio.h>
11030 # include <time.h>
11031 # include <wchar.h>
11032 #endif
11033
11034 #include <limits.h>"; then :
11035
11036 else
11037 result=unknown
11038 fi
11039
11040 eval gl_cv_bitsizeof_${gltype}=\$result
11041
11042 fi
11043 eval ac_res=\$gl_cv_bitsizeof_${gltype}
11044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11045 $as_echo "$ac_res" >&6; }
11046 eval result=\$gl_cv_bitsizeof_${gltype}
11047 if test $result = unknown; then
11048 result=0
11049 fi
11050 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
11051 cat >>confdefs.h <<_ACEOF
11052 #define BITSIZEOF_${GLTYPE} $result
11053 _ACEOF
11054
11055 eval BITSIZEOF_${GLTYPE}=\$result
11056 done
11057
11058
11059
11060
11061 for gltype in sig_atomic_t wchar_t wint_t ; do
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
11063 $as_echo_n "checking whether $gltype is signed... " >&6; }
11064 if eval \${gl_cv_type_${gltype}_signed+:} false; then :
11065 $as_echo_n "(cached) " >&6
11066 else
11067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11068 /* end confdefs.h. */
11069
11070 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11071 included before <wchar.h>. */
11072 #include <stddef.h>
11073 #include <signal.h>
11074 #if HAVE_WCHAR_H
11075 # include <stdio.h>
11076 # include <time.h>
11077 # include <wchar.h>
11078 #endif
11079
11080 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
11081 int
11082 main ()
11083 {
11084
11085 ;
11086 return 0;
11087 }
11088 _ACEOF
11089 if ac_fn_c_try_compile "$LINENO"; then :
11090 result=yes
11091 else
11092 result=no
11093 fi
11094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11095 eval gl_cv_type_${gltype}_signed=\$result
11096
11097 fi
11098 eval ac_res=\$gl_cv_type_${gltype}_signed
11099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11100 $as_echo "$ac_res" >&6; }
11101 eval result=\$gl_cv_type_${gltype}_signed
11102 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
11103 if test "$result" = yes; then
11104 cat >>confdefs.h <<_ACEOF
11105 #define HAVE_SIGNED_${GLTYPE} 1
11106 _ACEOF
11107
11108 eval HAVE_SIGNED_${GLTYPE}=1
11109 else
11110 eval HAVE_SIGNED_${GLTYPE}=0
11111 fi
11112 done
11113
11114
11115 gl_cv_type_ptrdiff_t_signed=yes
11116 gl_cv_type_size_t_signed=no
11117 if test $APPLE_UNIVERSAL_BUILD = 0; then
11118
11119
11120 for gltype in ptrdiff_t size_t ; do
11121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
11122 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
11123 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
11124 $as_echo_n "(cached) " >&6
11125 else
11126 eval gl_cv_type_${gltype}_suffix=no
11127 eval result=\$gl_cv_type_${gltype}_signed
11128 if test "$result" = yes; then
11129 glsufu=
11130 else
11131 glsufu=u
11132 fi
11133 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
11134 case $glsuf in
11135 '') gltype1='int';;
11136 l) gltype1='long int';;
11137 ll) gltype1='long long int';;
11138 i64) gltype1='__int64';;
11139 u) gltype1='unsigned int';;
11140 ul) gltype1='unsigned long int';;
11141 ull) gltype1='unsigned long long int';;
11142 ui64)gltype1='unsigned __int64';;
11143 esac
11144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11145 /* end confdefs.h. */
11146
11147 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11148 included before <wchar.h>. */
11149 #include <stddef.h>
11150 #include <signal.h>
11151 #if HAVE_WCHAR_H
11152 # include <stdio.h>
11153 # include <time.h>
11154 # include <wchar.h>
11155 #endif
11156
11157 extern $gltype foo;
11158 extern $gltype1 foo;
11159 int
11160 main ()
11161 {
11162
11163 ;
11164 return 0;
11165 }
11166 _ACEOF
11167 if ac_fn_c_try_compile "$LINENO"; then :
11168 eval gl_cv_type_${gltype}_suffix=\$glsuf
11169 fi
11170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11171 eval result=\$gl_cv_type_${gltype}_suffix
11172 test "$result" != no && break
11173 done
11174 fi
11175 eval ac_res=\$gl_cv_type_${gltype}_suffix
11176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11177 $as_echo "$ac_res" >&6; }
11178 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
11179 eval result=\$gl_cv_type_${gltype}_suffix
11180 test "$result" = no && result=
11181 eval ${GLTYPE}_SUFFIX=\$result
11182 cat >>confdefs.h <<_ACEOF
11183 #define ${GLTYPE}_SUFFIX $result
11184 _ACEOF
11185
11186 done
11187
11188
11189 fi
11190
11191
11192 for gltype in sig_atomic_t wchar_t wint_t ; do
11193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
11194 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
11195 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
11196 $as_echo_n "(cached) " >&6
11197 else
11198 eval gl_cv_type_${gltype}_suffix=no
11199 eval result=\$gl_cv_type_${gltype}_signed
11200 if test "$result" = yes; then
11201 glsufu=
11202 else
11203 glsufu=u
11204 fi
11205 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
11206 case $glsuf in
11207 '') gltype1='int';;
11208 l) gltype1='long int';;
11209 ll) gltype1='long long int';;
11210 i64) gltype1='__int64';;
11211 u) gltype1='unsigned int';;
11212 ul) gltype1='unsigned long int';;
11213 ull) gltype1='unsigned long long int';;
11214 ui64)gltype1='unsigned __int64';;
11215 esac
11216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11217 /* end confdefs.h. */
11218
11219 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11220 included before <wchar.h>. */
11221 #include <stddef.h>
11222 #include <signal.h>
11223 #if HAVE_WCHAR_H
11224 # include <stdio.h>
11225 # include <time.h>
11226 # include <wchar.h>
11227 #endif
11228
11229 extern $gltype foo;
11230 extern $gltype1 foo;
11231 int
11232 main ()
11233 {
11234
11235 ;
11236 return 0;
11237 }
11238 _ACEOF
11239 if ac_fn_c_try_compile "$LINENO"; then :
11240 eval gl_cv_type_${gltype}_suffix=\$glsuf
11241 fi
11242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11243 eval result=\$gl_cv_type_${gltype}_suffix
11244 test "$result" != no && break
11245 done
11246 fi
11247 eval ac_res=\$gl_cv_type_${gltype}_suffix
11248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11249 $as_echo "$ac_res" >&6; }
11250 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
11251 eval result=\$gl_cv_type_${gltype}_suffix
11252 test "$result" = no && result=
11253 eval ${GLTYPE}_SUFFIX=\$result
11254 cat >>confdefs.h <<_ACEOF
11255 #define ${GLTYPE}_SUFFIX $result
11256 _ACEOF
11257
11258 done
11259
11260
11261
11262 if test $BITSIZEOF_WINT_T -lt 32; then
11263 BITSIZEOF_WINT_T=32
11264 fi
11265
11266 fi
11267
11268 # The substitute stdint.h needs the substitute limit.h's _GL_INTEGER_WIDTH.
11269 LIMITS_H=limits.h
11270 if test -n "$LIMITS_H"; then
11271 GL_GENERATE_LIMITS_H_TRUE=
11272 GL_GENERATE_LIMITS_H_FALSE='#'
11273 else
11274 GL_GENERATE_LIMITS_H_TRUE='#'
11275 GL_GENERATE_LIMITS_H_FALSE=
11276 fi
11277
11278
11279
11280
11281
11282
11283 if test -n "$STDINT_H"; then
11284 GL_GENERATE_STDINT_H_TRUE=
11285 GL_GENERATE_STDINT_H_FALSE='#'
11286 else
11287 GL_GENERATE_STDINT_H_TRUE='#'
11288 GL_GENERATE_STDINT_H_FALSE=
11289 fi
11290
11291
11292
11293
11294
11295
11296
11297
11298 GNULIB_IMAXABS=0;
11299 GNULIB_IMAXDIV=0;
11300 GNULIB_STRTOIMAX=0;
11301 GNULIB_STRTOUMAX=0;
11302 HAVE_DECL_IMAXABS=1;
11303 HAVE_DECL_IMAXDIV=1;
11304 HAVE_DECL_STRTOIMAX=1;
11305 HAVE_DECL_STRTOUMAX=1;
11306 REPLACE_STRTOIMAX=0;
11307 REPLACE_STRTOUMAX=0;
11308 INT32_MAX_LT_INTMAX_MAX=1;
11309 INT64_MAX_EQ_LONG_MAX='defined _LP64';
11310 PRI_MACROS_BROKEN=0;
11311 PRIPTR_PREFIX=__PRIPTR_PREFIX;
11312 UINT32_MAX_LT_UINTMAX_MAX=1;
11313 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
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
11341 if test $gl_cv_have_include_next = yes; then
11342 gl_cv_next_inttypes_h='<'inttypes.h'>'
11343 else
11344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
11345 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
11346 if ${gl_cv_next_inttypes_h+:} false; then :
11347 $as_echo_n "(cached) " >&6
11348 else
11349
11350 if test $ac_cv_header_inttypes_h = yes; then
11351
11352
11353
11354
11355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11356 /* end confdefs.h. */
11357 #include <inttypes.h>
11358 _ACEOF
11359 case "$host_os" in
11360 aix*) gl_absname_cpp="$ac_cpp -C" ;;
11361 *) gl_absname_cpp="$ac_cpp" ;;
11362 esac
11363
11364 case "$host_os" in
11365 mingw*)
11366 gl_dirsep_regex='[/\\]'
11367 ;;
11368 *)
11369 gl_dirsep_regex='\/'
11370 ;;
11371 esac
11372 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
11373 gl_header_literal_regex=`echo 'inttypes.h' \
11374 | sed -e "$gl_make_literal_regex_sed"`
11375 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11376 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11377 s|^/[^/]|//&|
11378 p
11379 q
11380 }'
11381
11382 gl_cv_absolute_inttypes_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11383 sed -n "$gl_absolute_header_sed"`
11384
11385 gl_header=$gl_cv_absolute_inttypes_h
11386 gl_cv_next_inttypes_h='"'$gl_header'"'
11387 else
11388 gl_cv_next_inttypes_h='<'inttypes.h'>'
11389 fi
11390
11391
11392 fi
11393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
11394 $as_echo "$gl_cv_next_inttypes_h" >&6; }
11395 fi
11396 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
11397
11398 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11399 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11400 gl_next_as_first_directive='<'inttypes.h'>'
11401 else
11402 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11403 gl_next_as_first_directive=$gl_cv_next_inttypes_h
11404 fi
11405 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
11406
11407
11408
11409
11410
11411
11412
11413
11414 for gl_func in imaxabs imaxdiv strtoimax strtoumax; do
11415 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
11417 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
11418 if eval \${$as_gl_Symbol+:} false; then :
11419 $as_echo_n "(cached) " >&6
11420 else
11421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11422 /* end confdefs.h. */
11423 #include <inttypes.h>
11424
11425 int
11426 main ()
11427 {
11428 #undef $gl_func
11429 (void) $gl_func;
11430 ;
11431 return 0;
11432 }
11433 _ACEOF
11434 if ac_fn_c_try_compile "$LINENO"; then :
11435 eval "$as_gl_Symbol=yes"
11436 else
11437 eval "$as_gl_Symbol=no"
11438 fi
11439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11440 fi
11441 eval ac_res=\$$as_gl_Symbol
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11443 $as_echo "$ac_res" >&6; }
11444 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
11445 cat >>confdefs.h <<_ACEOF
11446 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
11447 _ACEOF
11448
11449 eval ac_cv_have_decl_$gl_func=yes
11450 fi
11451 done
11452
11453
11454
11455 for ac_header in inttypes.h
11456 do :
11457 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
11458 if test "x$ac_cv_header_inttypes_h" = xyes; then :
11459 cat >>confdefs.h <<_ACEOF
11460 #define HAVE_INTTYPES_H 1
11461 _ACEOF
11462
11463 fi
11464
11465 done
11466
11467 if test $ac_cv_header_inttypes_h = yes; then
11468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
11469 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
11470 if ${gt_cv_inttypes_pri_broken+:} false; then :
11471 $as_echo_n "(cached) " >&6
11472 else
11473
11474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11475 /* end confdefs.h. */
11476
11477 #include <inttypes.h>
11478 #ifdef PRId32
11479 char *p = PRId32;
11480 #endif
11481
11482 int
11483 main ()
11484 {
11485
11486 ;
11487 return 0;
11488 }
11489 _ACEOF
11490 if ac_fn_c_try_compile "$LINENO"; then :
11491 gt_cv_inttypes_pri_broken=no
11492 else
11493 gt_cv_inttypes_pri_broken=yes
11494 fi
11495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11496
11497 fi
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
11499 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
11500 fi
11501 if test "$gt_cv_inttypes_pri_broken" = yes; then
11502
11503 cat >>confdefs.h <<_ACEOF
11504 #define PRI_MACROS_BROKEN 1
11505 _ACEOF
11506
11507 PRI_MACROS_BROKEN=1
11508 else
11509 PRI_MACROS_BROKEN=0
11510 fi
11511
11512
11513
11514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
11515 $as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
11516 if ${gl_cv_cc_double_expbit0+:} false; then :
11517 $as_echo_n "(cached) " >&6
11518 else
11519
11520 if test "$cross_compiling" = yes; then :
11521
11522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11523 /* end confdefs.h. */
11524
11525 #if defined arm || defined __arm || defined __arm__
11526 mixed_endianness
11527 #endif
11528
11529 _ACEOF
11530 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11531 $EGREP "mixed_endianness" >/dev/null 2>&1; then :
11532 gl_cv_cc_double_expbit0="unknown"
11533 else
11534
11535 :
11536 if ${ac_cv_c_bigendian+:} false; then :
11537 $as_echo_n "(cached) " >&6
11538 else
11539 ac_cv_c_bigendian=unknown
11540 # See if we're dealing with a universal compiler.
11541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11542 /* end confdefs.h. */
11543 #ifndef __APPLE_CC__
11544 not a universal capable compiler
11545 #endif
11546 typedef int dummy;
11547
11548 _ACEOF
11549 if ac_fn_c_try_compile "$LINENO"; then :
11550
11551 # Check for potential -arch flags. It is not universal unless
11552 # there are at least two -arch flags with different values.
11553 ac_arch=
11554 ac_prev=
11555 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
11556 if test -n "$ac_prev"; then
11557 case $ac_word in
11558 i?86 | x86_64 | ppc | ppc64)
11559 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
11560 ac_arch=$ac_word
11561 else
11562 ac_cv_c_bigendian=universal
11563 break
11564 fi
11565 ;;
11566 esac
11567 ac_prev=
11568 elif test "x$ac_word" = "x-arch"; then
11569 ac_prev=arch
11570 fi
11571 done
11572 fi
11573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11574 if test $ac_cv_c_bigendian = unknown; then
11575 # See if sys/param.h defines the BYTE_ORDER macro.
11576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11577 /* end confdefs.h. */
11578 #include <sys/types.h>
11579 #include <sys/param.h>
11580
11581 int
11582 main ()
11583 {
11584 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
11585 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
11586 && LITTLE_ENDIAN)
11587 bogus endian macros
11588 #endif
11589
11590 ;
11591 return 0;
11592 }
11593 _ACEOF
11594 if ac_fn_c_try_compile "$LINENO"; then :
11595 # It does; now see whether it defined to BIG_ENDIAN or not.
11596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11597 /* end confdefs.h. */
11598 #include <sys/types.h>
11599 #include <sys/param.h>
11600
11601 int
11602 main ()
11603 {
11604 #if BYTE_ORDER != BIG_ENDIAN
11605 not big endian
11606 #endif
11607
11608 ;
11609 return 0;
11610 }
11611 _ACEOF
11612 if ac_fn_c_try_compile "$LINENO"; then :
11613 ac_cv_c_bigendian=yes
11614 else
11615 ac_cv_c_bigendian=no
11616 fi
11617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11618 fi
11619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11620 fi
11621 if test $ac_cv_c_bigendian = unknown; then
11622 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
11623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11624 /* end confdefs.h. */
11625 #include <limits.h>
11626
11627 int
11628 main ()
11629 {
11630 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
11631 bogus endian macros
11632 #endif
11633
11634 ;
11635 return 0;
11636 }
11637 _ACEOF
11638 if ac_fn_c_try_compile "$LINENO"; then :
11639 # It does; now see whether it defined to _BIG_ENDIAN or not.
11640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11641 /* end confdefs.h. */
11642 #include <limits.h>
11643
11644 int
11645 main ()
11646 {
11647 #ifndef _BIG_ENDIAN
11648 not big endian
11649 #endif
11650
11651 ;
11652 return 0;
11653 }
11654 _ACEOF
11655 if ac_fn_c_try_compile "$LINENO"; then :
11656 ac_cv_c_bigendian=yes
11657 else
11658 ac_cv_c_bigendian=no
11659 fi
11660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11661 fi
11662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11663 fi
11664 if test $ac_cv_c_bigendian = unknown; then
11665 # Compile a test program.
11666 if test "$cross_compiling" = yes; then :
11667 # Try to guess by grepping values from an object file.
11668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11669 /* end confdefs.h. */
11670 short int ascii_mm[] =
11671 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
11672 short int ascii_ii[] =
11673 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
11674 int use_ascii (int i) {
11675 return ascii_mm[i] + ascii_ii[i];
11676 }
11677 short int ebcdic_ii[] =
11678 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
11679 short int ebcdic_mm[] =
11680 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
11681 int use_ebcdic (int i) {
11682 return ebcdic_mm[i] + ebcdic_ii[i];
11683 }
11684 extern int foo;
11685
11686 int
11687 main ()
11688 {
11689 return use_ascii (foo) == use_ebcdic (foo);
11690 ;
11691 return 0;
11692 }
11693 _ACEOF
11694 if ac_fn_c_try_compile "$LINENO"; then :
11695 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
11696 ac_cv_c_bigendian=yes
11697 fi
11698 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
11699 if test "$ac_cv_c_bigendian" = unknown; then
11700 ac_cv_c_bigendian=no
11701 else
11702 # finding both strings is unlikely to happen, but who knows?
11703 ac_cv_c_bigendian=unknown
11704 fi
11705 fi
11706 fi
11707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11708 else
11709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11710 /* end confdefs.h. */
11711 $ac_includes_default
11712 int
11713 main ()
11714 {
11715
11716 /* Are we little or big endian? From Harbison&Steele. */
11717 union
11718 {
11719 long int l;
11720 char c[sizeof (long int)];
11721 } u;
11722 u.l = 1;
11723 return u.c[sizeof (long int) - 1] == 1;
11724
11725 ;
11726 return 0;
11727 }
11728 _ACEOF
11729 if ac_fn_c_try_run "$LINENO"; then :
11730 ac_cv_c_bigendian=no
11731 else
11732 ac_cv_c_bigendian=yes
11733 fi
11734 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11735 conftest.$ac_objext conftest.beam conftest.$ac_ext
11736 fi
11737
11738 fi
11739 fi
11740 :
11741 case $ac_cv_c_bigendian in #(
11742 yes)
11743 gl_cv_cc_double_expbit0="word 0 bit 20";; #(
11744 no)
11745 gl_cv_cc_double_expbit0="word 1 bit 20" ;; #(
11746 universal)
11747
11748 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
11749
11750 ;; #(
11751 *)
11752 gl_cv_cc_double_expbit0="unknown" ;;
11753 esac
11754
11755
11756 fi
11757 rm -f conftest*
11758
11759
11760 else
11761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11762 /* end confdefs.h. */
11763
11764 #include <float.h>
11765 #include <stddef.h>
11766 #include <stdio.h>
11767 #include <string.h>
11768 #define NWORDS \
11769 ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
11770 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
11771 static unsigned int ored_words[NWORDS];
11772 static unsigned int anded_words[NWORDS];
11773 static void add_to_ored_words (double x)
11774 {
11775 memory_double m;
11776 size_t i;
11777 /* Clear it first, in case sizeof (double) < sizeof (memory_double). */
11778 memset (&m, 0, sizeof (memory_double));
11779 m.value = x;
11780 for (i = 0; i < NWORDS; i++)
11781 {
11782 ored_words[i] |= m.word[i];
11783 anded_words[i] &= m.word[i];
11784 }
11785 }
11786 int main ()
11787 {
11788 size_t j;
11789 FILE *fp = fopen ("conftest.out", "w");
11790 if (fp == NULL)
11791 return 1;
11792 for (j = 0; j < NWORDS; j++)
11793 anded_words[j] = ~ (unsigned int) 0;
11794 add_to_ored_words (0.25);
11795 add_to_ored_words (0.5);
11796 add_to_ored_words (1.0);
11797 add_to_ored_words (2.0);
11798 add_to_ored_words (4.0);
11799 /* Remove bits that are common (e.g. if representation of the first mantissa
11800 bit is explicit). */
11801 for (j = 0; j < NWORDS; j++)
11802 ored_words[j] &= ~anded_words[j];
11803 /* Now find the nonzero word. */
11804 for (j = 0; j < NWORDS; j++)
11805 if (ored_words[j] != 0)
11806 break;
11807 if (j < NWORDS)
11808 {
11809 size_t i;
11810 for (i = j + 1; i < NWORDS; i++)
11811 if (ored_words[i] != 0)
11812 {
11813 fprintf (fp, "unknown");
11814 return (fclose (fp) != 0);
11815 }
11816 for (i = 0; ; i++)
11817 if ((ored_words[j] >> i) & 1)
11818 {
11819 fprintf (fp, "word %d bit %d", (int) j, (int) i);
11820 return (fclose (fp) != 0);
11821 }
11822 }
11823 fprintf (fp, "unknown");
11824 return (fclose (fp) != 0);
11825 }
11826
11827 _ACEOF
11828 if ac_fn_c_try_run "$LINENO"; then :
11829 gl_cv_cc_double_expbit0=`cat conftest.out`
11830 else
11831 gl_cv_cc_double_expbit0="unknown"
11832 fi
11833 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11834 conftest.$ac_objext conftest.beam conftest.$ac_ext
11835 fi
11836
11837 rm -f conftest.out
11838
11839 fi
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
11841 $as_echo "$gl_cv_cc_double_expbit0" >&6; }
11842 case "$gl_cv_cc_double_expbit0" in
11843 word*bit*)
11844 word=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
11845 bit=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
11846
11847 cat >>confdefs.h <<_ACEOF
11848 #define DBL_EXPBIT0_WORD $word
11849 _ACEOF
11850
11851
11852 cat >>confdefs.h <<_ACEOF
11853 #define DBL_EXPBIT0_BIT $bit
11854 _ACEOF
11855
11856 ;;
11857 esac
11858
11859
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
11861 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
11862 if ${ac_cv_c_bigendian+:} false; then :
11863 $as_echo_n "(cached) " >&6
11864 else
11865 ac_cv_c_bigendian=unknown
11866 # See if we're dealing with a universal compiler.
11867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11868 /* end confdefs.h. */
11869 #ifndef __APPLE_CC__
11870 not a universal capable compiler
11871 #endif
11872 typedef int dummy;
11873
11874 _ACEOF
11875 if ac_fn_c_try_compile "$LINENO"; then :
11876
11877 # Check for potential -arch flags. It is not universal unless
11878 # there are at least two -arch flags with different values.
11879 ac_arch=
11880 ac_prev=
11881 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
11882 if test -n "$ac_prev"; then
11883 case $ac_word in
11884 i?86 | x86_64 | ppc | ppc64)
11885 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
11886 ac_arch=$ac_word
11887 else
11888 ac_cv_c_bigendian=universal
11889 break
11890 fi
11891 ;;
11892 esac
11893 ac_prev=
11894 elif test "x$ac_word" = "x-arch"; then
11895 ac_prev=arch
11896 fi
11897 done
11898 fi
11899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11900 if test $ac_cv_c_bigendian = unknown; then
11901 # See if sys/param.h defines the BYTE_ORDER macro.
11902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11903 /* end confdefs.h. */
11904 #include <sys/types.h>
11905 #include <sys/param.h>
11906
11907 int
11908 main ()
11909 {
11910 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
11911 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
11912 && LITTLE_ENDIAN)
11913 bogus endian macros
11914 #endif
11915
11916 ;
11917 return 0;
11918 }
11919 _ACEOF
11920 if ac_fn_c_try_compile "$LINENO"; then :
11921 # It does; now see whether it defined to BIG_ENDIAN or not.
11922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11923 /* end confdefs.h. */
11924 #include <sys/types.h>
11925 #include <sys/param.h>
11926
11927 int
11928 main ()
11929 {
11930 #if BYTE_ORDER != BIG_ENDIAN
11931 not big endian
11932 #endif
11933
11934 ;
11935 return 0;
11936 }
11937 _ACEOF
11938 if ac_fn_c_try_compile "$LINENO"; then :
11939 ac_cv_c_bigendian=yes
11940 else
11941 ac_cv_c_bigendian=no
11942 fi
11943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11944 fi
11945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11946 fi
11947 if test $ac_cv_c_bigendian = unknown; then
11948 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
11949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11950 /* end confdefs.h. */
11951 #include <limits.h>
11952
11953 int
11954 main ()
11955 {
11956 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
11957 bogus endian macros
11958 #endif
11959
11960 ;
11961 return 0;
11962 }
11963 _ACEOF
11964 if ac_fn_c_try_compile "$LINENO"; then :
11965 # It does; now see whether it defined to _BIG_ENDIAN or not.
11966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11967 /* end confdefs.h. */
11968 #include <limits.h>
11969
11970 int
11971 main ()
11972 {
11973 #ifndef _BIG_ENDIAN
11974 not big endian
11975 #endif
11976
11977 ;
11978 return 0;
11979 }
11980 _ACEOF
11981 if ac_fn_c_try_compile "$LINENO"; then :
11982 ac_cv_c_bigendian=yes
11983 else
11984 ac_cv_c_bigendian=no
11985 fi
11986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11987 fi
11988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11989 fi
11990 if test $ac_cv_c_bigendian = unknown; then
11991 # Compile a test program.
11992 if test "$cross_compiling" = yes; then :
11993 # Try to guess by grepping values from an object file.
11994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11995 /* end confdefs.h. */
11996 short int ascii_mm[] =
11997 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
11998 short int ascii_ii[] =
11999 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12000 int use_ascii (int i) {
12001 return ascii_mm[i] + ascii_ii[i];
12002 }
12003 short int ebcdic_ii[] =
12004 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12005 short int ebcdic_mm[] =
12006 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12007 int use_ebcdic (int i) {
12008 return ebcdic_mm[i] + ebcdic_ii[i];
12009 }
12010 extern int foo;
12011
12012 int
12013 main ()
12014 {
12015 return use_ascii (foo) == use_ebcdic (foo);
12016 ;
12017 return 0;
12018 }
12019 _ACEOF
12020 if ac_fn_c_try_compile "$LINENO"; then :
12021 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12022 ac_cv_c_bigendian=yes
12023 fi
12024 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12025 if test "$ac_cv_c_bigendian" = unknown; then
12026 ac_cv_c_bigendian=no
12027 else
12028 # finding both strings is unlikely to happen, but who knows?
12029 ac_cv_c_bigendian=unknown
12030 fi
12031 fi
12032 fi
12033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12034 else
12035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12036 /* end confdefs.h. */
12037 $ac_includes_default
12038 int
12039 main ()
12040 {
12041
12042 /* Are we little or big endian? From Harbison&Steele. */
12043 union
12044 {
12045 long int l;
12046 char c[sizeof (long int)];
12047 } u;
12048 u.l = 1;
12049 return u.c[sizeof (long int) - 1] == 1;
12050
12051 ;
12052 return 0;
12053 }
12054 _ACEOF
12055 if ac_fn_c_try_run "$LINENO"; then :
12056 ac_cv_c_bigendian=no
12057 else
12058 ac_cv_c_bigendian=yes
12059 fi
12060 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12061 conftest.$ac_objext conftest.beam conftest.$ac_ext
12062 fi
12063
12064 fi
12065 fi
12066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12067 $as_echo "$ac_cv_c_bigendian" >&6; }
12068 case $ac_cv_c_bigendian in #(
12069 yes)
12070 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12071 ;; #(
12072 no)
12073 ;; #(
12074 universal)
12075
12076 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12077
12078 ;; #(
12079 *)
12080 as_fn_error $? "unknown endianness
12081 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12082 esac
12083
12084
12085
12086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
12087 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
12088 if ${am_cv_langinfo_codeset+:} false; then :
12089 $as_echo_n "(cached) " >&6
12090 else
12091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12092 /* end confdefs.h. */
12093 #include <langinfo.h>
12094 int
12095 main ()
12096 {
12097 char* cs = nl_langinfo(CODESET); return !cs;
12098 ;
12099 return 0;
12100 }
12101 _ACEOF
12102 if ac_fn_c_try_link "$LINENO"; then :
12103 am_cv_langinfo_codeset=yes
12104 else
12105 am_cv_langinfo_codeset=no
12106 fi
12107 rm -f core conftest.err conftest.$ac_objext \
12108 conftest$ac_exeext conftest.$ac_ext
12109
12110 fi
12111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
12112 $as_echo "$am_cv_langinfo_codeset" >&6; }
12113 if test $am_cv_langinfo_codeset = yes; then
12114
12115 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
12116
12117 fi
12118
12119
12120 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
12121 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
12122 ac_have_decl=1
12123 else
12124 ac_have_decl=0
12125 fi
12126
12127 cat >>confdefs.h <<_ACEOF
12128 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
12129 _ACEOF
12130
12131
12132
12133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
12134 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
12135 if ${ac_cv_gnu_library_2_1+:} false; then :
12136 $as_echo_n "(cached) " >&6
12137 else
12138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12139 /* end confdefs.h. */
12140
12141 #include <features.h>
12142 #ifdef __GNU_LIBRARY__
12143 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
12144 Lucky GNU user
12145 #endif
12146 #endif
12147 #ifdef __UCLIBC__
12148 Lucky user
12149 #endif
12150
12151 _ACEOF
12152 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12153 $EGREP "Lucky" >/dev/null 2>&1; then :
12154 ac_cv_gnu_library_2_1=yes
12155 else
12156 ac_cv_gnu_library_2_1=no
12157 fi
12158 rm -f conftest*
12159
12160
12161
12162 fi
12163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
12164 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
12165
12166 GLIBC21="$ac_cv_gnu_library_2_1"
12167
12168
12169
12170
12171
12172
12173
12174
12175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
12176 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
12177 if ${gl_cv_func_malloc_posix+:} false; then :
12178 $as_echo_n "(cached) " >&6
12179 else
12180
12181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12182 /* end confdefs.h. */
12183
12184 int
12185 main ()
12186 {
12187 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
12188 choke me
12189 #endif
12190
12191 ;
12192 return 0;
12193 }
12194 _ACEOF
12195 if ac_fn_c_try_compile "$LINENO"; then :
12196 gl_cv_func_malloc_posix=yes
12197 else
12198 gl_cv_func_malloc_posix=no
12199 fi
12200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12201
12202 fi
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
12204 $as_echo "$gl_cv_func_malloc_posix" >&6; }
12205
12206
12207
12208 for ac_header in stdlib.h
12209 do :
12210 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
12211 if test "x$ac_cv_header_stdlib_h" = xyes; then :
12212 cat >>confdefs.h <<_ACEOF
12213 #define HAVE_STDLIB_H 1
12214 _ACEOF
12215
12216 fi
12217
12218 done
12219
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
12221 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
12222 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
12223 $as_echo_n "(cached) " >&6
12224 else
12225 if test "$cross_compiling" = yes; then :
12226 case "$host_os" in
12227 # Guess yes on platforms where we know the result.
12228 *-gnu* | freebsd* | netbsd* | openbsd* \
12229 | hpux* | solaris* | cygwin* | mingw*)
12230 ac_cv_func_malloc_0_nonnull=yes ;;
12231 # If we don't know, assume the worst.
12232 *) ac_cv_func_malloc_0_nonnull=no ;;
12233 esac
12234
12235 else
12236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12237 /* end confdefs.h. */
12238 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
12239 # include <stdlib.h>
12240 #else
12241 char *malloc ();
12242 #endif
12243
12244 int
12245 main ()
12246 {
12247 char *p = malloc (0);
12248 int result = !p;
12249 free (p);
12250 return result;
12251 ;
12252 return 0;
12253 }
12254
12255 _ACEOF
12256 if ac_fn_c_try_run "$LINENO"; then :
12257 ac_cv_func_malloc_0_nonnull=yes
12258 else
12259 ac_cv_func_malloc_0_nonnull=no
12260 fi
12261 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12262 conftest.$ac_objext conftest.beam conftest.$ac_ext
12263 fi
12264
12265
12266 fi
12267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
12268 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
12269 if test $ac_cv_func_malloc_0_nonnull = yes; then :
12270 gl_cv_func_malloc_0_nonnull=1
12271 else
12272 gl_cv_func_malloc_0_nonnull=0
12273 fi
12274
12275
12276 cat >>confdefs.h <<_ACEOF
12277 #define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
12278 _ACEOF
12279
12280
12281
12282
12283
12284
12285
12286
12287 GNULIB_BTOWC=0;
12288 GNULIB_WCTOB=0;
12289 GNULIB_MBSINIT=0;
12290 GNULIB_MBRTOWC=0;
12291 GNULIB_MBRLEN=0;
12292 GNULIB_MBSRTOWCS=0;
12293 GNULIB_MBSNRTOWCS=0;
12294 GNULIB_WCRTOMB=0;
12295 GNULIB_WCSRTOMBS=0;
12296 GNULIB_WCSNRTOMBS=0;
12297 GNULIB_WCWIDTH=0;
12298 GNULIB_WMEMCHR=0;
12299 GNULIB_WMEMCMP=0;
12300 GNULIB_WMEMCPY=0;
12301 GNULIB_WMEMMOVE=0;
12302 GNULIB_WMEMSET=0;
12303 GNULIB_WCSLEN=0;
12304 GNULIB_WCSNLEN=0;
12305 GNULIB_WCSCPY=0;
12306 GNULIB_WCPCPY=0;
12307 GNULIB_WCSNCPY=0;
12308 GNULIB_WCPNCPY=0;
12309 GNULIB_WCSCAT=0;
12310 GNULIB_WCSNCAT=0;
12311 GNULIB_WCSCMP=0;
12312 GNULIB_WCSNCMP=0;
12313 GNULIB_WCSCASECMP=0;
12314 GNULIB_WCSNCASECMP=0;
12315 GNULIB_WCSCOLL=0;
12316 GNULIB_WCSXFRM=0;
12317 GNULIB_WCSDUP=0;
12318 GNULIB_WCSCHR=0;
12319 GNULIB_WCSRCHR=0;
12320 GNULIB_WCSCSPN=0;
12321 GNULIB_WCSSPN=0;
12322 GNULIB_WCSPBRK=0;
12323 GNULIB_WCSSTR=0;
12324 GNULIB_WCSTOK=0;
12325 GNULIB_WCSWIDTH=0;
12326 HAVE_BTOWC=1;
12327 HAVE_MBSINIT=1;
12328 HAVE_MBRTOWC=1;
12329 HAVE_MBRLEN=1;
12330 HAVE_MBSRTOWCS=1;
12331 HAVE_MBSNRTOWCS=1;
12332 HAVE_WCRTOMB=1;
12333 HAVE_WCSRTOMBS=1;
12334 HAVE_WCSNRTOMBS=1;
12335 HAVE_WMEMCHR=1;
12336 HAVE_WMEMCMP=1;
12337 HAVE_WMEMCPY=1;
12338 HAVE_WMEMMOVE=1;
12339 HAVE_WMEMSET=1;
12340 HAVE_WCSLEN=1;
12341 HAVE_WCSNLEN=1;
12342 HAVE_WCSCPY=1;
12343 HAVE_WCPCPY=1;
12344 HAVE_WCSNCPY=1;
12345 HAVE_WCPNCPY=1;
12346 HAVE_WCSCAT=1;
12347 HAVE_WCSNCAT=1;
12348 HAVE_WCSCMP=1;
12349 HAVE_WCSNCMP=1;
12350 HAVE_WCSCASECMP=1;
12351 HAVE_WCSNCASECMP=1;
12352 HAVE_WCSCOLL=1;
12353 HAVE_WCSXFRM=1;
12354 HAVE_WCSDUP=1;
12355 HAVE_WCSCHR=1;
12356 HAVE_WCSRCHR=1;
12357 HAVE_WCSCSPN=1;
12358 HAVE_WCSSPN=1;
12359 HAVE_WCSPBRK=1;
12360 HAVE_WCSSTR=1;
12361 HAVE_WCSTOK=1;
12362 HAVE_WCSWIDTH=1;
12363 HAVE_DECL_WCTOB=1;
12364 HAVE_DECL_WCWIDTH=1;
12365 REPLACE_MBSTATE_T=0;
12366 REPLACE_BTOWC=0;
12367 REPLACE_WCTOB=0;
12368 REPLACE_MBSINIT=0;
12369 REPLACE_MBRTOWC=0;
12370 REPLACE_MBRLEN=0;
12371 REPLACE_MBSRTOWCS=0;
12372 REPLACE_MBSNRTOWCS=0;
12373 REPLACE_WCRTOMB=0;
12374 REPLACE_WCSRTOMBS=0;
12375 REPLACE_WCSNRTOMBS=0;
12376 REPLACE_WCWIDTH=0;
12377 REPLACE_WCSWIDTH=0;
12378
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
12393 $as_echo_n "checking for a traditional japanese locale... " >&6; }
12394 if ${gt_cv_locale_ja+:} false; then :
12395 $as_echo_n "(cached) " >&6
12396 else
12397
12398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12399 /* end confdefs.h. */
12400
12401 #include <locale.h>
12402 #include <time.h>
12403 #if HAVE_LANGINFO_CODESET
12404 # include <langinfo.h>
12405 #endif
12406 #include <stdlib.h>
12407 #include <string.h>
12408 struct tm t;
12409 char buf[16];
12410 int main ()
12411 {
12412 const char *p;
12413 /* Check whether the given locale name is recognized by the system. */
12414 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
12415 /* On native Windows, setlocale(category, "") looks at the system settings,
12416 not at the environment variables. Also, when an encoding suffix such
12417 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
12418 category of the locale to "C". */
12419 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
12420 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
12421 return 1;
12422 #else
12423 if (setlocale (LC_ALL, "") == NULL) return 1;
12424 #endif
12425 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
12426 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
12427 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
12428 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
12429 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
12430 some unit tests fail.
12431 On MirBSD 10, when an unsupported locale is specified, setlocale()
12432 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
12433 #if HAVE_LANGINFO_CODESET
12434 {
12435 const char *cs = nl_langinfo (CODESET);
12436 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
12437 || strcmp (cs, "UTF-8") == 0)
12438 return 1;
12439 }
12440 #endif
12441 #ifdef __CYGWIN__
12442 /* On Cygwin, avoid locale names without encoding suffix, because the
12443 locale_charset() function relies on the encoding suffix. Note that
12444 LC_ALL is set on the command line. */
12445 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
12446 #endif
12447 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales
12448 on Cygwin 1.5.x. */
12449 if (MB_CUR_MAX == 1)
12450 return 1;
12451 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
12452 This excludes the UTF-8 encoding (except on MirBSD). */
12453 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
12454 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
12455 for (p = buf; *p != '\0'; p++)
12456 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
12457 return 1;
12458 return 0;
12459 }
12460
12461 _ACEOF
12462 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12463 (eval $ac_link) 2>&5
12464 ac_status=$?
12465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12466 test $ac_status = 0; } && test -s conftest$ac_exeext; then
12467 case "$host_os" in
12468 # Handle native Windows specially, because there setlocale() interprets
12469 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
12470 # "fr" or "fra" as "French" or "French_France.1252",
12471 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
12472 # "ja" as "Japanese" or "Japanese_Japan.932",
12473 # and similar.
12474 mingw*)
12475 # Note that on native Windows, the Japanese locale is
12476 # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
12477 # cannot use it here.
12478 gt_cv_locale_ja=none
12479 ;;
12480 *)
12481 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
12482 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
12483 # configure script would override the LC_ALL setting. Likewise for
12484 # LC_CTYPE, which is also set at the beginning of the configure script.
12485 # Test for the AIX locale name.
12486 if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
12487 gt_cv_locale_ja=ja_JP
12488 else
12489 # Test for the locale name with explicit encoding suffix.
12490 if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
12491 gt_cv_locale_ja=ja_JP.EUC-JP
12492 else
12493 # Test for the HP-UX, OSF/1, NetBSD locale name.
12494 if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
12495 gt_cv_locale_ja=ja_JP.eucJP
12496 else
12497 # Test for the IRIX, FreeBSD locale name.
12498 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
12499 gt_cv_locale_ja=ja_JP.EUC
12500 else
12501 # Test for the Solaris 7 locale name.
12502 if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
12503 gt_cv_locale_ja=ja
12504 else
12505 # Special test for NetBSD 1.6.
12506 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
12507 gt_cv_locale_ja=ja_JP.eucJP
12508 else
12509 # None found.
12510 gt_cv_locale_ja=none
12511 fi
12512 fi
12513 fi
12514 fi
12515 fi
12516 fi
12517 ;;
12518 esac
12519 fi
12520 rm -fr conftest*
12521
12522 fi
12523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
12524 $as_echo "$gt_cv_locale_ja" >&6; }
12525 LOCALE_JA=$gt_cv_locale_ja
12526
12527
12528
12529
12530
12531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
12532 $as_echo_n "checking for a transitional chinese locale... " >&6; }
12533 if ${gt_cv_locale_zh_CN+:} false; then :
12534 $as_echo_n "(cached) " >&6
12535 else
12536
12537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12538 /* end confdefs.h. */
12539
12540 #include <locale.h>
12541 #include <stdlib.h>
12542 #include <time.h>
12543 #if HAVE_LANGINFO_CODESET
12544 # include <langinfo.h>
12545 #endif
12546 #include <stdlib.h>
12547 #include <string.h>
12548 struct tm t;
12549 char buf[16];
12550 int main ()
12551 {
12552 const char *p;
12553 /* Check whether the given locale name is recognized by the system. */
12554 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
12555 /* On native Windows, setlocale(category, "") looks at the system settings,
12556 not at the environment variables. Also, when an encoding suffix such
12557 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
12558 category of the locale to "C". */
12559 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
12560 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
12561 return 1;
12562 #else
12563 if (setlocale (LC_ALL, "") == NULL) return 1;
12564 #endif
12565 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
12566 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
12567 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
12568 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
12569 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
12570 some unit tests fail.
12571 On MirBSD 10, when an unsupported locale is specified, setlocale()
12572 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
12573 #if HAVE_LANGINFO_CODESET
12574 {
12575 const char *cs = nl_langinfo (CODESET);
12576 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
12577 || strcmp (cs, "UTF-8") == 0)
12578 return 1;
12579 }
12580 #endif
12581 #ifdef __CYGWIN__
12582 /* On Cygwin, avoid locale names without encoding suffix, because the
12583 locale_charset() function relies on the encoding suffix. Note that
12584 LC_ALL is set on the command line. */
12585 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
12586 #endif
12587 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
12588 This excludes the UTF-8 encoding (except on MirBSD). */
12589 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
12590 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
12591 for (p = buf; *p != '\0'; p++)
12592 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
12593 return 1;
12594 /* Check whether a typical GB18030 multibyte sequence is recognized as a
12595 single wide character. This excludes the GB2312 and GBK encodings. */
12596 if (mblen ("\203\062\332\066", 5) != 4)
12597 return 1;
12598 return 0;
12599 }
12600
12601 _ACEOF
12602 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12603 (eval $ac_link) 2>&5
12604 ac_status=$?
12605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12606 test $ac_status = 0; } && test -s conftest$ac_exeext; then
12607 case "$host_os" in
12608 # Handle native Windows specially, because there setlocale() interprets
12609 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
12610 # "fr" or "fra" as "French" or "French_France.1252",
12611 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
12612 # "ja" as "Japanese" or "Japanese_Japan.932",
12613 # and similar.
12614 mingw*)
12615 # Test for the hypothetical native Windows locale name.
12616 if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
12617 gt_cv_locale_zh_CN=Chinese_China.54936
12618 else
12619 # None found.
12620 gt_cv_locale_zh_CN=none
12621 fi
12622 ;;
12623 solaris2.8)
12624 # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
12625 # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
12626 # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
12627 gt_cv_locale_zh_CN=none
12628 ;;
12629 *)
12630 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
12631 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
12632 # configure script would override the LC_ALL setting. Likewise for
12633 # LC_CTYPE, which is also set at the beginning of the configure script.
12634 # Test for the locale name without encoding suffix.
12635 if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
12636 gt_cv_locale_zh_CN=zh_CN
12637 else
12638 # Test for the locale name with explicit encoding suffix.
12639 if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
12640 gt_cv_locale_zh_CN=zh_CN.GB18030
12641 else
12642 # None found.
12643 gt_cv_locale_zh_CN=none
12644 fi
12645 fi
12646 ;;
12647 esac
12648 else
12649 # If there was a link error, due to mblen(), the system is so old that
12650 # it certainly doesn't have a chinese locale.
12651 gt_cv_locale_zh_CN=none
12652 fi
12653 rm -fr conftest*
12654
12655 fi
12656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
12657 $as_echo "$gt_cv_locale_zh_CN" >&6; }
12658 LOCALE_ZH_CN=$gt_cv_locale_zh_CN
12659
12660
12661
12662
12663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
12664 $as_echo_n "checking for a french Unicode locale... " >&6; }
12665 if ${gt_cv_locale_fr_utf8+:} false; then :
12666 $as_echo_n "(cached) " >&6
12667 else
12668
12669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12670 /* end confdefs.h. */
12671
12672 #include <locale.h>
12673 #include <time.h>
12674 #if HAVE_LANGINFO_CODESET
12675 # include <langinfo.h>
12676 #endif
12677 #include <stdlib.h>
12678 #include <string.h>
12679 struct tm t;
12680 char buf[16];
12681 int main () {
12682 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
12683 imitates locale dependent behaviour by looking at the environment
12684 variables, and all locales use the UTF-8 encoding. */
12685 #if !(defined __BEOS__ || defined __HAIKU__)
12686 /* Check whether the given locale name is recognized by the system. */
12687 # if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
12688 /* On native Windows, setlocale(category, "") looks at the system settings,
12689 not at the environment variables. Also, when an encoding suffix such
12690 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
12691 category of the locale to "C". */
12692 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
12693 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
12694 return 1;
12695 # else
12696 if (setlocale (LC_ALL, "") == NULL) return 1;
12697 # endif
12698 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
12699 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
12700 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
12701 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
12702 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
12703 some unit tests fail. */
12704 # if HAVE_LANGINFO_CODESET
12705 {
12706 const char *cs = nl_langinfo (CODESET);
12707 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
12708 return 1;
12709 }
12710 # endif
12711 # ifdef __CYGWIN__
12712 /* On Cygwin, avoid locale names without encoding suffix, because the
12713 locale_charset() function relies on the encoding suffix. Note that
12714 LC_ALL is set on the command line. */
12715 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
12716 # endif
12717 /* Check whether in the abbreviation of the second month, the second
12718 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
12719 two bytes long, with UTF-8 encoding. */
12720 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
12721 if (strftime (buf, sizeof (buf), "%b", &t) < 4
12722 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
12723 return 1;
12724 #endif
12725 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
12726 /* Check whether the decimal separator is a comma.
12727 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
12728 are nl_langinfo(RADIXCHAR) are both ".". */
12729 if (localeconv () ->decimal_point[0] != ',') return 1;
12730 #endif
12731 return 0;
12732 }
12733
12734 _ACEOF
12735 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12736 (eval $ac_link) 2>&5
12737 ac_status=$?
12738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12739 test $ac_status = 0; } && test -s conftest$ac_exeext; then
12740 case "$host_os" in
12741 # Handle native Windows specially, because there setlocale() interprets
12742 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
12743 # "fr" or "fra" as "French" or "French_France.1252",
12744 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
12745 # "ja" as "Japanese" or "Japanese_Japan.932",
12746 # and similar.
12747 mingw*)
12748 # Test for the hypothetical native Windows locale name.
12749 if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
12750 gt_cv_locale_fr_utf8=French_France.65001
12751 else
12752 # None found.
12753 gt_cv_locale_fr_utf8=none
12754 fi
12755 ;;
12756 *)
12757 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
12758 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
12759 # configure script would override the LC_ALL setting. Likewise for
12760 # LC_CTYPE, which is also set at the beginning of the configure script.
12761 # Test for the usual locale name.
12762 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
12763 gt_cv_locale_fr_utf8=fr_FR
12764 else
12765 # Test for the locale name with explicit encoding suffix.
12766 if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
12767 gt_cv_locale_fr_utf8=fr_FR.UTF-8
12768 else
12769 # Test for the Solaris 7 locale name.
12770 if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
12771 gt_cv_locale_fr_utf8=fr.UTF-8
12772 else
12773 # None found.
12774 gt_cv_locale_fr_utf8=none
12775 fi
12776 fi
12777 fi
12778 ;;
12779 esac
12780 fi
12781 rm -fr conftest*
12782
12783 fi
12784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
12785 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
12786 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
12787
12788
12789
12790
12791
12792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
12793 $as_echo_n "checking for a traditional french locale... " >&6; }
12794 if ${gt_cv_locale_fr+:} false; then :
12795 $as_echo_n "(cached) " >&6
12796 else
12797
12798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12799 /* end confdefs.h. */
12800
12801 #include <locale.h>
12802 #include <time.h>
12803 #if HAVE_LANGINFO_CODESET
12804 # include <langinfo.h>
12805 #endif
12806 #include <stdlib.h>
12807 #include <string.h>
12808 struct tm t;
12809 char buf[16];
12810 int main () {
12811 /* Check whether the given locale name is recognized by the system. */
12812 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
12813 /* On native Windows, setlocale(category, "") looks at the system settings,
12814 not at the environment variables. Also, when an encoding suffix such
12815 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
12816 category of the locale to "C". */
12817 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
12818 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
12819 return 1;
12820 #else
12821 if (setlocale (LC_ALL, "") == NULL) return 1;
12822 #endif
12823 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
12824 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
12825 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
12826 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
12827 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
12828 some unit tests fail.
12829 On MirBSD 10, when an unsupported locale is specified, setlocale()
12830 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
12831 #if HAVE_LANGINFO_CODESET
12832 {
12833 const char *cs = nl_langinfo (CODESET);
12834 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
12835 || strcmp (cs, "UTF-8") == 0)
12836 return 1;
12837 }
12838 #endif
12839 #ifdef __CYGWIN__
12840 /* On Cygwin, avoid locale names without encoding suffix, because the
12841 locale_charset() function relies on the encoding suffix. Note that
12842 LC_ALL is set on the command line. */
12843 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
12844 #endif
12845 /* Check whether in the abbreviation of the second month, the second
12846 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
12847 one byte long. This excludes the UTF-8 encoding. */
12848 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
12849 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
12850 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
12851 /* Check whether the decimal separator is a comma.
12852 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
12853 are nl_langinfo(RADIXCHAR) are both ".". */
12854 if (localeconv () ->decimal_point[0] != ',') return 1;
12855 #endif
12856 return 0;
12857 }
12858
12859 _ACEOF
12860 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12861 (eval $ac_link) 2>&5
12862 ac_status=$?
12863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12864 test $ac_status = 0; } && test -s conftest$ac_exeext; then
12865 case "$host_os" in
12866 # Handle native Windows specially, because there setlocale() interprets
12867 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
12868 # "fr" or "fra" as "French" or "French_France.1252",
12869 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
12870 # "ja" as "Japanese" or "Japanese_Japan.932",
12871 # and similar.
12872 mingw*)
12873 # Test for the native Windows locale name.
12874 if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
12875 gt_cv_locale_fr=French_France.1252
12876 else
12877 # None found.
12878 gt_cv_locale_fr=none
12879 fi
12880 ;;
12881 *)
12882 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
12883 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
12884 # configure script would override the LC_ALL setting. Likewise for
12885 # LC_CTYPE, which is also set at the beginning of the configure script.
12886 # Test for the usual locale name.
12887 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
12888 gt_cv_locale_fr=fr_FR
12889 else
12890 # Test for the locale name with explicit encoding suffix.
12891 if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
12892 gt_cv_locale_fr=fr_FR.ISO-8859-1
12893 else
12894 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
12895 if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
12896 gt_cv_locale_fr=fr_FR.ISO8859-1
12897 else
12898 # Test for the HP-UX locale name.
12899 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
12900 gt_cv_locale_fr=fr_FR.iso88591
12901 else
12902 # Test for the Solaris 7 locale name.
12903 if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
12904 gt_cv_locale_fr=fr
12905 else
12906 # None found.
12907 gt_cv_locale_fr=none
12908 fi
12909 fi
12910 fi
12911 fi
12912 fi
12913 ;;
12914 esac
12915 fi
12916 rm -fr conftest*
12917
12918 fi
12919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
12920 $as_echo "$gt_cv_locale_fr" >&6; }
12921 LOCALE_FR=$gt_cv_locale_fr
12922
12923
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934
12935 GNULIB_FFSL=0;
12936 GNULIB_FFSLL=0;
12937 GNULIB_MEMCHR=0;
12938 GNULIB_MEMMEM=0;
12939 GNULIB_MEMPCPY=0;
12940 GNULIB_MEMRCHR=0;
12941 GNULIB_RAWMEMCHR=0;
12942 GNULIB_STPCPY=0;
12943 GNULIB_STPNCPY=0;
12944 GNULIB_STRCHRNUL=0;
12945 GNULIB_STRDUP=0;
12946 GNULIB_STRNCAT=0;
12947 GNULIB_STRNDUP=0;
12948 GNULIB_STRNLEN=0;
12949 GNULIB_STRPBRK=0;
12950 GNULIB_STRSEP=0;
12951 GNULIB_STRSTR=0;
12952 GNULIB_STRCASESTR=0;
12953 GNULIB_STRTOK_R=0;
12954 GNULIB_MBSLEN=0;
12955 GNULIB_MBSNLEN=0;
12956 GNULIB_MBSCHR=0;
12957 GNULIB_MBSRCHR=0;
12958 GNULIB_MBSSTR=0;
12959 GNULIB_MBSCASECMP=0;
12960 GNULIB_MBSNCASECMP=0;
12961 GNULIB_MBSPCASECMP=0;
12962 GNULIB_MBSCASESTR=0;
12963 GNULIB_MBSCSPN=0;
12964 GNULIB_MBSPBRK=0;
12965 GNULIB_MBSSPN=0;
12966 GNULIB_MBSSEP=0;
12967 GNULIB_MBSTOK_R=0;
12968 GNULIB_STRERROR=0;
12969 GNULIB_STRERROR_R=0;
12970 GNULIB_STRSIGNAL=0;
12971 GNULIB_STRVERSCMP=0;
12972 HAVE_MBSLEN=0;
12973 HAVE_FFSL=1;
12974 HAVE_FFSLL=1;
12975 HAVE_MEMCHR=1;
12976 HAVE_DECL_MEMMEM=1;
12977 HAVE_MEMPCPY=1;
12978 HAVE_DECL_MEMRCHR=1;
12979 HAVE_RAWMEMCHR=1;
12980 HAVE_STPCPY=1;
12981 HAVE_STPNCPY=1;
12982 HAVE_STRCHRNUL=1;
12983 HAVE_DECL_STRDUP=1;
12984 HAVE_DECL_STRNDUP=1;
12985 HAVE_DECL_STRNLEN=1;
12986 HAVE_STRPBRK=1;
12987 HAVE_STRSEP=1;
12988 HAVE_STRCASESTR=1;
12989 HAVE_DECL_STRTOK_R=1;
12990 HAVE_DECL_STRERROR_R=1;
12991 HAVE_DECL_STRSIGNAL=1;
12992 HAVE_STRVERSCMP=1;
12993 REPLACE_MEMCHR=0;
12994 REPLACE_MEMMEM=0;
12995 REPLACE_STPNCPY=0;
12996 REPLACE_STRDUP=0;
12997 REPLACE_STRSTR=0;
12998 REPLACE_STRCASESTR=0;
12999 REPLACE_STRCHRNUL=0;
13000 REPLACE_STRERROR=0;
13001 REPLACE_STRERROR_R=0;
13002 REPLACE_STRNCAT=0;
13003 REPLACE_STRNDUP=0;
13004 REPLACE_STRNLEN=0;
13005 REPLACE_STRSIGNAL=0;
13006 REPLACE_STRTOK_R=0;
13007 UNDEFINE_STRTOK_R=0;
13008
13009
13010
13011
13012
13013 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
13014 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
13015 # irrelevant for anonymous mappings.
13016 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
13017 if test "x$ac_cv_func_mmap" = xyes; then :
13018 gl_have_mmap=yes
13019 else
13020 gl_have_mmap=no
13021 fi
13022
13023
13024 # Try to allow MAP_ANONYMOUS.
13025 gl_have_mmap_anonymous=no
13026 if test $gl_have_mmap = yes; then
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
13028 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
13029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13030 /* end confdefs.h. */
13031
13032 #include <sys/mman.h>
13033 #ifdef MAP_ANONYMOUS
13034 I cannot identify this map
13035 #endif
13036
13037 _ACEOF
13038 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13039 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
13040 gl_have_mmap_anonymous=yes
13041 fi
13042 rm -f conftest*
13043
13044 if test $gl_have_mmap_anonymous != yes; then
13045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13046 /* end confdefs.h. */
13047
13048 #include <sys/mman.h>
13049 #ifdef MAP_ANON
13050 I cannot identify this map
13051 #endif
13052
13053 _ACEOF
13054 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13055 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
13056
13057 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
13058
13059 gl_have_mmap_anonymous=yes
13060 fi
13061 rm -f conftest*
13062
13063 fi
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
13065 $as_echo "$gl_have_mmap_anonymous" >&6; }
13066 if test $gl_have_mmap_anonymous = yes; then
13067
13068 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
13069
13070 fi
13071 fi
13072
13073
13074 :
13075
13076
13077
13078
13079
13080
13081 :
13082
13083
13084
13085
13086
13087
13088
13089
13090 if test $HAVE_MEMCHR = 1; then
13091 # Detect platform-specific bugs in some versions of glibc:
13092 # memchr should not dereference anything with length 0
13093 # http://bugzilla.redhat.com/499689
13094 # memchr should not dereference overestimated length after a match
13095 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
13096 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
13097 # Assume that memchr works on platforms that lack mprotect.
13098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
13099 $as_echo_n "checking whether memchr works... " >&6; }
13100 if ${gl_cv_func_memchr_works+:} false; then :
13101 $as_echo_n "(cached) " >&6
13102 else
13103 if test "$cross_compiling" = yes; then :
13104 gl_cv_func_memchr_works="guessing no"
13105 else
13106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13107 /* end confdefs.h. */
13108
13109 #include <string.h>
13110 #if HAVE_SYS_MMAN_H
13111 # include <fcntl.h>
13112 # include <unistd.h>
13113 # include <sys/types.h>
13114 # include <sys/mman.h>
13115 # ifndef MAP_FILE
13116 # define MAP_FILE 0
13117 # endif
13118 #endif
13119
13120 int
13121 main ()
13122 {
13123
13124 int result = 0;
13125 char *fence = NULL;
13126 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
13127 # if HAVE_MAP_ANONYMOUS
13128 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
13129 const int fd = -1;
13130 # else /* !HAVE_MAP_ANONYMOUS */
13131 const int flags = MAP_FILE | MAP_PRIVATE;
13132 int fd = open ("/dev/zero", O_RDONLY, 0666);
13133 if (fd >= 0)
13134 # endif
13135 {
13136 int pagesize = getpagesize ();
13137 char *two_pages =
13138 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
13139 flags, fd, 0);
13140 if (two_pages != (char *)(-1)
13141 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
13142 fence = two_pages + pagesize;
13143 }
13144 #endif
13145 if (fence)
13146 {
13147 if (memchr (fence, 0, 0))
13148 result |= 1;
13149 strcpy (fence - 9, "12345678");
13150 if (memchr (fence - 9, 0, 79) != fence - 1)
13151 result |= 2;
13152 if (memchr (fence - 1, 0, 3) != fence - 1)
13153 result |= 4;
13154 }
13155 return result;
13156
13157 ;
13158 return 0;
13159 }
13160 _ACEOF
13161 if ac_fn_c_try_run "$LINENO"; then :
13162 gl_cv_func_memchr_works=yes
13163 else
13164 gl_cv_func_memchr_works=no
13165 fi
13166 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13167 conftest.$ac_objext conftest.beam conftest.$ac_ext
13168 fi
13169
13170 fi
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
13172 $as_echo "$gl_cv_func_memchr_works" >&6; }
13173 if test "$gl_cv_func_memchr_works" != yes; then
13174 REPLACE_MEMCHR=1
13175 fi
13176 fi
13177
13178
13179 ac_fn_c_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
13180 if test "x$ac_cv_have_decl_memmem" = xyes; then :
13181 ac_have_decl=1
13182 else
13183 ac_have_decl=0
13184 fi
13185
13186 cat >>confdefs.h <<_ACEOF
13187 #define HAVE_DECL_MEMMEM $ac_have_decl
13188 _ACEOF
13189
13190
13191
13192
13193
13194
13195 for ac_func in memmem
13196 do :
13197 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
13198 if test "x$ac_cv_func_memmem" = xyes; then :
13199 cat >>confdefs.h <<_ACEOF
13200 #define HAVE_MEMMEM 1
13201 _ACEOF
13202
13203 fi
13204 done
13205
13206 if test $ac_cv_func_memmem = yes; then
13207 HAVE_MEMMEM=1
13208 else
13209 HAVE_MEMMEM=0
13210 fi
13211
13212 :
13213
13214
13215
13216
13217
13218 if test $ac_cv_have_decl_memmem = no; then
13219 HAVE_DECL_MEMMEM=0
13220 else
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
13222 $as_echo_n "checking whether memmem works... " >&6; }
13223 if ${gl_cv_func_memmem_works_always+:} false; then :
13224 $as_echo_n "(cached) " >&6
13225 else
13226 if test "$cross_compiling" = yes; then :
13227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13228 /* end confdefs.h. */
13229
13230 #ifdef __GNU_LIBRARY__
13231 #include <features.h>
13232 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
13233 || __GLIBC_MINOR__ > 12)) \
13234 || (__GLIBC__ > 2)) \
13235 || defined __UCLIBC__
13236 Lucky user
13237 #endif
13238 #elif defined __CYGWIN__
13239 #include <cygwin/version.h>
13240 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
13241 Lucky user
13242 #endif
13243 #else
13244 Lucky user
13245 #endif
13246
13247 _ACEOF
13248 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13249 $EGREP "Lucky user" >/dev/null 2>&1; then :
13250 gl_cv_func_memmem_works_always="guessing yes"
13251 else
13252 gl_cv_func_memmem_works_always="guessing no"
13253 fi
13254 rm -f conftest*
13255
13256
13257 else
13258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13259 /* end confdefs.h. */
13260
13261 #include <string.h> /* for memmem */
13262 #define P "_EF_BF_BD"
13263 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
13264 #define NEEDLE P P P P P
13265
13266 int
13267 main ()
13268 {
13269
13270 int result = 0;
13271 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
13272 result |= 1;
13273 /* Check for empty needle behavior. */
13274 {
13275 const char *haystack = "AAA";
13276 if (memmem (haystack, 3, NULL, 0) != haystack)
13277 result |= 2;
13278 }
13279 return result;
13280
13281 ;
13282 return 0;
13283 }
13284 _ACEOF
13285 if ac_fn_c_try_run "$LINENO"; then :
13286 gl_cv_func_memmem_works_always=yes
13287 else
13288 gl_cv_func_memmem_works_always=no
13289 fi
13290 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13291 conftest.$ac_objext conftest.beam conftest.$ac_ext
13292 fi
13293
13294
13295 fi
13296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
13297 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
13298 case "$gl_cv_func_memmem_works_always" in
13299 *yes) ;;
13300 *)
13301 REPLACE_MEMMEM=1
13302 ;;
13303 esac
13304 fi
13305 :
13306
13307
13308 ac_fn_c_check_decl "$LINENO" "memrchr" "ac_cv_have_decl_memrchr" "$ac_includes_default"
13309 if test "x$ac_cv_have_decl_memrchr" = xyes; then :
13310 ac_have_decl=1
13311 else
13312 ac_have_decl=0
13313 fi
13314
13315 cat >>confdefs.h <<_ACEOF
13316 #define HAVE_DECL_MEMRCHR $ac_have_decl
13317 _ACEOF
13318
13319
13320
13321
13322
13323
13324
13325
13326
13327
13328
13329
13330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for promoted mode_t type" >&5
13331 $as_echo_n "checking for promoted mode_t type... " >&6; }
13332 if ${gl_cv_promoted_mode_t+:} false; then :
13333 $as_echo_n "(cached) " >&6
13334 else
13335
13336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13337 /* end confdefs.h. */
13338 #include <sys/types.h>
13339 int
13340 main ()
13341 {
13342 typedef int array[2 * (sizeof (mode_t) < sizeof (int)) - 1];
13343 ;
13344 return 0;
13345 }
13346 _ACEOF
13347 if ac_fn_c_try_compile "$LINENO"; then :
13348 gl_cv_promoted_mode_t='int'
13349 else
13350 gl_cv_promoted_mode_t='mode_t'
13351 fi
13352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13353
13354 fi
13355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_promoted_mode_t" >&5
13356 $as_echo "$gl_cv_promoted_mode_t" >&6; }
13357
13358 cat >>confdefs.h <<_ACEOF
13359 #define PROMOTED_MODE_T $gl_cv_promoted_mode_t
13360 _ACEOF
13361
13362
13363
13364
13365
13366
13367
13368
13369 GNULIB_DPRINTF=0;
13370 GNULIB_FCLOSE=0;
13371 GNULIB_FDOPEN=0;
13372 GNULIB_FFLUSH=0;
13373 GNULIB_FGETC=0;
13374 GNULIB_FGETS=0;
13375 GNULIB_FOPEN=0;
13376 GNULIB_FPRINTF=0;
13377 GNULIB_FPRINTF_POSIX=0;
13378 GNULIB_FPURGE=0;
13379 GNULIB_FPUTC=0;
13380 GNULIB_FPUTS=0;
13381 GNULIB_FREAD=0;
13382 GNULIB_FREOPEN=0;
13383 GNULIB_FSCANF=0;
13384 GNULIB_FSEEK=0;
13385 GNULIB_FSEEKO=0;
13386 GNULIB_FTELL=0;
13387 GNULIB_FTELLO=0;
13388 GNULIB_FWRITE=0;
13389 GNULIB_GETC=0;
13390 GNULIB_GETCHAR=0;
13391 GNULIB_GETDELIM=0;
13392 GNULIB_GETLINE=0;
13393 GNULIB_OBSTACK_PRINTF=0;
13394 GNULIB_OBSTACK_PRINTF_POSIX=0;
13395 GNULIB_PCLOSE=0;
13396 GNULIB_PERROR=0;
13397 GNULIB_POPEN=0;
13398 GNULIB_PRINTF=0;
13399 GNULIB_PRINTF_POSIX=0;
13400 GNULIB_PUTC=0;
13401 GNULIB_PUTCHAR=0;
13402 GNULIB_PUTS=0;
13403 GNULIB_REMOVE=0;
13404 GNULIB_RENAME=0;
13405 GNULIB_RENAMEAT=0;
13406 GNULIB_SCANF=0;
13407 GNULIB_SNPRINTF=0;
13408 GNULIB_SPRINTF_POSIX=0;
13409 GNULIB_STDIO_H_NONBLOCKING=0;
13410 GNULIB_STDIO_H_SIGPIPE=0;
13411 GNULIB_TMPFILE=0;
13412 GNULIB_VASPRINTF=0;
13413 GNULIB_VFSCANF=0;
13414 GNULIB_VSCANF=0;
13415 GNULIB_VDPRINTF=0;
13416 GNULIB_VFPRINTF=0;
13417 GNULIB_VFPRINTF_POSIX=0;
13418 GNULIB_VPRINTF=0;
13419 GNULIB_VPRINTF_POSIX=0;
13420 GNULIB_VSNPRINTF=0;
13421 GNULIB_VSPRINTF_POSIX=0;
13422 HAVE_DECL_FPURGE=1;
13423 HAVE_DECL_FSEEKO=1;
13424 HAVE_DECL_FTELLO=1;
13425 HAVE_DECL_GETDELIM=1;
13426 HAVE_DECL_GETLINE=1;
13427 HAVE_DECL_OBSTACK_PRINTF=1;
13428 HAVE_DECL_SNPRINTF=1;
13429 HAVE_DECL_VSNPRINTF=1;
13430 HAVE_DPRINTF=1;
13431 HAVE_FSEEKO=1;
13432 HAVE_FTELLO=1;
13433 HAVE_PCLOSE=1;
13434 HAVE_POPEN=1;
13435 HAVE_RENAMEAT=1;
13436 HAVE_VASPRINTF=1;
13437 HAVE_VDPRINTF=1;
13438 REPLACE_DPRINTF=0;
13439 REPLACE_FCLOSE=0;
13440 REPLACE_FDOPEN=0;
13441 REPLACE_FFLUSH=0;
13442 REPLACE_FOPEN=0;
13443 REPLACE_FPRINTF=0;
13444 REPLACE_FPURGE=0;
13445 REPLACE_FREOPEN=0;
13446 REPLACE_FSEEK=0;
13447 REPLACE_FSEEKO=0;
13448 REPLACE_FTELL=0;
13449 REPLACE_FTELLO=0;
13450 REPLACE_GETDELIM=0;
13451 REPLACE_GETLINE=0;
13452 REPLACE_OBSTACK_PRINTF=0;
13453 REPLACE_PERROR=0;
13454 REPLACE_POPEN=0;
13455 REPLACE_PRINTF=0;
13456 REPLACE_REMOVE=0;
13457 REPLACE_RENAME=0;
13458 REPLACE_RENAMEAT=0;
13459 REPLACE_SNPRINTF=0;
13460 REPLACE_SPRINTF=0;
13461 REPLACE_STDIO_READ_FUNCS=0;
13462 REPLACE_STDIO_WRITE_FUNCS=0;
13463 REPLACE_TMPFILE=0;
13464 REPLACE_VASPRINTF=0;
13465 REPLACE_VDPRINTF=0;
13466 REPLACE_VFPRINTF=0;
13467 REPLACE_VPRINTF=0;
13468 REPLACE_VSNPRINTF=0;
13469 REPLACE_VSPRINTF=0;
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
13502 ac_fn_c_check_decl "$LINENO" "setenv" "ac_cv_have_decl_setenv" "$ac_includes_default"
13503 if test "x$ac_cv_have_decl_setenv" = xyes; then :
13504 ac_have_decl=1
13505 else
13506 ac_have_decl=0
13507 fi
13508
13509 cat >>confdefs.h <<_ACEOF
13510 #define HAVE_DECL_SETENV $ac_have_decl
13511 _ACEOF
13512
13513
13514
13515
13516
13517
13518
13519
13520
13521
13522 :
13523
13524
13525
13526
13527
13528 if test $ac_cv_have_decl_setenv = no; then
13529 HAVE_DECL_SETENV=0
13530 fi
13531
13532 :
13533
13534
13535
13536
13537
13538
13539
13540
13541
13542 :
13543
13544
13545
13546
13547
13548 for ac_header in search.h
13549 do :
13550 ac_fn_c_check_header_mongrel "$LINENO" "search.h" "ac_cv_header_search_h" "$ac_includes_default"
13551 if test "x$ac_cv_header_search_h" = xyes; then :
13552 cat >>confdefs.h <<_ACEOF
13553 #define HAVE_SEARCH_H 1
13554 _ACEOF
13555
13556 fi
13557
13558 done
13559
13560 for ac_func in tsearch
13561 do :
13562 ac_fn_c_check_func "$LINENO" "tsearch" "ac_cv_func_tsearch"
13563 if test "x$ac_cv_func_tsearch" = xyes; then :
13564 cat >>confdefs.h <<_ACEOF
13565 #define HAVE_TSEARCH 1
13566 _ACEOF
13567
13568 fi
13569 done
13570
13571
13572
13573
13574 GNULIB_PTHREAD_SIGMASK=0;
13575 GNULIB_RAISE=0;
13576 GNULIB_SIGNAL_H_SIGPIPE=0;
13577 GNULIB_SIGPROCMASK=0;
13578 GNULIB_SIGACTION=0;
13579 HAVE_POSIX_SIGNALBLOCKING=1;
13580 HAVE_PTHREAD_SIGMASK=1;
13581 HAVE_RAISE=1;
13582 HAVE_SIGSET_T=1;
13583 HAVE_SIGINFO_T=1;
13584 HAVE_SIGACTION=1;
13585 HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
13586
13587 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
13588
13589 HAVE_SIGHANDLER_T=1;
13590 REPLACE_PTHREAD_SIGMASK=0;
13591 REPLACE_RAISE=0;
13592
13593
13594 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
13595 #include <signal.h>
13596 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
13597 #include <sys/types.h>
13598
13599 "
13600 if test "x$ac_cv_type_sigset_t" = xyes; then :
13601
13602 cat >>confdefs.h <<_ACEOF
13603 #define HAVE_SIGSET_T 1
13604 _ACEOF
13605
13606 gl_cv_type_sigset_t=yes
13607 else
13608 gl_cv_type_sigset_t=no
13609 fi
13610
13611 if test $gl_cv_type_sigset_t != yes; then
13612 HAVE_SIGSET_T=0
13613 fi
13614
13615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
13616 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
13617 if ${ac_cv_type_uid_t+:} false; then :
13618 $as_echo_n "(cached) " >&6
13619 else
13620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13621 /* end confdefs.h. */
13622 #include <sys/types.h>
13623
13624 _ACEOF
13625 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13626 $EGREP "uid_t" >/dev/null 2>&1; then :
13627 ac_cv_type_uid_t=yes
13628 else
13629 ac_cv_type_uid_t=no
13630 fi
13631 rm -f conftest*
13632
13633 fi
13634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
13635 $as_echo "$ac_cv_type_uid_t" >&6; }
13636 if test $ac_cv_type_uid_t = no; then
13637
13638 $as_echo "#define uid_t int" >>confdefs.h
13639
13640
13641 $as_echo "#define gid_t int" >>confdefs.h
13642
13643 fi
13644
13645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
13646 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
13647 if ${ac_cv_header_stdbool_h+:} false; then :
13648 $as_echo_n "(cached) " >&6
13649 else
13650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13651 /* end confdefs.h. */
13652
13653 #include <stdbool.h>
13654
13655 #ifdef __cplusplus
13656 typedef bool Bool;
13657 #else
13658 typedef _Bool Bool;
13659 #ifndef bool
13660 "error: bool is not defined"
13661 #endif
13662 #ifndef false
13663 "error: false is not defined"
13664 #endif
13665 #if false
13666 "error: false is not 0"
13667 #endif
13668 #ifndef true
13669 "error: true is not defined"
13670 #endif
13671 #if true != 1
13672 "error: true is not 1"
13673 #endif
13674 #endif
13675
13676 #ifndef __bool_true_false_are_defined
13677 "error: __bool_true_false_are_defined is not defined"
13678 #endif
13679
13680 struct s { Bool s: 1; Bool t; bool u: 1; bool v; } s;
13681
13682 char a[true == 1 ? 1 : -1];
13683 char b[false == 0 ? 1 : -1];
13684 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
13685 char d[(bool) 0.5 == true ? 1 : -1];
13686 /* See body of main program for 'e'. */
13687 char f[(Bool) 0.0 == false ? 1 : -1];
13688 char g[true];
13689 char h[sizeof (Bool)];
13690 char i[sizeof s.t];
13691 enum { j = false, k = true, l = false * true, m = true * 256 };
13692 /* The following fails for
13693 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
13694 Bool n[m];
13695 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
13696 char p[-1 - (Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
13697 /* Catch a bug in an HP-UX C compiler. See
13698 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
13699 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
13700 */
13701 Bool q = true;
13702 Bool *pq = &q;
13703 bool *qq = &q;
13704
13705 int
13706 main ()
13707 {
13708
13709 bool e = &s;
13710 *pq |= q; *pq |= ! q;
13711 *qq |= q; *qq |= ! q;
13712 /* Refer to every declared value, to avoid compiler optimizations. */
13713 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
13714 + !m + !n + !o + !p + !q + !pq + !qq);
13715
13716 ;
13717 return 0;
13718 }
13719 _ACEOF
13720 if ac_fn_c_try_compile "$LINENO"; then :
13721 ac_cv_header_stdbool_h=yes
13722 else
13723 ac_cv_header_stdbool_h=no
13724 fi
13725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13726 fi
13727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
13728 $as_echo "$ac_cv_header_stdbool_h" >&6; }
13729 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
13730 if test "x$ac_cv_type__Bool" = xyes; then :
13731
13732 cat >>confdefs.h <<_ACEOF
13733 #define HAVE__BOOL 1
13734 _ACEOF
13735
13736
13737 fi
13738
13739
13740
13741 REPLACE_NULL=0;
13742 HAVE_MAX_ALIGN_T=1;
13743 HAVE_WCHAR_T=1;
13744
13745
13746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
13747 $as_echo_n "checking for wchar_t... " >&6; }
13748 if ${gt_cv_c_wchar_t+:} false; then :
13749 $as_echo_n "(cached) " >&6
13750 else
13751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13752 /* end confdefs.h. */
13753 #include <stddef.h>
13754 wchar_t foo = (wchar_t)'\0';
13755 int
13756 main ()
13757 {
13758
13759 ;
13760 return 0;
13761 }
13762 _ACEOF
13763 if ac_fn_c_try_compile "$LINENO"; then :
13764 gt_cv_c_wchar_t=yes
13765 else
13766 gt_cv_c_wchar_t=no
13767 fi
13768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13769 fi
13770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
13771 $as_echo "$gt_cv_c_wchar_t" >&6; }
13772 if test $gt_cv_c_wchar_t = yes; then
13773
13774 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
13775
13776 fi
13777
13778
13779
13780
13781
13782
13783
13784 ac_fn_c_check_decl "$LINENO" "strdup" "ac_cv_have_decl_strdup" "$ac_includes_default"
13785 if test "x$ac_cv_have_decl_strdup" = xyes; then :
13786 ac_have_decl=1
13787 else
13788 ac_have_decl=0
13789 fi
13790
13791 cat >>confdefs.h <<_ACEOF
13792 #define HAVE_DECL_STRDUP $ac_have_decl
13793 _ACEOF
13794
13795
13796
13797 REPLACE_STRERROR_0=0
13798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror(0) succeeds" >&5
13799 $as_echo_n "checking whether strerror(0) succeeds... " >&6; }
13800 if ${gl_cv_func_strerror_0_works+:} false; then :
13801 $as_echo_n "(cached) " >&6
13802 else
13803 if test "$cross_compiling" = yes; then :
13804 case "$host_os" in
13805 # Guess yes on glibc systems.
13806 *-gnu*) gl_cv_func_strerror_0_works="guessing yes" ;;
13807 # If we don't know, assume the worst.
13808 *) gl_cv_func_strerror_0_works="guessing no" ;;
13809 esac
13810
13811 else
13812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13813 /* end confdefs.h. */
13814 #include <string.h>
13815 #include <errno.h>
13816
13817 int
13818 main ()
13819 {
13820 int result = 0;
13821 char *str;
13822 errno = 0;
13823 str = strerror (0);
13824 if (!*str) result |= 1;
13825 if (errno) result |= 2;
13826 if (strstr (str, "nknown") || strstr (str, "ndefined"))
13827 result |= 4;
13828 return result;
13829 ;
13830 return 0;
13831 }
13832 _ACEOF
13833 if ac_fn_c_try_run "$LINENO"; then :
13834 gl_cv_func_strerror_0_works=yes
13835 else
13836 gl_cv_func_strerror_0_works=no
13837 fi
13838 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13839 conftest.$ac_objext conftest.beam conftest.$ac_ext
13840 fi
13841
13842
13843 fi
13844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_0_works" >&5
13845 $as_echo "$gl_cv_func_strerror_0_works" >&6; }
13846 case "$gl_cv_func_strerror_0_works" in
13847 *yes) ;;
13848 *)
13849 REPLACE_STRERROR_0=1
13850
13851 $as_echo "#define REPLACE_STRERROR_0 1" >>confdefs.h
13852
13853 ;;
13854 esac
13855
13856
13857
13858
13859
13860
13861
13862
13863
13864
13865
13866
13867 if test $gl_cv_have_include_next = yes; then
13868 gl_cv_next_string_h='<'string.h'>'
13869 else
13870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
13871 $as_echo_n "checking absolute name of <string.h>... " >&6; }
13872 if ${gl_cv_next_string_h+:} false; then :
13873 $as_echo_n "(cached) " >&6
13874 else
13875
13876
13877
13878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13879 /* end confdefs.h. */
13880 #include <string.h>
13881 _ACEOF
13882 case "$host_os" in
13883 aix*) gl_absname_cpp="$ac_cpp -C" ;;
13884 *) gl_absname_cpp="$ac_cpp" ;;
13885 esac
13886
13887 case "$host_os" in
13888 mingw*)
13889 gl_dirsep_regex='[/\\]'
13890 ;;
13891 *)
13892 gl_dirsep_regex='\/'
13893 ;;
13894 esac
13895 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
13896 gl_header_literal_regex=`echo 'string.h' \
13897 | sed -e "$gl_make_literal_regex_sed"`
13898 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
13899 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
13900 s|^/[^/]|//&|
13901 p
13902 q
13903 }'
13904
13905 gl_cv_absolute_string_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13906 sed -n "$gl_absolute_header_sed"`
13907
13908 gl_header=$gl_cv_absolute_string_h
13909 gl_cv_next_string_h='"'$gl_header'"'
13910
13911
13912 fi
13913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
13914 $as_echo "$gl_cv_next_string_h" >&6; }
13915 fi
13916 NEXT_STRING_H=$gl_cv_next_string_h
13917
13918 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
13919 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13920 gl_next_as_first_directive='<'string.h'>'
13921 else
13922 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13923 gl_next_as_first_directive=$gl_cv_next_string_h
13924 fi
13925 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
13926
13927
13928
13929
13930
13931
13932 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
13933 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
13934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
13935 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
13936 if eval \${$as_gl_Symbol+:} false; then :
13937 $as_echo_n "(cached) " >&6
13938 else
13939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13940 /* end confdefs.h. */
13941 #include <string.h>
13942
13943 int
13944 main ()
13945 {
13946 #undef $gl_func
13947 (void) $gl_func;
13948 ;
13949 return 0;
13950 }
13951 _ACEOF
13952 if ac_fn_c_try_compile "$LINENO"; then :
13953 eval "$as_gl_Symbol=yes"
13954 else
13955 eval "$as_gl_Symbol=no"
13956 fi
13957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13958 fi
13959 eval ac_res=\$$as_gl_Symbol
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13961 $as_echo "$ac_res" >&6; }
13962 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
13963 cat >>confdefs.h <<_ACEOF
13964 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
13965 _ACEOF
13966
13967 eval ac_cv_have_decl_$gl_func=yes
13968 fi
13969 done
13970
13971
13972
13973
13974
13975 if test "$gl_cv_func_memchr_works" != yes; then
13976 REPLACE_STRSTR=1
13977 else
13978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
13979 $as_echo_n "checking whether strstr works... " >&6; }
13980 if ${gl_cv_func_strstr_works_always+:} false; then :
13981 $as_echo_n "(cached) " >&6
13982 else
13983 if test "$cross_compiling" = yes; then :
13984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13985 /* end confdefs.h. */
13986
13987 #ifdef __GNU_LIBRARY__
13988 #include <features.h>
13989 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
13990 || defined __UCLIBC__
13991 Lucky user
13992 #endif
13993 #elif defined __CYGWIN__
13994 #include <cygwin/version.h>
13995 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
13996 Lucky user
13997 #endif
13998 #else
13999 Lucky user
14000 #endif
14001
14002 _ACEOF
14003 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14004 $EGREP "Lucky user" >/dev/null 2>&1; then :
14005 gl_cv_func_strstr_works_always="guessing yes"
14006 else
14007 gl_cv_func_strstr_works_always="guessing no"
14008 fi
14009 rm -f conftest*
14010
14011
14012 else
14013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14014 /* end confdefs.h. */
14015
14016 #include <string.h> /* for strstr */
14017 #define P "_EF_BF_BD"
14018 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
14019 #define NEEDLE P P P P P
14020
14021 int
14022 main ()
14023 {
14024 return !!strstr (HAYSTACK, NEEDLE);
14025
14026 ;
14027 return 0;
14028 }
14029 _ACEOF
14030 if ac_fn_c_try_run "$LINENO"; then :
14031 gl_cv_func_strstr_works_always=yes
14032 else
14033 gl_cv_func_strstr_works_always=no
14034 fi
14035 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14036 conftest.$ac_objext conftest.beam conftest.$ac_ext
14037 fi
14038
14039
14040 fi
14041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
14042 $as_echo "$gl_cv_func_strstr_works_always" >&6; }
14043 case "$gl_cv_func_strstr_works_always" in
14044 *yes) ;;
14045 *)
14046 REPLACE_STRSTR=1
14047 ;;
14048 esac
14049 fi
14050
14051
14052 ac_fn_c_check_decl "$LINENO" "strtok_r" "ac_cv_have_decl_strtok_r" "$ac_includes_default"
14053 if test "x$ac_cv_have_decl_strtok_r" = xyes; then :
14054 ac_have_decl=1
14055 else
14056 ac_have_decl=0
14057 fi
14058
14059 cat >>confdefs.h <<_ACEOF
14060 #define HAVE_DECL_STRTOK_R $ac_have_decl
14061 _ACEOF
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082 if test $gl_cv_have_include_next = yes; then
14083 gl_cv_next_sys_types_h='<'sys/types.h'>'
14084 else
14085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
14086 $as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
14087 if ${gl_cv_next_sys_types_h+:} false; then :
14088 $as_echo_n "(cached) " >&6
14089 else
14090
14091
14092
14093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14094 /* end confdefs.h. */
14095 #include <sys/types.h>
14096 _ACEOF
14097 case "$host_os" in
14098 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14099 *) gl_absname_cpp="$ac_cpp" ;;
14100 esac
14101
14102 case "$host_os" in
14103 mingw*)
14104 gl_dirsep_regex='[/\\]'
14105 ;;
14106 *)
14107 gl_dirsep_regex='\/'
14108 ;;
14109 esac
14110 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14111 gl_header_literal_regex=`echo 'sys/types.h' \
14112 | sed -e "$gl_make_literal_regex_sed"`
14113 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14114 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14115 s|^/[^/]|//&|
14116 p
14117 q
14118 }'
14119
14120 gl_cv_absolute_sys_types_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14121 sed -n "$gl_absolute_header_sed"`
14122
14123 gl_header=$gl_cv_absolute_sys_types_h
14124 gl_cv_next_sys_types_h='"'$gl_header'"'
14125
14126
14127 fi
14128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
14129 $as_echo "$gl_cv_next_sys_types_h" >&6; }
14130 fi
14131 NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
14132
14133 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14134 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14135 gl_next_as_first_directive='<'sys/types.h'>'
14136 else
14137 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14138 gl_next_as_first_directive=$gl_cv_next_sys_types_h
14139 fi
14140 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
14141
14142
14143
14144
14145
14146
14147
14148
14149
14150
14151
14152
14153
14154
14155
14156
14157
14158
14159
14160 GNULIB_MKTIME=0;
14161 GNULIB_NANOSLEEP=0;
14162 GNULIB_STRPTIME=0;
14163 GNULIB_TIMEGM=0;
14164 GNULIB_TIME_R=0;
14165 GNULIB_TIME_RZ=0;
14166 HAVE_DECL_LOCALTIME_R=1;
14167 HAVE_NANOSLEEP=1;
14168 HAVE_STRPTIME=1;
14169 HAVE_TIMEGM=1;
14170 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
14171 REPLACE_MKTIME=GNULIB_PORTCHECK;
14172 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
14173 REPLACE_TIMEGM=GNULIB_PORTCHECK;
14174
14175 : ${GNULIB_GETTIMEOFDAY=0};
14176 REPLACE_GMTIME=0;
14177 REPLACE_LOCALTIME=0;
14178
14179
14180
14181 :
14182
14183
14184
14185
14186
14187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
14188 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
14189 if ${gl_cv_sys_struct_timespec_in_time_h+:} false; then :
14190 $as_echo_n "(cached) " >&6
14191 else
14192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14193 /* end confdefs.h. */
14194 #include <time.h>
14195
14196 int
14197 main ()
14198 {
14199 static struct timespec x; x.tv_sec = x.tv_nsec;
14200 ;
14201 return 0;
14202 }
14203 _ACEOF
14204 if ac_fn_c_try_compile "$LINENO"; then :
14205 gl_cv_sys_struct_timespec_in_time_h=yes
14206 else
14207 gl_cv_sys_struct_timespec_in_time_h=no
14208 fi
14209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14210 fi
14211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
14212 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
14213
14214 TIME_H_DEFINES_STRUCT_TIMESPEC=0
14215 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
14216 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
14217 UNISTD_H_DEFINES_STRUCT_TIMESPEC=0
14218 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
14219 TIME_H_DEFINES_STRUCT_TIMESPEC=1
14220 else
14221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
14222 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
14223 if ${gl_cv_sys_struct_timespec_in_sys_time_h+:} false; then :
14224 $as_echo_n "(cached) " >&6
14225 else
14226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14227 /* end confdefs.h. */
14228 #include <sys/time.h>
14229
14230 int
14231 main ()
14232 {
14233 static struct timespec x; x.tv_sec = x.tv_nsec;
14234 ;
14235 return 0;
14236 }
14237 _ACEOF
14238 if ac_fn_c_try_compile "$LINENO"; then :
14239 gl_cv_sys_struct_timespec_in_sys_time_h=yes
14240 else
14241 gl_cv_sys_struct_timespec_in_sys_time_h=no
14242 fi
14243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14244 fi
14245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
14246 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
14247 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
14248 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
14249 else
14250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
14251 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
14252 if ${gl_cv_sys_struct_timespec_in_pthread_h+:} false; then :
14253 $as_echo_n "(cached) " >&6
14254 else
14255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14256 /* end confdefs.h. */
14257 #include <pthread.h>
14258
14259 int
14260 main ()
14261 {
14262 static struct timespec x; x.tv_sec = x.tv_nsec;
14263 ;
14264 return 0;
14265 }
14266 _ACEOF
14267 if ac_fn_c_try_compile "$LINENO"; then :
14268 gl_cv_sys_struct_timespec_in_pthread_h=yes
14269 else
14270 gl_cv_sys_struct_timespec_in_pthread_h=no
14271 fi
14272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14273 fi
14274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
14275 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
14276 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
14277 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
14278 else
14279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <unistd.h>" >&5
14280 $as_echo_n "checking for struct timespec in <unistd.h>... " >&6; }
14281 if ${gl_cv_sys_struct_timespec_in_unistd_h+:} false; then :
14282 $as_echo_n "(cached) " >&6
14283 else
14284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14285 /* end confdefs.h. */
14286 #include <unistd.h>
14287
14288 int
14289 main ()
14290 {
14291 static struct timespec x; x.tv_sec = x.tv_nsec;
14292 ;
14293 return 0;
14294 }
14295 _ACEOF
14296 if ac_fn_c_try_compile "$LINENO"; then :
14297 gl_cv_sys_struct_timespec_in_unistd_h=yes
14298 else
14299 gl_cv_sys_struct_timespec_in_unistd_h=no
14300 fi
14301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14302 fi
14303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_unistd_h" >&5
14304 $as_echo "$gl_cv_sys_struct_timespec_in_unistd_h" >&6; }
14305 if test $gl_cv_sys_struct_timespec_in_unistd_h = yes; then
14306 UNISTD_H_DEFINES_STRUCT_TIMESPEC=1
14307 fi
14308 fi
14309 fi
14310 fi
14311
14312
14313
14314
14315
14316
14317
14318
14319
14320
14321
14322
14323
14324
14325
14326
14327 if test $gl_cv_have_include_next = yes; then
14328 gl_cv_next_time_h='<'time.h'>'
14329 else
14330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
14331 $as_echo_n "checking absolute name of <time.h>... " >&6; }
14332 if ${gl_cv_next_time_h+:} false; then :
14333 $as_echo_n "(cached) " >&6
14334 else
14335
14336
14337
14338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14339 /* end confdefs.h. */
14340 #include <time.h>
14341 _ACEOF
14342 case "$host_os" in
14343 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14344 *) gl_absname_cpp="$ac_cpp" ;;
14345 esac
14346
14347 case "$host_os" in
14348 mingw*)
14349 gl_dirsep_regex='[/\\]'
14350 ;;
14351 *)
14352 gl_dirsep_regex='\/'
14353 ;;
14354 esac
14355 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14356 gl_header_literal_regex=`echo 'time.h' \
14357 | sed -e "$gl_make_literal_regex_sed"`
14358 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14359 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14360 s|^/[^/]|//&|
14361 p
14362 q
14363 }'
14364
14365 gl_cv_absolute_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14366 sed -n "$gl_absolute_header_sed"`
14367
14368 gl_header=$gl_cv_absolute_time_h
14369 gl_cv_next_time_h='"'$gl_header'"'
14370
14371
14372 fi
14373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
14374 $as_echo "$gl_cv_next_time_h" >&6; }
14375 fi
14376 NEXT_TIME_H=$gl_cv_next_time_h
14377
14378 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14379 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14380 gl_next_as_first_directive='<'time.h'>'
14381 else
14382 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14383 gl_next_as_first_directive=$gl_cv_next_time_h
14384 fi
14385 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
14386
14387
14388
14389
14390
14391
14392
14393
14394
14395
14396
14397
14398 ac_fn_c_check_decl "$LINENO" "unsetenv" "ac_cv_have_decl_unsetenv" "$ac_includes_default"
14399 if test "x$ac_cv_have_decl_unsetenv" = xyes; then :
14400 ac_have_decl=1
14401 else
14402 ac_have_decl=0
14403 fi
14404
14405 cat >>confdefs.h <<_ACEOF
14406 #define HAVE_DECL_UNSETENV $ac_have_decl
14407 _ACEOF
14408
14409
14410
14411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
14412 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
14413 if ${gl_cv_header_wchar_h_correct_inline+:} false; then :
14414 $as_echo_n "(cached) " >&6
14415 else
14416 gl_cv_header_wchar_h_correct_inline=yes
14417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14418 /* end confdefs.h. */
14419
14420 #define wcstod renamed_wcstod
14421 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14422 <wchar.h>.
14423 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14424 included before <wchar.h>. */
14425 #include <stddef.h>
14426 #include <stdio.h>
14427 #include <time.h>
14428 #include <wchar.h>
14429 extern int zero (void);
14430 int main () { return zero(); }
14431
14432 _ACEOF
14433 save_ac_compile="$ac_compile"
14434 ac_compile=`echo "$save_ac_compile" | sed s/conftest/conftest1/`
14435 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14436 (eval $ac_compile) 2>&5
14437 ac_status=$?
14438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14439 test $ac_status = 0; }; then
14440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14441 /* end confdefs.h. */
14442
14443 #define wcstod renamed_wcstod
14444 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14445 <wchar.h>.
14446 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14447 included before <wchar.h>. */
14448 #include <stddef.h>
14449 #include <stdio.h>
14450 #include <time.h>
14451 #include <wchar.h>
14452 int zero (void) { return 0; }
14453
14454 _ACEOF
14455 ac_compile=`echo "$save_ac_compile" | sed s/conftest/conftest2/`
14456 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14457 (eval $ac_compile) 2>&5
14458 ac_status=$?
14459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14460 test $ac_status = 0; }; then
14461 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
14462 :
14463 else
14464 gl_cv_header_wchar_h_correct_inline=no
14465 fi
14466 fi
14467 fi
14468 ac_compile="$save_ac_compile"
14469 rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
14470
14471 fi
14472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
14473 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
14474 if test $gl_cv_header_wchar_h_correct_inline = no; then
14475 as_fn_error $? "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
14476 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
14477 C99 mode. You have four options:
14478 - Add the flag -fgnu89-inline to CC and reconfigure, or
14479 - Fix your include files, using parts of
14480 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
14481 - Use a gcc version older than 4.3, or
14482 - Don't use the flags -std=c99 or -std=gnu99.
14483 Configuration aborted." "$LINENO" 5
14484 fi
14485
14486
14487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
14488 $as_echo_n "checking for wint_t... " >&6; }
14489 if ${gt_cv_c_wint_t+:} false; then :
14490 $as_echo_n "(cached) " >&6
14491 else
14492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14493 /* end confdefs.h. */
14494
14495 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14496 <wchar.h>.
14497 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
14498 before <wchar.h>. */
14499 #include <stddef.h>
14500 #include <stdio.h>
14501 #include <time.h>
14502 #include <wchar.h>
14503 wint_t foo = (wchar_t)'\0';
14504 int
14505 main ()
14506 {
14507
14508 ;
14509 return 0;
14510 }
14511 _ACEOF
14512 if ac_fn_c_try_compile "$LINENO"; then :
14513 gt_cv_c_wint_t=yes
14514 else
14515 gt_cv_c_wint_t=no
14516 fi
14517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14518 fi
14519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
14520 $as_echo "$gt_cv_c_wint_t" >&6; }
14521 if test $gt_cv_c_wint_t = yes; then
14522
14523 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
14524
14525 fi
14526
14527
14528 GNULIB_ISWBLANK=0;
14529 GNULIB_WCTYPE=0;
14530 GNULIB_ISWCTYPE=0;
14531 GNULIB_WCTRANS=0;
14532 GNULIB_TOWCTRANS=0;
14533 HAVE_ISWBLANK=1;
14534 HAVE_WCTYPE_T=1;
14535 HAVE_WCTRANS_T=1;
14536 REPLACE_ISWBLANK=0;
14537
14538
14539
14540
14541
14542
14543
14544 if false; then
14545 GL_COND_LIBTOOL_TRUE=
14546 GL_COND_LIBTOOL_FALSE='#'
14547 else
14548 GL_COND_LIBTOOL_TRUE='#'
14549 GL_COND_LIBTOOL_FALSE=
14550 fi
14551
14552 gl_cond_libtool=false
14553 gl_libdeps=
14554 gl_ltlibdeps=
14555 gl_m4_base='import/m4'
14556
14557
14558
14559
14560
14561
14562
14563
14564
14565 gl_source_base='import'
14566
14567
14568 if test $ac_cv_func_alloca_works = no; then
14569 :
14570 fi
14571
14572 # Define an additional variable used in the Makefile substitution.
14573 if test $ac_cv_working_alloca_h = yes; then
14574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
14575 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
14576 if ${gl_cv_rpl_alloca+:} false; then :
14577 $as_echo_n "(cached) " >&6
14578 else
14579
14580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14581 /* end confdefs.h. */
14582
14583 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
14584 Need own alloca
14585 #endif
14586
14587 _ACEOF
14588 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14589 $EGREP "Need own alloca" >/dev/null 2>&1; then :
14590 gl_cv_rpl_alloca=yes
14591 else
14592 gl_cv_rpl_alloca=no
14593 fi
14594 rm -f conftest*
14595
14596
14597 fi
14598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
14599 $as_echo "$gl_cv_rpl_alloca" >&6; }
14600 if test $gl_cv_rpl_alloca = yes; then
14601
14602 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
14603
14604 ALLOCA_H=alloca.h
14605 else
14606 ALLOCA_H=
14607 fi
14608 else
14609 ALLOCA_H=alloca.h
14610 fi
14611
14612 if test -n "$ALLOCA_H"; then
14613 GL_GENERATE_ALLOCA_H_TRUE=
14614 GL_GENERATE_ALLOCA_H_FALSE='#'
14615 else
14616 GL_GENERATE_ALLOCA_H_TRUE='#'
14617 GL_GENERATE_ALLOCA_H_FALSE=
14618 fi
14619
14620
14621
14622
14623
14624
14625 :
14626
14627
14628
14629
14630
14631 if test $ac_cv_header_arpa_inet_h = yes; then
14632 HAVE_ARPA_INET_H=1
14633 else
14634 HAVE_ARPA_INET_H=0
14635 fi
14636
14637
14638
14639
14640
14641
14642
14643 :
14644
14645
14646
14647
14648
14649
14650
14651
14652 if test $gl_cv_have_include_next = yes; then
14653 gl_cv_next_arpa_inet_h='<'arpa/inet.h'>'
14654 else
14655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <arpa/inet.h>" >&5
14656 $as_echo_n "checking absolute name of <arpa/inet.h>... " >&6; }
14657 if ${gl_cv_next_arpa_inet_h+:} false; then :
14658 $as_echo_n "(cached) " >&6
14659 else
14660
14661 if test $ac_cv_header_arpa_inet_h = yes; then
14662
14663
14664
14665
14666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14667 /* end confdefs.h. */
14668 #include <arpa/inet.h>
14669 _ACEOF
14670 case "$host_os" in
14671 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14672 *) gl_absname_cpp="$ac_cpp" ;;
14673 esac
14674
14675 case "$host_os" in
14676 mingw*)
14677 gl_dirsep_regex='[/\\]'
14678 ;;
14679 *)
14680 gl_dirsep_regex='\/'
14681 ;;
14682 esac
14683 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14684 gl_header_literal_regex=`echo 'arpa/inet.h' \
14685 | sed -e "$gl_make_literal_regex_sed"`
14686 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14687 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14688 s|^/[^/]|//&|
14689 p
14690 q
14691 }'
14692
14693 gl_cv_absolute_arpa_inet_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14694 sed -n "$gl_absolute_header_sed"`
14695
14696 gl_header=$gl_cv_absolute_arpa_inet_h
14697 gl_cv_next_arpa_inet_h='"'$gl_header'"'
14698 else
14699 gl_cv_next_arpa_inet_h='<'arpa/inet.h'>'
14700 fi
14701
14702
14703 fi
14704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_arpa_inet_h" >&5
14705 $as_echo "$gl_cv_next_arpa_inet_h" >&6; }
14706 fi
14707 NEXT_ARPA_INET_H=$gl_cv_next_arpa_inet_h
14708
14709 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14710 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14711 gl_next_as_first_directive='<'arpa/inet.h'>'
14712 else
14713 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14714 gl_next_as_first_directive=$gl_cv_next_arpa_inet_h
14715 fi
14716 NEXT_AS_FIRST_DIRECTIVE_ARPA_INET_H=$gl_next_as_first_directive
14717
14718
14719
14720
14721
14722
14723
14724
14725 for gl_func in inet_ntop inet_pton; do
14726 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
14727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
14728 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
14729 if eval \${$as_gl_Symbol+:} false; then :
14730 $as_echo_n "(cached) " >&6
14731 else
14732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14733 /* end confdefs.h. */
14734
14735 /* On some systems, this header is not self-consistent. */
14736 #if !(defined __GLIBC__ || defined __UCLIBC__)
14737 # include <sys/socket.h>
14738 #endif
14739 #ifdef __TANDEM
14740 # include <netdb.h>
14741 #endif
14742 #include <arpa/inet.h>
14743
14744 int
14745 main ()
14746 {
14747 #undef $gl_func
14748 (void) $gl_func;
14749 ;
14750 return 0;
14751 }
14752 _ACEOF
14753 if ac_fn_c_try_compile "$LINENO"; then :
14754 eval "$as_gl_Symbol=yes"
14755 else
14756 eval "$as_gl_Symbol=no"
14757 fi
14758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14759 fi
14760 eval ac_res=\$$as_gl_Symbol
14761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14762 $as_echo "$ac_res" >&6; }
14763 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
14764 cat >>confdefs.h <<_ACEOF
14765 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
14766 _ACEOF
14767
14768 eval ac_cv_have_decl_$gl_func=yes
14769 fi
14770 done
14771
14772
14773
14774
14775
14776
14777
14778
14779
14780
14781
14782 gl_LIBOBJS="$gl_LIBOBJS openat-proc.$ac_objext"
14783
14784
14785
14786
14787 if test $ac_cv_func_canonicalize_file_name = no; then
14788 HAVE_CANONICALIZE_FILE_NAME=0
14789 if test $ac_cv_func_realpath = no; then
14790 HAVE_REALPATH=0
14791 else
14792 case "$gl_cv_func_realpath_works" in
14793 *yes) ;;
14794 *) REPLACE_REALPATH=1 ;;
14795 esac
14796 fi
14797 else
14798 case "$gl_cv_func_realpath_works" in
14799 *yes)
14800 ;;
14801 *)
14802 REPLACE_CANONICALIZE_FILE_NAME=1
14803 REPLACE_REALPATH=1
14804 ;;
14805 esac
14806 fi
14807
14808 if test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1; then
14809
14810
14811
14812
14813
14814
14815
14816
14817 gl_LIBOBJS="$gl_LIBOBJS canonicalize-lgpl.$ac_objext"
14818
14819 fi
14820
14821
14822 cat >>confdefs.h <<_ACEOF
14823 #define GNULIB_CANONICALIZE_LGPL 1
14824 _ACEOF
14825
14826
14827
14828
14829
14830
14831
14832 GNULIB_CANONICALIZE_FILE_NAME=1
14833
14834
14835
14836
14837
14838 $as_echo "#define GNULIB_TEST_CANONICALIZE_FILE_NAME 1" >>confdefs.h
14839
14840
14841
14842
14843
14844
14845
14846
14847 GNULIB_REALPATH=1
14848
14849
14850
14851
14852
14853 $as_echo "#define GNULIB_TEST_REALPATH 1" >>confdefs.h
14854
14855
14856
14857
14858
14859
14860
14861
14862 GNULIB_CHDIR=1
14863
14864
14865
14866
14867
14868 $as_echo "#define GNULIB_TEST_CHDIR 1" >>confdefs.h
14869
14870
14871
14872
14873
14874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether this system has an arbitrary file name length limit" >&5
14875 $as_echo_n "checking whether this system has an arbitrary file name length limit... " >&6; }
14876 if ${gl_cv_have_arbitrary_file_name_length_limit+:} false; then :
14877 $as_echo_n "(cached) " >&6
14878 else
14879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14880 /* end confdefs.h. */
14881
14882 /* Arrange to define PATH_MAX, like "pathmax.h" does. */
14883 #if HAVE_UNISTD_H
14884 # include <unistd.h>
14885 #endif
14886 #include <limits.h>
14887 #if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN
14888 # include <sys/param.h>
14889 #endif
14890 #if !defined PATH_MAX && defined MAXPATHLEN
14891 # define PATH_MAX MAXPATHLEN
14892 #endif
14893 #ifdef __hpux
14894 # undef PATH_MAX
14895 # define PATH_MAX 1024
14896 #endif
14897 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
14898 # undef PATH_MAX
14899 # define PATH_MAX 260
14900 #endif
14901
14902 #ifdef PATH_MAX
14903 have_arbitrary_file_name_length_limit
14904 #endif
14905 _ACEOF
14906 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14907 $EGREP "have_arbitrary_file_name_length_limit" >/dev/null 2>&1; then :
14908 gl_cv_have_arbitrary_file_name_length_limit=yes
14909 else
14910 gl_cv_have_arbitrary_file_name_length_limit=no
14911 fi
14912 rm -f conftest*
14913
14914 fi
14915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_arbitrary_file_name_length_limit" >&5
14916 $as_echo "$gl_cv_have_arbitrary_file_name_length_limit" >&6; }
14917
14918 if test $gl_cv_have_arbitrary_file_name_length_limit = yes; then
14919
14920
14921
14922
14923
14924
14925
14926
14927 gl_LIBOBJS="$gl_LIBOBJS chdir-long.$ac_objext"
14928
14929 :
14930 fi
14931
14932
14933 $as_echo "#define GNULIB_TEST_CLOEXEC 1" >>confdefs.h
14934
14935
14936
14937
14938
14939 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
14940 REPLACE_CLOSE=1
14941 fi
14942
14943
14944
14945
14946
14947 :
14948
14949
14950
14951
14952
14953 if test $ac_cv_header_sys_socket_h != yes; then
14954 for ac_header in winsock2.h
14955 do :
14956 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
14957 if test "x$ac_cv_header_winsock2_h" = xyes; then :
14958 cat >>confdefs.h <<_ACEOF
14959 #define HAVE_WINSOCK2_H 1
14960 _ACEOF
14961
14962 fi
14963
14964 done
14965
14966 fi
14967 if test "$ac_cv_header_winsock2_h" = yes; then
14968 HAVE_WINSOCK2_H=1
14969 UNISTD_H_HAVE_WINSOCK2_H=1
14970 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
14971 else
14972 HAVE_WINSOCK2_H=0
14973 fi
14974
14975
14976 if test $UNISTD_H_HAVE_WINSOCK2_H = 1; then
14977 REPLACE_CLOSE=1
14978 fi
14979
14980
14981 if test $REPLACE_CLOSE = 0; then
14982
14983
14984
14985 :
14986
14987
14988
14989
14990
14991 if test $ac_cv_func_fchdir = no; then
14992 HAVE_FCHDIR=0
14993 fi
14994
14995 if test $HAVE_FCHDIR = 0; then
14996 REPLACE_CLOSE=1
14997 fi
14998 fi
14999
15000
15001 if test $REPLACE_CLOSE = 1; then
15002
15003
15004
15005
15006
15007
15008
15009
15010 gl_LIBOBJS="$gl_LIBOBJS close.$ac_objext"
15011
15012 fi
15013
15014
15015
15016
15017
15018 GNULIB_CLOSE=1
15019
15020
15021
15022
15023
15024 $as_echo "#define GNULIB_TEST_CLOSE 1" >>confdefs.h
15025
15026
15027
15028
15029
15030
15031 for ac_func in closedir
15032 do :
15033 ac_fn_c_check_func "$LINENO" "closedir" "ac_cv_func_closedir"
15034 if test "x$ac_cv_func_closedir" = xyes; then :
15035 cat >>confdefs.h <<_ACEOF
15036 #define HAVE_CLOSEDIR 1
15037 _ACEOF
15038
15039 fi
15040 done
15041
15042 if test $ac_cv_func_closedir = no; then
15043 HAVE_CLOSEDIR=0
15044 fi
15045
15046
15047
15048
15049 :
15050
15051
15052
15053
15054
15055 if test $ac_cv_func_fchdir = no; then
15056 HAVE_FCHDIR=0
15057 fi
15058
15059 if test $HAVE_FCHDIR = 0; then
15060 if test $HAVE_CLOSEDIR = 1; then
15061 REPLACE_CLOSEDIR=1
15062 fi
15063 fi
15064
15065 case $host_os,$HAVE_CLOSEDIR in
15066 os2*,1)
15067 REPLACE_CLOSEDIR=1;;
15068 esac
15069
15070 if test $HAVE_CLOSEDIR = 0 || test $REPLACE_CLOSEDIR = 1; then
15071
15072
15073
15074
15075
15076
15077
15078
15079 gl_LIBOBJS="$gl_LIBOBJS closedir.$ac_objext"
15080
15081 fi
15082
15083
15084
15085
15086
15087 GNULIB_CLOSEDIR=1
15088
15089
15090
15091
15092
15093 $as_echo "#define GNULIB_TEST_CLOSEDIR 1" >>confdefs.h
15094
15095
15096
15097
15098 if test "x$datarootdir" = x; then
15099 datarootdir='${datadir}'
15100
15101 fi
15102 if test "x$docdir" = x; then
15103 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
15104
15105 fi
15106 if test "x$htmldir" = x; then
15107 htmldir='${docdir}'
15108
15109 fi
15110 if test "x$dvidir" = x; then
15111 dvidir='${docdir}'
15112
15113 fi
15114 if test "x$pdfdir" = x; then
15115 pdfdir='${docdir}'
15116
15117 fi
15118 if test "x$psdir" = x; then
15119 psdir='${docdir}'
15120
15121 fi
15122 if test "x$lispdir" = x; then
15123 lispdir='${datarootdir}/emacs/site-lisp'
15124
15125 fi
15126 if test "x$localedir" = x; then
15127 localedir='${datarootdir}/locale'
15128
15129 fi
15130 if test "x$runstatedir" = x; then
15131 runstatedir='${localstatedir}/run'
15132
15133 fi
15134
15135 pkglibexecdir='${libexecdir}/${PACKAGE}'
15136
15137
15138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for d_ino member in directory struct" >&5
15139 $as_echo_n "checking for d_ino member in directory struct... " >&6; }
15140 if ${gl_cv_struct_dirent_d_ino+:} false; then :
15141 $as_echo_n "(cached) " >&6
15142 else
15143 if test "$cross_compiling" = yes; then :
15144 case "$host_os" in
15145 # Guess yes on glibc systems with Linux kernel.
15146 linux*-gnu*) gl_cv_struct_dirent_d_ino="guessing yes" ;;
15147 # If we don't know, assume the worst.
15148 *) gl_cv_struct_dirent_d_ino="guessing no" ;;
15149 esac
15150
15151 else
15152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15153 /* end confdefs.h. */
15154 #include <sys/types.h>
15155 #include <sys/stat.h>
15156 #include <dirent.h>
15157
15158 int
15159 main ()
15160 {
15161 DIR *dp = opendir (".");
15162 struct dirent *e;
15163 struct stat st;
15164 if (! dp)
15165 return 1;
15166 e = readdir (dp);
15167 if (! e)
15168 return 2;
15169 if (lstat (e->d_name, &st) != 0)
15170 return 3;
15171 if (e->d_ino != st.st_ino)
15172 return 4;
15173 closedir (dp);
15174 return 0;
15175
15176 ;
15177 return 0;
15178 }
15179 _ACEOF
15180 if ac_fn_c_try_run "$LINENO"; then :
15181 gl_cv_struct_dirent_d_ino=yes
15182 else
15183 gl_cv_struct_dirent_d_ino=no
15184 fi
15185 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15186 conftest.$ac_objext conftest.beam conftest.$ac_ext
15187 fi
15188
15189 fi
15190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_struct_dirent_d_ino" >&5
15191 $as_echo "$gl_cv_struct_dirent_d_ino" >&6; }
15192 case "$gl_cv_struct_dirent_d_ino" in
15193 *yes)
15194
15195 $as_echo "#define D_INO_IN_DIRENT 1" >>confdefs.h
15196
15197 ;;
15198 esac
15199
15200
15201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for d_type member in directory struct" >&5
15202 $as_echo_n "checking for d_type member in directory struct... " >&6; }
15203 if ${gl_cv_struct_dirent_d_type+:} false; then :
15204 $as_echo_n "(cached) " >&6
15205 else
15206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15207 /* end confdefs.h. */
15208
15209 #include <sys/types.h>
15210 #include <dirent.h>
15211
15212 int
15213 main ()
15214 {
15215 struct dirent dp; dp.d_type = 0;
15216 ;
15217 return 0;
15218 }
15219 _ACEOF
15220 if ac_fn_c_try_link "$LINENO"; then :
15221 gl_cv_struct_dirent_d_type=yes
15222 else
15223 gl_cv_struct_dirent_d_type=no
15224 fi
15225 rm -f core conftest.err conftest.$ac_objext \
15226 conftest$ac_exeext conftest.$ac_ext
15227
15228
15229 fi
15230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_struct_dirent_d_type" >&5
15231 $as_echo "$gl_cv_struct_dirent_d_type" >&6; }
15232 if test $gl_cv_struct_dirent_d_type = yes; then
15233
15234 $as_echo "#define HAVE_STRUCT_DIRENT_D_TYPE 1" >>confdefs.h
15235
15236 fi
15237
15238
15239
15240
15241
15242
15243
15244
15245
15246
15247
15248 :
15249
15250
15251
15252
15253
15254
15255
15256
15257 if test $gl_cv_have_include_next = yes; then
15258 gl_cv_next_dirent_h='<'dirent.h'>'
15259 else
15260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <dirent.h>" >&5
15261 $as_echo_n "checking absolute name of <dirent.h>... " >&6; }
15262 if ${gl_cv_next_dirent_h+:} false; then :
15263 $as_echo_n "(cached) " >&6
15264 else
15265
15266 if test $ac_cv_header_dirent_h = yes; then
15267
15268
15269
15270
15271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15272 /* end confdefs.h. */
15273 #include <dirent.h>
15274 _ACEOF
15275 case "$host_os" in
15276 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15277 *) gl_absname_cpp="$ac_cpp" ;;
15278 esac
15279
15280 case "$host_os" in
15281 mingw*)
15282 gl_dirsep_regex='[/\\]'
15283 ;;
15284 *)
15285 gl_dirsep_regex='\/'
15286 ;;
15287 esac
15288 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
15289 gl_header_literal_regex=`echo 'dirent.h' \
15290 | sed -e "$gl_make_literal_regex_sed"`
15291 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15292 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15293 s|^/[^/]|//&|
15294 p
15295 q
15296 }'
15297
15298 gl_cv_absolute_dirent_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15299 sed -n "$gl_absolute_header_sed"`
15300
15301 gl_header=$gl_cv_absolute_dirent_h
15302 gl_cv_next_dirent_h='"'$gl_header'"'
15303 else
15304 gl_cv_next_dirent_h='<'dirent.h'>'
15305 fi
15306
15307
15308 fi
15309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_dirent_h" >&5
15310 $as_echo "$gl_cv_next_dirent_h" >&6; }
15311 fi
15312 NEXT_DIRENT_H=$gl_cv_next_dirent_h
15313
15314 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15315 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15316 gl_next_as_first_directive='<'dirent.h'>'
15317 else
15318 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15319 gl_next_as_first_directive=$gl_cv_next_dirent_h
15320 fi
15321 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H=$gl_next_as_first_directive
15322
15323
15324
15325
15326 if test $ac_cv_header_dirent_h = yes; then
15327 HAVE_DIRENT_H=1
15328 else
15329 HAVE_DIRENT_H=0
15330 fi
15331
15332
15333
15334 for gl_func in alphasort closedir dirfd fdopendir opendir readdir rewinddir scandir; do
15335 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
15336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
15337 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
15338 if eval \${$as_gl_Symbol+:} false; then :
15339 $as_echo_n "(cached) " >&6
15340 else
15341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15342 /* end confdefs.h. */
15343 #include <dirent.h>
15344
15345 int
15346 main ()
15347 {
15348 #undef $gl_func
15349 (void) $gl_func;
15350 ;
15351 return 0;
15352 }
15353 _ACEOF
15354 if ac_fn_c_try_compile "$LINENO"; then :
15355 eval "$as_gl_Symbol=yes"
15356 else
15357 eval "$as_gl_Symbol=no"
15358 fi
15359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15360 fi
15361 eval ac_res=\$$as_gl_Symbol
15362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15363 $as_echo "$ac_res" >&6; }
15364 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
15365 cat >>confdefs.h <<_ACEOF
15366 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
15367 _ACEOF
15368
15369 eval ac_cv_have_decl_$gl_func=yes
15370 fi
15371 done
15372
15373
15374
15375
15376
15377
15378
15379 for ac_func in dirfd
15380 do :
15381 ac_fn_c_check_func "$LINENO" "dirfd" "ac_cv_func_dirfd"
15382 if test "x$ac_cv_func_dirfd" = xyes; then :
15383 cat >>confdefs.h <<_ACEOF
15384 #define HAVE_DIRFD 1
15385 _ACEOF
15386
15387 fi
15388 done
15389
15390 ac_fn_c_check_decl "$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "#include <sys/types.h>
15391 #include <dirent.h>
15392 "
15393 if test "x$ac_cv_have_decl_dirfd" = xyes; then :
15394 ac_have_decl=1
15395 else
15396 ac_have_decl=0
15397 fi
15398
15399 cat >>confdefs.h <<_ACEOF
15400 #define HAVE_DECL_DIRFD $ac_have_decl
15401 _ACEOF
15402
15403 if test $ac_cv_have_decl_dirfd = no; then
15404 HAVE_DECL_DIRFD=0
15405 fi
15406
15407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dirfd is a macro" >&5
15408 $as_echo_n "checking whether dirfd is a macro... " >&6; }
15409 if ${gl_cv_func_dirfd_macro+:} false; then :
15410 $as_echo_n "(cached) " >&6
15411 else
15412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15413 /* end confdefs.h. */
15414
15415 #include <sys/types.h>
15416 #include <dirent.h>
15417 #ifdef dirfd
15418 dirent_header_defines_dirfd
15419 #endif
15420 _ACEOF
15421 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15422 $EGREP "dirent_header_defines_dirfd" >/dev/null 2>&1; then :
15423 gl_cv_func_dirfd_macro=yes
15424 else
15425 gl_cv_func_dirfd_macro=no
15426 fi
15427 rm -f conftest*
15428
15429 fi
15430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dirfd_macro" >&5
15431 $as_echo "$gl_cv_func_dirfd_macro" >&6; }
15432
15433 # Use the replacement if we have no function or macro with that name,
15434 # or if OS/2 kLIBC whose dirfd() does not work.
15435 # Replace only if the system declares dirfd already.
15436 case $ac_cv_func_dirfd,$gl_cv_func_dirfd_macro,$host_os,$ac_cv_have_decl_dirfd in
15437 no,no,*,yes | *,*,os2*,yes)
15438 REPLACE_DIRFD=1
15439
15440 $as_echo "#define REPLACE_DIRFD 1" >>confdefs.h
15441 ;;
15442 esac
15443
15444 if test $ac_cv_func_dirfd = no && test $gl_cv_func_dirfd_macro = no \
15445 || test $REPLACE_DIRFD = 1; then
15446
15447
15448
15449
15450
15451
15452
15453
15454 gl_LIBOBJS="$gl_LIBOBJS dirfd.$ac_objext"
15455
15456
15457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get the file descriptor associated with an open DIR*" >&5
15458 $as_echo_n "checking how to get the file descriptor associated with an open DIR*... " >&6; }
15459 if ${gl_cv_sys_dir_fd_member_name+:} false; then :
15460 $as_echo_n "(cached) " >&6
15461 else
15462
15463 dirfd_save_CFLAGS=$CFLAGS
15464 for ac_expr in d_fd dd_fd; do
15465
15466 CFLAGS="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr"
15467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15468 /* end confdefs.h. */
15469
15470 #include <sys/types.h>
15471 #include <dirent.h>
15472 int
15473 main ()
15474 {
15475 DIR *dir_p = opendir("."); (void) dir_p->DIR_FD_MEMBER_NAME;
15476 ;
15477 return 0;
15478 }
15479 _ACEOF
15480 if ac_fn_c_try_compile "$LINENO"; then :
15481 dir_fd_found=yes
15482
15483 fi
15484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15485 CFLAGS=$dirfd_save_CFLAGS
15486 test "$dir_fd_found" = yes && break
15487 done
15488 test "$dir_fd_found" = yes || ac_expr=no_such_member
15489
15490 gl_cv_sys_dir_fd_member_name=$ac_expr
15491
15492
15493 fi
15494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_dir_fd_member_name" >&5
15495 $as_echo "$gl_cv_sys_dir_fd_member_name" >&6; }
15496 if test $gl_cv_sys_dir_fd_member_name != no_such_member; then
15497
15498 cat >>confdefs.h <<_ACEOF
15499 #define DIR_FD_MEMBER_NAME $gl_cv_sys_dir_fd_member_name
15500 _ACEOF
15501
15502 fi
15503
15504
15505 fi
15506
15507
15508
15509
15510
15511 GNULIB_DIRFD=1
15512
15513
15514
15515
15516
15517 $as_echo "#define GNULIB_TEST_DIRFD 1" >>confdefs.h
15518
15519
15520
15521
15522
15523
15524
15525
15526
15527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
15528 $as_echo_n "checking whether // is distinct from /... " >&6; }
15529 if ${gl_cv_double_slash_root+:} false; then :
15530 $as_echo_n "(cached) " >&6
15531 else
15532 if test x"$cross_compiling" = xyes ; then
15533 # When cross-compiling, there is no way to tell whether // is special
15534 # short of a list of hosts. However, the only known hosts to date
15535 # that have a distinct // are Apollo DomainOS (too old to port to),
15536 # Cygwin, and z/OS. If anyone knows of another system for which // has
15537 # special semantics and is distinct from /, please report it to
15538 # <bug-gnulib@gnu.org>.
15539 case $host in
15540 *-cygwin | i370-ibm-openedition)
15541 gl_cv_double_slash_root=yes ;;
15542 *)
15543 # Be optimistic and assume that / and // are the same when we
15544 # don't know.
15545 gl_cv_double_slash_root='unknown, assuming no' ;;
15546 esac
15547 else
15548 set x `ls -di / // 2>/dev/null`
15549 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
15550 gl_cv_double_slash_root=no
15551 else
15552 gl_cv_double_slash_root=yes
15553 fi
15554 fi
15555 fi
15556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
15557 $as_echo "$gl_cv_double_slash_root" >&6; }
15558 if test "$gl_cv_double_slash_root" = yes; then
15559
15560 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
15561
15562 fi
15563
15564
15565
15566
15567 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
15568 REPLACE_DUP=1
15569 fi
15570
15571
15572
15573
15574 :
15575
15576
15577
15578
15579
15580 if test $ac_cv_func_fchdir = no; then
15581 HAVE_FCHDIR=0
15582 fi
15583
15584 if test $HAVE_FCHDIR = 0; then
15585 REPLACE_DUP=1
15586 fi
15587
15588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup works" >&5
15589 $as_echo_n "checking whether dup works... " >&6; }
15590 if ${gl_cv_func_dup_works+:} false; then :
15591 $as_echo_n "(cached) " >&6
15592 else
15593 if test "$cross_compiling" = yes; then :
15594 gl_cv_func_dup_works='guessing yes'
15595 else
15596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15597 /* end confdefs.h. */
15598 #include <unistd.h>
15599 #include <fcntl.h>
15600 #include <errno.h>
15601 int
15602 main ()
15603 {
15604 /* On OS/2 kLIBC, dup does not work on a directory fd. */
15605 int fd = open (".", O_RDONLY);
15606 return fd < 0 ? 1 : dup (fd) < 0 ? 2 : 0;
15607
15608 ;
15609 return 0;
15610 }
15611
15612 _ACEOF
15613 if ac_fn_c_try_run "$LINENO"; then :
15614 gl_cv_func_dup_works=yes
15615 else
15616 gl_cv_func_dup_works=no
15617 fi
15618 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15619 conftest.$ac_objext conftest.beam conftest.$ac_ext
15620 fi
15621
15622
15623 fi
15624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup_works" >&5
15625 $as_echo "$gl_cv_func_dup_works" >&6; }
15626 case "$gl_cv_func_dup_works" in
15627 *yes) ;;
15628 *)
15629 REPLACE_DUP=1
15630 ;;
15631 esac
15632
15633 if test $REPLACE_DUP = 1; then
15634
15635
15636
15637
15638
15639
15640
15641
15642 gl_LIBOBJS="$gl_LIBOBJS dup.$ac_objext"
15643
15644 :
15645 fi
15646
15647
15648
15649
15650
15651 GNULIB_DUP=1
15652
15653
15654
15655
15656
15657 $as_echo "#define GNULIB_TEST_DUP 1" >>confdefs.h
15658
15659
15660
15661
15662
15663
15664
15665
15666 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
15667
15668
15669 if test $HAVE_DUP2 = 1; then
15670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
15671 $as_echo_n "checking whether dup2 works... " >&6; }
15672 if ${gl_cv_func_dup2_works+:} false; then :
15673 $as_echo_n "(cached) " >&6
15674 else
15675 if test "$cross_compiling" = yes; then :
15676 case "$host_os" in
15677 mingw*) # on this platform, dup2 always returns 0 for success
15678 gl_cv_func_dup2_works="guessing no" ;;
15679 cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
15680 gl_cv_func_dup2_works="guessing no" ;;
15681 aix* | freebsd*)
15682 # on AIX 7.1 and FreeBSD 6.1, dup2 (1,toobig) gives EMFILE,
15683 # not EBADF.
15684 gl_cv_func_dup2_works="guessing no" ;;
15685 haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
15686 gl_cv_func_dup2_works="guessing no" ;;
15687 *-android*) # implemented using dup3(), which fails if oldfd == newfd
15688 gl_cv_func_dup2_works="guessing no" ;;
15689 os2*) # on OS/2 kLIBC, dup2() does not work on a directory fd.
15690 gl_cv_func_dup2_works="guessing no" ;;
15691 *) gl_cv_func_dup2_works="guessing yes" ;;
15692 esac
15693 else
15694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15695 /* end confdefs.h. */
15696
15697 #include <errno.h>
15698 #include <fcntl.h>
15699 #include <limits.h>
15700 #include <sys/resource.h>
15701 #include <unistd.h>
15702 #ifndef RLIM_SAVED_CUR
15703 # define RLIM_SAVED_CUR RLIM_INFINITY
15704 #endif
15705 #ifndef RLIM_SAVED_MAX
15706 # define RLIM_SAVED_MAX RLIM_INFINITY
15707 #endif
15708
15709 int
15710 main ()
15711 {
15712 int result = 0;
15713 int bad_fd = INT_MAX;
15714 struct rlimit rlim;
15715 if (getrlimit (RLIMIT_NOFILE, &rlim) == 0
15716 && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX
15717 && rlim.rlim_cur != RLIM_INFINITY
15718 && rlim.rlim_cur != RLIM_SAVED_MAX
15719 && rlim.rlim_cur != RLIM_SAVED_CUR)
15720 bad_fd = rlim.rlim_cur;
15721 #ifdef FD_CLOEXEC
15722 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
15723 result |= 1;
15724 #endif
15725 if (dup2 (1, 1) != 1)
15726 result |= 2;
15727 #ifdef FD_CLOEXEC
15728 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
15729 result |= 4;
15730 #endif
15731 close (0);
15732 if (dup2 (0, 0) != -1)
15733 result |= 8;
15734 /* Many gnulib modules require POSIX conformance of EBADF. */
15735 if (dup2 (2, bad_fd) == -1 && errno != EBADF)
15736 result |= 16;
15737 /* Flush out some cygwin core dumps. */
15738 if (dup2 (2, -1) != -1 || errno != EBADF)
15739 result |= 32;
15740 dup2 (2, 255);
15741 dup2 (2, 256);
15742 /* On OS/2 kLIBC, dup2() does not work on a directory fd. */
15743 {
15744 int fd = open (".", O_RDONLY);
15745 if (fd == -1)
15746 result |= 64;
15747 else if (dup2 (fd, fd + 1) == -1)
15748 result |= 128;
15749
15750 close (fd);
15751 }
15752 return result;
15753 ;
15754 return 0;
15755 }
15756
15757 _ACEOF
15758 if ac_fn_c_try_run "$LINENO"; then :
15759 gl_cv_func_dup2_works=yes
15760 else
15761 gl_cv_func_dup2_works=no
15762 fi
15763 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15764 conftest.$ac_objext conftest.beam conftest.$ac_ext
15765 fi
15766
15767
15768 fi
15769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
15770 $as_echo "$gl_cv_func_dup2_works" >&6; }
15771 case "$gl_cv_func_dup2_works" in
15772 *yes) ;;
15773 *)
15774 REPLACE_DUP2=1
15775 for ac_func in setdtablesize
15776 do :
15777 ac_fn_c_check_func "$LINENO" "setdtablesize" "ac_cv_func_setdtablesize"
15778 if test "x$ac_cv_func_setdtablesize" = xyes; then :
15779 cat >>confdefs.h <<_ACEOF
15780 #define HAVE_SETDTABLESIZE 1
15781 _ACEOF
15782
15783 fi
15784 done
15785
15786 ;;
15787 esac
15788 fi
15789
15790
15791
15792
15793 :
15794
15795
15796
15797
15798
15799 if test $ac_cv_func_fchdir = no; then
15800 HAVE_FCHDIR=0
15801 fi
15802
15803 if test $HAVE_FCHDIR = 0; then
15804 if test $HAVE_DUP2 = 1; then
15805 REPLACE_DUP2=1
15806 fi
15807 fi
15808
15809
15810 if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then
15811
15812
15813
15814
15815
15816
15817
15818
15819 gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
15820
15821
15822 fi
15823
15824
15825
15826
15827
15828 GNULIB_DUP2=1
15829
15830
15831
15832
15833
15834 $as_echo "#define GNULIB_TEST_DUP2 1" >>confdefs.h
15835
15836
15837
15838
15839
15840
15841
15842
15843
15844 GNULIB_ENVIRON=1
15845
15846
15847
15848
15849
15850 $as_echo "#define GNULIB_TEST_ENVIRON 1" >>confdefs.h
15851
15852
15853
15854
15855
15856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
15857 $as_echo_n "checking for error_at_line... " >&6; }
15858 if ${ac_cv_lib_error_at_line+:} false; then :
15859 $as_echo_n "(cached) " >&6
15860 else
15861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15862 /* end confdefs.h. */
15863 #include <error.h>
15864 int
15865 main ()
15866 {
15867 error_at_line (0, 0, "", 0, "an error occurred");
15868 ;
15869 return 0;
15870 }
15871 _ACEOF
15872 if ac_fn_c_try_link "$LINENO"; then :
15873 ac_cv_lib_error_at_line=yes
15874 else
15875 ac_cv_lib_error_at_line=no
15876 fi
15877 rm -f core conftest.err conftest.$ac_objext \
15878 conftest$ac_exeext conftest.$ac_ext
15879 fi
15880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
15881 $as_echo "$ac_cv_lib_error_at_line" >&6; }
15882
15883 if test $ac_cv_lib_error_at_line = no; then
15884
15885
15886
15887
15888
15889
15890
15891
15892 gl_LIBOBJS="$gl_LIBOBJS error.$ac_objext"
15893
15894
15895
15896 :
15897
15898 fi
15899
15900
15901
15902
15903
15904
15905
15906 :
15907
15908
15909
15910
15911
15912 if test $ac_cv_have_decl_fchdir = no; then
15913 HAVE_DECL_FCHDIR=0
15914 fi
15915
15916
15917 if test $HAVE_FCHDIR = 0; then
15918
15919
15920
15921
15922
15923
15924
15925
15926 gl_LIBOBJS="$gl_LIBOBJS fchdir.$ac_objext"
15927
15928 :
15929
15930 $as_echo "#define REPLACE_FCHDIR 1" >>confdefs.h
15931
15932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open can visit directories" >&5
15933 $as_echo_n "checking whether open can visit directories... " >&6; }
15934 if ${gl_cv_func_open_directory_works+:} false; then :
15935 $as_echo_n "(cached) " >&6
15936 else
15937 if test "$cross_compiling" = yes; then :
15938 case "$host_os" in
15939 # Guess yes on glibc systems.
15940 *-gnu*) gl_cv_func_open_directory_works="guessing yes" ;;
15941 # If we don't know, assume the worst.
15942 *) gl_cv_func_open_directory_works="guessing no" ;;
15943 esac
15944
15945 else
15946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15947 /* end confdefs.h. */
15948 #include <fcntl.h>
15949
15950 int
15951 main ()
15952 {
15953 return open(".", O_RDONLY) < 0;
15954 ;
15955 return 0;
15956 }
15957 _ACEOF
15958 if ac_fn_c_try_run "$LINENO"; then :
15959 gl_cv_func_open_directory_works=yes
15960 else
15961 gl_cv_func_open_directory_works=no
15962 fi
15963 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15964 conftest.$ac_objext conftest.beam conftest.$ac_ext
15965 fi
15966
15967 fi
15968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_open_directory_works" >&5
15969 $as_echo "$gl_cv_func_open_directory_works" >&6; }
15970 case "$gl_cv_func_open_directory_works" in
15971 *yes) ;;
15972 *)
15973
15974 $as_echo "#define REPLACE_OPEN_DIRECTORY 1" >>confdefs.h
15975
15976 ;;
15977 esac
15978 fi
15979
15980
15981
15982
15983
15984
15985 GNULIB_FCHDIR=1
15986
15987
15988
15989
15990
15991 $as_echo "#define GNULIB_TEST_FCHDIR 1" >>confdefs.h
15992
15993
15994
15995
15996
15997
15998
15999
16000 :
16001
16002
16003
16004
16005
16006 if test $ac_cv_func_fcntl = no; then
16007
16008
16009
16010 :
16011
16012
16013
16014
16015
16016 if test $ac_cv_func_fcntl = no; then
16017 HAVE_FCNTL=0
16018 else
16019 REPLACE_FCNTL=1
16020 fi
16021
16022 else
16023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl handles F_DUPFD correctly" >&5
16024 $as_echo_n "checking whether fcntl handles F_DUPFD correctly... " >&6; }
16025 if ${gl_cv_func_fcntl_f_dupfd_works+:} false; then :
16026 $as_echo_n "(cached) " >&6
16027 else
16028 if test "$cross_compiling" = yes; then :
16029 case $host_os in
16030 aix* | cygwin* | haiku*)
16031 gl_cv_func_fcntl_f_dupfd_works="guessing no" ;;
16032 *) gl_cv_func_fcntl_f_dupfd_works="guessing yes" ;;
16033 esac
16034 else
16035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16036 /* end confdefs.h. */
16037 #include <errno.h>
16038 #include <fcntl.h>
16039 #include <limits.h>
16040 #include <sys/resource.h>
16041 #include <unistd.h>
16042 #ifndef RLIM_SAVED_CUR
16043 # define RLIM_SAVED_CUR RLIM_INFINITY
16044 #endif
16045 #ifndef RLIM_SAVED_MAX
16046 # define RLIM_SAVED_MAX RLIM_INFINITY
16047 #endif
16048
16049 int
16050 main ()
16051 {
16052 int result = 0;
16053 int bad_fd = INT_MAX;
16054 struct rlimit rlim;
16055 if (getrlimit (RLIMIT_NOFILE, &rlim) == 0
16056 && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX
16057 && rlim.rlim_cur != RLIM_INFINITY
16058 && rlim.rlim_cur != RLIM_SAVED_MAX
16059 && rlim.rlim_cur != RLIM_SAVED_CUR)
16060 bad_fd = rlim.rlim_cur;
16061 if (fcntl (0, F_DUPFD, -1) != -1) result |= 1;
16062 if (errno != EINVAL) result |= 2;
16063 if (fcntl (0, F_DUPFD, bad_fd) != -1) result |= 4;
16064 if (errno != EINVAL) result |= 8;
16065 /* On OS/2 kLIBC, F_DUPFD does not work on a directory fd */
16066 {
16067 int fd;
16068 fd = open (".", O_RDONLY);
16069 if (fd == -1)
16070 result |= 16;
16071 else if (fcntl (fd, F_DUPFD, STDERR_FILENO + 1) == -1)
16072 result |= 32;
16073
16074 close (fd);
16075 }
16076 return result;
16077 ;
16078 return 0;
16079 }
16080 _ACEOF
16081 if ac_fn_c_try_run "$LINENO"; then :
16082 gl_cv_func_fcntl_f_dupfd_works=yes
16083 else
16084 gl_cv_func_fcntl_f_dupfd_works=no
16085 fi
16086 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16087 conftest.$ac_objext conftest.beam conftest.$ac_ext
16088 fi
16089
16090 fi
16091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_works" >&5
16092 $as_echo "$gl_cv_func_fcntl_f_dupfd_works" >&6; }
16093 case $gl_cv_func_fcntl_f_dupfd_works in
16094 *yes) ;;
16095 *)
16096
16097
16098 :
16099
16100
16101
16102
16103
16104 if test $ac_cv_func_fcntl = no; then
16105 HAVE_FCNTL=0
16106 else
16107 REPLACE_FCNTL=1
16108 fi
16109
16110
16111 $as_echo "#define FCNTL_DUPFD_BUGGY 1" >>confdefs.h
16112 ;;
16113 esac
16114
16115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl understands F_DUPFD_CLOEXEC" >&5
16116 $as_echo_n "checking whether fcntl understands F_DUPFD_CLOEXEC... " >&6; }
16117 if ${gl_cv_func_fcntl_f_dupfd_cloexec+:} false; then :
16118 $as_echo_n "(cached) " >&6
16119 else
16120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16121 /* end confdefs.h. */
16122
16123 #include <fcntl.h>
16124 #ifndef F_DUPFD_CLOEXEC
16125 choke me
16126 #endif
16127
16128 int
16129 main ()
16130 {
16131
16132 ;
16133 return 0;
16134 }
16135 _ACEOF
16136 if ac_fn_c_try_compile "$LINENO"; then :
16137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16138 /* end confdefs.h. */
16139
16140 #ifdef __linux__
16141 /* The Linux kernel only added F_DUPFD_CLOEXEC in 2.6.24, so we always replace
16142 it to support the semantics on older kernels that failed with EINVAL. */
16143 choke me
16144 #endif
16145
16146 int
16147 main ()
16148 {
16149
16150 ;
16151 return 0;
16152 }
16153 _ACEOF
16154 if ac_fn_c_try_compile "$LINENO"; then :
16155 gl_cv_func_fcntl_f_dupfd_cloexec=yes
16156 else
16157 gl_cv_func_fcntl_f_dupfd_cloexec="needs runtime check"
16158 fi
16159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16160 else
16161 gl_cv_func_fcntl_f_dupfd_cloexec=no
16162 fi
16163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16164 fi
16165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_cloexec" >&5
16166 $as_echo "$gl_cv_func_fcntl_f_dupfd_cloexec" >&6; }
16167 if test "$gl_cv_func_fcntl_f_dupfd_cloexec" != yes; then
16168
16169
16170
16171 :
16172
16173
16174
16175
16176
16177 if test $ac_cv_func_fcntl = no; then
16178 HAVE_FCNTL=0
16179 else
16180 REPLACE_FCNTL=1
16181 fi
16182
16183 fi
16184 fi
16185
16186
16187
16188
16189 :
16190
16191
16192
16193
16194
16195 if test $ac_cv_func_fchdir = no; then
16196 HAVE_FCHDIR=0
16197 fi
16198
16199 if test $HAVE_FCHDIR = 0; then
16200
16201
16202
16203 :
16204
16205
16206
16207
16208
16209 if test $ac_cv_func_fcntl = no; then
16210 HAVE_FCNTL=0
16211 else
16212 REPLACE_FCNTL=1
16213 fi
16214
16215 fi
16216
16217
16218 if test $HAVE_FCNTL = 0 || test $REPLACE_FCNTL = 1; then
16219
16220
16221
16222
16223
16224
16225
16226
16227 gl_LIBOBJS="$gl_LIBOBJS fcntl.$ac_objext"
16228
16229 fi
16230
16231
16232
16233
16234
16235 GNULIB_FCNTL=1
16236
16237
16238
16239
16240
16241 $as_echo "#define GNULIB_TEST_FCNTL 1" >>confdefs.h
16242
16243
16244
16245
16246
16247
16248
16249
16250
16251
16252
16253
16254
16255
16256 if test $gl_cv_have_include_next = yes; then
16257 gl_cv_next_fcntl_h='<'fcntl.h'>'
16258 else
16259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
16260 $as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
16261 if ${gl_cv_next_fcntl_h+:} false; then :
16262 $as_echo_n "(cached) " >&6
16263 else
16264
16265
16266
16267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16268 /* end confdefs.h. */
16269 #include <fcntl.h>
16270 _ACEOF
16271 case "$host_os" in
16272 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16273 *) gl_absname_cpp="$ac_cpp" ;;
16274 esac
16275
16276 case "$host_os" in
16277 mingw*)
16278 gl_dirsep_regex='[/\\]'
16279 ;;
16280 *)
16281 gl_dirsep_regex='\/'
16282 ;;
16283 esac
16284 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
16285 gl_header_literal_regex=`echo 'fcntl.h' \
16286 | sed -e "$gl_make_literal_regex_sed"`
16287 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16288 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16289 s|^/[^/]|//&|
16290 p
16291 q
16292 }'
16293
16294 gl_cv_absolute_fcntl_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16295 sed -n "$gl_absolute_header_sed"`
16296
16297 gl_header=$gl_cv_absolute_fcntl_h
16298 gl_cv_next_fcntl_h='"'$gl_header'"'
16299
16300
16301 fi
16302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
16303 $as_echo "$gl_cv_next_fcntl_h" >&6; }
16304 fi
16305 NEXT_FCNTL_H=$gl_cv_next_fcntl_h
16306
16307 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16308 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16309 gl_next_as_first_directive='<'fcntl.h'>'
16310 else
16311 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16312 gl_next_as_first_directive=$gl_cv_next_fcntl_h
16313 fi
16314 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H=$gl_next_as_first_directive
16315
16316
16317
16318
16319
16320
16321
16322
16323
16324
16325 for gl_func in fcntl openat; do
16326 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
16327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
16328 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
16329 if eval \${$as_gl_Symbol+:} false; then :
16330 $as_echo_n "(cached) " >&6
16331 else
16332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16333 /* end confdefs.h. */
16334 #include <fcntl.h>
16335
16336 int
16337 main ()
16338 {
16339 #undef $gl_func
16340 (void) $gl_func;
16341 ;
16342 return 0;
16343 }
16344 _ACEOF
16345 if ac_fn_c_try_compile "$LINENO"; then :
16346 eval "$as_gl_Symbol=yes"
16347 else
16348 eval "$as_gl_Symbol=no"
16349 fi
16350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16351 fi
16352 eval ac_res=\$$as_gl_Symbol
16353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16354 $as_echo "$ac_res" >&6; }
16355 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
16356 cat >>confdefs.h <<_ACEOF
16357 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
16358 _ACEOF
16359
16360 eval ac_cv_have_decl_$gl_func=yes
16361 fi
16362 done
16363
16364
16365
16366
16367
16368
16369
16370 ac_fn_c_check_decl "$LINENO" "fdopendir" "ac_cv_have_decl_fdopendir" "
16371 #include <dirent.h>
16372
16373 "
16374 if test "x$ac_cv_have_decl_fdopendir" = xyes; then :
16375 ac_have_decl=1
16376 else
16377 ac_have_decl=0
16378 fi
16379
16380 cat >>confdefs.h <<_ACEOF
16381 #define HAVE_DECL_FDOPENDIR $ac_have_decl
16382 _ACEOF
16383 if test $ac_have_decl = 1; then :
16384
16385 else
16386 HAVE_DECL_FDOPENDIR=0
16387 fi
16388
16389
16390 :
16391
16392
16393
16394
16395
16396 if test $ac_cv_func_fdopendir = no; then
16397 HAVE_FDOPENDIR=0
16398 else
16399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fdopendir works" >&5
16400 $as_echo_n "checking whether fdopendir works... " >&6; }
16401 if ${gl_cv_func_fdopendir_works+:} false; then :
16402 $as_echo_n "(cached) " >&6
16403 else
16404 if test "$cross_compiling" = yes; then :
16405 case "$host_os" in
16406 # Guess yes on glibc systems.
16407 *-gnu*) gl_cv_func_fdopendir_works="guessing yes" ;;
16408 # If we don't know, assume the worst.
16409 *) gl_cv_func_fdopendir_works="guessing no" ;;
16410 esac
16411
16412 else
16413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16414 /* end confdefs.h. */
16415
16416 #include <dirent.h>
16417 #include <fcntl.h>
16418 #include <unistd.h>
16419 #if !HAVE_DECL_FDOPENDIR
16420 extern
16421 # ifdef __cplusplus
16422 "C"
16423 # endif
16424 DIR *fdopendir (int);
16425 #endif
16426
16427 int
16428 main ()
16429 {
16430 int result = 0;
16431 int fd = open ("conftest.c", O_RDONLY);
16432 if (fd < 0) result |= 1;
16433 if (fdopendir (fd)) result |= 2;
16434 if (close (fd)) result |= 4;
16435 return result;
16436 ;
16437 return 0;
16438 }
16439 _ACEOF
16440 if ac_fn_c_try_run "$LINENO"; then :
16441 gl_cv_func_fdopendir_works=yes
16442 else
16443 gl_cv_func_fdopendir_works=no
16444 fi
16445 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16446 conftest.$ac_objext conftest.beam conftest.$ac_ext
16447 fi
16448
16449 fi
16450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fdopendir_works" >&5
16451 $as_echo "$gl_cv_func_fdopendir_works" >&6; }
16452 case "$gl_cv_func_fdopendir_works" in
16453 *yes) ;;
16454 *)
16455 REPLACE_FDOPENDIR=1
16456 ;;
16457 esac
16458 fi
16459
16460 if test $HAVE_FDOPENDIR = 0 || test $REPLACE_FDOPENDIR = 1; then
16461
16462
16463
16464
16465
16466
16467
16468
16469 gl_LIBOBJS="$gl_LIBOBJS fdopendir.$ac_objext"
16470
16471 fi
16472
16473
16474
16475
16476
16477 GNULIB_FDOPENDIR=1
16478
16479
16480
16481
16482
16483 $as_echo "#define GNULIB_TEST_FDOPENDIR 1" >>confdefs.h
16484
16485
16486
16487
16488
16489 cat >>confdefs.h <<_ACEOF
16490 #define GNULIB_FDOPENDIR 1
16491 _ACEOF
16492
16493
16494
16495
16496 :
16497
16498
16499
16500
16501
16502
16503
16504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array member" >&5
16505 $as_echo_n "checking for flexible array member... " >&6; }
16506 if ${ac_cv_c_flexmember+:} false; then :
16507 $as_echo_n "(cached) " >&6
16508 else
16509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16510 /* end confdefs.h. */
16511 #include <stdlib.h>
16512 #include <stdio.h>
16513 #include <stddef.h>
16514 struct s { int n; double d[]; };
16515 int
16516 main ()
16517 {
16518 int m = getchar ();
16519 size_t nbytes = offsetof (struct s, d) + m * sizeof (double);
16520 nbytes += sizeof (struct s) - 1;
16521 nbytes -= nbytes % sizeof (struct s);
16522 struct s *p = malloc (nbytes);
16523 p->d[0] = 0.0;
16524 return p->d != (double *) NULL;
16525 ;
16526 return 0;
16527 }
16528 _ACEOF
16529 if ac_fn_c_try_compile "$LINENO"; then :
16530 ac_cv_c_flexmember=yes
16531 else
16532 ac_cv_c_flexmember=no
16533 fi
16534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16535 fi
16536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5
16537 $as_echo "$ac_cv_c_flexmember" >&6; }
16538 if test $ac_cv_c_flexmember = yes; then
16539
16540 $as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h
16541
16542 else
16543 $as_echo "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h
16544
16545 fi
16546
16547
16548
16549
16550 FLOAT_H=
16551 REPLACE_FLOAT_LDBL=0
16552 case "$host_os" in
16553 aix* | beos* | openbsd* | mirbsd* | irix*)
16554 FLOAT_H=float.h
16555 ;;
16556 freebsd*)
16557 case "$host_cpu" in
16558 i[34567]86 )
16559 FLOAT_H=float.h
16560 ;;
16561 x86_64 )
16562 # On x86_64 systems, the C compiler may still be generating
16563 # 32-bit code.
16564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16565 /* end confdefs.h. */
16566 #if defined __LP64__ || defined __x86_64__ || defined __amd64__
16567 yes
16568 #endif
16569 _ACEOF
16570 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16571 $EGREP "yes" >/dev/null 2>&1; then :
16572
16573 else
16574 FLOAT_H=float.h
16575 fi
16576 rm -f conftest*
16577
16578 ;;
16579 esac
16580 ;;
16581 linux*)
16582 case "$host_cpu" in
16583 powerpc*)
16584 FLOAT_H=float.h
16585 ;;
16586 esac
16587 ;;
16588 esac
16589 case "$host_os" in
16590 aix* | freebsd* | linux*)
16591 if test -n "$FLOAT_H"; then
16592 REPLACE_FLOAT_LDBL=1
16593 fi
16594 ;;
16595 esac
16596
16597 REPLACE_ITOLD=0
16598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
16599 $as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
16600 if ${gl_cv_func_itold_works+:} false; then :
16601 $as_echo_n "(cached) " >&6
16602 else
16603
16604 if test "$cross_compiling" = yes; then :
16605 case "$host" in
16606 sparc*-*-linux*)
16607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16608 /* end confdefs.h. */
16609 #if defined __LP64__ || defined __arch64__
16610 yes
16611 #endif
16612 _ACEOF
16613 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16614 $EGREP "yes" >/dev/null 2>&1; then :
16615 gl_cv_func_itold_works="guessing no"
16616 else
16617 gl_cv_func_itold_works="guessing yes"
16618 fi
16619 rm -f conftest*
16620
16621 ;;
16622 *) gl_cv_func_itold_works="guessing yes" ;;
16623 esac
16624
16625 else
16626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16627 /* end confdefs.h. */
16628
16629 int i = -1;
16630 volatile long double ld;
16631 int main ()
16632 {
16633 ld += i * 1.0L;
16634 if (ld > 0)
16635 return 1;
16636 return 0;
16637 }
16638 _ACEOF
16639 if ac_fn_c_try_run "$LINENO"; then :
16640 gl_cv_func_itold_works=yes
16641 else
16642 gl_cv_func_itold_works=no
16643 fi
16644 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16645 conftest.$ac_objext conftest.beam conftest.$ac_ext
16646 fi
16647
16648
16649 fi
16650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
16651 $as_echo "$gl_cv_func_itold_works" >&6; }
16652 case "$gl_cv_func_itold_works" in
16653 *no)
16654 REPLACE_ITOLD=1
16655 FLOAT_H=float.h
16656 ;;
16657 esac
16658
16659 if test -n "$FLOAT_H"; then
16660
16661
16662
16663
16664
16665
16666
16667
16668 if test $gl_cv_have_include_next = yes; then
16669 gl_cv_next_float_h='<'float.h'>'
16670 else
16671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
16672 $as_echo_n "checking absolute name of <float.h>... " >&6; }
16673 if ${gl_cv_next_float_h+:} false; then :
16674 $as_echo_n "(cached) " >&6
16675 else
16676
16677
16678
16679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16680 /* end confdefs.h. */
16681 #include <float.h>
16682 _ACEOF
16683 case "$host_os" in
16684 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16685 *) gl_absname_cpp="$ac_cpp" ;;
16686 esac
16687
16688 case "$host_os" in
16689 mingw*)
16690 gl_dirsep_regex='[/\\]'
16691 ;;
16692 *)
16693 gl_dirsep_regex='\/'
16694 ;;
16695 esac
16696 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
16697 gl_header_literal_regex=`echo 'float.h' \
16698 | sed -e "$gl_make_literal_regex_sed"`
16699 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16700 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16701 s|^/[^/]|//&|
16702 p
16703 q
16704 }'
16705
16706 gl_cv_absolute_float_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16707 sed -n "$gl_absolute_header_sed"`
16708
16709 gl_header=$gl_cv_absolute_float_h
16710 gl_cv_next_float_h='"'$gl_header'"'
16711
16712
16713 fi
16714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
16715 $as_echo "$gl_cv_next_float_h" >&6; }
16716 fi
16717 NEXT_FLOAT_H=$gl_cv_next_float_h
16718
16719 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16720 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16721 gl_next_as_first_directive='<'float.h'>'
16722 else
16723 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16724 gl_next_as_first_directive=$gl_cv_next_float_h
16725 fi
16726 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
16727
16728
16729
16730
16731 fi
16732
16733 if test -n "$FLOAT_H"; then
16734 GL_GENERATE_FLOAT_H_TRUE=
16735 GL_GENERATE_FLOAT_H_FALSE='#'
16736 else
16737 GL_GENERATE_FLOAT_H_TRUE='#'
16738 GL_GENERATE_FLOAT_H_FALSE=
16739 fi
16740
16741
16742
16743 if test $REPLACE_FLOAT_LDBL = 1; then
16744
16745
16746
16747
16748
16749
16750
16751
16752 gl_LIBOBJS="$gl_LIBOBJS float.$ac_objext"
16753
16754 fi
16755 if test $REPLACE_ITOLD = 1; then
16756
16757
16758
16759
16760
16761
16762
16763
16764 gl_LIBOBJS="$gl_LIBOBJS itold.$ac_objext"
16765
16766 fi
16767
16768
16769
16770
16771
16772 FNMATCH_H=
16773 gl_fnmatch_required_lowercase=`
16774 echo $gl_fnmatch_required | LC_ALL=C tr '[A-Z]' '[a-z]'
16775 `
16776 gl_fnmatch_cache_var="gl_cv_func_fnmatch_${gl_fnmatch_required_lowercase}"
16777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working $gl_fnmatch_required fnmatch" >&5
16778 $as_echo_n "checking for working $gl_fnmatch_required fnmatch... " >&6; }
16779 if eval \${$gl_fnmatch_cache_var+:} false; then :
16780 $as_echo_n "(cached) " >&6
16781 else
16782 if test $gl_fnmatch_required = GNU; then
16783 gl_fnmatch_gnu_start=
16784 gl_fnmatch_gnu_end=
16785 else
16786 gl_fnmatch_gnu_start='#if 0'
16787 gl_fnmatch_gnu_end='#endif'
16788 fi
16789 if test "$cross_compiling" = yes; then :
16790 eval "$gl_fnmatch_cache_var=\"guessing no\""
16791 else
16792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16793 /* end confdefs.h. */
16794 #include <fnmatch.h>
16795 static int
16796 y (char const *pattern, char const *string, int flags)
16797 {
16798 return fnmatch (pattern, string, flags) == 0;
16799 }
16800 static int
16801 n (char const *pattern, char const *string, int flags)
16802 {
16803 return fnmatch (pattern, string, flags) == FNM_NOMATCH;
16804 }
16805
16806 int
16807 main ()
16808 {
16809 char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]";
16810 char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]";
16811 static char const A_1[] = { 'A' - 1, 0 };
16812 static char const A01[] = { 'A' + 1, 0 };
16813 static char const a_1[] = { 'a' - 1, 0 };
16814 static char const a01[] = { 'a' + 1, 0 };
16815 static char const bs_1[] = { '\\\\' - 1, 0 };
16816 static char const bs01[] = { '\\\\' + 1, 0 };
16817 int result = 0;
16818 if (!n ("a*", "", 0))
16819 return 1;
16820 if (!y ("a*", "abc", 0))
16821 return 1;
16822 if (!y ("[/b", "[/b", 0)) /*"]]"*/ /* glibc Bugzilla bug 12378 */
16823 return 1;
16824 if (!n ("d*/*1", "d/s/1", FNM_PATHNAME))
16825 return 2;
16826 if (!y ("a\\\\bc", "abc", 0))
16827 return 3;
16828 if (!n ("a\\\\bc", "abc", FNM_NOESCAPE))
16829 return 3;
16830 if (!y ("*x", ".x", 0))
16831 return 4;
16832 if (!n ("*x", ".x", FNM_PERIOD))
16833 return 4;
16834 if (!y (Apat, "\\\\", 0))
16835 return 5;
16836 if (!y (Apat, "A", 0))
16837 return 5;
16838 if (!y (apat, "\\\\", 0))
16839 return 5;
16840 if (!y (apat, "a", 0))
16841 return 5;
16842 if (!(n (Apat, A_1, 0) == ('A' < '\\\\')))
16843 return 5;
16844 if (!(n (apat, a_1, 0) == ('a' < '\\\\')))
16845 return 5;
16846 if (!(y (Apat, A01, 0) == ('A' < '\\\\')))
16847 return 5;
16848 if (!(y (apat, a01, 0) == ('a' < '\\\\')))
16849 return 5;
16850 if (!(y (Apat, bs_1, 0) == ('A' < '\\\\')))
16851 return 5;
16852 if (!(y (apat, bs_1, 0) == ('a' < '\\\\')))
16853 return 5;
16854 if (!(n (Apat, bs01, 0) == ('A' < '\\\\')))
16855 return 5;
16856 if (!(n (apat, bs01, 0) == ('a' < '\\\\')))
16857 return 5;
16858 $gl_fnmatch_gnu_start
16859 if (!y ("xxXX", "xXxX", FNM_CASEFOLD))
16860 result |= 8;
16861 if (!y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH))
16862 result |= 16;
16863 if (!n ("d*/*1", "d/s/1", FNM_FILE_NAME))
16864 result |= 32;
16865 if (!y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR))
16866 result |= 64;
16867 if (!y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR))
16868 result |= 64;
16869 if (!y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR))
16870 result |= 64;
16871 $gl_fnmatch_gnu_end
16872 return result;
16873
16874 ;
16875 return 0;
16876 }
16877 _ACEOF
16878 if ac_fn_c_try_run "$LINENO"; then :
16879 eval "$gl_fnmatch_cache_var=yes"
16880 else
16881 eval "$gl_fnmatch_cache_var=no"
16882 fi
16883 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16884 conftest.$ac_objext conftest.beam conftest.$ac_ext
16885 fi
16886
16887
16888 fi
16889 eval ac_res=\$$gl_fnmatch_cache_var
16890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16891 $as_echo "$ac_res" >&6; }
16892 eval "gl_fnmatch_result=\"\$$gl_fnmatch_cache_var\""
16893 if test "$gl_fnmatch_result" = yes; then
16894 rm -f "$gl_source_base/fnmatch.h"
16895 else
16896 FNMATCH_H=fnmatch.h
16897 fi
16898
16899 if test -n "$FNMATCH_H"; then
16900 GL_GENERATE_FNMATCH_H_TRUE=
16901 GL_GENERATE_FNMATCH_H_FALSE='#'
16902 else
16903 GL_GENERATE_FNMATCH_H_TRUE='#'
16904 GL_GENERATE_FNMATCH_H_FALSE=
16905 fi
16906
16907
16908 if test -n "$FNMATCH_H"; then
16909
16910
16911
16912
16913
16914
16915
16916
16917 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
16918
16919
16920
16921 cat >>confdefs.h <<_ACEOF
16922 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
16923 _ACEOF
16924
16925
16926 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
16927 "
16928 if test "x$ac_cv_have_decl_isblank" = xyes; then :
16929 ac_have_decl=1
16930 else
16931 ac_have_decl=0
16932 fi
16933
16934 cat >>confdefs.h <<_ACEOF
16935 #define HAVE_DECL_ISBLANK $ac_have_decl
16936 _ACEOF
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
16974 fi
16975
16976
16977
16978
16979
16980 if test -n "$FNMATCH_H"; then
16981
16982
16983
16984
16985
16986
16987
16988
16989 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
16990
16991
16992
16993 cat >>confdefs.h <<_ACEOF
16994 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
16995 _ACEOF
16996
16997
16998 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
16999 "
17000 if test "x$ac_cv_have_decl_isblank" = xyes; then :
17001 ac_have_decl=1
17002 else
17003 ac_have_decl=0
17004 fi
17005
17006 cat >>confdefs.h <<_ACEOF
17007 #define HAVE_DECL_ISBLANK $ac_have_decl
17008 _ACEOF
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
17046 fi
17047
17048
17049
17050 FREXP_LIBM=
17051 if test $gl_cv_func_frexp_no_libm = no; then
17052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used with libm" >&5
17053 $as_echo_n "checking whether frexp() can be used with libm... " >&6; }
17054 if ${gl_cv_func_frexp_in_libm+:} false; then :
17055 $as_echo_n "(cached) " >&6
17056 else
17057
17058 save_LIBS="$LIBS"
17059 LIBS="$LIBS -lm"
17060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17061 /* end confdefs.h. */
17062 #include <math.h>
17063 double x;
17064 int
17065 main ()
17066 {
17067 int e; return frexp (x, &e) > 0;
17068 ;
17069 return 0;
17070 }
17071 _ACEOF
17072 if ac_fn_c_try_link "$LINENO"; then :
17073 gl_cv_func_frexp_in_libm=yes
17074 else
17075 gl_cv_func_frexp_in_libm=no
17076 fi
17077 rm -f core conftest.err conftest.$ac_objext \
17078 conftest$ac_exeext conftest.$ac_ext
17079 LIBS="$save_LIBS"
17080
17081 fi
17082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_in_libm" >&5
17083 $as_echo "$gl_cv_func_frexp_in_libm" >&6; }
17084 if test $gl_cv_func_frexp_in_libm = yes; then
17085 FREXP_LIBM=-lm
17086 fi
17087 fi
17088 if test $gl_cv_func_frexp_no_libm = yes \
17089 || test $gl_cv_func_frexp_in_libm = yes; then
17090 save_LIBS="$LIBS"
17091 LIBS="$LIBS $FREXP_LIBM"
17092
17093
17094
17095 :
17096
17097
17098
17099
17100
17101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp works" >&5
17102 $as_echo_n "checking whether frexp works... " >&6; }
17103 if ${gl_cv_func_frexp_works+:} false; then :
17104 $as_echo_n "(cached) " >&6
17105 else
17106
17107 if test "$cross_compiling" = yes; then :
17108 case "$host_os" in
17109 netbsd* | irix* | mingw*) gl_cv_func_frexp_works="guessing no";;
17110 *) gl_cv_func_frexp_works="guessing yes";;
17111 esac
17112
17113 else
17114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17115 /* end confdefs.h. */
17116
17117 #include <float.h>
17118 #include <math.h>
17119 #include <string.h>
17120 #if HAVE_DECL_ALARM
17121 # include <signal.h>
17122 # include <unistd.h>
17123 #endif
17124 /* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0.
17125 ICC 10.0 has a bug when optimizing the expression -zero.
17126 The expression -DBL_MIN * DBL_MIN does not work when cross-compiling
17127 to PowerPC on Mac OS X 10.5. */
17128 #if defined __hpux || defined __sgi || defined __ICC
17129 static double
17130 compute_minus_zero (void)
17131 {
17132 return -DBL_MIN * DBL_MIN;
17133 }
17134 # define minus_zero compute_minus_zero ()
17135 #else
17136 double minus_zero = -0.0;
17137 #endif
17138 int main()
17139 {
17140 int result = 0;
17141 int i;
17142 volatile double x;
17143 double zero = 0.0;
17144 #if HAVE_DECL_ALARM
17145 /* NeXTstep 3.3 frexp() runs into an endless loop when called on an infinite
17146 number. Let the test fail in this case. */
17147 signal (SIGALRM, SIG_DFL);
17148 alarm (5);
17149 #endif
17150 /* Test on denormalized numbers. */
17151 for (i = 1, x = 1.0; i >= DBL_MIN_EXP; i--, x *= 0.5)
17152 ;
17153 if (x > 0.0)
17154 {
17155 int exp;
17156 double y = frexp (x, &exp);
17157 /* On machines with IEEE754 arithmetic: x = 1.11254e-308, exp = -1022.
17158 On NetBSD: y = 0.75. Correct: y = 0.5. */
17159 if (y != 0.5)
17160 result |= 1;
17161 }
17162 /* Test on infinite numbers. */
17163 x = 1.0 / zero;
17164 {
17165 int exp;
17166 double y = frexp (x, &exp);
17167 if (y != x)
17168 result |= 2;
17169 }
17170 /* Test on negative zero. */
17171 x = minus_zero;
17172 {
17173 int exp;
17174 double y = frexp (x, &exp);
17175 if (memcmp (&y, &x, sizeof x))
17176 result |= 4;
17177 }
17178 return result;
17179 }
17180 _ACEOF
17181 if ac_fn_c_try_run "$LINENO"; then :
17182 gl_cv_func_frexp_works=yes
17183 else
17184 gl_cv_func_frexp_works=no
17185 fi
17186 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17187 conftest.$ac_objext conftest.beam conftest.$ac_ext
17188 fi
17189
17190
17191 fi
17192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_works" >&5
17193 $as_echo "$gl_cv_func_frexp_works" >&6; }
17194
17195 LIBS="$save_LIBS"
17196 case "$gl_cv_func_frexp_works" in
17197 *yes) gl_func_frexp=yes ;;
17198 *) gl_func_frexp=no; REPLACE_FREXP=1; FREXP_LIBM= ;;
17199 esac
17200 else
17201 gl_func_frexp=no
17202 fi
17203 if test $gl_func_frexp = yes; then
17204
17205 $as_echo "#define HAVE_FREXP 1" >>confdefs.h
17206
17207 fi
17208
17209
17210 if test $gl_func_frexp != yes; then
17211
17212
17213
17214
17215
17216
17217
17218
17219 gl_LIBOBJS="$gl_LIBOBJS frexp.$ac_objext"
17220
17221 fi
17222
17223
17224
17225
17226
17227 GNULIB_FREXP=1
17228
17229
17230
17231
17232
17233 $as_echo "#define GNULIB_TEST_FREXP 1" >>confdefs.h
17234
17235
17236
17237
17238
17239
17240
17241
17242
17243 ac_fn_c_check_decl "$LINENO" "frexpl" "ac_cv_have_decl_frexpl" "#include <math.h>
17244 "
17245 if test "x$ac_cv_have_decl_frexpl" = xyes; then :
17246
17247 else
17248 HAVE_DECL_FREXPL=0
17249 fi
17250
17251
17252 FREXPL_LIBM=
17253 if test $HAVE_DECL_FREXPL = 1; then
17254
17255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used without linking with libm" >&5
17256 $as_echo_n "checking whether frexpl() can be used without linking with libm... " >&6; }
17257 if ${gl_cv_func_frexpl_no_libm+:} false; then :
17258 $as_echo_n "(cached) " >&6
17259 else
17260
17261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17262 /* end confdefs.h. */
17263 #include <math.h>
17264 long double x;
17265 int
17266 main ()
17267 {
17268 int e; return frexpl (x, &e) > 0;
17269 ;
17270 return 0;
17271 }
17272 _ACEOF
17273 if ac_fn_c_try_link "$LINENO"; then :
17274 gl_cv_func_frexpl_no_libm=yes
17275 else
17276 gl_cv_func_frexpl_no_libm=no
17277 fi
17278 rm -f core conftest.err conftest.$ac_objext \
17279 conftest$ac_exeext conftest.$ac_ext
17280
17281 fi
17282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_no_libm" >&5
17283 $as_echo "$gl_cv_func_frexpl_no_libm" >&6; }
17284
17285 if test $gl_cv_func_frexpl_no_libm = no; then
17286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used with libm" >&5
17287 $as_echo_n "checking whether frexpl() can be used with libm... " >&6; }
17288 if ${gl_cv_func_frexpl_in_libm+:} false; then :
17289 $as_echo_n "(cached) " >&6
17290 else
17291
17292 save_LIBS="$LIBS"
17293 LIBS="$LIBS -lm"
17294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17295 /* end confdefs.h. */
17296 #include <math.h>
17297 long double x;
17298 int
17299 main ()
17300 {
17301 int e; return frexpl (x, &e) > 0;
17302 ;
17303 return 0;
17304 }
17305 _ACEOF
17306 if ac_fn_c_try_link "$LINENO"; then :
17307 gl_cv_func_frexpl_in_libm=yes
17308 else
17309 gl_cv_func_frexpl_in_libm=no
17310 fi
17311 rm -f core conftest.err conftest.$ac_objext \
17312 conftest$ac_exeext conftest.$ac_ext
17313 LIBS="$save_LIBS"
17314
17315 fi
17316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_in_libm" >&5
17317 $as_echo "$gl_cv_func_frexpl_in_libm" >&6; }
17318 if test $gl_cv_func_frexpl_in_libm = yes; then
17319 FREXPL_LIBM=-lm
17320 fi
17321 fi
17322 if test $gl_cv_func_frexpl_no_libm = yes \
17323 || test $gl_cv_func_frexpl_in_libm = yes; then
17324 save_LIBS="$LIBS"
17325 LIBS="$LIBS $FREXPL_LIBM"
17326
17327
17328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl works" >&5
17329 $as_echo_n "checking whether frexpl works... " >&6; }
17330 if ${gl_cv_func_frexpl_works+:} false; then :
17331 $as_echo_n "(cached) " >&6
17332 else
17333
17334 if test "$cross_compiling" = yes; then :
17335
17336 case "$host_os" in
17337 aix | aix[3-6]* | beos* | darwin* | irix* | mingw* | pw*)
17338 gl_cv_func_frexpl_works="guessing no";;
17339 *) gl_cv_func_frexpl_works="guessing yes";;
17340 esac
17341
17342 else
17343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17344 /* end confdefs.h. */
17345
17346 #include <float.h>
17347 #include <math.h>
17348 /* Override the values of <float.h>, like done in float.in.h. */
17349 #if defined __i386__ && (defined __BEOS__ || defined __OpenBSD__)
17350 # undef LDBL_MIN_EXP
17351 # define LDBL_MIN_EXP (-16381)
17352 #endif
17353 #if defined __i386__ && defined __FreeBSD__
17354 # undef LDBL_MIN_EXP
17355 # define LDBL_MIN_EXP (-16381)
17356 #endif
17357 #if (defined _ARCH_PPC || defined _POWER) && defined _AIX && (LDBL_MANT_DIG == 106) && defined __GNUC__
17358 # undef LDBL_MIN_EXP
17359 # define LDBL_MIN_EXP DBL_MIN_EXP
17360 #endif
17361 #if defined __sgi && (LDBL_MANT_DIG >= 106)
17362 # if defined __GNUC__
17363 # undef LDBL_MIN_EXP
17364 # define LDBL_MIN_EXP DBL_MIN_EXP
17365 # endif
17366 #endif
17367 extern
17368 #ifdef __cplusplus
17369 "C"
17370 #endif
17371 long double frexpl (long double, int *);
17372 int main()
17373 {
17374 int result = 0;
17375 volatile long double x;
17376 /* Test on finite numbers that fails on AIX 5.1. */
17377 x = 16.0L;
17378 {
17379 int exp = -9999;
17380 frexpl (x, &exp);
17381 if (exp != 5)
17382 result |= 1;
17383 }
17384 /* Test on finite numbers that fails on Mac OS X 10.4, because its frexpl
17385 function returns an invalid (incorrectly normalized) value: it returns
17386 y = { 0x3fe028f5, 0xc28f5c28, 0x3c9eb851, 0xeb851eb8 }
17387 but the correct result is
17388 0.505L = { 0x3fe028f5, 0xc28f5c29, 0xbc547ae1, 0x47ae1480 } */
17389 x = 1.01L;
17390 {
17391 int exp = -9999;
17392 long double y = frexpl (x, &exp);
17393 if (!(exp == 1 && y == 0.505L))
17394 result |= 2;
17395 }
17396 /* Test on large finite numbers. This fails on BeOS at i = 16322, while
17397 LDBL_MAX_EXP = 16384.
17398 In the loop end test, we test x against Infinity, rather than comparing
17399 i with LDBL_MAX_EXP, because BeOS <float.h> has a wrong LDBL_MAX_EXP. */
17400 {
17401 int i;
17402 for (i = 1, x = 1.0L; x != x + x; i++, x *= 2.0L)
17403 {
17404 int exp = -9999;
17405 frexpl (x, &exp);
17406 if (exp != i)
17407 {
17408 result |= 4;
17409 break;
17410 }
17411 }
17412 }
17413 /* Test on denormalized numbers. */
17414 {
17415 int i;
17416 for (i = 1, x = 1.0L; i >= LDBL_MIN_EXP; i--, x *= 0.5L)
17417 ;
17418 if (x > 0.0L)
17419 {
17420 int exp;
17421 long double y = frexpl (x, &exp);
17422 /* On machines with IEEE854 arithmetic: x = 1.68105e-4932,
17423 exp = -16382, y = 0.5. On Mac OS X 10.5: exp = -16384, y = 0.5. */
17424 if (exp != LDBL_MIN_EXP - 1)
17425 result |= 8;
17426 }
17427 }
17428 /* Test on infinite numbers. */
17429 x = 1.0L / 0.0L;
17430 {
17431 int exp;
17432 long double y = frexpl (x, &exp);
17433 if (y != x)
17434 result |= 16;
17435 }
17436 return result;
17437 }
17438 _ACEOF
17439 if ac_fn_c_try_run "$LINENO"; then :
17440 gl_cv_func_frexpl_works=yes
17441 else
17442 gl_cv_func_frexpl_works=no
17443 fi
17444 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17445 conftest.$ac_objext conftest.beam conftest.$ac_ext
17446 fi
17447
17448
17449 fi
17450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_works" >&5
17451 $as_echo "$gl_cv_func_frexpl_works" >&6; }
17452
17453 LIBS="$save_LIBS"
17454 case "$gl_cv_func_frexpl_works" in
17455 *yes) gl_func_frexpl=yes ;;
17456 *) gl_func_frexpl=no; REPLACE_FREXPL=1 ;;
17457 esac
17458 else
17459 gl_func_frexpl=no
17460 fi
17461 if test $gl_func_frexpl = yes; then
17462
17463 $as_echo "#define HAVE_FREXPL 1" >>confdefs.h
17464
17465 fi
17466 fi
17467 if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl = no; then
17468 if test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1; then
17469
17470 FREXPL_LIBM="$FREXP_LIBM"
17471 else
17472 FREXPL_LIBM=
17473 fi
17474 fi
17475
17476
17477 if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl = no; then
17478
17479
17480
17481
17482
17483
17484
17485
17486 gl_LIBOBJS="$gl_LIBOBJS frexpl.$ac_objext"
17487
17488 fi
17489
17490
17491
17492
17493
17494 GNULIB_FREXPL=1
17495
17496
17497
17498
17499
17500 $as_echo "#define GNULIB_TEST_FREXPL 1" >>confdefs.h
17501
17502
17503
17504
17505
17506
17507
17508 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
17509 REPLACE_FSTAT=1
17510 fi
17511
17512
17513 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
17514 REPLACE_FSTAT=1
17515 fi
17516
17517
17518
17519
17520
17521 :
17522
17523
17524
17525
17526
17527 if test $ac_cv_func_fchdir = no; then
17528 HAVE_FCHDIR=0
17529 fi
17530
17531 if test $HAVE_FCHDIR = 0; then
17532 case "$gl_cv_func_open_directory_works" in
17533 *yes) ;;
17534 *)
17535 REPLACE_FSTAT=1
17536 ;;
17537 esac
17538 fi
17539
17540
17541 if test $REPLACE_FSTAT = 1; then
17542
17543
17544
17545
17546
17547
17548
17549
17550 gl_LIBOBJS="$gl_LIBOBJS fstat.$ac_objext"
17551
17552 :
17553 fi
17554
17555
17556
17557
17558
17559 GNULIB_FSTAT=1
17560
17561
17562
17563
17564
17565 $as_echo "#define GNULIB_TEST_FSTAT 1" >>confdefs.h
17566
17567
17568
17569
17570
17571
17572
17573
17574 :
17575
17576
17577
17578
17579
17580
17581 if test $ac_cv_func_fstatat = no; then
17582 HAVE_FSTATAT=0
17583 else
17584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fstatat (..., 0) works" >&5
17585 $as_echo_n "checking whether fstatat (..., 0) works... " >&6; }
17586 if ${gl_cv_func_fstatat_zero_flag+:} false; then :
17587 $as_echo_n "(cached) " >&6
17588 else
17589 if test "$cross_compiling" = yes; then :
17590 case "$host_os" in
17591 aix*) gl_cv_func_fstatat_zero_flag="guessing no";;
17592 *) gl_cv_func_fstatat_zero_flag="guessing yes";;
17593 esac
17594
17595 else
17596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17597 /* end confdefs.h. */
17598
17599 #include <fcntl.h>
17600 #include <sys/stat.h>
17601 int
17602 main (void)
17603 {
17604 struct stat a;
17605 return fstatat (AT_FDCWD, ".", &a, 0) != 0;
17606 }
17607
17608 _ACEOF
17609 if ac_fn_c_try_run "$LINENO"; then :
17610 gl_cv_func_fstatat_zero_flag=yes
17611 else
17612 gl_cv_func_fstatat_zero_flag=no
17613 fi
17614 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17615 conftest.$ac_objext conftest.beam conftest.$ac_ext
17616 fi
17617
17618
17619 fi
17620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fstatat_zero_flag" >&5
17621 $as_echo "$gl_cv_func_fstatat_zero_flag" >&6; }
17622
17623 case $gl_cv_func_fstatat_zero_flag+$gl_cv_func_lstat_dereferences_slashed_symlink in
17624 *yes+*yes) ;;
17625 *) REPLACE_FSTATAT=1
17626 case $gl_cv_func_fstatat_zero_flag in
17627 *yes)
17628
17629 $as_echo "#define HAVE_WORKING_FSTATAT_ZERO_FLAG 1" >>confdefs.h
17630
17631 ;;
17632 esac
17633 ;;
17634 esac
17635 fi
17636
17637 if test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1; then
17638
17639
17640
17641
17642
17643
17644
17645
17646 gl_LIBOBJS="$gl_LIBOBJS fstatat.$ac_objext"
17647
17648 fi
17649
17650
17651
17652
17653
17654 GNULIB_FSTATAT=1
17655
17656
17657
17658
17659
17660 $as_echo "#define GNULIB_TEST_FSTATAT 1" >>confdefs.h
17661
17662
17663
17664
17665
17666
17667
17668
17669 gl_abort_bug=no
17670 case "$host_os" in
17671 mingw*)
17672 gl_cv_func_getcwd_path_max=yes
17673 ;;
17674 *)
17675
17676
17677 :
17678
17679
17680
17681
17682
17683
17684
17685 :
17686
17687
17688
17689
17690
17691
17692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd handles long file names properly" >&5
17693 $as_echo_n "checking whether getcwd handles long file names properly... " >&6; }
17694 if ${gl_cv_func_getcwd_path_max+:} false; then :
17695 $as_echo_n "(cached) " >&6
17696 else
17697 # Arrange for deletion of the temporary directory this test creates.
17698 ac_clean_files="$ac_clean_files confdir3"
17699 if test "$cross_compiling" = yes; then :
17700 # Cross-compilation guesses:
17701 case "$host_os" in
17702 aix*) # On AIX, it has the AIX bug.
17703 gl_cv_func_getcwd_path_max='no, it has the AIX bug' ;;
17704 gnu*) # On Hurd, it is 'yes'.
17705 gl_cv_func_getcwd_path_max=yes ;;
17706 linux* | kfreebsd*)
17707 # On older Linux+glibc it's 'no, but it is partly working',
17708 # on newer Linux+glibc it's 'yes'.
17709 # On Linux+musl libc, it's 'no, but it is partly working'.
17710 # On kFreeBSD+glibc, it's 'no, but it is partly working'.
17711 gl_cv_func_getcwd_path_max='no, but it is partly working' ;;
17712 *) # If we don't know, assume the worst.
17713 gl_cv_func_getcwd_path_max=no ;;
17714 esac
17715
17716 else
17717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17718 /* end confdefs.h. */
17719
17720 #include <errno.h>
17721 #include <stdlib.h>
17722 #if HAVE_UNISTD_H
17723 # include <unistd.h>
17724 #else
17725 # include <direct.h>
17726 #endif
17727 #include <string.h>
17728 #include <limits.h>
17729 #include <sys/stat.h>
17730 #include <sys/types.h>
17731 #include <fcntl.h>
17732
17733
17734 /* Arrange to define PATH_MAX, like "pathmax.h" does. */
17735 #if HAVE_UNISTD_H
17736 # include <unistd.h>
17737 #endif
17738 #include <limits.h>
17739 #if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN
17740 # include <sys/param.h>
17741 #endif
17742 #if !defined PATH_MAX && defined MAXPATHLEN
17743 # define PATH_MAX MAXPATHLEN
17744 #endif
17745 #ifdef __hpux
17746 # undef PATH_MAX
17747 # define PATH_MAX 1024
17748 #endif
17749 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
17750 # undef PATH_MAX
17751 # define PATH_MAX 260
17752 #endif
17753
17754
17755 #ifndef AT_FDCWD
17756 # define AT_FDCWD 0
17757 #endif
17758 #ifdef ENAMETOOLONG
17759 # define is_ENAMETOOLONG(x) ((x) == ENAMETOOLONG)
17760 #else
17761 # define is_ENAMETOOLONG(x) 0
17762 #endif
17763
17764 /* Use the getcwd function, not any macro. */
17765 #undef getcwd
17766
17767 /* Don't get link errors because mkdir is redefined to rpl_mkdir. */
17768 #undef mkdir
17769
17770 #ifndef S_IRWXU
17771 # define S_IRWXU 0700
17772 #endif
17773
17774 /* The length of this name must be 8. */
17775 #define DIR_NAME "confdir3"
17776 #define DIR_NAME_LEN 8
17777 #define DIR_NAME_SIZE (DIR_NAME_LEN + 1)
17778
17779 /* The length of "../". */
17780 #define DOTDOTSLASH_LEN 3
17781
17782 /* Leftover bytes in the buffer, to work around library or OS bugs. */
17783 #define BUF_SLOP 20
17784
17785 int
17786 main ()
17787 {
17788 #ifndef PATH_MAX
17789 /* The Hurd doesn't define this, so getcwd can't exhibit the bug --
17790 at least not on a local file system. And if we were to start worrying
17791 about remote file systems, we'd have to enable the wrapper function
17792 all of the time, just to be safe. That's not worth the cost. */
17793 exit (0);
17794 #elif ((INT_MAX / (DIR_NAME_SIZE / DOTDOTSLASH_LEN + 1) \
17795 - DIR_NAME_SIZE - BUF_SLOP) \
17796 <= PATH_MAX)
17797 /* FIXME: Assuming there's a system for which this is true,
17798 this should be done in a compile test. */
17799 exit (0);
17800 #else
17801 char buf[PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN + 1)
17802 + DIR_NAME_SIZE + BUF_SLOP];
17803 char *cwd = getcwd (buf, PATH_MAX);
17804 size_t initial_cwd_len;
17805 size_t cwd_len;
17806 int fail = 0;
17807 size_t n_chdirs = 0;
17808
17809 if (cwd == NULL)
17810 exit (10);
17811
17812 cwd_len = initial_cwd_len = strlen (cwd);
17813
17814 while (1)
17815 {
17816 size_t dotdot_max = PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN);
17817 char *c = NULL;
17818
17819 cwd_len += DIR_NAME_SIZE;
17820 /* If mkdir or chdir fails, it could be that this system cannot create
17821 any file with an absolute name longer than PATH_MAX, such as cygwin.
17822 If so, leave fail as 0, because the current working directory can't
17823 be too long for getcwd if it can't even be created. For other
17824 errors, be pessimistic and consider that as a failure, too. */
17825 if (mkdir (DIR_NAME, S_IRWXU) < 0 || chdir (DIR_NAME) < 0)
17826 {
17827 if (! (errno == ERANGE || is_ENAMETOOLONG (errno)))
17828 fail = 20;
17829 break;
17830 }
17831
17832 if (PATH_MAX <= cwd_len && cwd_len < PATH_MAX + DIR_NAME_SIZE)
17833 {
17834 struct stat sb;
17835
17836 c = getcwd (buf, PATH_MAX);
17837 if (!c && errno == ENOENT)
17838 {
17839 fail = 11;
17840 break;
17841 }
17842 if (c)
17843 {
17844 fail = 31;
17845 break;
17846 }
17847 if (! (errno == ERANGE || is_ENAMETOOLONG (errno)))
17848 {
17849 fail = 21;
17850 break;
17851 }
17852
17853 /* Our replacement needs to be able to stat() long ../../paths,
17854 so generate a path larger than PATH_MAX to check,
17855 avoiding the replacement if we can't stat(). */
17856 c = getcwd (buf, cwd_len + 1);
17857 if (c && !AT_FDCWD && stat (c, &sb) != 0 && is_ENAMETOOLONG (errno))
17858 {
17859 fail = 32;
17860 break;
17861 }
17862 }
17863
17864 if (dotdot_max <= cwd_len - initial_cwd_len)
17865 {
17866 if (dotdot_max + DIR_NAME_SIZE < cwd_len - initial_cwd_len)
17867 break;
17868 c = getcwd (buf, cwd_len + 1);
17869 if (!c)
17870 {
17871 if (! (errno == ERANGE || errno == ENOENT
17872 || is_ENAMETOOLONG (errno)))
17873 {
17874 fail = 22;
17875 break;
17876 }
17877 if (AT_FDCWD || errno == ERANGE || errno == ENOENT)
17878 {
17879 fail = 12;
17880 break;
17881 }
17882 }
17883 }
17884
17885 if (c && strlen (c) != cwd_len)
17886 {
17887 fail = 23;
17888 break;
17889 }
17890 ++n_chdirs;
17891 }
17892
17893 /* Leaving behind such a deep directory is not polite.
17894 So clean up here, right away, even though the driving
17895 shell script would also clean up. */
17896 {
17897 size_t i;
17898
17899 /* Try rmdir first, in case the chdir failed. */
17900 rmdir (DIR_NAME);
17901 for (i = 0; i <= n_chdirs; i++)
17902 {
17903 if (chdir ("..") < 0)
17904 break;
17905 if (rmdir (DIR_NAME) != 0)
17906 break;
17907 }
17908 }
17909
17910 exit (fail);
17911 #endif
17912 }
17913
17914 _ACEOF
17915 if ac_fn_c_try_run "$LINENO"; then :
17916 gl_cv_func_getcwd_path_max=yes
17917 else
17918 case $? in
17919 10|11|12) gl_cv_func_getcwd_path_max='no, but it is partly working';;
17920 31) gl_cv_func_getcwd_path_max='no, it has the AIX bug';;
17921 32) gl_cv_func_getcwd_path_max='yes, but with shorter paths';;
17922 *) gl_cv_func_getcwd_path_max=no;;
17923 esac
17924 fi
17925 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17926 conftest.$ac_objext conftest.beam conftest.$ac_ext
17927 fi
17928
17929
17930 fi
17931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_path_max" >&5
17932 $as_echo "$gl_cv_func_getcwd_path_max" >&6; }
17933
17934 case "$gl_cv_func_getcwd_null" in
17935 *yes)
17936
17937
17938 :
17939
17940
17941
17942
17943
17944
17945 :
17946
17947
17948
17949
17950
17951
17952 for ac_func in getpagesize
17953 do :
17954 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
17955 if test "x$ac_cv_func_getpagesize" = xyes; then :
17956 cat >>confdefs.h <<_ACEOF
17957 #define HAVE_GETPAGESIZE 1
17958 _ACEOF
17959
17960 fi
17961 done
17962
17963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd aborts when 4k < cwd_length < 16k" >&5
17964 $as_echo_n "checking whether getcwd aborts when 4k < cwd_length < 16k... " >&6; }
17965 if ${gl_cv_func_getcwd_abort_bug+:} false; then :
17966 $as_echo_n "(cached) " >&6
17967 else
17968 # Remove any remnants of a previous test.
17969 rm -rf confdir-14B---
17970 # Arrange for deletion of the temporary directory this test creates.
17971 ac_clean_files="$ac_clean_files confdir-14B---"
17972 if test "$cross_compiling" = yes; then :
17973 gl_cv_func_getcwd_abort_bug=yes
17974 else
17975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17976 /* end confdefs.h. */
17977
17978 #include <errno.h>
17979 #include <stdlib.h>
17980 #if HAVE_UNISTD_H
17981 # include <unistd.h>
17982 #else /* on Windows with MSVC */
17983 # include <direct.h>
17984 #endif
17985 #include <string.h>
17986 #include <sys/stat.h>
17987
17988
17989 /* Arrange to define PATH_MAX, like "pathmax.h" does. */
17990 #if HAVE_UNISTD_H
17991 # include <unistd.h>
17992 #endif
17993 #include <limits.h>
17994 #if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN
17995 # include <sys/param.h>
17996 #endif
17997 #if !defined PATH_MAX && defined MAXPATHLEN
17998 # define PATH_MAX MAXPATHLEN
17999 #endif
18000 #ifdef __hpux
18001 # undef PATH_MAX
18002 # define PATH_MAX 1024
18003 #endif
18004 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
18005 # undef PATH_MAX
18006 # define PATH_MAX 260
18007 #endif
18008
18009
18010 /* Don't get link errors because mkdir is redefined to rpl_mkdir. */
18011 #undef mkdir
18012
18013 #ifndef S_IRWXU
18014 # define S_IRWXU 0700
18015 #endif
18016
18017 /* FIXME: skip the run-test altogether on systems without getpagesize. */
18018 #if ! HAVE_GETPAGESIZE
18019 # define getpagesize() 0
18020 #endif
18021
18022 /* This size is chosen to be larger than PATH_MAX (4k), yet smaller than
18023 the 16kB pagesize on ia64 linux. Those conditions make the code below
18024 trigger a bug in glibc's getcwd implementation before 2.4.90-10. */
18025 #define TARGET_LEN (5 * 1024)
18026
18027 int
18028 main ()
18029 {
18030 char *cwd;
18031 size_t initial_cwd_len;
18032 int fail = 0;
18033
18034 /* The bug is triggered when PATH_MAX < getpagesize (), so skip
18035 this relatively expensive and invasive test if that's not true. */
18036 #ifdef PATH_MAX
18037 int bug_possible = PATH_MAX < getpagesize ();
18038 #else
18039 int bug_possible = 0;
18040 #endif
18041 if (! bug_possible)
18042 return 0;
18043
18044 cwd = getcwd (NULL, 0);
18045 if (cwd == NULL)
18046 return 2;
18047
18048 initial_cwd_len = strlen (cwd);
18049 free (cwd);
18050
18051 if (1)
18052 {
18053 static char const dir_name[] = "confdir-14B---";
18054 size_t desired_depth = ((TARGET_LEN - 1 - initial_cwd_len)
18055 / sizeof dir_name);
18056 size_t d;
18057 for (d = 0; d < desired_depth; d++)
18058 {
18059 if (mkdir (dir_name, S_IRWXU) < 0 || chdir (dir_name) < 0)
18060 {
18061 if (! (errno == ERANGE || errno == ENAMETOOLONG
18062 || errno == ENOENT))
18063 fail = 3; /* Unable to construct deep hierarchy. */
18064 break;
18065 }
18066 }
18067
18068 /* If libc has the bug in question, this invocation of getcwd
18069 results in a failed assertion. */
18070 cwd = getcwd (NULL, 0);
18071 if (cwd == NULL)
18072 fail = 4; /* getcwd didn't assert, but it failed for a long name
18073 where the answer could have been learned. */
18074 free (cwd);
18075
18076 /* Call rmdir first, in case the above chdir failed. */
18077 rmdir (dir_name);
18078 while (0 < d--)
18079 {
18080 if (chdir ("..") < 0)
18081 {
18082 fail = 5;
18083 break;
18084 }
18085 rmdir (dir_name);
18086 }
18087 }
18088
18089 return fail;
18090 }
18091
18092 _ACEOF
18093 if ac_fn_c_try_run "$LINENO"; then :
18094 gl_cv_func_getcwd_abort_bug=no
18095 else
18096 ret=$?
18097 if test $ret -ge 128 || test $ret = 4; then
18098 gl_cv_func_getcwd_abort_bug=yes
18099 else
18100 gl_cv_func_getcwd_abort_bug=no
18101 fi
18102 fi
18103 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18104 conftest.$ac_objext conftest.beam conftest.$ac_ext
18105 fi
18106
18107
18108 fi
18109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_abort_bug" >&5
18110 $as_echo "$gl_cv_func_getcwd_abort_bug" >&6; }
18111 if test $gl_cv_func_getcwd_abort_bug = yes; then :
18112 gl_abort_bug=yes
18113 fi
18114
18115 ;;
18116 esac
18117 ;;
18118 esac
18119 case "$gl_cv_func_getcwd_path_max" in
18120 "no"|"no, it has the AIX bug") ;;
18121 *)
18122
18123 $as_echo "#define HAVE_MINIMALLY_WORKING_GETCWD 1" >>confdefs.h
18124
18125 ;;
18126 esac
18127 case "$gl_cv_func_getcwd_path_max" in
18128 "no, but it is partly working")
18129
18130 $as_echo "#define HAVE_PARTLY_WORKING_GETCWD 1" >>confdefs.h
18131
18132 ;;
18133 "yes, but with shorter paths")
18134
18135 $as_echo "#define HAVE_GETCWD_SHORTER 1" >>confdefs.h
18136
18137 ;;
18138 esac
18139
18140 if { case "$gl_cv_func_getcwd_null" in *yes) false;; *) true;; esac; } \
18141 || test $gl_cv_func_getcwd_posix_signature != yes \
18142 || { case "$gl_cv_func_getcwd_path_max" in *yes*) false;; *) true;; esac; } \
18143 || test $gl_abort_bug = yes; then
18144 REPLACE_GETCWD=1
18145 fi
18146
18147 if test $REPLACE_GETCWD = 1; then
18148
18149
18150
18151
18152
18153
18154
18155
18156 gl_LIBOBJS="$gl_LIBOBJS getcwd.$ac_objext"
18157
18158
18159
18160
18161 :
18162
18163 fi
18164
18165
18166 cat >>confdefs.h <<_ACEOF
18167 #define GNULIB_GETCWD 1
18168 _ACEOF
18169
18170
18171
18172
18173
18174
18175
18176 GNULIB_GETCWD=1
18177
18178
18179
18180
18181
18182 $as_echo "#define GNULIB_TEST_GETCWD 1" >>confdefs.h
18183
18184
18185
18186
18187
18188
18189
18190
18191 case $gl_cv_func_getcwd_null,$gl_cv_func_getcwd_posix_signature in
18192 *yes,yes) ;;
18193 *)
18194 REPLACE_GETCWD=1
18195 ;;
18196 esac
18197
18198 if test $REPLACE_GETCWD = 1; then
18199
18200
18201
18202
18203
18204
18205
18206
18207 gl_LIBOBJS="$gl_LIBOBJS getcwd-lgpl.$ac_objext"
18208
18209 fi
18210
18211
18212
18213
18214
18215 GNULIB_GETCWD=1
18216
18217
18218
18219
18220
18221 $as_echo "#define GNULIB_TEST_GETCWD 1" >>confdefs.h
18222
18223
18224
18225
18226
18227
18228
18229 :
18230
18231
18232
18233
18234
18235
18236 :
18237
18238
18239
18240
18241
18242 if test $ac_cv_func_getdtablesize = yes &&
18243 test $ac_cv_have_decl_getdtablesize = yes; then
18244 # Cygwin 1.7.25 automatically increases the RLIMIT_NOFILE soft limit
18245 # up to an unchangeable hard limit; all other platforms correctly
18246 # require setrlimit before getdtablesize() can report a larger value.
18247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getdtablesize works" >&5
18248 $as_echo_n "checking whether getdtablesize works... " >&6; }
18249 if ${gl_cv_func_getdtablesize_works+:} false; then :
18250 $as_echo_n "(cached) " >&6
18251 else
18252 if test "$cross_compiling" = yes; then :
18253 case "$host_os" in
18254 cygwin*) # on cygwin 1.5.25, getdtablesize() automatically grows
18255 gl_cv_func_getdtablesize_works="guessing no" ;;
18256 *) gl_cv_func_getdtablesize_works="guessing yes" ;;
18257 esac
18258 else
18259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18260 /* end confdefs.h. */
18261
18262 #include <unistd.h>
18263 int
18264 main ()
18265 {
18266 int size = getdtablesize();
18267 if (dup2 (0, getdtablesize()) != -1)
18268 return 1;
18269 if (size != getdtablesize())
18270 return 2;
18271
18272 ;
18273 return 0;
18274 }
18275 _ACEOF
18276 if ac_fn_c_try_run "$LINENO"; then :
18277 gl_cv_func_getdtablesize_works=yes
18278 else
18279 gl_cv_func_getdtablesize_works=no
18280 fi
18281 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18282 conftest.$ac_objext conftest.beam conftest.$ac_ext
18283 fi
18284
18285
18286 fi
18287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getdtablesize_works" >&5
18288 $as_echo "$gl_cv_func_getdtablesize_works" >&6; }
18289 case "$gl_cv_func_getdtablesize_works" in
18290 *yes) ;;
18291 *) REPLACE_GETDTABLESIZE=1 ;;
18292 esac
18293 else
18294 HAVE_GETDTABLESIZE=0
18295 fi
18296
18297 if test $HAVE_GETDTABLESIZE = 0 || test $REPLACE_GETDTABLESIZE = 1; then
18298
18299
18300
18301
18302
18303
18304
18305
18306 gl_LIBOBJS="$gl_LIBOBJS getdtablesize.$ac_objext"
18307
18308 :
18309 fi
18310
18311
18312
18313
18314
18315 GNULIB_GETDTABLESIZE=1
18316
18317
18318
18319
18320
18321 $as_echo "#define GNULIB_TEST_GETDTABLESIZE 1" >>confdefs.h
18322
18323
18324
18325
18326
18327
18328
18329
18330
18331 :
18332
18333
18334
18335
18336
18337 if test $ac_cv_have_decl_getlogin_r = no; then
18338 HAVE_DECL_GETLOGIN_R=0
18339 fi
18340
18341
18342 :
18343
18344
18345
18346
18347
18348 if test $ac_cv_func_getlogin_r = no; then
18349 HAVE_GETLOGIN_R=0
18350 else
18351 HAVE_GETLOGIN_R=1
18352
18353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getlogin_r works with small buffers" >&5
18354 $as_echo_n "checking whether getlogin_r works with small buffers... " >&6; }
18355 if ${gl_cv_func_getlogin_r_works+:} false; then :
18356 $as_echo_n "(cached) " >&6
18357 else
18358
18359 case "$host_os" in
18360 # Guess no on OSF/1.
18361 osf*) gl_cv_func_getlogin_r_works="guessing no" ;;
18362 # Guess yes otherwise.
18363 *) gl_cv_func_getlogin_r_works="guessing yes" ;;
18364 esac
18365 if test "$cross_compiling" = yes; then :
18366 :
18367 else
18368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18369 /* end confdefs.h. */
18370
18371 #include <stddef.h>
18372 #include <unistd.h>
18373 #if !HAVE_DECL_GETLOGIN_R
18374 extern
18375 # ifdef __cplusplus
18376 "C"
18377 # endif
18378 int getlogin_r (char *, size_t);
18379 #endif
18380 int
18381 main (void)
18382 {
18383 int result = 0;
18384 char buf[100];
18385
18386 if (getlogin_r (buf, 0) == 0)
18387 result |= 16;
18388 if (getlogin_r (buf, 1) == 0)
18389 result |= 17;
18390 return result;
18391 }
18392 _ACEOF
18393 if ac_fn_c_try_run "$LINENO"; then :
18394 gl_cv_func_getlogin_r_works=yes
18395 else
18396 case $? in
18397 16 | 17) gl_cv_func_getlogin_r_works=no ;;
18398 esac
18399
18400 fi
18401 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18402 conftest.$ac_objext conftest.beam conftest.$ac_ext
18403 fi
18404
18405
18406 fi
18407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getlogin_r_works" >&5
18408 $as_echo "$gl_cv_func_getlogin_r_works" >&6; }
18409 case "$gl_cv_func_getlogin_r_works" in
18410 *yes) ;;
18411 *) REPLACE_GETLOGIN_R=1 ;;
18412 esac
18413 fi
18414
18415 if test $HAVE_GETLOGIN_R = 0 || test $REPLACE_GETLOGIN_R = 1; then
18416
18417
18418
18419
18420
18421
18422
18423
18424 gl_LIBOBJS="$gl_LIBOBJS getlogin_r.$ac_objext"
18425
18426
18427
18428 :
18429
18430
18431
18432
18433
18434
18435 fi
18436
18437
18438
18439
18440
18441 GNULIB_GETLOGIN_R=1
18442
18443
18444
18445
18446
18447 $as_echo "#define GNULIB_TEST_GETLOGIN_R 1" >>confdefs.h
18448
18449
18450
18451
18452
18453 :
18454
18455
18456
18457
18458
18459
18460
18461
18462
18463 ac_found=0
18464 ac_fn_c_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
18465 "
18466 if test "x$ac_cv_have_decl_program_invocation_name" = xyes; then :
18467 ac_have_decl=1
18468 else
18469 ac_have_decl=0
18470 fi
18471
18472 cat >>confdefs.h <<_ACEOF
18473 #define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl
18474 _ACEOF
18475 if test $ac_have_decl = 1; then :
18476 ac_found=1
18477 fi
18478
18479 ac_fn_c_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
18480 "
18481 if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes; then :
18482 ac_have_decl=1
18483 else
18484 ac_have_decl=0
18485 fi
18486
18487 cat >>confdefs.h <<_ACEOF
18488 #define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl
18489 _ACEOF
18490 if test $ac_have_decl = 1; then :
18491 ac_found=1
18492 fi
18493
18494 ac_fn_c_check_decl "$LINENO" "__argv" "ac_cv_have_decl___argv" "#include <stdlib.h>
18495 "
18496 if test "x$ac_cv_have_decl___argv" = xyes; then :
18497 ac_have_decl=1
18498 else
18499 ac_have_decl=0
18500 fi
18501
18502 cat >>confdefs.h <<_ACEOF
18503 #define HAVE_DECL___ARGV $ac_have_decl
18504 _ACEOF
18505 if test $ac_have_decl = 1; then :
18506 ac_found=1
18507 fi
18508
18509
18510 # Incur the cost of this test only if none of the above worked.
18511 if test $ac_found = 0; then
18512 # On OpenBSD 5.1, using the global __progname variable appears to be
18513 # the only way to implement getprogname.
18514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __progname is defined in default libraries" >&5
18515 $as_echo_n "checking whether __progname is defined in default libraries... " >&6; }
18516 if ${gl_cv_var___progname+:} false; then :
18517 $as_echo_n "(cached) " >&6
18518 else
18519
18520 gl_cv_var___progname=
18521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18522 /* end confdefs.h. */
18523 extern char *__progname;
18524 int
18525 main ()
18526 {
18527 return *__progname;
18528
18529 ;
18530 return 0;
18531 }
18532 _ACEOF
18533 if ac_fn_c_try_link "$LINENO"; then :
18534 gl_cv_var___progname=yes
18535
18536 fi
18537 rm -f core conftest.err conftest.$ac_objext \
18538 conftest$ac_exeext conftest.$ac_ext
18539
18540
18541 fi
18542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_var___progname" >&5
18543 $as_echo "$gl_cv_var___progname" >&6; }
18544 if test "$gl_cv_var___progname" = yes; then
18545
18546 $as_echo "#define HAVE_VAR___PROGNAME 1" >>confdefs.h
18547
18548 fi
18549 fi
18550
18551
18552
18553
18554
18555
18556
18557
18558 :
18559
18560
18561
18562
18563
18564
18565 gl_gettimeofday_timezone=void
18566 if test $ac_cv_func_gettimeofday != yes; then
18567 HAVE_GETTIMEOFDAY=0
18568 else
18569
18570
18571
18572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
18573 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
18574 if ${gl_cv_func_gettimeofday_clobber+:} false; then :
18575 $as_echo_n "(cached) " >&6
18576 else
18577 if test "$cross_compiling" = yes; then :
18578 # When cross-compiling:
18579 case "$host_os" in
18580 # Guess all is fine on glibc systems.
18581 *-gnu*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
18582 # If we don't know, assume the worst.
18583 *) gl_cv_func_gettimeofday_clobber="guessing yes" ;;
18584 esac
18585
18586 else
18587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18588 /* end confdefs.h. */
18589 #include <string.h>
18590 #include <sys/time.h>
18591 #include <time.h>
18592 #include <stdlib.h>
18593
18594 int
18595 main ()
18596 {
18597
18598 time_t t = 0;
18599 struct tm *lt;
18600 struct tm saved_lt;
18601 struct timeval tv;
18602 lt = localtime (&t);
18603 saved_lt = *lt;
18604 gettimeofday (&tv, NULL);
18605 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
18606
18607 ;
18608 return 0;
18609 }
18610 _ACEOF
18611 if ac_fn_c_try_run "$LINENO"; then :
18612 gl_cv_func_gettimeofday_clobber=no
18613 else
18614 gl_cv_func_gettimeofday_clobber=yes
18615 fi
18616 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18617 conftest.$ac_objext conftest.beam conftest.$ac_ext
18618 fi
18619
18620 fi
18621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
18622 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
18623
18624 case "$gl_cv_func_gettimeofday_clobber" in
18625 *yes)
18626 REPLACE_GETTIMEOFDAY=1
18627
18628 REPLACE_GMTIME=1
18629 REPLACE_LOCALTIME=1
18630
18631
18632 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
18633
18634 ;;
18635 esac
18636
18637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
18638 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
18639 if ${gl_cv_func_gettimeofday_posix_signature+:} false; then :
18640 $as_echo_n "(cached) " >&6
18641 else
18642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18643 /* end confdefs.h. */
18644 #include <sys/time.h>
18645 struct timeval c;
18646 int gettimeofday (struct timeval *restrict, void *restrict);
18647
18648 int
18649 main ()
18650 {
18651 /* glibc uses struct timezone * rather than the POSIX void *
18652 if _GNU_SOURCE is defined. However, since the only portable
18653 use of gettimeofday uses NULL as the second parameter, and
18654 since the glibc definition is actually more typesafe, it is
18655 not worth wrapping this to get a compliant signature. */
18656 int (*f) (struct timeval *restrict, void *restrict)
18657 = gettimeofday;
18658 int x = f (&c, 0);
18659 return !(x | c.tv_sec | c.tv_usec);
18660
18661 ;
18662 return 0;
18663 }
18664 _ACEOF
18665 if ac_fn_c_try_compile "$LINENO"; then :
18666 gl_cv_func_gettimeofday_posix_signature=yes
18667 else
18668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18669 /* end confdefs.h. */
18670 #include <sys/time.h>
18671 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
18672
18673 int
18674 main ()
18675 {
18676
18677 ;
18678 return 0;
18679 }
18680 _ACEOF
18681 if ac_fn_c_try_compile "$LINENO"; then :
18682 gl_cv_func_gettimeofday_posix_signature=almost
18683 else
18684 gl_cv_func_gettimeofday_posix_signature=no
18685 fi
18686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18687 fi
18688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18689 fi
18690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
18691 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
18692 if test $gl_cv_func_gettimeofday_posix_signature = almost; then
18693 gl_gettimeofday_timezone='struct timezone'
18694 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
18695 REPLACE_GETTIMEOFDAY=1
18696 fi
18697 if test $REPLACE_STRUCT_TIMEVAL = 1; then
18698 REPLACE_GETTIMEOFDAY=1
18699 fi
18700
18701 fi
18702
18703 cat >>confdefs.h <<_ACEOF
18704 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
18705 _ACEOF
18706
18707
18708 if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
18709
18710
18711
18712
18713
18714
18715
18716
18717 gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
18718
18719
18720 for ac_header in sys/timeb.h
18721 do :
18722 ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
18723 if test "x$ac_cv_header_sys_timeb_h" = xyes; then :
18724 cat >>confdefs.h <<_ACEOF
18725 #define HAVE_SYS_TIMEB_H 1
18726 _ACEOF
18727
18728 fi
18729
18730 done
18731
18732 for ac_func in _ftime
18733 do :
18734 ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime"
18735 if test "x$ac_cv_func__ftime" = xyes; then :
18736 cat >>confdefs.h <<_ACEOF
18737 #define HAVE__FTIME 1
18738 _ACEOF
18739
18740 fi
18741 done
18742
18743
18744 fi
18745
18746
18747
18748
18749
18750 GNULIB_GETTIMEOFDAY=1
18751
18752
18753
18754
18755
18756 $as_echo "#define GNULIB_TEST_GETTIMEOFDAY 1" >>confdefs.h
18757
18758
18759
18760 GLOB_H=
18761 for ac_header in glob.h
18762 do :
18763 ac_fn_c_check_header_mongrel "$LINENO" "glob.h" "ac_cv_header_glob_h" "$ac_includes_default"
18764 if test "x$ac_cv_header_glob_h" = xyes; then :
18765 cat >>confdefs.h <<_ACEOF
18766 #define HAVE_GLOB_H 1
18767 _ACEOF
18768
18769 else
18770 GLOB_H=glob.h
18771 fi
18772
18773 done
18774
18775
18776 if test -z "$GLOB_H"; then
18777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU glob interface version 1" >&5
18778 $as_echo_n "checking for GNU glob interface version 1... " >&6; }
18779 if ${gl_cv_gnu_glob_interface_version_1+:} false; then :
18780 $as_echo_n "(cached) " >&6
18781 else
18782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18783 /* end confdefs.h. */
18784 #include <gnu-versions.h>
18785 char a[_GNU_GLOB_INTERFACE_VERSION == 1 ? 1 : -1];
18786 _ACEOF
18787 if ac_fn_c_try_compile "$LINENO"; then :
18788 gl_cv_gnu_glob_interface_version_1=yes
18789 else
18790 gl_cv_gnu_glob_interface_version_1=no
18791 fi
18792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18793 fi
18794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_gnu_glob_interface_version_1" >&5
18795 $as_echo "$gl_cv_gnu_glob_interface_version_1" >&6; }
18796
18797 if test "$gl_cv_gnu_glob_interface_version_1" = "no"; then
18798 GLOB_H=glob.h
18799 fi
18800 fi
18801
18802 if test -z "$GLOB_H"; then
18803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether glob lists broken symlinks" >&5
18804 $as_echo_n "checking whether glob lists broken symlinks... " >&6; }
18805 if ${gl_cv_glob_lists_symlinks+:} false; then :
18806 $as_echo_n "(cached) " >&6
18807 else
18808 if ln -s conf-doesntexist conf$$-globtest 2>/dev/null; then
18809 gl_cv_glob_lists_symlinks=maybe
18810 else
18811 # If we can't make a symlink, then we cannot test this issue. Be
18812 # pessimistic about this.
18813 gl_cv_glob_lists_symlinks=no
18814 fi
18815
18816 if test $gl_cv_glob_lists_symlinks = maybe; then
18817 if test "$cross_compiling" = yes; then :
18818 gl_cv_glob_lists_symlinks=no
18819 else
18820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18821 /* end confdefs.h. */
18822
18823 #include <stddef.h>
18824 #include <glob.h>
18825 int
18826 main ()
18827 {
18828 glob_t found;
18829 if (glob ("conf*-globtest", 0, NULL, &found) == GLOB_NOMATCH) return 1;
18830 ;
18831 return 0;
18832 }
18833 _ACEOF
18834 if ac_fn_c_try_run "$LINENO"; then :
18835 gl_cv_glob_lists_symlinks=yes
18836 else
18837 gl_cv_glob_lists_symlinks=no
18838 fi
18839 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18840 conftest.$ac_objext conftest.beam conftest.$ac_ext
18841 fi
18842
18843 fi
18844 fi
18845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_glob_lists_symlinks" >&5
18846 $as_echo "$gl_cv_glob_lists_symlinks" >&6; }
18847
18848 if test $gl_cv_glob_lists_symlinks = no; then
18849 GLOB_H=glob.h
18850 fi
18851 fi
18852
18853 rm -f conf$$-globtest
18854
18855
18856 if test -n "$GLOB_H"; then
18857 GL_GENERATE_GLOB_H_TRUE=
18858 GL_GENERATE_GLOB_H_FALSE='#'
18859 else
18860 GL_GENERATE_GLOB_H_TRUE='#'
18861 GL_GENERATE_GLOB_H_FALSE=
18862 fi
18863
18864
18865 if test -n "$GLOB_H"; then
18866
18867
18868
18869
18870
18871
18872
18873
18874 gl_LIBOBJS="$gl_LIBOBJS glob.$ac_objext"
18875
18876
18877
18878 :
18879
18880
18881
18882
18883
18884
18885
18886 if test $ac_cv_header_sys_cdefs_h = yes; then
18887 HAVE_SYS_CDEFS_H=1
18888 else
18889 HAVE_SYS_CDEFS_H=0
18890 fi
18891
18892
18893 :
18894
18895
18896
18897
18898
18899
18900
18901
18902
18903
18904
18905 fi
18906
18907 :
18908
18909
18910
18911
18912
18913
18914
18915
18916 HAVE_INET_NTOP=1
18917 INET_NTOP_LIB=
18918
18919
18920
18921
18922 :
18923
18924
18925
18926
18927
18928 if test $ac_cv_header_sys_socket_h != yes; then
18929 for ac_header in winsock2.h
18930 do :
18931 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
18932 if test "x$ac_cv_header_winsock2_h" = xyes; then :
18933 cat >>confdefs.h <<_ACEOF
18934 #define HAVE_WINSOCK2_H 1
18935 _ACEOF
18936
18937 fi
18938
18939 done
18940
18941 fi
18942 if test "$ac_cv_header_winsock2_h" = yes; then
18943 HAVE_WINSOCK2_H=1
18944 UNISTD_H_HAVE_WINSOCK2_H=1
18945 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
18946 else
18947 HAVE_WINSOCK2_H=0
18948 fi
18949
18950
18951 if test $HAVE_WINSOCK2_H = 1; then
18952 ac_fn_c_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "#include <ws2tcpip.h>
18953 "
18954 if test "x$ac_cv_have_decl_inet_ntop" = xyes; then :
18955 ac_have_decl=1
18956 else
18957 ac_have_decl=0
18958 fi
18959
18960 cat >>confdefs.h <<_ACEOF
18961 #define HAVE_DECL_INET_NTOP $ac_have_decl
18962 _ACEOF
18963
18964 if test $ac_cv_have_decl_inet_ntop = yes; then
18965 REPLACE_INET_NTOP=1
18966 INET_NTOP_LIB="-lws2_32"
18967 else
18968 HAVE_DECL_INET_NTOP=0
18969 HAVE_INET_NTOP=0
18970 fi
18971 else
18972 gl_save_LIBS=$LIBS
18973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
18974 $as_echo_n "checking for library containing inet_ntop... " >&6; }
18975 if ${ac_cv_search_inet_ntop+:} false; then :
18976 $as_echo_n "(cached) " >&6
18977 else
18978 ac_func_search_save_LIBS=$LIBS
18979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18980 /* end confdefs.h. */
18981
18982 /* Override any GCC internal prototype to avoid an error.
18983 Use char because int might match the return type of a GCC
18984 builtin and then its argument prototype would still apply. */
18985 #ifdef __cplusplus
18986 extern "C"
18987 #endif
18988 char inet_ntop ();
18989 int
18990 main ()
18991 {
18992 return inet_ntop ();
18993 ;
18994 return 0;
18995 }
18996 _ACEOF
18997 for ac_lib in '' nsl resolv; do
18998 if test -z "$ac_lib"; then
18999 ac_res="none required"
19000 else
19001 ac_res=-l$ac_lib
19002 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19003 fi
19004 if ac_fn_c_try_link "$LINENO"; then :
19005 ac_cv_search_inet_ntop=$ac_res
19006 fi
19007 rm -f core conftest.err conftest.$ac_objext \
19008 conftest$ac_exeext
19009 if ${ac_cv_search_inet_ntop+:} false; then :
19010 break
19011 fi
19012 done
19013 if ${ac_cv_search_inet_ntop+:} false; then :
19014
19015 else
19016 ac_cv_search_inet_ntop=no
19017 fi
19018 rm conftest.$ac_ext
19019 LIBS=$ac_func_search_save_LIBS
19020 fi
19021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
19022 $as_echo "$ac_cv_search_inet_ntop" >&6; }
19023 ac_res=$ac_cv_search_inet_ntop
19024 if test "$ac_res" != no; then :
19025 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19026
19027 else
19028 for ac_func in inet_ntop
19029 do :
19030 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
19031 if test "x$ac_cv_func_inet_ntop" = xyes; then :
19032 cat >>confdefs.h <<_ACEOF
19033 #define HAVE_INET_NTOP 1
19034 _ACEOF
19035
19036 fi
19037 done
19038
19039 if test $ac_cv_func_inet_ntop = no; then
19040 HAVE_INET_NTOP=0
19041 fi
19042
19043 fi
19044
19045 LIBS=$gl_save_LIBS
19046
19047 if test "$ac_cv_search_inet_ntop" != "no" \
19048 && test "$ac_cv_search_inet_ntop" != "none required"; then
19049 INET_NTOP_LIB="$ac_cv_search_inet_ntop"
19050 fi
19051
19052
19053 :
19054
19055
19056
19057
19058
19059 ac_fn_c_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "#include <arpa/inet.h>
19060 #if HAVE_NETDB_H
19061 # include <netdb.h>
19062 #endif
19063
19064 "
19065 if test "x$ac_cv_have_decl_inet_ntop" = xyes; then :
19066 ac_have_decl=1
19067 else
19068 ac_have_decl=0
19069 fi
19070
19071 cat >>confdefs.h <<_ACEOF
19072 #define HAVE_DECL_INET_NTOP $ac_have_decl
19073 _ACEOF
19074
19075 if test $ac_cv_have_decl_inet_ntop = no; then
19076 HAVE_DECL_INET_NTOP=0
19077 fi
19078 fi
19079
19080
19081 if test $HAVE_INET_NTOP = 0 || test $REPLACE_INET_NTOP = 1; then
19082
19083
19084
19085
19086
19087
19088
19089
19090 gl_LIBOBJS="$gl_LIBOBJS inet_ntop.$ac_objext"
19091
19092
19093
19094
19095 fi
19096
19097
19098
19099
19100
19101 GNULIB_INET_NTOP=1
19102
19103
19104
19105
19106
19107
19108
19109
19110
19111 PRIPTR_PREFIX=
19112 if test -n "$STDINT_H"; then
19113 PRIPTR_PREFIX='"l"'
19114 else
19115 for glpfx in '' l ll I64; do
19116 case $glpfx in
19117 '') gltype1='int';;
19118 l) gltype1='long int';;
19119 ll) gltype1='long long int';;
19120 I64) gltype1='__int64';;
19121 esac
19122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19123 /* end confdefs.h. */
19124 #include <stdint.h>
19125 extern intptr_t foo;
19126 extern $gltype1 foo;
19127 int
19128 main ()
19129 {
19130
19131 ;
19132 return 0;
19133 }
19134 _ACEOF
19135 if ac_fn_c_try_compile "$LINENO"; then :
19136 PRIPTR_PREFIX='"'$glpfx'"'
19137 fi
19138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19139 test -n "$PRIPTR_PREFIX" && break
19140 done
19141 fi
19142
19143
19144
19145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5
19146 $as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
19147 if ${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+:} false; then :
19148 $as_echo_n "(cached) " >&6
19149 else
19150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19151 /* end confdefs.h. */
19152 /* Work also in C++ mode. */
19153 #define __STDC_LIMIT_MACROS 1
19154
19155 /* Work if build is not clean. */
19156 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
19157
19158 #include <limits.h>
19159 #if HAVE_STDINT_H
19160 #include <stdint.h>
19161 #endif
19162
19163 #if defined INT32_MAX && defined INTMAX_MAX
19164 #define CONDITION (INT32_MAX < INTMAX_MAX)
19165 #elif HAVE_LONG_LONG_INT
19166 #define CONDITION (sizeof (int) < sizeof (long long int))
19167 #else
19168 #define CONDITION 0
19169 #endif
19170 int test[CONDITION ? 1 : -1];
19171 int
19172 main ()
19173 {
19174
19175 ;
19176 return 0;
19177 }
19178 _ACEOF
19179 if ac_fn_c_try_compile "$LINENO"; then :
19180 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=yes
19181 else
19182 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=no
19183 fi
19184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19185 fi
19186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
19187 $as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
19188 if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
19189 INT32_MAX_LT_INTMAX_MAX=1;
19190 else
19191 INT32_MAX_LT_INTMAX_MAX=0;
19192 fi
19193
19194
19195 if test $APPLE_UNIVERSAL_BUILD = 0; then
19196
19197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5
19198 $as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; }
19199 if ${gl_cv_test_INT64_MAX_EQ_LONG_MAX+:} false; then :
19200 $as_echo_n "(cached) " >&6
19201 else
19202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19203 /* end confdefs.h. */
19204 /* Work also in C++ mode. */
19205 #define __STDC_LIMIT_MACROS 1
19206
19207 /* Work if build is not clean. */
19208 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
19209
19210 #include <limits.h>
19211 #if HAVE_STDINT_H
19212 #include <stdint.h>
19213 #endif
19214
19215 #if defined INT64_MAX
19216 #define CONDITION (INT64_MAX == LONG_MAX)
19217 #elif HAVE_LONG_LONG_INT
19218 #define CONDITION (sizeof (long long int) == sizeof (long int))
19219 #else
19220 #define CONDITION 0
19221 #endif
19222 int test[CONDITION ? 1 : -1];
19223 int
19224 main ()
19225 {
19226
19227 ;
19228 return 0;
19229 }
19230 _ACEOF
19231 if ac_fn_c_try_compile "$LINENO"; then :
19232 gl_cv_test_INT64_MAX_EQ_LONG_MAX=yes
19233 else
19234 gl_cv_test_INT64_MAX_EQ_LONG_MAX=no
19235 fi
19236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19237 fi
19238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
19239 $as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
19240 if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
19241 INT64_MAX_EQ_LONG_MAX=1;
19242 else
19243 INT64_MAX_EQ_LONG_MAX=0;
19244 fi
19245
19246
19247 else
19248 INT64_MAX_EQ_LONG_MAX=-1
19249 fi
19250
19251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5
19252 $as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
19253 if ${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+:} false; then :
19254 $as_echo_n "(cached) " >&6
19255 else
19256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19257 /* end confdefs.h. */
19258 /* Work also in C++ mode. */
19259 #define __STDC_LIMIT_MACROS 1
19260
19261 /* Work if build is not clean. */
19262 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
19263
19264 #include <limits.h>
19265 #if HAVE_STDINT_H
19266 #include <stdint.h>
19267 #endif
19268
19269 #if defined UINT32_MAX && defined UINTMAX_MAX
19270 #define CONDITION (UINT32_MAX < UINTMAX_MAX)
19271 #elif HAVE_LONG_LONG_INT
19272 #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
19273 #else
19274 #define CONDITION 0
19275 #endif
19276 int test[CONDITION ? 1 : -1];
19277 int
19278 main ()
19279 {
19280
19281 ;
19282 return 0;
19283 }
19284 _ACEOF
19285 if ac_fn_c_try_compile "$LINENO"; then :
19286 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=yes
19287 else
19288 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=no
19289 fi
19290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19291 fi
19292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
19293 $as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
19294 if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
19295 UINT32_MAX_LT_UINTMAX_MAX=1;
19296 else
19297 UINT32_MAX_LT_UINTMAX_MAX=0;
19298 fi
19299
19300
19301 if test $APPLE_UNIVERSAL_BUILD = 0; then
19302
19303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5
19304 $as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
19305 if ${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+:} false; then :
19306 $as_echo_n "(cached) " >&6
19307 else
19308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19309 /* end confdefs.h. */
19310 /* Work also in C++ mode. */
19311 #define __STDC_LIMIT_MACROS 1
19312
19313 /* Work if build is not clean. */
19314 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
19315
19316 #include <limits.h>
19317 #if HAVE_STDINT_H
19318 #include <stdint.h>
19319 #endif
19320
19321 #if defined UINT64_MAX
19322 #define CONDITION (UINT64_MAX == ULONG_MAX)
19323 #elif HAVE_LONG_LONG_INT
19324 #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
19325 #else
19326 #define CONDITION 0
19327 #endif
19328 int test[CONDITION ? 1 : -1];
19329 int
19330 main ()
19331 {
19332
19333 ;
19334 return 0;
19335 }
19336 _ACEOF
19337 if ac_fn_c_try_compile "$LINENO"; then :
19338 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=yes
19339 else
19340 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=no
19341 fi
19342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19343 fi
19344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
19345 $as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
19346 if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
19347 UINT64_MAX_EQ_ULONG_MAX=1;
19348 else
19349 UINT64_MAX_EQ_ULONG_MAX=0;
19350 fi
19351
19352
19353 else
19354 UINT64_MAX_EQ_ULONG_MAX=-1
19355 fi
19356
19357
19358
19359
19360
19361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(double) can be used without linking with libm" >&5
19362 $as_echo_n "checking whether isnan(double) can be used without linking with libm... " >&6; }
19363 if ${gl_cv_func_isnand_no_libm+:} false; then :
19364 $as_echo_n "(cached) " >&6
19365 else
19366
19367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19368 /* end confdefs.h. */
19369 #include <math.h>
19370 #if __GNUC__ >= 4
19371 # undef isnand
19372 # define isnand(x) __builtin_isnan ((double)(x))
19373 #else
19374 # undef isnand
19375 # define isnand(x) isnan ((double)(x))
19376 #endif
19377 double x;
19378 int
19379 main ()
19380 {
19381 return isnand (x);
19382 ;
19383 return 0;
19384 }
19385 _ACEOF
19386 if ac_fn_c_try_link "$LINENO"; then :
19387 gl_cv_func_isnand_no_libm=yes
19388 else
19389 gl_cv_func_isnand_no_libm=no
19390 fi
19391 rm -f core conftest.err conftest.$ac_objext \
19392 conftest$ac_exeext conftest.$ac_ext
19393
19394 fi
19395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnand_no_libm" >&5
19396 $as_echo "$gl_cv_func_isnand_no_libm" >&6; }
19397
19398 gl_func_isnand_no_libm=$gl_cv_func_isnand_no_libm
19399 if test $gl_cv_func_isnand_no_libm = yes; then
19400
19401 $as_echo "#define HAVE_ISNAND_IN_LIBC 1" >>confdefs.h
19402
19403 fi
19404
19405 if test $gl_func_isnand_no_libm != yes; then
19406
19407
19408
19409
19410
19411
19412
19413
19414 gl_LIBOBJS="$gl_LIBOBJS isnand.$ac_objext"
19415
19416
19417
19418
19419 fi
19420
19421
19422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(long double) can be used without linking with libm" >&5
19423 $as_echo_n "checking whether isnan(long double) can be used without linking with libm... " >&6; }
19424 if ${gl_cv_func_isnanl_no_libm+:} false; then :
19425 $as_echo_n "(cached) " >&6
19426 else
19427
19428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19429 /* end confdefs.h. */
19430 #include <math.h>
19431 #if __GNUC__ >= 4
19432 # undef isnanl
19433 # define isnanl(x) __builtin_isnanl ((long double)(x))
19434 #elif defined isnan
19435 # undef isnanl
19436 # define isnanl(x) isnan ((long double)(x))
19437 #endif
19438 long double x;
19439 int
19440 main ()
19441 {
19442 return isnanl (x);
19443 ;
19444 return 0;
19445 }
19446 _ACEOF
19447 if ac_fn_c_try_link "$LINENO"; then :
19448 gl_cv_func_isnanl_no_libm=yes
19449 else
19450 gl_cv_func_isnanl_no_libm=no
19451 fi
19452 rm -f core conftest.err conftest.$ac_objext \
19453 conftest$ac_exeext conftest.$ac_ext
19454
19455 fi
19456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_no_libm" >&5
19457 $as_echo "$gl_cv_func_isnanl_no_libm" >&6; }
19458
19459 gl_func_isnanl_no_libm=$gl_cv_func_isnanl_no_libm
19460 if test $gl_func_isnanl_no_libm = yes; then
19461
19462
19463
19464
19465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnanl works" >&5
19466 $as_echo_n "checking whether isnanl works... " >&6; }
19467 if ${gl_cv_func_isnanl_works+:} false; then :
19468 $as_echo_n "(cached) " >&6
19469 else
19470
19471 if test "$cross_compiling" = yes; then :
19472 gl_cv_func_isnanl_works="guessing yes"
19473 else
19474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19475 /* end confdefs.h. */
19476
19477 #include <float.h>
19478 #include <limits.h>
19479 #include <math.h>
19480 #if __GNUC__ >= 4
19481 # undef isnanl
19482 # define isnanl(x) __builtin_isnanl ((long double)(x))
19483 #elif defined isnan
19484 # undef isnanl
19485 # define isnanl(x) isnan ((long double)(x))
19486 #endif
19487 #define NWORDS \
19488 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
19489 typedef union { unsigned int word[NWORDS]; long double value; }
19490 memory_long_double;
19491 /* On Irix 6.5, gcc 3.4.3 can't compute compile-time NaN, and needs the
19492 runtime type conversion. */
19493 #ifdef __sgi
19494 static long double NaNl ()
19495 {
19496 double zero = 0.0;
19497 return zero / zero;
19498 }
19499 #else
19500 # define NaNl() (0.0L / 0.0L)
19501 #endif
19502 int main ()
19503 {
19504 int result = 0;
19505
19506 if (!isnanl (NaNl ()))
19507 result |= 1;
19508
19509 {
19510 memory_long_double m;
19511 unsigned int i;
19512
19513 /* The isnanl function should be immune against changes in the sign bit and
19514 in the mantissa bits. The xor operation twiddles a bit that can only be
19515 a sign bit or a mantissa bit (since the exponent never extends to
19516 bit 31). */
19517 m.value = NaNl ();
19518 m.word[NWORDS / 2] ^= (unsigned int) 1 << (sizeof (unsigned int) * CHAR_BIT - 1);
19519 for (i = 0; i < NWORDS; i++)
19520 m.word[i] |= 1;
19521 if (!isnanl (m.value))
19522 result |= 1;
19523 }
19524
19525 #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
19526 /* Representation of an 80-bit 'long double' as an initializer for a sequence
19527 of 'unsigned int' words. */
19528 # ifdef WORDS_BIGENDIAN
19529 # define LDBL80_WORDS(exponent,manthi,mantlo) \
19530 { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
19531 ((unsigned int) (manthi) << 16) | ((unsigned int) (mantlo) >> 16), \
19532 (unsigned int) (mantlo) << 16 \
19533 }
19534 # else
19535 # define LDBL80_WORDS(exponent,manthi,mantlo) \
19536 { mantlo, manthi, exponent }
19537 # endif
19538 { /* Quiet NaN. */
19539 static memory_long_double x =
19540 { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) };
19541 if (!isnanl (x.value))
19542 result |= 2;
19543 }
19544 {
19545 /* Signalling NaN. */
19546 static memory_long_double x =
19547 { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) };
19548 if (!isnanl (x.value))
19549 result |= 2;
19550 }
19551 /* isnanl should return something even for noncanonical values. */
19552 { /* Pseudo-NaN. */
19553 static memory_long_double x =
19554 { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) };
19555 if (isnanl (x.value) && !isnanl (x.value))
19556 result |= 4;
19557 }
19558 { /* Pseudo-Infinity. */
19559 static memory_long_double x =
19560 { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) };
19561 if (isnanl (x.value) && !isnanl (x.value))
19562 result |= 8;
19563 }
19564 { /* Pseudo-Zero. */
19565 static memory_long_double x =
19566 { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) };
19567 if (isnanl (x.value) && !isnanl (x.value))
19568 result |= 16;
19569 }
19570 { /* Unnormalized number. */
19571 static memory_long_double x =
19572 { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) };
19573 if (isnanl (x.value) && !isnanl (x.value))
19574 result |= 32;
19575 }
19576 { /* Pseudo-Denormal. */
19577 static memory_long_double x =
19578 { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) };
19579 if (isnanl (x.value) && !isnanl (x.value))
19580 result |= 64;
19581 }
19582 #endif
19583
19584 return result;
19585 }
19586 _ACEOF
19587 if ac_fn_c_try_run "$LINENO"; then :
19588 gl_cv_func_isnanl_works=yes
19589 else
19590 gl_cv_func_isnanl_works=no
19591 fi
19592 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19593 conftest.$ac_objext conftest.beam conftest.$ac_ext
19594 fi
19595
19596
19597 fi
19598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_works" >&5
19599 $as_echo "$gl_cv_func_isnanl_works" >&6; }
19600
19601 case "$gl_cv_func_isnanl_works" in
19602 *yes) ;;
19603 *) gl_func_isnanl_no_libm=no ;;
19604 esac
19605 fi
19606 if test $gl_func_isnanl_no_libm = yes; then
19607
19608 $as_echo "#define HAVE_ISNANL_IN_LIBC 1" >>confdefs.h
19609
19610 fi
19611
19612 if test $gl_func_isnanl_no_libm != yes; then
19613
19614
19615
19616
19617
19618
19619
19620
19621 gl_LIBOBJS="$gl_LIBOBJS isnanl.$ac_objext"
19622
19623
19624
19625
19626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'long double'" >&5
19627 $as_echo_n "checking where to find the exponent in a 'long double'... " >&6; }
19628 if ${gl_cv_cc_long_double_expbit0+:} false; then :
19629 $as_echo_n "(cached) " >&6
19630 else
19631
19632 if test "$cross_compiling" = yes; then :
19633
19634 gl_cv_cc_long_double_expbit0="unknown"
19635
19636 else
19637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19638 /* end confdefs.h. */
19639
19640 #include <float.h>
19641 #include <stddef.h>
19642 #include <stdio.h>
19643 #include <string.h>
19644 #define NWORDS \
19645 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
19646 typedef union { long double value; unsigned int word[NWORDS]; }
19647 memory_long_double;
19648 static unsigned int ored_words[NWORDS];
19649 static unsigned int anded_words[NWORDS];
19650 static void add_to_ored_words (long double x)
19651 {
19652 memory_long_double m;
19653 size_t i;
19654 /* Clear it first, in case
19655 sizeof (long double) < sizeof (memory_long_double). */
19656 memset (&m, 0, sizeof (memory_long_double));
19657 m.value = x;
19658 for (i = 0; i < NWORDS; i++)
19659 {
19660 ored_words[i] |= m.word[i];
19661 anded_words[i] &= m.word[i];
19662 }
19663 }
19664 int main ()
19665 {
19666 size_t j;
19667 FILE *fp = fopen ("conftest.out", "w");
19668 if (fp == NULL)
19669 return 1;
19670 for (j = 0; j < NWORDS; j++)
19671 anded_words[j] = ~ (unsigned int) 0;
19672 add_to_ored_words (0.25L);
19673 add_to_ored_words (0.5L);
19674 add_to_ored_words (1.0L);
19675 add_to_ored_words (2.0L);
19676 add_to_ored_words (4.0L);
19677 /* Remove bits that are common (e.g. if representation of the first mantissa
19678 bit is explicit). */
19679 for (j = 0; j < NWORDS; j++)
19680 ored_words[j] &= ~anded_words[j];
19681 /* Now find the nonzero word. */
19682 for (j = 0; j < NWORDS; j++)
19683 if (ored_words[j] != 0)
19684 break;
19685 if (j < NWORDS)
19686 {
19687 size_t i;
19688 for (i = j + 1; i < NWORDS; i++)
19689 if (ored_words[i] != 0)
19690 {
19691 fprintf (fp, "unknown");
19692 return (fclose (fp) != 0);
19693 }
19694 for (i = 0; ; i++)
19695 if ((ored_words[j] >> i) & 1)
19696 {
19697 fprintf (fp, "word %d bit %d", (int) j, (int) i);
19698 return (fclose (fp) != 0);
19699 }
19700 }
19701 fprintf (fp, "unknown");
19702 return (fclose (fp) != 0);
19703 }
19704
19705 _ACEOF
19706 if ac_fn_c_try_run "$LINENO"; then :
19707 gl_cv_cc_long_double_expbit0=`cat conftest.out`
19708 else
19709 gl_cv_cc_long_double_expbit0="unknown"
19710 fi
19711 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19712 conftest.$ac_objext conftest.beam conftest.$ac_ext
19713 fi
19714
19715 rm -f conftest.out
19716
19717 fi
19718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_long_double_expbit0" >&5
19719 $as_echo "$gl_cv_cc_long_double_expbit0" >&6; }
19720 case "$gl_cv_cc_long_double_expbit0" in
19721 word*bit*)
19722 word=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
19723 bit=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word.*bit //'`
19724
19725 cat >>confdefs.h <<_ACEOF
19726 #define LDBL_EXPBIT0_WORD $word
19727 _ACEOF
19728
19729
19730 cat >>confdefs.h <<_ACEOF
19731 #define LDBL_EXPBIT0_BIT $bit
19732 _ACEOF
19733
19734 ;;
19735 esac
19736
19737
19738
19739 fi
19740
19741
19742
19743
19744
19745
19746 :
19747
19748
19749
19750
19751
19752
19753
19754
19755
19756 LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
19757
19758
19759
19760
19761 :
19762
19763
19764
19765
19766
19767 if test $ac_cv_func_lstat = yes; then
19768
19769 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
19770 *no)
19771 REPLACE_LSTAT=1
19772 ;;
19773 esac
19774 else
19775 HAVE_LSTAT=0
19776 fi
19777
19778 if test $REPLACE_LSTAT = 1; then
19779
19780
19781
19782
19783
19784
19785
19786
19787 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
19788
19789 :
19790 fi
19791
19792
19793
19794
19795
19796 GNULIB_LSTAT=1
19797
19798
19799
19800
19801
19802 $as_echo "#define GNULIB_TEST_LSTAT 1" >>confdefs.h
19803
19804
19805
19806
19807
19808
19809 if test $gl_cv_func_malloc_posix = yes; then
19810
19811 $as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
19812
19813 else
19814 REPLACE_MALLOC=1
19815 fi
19816
19817 if test $REPLACE_MALLOC = 1; then
19818
19819
19820
19821
19822
19823
19824
19825
19826 gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
19827
19828 fi
19829
19830
19831
19832
19833
19834 GNULIB_MALLOC_POSIX=1
19835
19836
19837
19838
19839
19840 $as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
19841
19842
19843
19844
19845
19846
19847
19848
19849
19850
19851
19852
19853
19854
19855
19856 :
19857
19858
19859
19860
19861
19862
19863
19864
19865 if test $gl_cv_have_include_next = yes; then
19866 gl_cv_next_math_h='<'math.h'>'
19867 else
19868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <math.h>" >&5
19869 $as_echo_n "checking absolute name of <math.h>... " >&6; }
19870 if ${gl_cv_next_math_h+:} false; then :
19871 $as_echo_n "(cached) " >&6
19872 else
19873
19874 if test $ac_cv_header_math_h = yes; then
19875
19876
19877
19878
19879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19880 /* end confdefs.h. */
19881 #include <math.h>
19882 _ACEOF
19883 case "$host_os" in
19884 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19885 *) gl_absname_cpp="$ac_cpp" ;;
19886 esac
19887
19888 case "$host_os" in
19889 mingw*)
19890 gl_dirsep_regex='[/\\]'
19891 ;;
19892 *)
19893 gl_dirsep_regex='\/'
19894 ;;
19895 esac
19896 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19897 gl_header_literal_regex=`echo 'math.h' \
19898 | sed -e "$gl_make_literal_regex_sed"`
19899 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19900 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19901 s|^/[^/]|//&|
19902 p
19903 q
19904 }'
19905
19906 gl_cv_absolute_math_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19907 sed -n "$gl_absolute_header_sed"`
19908
19909 gl_header=$gl_cv_absolute_math_h
19910 gl_cv_next_math_h='"'$gl_header'"'
19911 else
19912 gl_cv_next_math_h='<'math.h'>'
19913 fi
19914
19915
19916 fi
19917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_math_h" >&5
19918 $as_echo "$gl_cv_next_math_h" >&6; }
19919 fi
19920 NEXT_MATH_H=$gl_cv_next_math_h
19921
19922 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19923 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19924 gl_next_as_first_directive='<'math.h'>'
19925 else
19926 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19927 gl_next_as_first_directive=$gl_cv_next_math_h
19928 fi
19929 NEXT_AS_FIRST_DIRECTIVE_MATH_H=$gl_next_as_first_directive
19930
19931
19932
19933
19934
19935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NAN macro works" >&5
19936 $as_echo_n "checking whether NAN macro works... " >&6; }
19937 if ${gl_cv_header_math_nan_works+:} false; then :
19938 $as_echo_n "(cached) " >&6
19939 else
19940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19941 /* end confdefs.h. */
19942 #include <math.h>
19943 int
19944 main ()
19945 {
19946 /* Solaris 10 has a broken definition of NAN. Other platforms
19947 fail to provide NAN, or provide it only in C99 mode; this
19948 test only needs to fail when NAN is provided but wrong. */
19949 float f = 1.0f;
19950 #ifdef NAN
19951 f = NAN;
19952 #endif
19953 return f == 0;
19954 ;
19955 return 0;
19956 }
19957 _ACEOF
19958 if ac_fn_c_try_compile "$LINENO"; then :
19959 gl_cv_header_math_nan_works=yes
19960 else
19961 gl_cv_header_math_nan_works=no
19962 fi
19963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19964 fi
19965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_nan_works" >&5
19966 $as_echo "$gl_cv_header_math_nan_works" >&6; }
19967 if test $gl_cv_header_math_nan_works = no; then
19968 REPLACE_NAN=1
19969 fi
19970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether HUGE_VAL works" >&5
19971 $as_echo_n "checking whether HUGE_VAL works... " >&6; }
19972 if ${gl_cv_header_math_huge_val_works+:} false; then :
19973 $as_echo_n "(cached) " >&6
19974 else
19975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19976 /* end confdefs.h. */
19977 #include <math.h>
19978 int
19979 main ()
19980 {
19981 /* Solaris 10 has a broken definition of HUGE_VAL. */
19982 double d = HUGE_VAL;
19983 return d == 0;
19984 ;
19985 return 0;
19986 }
19987 _ACEOF
19988 if ac_fn_c_try_compile "$LINENO"; then :
19989 gl_cv_header_math_huge_val_works=yes
19990 else
19991 gl_cv_header_math_huge_val_works=no
19992 fi
19993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19994 fi
19995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_huge_val_works" >&5
19996 $as_echo "$gl_cv_header_math_huge_val_works" >&6; }
19997 if test $gl_cv_header_math_huge_val_works = no; then
19998 REPLACE_HUGE_VAL=1
19999 fi
20000
20001
20002 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
20003 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
20004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
20005 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
20006 if eval \${$as_gl_Symbol+:} false; then :
20007 $as_echo_n "(cached) " >&6
20008 else
20009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20010 /* end confdefs.h. */
20011 #include <math.h>
20012 int
20013 main ()
20014 {
20015 #undef $gl_func
20016 (void) $gl_func;
20017 ;
20018 return 0;
20019 }
20020 _ACEOF
20021 if ac_fn_c_try_compile "$LINENO"; then :
20022 eval "$as_gl_Symbol=yes"
20023 else
20024 eval "$as_gl_Symbol=no"
20025 fi
20026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20027 fi
20028 eval ac_res=\$$as_gl_Symbol
20029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20030 $as_echo "$ac_res" >&6; }
20031 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
20032 cat >>confdefs.h <<_ACEOF
20033 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
20034 _ACEOF
20035
20036 eval ac_cv_have_decl_$gl_func=yes
20037 fi
20038 done
20039
20040
20041
20042
20043
20044
20045
20046
20047
20048
20049
20050 :
20051
20052
20053
20054
20055
20056
20057 :
20058
20059
20060
20061
20062
20063 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
20064
20065
20066
20067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
20068 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
20069 if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then :
20070 $as_echo_n "(cached) " >&6
20071 else
20072
20073 case "$host_os" in
20074 # Guess no on AIX and OSF/1.
20075 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
20076 # Guess yes otherwise.
20077 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
20078 esac
20079 if test $LOCALE_JA != none; then
20080 if test "$cross_compiling" = yes; then :
20081 :
20082 else
20083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20084 /* end confdefs.h. */
20085
20086 #include <locale.h>
20087 #include <string.h>
20088 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20089 <wchar.h>.
20090 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20091 included before <wchar.h>. */
20092 #include <stddef.h>
20093 #include <stdio.h>
20094 #include <time.h>
20095 #include <wchar.h>
20096 int main ()
20097 {
20098 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
20099 {
20100 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
20101 mbstate_t state;
20102 wchar_t wc;
20103
20104 memset (&state, '\0', sizeof (mbstate_t));
20105 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
20106 if (mbsinit (&state))
20107 return 1;
20108 }
20109 return 0;
20110 }
20111 _ACEOF
20112 if ac_fn_c_try_run "$LINENO"; then :
20113 gl_cv_func_mbrtowc_incomplete_state=yes
20114 else
20115 gl_cv_func_mbrtowc_incomplete_state=no
20116 fi
20117 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20118 conftest.$ac_objext conftest.beam conftest.$ac_ext
20119 fi
20120
20121 fi
20122
20123 fi
20124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
20125 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
20126
20127
20128
20129
20130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
20131 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
20132 if ${gl_cv_func_mbrtowc_sanitycheck+:} false; then :
20133 $as_echo_n "(cached) " >&6
20134 else
20135
20136 case "$host_os" in
20137 # Guess no on Solaris 8.
20138 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
20139 # Guess yes otherwise.
20140 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
20141 esac
20142 if test $LOCALE_ZH_CN != none; then
20143 if test "$cross_compiling" = yes; then :
20144 :
20145 else
20146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20147 /* end confdefs.h. */
20148
20149 #include <locale.h>
20150 #include <stdlib.h>
20151 #include <string.h>
20152 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20153 <wchar.h>.
20154 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20155 included before <wchar.h>. */
20156 #include <stddef.h>
20157 #include <stdio.h>
20158 #include <time.h>
20159 #include <wchar.h>
20160 int main ()
20161 {
20162 /* This fails on Solaris 8:
20163 mbrtowc returns 2, and sets wc to 0x00F0.
20164 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
20165 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
20166 {
20167 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
20168 mbstate_t state;
20169 wchar_t wc;
20170
20171 memset (&state, '\0', sizeof (mbstate_t));
20172 if (mbrtowc (&wc, input + 3, 6, &state) != 4
20173 && mbtowc (&wc, input + 3, 6) == 4)
20174 return 1;
20175 }
20176 return 0;
20177 }
20178 _ACEOF
20179 if ac_fn_c_try_run "$LINENO"; then :
20180 gl_cv_func_mbrtowc_sanitycheck=yes
20181 else
20182 gl_cv_func_mbrtowc_sanitycheck=no
20183 fi
20184 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20185 conftest.$ac_objext conftest.beam conftest.$ac_ext
20186 fi
20187
20188 fi
20189
20190 fi
20191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
20192 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
20193
20194 REPLACE_MBSTATE_T=0
20195 case "$gl_cv_func_mbrtowc_incomplete_state" in
20196 *yes) ;;
20197 *) REPLACE_MBSTATE_T=1 ;;
20198 esac
20199 case "$gl_cv_func_mbrtowc_sanitycheck" in
20200 *yes) ;;
20201 *) REPLACE_MBSTATE_T=1 ;;
20202 esac
20203 else
20204 REPLACE_MBSTATE_T=1
20205 fi
20206
20207
20208
20209 :
20210
20211
20212
20213
20214
20215 if test $ac_cv_func_mbrtowc = no; then
20216 HAVE_MBRTOWC=0
20217 ac_fn_c_check_decl "$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" "
20218 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20219 <wchar.h>.
20220 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20221 included before <wchar.h>. */
20222 #include <stddef.h>
20223 #include <stdio.h>
20224 #include <time.h>
20225 #include <wchar.h>
20226
20227 "
20228 if test "x$ac_cv_have_decl_mbrtowc" = xyes; then :
20229 ac_have_decl=1
20230 else
20231 ac_have_decl=0
20232 fi
20233
20234 cat >>confdefs.h <<_ACEOF
20235 #define HAVE_DECL_MBRTOWC $ac_have_decl
20236 _ACEOF
20237
20238 if test $ac_cv_have_decl_mbrtowc = yes; then
20239 REPLACE_MBRTOWC=1
20240 fi
20241 else
20242 if test $REPLACE_MBSTATE_T = 1; then
20243 REPLACE_MBRTOWC=1
20244 else
20245
20246
20247
20248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL pwc argument" >&5
20249 $as_echo_n "checking whether mbrtowc handles a NULL pwc argument... " >&6; }
20250 if ${gl_cv_func_mbrtowc_null_arg1+:} false; then :
20251 $as_echo_n "(cached) " >&6
20252 else
20253
20254 case "$host_os" in
20255 # Guess no on Solaris.
20256 solaris*) gl_cv_func_mbrtowc_null_arg1="guessing no" ;;
20257 # Guess yes otherwise.
20258 *) gl_cv_func_mbrtowc_null_arg1="guessing yes" ;;
20259 esac
20260 if test $LOCALE_FR_UTF8 != none; then
20261 if test "$cross_compiling" = yes; then :
20262 :
20263 else
20264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20265 /* end confdefs.h. */
20266
20267 #include <locale.h>
20268 #include <stdlib.h>
20269 #include <string.h>
20270 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20271 <wchar.h>.
20272 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20273 included before <wchar.h>. */
20274 #include <stddef.h>
20275 #include <stdio.h>
20276 #include <time.h>
20277 #include <wchar.h>
20278 int main ()
20279 {
20280 int result = 0;
20281
20282 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
20283 {
20284 char input[] = "\303\237er";
20285 mbstate_t state;
20286 wchar_t wc;
20287 size_t ret;
20288
20289 memset (&state, '\0', sizeof (mbstate_t));
20290 wc = (wchar_t) 0xBADFACE;
20291 ret = mbrtowc (&wc, input, 5, &state);
20292 if (ret != 2)
20293 result |= 1;
20294 if (!mbsinit (&state))
20295 result |= 2;
20296
20297 memset (&state, '\0', sizeof (mbstate_t));
20298 ret = mbrtowc (NULL, input, 5, &state);
20299 if (ret != 2) /* Solaris 7 fails here: ret is -1. */
20300 result |= 4;
20301 if (!mbsinit (&state))
20302 result |= 8;
20303 }
20304 return result;
20305 }
20306 _ACEOF
20307 if ac_fn_c_try_run "$LINENO"; then :
20308 gl_cv_func_mbrtowc_null_arg1=yes
20309 else
20310 gl_cv_func_mbrtowc_null_arg1=no
20311 fi
20312 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20313 conftest.$ac_objext conftest.beam conftest.$ac_ext
20314 fi
20315
20316 fi
20317
20318 fi
20319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg1" >&5
20320 $as_echo "$gl_cv_func_mbrtowc_null_arg1" >&6; }
20321
20322
20323
20324
20325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
20326 $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
20327 if ${gl_cv_func_mbrtowc_null_arg2+:} false; then :
20328 $as_echo_n "(cached) " >&6
20329 else
20330
20331 case "$host_os" in
20332 # Guess no on OSF/1.
20333 osf*) gl_cv_func_mbrtowc_null_arg2="guessing no" ;;
20334 # Guess yes otherwise.
20335 *) gl_cv_func_mbrtowc_null_arg2="guessing yes" ;;
20336 esac
20337 if test $LOCALE_FR_UTF8 != none; then
20338 if test "$cross_compiling" = yes; then :
20339 :
20340 else
20341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20342 /* end confdefs.h. */
20343
20344 #include <locale.h>
20345 #include <string.h>
20346 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20347 <wchar.h>.
20348 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20349 included before <wchar.h>. */
20350 #include <stddef.h>
20351 #include <stdio.h>
20352 #include <time.h>
20353 #include <wchar.h>
20354 int main ()
20355 {
20356 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
20357 {
20358 mbstate_t state;
20359 wchar_t wc;
20360 int ret;
20361
20362 memset (&state, '\0', sizeof (mbstate_t));
20363 wc = (wchar_t) 0xBADFACE;
20364 mbrtowc (&wc, NULL, 5, &state);
20365 /* Check that wc was not modified. */
20366 if (wc != (wchar_t) 0xBADFACE)
20367 return 1;
20368 }
20369 return 0;
20370 }
20371 _ACEOF
20372 if ac_fn_c_try_run "$LINENO"; then :
20373 gl_cv_func_mbrtowc_null_arg2=yes
20374 else
20375 gl_cv_func_mbrtowc_null_arg2=no
20376 fi
20377 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20378 conftest.$ac_objext conftest.beam conftest.$ac_ext
20379 fi
20380
20381 fi
20382
20383 fi
20384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg2" >&5
20385 $as_echo "$gl_cv_func_mbrtowc_null_arg2" >&6; }
20386
20387
20388
20389
20390
20391
20392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
20393 $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
20394 if ${gl_cv_func_mbrtowc_retval+:} false; then :
20395 $as_echo_n "(cached) " >&6
20396 else
20397
20398 case "$host_os" in
20399 # Guess no on HP-UX, Solaris, native Windows.
20400 hpux* | solaris* | mingw*) gl_cv_func_mbrtowc_retval="guessing no" ;;
20401 # Guess yes otherwise.
20402 *) gl_cv_func_mbrtowc_retval="guessing yes" ;;
20403 esac
20404 if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none \
20405 || { case "$host_os" in mingw*) true;; *) false;; esac; }; then
20406 if test "$cross_compiling" = yes; then :
20407 :
20408 else
20409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20410 /* end confdefs.h. */
20411
20412 #include <locale.h>
20413 #include <string.h>
20414 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20415 <wchar.h>.
20416 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20417 included before <wchar.h>. */
20418 #include <stddef.h>
20419 #include <stdio.h>
20420 #include <time.h>
20421 #include <wchar.h>
20422 int main ()
20423 {
20424 int result = 0;
20425 int found_some_locale = 0;
20426 /* This fails on Solaris. */
20427 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
20428 {
20429 char input[] = "B\303\274\303\237er"; /* "Büßer" */
20430 mbstate_t state;
20431 wchar_t wc;
20432
20433 memset (&state, '\0', sizeof (mbstate_t));
20434 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
20435 {
20436 input[1] = '\0';
20437 if (mbrtowc (&wc, input + 2, 5, &state) != 1)
20438 result |= 1;
20439 }
20440 found_some_locale = 1;
20441 }
20442 /* This fails on HP-UX 11.11. */
20443 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
20444 {
20445 char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
20446 mbstate_t state;
20447 wchar_t wc;
20448
20449 memset (&state, '\0', sizeof (mbstate_t));
20450 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
20451 {
20452 input[1] = '\0';
20453 if (mbrtowc (&wc, input + 2, 5, &state) != 2)
20454 result |= 2;
20455 }
20456 found_some_locale = 1;
20457 }
20458 /* This fails on native Windows. */
20459 if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
20460 {
20461 char input[] = "<\223\372\226\173\214\352>"; /* "<日本語>" */
20462 mbstate_t state;
20463 wchar_t wc;
20464
20465 memset (&state, '\0', sizeof (mbstate_t));
20466 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
20467 {
20468 input[3] = '\0';
20469 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
20470 result |= 4;
20471 }
20472 found_some_locale = 1;
20473 }
20474 if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
20475 {
20476 char input[] = "<\244\351\245\273\273\171>"; /* "<日本語>" */
20477 mbstate_t state;
20478 wchar_t wc;
20479
20480 memset (&state, '\0', sizeof (mbstate_t));
20481 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
20482 {
20483 input[3] = '\0';
20484 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
20485 result |= 8;
20486 }
20487 found_some_locale = 1;
20488 }
20489 if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
20490 {
20491 char input[] = "<\310\325\261\276\325\132>"; /* "<日本語>" */
20492 mbstate_t state;
20493 wchar_t wc;
20494
20495 memset (&state, '\0', sizeof (mbstate_t));
20496 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
20497 {
20498 input[3] = '\0';
20499 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
20500 result |= 16;
20501 }
20502 found_some_locale = 1;
20503 }
20504 return (found_some_locale ? result : 77);
20505 }
20506 _ACEOF
20507 if ac_fn_c_try_run "$LINENO"; then :
20508 gl_cv_func_mbrtowc_retval=yes
20509 else
20510 if test $? != 77; then
20511 gl_cv_func_mbrtowc_retval=no
20512 fi
20513
20514 fi
20515 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20516 conftest.$ac_objext conftest.beam conftest.$ac_ext
20517 fi
20518
20519 fi
20520
20521 fi
20522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
20523 $as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
20524
20525
20526
20527
20528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
20529 $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
20530 if ${gl_cv_func_mbrtowc_nul_retval+:} false; then :
20531 $as_echo_n "(cached) " >&6
20532 else
20533
20534 case "$host_os" in
20535 # Guess no on Solaris 8 and 9.
20536 solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
20537 # Guess yes otherwise.
20538 *) gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
20539 esac
20540 if test $LOCALE_ZH_CN != none; then
20541 if test "$cross_compiling" = yes; then :
20542 :
20543 else
20544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20545 /* end confdefs.h. */
20546
20547 #include <locale.h>
20548 #include <string.h>
20549 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20550 <wchar.h>.
20551 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20552 included before <wchar.h>. */
20553 #include <stddef.h>
20554 #include <stdio.h>
20555 #include <time.h>
20556 #include <wchar.h>
20557 int main ()
20558 {
20559 /* This fails on Solaris 8 and 9. */
20560 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
20561 {
20562 mbstate_t state;
20563 wchar_t wc;
20564
20565 memset (&state, '\0', sizeof (mbstate_t));
20566 if (mbrtowc (&wc, "", 1, &state) != 0)
20567 return 1;
20568 }
20569 return 0;
20570 }
20571 _ACEOF
20572 if ac_fn_c_try_run "$LINENO"; then :
20573 gl_cv_func_mbrtowc_nul_retval=yes
20574 else
20575 gl_cv_func_mbrtowc_nul_retval=no
20576 fi
20577 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20578 conftest.$ac_objext conftest.beam conftest.$ac_ext
20579 fi
20580
20581 fi
20582
20583 fi
20584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
20585 $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
20586
20587
20588
20589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works on empty input" >&5
20590 $as_echo_n "checking whether mbrtowc works on empty input... " >&6; }
20591 if ${gl_cv_func_mbrtowc_empty_input+:} false; then :
20592 $as_echo_n "(cached) " >&6
20593 else
20594
20595 case "$host_os" in
20596 # Guess no on AIX and glibc systems.
20597 aix* | *-gnu*)
20598 gl_cv_func_mbrtowc_empty_input="guessing no" ;;
20599 *) gl_cv_func_mbrtowc_empty_input="guessing yes" ;;
20600 esac
20601 if test "$cross_compiling" = yes; then :
20602 :
20603 else
20604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20605 /* end confdefs.h. */
20606
20607 #include <wchar.h>
20608 static wchar_t wc;
20609 static mbstate_t mbs;
20610 int
20611 main (void)
20612 {
20613 return mbrtowc (&wc, "", 0, &mbs) != (size_t) -2;
20614 }
20615 _ACEOF
20616 if ac_fn_c_try_run "$LINENO"; then :
20617 gl_cv_func_mbrtowc_empty_input=yes
20618 else
20619 gl_cv_func_mbrtowc_empty_input=no
20620 fi
20621 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20622 conftest.$ac_objext conftest.beam conftest.$ac_ext
20623 fi
20624
20625
20626 fi
20627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_empty_input" >&5
20628 $as_echo "$gl_cv_func_mbrtowc_empty_input" >&6; }
20629
20630
20631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C locale is free of encoding errors" >&5
20632 $as_echo_n "checking whether the C locale is free of encoding errors... " >&6; }
20633 if ${gl_cv_C_locale_sans_EILSEQ+:} false; then :
20634 $as_echo_n "(cached) " >&6
20635 else
20636
20637 gl_cv_C_locale_sans_EILSEQ="guessing no"
20638
20639 if test "$cross_compiling" = yes; then :
20640 :
20641 else
20642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20643 /* end confdefs.h. */
20644 #include <limits.h>
20645 #include <locale.h>
20646 #include <wchar.h>
20647
20648 int
20649 main ()
20650 {
20651
20652 int i;
20653 char *locale = setlocale (LC_ALL, "C");
20654 if (! locale)
20655 return 1;
20656 for (i = CHAR_MIN; i <= CHAR_MAX; i++)
20657 {
20658 char c = i;
20659 wchar_t wc;
20660 mbstate_t mbs = { 0, };
20661 size_t ss = mbrtowc (&wc, &c, 1, &mbs);
20662 if (1 < ss)
20663 return 1;
20664 }
20665 return 0;
20666
20667 ;
20668 return 0;
20669 }
20670 _ACEOF
20671 if ac_fn_c_try_run "$LINENO"; then :
20672 gl_cv_C_locale_sans_EILSEQ=yes
20673 else
20674 gl_cv_C_locale_sans_EILSEQ=no
20675 fi
20676 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20677 conftest.$ac_objext conftest.beam conftest.$ac_ext
20678 fi
20679
20680 fi
20681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_C_locale_sans_EILSEQ" >&5
20682 $as_echo "$gl_cv_C_locale_sans_EILSEQ" >&6; }
20683
20684 case "$gl_cv_func_mbrtowc_null_arg1" in
20685 *yes) ;;
20686 *)
20687 $as_echo "#define MBRTOWC_NULL_ARG1_BUG 1" >>confdefs.h
20688
20689 REPLACE_MBRTOWC=1
20690 ;;
20691 esac
20692 case "$gl_cv_func_mbrtowc_null_arg2" in
20693 *yes) ;;
20694 *)
20695 $as_echo "#define MBRTOWC_NULL_ARG2_BUG 1" >>confdefs.h
20696
20697 REPLACE_MBRTOWC=1
20698 ;;
20699 esac
20700 case "$gl_cv_func_mbrtowc_retval" in
20701 *yes) ;;
20702 *)
20703 $as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
20704
20705 REPLACE_MBRTOWC=1
20706 ;;
20707 esac
20708 case "$gl_cv_func_mbrtowc_nul_retval" in
20709 *yes) ;;
20710 *)
20711 $as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
20712
20713 REPLACE_MBRTOWC=1
20714 ;;
20715 esac
20716 case "$gl_cv_func_mbrtowc_empty_input" in
20717 *yes) ;;
20718 *)
20719 $as_echo "#define MBRTOWC_EMPTY_INPUT_BUG 1" >>confdefs.h
20720
20721 REPLACE_MBRTOWC=1
20722 ;;
20723 esac
20724 case $gl_cv_C_locale_sans_EILSEQ in
20725 *yes) ;;
20726 *)
20727 $as_echo "#define C_LOCALE_MAYBE_EILSEQ 1" >>confdefs.h
20728
20729 REPLACE_MBRTOWC=1
20730 ;;
20731 esac
20732 fi
20733 fi
20734
20735 if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
20736
20737
20738
20739
20740
20741
20742
20743
20744 gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext"
20745
20746
20747 :
20748
20749 fi
20750
20751
20752
20753
20754
20755 GNULIB_MBRTOWC=1
20756
20757
20758
20759
20760
20761 $as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
20762
20763
20764
20765
20766
20767
20768
20769
20770
20771
20772
20773
20774
20775 :
20776
20777
20778
20779
20780
20781
20782 :
20783
20784
20785
20786
20787
20788 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
20789
20790
20791
20792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
20793 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
20794 if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then :
20795 $as_echo_n "(cached) " >&6
20796 else
20797
20798 case "$host_os" in
20799 # Guess no on AIX and OSF/1.
20800 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
20801 # Guess yes otherwise.
20802 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
20803 esac
20804 if test $LOCALE_JA != none; then
20805 if test "$cross_compiling" = yes; then :
20806 :
20807 else
20808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20809 /* end confdefs.h. */
20810
20811 #include <locale.h>
20812 #include <string.h>
20813 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20814 <wchar.h>.
20815 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20816 included before <wchar.h>. */
20817 #include <stddef.h>
20818 #include <stdio.h>
20819 #include <time.h>
20820 #include <wchar.h>
20821 int main ()
20822 {
20823 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
20824 {
20825 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
20826 mbstate_t state;
20827 wchar_t wc;
20828
20829 memset (&state, '\0', sizeof (mbstate_t));
20830 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
20831 if (mbsinit (&state))
20832 return 1;
20833 }
20834 return 0;
20835 }
20836 _ACEOF
20837 if ac_fn_c_try_run "$LINENO"; then :
20838 gl_cv_func_mbrtowc_incomplete_state=yes
20839 else
20840 gl_cv_func_mbrtowc_incomplete_state=no
20841 fi
20842 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20843 conftest.$ac_objext conftest.beam conftest.$ac_ext
20844 fi
20845
20846 fi
20847
20848 fi
20849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
20850 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
20851
20852
20853
20854
20855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
20856 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
20857 if ${gl_cv_func_mbrtowc_sanitycheck+:} false; then :
20858 $as_echo_n "(cached) " >&6
20859 else
20860
20861 case "$host_os" in
20862 # Guess no on Solaris 8.
20863 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
20864 # Guess yes otherwise.
20865 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
20866 esac
20867 if test $LOCALE_ZH_CN != none; then
20868 if test "$cross_compiling" = yes; then :
20869 :
20870 else
20871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20872 /* end confdefs.h. */
20873
20874 #include <locale.h>
20875 #include <stdlib.h>
20876 #include <string.h>
20877 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20878 <wchar.h>.
20879 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20880 included before <wchar.h>. */
20881 #include <stddef.h>
20882 #include <stdio.h>
20883 #include <time.h>
20884 #include <wchar.h>
20885 int main ()
20886 {
20887 /* This fails on Solaris 8:
20888 mbrtowc returns 2, and sets wc to 0x00F0.
20889 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
20890 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
20891 {
20892 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
20893 mbstate_t state;
20894 wchar_t wc;
20895
20896 memset (&state, '\0', sizeof (mbstate_t));
20897 if (mbrtowc (&wc, input + 3, 6, &state) != 4
20898 && mbtowc (&wc, input + 3, 6) == 4)
20899 return 1;
20900 }
20901 return 0;
20902 }
20903 _ACEOF
20904 if ac_fn_c_try_run "$LINENO"; then :
20905 gl_cv_func_mbrtowc_sanitycheck=yes
20906 else
20907 gl_cv_func_mbrtowc_sanitycheck=no
20908 fi
20909 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20910 conftest.$ac_objext conftest.beam conftest.$ac_ext
20911 fi
20912
20913 fi
20914
20915 fi
20916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
20917 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
20918
20919 REPLACE_MBSTATE_T=0
20920 case "$gl_cv_func_mbrtowc_incomplete_state" in
20921 *yes) ;;
20922 *) REPLACE_MBSTATE_T=1 ;;
20923 esac
20924 case "$gl_cv_func_mbrtowc_sanitycheck" in
20925 *yes) ;;
20926 *) REPLACE_MBSTATE_T=1 ;;
20927 esac
20928 else
20929 REPLACE_MBSTATE_T=1
20930 fi
20931
20932
20933
20934 :
20935
20936
20937
20938
20939
20940 if test $ac_cv_func_mbsinit = no; then
20941 HAVE_MBSINIT=0
20942 ac_fn_c_check_decl "$LINENO" "mbsinit" "ac_cv_have_decl_mbsinit" "
20943 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20944 <wchar.h>.
20945 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20946 included before <wchar.h>. */
20947 #include <stddef.h>
20948 #include <stdio.h>
20949 #include <time.h>
20950 #include <wchar.h>
20951
20952 "
20953 if test "x$ac_cv_have_decl_mbsinit" = xyes; then :
20954 ac_have_decl=1
20955 else
20956 ac_have_decl=0
20957 fi
20958
20959 cat >>confdefs.h <<_ACEOF
20960 #define HAVE_DECL_MBSINIT $ac_have_decl
20961 _ACEOF
20962
20963 if test $ac_cv_have_decl_mbsinit = yes; then
20964 REPLACE_MBSINIT=1
20965 fi
20966 else
20967 if test $REPLACE_MBSTATE_T = 1; then
20968 REPLACE_MBSINIT=1
20969 else
20970 case "$host_os" in
20971 mingw*) REPLACE_MBSINIT=1 ;;
20972 esac
20973 fi
20974 fi
20975
20976 if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
20977
20978
20979
20980
20981
20982
20983
20984
20985 gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext"
20986
20987
20988 :
20989
20990 fi
20991
20992
20993
20994
20995
20996 GNULIB_MBSINIT=1
20997
20998
20999
21000
21001
21002 $as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
21003
21004
21005
21006
21007
21008
21009
21010
21011
21012
21013
21014
21015 :
21016
21017
21018
21019
21020
21021
21022 :
21023
21024
21025
21026
21027
21028 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
21029
21030
21031
21032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
21033 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
21034 if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then :
21035 $as_echo_n "(cached) " >&6
21036 else
21037
21038 case "$host_os" in
21039 # Guess no on AIX and OSF/1.
21040 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
21041 # Guess yes otherwise.
21042 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
21043 esac
21044 if test $LOCALE_JA != none; then
21045 if test "$cross_compiling" = yes; then :
21046 :
21047 else
21048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21049 /* end confdefs.h. */
21050
21051 #include <locale.h>
21052 #include <string.h>
21053 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
21054 <wchar.h>.
21055 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21056 included before <wchar.h>. */
21057 #include <stddef.h>
21058 #include <stdio.h>
21059 #include <time.h>
21060 #include <wchar.h>
21061 int main ()
21062 {
21063 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
21064 {
21065 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
21066 mbstate_t state;
21067 wchar_t wc;
21068
21069 memset (&state, '\0', sizeof (mbstate_t));
21070 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
21071 if (mbsinit (&state))
21072 return 1;
21073 }
21074 return 0;
21075 }
21076 _ACEOF
21077 if ac_fn_c_try_run "$LINENO"; then :
21078 gl_cv_func_mbrtowc_incomplete_state=yes
21079 else
21080 gl_cv_func_mbrtowc_incomplete_state=no
21081 fi
21082 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21083 conftest.$ac_objext conftest.beam conftest.$ac_ext
21084 fi
21085
21086 fi
21087
21088 fi
21089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
21090 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
21091
21092
21093
21094
21095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
21096 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
21097 if ${gl_cv_func_mbrtowc_sanitycheck+:} false; then :
21098 $as_echo_n "(cached) " >&6
21099 else
21100
21101 case "$host_os" in
21102 # Guess no on Solaris 8.
21103 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
21104 # Guess yes otherwise.
21105 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
21106 esac
21107 if test $LOCALE_ZH_CN != none; then
21108 if test "$cross_compiling" = yes; then :
21109 :
21110 else
21111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21112 /* end confdefs.h. */
21113
21114 #include <locale.h>
21115 #include <stdlib.h>
21116 #include <string.h>
21117 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
21118 <wchar.h>.
21119 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21120 included before <wchar.h>. */
21121 #include <stddef.h>
21122 #include <stdio.h>
21123 #include <time.h>
21124 #include <wchar.h>
21125 int main ()
21126 {
21127 /* This fails on Solaris 8:
21128 mbrtowc returns 2, and sets wc to 0x00F0.
21129 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
21130 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
21131 {
21132 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
21133 mbstate_t state;
21134 wchar_t wc;
21135
21136 memset (&state, '\0', sizeof (mbstate_t));
21137 if (mbrtowc (&wc, input + 3, 6, &state) != 4
21138 && mbtowc (&wc, input + 3, 6) == 4)
21139 return 1;
21140 }
21141 return 0;
21142 }
21143 _ACEOF
21144 if ac_fn_c_try_run "$LINENO"; then :
21145 gl_cv_func_mbrtowc_sanitycheck=yes
21146 else
21147 gl_cv_func_mbrtowc_sanitycheck=no
21148 fi
21149 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21150 conftest.$ac_objext conftest.beam conftest.$ac_ext
21151 fi
21152
21153 fi
21154
21155 fi
21156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
21157 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
21158
21159 REPLACE_MBSTATE_T=0
21160 case "$gl_cv_func_mbrtowc_incomplete_state" in
21161 *yes) ;;
21162 *) REPLACE_MBSTATE_T=1 ;;
21163 esac
21164 case "$gl_cv_func_mbrtowc_sanitycheck" in
21165 *yes) ;;
21166 *) REPLACE_MBSTATE_T=1 ;;
21167 esac
21168 else
21169 REPLACE_MBSTATE_T=1
21170 fi
21171
21172
21173
21174 :
21175
21176
21177
21178
21179
21180 if test $ac_cv_func_mbsrtowcs = no; then
21181 HAVE_MBSRTOWCS=0
21182 ac_fn_c_check_decl "$LINENO" "mbsrtowcs" "ac_cv_have_decl_mbsrtowcs" "
21183 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
21184 <wchar.h>.
21185 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21186 included before <wchar.h>. */
21187 #include <stddef.h>
21188 #include <stdio.h>
21189 #include <time.h>
21190 #include <wchar.h>
21191
21192 "
21193 if test "x$ac_cv_have_decl_mbsrtowcs" = xyes; then :
21194 ac_have_decl=1
21195 else
21196 ac_have_decl=0
21197 fi
21198
21199 cat >>confdefs.h <<_ACEOF
21200 #define HAVE_DECL_MBSRTOWCS $ac_have_decl
21201 _ACEOF
21202
21203 if test $ac_cv_have_decl_mbsrtowcs = yes; then
21204 REPLACE_MBSRTOWCS=1
21205 fi
21206 else
21207 if test $REPLACE_MBSTATE_T = 1; then
21208 REPLACE_MBSRTOWCS=1
21209 else
21210
21211
21212
21213
21214
21215
21216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbsrtowcs works" >&5
21217 $as_echo_n "checking whether mbsrtowcs works... " >&6; }
21218 if ${gl_cv_func_mbsrtowcs_works+:} false; then :
21219 $as_echo_n "(cached) " >&6
21220 else
21221
21222 case "$host_os" in
21223 # Guess no on HP-UX, Solaris, mingw.
21224 hpux* | solaris* | mingw*) gl_cv_func_mbsrtowcs_works="guessing no" ;;
21225 # Guess yes otherwise.
21226 *) gl_cv_func_mbsrtowcs_works="guessing yes" ;;
21227 esac
21228 if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
21229 if test "$cross_compiling" = yes; then :
21230 :
21231 else
21232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21233 /* end confdefs.h. */
21234
21235 #include <locale.h>
21236 #include <string.h>
21237 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
21238 <wchar.h>.
21239 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21240 included before <wchar.h>. */
21241 #include <stddef.h>
21242 #include <stdio.h>
21243 #include <time.h>
21244 #include <wchar.h>
21245 int main ()
21246 {
21247 int result = 0;
21248 /* Test whether the function supports a NULL destination argument.
21249 This fails on native Windows. */
21250 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
21251 {
21252 const char input[] = "\337er";
21253 const char *src = input;
21254 mbstate_t state;
21255
21256 memset (&state, '\0', sizeof (mbstate_t));
21257 if (mbsrtowcs (NULL, &src, 1, &state) != 3
21258 || src != input)
21259 result |= 1;
21260 }
21261 /* Test whether the function works when started with a conversion state
21262 in non-initial state. This fails on HP-UX 11.11 and Solaris 10. */
21263 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
21264 {
21265 const char input[] = "B\303\274\303\237er";
21266 mbstate_t state;
21267
21268 memset (&state, '\0', sizeof (mbstate_t));
21269 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
21270 if (!mbsinit (&state))
21271 {
21272 const char *src = input + 2;
21273 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
21274 result |= 2;
21275 }
21276 }
21277 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
21278 {
21279 const char input[] = "<\306\374\313\334\270\354>";
21280 mbstate_t state;
21281
21282 memset (&state, '\0', sizeof (mbstate_t));
21283 if (mbrtowc (NULL, input + 3, 1, &state) == (size_t)(-2))
21284 if (!mbsinit (&state))
21285 {
21286 const char *src = input + 4;
21287 if (mbsrtowcs (NULL, &src, 10, &state) != 3)
21288 result |= 4;
21289 }
21290 }
21291 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
21292 {
21293 const char input[] = "B\250\271\201\060\211\070er";
21294 mbstate_t state;
21295
21296 memset (&state, '\0', sizeof (mbstate_t));
21297 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
21298 if (!mbsinit (&state))
21299 {
21300 const char *src = input + 2;
21301 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
21302 result |= 8;
21303 }
21304 }
21305 return result;
21306 }
21307 _ACEOF
21308 if ac_fn_c_try_run "$LINENO"; then :
21309 gl_cv_func_mbsrtowcs_works=yes
21310 else
21311 gl_cv_func_mbsrtowcs_works=no
21312 fi
21313 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21314 conftest.$ac_objext conftest.beam conftest.$ac_ext
21315 fi
21316
21317 fi
21318
21319 fi
21320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbsrtowcs_works" >&5
21321 $as_echo "$gl_cv_func_mbsrtowcs_works" >&6; }
21322
21323 case "$gl_cv_func_mbsrtowcs_works" in
21324 *yes) ;;
21325 *) REPLACE_MBSRTOWCS=1 ;;
21326 esac
21327 fi
21328 fi
21329
21330 if test $HAVE_MBSRTOWCS = 0 || test $REPLACE_MBSRTOWCS = 1; then
21331
21332
21333
21334
21335
21336
21337
21338
21339 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs.$ac_objext"
21340
21341
21342
21343
21344
21345
21346
21347
21348
21349 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs-state.$ac_objext"
21350
21351
21352 :
21353
21354 fi
21355
21356
21357
21358
21359
21360 GNULIB_MBSRTOWCS=1
21361
21362
21363
21364
21365
21366 $as_echo "#define GNULIB_TEST_MBSRTOWCS 1" >>confdefs.h
21367
21368
21369
21370
21371 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
21372
21373
21374
21375
21376
21377
21378
21379
21380 gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
21381
21382
21383 for ac_header in bp-sym.h
21384 do :
21385 ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
21386 if test "x$ac_cv_header_bp_sym_h" = xyes; then :
21387 cat >>confdefs.h <<_ACEOF
21388 #define HAVE_BP_SYM_H 1
21389 _ACEOF
21390
21391 fi
21392
21393 done
21394
21395
21396 fi
21397
21398
21399
21400
21401
21402 GNULIB_MEMCHR=1
21403
21404
21405
21406
21407
21408 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
21409
21410
21411
21412
21413
21414 if test $HAVE_DECL_MEMMEM = 1 && test $REPLACE_MEMMEM = 0; then
21415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
21416 $as_echo_n "checking whether memmem works in linear time... " >&6; }
21417 if ${gl_cv_func_memmem_works_fast+:} false; then :
21418 $as_echo_n "(cached) " >&6
21419 else
21420 if test "$cross_compiling" = yes; then :
21421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21422 /* end confdefs.h. */
21423
21424 #include <features.h>
21425 #ifdef __GNU_LIBRARY__
21426 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)) \
21427 && !defined __UCLIBC__
21428 Lucky user
21429 #endif
21430 #endif
21431 #ifdef __CYGWIN__
21432 #include <cygwin/version.h>
21433 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 0)
21434 Lucky user
21435 #endif
21436 #endif
21437
21438 _ACEOF
21439 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21440 $EGREP "Lucky user" >/dev/null 2>&1; then :
21441 gl_cv_func_memmem_works_fast="guessing yes"
21442 else
21443 gl_cv_func_memmem_works_fast="guessing no"
21444 fi
21445 rm -f conftest*
21446
21447
21448 else
21449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21450 /* end confdefs.h. */
21451
21452 #include <signal.h> /* for signal */
21453 #include <string.h> /* for memmem */
21454 #include <stdlib.h> /* for malloc */
21455 #include <unistd.h> /* for alarm */
21456 static void quit (int sig) { _exit (sig + 128); }
21457
21458 int
21459 main ()
21460 {
21461
21462 int result = 0;
21463 size_t m = 1000000;
21464 char *haystack = (char *) malloc (2 * m + 1);
21465 char *needle = (char *) malloc (m + 1);
21466 /* Failure to compile this test due to missing alarm is okay,
21467 since all such platforms (mingw) also lack memmem. */
21468 signal (SIGALRM, quit);
21469 alarm (5);
21470 /* Check for quadratic performance. */
21471 if (haystack && needle)
21472 {
21473 memset (haystack, 'A', 2 * m);
21474 haystack[2 * m] = 'B';
21475 memset (needle, 'A', m);
21476 needle[m] = 'B';
21477 if (!memmem (haystack, 2 * m + 1, needle, m + 1))
21478 result |= 1;
21479 }
21480 return result;
21481
21482 ;
21483 return 0;
21484 }
21485 _ACEOF
21486 if ac_fn_c_try_run "$LINENO"; then :
21487 gl_cv_func_memmem_works_fast=yes
21488 else
21489 gl_cv_func_memmem_works_fast=no
21490 fi
21491 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21492 conftest.$ac_objext conftest.beam conftest.$ac_ext
21493 fi
21494
21495
21496 fi
21497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_fast" >&5
21498 $as_echo "$gl_cv_func_memmem_works_fast" >&6; }
21499 case "$gl_cv_func_memmem_works_fast" in
21500 *yes) ;;
21501 *)
21502 REPLACE_MEMMEM=1
21503 ;;
21504 esac
21505 fi
21506
21507 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
21508
21509
21510
21511
21512
21513
21514
21515
21516 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
21517
21518 fi
21519
21520
21521
21522
21523 for ac_func in memmem
21524 do :
21525 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
21526 if test "x$ac_cv_func_memmem" = xyes; then :
21527 cat >>confdefs.h <<_ACEOF
21528 #define HAVE_MEMMEM 1
21529 _ACEOF
21530
21531 fi
21532 done
21533
21534 if test $ac_cv_func_memmem = yes; then
21535 HAVE_MEMMEM=1
21536 else
21537 HAVE_MEMMEM=0
21538 fi
21539
21540 :
21541
21542
21543
21544
21545
21546 if test $ac_cv_have_decl_memmem = no; then
21547 HAVE_DECL_MEMMEM=0
21548 else
21549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
21550 $as_echo_n "checking whether memmem works... " >&6; }
21551 if ${gl_cv_func_memmem_works_always+:} false; then :
21552 $as_echo_n "(cached) " >&6
21553 else
21554 if test "$cross_compiling" = yes; then :
21555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21556 /* end confdefs.h. */
21557
21558 #ifdef __GNU_LIBRARY__
21559 #include <features.h>
21560 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
21561 || __GLIBC_MINOR__ > 12)) \
21562 || (__GLIBC__ > 2)) \
21563 || defined __UCLIBC__
21564 Lucky user
21565 #endif
21566 #elif defined __CYGWIN__
21567 #include <cygwin/version.h>
21568 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
21569 Lucky user
21570 #endif
21571 #else
21572 Lucky user
21573 #endif
21574
21575 _ACEOF
21576 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21577 $EGREP "Lucky user" >/dev/null 2>&1; then :
21578 gl_cv_func_memmem_works_always="guessing yes"
21579 else
21580 gl_cv_func_memmem_works_always="guessing no"
21581 fi
21582 rm -f conftest*
21583
21584
21585 else
21586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21587 /* end confdefs.h. */
21588
21589 #include <string.h> /* for memmem */
21590 #define P "_EF_BF_BD"
21591 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
21592 #define NEEDLE P P P P P
21593
21594 int
21595 main ()
21596 {
21597
21598 int result = 0;
21599 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
21600 result |= 1;
21601 /* Check for empty needle behavior. */
21602 {
21603 const char *haystack = "AAA";
21604 if (memmem (haystack, 3, NULL, 0) != haystack)
21605 result |= 2;
21606 }
21607 return result;
21608
21609 ;
21610 return 0;
21611 }
21612 _ACEOF
21613 if ac_fn_c_try_run "$LINENO"; then :
21614 gl_cv_func_memmem_works_always=yes
21615 else
21616 gl_cv_func_memmem_works_always=no
21617 fi
21618 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21619 conftest.$ac_objext conftest.beam conftest.$ac_ext
21620 fi
21621
21622
21623 fi
21624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
21625 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
21626 case "$gl_cv_func_memmem_works_always" in
21627 *yes) ;;
21628 *)
21629 REPLACE_MEMMEM=1
21630 ;;
21631 esac
21632 fi
21633 :
21634
21635 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
21636
21637
21638
21639
21640
21641
21642
21643
21644 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
21645
21646 fi
21647
21648
21649
21650
21651
21652 GNULIB_MEMMEM=1
21653
21654
21655
21656
21657
21658 $as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
21659
21660
21661
21662
21663
21664
21665
21666
21667
21668 for ac_func in mempcpy
21669 do :
21670 ac_fn_c_check_func "$LINENO" "mempcpy" "ac_cv_func_mempcpy"
21671 if test "x$ac_cv_func_mempcpy" = xyes; then :
21672 cat >>confdefs.h <<_ACEOF
21673 #define HAVE_MEMPCPY 1
21674 _ACEOF
21675
21676 fi
21677 done
21678
21679 if test $ac_cv_func_mempcpy = no; then
21680 HAVE_MEMPCPY=0
21681 fi
21682
21683 if test $HAVE_MEMPCPY = 0; then
21684
21685
21686
21687
21688
21689
21690
21691
21692 gl_LIBOBJS="$gl_LIBOBJS mempcpy.$ac_objext"
21693
21694
21695 :
21696
21697 fi
21698
21699
21700
21701
21702
21703 GNULIB_MEMPCPY=1
21704
21705
21706
21707
21708
21709 $as_echo "#define GNULIB_TEST_MEMPCPY 1" >>confdefs.h
21710
21711
21712
21713
21714
21715
21716
21717
21718 :
21719
21720
21721
21722
21723
21724 if test $ac_cv_have_decl_memrchr = no; then
21725 HAVE_DECL_MEMRCHR=0
21726 fi
21727
21728 for ac_func in memrchr
21729 do :
21730 ac_fn_c_check_func "$LINENO" "memrchr" "ac_cv_func_memrchr"
21731 if test "x$ac_cv_func_memrchr" = xyes; then :
21732 cat >>confdefs.h <<_ACEOF
21733 #define HAVE_MEMRCHR 1
21734 _ACEOF
21735
21736 fi
21737 done
21738
21739
21740 if test $ac_cv_func_memrchr = no; then
21741
21742
21743
21744
21745
21746
21747
21748
21749 gl_LIBOBJS="$gl_LIBOBJS memrchr.$ac_objext"
21750
21751 :
21752 fi
21753
21754
21755
21756
21757
21758 GNULIB_MEMRCHR=1
21759
21760
21761
21762
21763
21764 $as_echo "#define GNULIB_TEST_MEMRCHR 1" >>confdefs.h
21765
21766
21767
21768
21769
21770 :
21771
21772
21773
21774
21775
21776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir handles trailing slash" >&5
21777 $as_echo_n "checking whether mkdir handles trailing slash... " >&6; }
21778 if ${gl_cv_func_mkdir_trailing_slash_works+:} false; then :
21779 $as_echo_n "(cached) " >&6
21780 else
21781 rm -rf conftest.dir
21782 if test "$cross_compiling" = yes; then :
21783 case "$host_os" in
21784 # Guess yes on glibc systems.
21785 *-gnu*) gl_cv_func_mkdir_trailing_slash_works="guessing yes" ;;
21786 # If we don't know, assume the worst.
21787 *) gl_cv_func_mkdir_trailing_slash_works="guessing no" ;;
21788 esac
21789
21790 else
21791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21792 /* end confdefs.h. */
21793
21794 # include <sys/types.h>
21795 # include <sys/stat.h>
21796
21797 int
21798 main ()
21799 {
21800 return mkdir ("conftest.dir/", 0700);
21801 ;
21802 return 0;
21803 }
21804 _ACEOF
21805 if ac_fn_c_try_run "$LINENO"; then :
21806 gl_cv_func_mkdir_trailing_slash_works=yes
21807 else
21808 gl_cv_func_mkdir_trailing_slash_works=no
21809 fi
21810 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21811 conftest.$ac_objext conftest.beam conftest.$ac_ext
21812 fi
21813
21814 rm -rf conftest.dir
21815
21816
21817 fi
21818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mkdir_trailing_slash_works" >&5
21819 $as_echo "$gl_cv_func_mkdir_trailing_slash_works" >&6; }
21820 case "$gl_cv_func_mkdir_trailing_slash_works" in
21821 *yes) ;;
21822 *)
21823 REPLACE_MKDIR=1
21824 ;;
21825 esac
21826
21827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir handles trailing dot" >&5
21828 $as_echo_n "checking whether mkdir handles trailing dot... " >&6; }
21829 if ${gl_cv_func_mkdir_trailing_dot_works+:} false; then :
21830 $as_echo_n "(cached) " >&6
21831 else
21832 rm -rf conftest.dir
21833 if test "$cross_compiling" = yes; then :
21834 case "$host_os" in
21835 # Guess yes on glibc systems.
21836 *-gnu*) gl_cv_func_mkdir_trailing_dot_works="guessing yes" ;;
21837 # If we don't know, assume the worst.
21838 *) gl_cv_func_mkdir_trailing_dot_works="guessing no" ;;
21839 esac
21840
21841 else
21842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21843 /* end confdefs.h. */
21844
21845 # include <sys/types.h>
21846 # include <sys/stat.h>
21847
21848 int
21849 main ()
21850 {
21851 return !mkdir ("conftest.dir/./", 0700);
21852 ;
21853 return 0;
21854 }
21855 _ACEOF
21856 if ac_fn_c_try_run "$LINENO"; then :
21857 gl_cv_func_mkdir_trailing_dot_works=yes
21858 else
21859 gl_cv_func_mkdir_trailing_dot_works=no
21860 fi
21861 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21862 conftest.$ac_objext conftest.beam conftest.$ac_ext
21863 fi
21864
21865 rm -rf conftest.dir
21866
21867
21868 fi
21869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mkdir_trailing_dot_works" >&5
21870 $as_echo "$gl_cv_func_mkdir_trailing_dot_works" >&6; }
21871 case "$gl_cv_func_mkdir_trailing_dot_works" in
21872 *yes) ;;
21873 *)
21874 REPLACE_MKDIR=1
21875
21876 $as_echo "#define FUNC_MKDIR_DOT_BUG 1" >>confdefs.h
21877
21878 ;;
21879 esac
21880
21881 if test $REPLACE_MKDIR = 1; then
21882
21883
21884
21885
21886
21887
21888
21889
21890 gl_LIBOBJS="$gl_LIBOBJS mkdir.$ac_objext"
21891
21892 fi
21893
21894
21895 for ac_func in mkdtemp
21896 do :
21897 ac_fn_c_check_func "$LINENO" "mkdtemp" "ac_cv_func_mkdtemp"
21898 if test "x$ac_cv_func_mkdtemp" = xyes; then :
21899 cat >>confdefs.h <<_ACEOF
21900 #define HAVE_MKDTEMP 1
21901 _ACEOF
21902
21903 fi
21904 done
21905
21906 if test $ac_cv_func_mkdtemp = no; then
21907 HAVE_MKDTEMP=0
21908 fi
21909
21910 if test $HAVE_MKDTEMP = 0; then
21911
21912
21913
21914
21915
21916
21917
21918
21919 gl_LIBOBJS="$gl_LIBOBJS mkdtemp.$ac_objext"
21920
21921 :
21922
21923 fi
21924
21925
21926
21927
21928
21929 GNULIB_MKDTEMP=1
21930
21931
21932
21933
21934
21935 $as_echo "#define GNULIB_TEST_MKDTEMP 1" >>confdefs.h
21936
21937
21938
21939
21940
21941
21942
21943
21944
21945 :
21946
21947
21948
21949
21950
21951 if test $ac_cv_func_mkostemp != yes; then
21952 HAVE_MKOSTEMP=0
21953 fi
21954
21955 if test $HAVE_MKOSTEMP = 0; then
21956
21957
21958
21959
21960
21961
21962
21963
21964 gl_LIBOBJS="$gl_LIBOBJS mkostemp.$ac_objext"
21965
21966
21967
21968 fi
21969
21970
21971 cat >>confdefs.h <<_ACEOF
21972 #define GNULIB_MKOSTEMP 1
21973 _ACEOF
21974
21975
21976
21977
21978
21979
21980
21981 GNULIB_MKOSTEMP=1
21982
21983
21984
21985
21986
21987 $as_echo "#define GNULIB_TEST_MKOSTEMP 1" >>confdefs.h
21988
21989
21990
21991
21992 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
21993
21994
21995
21996
21997
21998
21999
22000
22001 gl_LIBOBJS="$gl_LIBOBJS msvc-inval.$ac_objext"
22002
22003 fi
22004
22005 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
22006
22007
22008
22009
22010
22011
22012
22013
22014 gl_LIBOBJS="$gl_LIBOBJS msvc-nothrow.$ac_objext"
22015
22016 fi
22017
22018
22019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <netinet/in.h> is self-contained" >&5
22020 $as_echo_n "checking whether <netinet/in.h> is self-contained... " >&6; }
22021 if ${gl_cv_header_netinet_in_h_selfcontained+:} false; then :
22022 $as_echo_n "(cached) " >&6
22023 else
22024
22025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22026 /* end confdefs.h. */
22027 #include <netinet/in.h>
22028 int
22029 main ()
22030 {
22031
22032 ;
22033 return 0;
22034 }
22035 _ACEOF
22036 if ac_fn_c_try_compile "$LINENO"; then :
22037 gl_cv_header_netinet_in_h_selfcontained=yes
22038 else
22039 gl_cv_header_netinet_in_h_selfcontained=no
22040 fi
22041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22042
22043 fi
22044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_netinet_in_h_selfcontained" >&5
22045 $as_echo "$gl_cv_header_netinet_in_h_selfcontained" >&6; }
22046 if test $gl_cv_header_netinet_in_h_selfcontained = yes; then
22047 NETINET_IN_H=''
22048 else
22049 NETINET_IN_H='netinet/in.h'
22050 for ac_header in netinet/in.h
22051 do :
22052 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
22053 if test "x$ac_cv_header_netinet_in_h" = xyes; then :
22054 cat >>confdefs.h <<_ACEOF
22055 #define HAVE_NETINET_IN_H 1
22056 _ACEOF
22057
22058 fi
22059
22060 done
22061
22062
22063
22064
22065
22066
22067
22068 :
22069
22070
22071
22072
22073
22074
22075
22076
22077 if test $gl_cv_have_include_next = yes; then
22078 gl_cv_next_netinet_in_h='<'netinet/in.h'>'
22079 else
22080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <netinet/in.h>" >&5
22081 $as_echo_n "checking absolute name of <netinet/in.h>... " >&6; }
22082 if ${gl_cv_next_netinet_in_h+:} false; then :
22083 $as_echo_n "(cached) " >&6
22084 else
22085
22086 if test $ac_cv_header_netinet_in_h = yes; then
22087
22088
22089
22090
22091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22092 /* end confdefs.h. */
22093 #include <netinet/in.h>
22094 _ACEOF
22095 case "$host_os" in
22096 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22097 *) gl_absname_cpp="$ac_cpp" ;;
22098 esac
22099
22100 case "$host_os" in
22101 mingw*)
22102 gl_dirsep_regex='[/\\]'
22103 ;;
22104 *)
22105 gl_dirsep_regex='\/'
22106 ;;
22107 esac
22108 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22109 gl_header_literal_regex=`echo 'netinet/in.h' \
22110 | sed -e "$gl_make_literal_regex_sed"`
22111 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22112 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22113 s|^/[^/]|//&|
22114 p
22115 q
22116 }'
22117
22118 gl_cv_absolute_netinet_in_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22119 sed -n "$gl_absolute_header_sed"`
22120
22121 gl_header=$gl_cv_absolute_netinet_in_h
22122 gl_cv_next_netinet_in_h='"'$gl_header'"'
22123 else
22124 gl_cv_next_netinet_in_h='<'netinet/in.h'>'
22125 fi
22126
22127
22128 fi
22129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_netinet_in_h" >&5
22130 $as_echo "$gl_cv_next_netinet_in_h" >&6; }
22131 fi
22132 NEXT_NETINET_IN_H=$gl_cv_next_netinet_in_h
22133
22134 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22135 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22136 gl_next_as_first_directive='<'netinet/in.h'>'
22137 else
22138 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22139 gl_next_as_first_directive=$gl_cv_next_netinet_in_h
22140 fi
22141 NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H=$gl_next_as_first_directive
22142
22143
22144
22145
22146 if test $ac_cv_header_netinet_in_h = yes; then
22147 HAVE_NETINET_IN_H=1
22148 else
22149 HAVE_NETINET_IN_H=0
22150 fi
22151
22152 fi
22153
22154 if test -n "$NETINET_IN_H"; then
22155 GL_GENERATE_NETINET_IN_H_TRUE=
22156 GL_GENERATE_NETINET_IN_H_FALSE='#'
22157 else
22158 GL_GENERATE_NETINET_IN_H_TRUE='#'
22159 GL_GENERATE_NETINET_IN_H_FALSE=
22160 fi
22161
22162
22163
22164
22165
22166 case "$host_os" in
22167 mingw* | pw*)
22168 REPLACE_OPEN=1
22169 ;;
22170 *)
22171
22172 :
22173
22174
22175
22176
22177
22178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open recognizes a trailing slash" >&5
22179 $as_echo_n "checking whether open recognizes a trailing slash... " >&6; }
22180 if ${gl_cv_func_open_slash+:} false; then :
22181 $as_echo_n "(cached) " >&6
22182 else
22183 # Assume that if we have lstat, we can also check symlinks.
22184 if test $ac_cv_func_lstat = yes; then
22185 touch conftest.tmp
22186 ln -s conftest.tmp conftest.lnk
22187 fi
22188 if test "$cross_compiling" = yes; then :
22189
22190 case "$host_os" in
22191 freebsd* | aix* | hpux* | solaris2.[0-9] | solaris2.[0-9].*)
22192 gl_cv_func_open_slash="guessing no" ;;
22193 *)
22194 gl_cv_func_open_slash="guessing yes" ;;
22195 esac
22196
22197 else
22198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22199 /* end confdefs.h. */
22200
22201 #include <fcntl.h>
22202 #if HAVE_UNISTD_H
22203 # include <unistd.h>
22204 #endif
22205 int main ()
22206 {
22207 int result = 0;
22208 #if HAVE_LSTAT
22209 if (open ("conftest.lnk/", O_RDONLY) != -1)
22210 result |= 1;
22211 #endif
22212 if (open ("conftest.sl/", O_CREAT, 0600) >= 0)
22213 result |= 2;
22214 return result;
22215 }
22216 _ACEOF
22217 if ac_fn_c_try_run "$LINENO"; then :
22218 gl_cv_func_open_slash=yes
22219 else
22220 gl_cv_func_open_slash=no
22221 fi
22222 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22223 conftest.$ac_objext conftest.beam conftest.$ac_ext
22224 fi
22225
22226 rm -f conftest.sl conftest.tmp conftest.lnk
22227
22228 fi
22229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_open_slash" >&5
22230 $as_echo "$gl_cv_func_open_slash" >&6; }
22231 case "$gl_cv_func_open_slash" in
22232 *no)
22233
22234 $as_echo "#define OPEN_TRAILING_SLASH_BUG 1" >>confdefs.h
22235
22236 REPLACE_OPEN=1
22237 ;;
22238 esac
22239 ;;
22240 esac
22241
22242 if test $REPLACE_OPEN = 0; then
22243
22244
22245
22246 :
22247
22248
22249
22250
22251
22252 if test $ac_cv_func_fchdir = no; then
22253 HAVE_FCHDIR=0
22254 fi
22255
22256 if test $HAVE_FCHDIR = 0; then
22257 REPLACE_OPEN=1
22258 fi
22259 fi
22260
22261
22262
22263 if test $REPLACE_OPEN = 1; then
22264
22265
22266
22267
22268
22269
22270
22271
22272 gl_LIBOBJS="$gl_LIBOBJS open.$ac_objext"
22273
22274
22275
22276 :
22277
22278 fi
22279
22280
22281
22282
22283
22284 GNULIB_OPEN=1
22285
22286
22287
22288
22289
22290 $as_echo "#define GNULIB_TEST_OPEN 1" >>confdefs.h
22291
22292
22293
22294
22295
22296
22297
22298 :
22299
22300
22301
22302
22303
22304
22305 case $ac_cv_func_openat+$gl_cv_func_lstat_dereferences_slashed_symlink in
22306 yes+*yes)
22307 ;;
22308 yes+*)
22309 # Solaris 9 has *at functions, but uniformly mishandles trailing
22310 # slash in all of them.
22311 REPLACE_OPENAT=1
22312 ;;
22313 *)
22314 HAVE_OPENAT=0
22315 ;;
22316 esac
22317
22318 if test $HAVE_OPENAT = 0 || test $REPLACE_OPENAT = 1; then
22319
22320
22321
22322
22323
22324
22325
22326
22327 gl_LIBOBJS="$gl_LIBOBJS openat.$ac_objext"
22328
22329
22330
22331 :
22332
22333 fi
22334
22335
22336 cat >>confdefs.h <<_ACEOF
22337 #define GNULIB_OPENAT 1
22338 _ACEOF
22339
22340
22341
22342
22343
22344
22345 GNULIB_OPENAT=1
22346
22347
22348
22349
22350
22351 $as_echo "#define GNULIB_TEST_OPENAT 1" >>confdefs.h
22352
22353
22354
22355
22356
22357
22358 for ac_func in opendir
22359 do :
22360 ac_fn_c_check_func "$LINENO" "opendir" "ac_cv_func_opendir"
22361 if test "x$ac_cv_func_opendir" = xyes; then :
22362 cat >>confdefs.h <<_ACEOF
22363 #define HAVE_OPENDIR 1
22364 _ACEOF
22365
22366 fi
22367 done
22368
22369 if test $ac_cv_func_opendir = no; then
22370 HAVE_OPENDIR=0
22371 fi
22372
22373
22374
22375
22376 :
22377
22378
22379
22380
22381
22382 if test $ac_cv_func_fchdir = no; then
22383 HAVE_FCHDIR=0
22384 fi
22385
22386 if test $HAVE_FCHDIR = 0; then
22387 if test $HAVE_OPENDIR = 1; then
22388 REPLACE_OPENDIR=1
22389 fi
22390 fi
22391
22392 case $host_os,$HAVE_OPENDIR in
22393 os2*,1)
22394 REPLACE_OPENDIR=1;;
22395 esac
22396
22397 if test $HAVE_OPENDIR = 0 || test $REPLACE_OPENDIR = 1; then
22398
22399
22400
22401
22402
22403
22404
22405
22406 gl_LIBOBJS="$gl_LIBOBJS opendir.$ac_objext"
22407
22408 fi
22409
22410
22411
22412
22413
22414 GNULIB_OPENDIR=1
22415
22416
22417
22418
22419
22420 $as_echo "#define GNULIB_TEST_OPENDIR 1" >>confdefs.h
22421
22422
22423
22424
22425
22426 :
22427
22428
22429
22430
22431
22432
22433
22434
22435
22436
22437 for ac_func in rawmemchr
22438 do :
22439 ac_fn_c_check_func "$LINENO" "rawmemchr" "ac_cv_func_rawmemchr"
22440 if test "x$ac_cv_func_rawmemchr" = xyes; then :
22441 cat >>confdefs.h <<_ACEOF
22442 #define HAVE_RAWMEMCHR 1
22443 _ACEOF
22444
22445 fi
22446 done
22447
22448 if test $ac_cv_func_rawmemchr = no; then
22449 HAVE_RAWMEMCHR=0
22450 fi
22451
22452 if test $HAVE_RAWMEMCHR = 0; then
22453
22454
22455
22456
22457
22458
22459
22460
22461 gl_LIBOBJS="$gl_LIBOBJS rawmemchr.$ac_objext"
22462
22463 :
22464 fi
22465
22466
22467
22468
22469
22470 GNULIB_RAWMEMCHR=1
22471
22472
22473
22474
22475
22476 $as_echo "#define GNULIB_TEST_RAWMEMCHR 1" >>confdefs.h
22477
22478
22479
22480
22481
22482
22483 for ac_func in readdir
22484 do :
22485 ac_fn_c_check_func "$LINENO" "readdir" "ac_cv_func_readdir"
22486 if test "x$ac_cv_func_readdir" = xyes; then :
22487 cat >>confdefs.h <<_ACEOF
22488 #define HAVE_READDIR 1
22489 _ACEOF
22490
22491 fi
22492 done
22493
22494 if test $ac_cv_func_readdir = no; then
22495 HAVE_READDIR=0
22496 fi
22497
22498 if test $HAVE_READDIR = 0; then
22499
22500
22501
22502
22503
22504
22505
22506
22507 gl_LIBOBJS="$gl_LIBOBJS readdir.$ac_objext"
22508
22509 fi
22510
22511
22512
22513
22514
22515 GNULIB_READDIR=1
22516
22517
22518
22519
22520
22521 $as_echo "#define GNULIB_TEST_READDIR 1" >>confdefs.h
22522
22523
22524
22525
22526
22527
22528 :
22529
22530
22531
22532
22533
22534 if test $ac_cv_func_readlink = no; then
22535 HAVE_READLINK=0
22536 else
22537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
22538 $as_echo_n "checking whether readlink signature is correct... " >&6; }
22539 if ${gl_cv_decl_readlink_works+:} false; then :
22540 $as_echo_n "(cached) " >&6
22541 else
22542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22543 /* end confdefs.h. */
22544 #include <unistd.h>
22545 /* Cause compilation failure if original declaration has wrong type. */
22546 ssize_t readlink (const char *, char *, size_t);
22547 int
22548 main ()
22549 {
22550
22551 ;
22552 return 0;
22553 }
22554 _ACEOF
22555 if ac_fn_c_try_compile "$LINENO"; then :
22556 gl_cv_decl_readlink_works=yes
22557 else
22558 gl_cv_decl_readlink_works=no
22559 fi
22560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22561 fi
22562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
22563 $as_echo "$gl_cv_decl_readlink_works" >&6; }
22564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
22565 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
22566 if ${gl_cv_func_readlink_works+:} false; then :
22567 $as_echo_n "(cached) " >&6
22568 else
22569 # We have readlink, so assume ln -s works.
22570 ln -s conftest.no-such conftest.link
22571 ln -s conftest.link conftest.lnk2
22572 if test "$cross_compiling" = yes; then :
22573 case "$host_os" in
22574 # Guess yes on glibc systems.
22575 *-gnu*) gl_cv_func_readlink_works="guessing yes" ;;
22576 # If we don't know, assume the worst.
22577 *) gl_cv_func_readlink_works="guessing no" ;;
22578 esac
22579
22580 else
22581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22582 /* end confdefs.h. */
22583 #include <unistd.h>
22584
22585 int
22586 main ()
22587 {
22588 char buf[20];
22589 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
22590 ;
22591 return 0;
22592 }
22593 _ACEOF
22594 if ac_fn_c_try_run "$LINENO"; then :
22595 gl_cv_func_readlink_works=yes
22596 else
22597 gl_cv_func_readlink_works=no
22598 fi
22599 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22600 conftest.$ac_objext conftest.beam conftest.$ac_ext
22601 fi
22602
22603 rm -f conftest.link conftest.lnk2
22604 fi
22605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
22606 $as_echo "$gl_cv_func_readlink_works" >&6; }
22607 case "$gl_cv_func_readlink_works" in
22608 *yes)
22609 if test "$gl_cv_decl_readlink_works" != yes; then
22610 REPLACE_READLINK=1
22611 fi
22612 ;;
22613 *)
22614
22615 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
22616
22617 REPLACE_READLINK=1
22618 ;;
22619 esac
22620 fi
22621
22622 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
22623
22624
22625
22626
22627
22628
22629
22630
22631 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
22632
22633
22634 :
22635
22636 fi
22637
22638
22639
22640
22641
22642 GNULIB_READLINK=1
22643
22644
22645
22646
22647
22648 $as_echo "#define GNULIB_TEST_READLINK 1" >>confdefs.h
22649
22650
22651
22652
22653
22654
22655 if test $gl_cv_func_malloc_posix = yes; then
22656
22657 $as_echo "#define HAVE_REALLOC_POSIX 1" >>confdefs.h
22658
22659 else
22660 REPLACE_REALLOC=1
22661 fi
22662
22663 if test $REPLACE_REALLOC = 1; then
22664
22665
22666
22667
22668
22669
22670
22671
22672 gl_LIBOBJS="$gl_LIBOBJS realloc.$ac_objext"
22673
22674 fi
22675
22676
22677
22678
22679
22680 GNULIB_REALLOC_POSIX=1
22681
22682
22683
22684
22685
22686 $as_echo "#define GNULIB_TEST_REALLOC_POSIX 1" >>confdefs.h
22687
22688
22689
22690
22691
22692
22693
22694 :
22695
22696
22697
22698
22699
22700
22701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename honors trailing slash on destination" >&5
22702 $as_echo_n "checking whether rename honors trailing slash on destination... " >&6; }
22703 if ${gl_cv_func_rename_slash_dst_works+:} false; then :
22704 $as_echo_n "(cached) " >&6
22705 else
22706 rm -rf conftest.f conftest.f1 conftest.f2 conftest.d1 conftest.d2 conftest.lnk
22707 touch conftest.f && touch conftest.f1 && mkdir conftest.d1 ||
22708 as_fn_error $? "cannot create temporary files" "$LINENO" 5
22709 # Assume that if we have lstat, we can also check symlinks.
22710 if test $ac_cv_func_lstat = yes; then
22711 ln -s conftest.f conftest.lnk
22712 fi
22713 if test "$cross_compiling" = yes; then :
22714 case "$host_os" in
22715 # Guess yes on glibc systems.
22716 *-gnu*) gl_cv_func_rename_slash_dst_works="guessing yes" ;;
22717 # If we don't know, assume the worst.
22718 *) gl_cv_func_rename_slash_dst_works="guessing no" ;;
22719 esac
22720
22721 else
22722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22723 /* end confdefs.h. */
22724
22725 # include <stdio.h>
22726 # include <stdlib.h>
22727
22728 int
22729 main ()
22730 {
22731 int result = 0;
22732 if (rename ("conftest.f1", "conftest.f2/") == 0)
22733 result |= 1;
22734 if (rename ("conftest.d1", "conftest.d2/") != 0)
22735 result |= 2;
22736 #if HAVE_LSTAT
22737 if (rename ("conftest.f", "conftest.lnk/") == 0)
22738 result |= 4;
22739 #endif
22740 return result;
22741
22742 ;
22743 return 0;
22744 }
22745 _ACEOF
22746 if ac_fn_c_try_run "$LINENO"; then :
22747 gl_cv_func_rename_slash_dst_works=yes
22748 else
22749 gl_cv_func_rename_slash_dst_works=no
22750 fi
22751 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22752 conftest.$ac_objext conftest.beam conftest.$ac_ext
22753 fi
22754
22755 rm -rf conftest.f conftest.f1 conftest.f2 conftest.d1 conftest.d2 conftest.lnk
22756
22757 fi
22758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_slash_dst_works" >&5
22759 $as_echo "$gl_cv_func_rename_slash_dst_works" >&6; }
22760 case "$gl_cv_func_rename_slash_dst_works" in
22761 *yes) ;;
22762 *)
22763 REPLACE_RENAME=1
22764
22765 $as_echo "#define RENAME_TRAILING_SLASH_DEST_BUG 1" >>confdefs.h
22766
22767 ;;
22768 esac
22769
22770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename honors trailing slash on source" >&5
22771 $as_echo_n "checking whether rename honors trailing slash on source... " >&6; }
22772 if ${gl_cv_func_rename_slash_src_works+:} false; then :
22773 $as_echo_n "(cached) " >&6
22774 else
22775 rm -rf conftest.f conftest.f1 conftest.d1 conftest.d2 conftest.d3 conftest.lnk
22776 touch conftest.f && touch conftest.f1 && mkdir conftest.d1 ||
22777 as_fn_error $? "cannot create temporary files" "$LINENO" 5
22778 # Assume that if we have lstat, we can also check symlinks.
22779 if test $ac_cv_func_lstat = yes; then
22780 ln -s conftest.f conftest.lnk
22781 fi
22782 if test "$cross_compiling" = yes; then :
22783 case "$host_os" in
22784 # Guess yes on glibc systems.
22785 *-gnu*) gl_cv_func_rename_slash_src_works="guessing yes" ;;
22786 # If we don't know, assume the worst.
22787 *) gl_cv_func_rename_slash_src_works="guessing no" ;;
22788 esac
22789
22790 else
22791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22792 /* end confdefs.h. */
22793
22794 # include <stdio.h>
22795 # include <stdlib.h>
22796
22797 int
22798 main ()
22799 {
22800 int result = 0;
22801 if (rename ("conftest.f1/", "conftest.d3") == 0)
22802 result |= 1;
22803 if (rename ("conftest.d1/", "conftest.d2") != 0)
22804 result |= 2;
22805 #if HAVE_LSTAT
22806 if (rename ("conftest.lnk/", "conftest.f") == 0)
22807 result |= 4;
22808 #endif
22809 return result;
22810
22811 ;
22812 return 0;
22813 }
22814 _ACEOF
22815 if ac_fn_c_try_run "$LINENO"; then :
22816 gl_cv_func_rename_slash_src_works=yes
22817 else
22818 gl_cv_func_rename_slash_src_works=no
22819 fi
22820 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22821 conftest.$ac_objext conftest.beam conftest.$ac_ext
22822 fi
22823
22824 rm -rf conftest.f conftest.f1 conftest.d1 conftest.d2 conftest.d3 conftest.lnk
22825
22826 fi
22827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_slash_src_works" >&5
22828 $as_echo "$gl_cv_func_rename_slash_src_works" >&6; }
22829 case "$gl_cv_func_rename_slash_src_works" in
22830 *yes) ;;
22831 *)
22832 REPLACE_RENAME=1
22833
22834 $as_echo "#define RENAME_TRAILING_SLASH_SOURCE_BUG 1" >>confdefs.h
22835
22836 ;;
22837 esac
22838
22839
22840 :
22841
22842
22843
22844
22845
22846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename manages hard links correctly" >&5
22847 $as_echo_n "checking whether rename manages hard links correctly... " >&6; }
22848 if ${gl_cv_func_rename_link_works+:} false; then :
22849 $as_echo_n "(cached) " >&6
22850 else
22851 if test $ac_cv_func_link = yes; then
22852 rm -rf conftest.f conftest.f1
22853 if touch conftest.f && ln conftest.f conftest.f1 &&
22854 set x `ls -i conftest.f conftest.f1` && test "" = ""; then
22855 if test "$cross_compiling" = yes; then :
22856 case "$host_os" in
22857 # Guess yes on glibc systems.
22858 *-gnu*) gl_cv_func_rename_link_works="guessing yes" ;;
22859 # If we don't know, assume the worst.
22860 *) gl_cv_func_rename_link_works="guessing no" ;;
22861 esac
22862
22863 else
22864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22865 /* end confdefs.h. */
22866
22867 # include <stdio.h>
22868 # include <stdlib.h>
22869 # include <unistd.h>
22870
22871 int
22872 main ()
22873 {
22874 int result = 0;
22875 if (rename ("conftest.f", "conftest.f1"))
22876 result |= 1;
22877 if (unlink ("conftest.f1"))
22878 result |= 2;
22879 if (rename ("conftest.f", "conftest.f"))
22880 result |= 4;
22881 if (rename ("conftest.f1", "conftest.f1") == 0)
22882 result |= 8;
22883 return result;
22884
22885 ;
22886 return 0;
22887 }
22888 _ACEOF
22889 if ac_fn_c_try_run "$LINENO"; then :
22890 gl_cv_func_rename_link_works=yes
22891 else
22892 gl_cv_func_rename_link_works=no
22893 fi
22894 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22895 conftest.$ac_objext conftest.beam conftest.$ac_ext
22896 fi
22897
22898 else
22899 gl_cv_func_rename_link_works="guessing no"
22900 fi
22901 rm -rf conftest.f conftest.f1
22902 else
22903 gl_cv_func_rename_link_works=yes
22904 fi
22905
22906 fi
22907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_link_works" >&5
22908 $as_echo "$gl_cv_func_rename_link_works" >&6; }
22909 case "$gl_cv_func_rename_link_works" in
22910 *yes) ;;
22911 *)
22912 REPLACE_RENAME=1
22913
22914 $as_echo "#define RENAME_HARD_LINK_BUG 1" >>confdefs.h
22915
22916 ;;
22917 esac
22918
22919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename manages existing destinations correctly" >&5
22920 $as_echo_n "checking whether rename manages existing destinations correctly... " >&6; }
22921 if ${gl_cv_func_rename_dest_works+:} false; then :
22922 $as_echo_n "(cached) " >&6
22923 else
22924 rm -rf conftest.f conftest.d1 conftest.d2
22925 touch conftest.f && mkdir conftest.d1 conftest.d2 ||
22926 as_fn_error $? "cannot create temporary files" "$LINENO" 5
22927 if test "$cross_compiling" = yes; then :
22928 case "$host_os" in
22929 # Guess yes on glibc systems.
22930 *-gnu*) gl_cv_func_rename_dest_works="guessing yes" ;;
22931 # If we don't know, assume the worst.
22932 *) gl_cv_func_rename_dest_works="guessing no" ;;
22933 esac
22934
22935 else
22936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22937 /* end confdefs.h. */
22938
22939 # include <stdio.h>
22940 # include <stdlib.h>
22941
22942 int
22943 main ()
22944 {
22945 int result = 0;
22946 if (rename ("conftest.d1", "conftest.d2") != 0)
22947 result |= 1;
22948 if (rename ("conftest.d2", "conftest.f") == 0)
22949 result |= 2;
22950 return result;
22951
22952 ;
22953 return 0;
22954 }
22955 _ACEOF
22956 if ac_fn_c_try_run "$LINENO"; then :
22957 gl_cv_func_rename_dest_works=yes
22958 else
22959 gl_cv_func_rename_dest_works=no
22960 fi
22961 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22962 conftest.$ac_objext conftest.beam conftest.$ac_ext
22963 fi
22964
22965 rm -rf conftest.f conftest.d1 conftest.d2
22966
22967 fi
22968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_dest_works" >&5
22969 $as_echo "$gl_cv_func_rename_dest_works" >&6; }
22970 case "$gl_cv_func_rename_dest_works" in
22971 *yes) ;;
22972 *)
22973 REPLACE_RENAME=1
22974
22975 $as_echo "#define RENAME_DEST_EXISTS_BUG 1" >>confdefs.h
22976
22977 ;;
22978 esac
22979
22980 if test $REPLACE_RENAME = 1; then
22981
22982
22983
22984
22985
22986
22987
22988
22989 gl_LIBOBJS="$gl_LIBOBJS rename.$ac_objext"
22990
22991 fi
22992
22993
22994
22995
22996
22997 GNULIB_RENAME=1
22998
22999
23000
23001
23002
23003 $as_echo "#define GNULIB_TEST_RENAME 1" >>confdefs.h
23004
23005
23006
23007
23008
23009
23010 for ac_func in rewinddir
23011 do :
23012 ac_fn_c_check_func "$LINENO" "rewinddir" "ac_cv_func_rewinddir"
23013 if test "x$ac_cv_func_rewinddir" = xyes; then :
23014 cat >>confdefs.h <<_ACEOF
23015 #define HAVE_REWINDDIR 1
23016 _ACEOF
23017
23018 fi
23019 done
23020
23021 if test $ac_cv_func_rewinddir = no; then
23022 HAVE_REWINDDIR=0
23023 fi
23024
23025 if test $HAVE_REWINDDIR = 0; then
23026
23027
23028
23029
23030
23031
23032
23033
23034 gl_LIBOBJS="$gl_LIBOBJS rewinddir.$ac_objext"
23035
23036 fi
23037
23038
23039
23040
23041
23042 GNULIB_REWINDDIR=1
23043
23044
23045
23046
23047
23048 $as_echo "#define GNULIB_TEST_REWINDDIR 1" >>confdefs.h
23049
23050
23051
23052
23053
23054
23055 :
23056
23057
23058
23059
23060
23061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rmdir works" >&5
23062 $as_echo_n "checking whether rmdir works... " >&6; }
23063 if ${gl_cv_func_rmdir_works+:} false; then :
23064 $as_echo_n "(cached) " >&6
23065 else
23066 mkdir conftest.dir
23067 touch conftest.file
23068 if test "$cross_compiling" = yes; then :
23069 case "$host_os" in
23070 # Guess yes on glibc systems.
23071 *-gnu*) gl_cv_func_rmdir_works="guessing yes" ;;
23072 # If we don't know, assume the worst.
23073 *) gl_cv_func_rmdir_works="guessing no" ;;
23074 esac
23075
23076 else
23077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23078 /* end confdefs.h. */
23079 #include <stdio.h>
23080 #include <errno.h>
23081 #if HAVE_UNISTD_H
23082 # include <unistd.h>
23083 #else /* on Windows with MSVC */
23084 # include <direct.h>
23085 #endif
23086
23087 int
23088 main ()
23089 {
23090 int result = 0;
23091 if (!rmdir ("conftest.file/"))
23092 result |= 1;
23093 else if (errno != ENOTDIR)
23094 result |= 2;
23095 if (!rmdir ("conftest.dir/./"))
23096 result |= 4;
23097 return result;
23098
23099 ;
23100 return 0;
23101 }
23102 _ACEOF
23103 if ac_fn_c_try_run "$LINENO"; then :
23104 gl_cv_func_rmdir_works=yes
23105 else
23106 gl_cv_func_rmdir_works=no
23107 fi
23108 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23109 conftest.$ac_objext conftest.beam conftest.$ac_ext
23110 fi
23111
23112 rm -rf conftest.dir conftest.file
23113 fi
23114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rmdir_works" >&5
23115 $as_echo "$gl_cv_func_rmdir_works" >&6; }
23116 case "$gl_cv_func_rmdir_works" in
23117 *yes) ;;
23118 *)
23119 REPLACE_RMDIR=1
23120 ;;
23121 esac
23122
23123 if test $REPLACE_RMDIR = 1; then
23124
23125
23126
23127
23128
23129
23130
23131
23132 gl_LIBOBJS="$gl_LIBOBJS rmdir.$ac_objext"
23133
23134 fi
23135
23136
23137
23138
23139
23140 GNULIB_RMDIR=1
23141
23142
23143
23144
23145
23146 $as_echo "#define GNULIB_TEST_RMDIR 1" >>confdefs.h
23147
23148
23149
23150
23151
23152 :
23153
23154
23155
23156
23157
23158
23159
23160
23161
23162
23163
23164 :
23165
23166
23167
23168
23169
23170 if test $ac_cv_func_secure_getenv = no; then
23171 HAVE_SECURE_GETENV=0
23172 fi
23173
23174 if test $HAVE_SECURE_GETENV = 0; then
23175
23176
23177
23178
23179
23180
23181
23182
23183 gl_LIBOBJS="$gl_LIBOBJS secure_getenv.$ac_objext"
23184
23185
23186 for ac_func in __secure_getenv
23187 do :
23188 ac_fn_c_check_func "$LINENO" "__secure_getenv" "ac_cv_func___secure_getenv"
23189 if test "x$ac_cv_func___secure_getenv" = xyes; then :
23190 cat >>confdefs.h <<_ACEOF
23191 #define HAVE___SECURE_GETENV 1
23192 _ACEOF
23193
23194 fi
23195 done
23196
23197 if test $ac_cv_func___secure_getenv = no; then
23198 for ac_func in issetugid
23199 do :
23200 ac_fn_c_check_func "$LINENO" "issetugid" "ac_cv_func_issetugid"
23201 if test "x$ac_cv_func_issetugid" = xyes; then :
23202 cat >>confdefs.h <<_ACEOF
23203 #define HAVE_ISSETUGID 1
23204 _ACEOF
23205
23206 fi
23207 done
23208
23209 fi
23210
23211 :
23212
23213
23214
23215
23216
23217
23218
23219
23220
23221
23222
23223
23224
23225
23226
23227 fi
23228
23229
23230
23231
23232
23233 GNULIB_SECURE_GETENV=1
23234
23235
23236
23237
23238
23239 $as_echo "#define GNULIB_TEST_SECURE_GETENV 1" >>confdefs.h
23240
23241
23242
23243
23244
23245 if test $ac_cv_func_setenv = no; then
23246 HAVE_SETENV=0
23247 else
23248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setenv validates arguments" >&5
23249 $as_echo_n "checking whether setenv validates arguments... " >&6; }
23250 if ${gl_cv_func_setenv_works+:} false; then :
23251 $as_echo_n "(cached) " >&6
23252 else
23253 if test "$cross_compiling" = yes; then :
23254 case "$host_os" in
23255 # Guess yes on glibc systems.
23256 *-gnu*) gl_cv_func_setenv_works="guessing yes" ;;
23257 # If we don't know, assume the worst.
23258 *) gl_cv_func_setenv_works="guessing no" ;;
23259 esac
23260
23261 else
23262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23263 /* end confdefs.h. */
23264
23265 #include <stdlib.h>
23266 #include <errno.h>
23267 #include <string.h>
23268
23269 int
23270 main ()
23271 {
23272
23273 int result = 0;
23274 {
23275 if (setenv ("", "", 0) != -1)
23276 result |= 1;
23277 else if (errno != EINVAL)
23278 result |= 2;
23279 }
23280 {
23281 if (setenv ("a", "=", 1) != 0)
23282 result |= 4;
23283 else if (strcmp (getenv ("a"), "=") != 0)
23284 result |= 8;
23285 }
23286 return result;
23287
23288 ;
23289 return 0;
23290 }
23291 _ACEOF
23292 if ac_fn_c_try_run "$LINENO"; then :
23293 gl_cv_func_setenv_works=yes
23294 else
23295 gl_cv_func_setenv_works=no
23296 fi
23297 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23298 conftest.$ac_objext conftest.beam conftest.$ac_ext
23299 fi
23300
23301 fi
23302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setenv_works" >&5
23303 $as_echo "$gl_cv_func_setenv_works" >&6; }
23304 case "$gl_cv_func_setenv_works" in
23305 *yes) ;;
23306 *)
23307 REPLACE_SETENV=1
23308 ;;
23309 esac
23310 fi
23311
23312 if test $HAVE_SETENV = 0 || test $REPLACE_SETENV = 1; then
23313
23314
23315
23316
23317
23318
23319
23320
23321 gl_LIBOBJS="$gl_LIBOBJS setenv.$ac_objext"
23322
23323 fi
23324
23325
23326
23327
23328
23329 GNULIB_SETENV=1
23330
23331
23332
23333
23334
23335 $as_echo "#define GNULIB_TEST_SETENV 1" >>confdefs.h
23336
23337
23338
23339
23340
23341
23342
23343
23344
23345
23346
23347
23348
23349
23350 if test $gl_cv_have_include_next = yes; then
23351 gl_cv_next_signal_h='<'signal.h'>'
23352 else
23353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
23354 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
23355 if ${gl_cv_next_signal_h+:} false; then :
23356 $as_echo_n "(cached) " >&6
23357 else
23358
23359
23360
23361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23362 /* end confdefs.h. */
23363 #include <signal.h>
23364 _ACEOF
23365 case "$host_os" in
23366 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23367 *) gl_absname_cpp="$ac_cpp" ;;
23368 esac
23369
23370 case "$host_os" in
23371 mingw*)
23372 gl_dirsep_regex='[/\\]'
23373 ;;
23374 *)
23375 gl_dirsep_regex='\/'
23376 ;;
23377 esac
23378 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23379 gl_header_literal_regex=`echo 'signal.h' \
23380 | sed -e "$gl_make_literal_regex_sed"`
23381 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23382 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23383 s|^/[^/]|//&|
23384 p
23385 q
23386 }'
23387
23388 gl_cv_absolute_signal_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23389 sed -n "$gl_absolute_header_sed"`
23390
23391 gl_header=$gl_cv_absolute_signal_h
23392 gl_cv_next_signal_h='"'$gl_header'"'
23393
23394
23395 fi
23396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
23397 $as_echo "$gl_cv_next_signal_h" >&6; }
23398 fi
23399 NEXT_SIGNAL_H=$gl_cv_next_signal_h
23400
23401 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23402 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23403 gl_next_as_first_directive='<'signal.h'>'
23404 else
23405 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23406 gl_next_as_first_directive=$gl_cv_next_signal_h
23407 fi
23408 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
23409
23410
23411
23412
23413
23414 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
23415 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
23416 ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
23417 #include <signal.h>
23418
23419 "
23420 if test "x$ac_cv_type_volatile_sig_atomic_t" = xyes; then :
23421
23422 else
23423 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
23424 fi
23425
23426
23427
23428
23429
23430
23431
23432 ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
23433 #include <signal.h>
23434
23435 "
23436 if test "x$ac_cv_type_sighandler_t" = xyes; then :
23437
23438 else
23439 HAVE_SIGHANDLER_T=0
23440 fi
23441
23442
23443
23444 for gl_func in pthread_sigmask sigaction sigaddset sigdelset sigemptyset sigfillset sigismember sigpending sigprocmask; do
23445 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
23446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
23447 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
23448 if eval \${$as_gl_Symbol+:} false; then :
23449 $as_echo_n "(cached) " >&6
23450 else
23451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23452 /* end confdefs.h. */
23453 #include <signal.h>
23454
23455 int
23456 main ()
23457 {
23458 #undef $gl_func
23459 (void) $gl_func;
23460 ;
23461 return 0;
23462 }
23463 _ACEOF
23464 if ac_fn_c_try_compile "$LINENO"; then :
23465 eval "$as_gl_Symbol=yes"
23466 else
23467 eval "$as_gl_Symbol=no"
23468 fi
23469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23470 fi
23471 eval ac_res=\$$as_gl_Symbol
23472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23473 $as_echo "$ac_res" >&6; }
23474 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
23475 cat >>confdefs.h <<_ACEOF
23476 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
23477 _ACEOF
23478
23479 eval ac_cv_have_decl_$gl_func=yes
23480 fi
23481 done
23482
23483
23484 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
23485 /* <sys/types.h> is not needed according to POSIX, but the
23486 <sys/socket.h> in i386-unknown-freebsd4.10 and
23487 powerpc-apple-darwin5.5 required it. */
23488 #include <sys/types.h>
23489 #if HAVE_SYS_SOCKET_H
23490 # include <sys/socket.h>
23491 #elif HAVE_WS2TCPIP_H
23492 # include <ws2tcpip.h>
23493 #endif
23494
23495 "
23496 if test "x$ac_cv_type_socklen_t" = xyes; then :
23497
23498 else
23499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
23500 $as_echo_n "checking for socklen_t equivalent... " >&6; }
23501 if ${gl_cv_socklen_t_equiv+:} false; then :
23502 $as_echo_n "(cached) " >&6
23503 else
23504 # Systems have either "struct sockaddr *" or
23505 # "void *" as the second argument to getpeername
23506 gl_cv_socklen_t_equiv=
23507 for arg2 in "struct sockaddr" void; do
23508 for t in int size_t "unsigned int" "long int" "unsigned long int"; do
23509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23510 /* end confdefs.h. */
23511 #include <sys/types.h>
23512 #include <sys/socket.h>
23513
23514 int getpeername (int, $arg2 *, $t *);
23515 int
23516 main ()
23517 {
23518 $t len;
23519 getpeername (0, 0, &len);
23520 ;
23521 return 0;
23522 }
23523 _ACEOF
23524 if ac_fn_c_try_compile "$LINENO"; then :
23525 gl_cv_socklen_t_equiv="$t"
23526 fi
23527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23528 test "$gl_cv_socklen_t_equiv" != "" && break
23529 done
23530 test "$gl_cv_socklen_t_equiv" != "" && break
23531 done
23532
23533 fi
23534
23535 if test "$gl_cv_socklen_t_equiv" = ""; then
23536 as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5
23537 fi
23538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
23539 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
23540
23541 cat >>confdefs.h <<_ACEOF
23542 #define socklen_t $gl_cv_socklen_t_equiv
23543 _ACEOF
23544
23545 fi
23546
23547
23548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
23549 $as_echo_n "checking for ssize_t... " >&6; }
23550 if ${gt_cv_ssize_t+:} false; then :
23551 $as_echo_n "(cached) " >&6
23552 else
23553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23554 /* end confdefs.h. */
23555 #include <sys/types.h>
23556 int
23557 main ()
23558 {
23559 int x = sizeof (ssize_t *) + sizeof (ssize_t);
23560 return !x;
23561 ;
23562 return 0;
23563 }
23564 _ACEOF
23565 if ac_fn_c_try_compile "$LINENO"; then :
23566 gt_cv_ssize_t=yes
23567 else
23568 gt_cv_ssize_t=no
23569 fi
23570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23571 fi
23572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
23573 $as_echo "$gt_cv_ssize_t" >&6; }
23574 if test $gt_cv_ssize_t = no; then
23575
23576 $as_echo "#define ssize_t int" >>confdefs.h
23577
23578 fi
23579
23580
23581
23582
23583 :
23584
23585
23586
23587
23588
23589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
23590 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
23591 if ${gl_cv_func_stat_dir_slash+:} false; then :
23592 $as_echo_n "(cached) " >&6
23593 else
23594 if test "$cross_compiling" = yes; then :
23595 case $host_os in
23596 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
23597 *) gl_cv_func_stat_dir_slash="guessing yes";;
23598 esac
23599 else
23600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23601 /* end confdefs.h. */
23602 #include <sys/stat.h>
23603
23604 int
23605 main ()
23606 {
23607 struct stat st; return stat (".", &st) != stat ("./", &st);
23608 ;
23609 return 0;
23610 }
23611 _ACEOF
23612 if ac_fn_c_try_run "$LINENO"; then :
23613 gl_cv_func_stat_dir_slash=yes
23614 else
23615 gl_cv_func_stat_dir_slash=no
23616 fi
23617 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23618 conftest.$ac_objext conftest.beam conftest.$ac_ext
23619 fi
23620
23621 fi
23622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
23623 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
23624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
23625 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
23626 if ${gl_cv_func_stat_file_slash+:} false; then :
23627 $as_echo_n "(cached) " >&6
23628 else
23629 touch conftest.tmp
23630 # Assume that if we have lstat, we can also check symlinks.
23631 if test $ac_cv_func_lstat = yes; then
23632 ln -s conftest.tmp conftest.lnk
23633 fi
23634 if test "$cross_compiling" = yes; then :
23635 case "$host_os" in
23636 # Guess yes on glibc systems.
23637 *-gnu*) gl_cv_func_stat_file_slash="guessing yes" ;;
23638 # If we don't know, assume the worst.
23639 *) gl_cv_func_stat_file_slash="guessing no" ;;
23640 esac
23641
23642 else
23643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23644 /* end confdefs.h. */
23645 #include <sys/stat.h>
23646
23647 int
23648 main ()
23649 {
23650 int result = 0;
23651 struct stat st;
23652 if (!stat ("conftest.tmp/", &st))
23653 result |= 1;
23654 #if HAVE_LSTAT
23655 if (!stat ("conftest.lnk/", &st))
23656 result |= 2;
23657 #endif
23658 return result;
23659
23660 ;
23661 return 0;
23662 }
23663 _ACEOF
23664 if ac_fn_c_try_run "$LINENO"; then :
23665 gl_cv_func_stat_file_slash=yes
23666 else
23667 gl_cv_func_stat_file_slash=no
23668 fi
23669 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23670 conftest.$ac_objext conftest.beam conftest.$ac_ext
23671 fi
23672
23673 rm -f conftest.tmp conftest.lnk
23674 fi
23675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
23676 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
23677 case $gl_cv_func_stat_dir_slash in
23678 *no) REPLACE_STAT=1
23679
23680 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
23681 ;;
23682 esac
23683 case $gl_cv_func_stat_file_slash in
23684 *no) REPLACE_STAT=1
23685
23686 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
23687 ;;
23688 esac
23689
23690 if test $REPLACE_STAT = 1; then
23691
23692
23693
23694
23695
23696
23697
23698
23699 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
23700
23701 :
23702 fi
23703
23704
23705
23706
23707
23708 GNULIB_STAT=1
23709
23710
23711
23712
23713
23714 $as_echo "#define GNULIB_TEST_STAT 1" >>confdefs.h
23715
23716
23717
23718
23719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
23720 $as_echo_n "checking for working stdalign.h... " >&6; }
23721 if ${gl_cv_header_working_stdalign_h+:} false; then :
23722 $as_echo_n "(cached) " >&6
23723 else
23724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23725 /* end confdefs.h. */
23726 #include <stdalign.h>
23727 #include <stddef.h>
23728
23729 /* Test that alignof yields a result consistent with offsetof.
23730 This catches GCC bug 52023
23731 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */
23732 #ifdef __cplusplus
23733 template <class t> struct alignof_helper { char a; t b; };
23734 # define ao(type) offsetof (alignof_helper<type>, b)
23735 #else
23736 # define ao(type) offsetof (struct { char a; type b; }, b)
23737 #endif
23738 char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
23739 char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
23740 char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
23741
23742 /* Test _Alignas only on platforms where gnulib can help. */
23743 #if \
23744 ((defined __cplusplus && 201103 <= __cplusplus) \
23745 || (defined __APPLE__ && defined __MACH__ \
23746 ? 4 < __GNUC__ + (1 <= __GNUC_MINOR__) \
23747 : __GNUC__) \
23748 || __HP_cc || __HP_aCC || __IBMC__ || __IBMCPP__ \
23749 || __ICC || 0x5110 <= __SUNPRO_C \
23750 || 1300 <= _MSC_VER)
23751 struct alignas_test { char c; char alignas (8) alignas_8; };
23752 char test_alignas[offsetof (struct alignas_test, alignas_8) == 8
23753 ? 1 : -1];
23754 #endif
23755
23756 int
23757 main ()
23758 {
23759
23760 ;
23761 return 0;
23762 }
23763 _ACEOF
23764 if ac_fn_c_try_compile "$LINENO"; then :
23765 gl_cv_header_working_stdalign_h=yes
23766 else
23767 gl_cv_header_working_stdalign_h=no
23768 fi
23769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23770 fi
23771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
23772 $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
23773
23774 if test $gl_cv_header_working_stdalign_h = yes; then
23775 STDALIGN_H=''
23776 else
23777 STDALIGN_H='stdalign.h'
23778 fi
23779
23780
23781 if test -n "$STDALIGN_H"; then
23782 GL_GENERATE_STDALIGN_H_TRUE=
23783 GL_GENERATE_STDALIGN_H_FALSE='#'
23784 else
23785 GL_GENERATE_STDALIGN_H_TRUE='#'
23786 GL_GENERATE_STDALIGN_H_FALSE=
23787 fi
23788
23789
23790
23791
23792
23793 # Define two additional variables used in the Makefile substitution.
23794
23795 if test "$ac_cv_header_stdbool_h" = yes; then
23796 STDBOOL_H=''
23797 else
23798 STDBOOL_H='stdbool.h'
23799 fi
23800
23801 if test -n "$STDBOOL_H"; then
23802 GL_GENERATE_STDBOOL_H_TRUE=
23803 GL_GENERATE_STDBOOL_H_FALSE='#'
23804 else
23805 GL_GENERATE_STDBOOL_H_TRUE='#'
23806 GL_GENERATE_STDBOOL_H_FALSE=
23807 fi
23808
23809
23810 if test "$ac_cv_type__Bool" = yes; then
23811 HAVE__BOOL=1
23812 else
23813 HAVE__BOOL=0
23814 fi
23815
23816
23817
23818
23819
23820 STDDEF_H=
23821 ac_fn_c_check_type "$LINENO" "max_align_t" "ac_cv_type_max_align_t" "#include <stddef.h>
23822
23823 "
23824 if test "x$ac_cv_type_max_align_t" = xyes; then :
23825
23826 else
23827 HAVE_MAX_ALIGN_T=0; STDDEF_H=stddef.h
23828 fi
23829
23830 if test $gt_cv_c_wchar_t = no; then
23831 HAVE_WCHAR_T=0
23832 STDDEF_H=stddef.h
23833 fi
23834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
23835 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
23836 if ${gl_cv_decl_null_works+:} false; then :
23837 $as_echo_n "(cached) " >&6
23838 else
23839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23840 /* end confdefs.h. */
23841 #include <stddef.h>
23842 int test[2 * (sizeof NULL == sizeof (void *)) -1];
23843
23844 int
23845 main ()
23846 {
23847
23848 ;
23849 return 0;
23850 }
23851 _ACEOF
23852 if ac_fn_c_try_compile "$LINENO"; then :
23853 gl_cv_decl_null_works=yes
23854 else
23855 gl_cv_decl_null_works=no
23856 fi
23857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23858 fi
23859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
23860 $as_echo "$gl_cv_decl_null_works" >&6; }
23861 if test $gl_cv_decl_null_works = no; then
23862 REPLACE_NULL=1
23863 STDDEF_H=stddef.h
23864 fi
23865
23866 if test -n "$STDDEF_H"; then
23867 GL_GENERATE_STDDEF_H_TRUE=
23868 GL_GENERATE_STDDEF_H_FALSE='#'
23869 else
23870 GL_GENERATE_STDDEF_H_TRUE='#'
23871 GL_GENERATE_STDDEF_H_FALSE=
23872 fi
23873
23874 if test -n "$STDDEF_H"; then
23875
23876
23877
23878
23879
23880
23881
23882
23883 if test $gl_cv_have_include_next = yes; then
23884 gl_cv_next_stddef_h='<'stddef.h'>'
23885 else
23886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
23887 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
23888 if ${gl_cv_next_stddef_h+:} false; then :
23889 $as_echo_n "(cached) " >&6
23890 else
23891
23892
23893
23894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23895 /* end confdefs.h. */
23896 #include <stddef.h>
23897 _ACEOF
23898 case "$host_os" in
23899 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23900 *) gl_absname_cpp="$ac_cpp" ;;
23901 esac
23902
23903 case "$host_os" in
23904 mingw*)
23905 gl_dirsep_regex='[/\\]'
23906 ;;
23907 *)
23908 gl_dirsep_regex='\/'
23909 ;;
23910 esac
23911 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23912 gl_header_literal_regex=`echo 'stddef.h' \
23913 | sed -e "$gl_make_literal_regex_sed"`
23914 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23915 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23916 s|^/[^/]|//&|
23917 p
23918 q
23919 }'
23920
23921 gl_cv_absolute_stddef_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23922 sed -n "$gl_absolute_header_sed"`
23923
23924 gl_header=$gl_cv_absolute_stddef_h
23925 gl_cv_next_stddef_h='"'$gl_header'"'
23926
23927
23928 fi
23929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
23930 $as_echo "$gl_cv_next_stddef_h" >&6; }
23931 fi
23932 NEXT_STDDEF_H=$gl_cv_next_stddef_h
23933
23934 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23935 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23936 gl_next_as_first_directive='<'stddef.h'>'
23937 else
23938 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23939 gl_next_as_first_directive=$gl_cv_next_stddef_h
23940 fi
23941 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
23942
23943
23944
23945
23946 fi
23947
23948
23949
23950
23951 $as_echo "#define __USE_MINGW_ANSI_STDIO 1" >>confdefs.h
23952
23953
23954
23955
23956
23957
23958
23959
23960
23961
23962 if test $gl_cv_have_include_next = yes; then
23963 gl_cv_next_stdio_h='<'stdio.h'>'
23964 else
23965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
23966 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
23967 if ${gl_cv_next_stdio_h+:} false; then :
23968 $as_echo_n "(cached) " >&6
23969 else
23970
23971
23972
23973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23974 /* end confdefs.h. */
23975 #include <stdio.h>
23976 _ACEOF
23977 case "$host_os" in
23978 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23979 *) gl_absname_cpp="$ac_cpp" ;;
23980 esac
23981
23982 case "$host_os" in
23983 mingw*)
23984 gl_dirsep_regex='[/\\]'
23985 ;;
23986 *)
23987 gl_dirsep_regex='\/'
23988 ;;
23989 esac
23990 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23991 gl_header_literal_regex=`echo 'stdio.h' \
23992 | sed -e "$gl_make_literal_regex_sed"`
23993 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23994 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23995 s|^/[^/]|//&|
23996 p
23997 q
23998 }'
23999
24000 gl_cv_absolute_stdio_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24001 sed -n "$gl_absolute_header_sed"`
24002
24003 gl_header=$gl_cv_absolute_stdio_h
24004 gl_cv_next_stdio_h='"'$gl_header'"'
24005
24006
24007 fi
24008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
24009 $as_echo "$gl_cv_next_stdio_h" >&6; }
24010 fi
24011 NEXT_STDIO_H=$gl_cv_next_stdio_h
24012
24013 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24014 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24015 gl_next_as_first_directive='<'stdio.h'>'
24016 else
24017 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24018 gl_next_as_first_directive=$gl_cv_next_stdio_h
24019 fi
24020 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
24021
24022
24023
24024
24025
24026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which flavor of printf attribute matches inttypes macros" >&5
24027 $as_echo_n "checking which flavor of printf attribute matches inttypes macros... " >&6; }
24028 if ${gl_cv_func_printf_attribute_flavor+:} false; then :
24029 $as_echo_n "(cached) " >&6
24030 else
24031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24032 /* end confdefs.h. */
24033
24034 #define __STDC_FORMAT_MACROS 1
24035 #include <stdio.h>
24036 #include <inttypes.h>
24037 /* For non-mingw systems, compilation will trivially succeed.
24038 For mingw, compilation will succeed for older mingw (system
24039 printf, "I64d") and fail for newer mingw (gnu printf, "lld"). */
24040 #if ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) && \
24041 (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4))
24042 extern char PRIdMAX_probe[sizeof PRIdMAX == sizeof "I64d" ? 1 : -1];
24043 #endif
24044
24045 int
24046 main ()
24047 {
24048
24049 ;
24050 return 0;
24051 }
24052 _ACEOF
24053 if ac_fn_c_try_compile "$LINENO"; then :
24054 gl_cv_func_printf_attribute_flavor=system
24055 else
24056 gl_cv_func_printf_attribute_flavor=gnu
24057 fi
24058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24059 fi
24060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_attribute_flavor" >&5
24061 $as_echo "$gl_cv_func_printf_attribute_flavor" >&6; }
24062 if test "$gl_cv_func_printf_attribute_flavor" = gnu; then
24063
24064 $as_echo "#define GNULIB_PRINTF_ATTRIBUTE_FLAVOR_GNU 1" >>confdefs.h
24065
24066 fi
24067
24068 GNULIB_FSCANF=1
24069
24070
24071 cat >>confdefs.h <<_ACEOF
24072 #define GNULIB_FSCANF 1
24073 _ACEOF
24074
24075
24076 GNULIB_SCANF=1
24077
24078
24079 cat >>confdefs.h <<_ACEOF
24080 #define GNULIB_SCANF 1
24081 _ACEOF
24082
24083
24084 GNULIB_FGETC=1
24085 GNULIB_GETC=1
24086 GNULIB_GETCHAR=1
24087 GNULIB_FGETS=1
24088 GNULIB_FREAD=1
24089
24090
24091 GNULIB_FPRINTF=1
24092 GNULIB_PRINTF=1
24093 GNULIB_VFPRINTF=1
24094 GNULIB_VPRINTF=1
24095 GNULIB_FPUTC=1
24096 GNULIB_PUTC=1
24097 GNULIB_PUTCHAR=1
24098 GNULIB_FPUTS=1
24099 GNULIB_PUTS=1
24100 GNULIB_FWRITE=1
24101
24102
24103
24104
24105 for gl_func in dprintf fpurge fseeko ftello getdelim getline gets pclose popen renameat snprintf tmpfile vdprintf vsnprintf; do
24106 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
24107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
24108 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
24109 if eval \${$as_gl_Symbol+:} false; then :
24110 $as_echo_n "(cached) " >&6
24111 else
24112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24113 /* end confdefs.h. */
24114 #include <stdio.h>
24115
24116 int
24117 main ()
24118 {
24119 #undef $gl_func
24120 (void) $gl_func;
24121 ;
24122 return 0;
24123 }
24124 _ACEOF
24125 if ac_fn_c_try_compile "$LINENO"; then :
24126 eval "$as_gl_Symbol=yes"
24127 else
24128 eval "$as_gl_Symbol=no"
24129 fi
24130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24131 fi
24132 eval ac_res=\$$as_gl_Symbol
24133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24134 $as_echo "$ac_res" >&6; }
24135 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
24136 cat >>confdefs.h <<_ACEOF
24137 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
24138 _ACEOF
24139
24140 eval ac_cv_have_decl_$gl_func=yes
24141 fi
24142 done
24143
24144
24145
24146
24147
24148
24149
24150
24151
24152
24153
24154
24155 if test $gl_cv_have_include_next = yes; then
24156 gl_cv_next_stdlib_h='<'stdlib.h'>'
24157 else
24158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
24159 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
24160 if ${gl_cv_next_stdlib_h+:} false; then :
24161 $as_echo_n "(cached) " >&6
24162 else
24163
24164
24165
24166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24167 /* end confdefs.h. */
24168 #include <stdlib.h>
24169 _ACEOF
24170 case "$host_os" in
24171 aix*) gl_absname_cpp="$ac_cpp -C" ;;
24172 *) gl_absname_cpp="$ac_cpp" ;;
24173 esac
24174
24175 case "$host_os" in
24176 mingw*)
24177 gl_dirsep_regex='[/\\]'
24178 ;;
24179 *)
24180 gl_dirsep_regex='\/'
24181 ;;
24182 esac
24183 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24184 gl_header_literal_regex=`echo 'stdlib.h' \
24185 | sed -e "$gl_make_literal_regex_sed"`
24186 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24187 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24188 s|^/[^/]|//&|
24189 p
24190 q
24191 }'
24192
24193 gl_cv_absolute_stdlib_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24194 sed -n "$gl_absolute_header_sed"`
24195
24196 gl_header=$gl_cv_absolute_stdlib_h
24197 gl_cv_next_stdlib_h='"'$gl_header'"'
24198
24199
24200 fi
24201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
24202 $as_echo "$gl_cv_next_stdlib_h" >&6; }
24203 fi
24204 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
24205
24206 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24207 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24208 gl_next_as_first_directive='<'stdlib.h'>'
24209 else
24210 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24211 gl_next_as_first_directive=$gl_cv_next_stdlib_h
24212 fi
24213 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
24214
24215
24216
24217
24218
24219
24220 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
24221 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
24222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
24223 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
24224 if eval \${$as_gl_Symbol+:} false; then :
24225 $as_echo_n "(cached) " >&6
24226 else
24227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24228 /* end confdefs.h. */
24229 #include <stdlib.h>
24230 #if HAVE_SYS_LOADAVG_H
24231 # include <sys/loadavg.h>
24232 #endif
24233 #if HAVE_RANDOM_H
24234 # include <random.h>
24235 #endif
24236
24237 int
24238 main ()
24239 {
24240 #undef $gl_func
24241 (void) $gl_func;
24242 ;
24243 return 0;
24244 }
24245 _ACEOF
24246 if ac_fn_c_try_compile "$LINENO"; then :
24247 eval "$as_gl_Symbol=yes"
24248 else
24249 eval "$as_gl_Symbol=no"
24250 fi
24251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24252 fi
24253 eval ac_res=\$$as_gl_Symbol
24254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24255 $as_echo "$ac_res" >&6; }
24256 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
24257 cat >>confdefs.h <<_ACEOF
24258 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
24259 _ACEOF
24260
24261 eval ac_cv_have_decl_$gl_func=yes
24262 fi
24263 done
24264
24265
24266
24267
24268
24269
24270 for ac_func in strchrnul
24271 do :
24272 ac_fn_c_check_func "$LINENO" "strchrnul" "ac_cv_func_strchrnul"
24273 if test "x$ac_cv_func_strchrnul" = xyes; then :
24274 cat >>confdefs.h <<_ACEOF
24275 #define HAVE_STRCHRNUL 1
24276 _ACEOF
24277
24278 fi
24279 done
24280
24281 if test $ac_cv_func_strchrnul = no; then
24282 HAVE_STRCHRNUL=0
24283 else
24284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strchrnul works" >&5
24285 $as_echo_n "checking whether strchrnul works... " >&6; }
24286 if ${gl_cv_func_strchrnul_works+:} false; then :
24287 $as_echo_n "(cached) " >&6
24288 else
24289 if test "$cross_compiling" = yes; then :
24290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24291 /* end confdefs.h. */
24292
24293 #if defined __CYGWIN__
24294 #include <cygwin/version.h>
24295 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 9)
24296 Lucky user
24297 #endif
24298 #else
24299 Lucky user
24300 #endif
24301
24302 _ACEOF
24303 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24304 $EGREP "Lucky user" >/dev/null 2>&1; then :
24305 gl_cv_func_strchrnul_works="guessing yes"
24306 else
24307 gl_cv_func_strchrnul_works="guessing no"
24308 fi
24309 rm -f conftest*
24310
24311
24312 else
24313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24314 /* end confdefs.h. */
24315
24316 #include <string.h> /* for strchrnul */
24317
24318 int
24319 main ()
24320 {
24321 const char *buf = "a";
24322 return strchrnul (buf, 'b') != buf + 1;
24323
24324 ;
24325 return 0;
24326 }
24327 _ACEOF
24328 if ac_fn_c_try_run "$LINENO"; then :
24329 gl_cv_func_strchrnul_works=yes
24330 else
24331 gl_cv_func_strchrnul_works=no
24332 fi
24333 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24334 conftest.$ac_objext conftest.beam conftest.$ac_ext
24335 fi
24336
24337
24338 fi
24339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strchrnul_works" >&5
24340 $as_echo "$gl_cv_func_strchrnul_works" >&6; }
24341 case "$gl_cv_func_strchrnul_works" in
24342 *yes) ;;
24343 *) REPLACE_STRCHRNUL=1 ;;
24344 esac
24345 fi
24346
24347 if test $HAVE_STRCHRNUL = 0 || test $REPLACE_STRCHRNUL = 1; then
24348
24349
24350
24351
24352
24353
24354
24355
24356 gl_LIBOBJS="$gl_LIBOBJS strchrnul.$ac_objext"
24357
24358 :
24359 fi
24360
24361
24362
24363
24364
24365 GNULIB_STRCHRNUL=1
24366
24367
24368
24369
24370
24371 $as_echo "#define GNULIB_TEST_STRCHRNUL 1" >>confdefs.h
24372
24373
24374
24375
24376
24377
24378
24379 :
24380
24381
24382
24383
24384
24385 if test $ac_cv_func_strdup = yes; then
24386 if test $gl_cv_func_malloc_posix != yes; then
24387 REPLACE_STRDUP=1
24388 fi
24389 fi
24390
24391 :
24392
24393
24394
24395
24396
24397 if test $ac_cv_have_decl_strdup = no; then
24398 HAVE_DECL_STRDUP=0
24399 fi
24400
24401 if test $ac_cv_func_strdup = no || test $REPLACE_STRDUP = 1; then
24402
24403
24404
24405
24406
24407
24408
24409
24410 gl_LIBOBJS="$gl_LIBOBJS strdup.$ac_objext"
24411
24412 :
24413 fi
24414
24415
24416
24417
24418
24419 GNULIB_STRDUP=1
24420
24421
24422
24423
24424
24425 $as_echo "#define GNULIB_TEST_STRDUP 1" >>confdefs.h
24426
24427
24428
24429
24430
24431
24432
24433
24434 if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
24435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
24436 $as_echo_n "checking for working strerror function... " >&6; }
24437 if ${gl_cv_func_working_strerror+:} false; then :
24438 $as_echo_n "(cached) " >&6
24439 else
24440 if test "$cross_compiling" = yes; then :
24441 case "$host_os" in
24442 # Guess yes on glibc systems.
24443 *-gnu*) gl_cv_func_working_strerror="guessing yes" ;;
24444 # If we don't know, assume the worst.
24445 *) gl_cv_func_working_strerror="guessing no" ;;
24446 esac
24447
24448 else
24449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24450 /* end confdefs.h. */
24451 #include <string.h>
24452
24453 int
24454 main ()
24455 {
24456 if (!*strerror (-2)) return 1;
24457 ;
24458 return 0;
24459 }
24460 _ACEOF
24461 if ac_fn_c_try_run "$LINENO"; then :
24462 gl_cv_func_working_strerror=yes
24463 else
24464 gl_cv_func_working_strerror=no
24465 fi
24466 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24467 conftest.$ac_objext conftest.beam conftest.$ac_ext
24468 fi
24469
24470
24471 fi
24472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
24473 $as_echo "$gl_cv_func_working_strerror" >&6; }
24474 case "$gl_cv_func_working_strerror" in
24475 *yes) ;;
24476 *)
24477 REPLACE_STRERROR=1
24478 ;;
24479 esac
24480
24481 else
24482 REPLACE_STRERROR=1
24483 fi
24484
24485 if test $REPLACE_STRERROR = 1; then
24486
24487
24488
24489
24490
24491
24492
24493
24494 gl_LIBOBJS="$gl_LIBOBJS strerror.$ac_objext"
24495
24496 fi
24497
24498
24499 cat >>confdefs.h <<_ACEOF
24500 #define GNULIB_STRERROR 1
24501 _ACEOF
24502
24503
24504
24505
24506
24507
24508
24509 GNULIB_STRERROR=1
24510
24511
24512
24513
24514
24515 $as_echo "#define GNULIB_TEST_STRERROR 1" >>confdefs.h
24516
24517
24518
24519
24520
24521 if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then
24522
24523
24524
24525
24526
24527
24528
24529
24530 gl_LIBOBJS="$gl_LIBOBJS strerror-override.$ac_objext"
24531
24532
24533
24534
24535
24536 :
24537
24538
24539
24540
24541
24542 if test $ac_cv_header_sys_socket_h != yes; then
24543 for ac_header in winsock2.h
24544 do :
24545 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
24546 if test "x$ac_cv_header_winsock2_h" = xyes; then :
24547 cat >>confdefs.h <<_ACEOF
24548 #define HAVE_WINSOCK2_H 1
24549 _ACEOF
24550
24551 fi
24552
24553 done
24554
24555 fi
24556 if test "$ac_cv_header_winsock2_h" = yes; then
24557 HAVE_WINSOCK2_H=1
24558 UNISTD_H_HAVE_WINSOCK2_H=1
24559 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
24560 else
24561 HAVE_WINSOCK2_H=0
24562 fi
24563
24564
24565 fi
24566
24567
24568
24569
24570
24571 if test $REPLACE_STRSTR = 0; then
24572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works in linear time" >&5
24573 $as_echo_n "checking whether strstr works in linear time... " >&6; }
24574 if ${gl_cv_func_strstr_linear+:} false; then :
24575 $as_echo_n "(cached) " >&6
24576 else
24577 if test "$cross_compiling" = yes; then :
24578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24579 /* end confdefs.h. */
24580
24581 #include <features.h>
24582 #ifdef __GNU_LIBRARY__
24583 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
24584 && !(defined __i386__ || defined __x86_64__) \
24585 && !defined __UCLIBC__
24586 Lucky user
24587 #endif
24588 #endif
24589 #ifdef __CYGWIN__
24590 #include <cygwin/version.h>
24591 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
24592 Lucky user
24593 #endif
24594 #endif
24595
24596 _ACEOF
24597 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24598 $EGREP "Lucky user" >/dev/null 2>&1; then :
24599 gl_cv_func_strstr_linear="guessing yes"
24600 else
24601 gl_cv_func_strstr_linear="guessing no"
24602 fi
24603 rm -f conftest*
24604
24605
24606 else
24607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24608 /* end confdefs.h. */
24609
24610 #ifdef __MVS__
24611 /* z/OS does not deliver signals while strstr() is running (thanks to
24612 restrictions on its LE runtime), which prevents us from limiting the
24613 running time of this test. */
24614 # error "This test does not work properly on z/OS"
24615 #endif
24616 #include <signal.h> /* for signal */
24617 #include <string.h> /* for strstr */
24618 #include <stdlib.h> /* for malloc */
24619 #include <unistd.h> /* for alarm */
24620 static void quit (int sig) { _exit (sig + 128); }
24621
24622 int
24623 main ()
24624 {
24625
24626 int result = 0;
24627 size_t m = 1000000;
24628 char *haystack = (char *) malloc (2 * m + 2);
24629 char *needle = (char *) malloc (m + 2);
24630 /* Failure to compile this test due to missing alarm is okay,
24631 since all such platforms (mingw) also have quadratic strstr. */
24632 signal (SIGALRM, quit);
24633 alarm (5);
24634 /* Check for quadratic performance. */
24635 if (haystack && needle)
24636 {
24637 memset (haystack, 'A', 2 * m);
24638 haystack[2 * m] = 'B';
24639 haystack[2 * m + 1] = 0;
24640 memset (needle, 'A', m);
24641 needle[m] = 'B';
24642 needle[m + 1] = 0;
24643 if (!strstr (haystack, needle))
24644 result |= 1;
24645 }
24646 return result;
24647
24648 ;
24649 return 0;
24650 }
24651 _ACEOF
24652 if ac_fn_c_try_run "$LINENO"; then :
24653 gl_cv_func_strstr_linear=yes
24654 else
24655 gl_cv_func_strstr_linear=no
24656 fi
24657 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24658 conftest.$ac_objext conftest.beam conftest.$ac_ext
24659 fi
24660
24661
24662 fi
24663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_linear" >&5
24664 $as_echo "$gl_cv_func_strstr_linear" >&6; }
24665 case "$gl_cv_func_strstr_linear" in
24666 *yes) ;;
24667 *)
24668 REPLACE_STRSTR=1
24669 ;;
24670 esac
24671 fi
24672
24673 if test $REPLACE_STRSTR = 1; then
24674
24675
24676
24677
24678
24679
24680
24681
24682 gl_LIBOBJS="$gl_LIBOBJS strstr.$ac_objext"
24683
24684 fi
24685
24686
24687
24688 if test "$gl_cv_func_memchr_works" != yes; then
24689 REPLACE_STRSTR=1
24690 else
24691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
24692 $as_echo_n "checking whether strstr works... " >&6; }
24693 if ${gl_cv_func_strstr_works_always+:} false; then :
24694 $as_echo_n "(cached) " >&6
24695 else
24696 if test "$cross_compiling" = yes; then :
24697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24698 /* end confdefs.h. */
24699
24700 #ifdef __GNU_LIBRARY__
24701 #include <features.h>
24702 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
24703 || defined __UCLIBC__
24704 Lucky user
24705 #endif
24706 #elif defined __CYGWIN__
24707 #include <cygwin/version.h>
24708 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
24709 Lucky user
24710 #endif
24711 #else
24712 Lucky user
24713 #endif
24714
24715 _ACEOF
24716 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24717 $EGREP "Lucky user" >/dev/null 2>&1; then :
24718 gl_cv_func_strstr_works_always="guessing yes"
24719 else
24720 gl_cv_func_strstr_works_always="guessing no"
24721 fi
24722 rm -f conftest*
24723
24724
24725 else
24726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24727 /* end confdefs.h. */
24728
24729 #include <string.h> /* for strstr */
24730 #define P "_EF_BF_BD"
24731 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
24732 #define NEEDLE P P P P P
24733
24734 int
24735 main ()
24736 {
24737 return !!strstr (HAYSTACK, NEEDLE);
24738
24739 ;
24740 return 0;
24741 }
24742 _ACEOF
24743 if ac_fn_c_try_run "$LINENO"; then :
24744 gl_cv_func_strstr_works_always=yes
24745 else
24746 gl_cv_func_strstr_works_always=no
24747 fi
24748 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24749 conftest.$ac_objext conftest.beam conftest.$ac_ext
24750 fi
24751
24752
24753 fi
24754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
24755 $as_echo "$gl_cv_func_strstr_works_always" >&6; }
24756 case "$gl_cv_func_strstr_works_always" in
24757 *yes) ;;
24758 *)
24759 REPLACE_STRSTR=1
24760 ;;
24761 esac
24762 fi
24763
24764 if test $REPLACE_STRSTR = 1; then
24765
24766
24767
24768
24769
24770
24771
24772
24773 gl_LIBOBJS="$gl_LIBOBJS strstr.$ac_objext"
24774
24775 fi
24776
24777
24778
24779
24780
24781 GNULIB_STRSTR=1
24782
24783
24784
24785
24786
24787 $as_echo "#define GNULIB_TEST_STRSTR 1" >>confdefs.h
24788
24789
24790
24791
24792
24793
24794
24795 for ac_func in strtok_r
24796 do :
24797 ac_fn_c_check_func "$LINENO" "strtok_r" "ac_cv_func_strtok_r"
24798 if test "x$ac_cv_func_strtok_r" = xyes; then :
24799 cat >>confdefs.h <<_ACEOF
24800 #define HAVE_STRTOK_R 1
24801 _ACEOF
24802
24803 fi
24804 done
24805
24806 if test $ac_cv_func_strtok_r = yes; then
24807 HAVE_STRTOK_R=1
24808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtok_r works" >&5
24809 $as_echo_n "checking whether strtok_r works... " >&6; }
24810 if ${gl_cv_func_strtok_r_works+:} false; then :
24811 $as_echo_n "(cached) " >&6
24812 else
24813 if test "$cross_compiling" = yes; then :
24814
24815 case "$host_os" in
24816 # Guess no on glibc systems.
24817 *-gnu*) gl_cv_func_strtok_r_works="guessing no";;
24818 *) gl_cv_func_strtok_r_works="guessing yes";;
24819 esac
24820
24821 else
24822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24823 /* end confdefs.h. */
24824
24825 #ifndef __OPTIMIZE__
24826 # define __OPTIMIZE__ 1
24827 #endif
24828 #undef __OPTIMIZE_SIZE__
24829 #undef __NO_INLINE__
24830 #include <stdlib.h>
24831 #include <string.h>
24832
24833 int
24834 main ()
24835 {
24836 static const char dummy[] = "\177\01a";
24837 char delimiters[] = "xxxxxxxx";
24838 char *save_ptr = (char *) dummy;
24839 strtok_r (delimiters, "x", &save_ptr);
24840 strtok_r (NULL, "x", &save_ptr);
24841 return 0;
24842
24843 ;
24844 return 0;
24845 }
24846
24847 _ACEOF
24848 if ac_fn_c_try_run "$LINENO"; then :
24849 gl_cv_func_strtok_r_works=yes
24850 else
24851 gl_cv_func_strtok_r_works=no
24852 fi
24853 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24854 conftest.$ac_objext conftest.beam conftest.$ac_ext
24855 fi
24856
24857
24858 fi
24859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtok_r_works" >&5
24860 $as_echo "$gl_cv_func_strtok_r_works" >&6; }
24861 case "$gl_cv_func_strtok_r_works" in
24862 *no)
24863 UNDEFINE_STRTOK_R=1
24864 ;;
24865 esac
24866 else
24867 HAVE_STRTOK_R=0
24868 fi
24869
24870 :
24871
24872
24873
24874
24875
24876 if test $ac_cv_have_decl_strtok_r = no; then
24877 HAVE_DECL_STRTOK_R=0
24878 fi
24879
24880 if test $HAVE_STRTOK_R = 0 || test $REPLACE_STRTOK_R = 1; then
24881
24882
24883
24884
24885
24886
24887
24888
24889 gl_LIBOBJS="$gl_LIBOBJS strtok_r.$ac_objext"
24890
24891
24892 :
24893
24894 fi
24895
24896
24897
24898
24899
24900 GNULIB_STRTOK_R=1
24901
24902
24903
24904
24905
24906 $as_echo "#define GNULIB_TEST_STRTOK_R 1" >>confdefs.h
24907
24908
24909
24910
24911
24912
24913
24914
24915
24916
24917
24918
24919
24920
24921
24922
24923 :
24924
24925
24926
24927
24928
24929
24930
24931
24932 if test $gl_cv_have_include_next = yes; then
24933 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
24934 else
24935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
24936 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
24937 if ${gl_cv_next_sys_stat_h+:} false; then :
24938 $as_echo_n "(cached) " >&6
24939 else
24940
24941 if test $ac_cv_header_sys_stat_h = yes; then
24942
24943
24944
24945
24946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24947 /* end confdefs.h. */
24948 #include <sys/stat.h>
24949 _ACEOF
24950 case "$host_os" in
24951 aix*) gl_absname_cpp="$ac_cpp -C" ;;
24952 *) gl_absname_cpp="$ac_cpp" ;;
24953 esac
24954
24955 case "$host_os" in
24956 mingw*)
24957 gl_dirsep_regex='[/\\]'
24958 ;;
24959 *)
24960 gl_dirsep_regex='\/'
24961 ;;
24962 esac
24963 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24964 gl_header_literal_regex=`echo 'sys/stat.h' \
24965 | sed -e "$gl_make_literal_regex_sed"`
24966 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24967 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24968 s|^/[^/]|//&|
24969 p
24970 q
24971 }'
24972
24973 gl_cv_absolute_sys_stat_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24974 sed -n "$gl_absolute_header_sed"`
24975
24976 gl_header=$gl_cv_absolute_sys_stat_h
24977 gl_cv_next_sys_stat_h='"'$gl_header'"'
24978 else
24979 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
24980 fi
24981
24982
24983 fi
24984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
24985 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
24986 fi
24987 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
24988
24989 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24990 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24991 gl_next_as_first_directive='<'sys/stat.h'>'
24992 else
24993 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24994 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
24995 fi
24996 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
24997
24998
24999
25000
25001
25002
25003
25004
25005
25006
25007
25008 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
25009
25010 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
25011
25012 fi
25013
25014 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
25015 #include <sys/stat.h>
25016 "
25017 if test "x$ac_cv_type_nlink_t" = xyes; then :
25018
25019 else
25020
25021 $as_echo "#define nlink_t int" >>confdefs.h
25022
25023 fi
25024
25025
25026
25027 for gl_func in fchmodat fstat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat mknod mknodat stat utimensat; do
25028 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
25029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
25030 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
25031 if eval \${$as_gl_Symbol+:} false; then :
25032 $as_echo_n "(cached) " >&6
25033 else
25034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25035 /* end confdefs.h. */
25036 #include <sys/stat.h>
25037
25038 int
25039 main ()
25040 {
25041 #undef $gl_func
25042 (void) $gl_func;
25043 ;
25044 return 0;
25045 }
25046 _ACEOF
25047 if ac_fn_c_try_compile "$LINENO"; then :
25048 eval "$as_gl_Symbol=yes"
25049 else
25050 eval "$as_gl_Symbol=no"
25051 fi
25052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25053 fi
25054 eval ac_res=\$$as_gl_Symbol
25055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25056 $as_echo "$ac_res" >&6; }
25057 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
25058 cat >>confdefs.h <<_ACEOF
25059 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
25060 _ACEOF
25061
25062 eval ac_cv_have_decl_$gl_func=yes
25063 fi
25064 done
25065
25066
25067
25068
25069
25070
25071
25072
25073
25074
25075
25076
25077
25078
25079
25080
25081
25082 :
25083
25084
25085
25086
25087
25088
25089
25090
25091 if test $gl_cv_have_include_next = yes; then
25092 gl_cv_next_sys_uio_h='<'sys/uio.h'>'
25093 else
25094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/uio.h>" >&5
25095 $as_echo_n "checking absolute name of <sys/uio.h>... " >&6; }
25096 if ${gl_cv_next_sys_uio_h+:} false; then :
25097 $as_echo_n "(cached) " >&6
25098 else
25099
25100 if test $ac_cv_header_sys_uio_h = yes; then
25101
25102
25103
25104
25105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25106 /* end confdefs.h. */
25107 #include <sys/uio.h>
25108 _ACEOF
25109 case "$host_os" in
25110 aix*) gl_absname_cpp="$ac_cpp -C" ;;
25111 *) gl_absname_cpp="$ac_cpp" ;;
25112 esac
25113
25114 case "$host_os" in
25115 mingw*)
25116 gl_dirsep_regex='[/\\]'
25117 ;;
25118 *)
25119 gl_dirsep_regex='\/'
25120 ;;
25121 esac
25122 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
25123 gl_header_literal_regex=`echo 'sys/uio.h' \
25124 | sed -e "$gl_make_literal_regex_sed"`
25125 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25126 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25127 s|^/[^/]|//&|
25128 p
25129 q
25130 }'
25131
25132 gl_cv_absolute_sys_uio_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25133 sed -n "$gl_absolute_header_sed"`
25134
25135 gl_header=$gl_cv_absolute_sys_uio_h
25136 gl_cv_next_sys_uio_h='"'$gl_header'"'
25137 else
25138 gl_cv_next_sys_uio_h='<'sys/uio.h'>'
25139 fi
25140
25141
25142 fi
25143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_uio_h" >&5
25144 $as_echo "$gl_cv_next_sys_uio_h" >&6; }
25145 fi
25146 NEXT_SYS_UIO_H=$gl_cv_next_sys_uio_h
25147
25148 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25149 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25150 gl_next_as_first_directive='<'sys/uio.h'>'
25151 else
25152 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25153 gl_next_as_first_directive=$gl_cv_next_sys_uio_h
25154 fi
25155 NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H=$gl_next_as_first_directive
25156
25157
25158
25159
25160 if test $ac_cv_header_sys_uio_h = yes; then
25161 HAVE_SYS_UIO_H=1
25162 else
25163 HAVE_SYS_UIO_H=0
25164 fi
25165
25166
25167
25168
25169
25170 :
25171
25172
25173
25174
25175
25176
25177
25178
25179
25180
25181
25182
25183
25184
25185 :
25186
25187
25188
25189
25190
25191
25192
25193
25194 if test $gl_cv_have_include_next = yes; then
25195 gl_cv_next_unistd_h='<'unistd.h'>'
25196 else
25197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
25198 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
25199 if ${gl_cv_next_unistd_h+:} false; then :
25200 $as_echo_n "(cached) " >&6
25201 else
25202
25203 if test $ac_cv_header_unistd_h = yes; then
25204
25205
25206
25207
25208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25209 /* end confdefs.h. */
25210 #include <unistd.h>
25211 _ACEOF
25212 case "$host_os" in
25213 aix*) gl_absname_cpp="$ac_cpp -C" ;;
25214 *) gl_absname_cpp="$ac_cpp" ;;
25215 esac
25216
25217 case "$host_os" in
25218 mingw*)
25219 gl_dirsep_regex='[/\\]'
25220 ;;
25221 *)
25222 gl_dirsep_regex='\/'
25223 ;;
25224 esac
25225 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
25226 gl_header_literal_regex=`echo 'unistd.h' \
25227 | sed -e "$gl_make_literal_regex_sed"`
25228 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25229 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25230 s|^/[^/]|//&|
25231 p
25232 q
25233 }'
25234
25235 gl_cv_absolute_unistd_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25236 sed -n "$gl_absolute_header_sed"`
25237
25238 gl_header=$gl_cv_absolute_unistd_h
25239 gl_cv_next_unistd_h='"'$gl_header'"'
25240 else
25241 gl_cv_next_unistd_h='<'unistd.h'>'
25242 fi
25243
25244
25245 fi
25246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
25247 $as_echo "$gl_cv_next_unistd_h" >&6; }
25248 fi
25249 NEXT_UNISTD_H=$gl_cv_next_unistd_h
25250
25251 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25252 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25253 gl_next_as_first_directive='<'unistd.h'>'
25254 else
25255 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25256 gl_next_as_first_directive=$gl_cv_next_unistd_h
25257 fi
25258 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
25259
25260
25261
25262
25263 if test $ac_cv_header_unistd_h = yes; then
25264 HAVE_UNISTD_H=1
25265 else
25266 HAVE_UNISTD_H=0
25267 fi
25268
25269
25270
25271
25272
25273
25274
25275 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
25276 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
25277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
25278 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
25279 if eval \${$as_gl_Symbol+:} false; then :
25280 $as_echo_n "(cached) " >&6
25281 else
25282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25283 /* end confdefs.h. */
25284
25285 #if HAVE_UNISTD_H
25286 # include <unistd.h>
25287 #endif
25288 /* Some systems declare various items in the wrong headers. */
25289 #if !(defined __GLIBC__ && !defined __UCLIBC__)
25290 # include <fcntl.h>
25291 # include <stdio.h>
25292 # include <stdlib.h>
25293 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
25294 # include <io.h>
25295 # endif
25296 #endif
25297
25298 int
25299 main ()
25300 {
25301 #undef $gl_func
25302 (void) $gl_func;
25303 ;
25304 return 0;
25305 }
25306 _ACEOF
25307 if ac_fn_c_try_compile "$LINENO"; then :
25308 eval "$as_gl_Symbol=yes"
25309 else
25310 eval "$as_gl_Symbol=no"
25311 fi
25312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25313 fi
25314 eval ac_res=\$$as_gl_Symbol
25315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25316 $as_echo "$ac_res" >&6; }
25317 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
25318 cat >>confdefs.h <<_ACEOF
25319 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
25320 _ACEOF
25321
25322 eval ac_cv_have_decl_$gl_func=yes
25323 fi
25324 done
25325
25326
25327
25328
25329 :
25330
25331
25332
25333
25334
25335
25336
25337
25338
25339 :
25340
25341
25342
25343
25344
25345 if test $ac_cv_have_decl_unsetenv = no; then
25346 HAVE_DECL_UNSETENV=0
25347 fi
25348 for ac_func in unsetenv
25349 do :
25350 ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
25351 if test "x$ac_cv_func_unsetenv" = xyes; then :
25352 cat >>confdefs.h <<_ACEOF
25353 #define HAVE_UNSETENV 1
25354 _ACEOF
25355
25356 fi
25357 done
25358
25359 if test $ac_cv_func_unsetenv = no; then
25360 HAVE_UNSETENV=0
25361 else
25362 HAVE_UNSETENV=1
25363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsetenv() return type" >&5
25364 $as_echo_n "checking for unsetenv() return type... " >&6; }
25365 if ${gt_cv_func_unsetenv_ret+:} false; then :
25366 $as_echo_n "(cached) " >&6
25367 else
25368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25369 /* end confdefs.h. */
25370
25371 #undef _BSD
25372 #define _BSD 1 /* unhide unsetenv declaration in OSF/1 5.1 <stdlib.h> */
25373 #include <stdlib.h>
25374 extern
25375 #ifdef __cplusplus
25376 "C"
25377 #endif
25378 int unsetenv (const char *name);
25379
25380 int
25381 main ()
25382 {
25383
25384 ;
25385 return 0;
25386 }
25387 _ACEOF
25388 if ac_fn_c_try_compile "$LINENO"; then :
25389 gt_cv_func_unsetenv_ret='int'
25390 else
25391 gt_cv_func_unsetenv_ret='void'
25392 fi
25393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25394 fi
25395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_unsetenv_ret" >&5
25396 $as_echo "$gt_cv_func_unsetenv_ret" >&6; }
25397 if test $gt_cv_func_unsetenv_ret = 'void'; then
25398
25399 $as_echo "#define VOID_UNSETENV 1" >>confdefs.h
25400
25401 REPLACE_UNSETENV=1
25402 fi
25403
25404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv obeys POSIX" >&5
25405 $as_echo_n "checking whether unsetenv obeys POSIX... " >&6; }
25406 if ${gl_cv_func_unsetenv_works+:} false; then :
25407 $as_echo_n "(cached) " >&6
25408 else
25409 if test "$cross_compiling" = yes; then :
25410 case "$host_os" in
25411 # Guess yes on glibc systems.
25412 *-gnu*) gl_cv_func_unsetenv_works="guessing yes" ;;
25413 # If we don't know, assume the worst.
25414 *) gl_cv_func_unsetenv_works="guessing no" ;;
25415 esac
25416
25417 else
25418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25419 /* end confdefs.h. */
25420
25421 #include <stdlib.h>
25422 #include <errno.h>
25423 extern char **environ;
25424
25425 int
25426 main ()
25427 {
25428
25429 char entry1[] = "a=1";
25430 char entry2[] = "b=2";
25431 char *env[] = { entry1, entry2, NULL };
25432 if (putenv ((char *) "a=1")) return 1;
25433 if (putenv (entry2)) return 2;
25434 entry2[0] = 'a';
25435 unsetenv ("a");
25436 if (getenv ("a")) return 3;
25437 if (!unsetenv ("") || errno != EINVAL) return 4;
25438 entry2[0] = 'b';
25439 environ = env;
25440 if (!getenv ("a")) return 5;
25441 entry2[0] = 'a';
25442 unsetenv ("a");
25443 if (getenv ("a")) return 6;
25444
25445 ;
25446 return 0;
25447 }
25448 _ACEOF
25449 if ac_fn_c_try_run "$LINENO"; then :
25450 gl_cv_func_unsetenv_works=yes
25451 else
25452 gl_cv_func_unsetenv_works=no
25453 fi
25454 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25455 conftest.$ac_objext conftest.beam conftest.$ac_ext
25456 fi
25457
25458 fi
25459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unsetenv_works" >&5
25460 $as_echo "$gl_cv_func_unsetenv_works" >&6; }
25461 case "$gl_cv_func_unsetenv_works" in
25462 *yes) ;;
25463 *)
25464 REPLACE_UNSETENV=1
25465 ;;
25466 esac
25467 fi
25468
25469 if test $HAVE_UNSETENV = 0 || test $REPLACE_UNSETENV = 1; then
25470
25471
25472
25473
25474
25475
25476
25477
25478 gl_LIBOBJS="$gl_LIBOBJS unsetenv.$ac_objext"
25479
25480
25481
25482
25483 :
25484
25485
25486
25487
25488
25489
25490 fi
25491
25492
25493
25494
25495
25496 GNULIB_UNSETENV=1
25497
25498
25499
25500
25501
25502 $as_echo "#define GNULIB_TEST_UNSETENV 1" >>confdefs.h
25503
25504
25505
25506
25507
25508
25509
25510
25511
25512
25513
25514
25515 :
25516
25517
25518
25519
25520
25521
25522
25523
25524 if test $gl_cv_have_include_next = yes; then
25525 gl_cv_next_wchar_h='<'wchar.h'>'
25526 else
25527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
25528 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
25529 if ${gl_cv_next_wchar_h+:} false; then :
25530 $as_echo_n "(cached) " >&6
25531 else
25532
25533 if test $ac_cv_header_wchar_h = yes; then
25534
25535
25536
25537
25538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25539 /* end confdefs.h. */
25540 #include <wchar.h>
25541 _ACEOF
25542 case "$host_os" in
25543 aix*) gl_absname_cpp="$ac_cpp -C" ;;
25544 *) gl_absname_cpp="$ac_cpp" ;;
25545 esac
25546
25547 case "$host_os" in
25548 mingw*)
25549 gl_dirsep_regex='[/\\]'
25550 ;;
25551 *)
25552 gl_dirsep_regex='\/'
25553 ;;
25554 esac
25555 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
25556 gl_header_literal_regex=`echo 'wchar.h' \
25557 | sed -e "$gl_make_literal_regex_sed"`
25558 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25559 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25560 s|^/[^/]|//&|
25561 p
25562 q
25563 }'
25564
25565 gl_cv_absolute_wchar_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25566 sed -n "$gl_absolute_header_sed"`
25567
25568 gl_header=$gl_cv_absolute_wchar_h
25569 gl_cv_next_wchar_h='"'$gl_header'"'
25570 else
25571 gl_cv_next_wchar_h='<'wchar.h'>'
25572 fi
25573
25574
25575 fi
25576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
25577 $as_echo "$gl_cv_next_wchar_h" >&6; }
25578 fi
25579 NEXT_WCHAR_H=$gl_cv_next_wchar_h
25580
25581 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25582 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25583 gl_next_as_first_directive='<'wchar.h'>'
25584 else
25585 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25586 gl_next_as_first_directive=$gl_cv_next_wchar_h
25587 fi
25588 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
25589
25590
25591
25592
25593 if test $ac_cv_header_wchar_h = yes; then
25594 HAVE_WCHAR_H=1
25595 else
25596 HAVE_WCHAR_H=0
25597 fi
25598
25599
25600
25601
25602
25603 if test $gt_cv_c_wint_t = yes; then
25604 HAVE_WINT_T=1
25605 else
25606 HAVE_WINT_T=0
25607 fi
25608
25609
25610
25611 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
25612 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
25613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
25614 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
25615 if eval \${$as_gl_Symbol+:} false; then :
25616 $as_echo_n "(cached) " >&6
25617 else
25618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25619 /* end confdefs.h. */
25620
25621 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
25622 <wchar.h>.
25623 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
25624 included before <wchar.h>. */
25625 #if !(defined __GLIBC__ && !defined __UCLIBC__)
25626 # include <stddef.h>
25627 # include <stdio.h>
25628 # include <time.h>
25629 #endif
25630 #include <wchar.h>
25631
25632 int
25633 main ()
25634 {
25635 #undef $gl_func
25636 (void) $gl_func;
25637 ;
25638 return 0;
25639 }
25640 _ACEOF
25641 if ac_fn_c_try_compile "$LINENO"; then :
25642 eval "$as_gl_Symbol=yes"
25643 else
25644 eval "$as_gl_Symbol=no"
25645 fi
25646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25647 fi
25648 eval ac_res=\$$as_gl_Symbol
25649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25650 $as_echo "$ac_res" >&6; }
25651 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
25652 cat >>confdefs.h <<_ACEOF
25653 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
25654 _ACEOF
25655
25656 eval ac_cv_have_decl_$gl_func=yes
25657 fi
25658 done
25659
25660
25661
25662
25663
25664
25665
25666 :
25667
25668
25669
25670
25671
25672 if test $ac_cv_func_iswcntrl = yes; then
25673 HAVE_ISWCNTRL=1
25674 else
25675 HAVE_ISWCNTRL=0
25676 fi
25677
25678
25679
25680 if test $gt_cv_c_wint_t = yes; then
25681 HAVE_WINT_T=1
25682 else
25683 HAVE_WINT_T=0
25684 fi
25685
25686
25687
25688
25689
25690
25691
25692
25693 :
25694
25695
25696
25697
25698
25699
25700
25701
25702 if test $gl_cv_have_include_next = yes; then
25703 gl_cv_next_wctype_h='<'wctype.h'>'
25704 else
25705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
25706 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
25707 if ${gl_cv_next_wctype_h+:} false; then :
25708 $as_echo_n "(cached) " >&6
25709 else
25710
25711 if test $ac_cv_header_wctype_h = yes; then
25712
25713
25714
25715
25716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25717 /* end confdefs.h. */
25718 #include <wctype.h>
25719 _ACEOF
25720 case "$host_os" in
25721 aix*) gl_absname_cpp="$ac_cpp -C" ;;
25722 *) gl_absname_cpp="$ac_cpp" ;;
25723 esac
25724
25725 case "$host_os" in
25726 mingw*)
25727 gl_dirsep_regex='[/\\]'
25728 ;;
25729 *)
25730 gl_dirsep_regex='\/'
25731 ;;
25732 esac
25733 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
25734 gl_header_literal_regex=`echo 'wctype.h' \
25735 | sed -e "$gl_make_literal_regex_sed"`
25736 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25737 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25738 s|^/[^/]|//&|
25739 p
25740 q
25741 }'
25742
25743 gl_cv_absolute_wctype_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25744 sed -n "$gl_absolute_header_sed"`
25745
25746 gl_header=$gl_cv_absolute_wctype_h
25747 gl_cv_next_wctype_h='"'$gl_header'"'
25748 else
25749 gl_cv_next_wctype_h='<'wctype.h'>'
25750 fi
25751
25752
25753 fi
25754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
25755 $as_echo "$gl_cv_next_wctype_h" >&6; }
25756 fi
25757 NEXT_WCTYPE_H=$gl_cv_next_wctype_h
25758
25759 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25760 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25761 gl_next_as_first_directive='<'wctype.h'>'
25762 else
25763 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25764 gl_next_as_first_directive=$gl_cv_next_wctype_h
25765 fi
25766 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
25767
25768
25769
25770
25771 if test $ac_cv_header_wctype_h = yes; then
25772 if test $ac_cv_func_iswcntrl = yes; then
25773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
25774 $as_echo_n "checking whether iswcntrl works... " >&6; }
25775 if ${gl_cv_func_iswcntrl_works+:} false; then :
25776 $as_echo_n "(cached) " >&6
25777 else
25778
25779 if test "$cross_compiling" = yes; then :
25780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25781 /* end confdefs.h. */
25782 #include <stdlib.h>
25783 #if __GNU_LIBRARY__ == 1
25784 Linux libc5 i18n is broken.
25785 #endif
25786 int
25787 main ()
25788 {
25789
25790 ;
25791 return 0;
25792 }
25793 _ACEOF
25794 if ac_fn_c_try_compile "$LINENO"; then :
25795 gl_cv_func_iswcntrl_works="guessing yes"
25796 else
25797 gl_cv_func_iswcntrl_works="guessing no"
25798 fi
25799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25800
25801 else
25802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25803 /* end confdefs.h. */
25804
25805 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
25806 included before <wchar.h>.
25807 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
25808 must be included before <wchar.h>. */
25809 #include <stddef.h>
25810 #include <stdio.h>
25811 #include <time.h>
25812 #include <wchar.h>
25813 #include <wctype.h>
25814 int main () { return iswprint ('x') == 0; }
25815
25816 _ACEOF
25817 if ac_fn_c_try_run "$LINENO"; then :
25818 gl_cv_func_iswcntrl_works=yes
25819 else
25820 gl_cv_func_iswcntrl_works=no
25821 fi
25822 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25823 conftest.$ac_objext conftest.beam conftest.$ac_ext
25824 fi
25825
25826
25827 fi
25828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
25829 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
25830 fi
25831 HAVE_WCTYPE_H=1
25832 else
25833 HAVE_WCTYPE_H=0
25834 fi
25835
25836
25837 case "$gl_cv_func_iswcntrl_works" in
25838 *yes) REPLACE_ISWCNTRL=0 ;;
25839 *) REPLACE_ISWCNTRL=1 ;;
25840 esac
25841
25842
25843 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
25844 :
25845 fi
25846
25847 if test $REPLACE_ISWCNTRL = 1; then
25848 REPLACE_TOWLOWER=1
25849 else
25850 for ac_func in towlower
25851 do :
25852 ac_fn_c_check_func "$LINENO" "towlower" "ac_cv_func_towlower"
25853 if test "x$ac_cv_func_towlower" = xyes; then :
25854 cat >>confdefs.h <<_ACEOF
25855 #define HAVE_TOWLOWER 1
25856 _ACEOF
25857
25858 fi
25859 done
25860
25861 if test $ac_cv_func_towlower = yes; then
25862 REPLACE_TOWLOWER=0
25863 else
25864 ac_fn_c_check_decl "$LINENO" "towlower" "ac_cv_have_decl_towlower" "/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
25865 included before <wchar.h>.
25866 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
25867 must be included before <wchar.h>. */
25868 #include <stddef.h>
25869 #include <stdio.h>
25870 #include <time.h>
25871 #include <wchar.h>
25872 #if HAVE_WCTYPE_H
25873 # include <wctype.h>
25874 #endif
25875
25876 "
25877 if test "x$ac_cv_have_decl_towlower" = xyes; then :
25878 ac_have_decl=1
25879 else
25880 ac_have_decl=0
25881 fi
25882
25883 cat >>confdefs.h <<_ACEOF
25884 #define HAVE_DECL_TOWLOWER $ac_have_decl
25885 _ACEOF
25886
25887 if test $ac_cv_have_decl_towlower = yes; then
25888 REPLACE_TOWLOWER=1
25889 else
25890 REPLACE_TOWLOWER=0
25891 fi
25892 fi
25893 fi
25894
25895
25896 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_TOWLOWER = 1; then
25897 :
25898 fi
25899
25900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
25901 $as_echo_n "checking for wctype_t... " >&6; }
25902 if ${gl_cv_type_wctype_t+:} false; then :
25903 $as_echo_n "(cached) " >&6
25904 else
25905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25906 /* end confdefs.h. */
25907 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
25908 included before <wchar.h>.
25909 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
25910 must be included before <wchar.h>. */
25911 #include <stddef.h>
25912 #include <stdio.h>
25913 #include <time.h>
25914 #include <wchar.h>
25915 #if HAVE_WCTYPE_H
25916 # include <wctype.h>
25917 #endif
25918 wctype_t a;
25919
25920 int
25921 main ()
25922 {
25923
25924 ;
25925 return 0;
25926 }
25927 _ACEOF
25928 if ac_fn_c_try_compile "$LINENO"; then :
25929 gl_cv_type_wctype_t=yes
25930 else
25931 gl_cv_type_wctype_t=no
25932 fi
25933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25934
25935 fi
25936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
25937 $as_echo "$gl_cv_type_wctype_t" >&6; }
25938 if test $gl_cv_type_wctype_t = no; then
25939 HAVE_WCTYPE_T=0
25940 fi
25941
25942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
25943 $as_echo_n "checking for wctrans_t... " >&6; }
25944 if ${gl_cv_type_wctrans_t+:} false; then :
25945 $as_echo_n "(cached) " >&6
25946 else
25947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25948 /* end confdefs.h. */
25949 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
25950 included before <wchar.h>.
25951 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
25952 must be included before <wchar.h>. */
25953 #include <stddef.h>
25954 #include <stdio.h>
25955 #include <time.h>
25956 #include <wchar.h>
25957 #include <wctype.h>
25958 wctrans_t a;
25959
25960 int
25961 main ()
25962 {
25963
25964 ;
25965 return 0;
25966 }
25967 _ACEOF
25968 if ac_fn_c_try_compile "$LINENO"; then :
25969 gl_cv_type_wctrans_t=yes
25970 else
25971 gl_cv_type_wctrans_t=no
25972 fi
25973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25974
25975 fi
25976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
25977 $as_echo "$gl_cv_type_wctrans_t" >&6; }
25978 if test $gl_cv_type_wctrans_t = no; then
25979 HAVE_WCTRANS_T=0
25980 fi
25981
25982
25983 for gl_func in wctype iswctype wctrans towctrans ; do
25984 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
25985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
25986 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
25987 if eval \${$as_gl_Symbol+:} false; then :
25988 $as_echo_n "(cached) " >&6
25989 else
25990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25991 /* end confdefs.h. */
25992
25993 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
25994 <wchar.h>.
25995 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
25996 included before <wchar.h>. */
25997 #if !(defined __GLIBC__ && !defined __UCLIBC__)
25998 # include <stddef.h>
25999 # include <stdio.h>
26000 # include <time.h>
26001 # include <wchar.h>
26002 #endif
26003 #include <wctype.h>
26004
26005 int
26006 main ()
26007 {
26008 #undef $gl_func
26009 (void) $gl_func;
26010 ;
26011 return 0;
26012 }
26013 _ACEOF
26014 if ac_fn_c_try_compile "$LINENO"; then :
26015 eval "$as_gl_Symbol=yes"
26016 else
26017 eval "$as_gl_Symbol=no"
26018 fi
26019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26020 fi
26021 eval ac_res=\$$as_gl_Symbol
26022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
26023 $as_echo "$ac_res" >&6; }
26024 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
26025 cat >>confdefs.h <<_ACEOF
26026 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
26027 _ACEOF
26028
26029 eval ac_cv_have_decl_$gl_func=yes
26030 fi
26031 done
26032
26033
26034 # End of code from modules
26035
26036
26037
26038
26039
26040
26041
26042
26043
26044 gltests_libdeps=
26045 gltests_ltlibdeps=
26046
26047
26048
26049
26050
26051
26052
26053
26054
26055 gl_source_base='tests'
26056 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
26057
26058 gl_module_indicator_condition=$gltests_WITNESS
26059
26060
26061
26062
26063
26064
26065
26066
26067
26068 LIBGNU_LIBDEPS="$gl_libdeps"
26069
26070 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
26071
26072
26073
26074 # We don't use automake, but gnulib does. This line lets us generate
26075 # its Makefile.in.
26076 am__api_version='1.15'
26077
26078 # Find a good install program. We prefer a C program (faster),
26079 # so one script is as good as another. But avoid the broken or
26080 # incompatible versions:
26081 # SysV /etc/install, /usr/sbin/install
26082 # SunOS /usr/etc/install
26083 # IRIX /sbin/install
26084 # AIX /bin/install
26085 # AmigaOS /C/install, which installs bootblocks on floppy discs
26086 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
26087 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
26088 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
26089 # OS/2's system install, which has a completely different semantic
26090 # ./install, which can be erroneously created by make from ./install.sh.
26091 # Reject install programs that cannot install multiple files.
26092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
26093 $as_echo_n "checking for a BSD-compatible install... " >&6; }
26094 if test -z "$INSTALL"; then
26095 if ${ac_cv_path_install+:} false; then :
26096 $as_echo_n "(cached) " >&6
26097 else
26098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26099 for as_dir in $PATH
26100 do
26101 IFS=$as_save_IFS
26102 test -z "$as_dir" && as_dir=.
26103 # Account for people who put trailing slashes in PATH elements.
26104 case $as_dir/ in #((
26105 ./ | .// | /[cC]/* | \
26106 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
26107 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
26108 /usr/ucb/* ) ;;
26109 *)
26110 # OSF1 and SCO ODT 3.0 have their own names for install.
26111 # Don't use installbsd from OSF since it installs stuff as root
26112 # by default.
26113 for ac_prog in ginstall scoinst install; do
26114 for ac_exec_ext in '' $ac_executable_extensions; do
26115 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
26116 if test $ac_prog = install &&
26117 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
26118 # AIX install. It has an incompatible calling convention.
26119 :
26120 elif test $ac_prog = install &&
26121 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
26122 # program-specific install script used by HP pwplus--don't use.
26123 :
26124 else
26125 rm -rf conftest.one conftest.two conftest.dir
26126 echo one > conftest.one
26127 echo two > conftest.two
26128 mkdir conftest.dir
26129 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
26130 test -s conftest.one && test -s conftest.two &&
26131 test -s conftest.dir/conftest.one &&
26132 test -s conftest.dir/conftest.two
26133 then
26134 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
26135 break 3
26136 fi
26137 fi
26138 fi
26139 done
26140 done
26141 ;;
26142 esac
26143
26144 done
26145 IFS=$as_save_IFS
26146
26147 rm -rf conftest.one conftest.two conftest.dir
26148
26149 fi
26150 if test "${ac_cv_path_install+set}" = set; then
26151 INSTALL=$ac_cv_path_install
26152 else
26153 # As a last resort, use the slow shell script. Don't cache a
26154 # value for INSTALL within a source directory, because that will
26155 # break other packages using the cache if that directory is
26156 # removed, or if the value is a relative name.
26157 INSTALL=$ac_install_sh
26158 fi
26159 fi
26160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
26161 $as_echo "$INSTALL" >&6; }
26162
26163 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
26164 # It thinks the first close brace ends the variable substitution.
26165 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
26166
26167 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
26168
26169 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
26170
26171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
26172 $as_echo_n "checking whether build environment is sane... " >&6; }
26173 # Reject unsafe characters in $srcdir or the absolute working directory
26174 # name. Accept space and tab only in the latter.
26175 am_lf='
26176 '
26177 case `pwd` in
26178 *[\\\"\#\$\&\'\`$am_lf]*)
26179 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
26180 esac
26181 case $srcdir in
26182 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
26183 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
26184 esac
26185
26186 # Do 'set' in a subshell so we don't clobber the current shell's
26187 # arguments. Must try -L first in case configure is actually a
26188 # symlink; some systems play weird games with the mod time of symlinks
26189 # (eg FreeBSD returns the mod time of the symlink's containing
26190 # directory).
26191 if (
26192 am_has_slept=no
26193 for am_try in 1 2; do
26194 echo "timestamp, slept: $am_has_slept" > conftest.file
26195 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
26196 if test "$*" = "X"; then
26197 # -L didn't work.
26198 set X `ls -t "$srcdir/configure" conftest.file`
26199 fi
26200 if test "$*" != "X $srcdir/configure conftest.file" \
26201 && test "$*" != "X conftest.file $srcdir/configure"; then
26202
26203 # If neither matched, then we have a broken ls. This can happen
26204 # if, for instance, CONFIG_SHELL is bash and it inherits a
26205 # broken ls alias from the environment. This has actually
26206 # happened. Such a system could not be considered "sane".
26207 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
26208 alias in your environment" "$LINENO" 5
26209 fi
26210 if test "$2" = conftest.file || test $am_try -eq 2; then
26211 break
26212 fi
26213 # Just in case.
26214 sleep 1
26215 am_has_slept=yes
26216 done
26217 test "$2" = conftest.file
26218 )
26219 then
26220 # Ok.
26221 :
26222 else
26223 as_fn_error $? "newly created file is older than distributed files!
26224 Check your system clock" "$LINENO" 5
26225 fi
26226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26227 $as_echo "yes" >&6; }
26228 # If we didn't sleep, we still need to ensure time stamps of config.status and
26229 # generated files are strictly newer.
26230 am_sleep_pid=
26231 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
26232 ( sleep 1 ) &
26233 am_sleep_pid=$!
26234 fi
26235
26236 rm -f conftest.file
26237
26238 test "$program_prefix" != NONE &&
26239 program_transform_name="s&^&$program_prefix&;$program_transform_name"
26240 # Use a double $ so make ignores it.
26241 test "$program_suffix" != NONE &&
26242 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
26243 # Double any \ or $.
26244 # By default was `s,x,x', remove it if useless.
26245 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
26246 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
26247
26248 if test x"${MISSING+set}" != xset; then
26249 case $am_aux_dir in
26250 *\ * | *\ *)
26251 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
26252 *)
26253 MISSING="\${SHELL} $am_aux_dir/missing" ;;
26254 esac
26255 fi
26256 # Use eval to expand $SHELL
26257 if eval "$MISSING --is-lightweight"; then
26258 am_missing_run="$MISSING "
26259 else
26260 am_missing_run=
26261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
26262 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
26263 fi
26264
26265 if test x"${install_sh+set}" != xset; then
26266 case $am_aux_dir in
26267 *\ * | *\ *)
26268 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
26269 *)
26270 install_sh="\${SHELL} $am_aux_dir/install-sh"
26271 esac
26272 fi
26273
26274 # Installed binaries are usually stripped using 'strip' when the user
26275 # run "make install-strip". However 'strip' might not be the right
26276 # tool to use in cross-compilation environments, therefore Automake
26277 # will honor the 'STRIP' environment variable to overrule this program.
26278 if test "$cross_compiling" != no; then
26279 if test -n "$ac_tool_prefix"; then
26280 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
26281 set dummy ${ac_tool_prefix}strip; ac_word=$2
26282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26283 $as_echo_n "checking for $ac_word... " >&6; }
26284 if ${ac_cv_prog_STRIP+:} false; then :
26285 $as_echo_n "(cached) " >&6
26286 else
26287 if test -n "$STRIP"; then
26288 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
26289 else
26290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26291 for as_dir in $PATH
26292 do
26293 IFS=$as_save_IFS
26294 test -z "$as_dir" && as_dir=.
26295 for ac_exec_ext in '' $ac_executable_extensions; do
26296 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26297 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
26298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26299 break 2
26300 fi
26301 done
26302 done
26303 IFS=$as_save_IFS
26304
26305 fi
26306 fi
26307 STRIP=$ac_cv_prog_STRIP
26308 if test -n "$STRIP"; then
26309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
26310 $as_echo "$STRIP" >&6; }
26311 else
26312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26313 $as_echo "no" >&6; }
26314 fi
26315
26316
26317 fi
26318 if test -z "$ac_cv_prog_STRIP"; then
26319 ac_ct_STRIP=$STRIP
26320 # Extract the first word of "strip", so it can be a program name with args.
26321 set dummy strip; ac_word=$2
26322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26323 $as_echo_n "checking for $ac_word... " >&6; }
26324 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
26325 $as_echo_n "(cached) " >&6
26326 else
26327 if test -n "$ac_ct_STRIP"; then
26328 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
26329 else
26330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26331 for as_dir in $PATH
26332 do
26333 IFS=$as_save_IFS
26334 test -z "$as_dir" && as_dir=.
26335 for ac_exec_ext in '' $ac_executable_extensions; do
26336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26337 ac_cv_prog_ac_ct_STRIP="strip"
26338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26339 break 2
26340 fi
26341 done
26342 done
26343 IFS=$as_save_IFS
26344
26345 fi
26346 fi
26347 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
26348 if test -n "$ac_ct_STRIP"; then
26349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
26350 $as_echo "$ac_ct_STRIP" >&6; }
26351 else
26352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26353 $as_echo "no" >&6; }
26354 fi
26355
26356 if test "x$ac_ct_STRIP" = x; then
26357 STRIP=":"
26358 else
26359 case $cross_compiling:$ac_tool_warned in
26360 yes:)
26361 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26362 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26363 ac_tool_warned=yes ;;
26364 esac
26365 STRIP=$ac_ct_STRIP
26366 fi
26367 else
26368 STRIP="$ac_cv_prog_STRIP"
26369 fi
26370
26371 fi
26372 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
26373
26374 for ac_prog in gawk mawk nawk awk
26375 do
26376 # Extract the first word of "$ac_prog", so it can be a program name with args.
26377 set dummy $ac_prog; ac_word=$2
26378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26379 $as_echo_n "checking for $ac_word... " >&6; }
26380 if ${ac_cv_prog_AWK+:} false; then :
26381 $as_echo_n "(cached) " >&6
26382 else
26383 if test -n "$AWK"; then
26384 ac_cv_prog_AWK="$AWK" # Let the user override the test.
26385 else
26386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26387 for as_dir in $PATH
26388 do
26389 IFS=$as_save_IFS
26390 test -z "$as_dir" && as_dir=.
26391 for ac_exec_ext in '' $ac_executable_extensions; do
26392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26393 ac_cv_prog_AWK="$ac_prog"
26394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26395 break 2
26396 fi
26397 done
26398 done
26399 IFS=$as_save_IFS
26400
26401 fi
26402 fi
26403 AWK=$ac_cv_prog_AWK
26404 if test -n "$AWK"; then
26405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
26406 $as_echo "$AWK" >&6; }
26407 else
26408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26409 $as_echo "no" >&6; }
26410 fi
26411
26412
26413 test -n "$AWK" && break
26414 done
26415
26416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
26417 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
26418 set x ${MAKE-make}
26419 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
26420 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
26421 $as_echo_n "(cached) " >&6
26422 else
26423 cat >conftest.make <<\_ACEOF
26424 SHELL = /bin/sh
26425 all:
26426 @echo '@@@%%%=$(MAKE)=@@@%%%'
26427 _ACEOF
26428 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
26429 case `${MAKE-make} -f conftest.make 2>/dev/null` in
26430 *@@@%%%=?*=@@@%%%*)
26431 eval ac_cv_prog_make_${ac_make}_set=yes;;
26432 *)
26433 eval ac_cv_prog_make_${ac_make}_set=no;;
26434 esac
26435 rm -f conftest.make
26436 fi
26437 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
26438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26439 $as_echo "yes" >&6; }
26440 SET_MAKE=
26441 else
26442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26443 $as_echo "no" >&6; }
26444 SET_MAKE="MAKE=${MAKE-make}"
26445 fi
26446
26447 rm -rf .tst 2>/dev/null
26448 mkdir .tst 2>/dev/null
26449 if test -d .tst; then
26450 am__leading_dot=.
26451 else
26452 am__leading_dot=_
26453 fi
26454 rmdir .tst 2>/dev/null
26455
26456 DEPDIR="${am__leading_dot}deps"
26457
26458 ac_config_commands="$ac_config_commands depfiles"
26459
26460
26461 am_make=${MAKE-make}
26462 cat > confinc << 'END'
26463 am__doit:
26464 @echo this is the am__doit target
26465 .PHONY: am__doit
26466 END
26467 # If we don't find an include directive, just comment out the code.
26468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
26469 $as_echo_n "checking for style of include used by $am_make... " >&6; }
26470 am__include="#"
26471 am__quote=
26472 _am_result=none
26473 # First try GNU make style include.
26474 echo "include confinc" > confmf
26475 # Ignore all kinds of additional output from 'make'.
26476 case `$am_make -s -f confmf 2> /dev/null` in #(
26477 *the\ am__doit\ target*)
26478 am__include=include
26479 am__quote=
26480 _am_result=GNU
26481 ;;
26482 esac
26483 # Now try BSD make style include.
26484 if test "$am__include" = "#"; then
26485 echo '.include "confinc"' > confmf
26486 case `$am_make -s -f confmf 2> /dev/null` in #(
26487 *the\ am__doit\ target*)
26488 am__include=.include
26489 am__quote="\""
26490 _am_result=BSD
26491 ;;
26492 esac
26493 fi
26494
26495
26496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
26497 $as_echo "$_am_result" >&6; }
26498 rm -f confinc confmf
26499
26500 # Check whether --enable-dependency-tracking was given.
26501 if test "${enable_dependency_tracking+set}" = set; then :
26502 enableval=$enable_dependency_tracking;
26503 fi
26504
26505 if test "x$enable_dependency_tracking" != xno; then
26506 am_depcomp="$ac_aux_dir/depcomp"
26507 AMDEPBACKSLASH='\'
26508 am__nodep='_no'
26509 fi
26510 if test "x$enable_dependency_tracking" != xno; then
26511 AMDEP_TRUE=
26512 AMDEP_FALSE='#'
26513 else
26514 AMDEP_TRUE='#'
26515 AMDEP_FALSE=
26516 fi
26517
26518
26519 # Check whether --enable-silent-rules was given.
26520 if test "${enable_silent_rules+set}" = set; then :
26521 enableval=$enable_silent_rules;
26522 fi
26523
26524 case $enable_silent_rules in # (((
26525 yes) AM_DEFAULT_VERBOSITY=0;;
26526 no) AM_DEFAULT_VERBOSITY=1;;
26527 *) AM_DEFAULT_VERBOSITY=1;;
26528 esac
26529 am_make=${MAKE-make}
26530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
26531 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
26532 if ${am_cv_make_support_nested_variables+:} false; then :
26533 $as_echo_n "(cached) " >&6
26534 else
26535 if $as_echo 'TRUE=$(BAR$(V))
26536 BAR0=false
26537 BAR1=true
26538 V=1
26539 am__doit:
26540 @$(TRUE)
26541 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
26542 am_cv_make_support_nested_variables=yes
26543 else
26544 am_cv_make_support_nested_variables=no
26545 fi
26546 fi
26547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
26548 $as_echo "$am_cv_make_support_nested_variables" >&6; }
26549 if test $am_cv_make_support_nested_variables = yes; then
26550 AM_V='$(V)'
26551 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
26552 else
26553 AM_V=$AM_DEFAULT_VERBOSITY
26554 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
26555 fi
26556 AM_BACKSLASH='\'
26557
26558 if test "`cd $srcdir && pwd`" != "`pwd`"; then
26559 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
26560 # is not polluted with repeated "-I."
26561 am__isrc=' -I$(srcdir)'
26562 # test to see if srcdir already configured
26563 if test -f $srcdir/config.status; then
26564 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
26565 fi
26566 fi
26567
26568 # test whether we have cygpath
26569 if test -z "$CYGPATH_W"; then
26570 if (cygpath --version) >/dev/null 2>/dev/null; then
26571 CYGPATH_W='cygpath -w'
26572 else
26573 CYGPATH_W=echo
26574 fi
26575 fi
26576
26577
26578 # Define the identity of the package.
26579 PACKAGE='libgnu'
26580 VERSION='UNUSED-VERSION'
26581
26582
26583 # Some tools Automake needs.
26584
26585 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
26586
26587
26588 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
26589
26590
26591 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
26592
26593
26594 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
26595
26596
26597 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
26598
26599 # For better backward compatibility. To be removed once Automake 1.9.x
26600 # dies out for good. For more background, see:
26601 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
26602 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
26603 mkdir_p='$(MKDIR_P)'
26604
26605 # We need awk for the "check" target (and possibly the TAP driver). The
26606 # system "awk" is bad on some platforms.
26607 # Always define AMTAR for backward compatibility. Yes, it's still used
26608 # in the wild :-( We should find a proper way to deprecate it ...
26609 AMTAR='$${TAR-tar}'
26610
26611
26612 # We'll loop over all known methods to create a tar archive until one works.
26613 _am_tools='gnutar pax cpio none'
26614
26615 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
26616
26617
26618
26619
26620
26621 depcc="$CC" am_compiler_list=
26622
26623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
26624 $as_echo_n "checking dependency style of $depcc... " >&6; }
26625 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
26626 $as_echo_n "(cached) " >&6
26627 else
26628 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
26629 # We make a subdir and do the tests there. Otherwise we can end up
26630 # making bogus files that we don't know about and never remove. For
26631 # instance it was reported that on HP-UX the gcc test will end up
26632 # making a dummy file named 'D' -- because '-MD' means "put the output
26633 # in D".
26634 rm -rf conftest.dir
26635 mkdir conftest.dir
26636 # Copy depcomp to subdir because otherwise we won't find it if we're
26637 # using a relative directory.
26638 cp "$am_depcomp" conftest.dir
26639 cd conftest.dir
26640 # We will build objects and dependencies in a subdirectory because
26641 # it helps to detect inapplicable dependency modes. For instance
26642 # both Tru64's cc and ICC support -MD to output dependencies as a
26643 # side effect of compilation, but ICC will put the dependencies in
26644 # the current directory while Tru64 will put them in the object
26645 # directory.
26646 mkdir sub
26647
26648 am_cv_CC_dependencies_compiler_type=none
26649 if test "$am_compiler_list" = ""; then
26650 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
26651 fi
26652 am__universal=false
26653 case " $depcc " in #(
26654 *\ -arch\ *\ -arch\ *) am__universal=true ;;
26655 esac
26656
26657 for depmode in $am_compiler_list; do
26658 # Setup a source with many dependencies, because some compilers
26659 # like to wrap large dependency lists on column 80 (with \), and
26660 # we should not choose a depcomp mode which is confused by this.
26661 #
26662 # We need to recreate these files for each test, as the compiler may
26663 # overwrite some of them when testing with obscure command lines.
26664 # This happens at least with the AIX C compiler.
26665 : > sub/conftest.c
26666 for i in 1 2 3 4 5 6; do
26667 echo '#include "conftst'$i'.h"' >> sub/conftest.c
26668 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
26669 # Solaris 10 /bin/sh.
26670 echo '/* dummy */' > sub/conftst$i.h
26671 done
26672 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
26673
26674 # We check with '-c' and '-o' for the sake of the "dashmstdout"
26675 # mode. It turns out that the SunPro C++ compiler does not properly
26676 # handle '-M -o', and we need to detect this. Also, some Intel
26677 # versions had trouble with output in subdirs.
26678 am__obj=sub/conftest.${OBJEXT-o}
26679 am__minus_obj="-o $am__obj"
26680 case $depmode in
26681 gcc)
26682 # This depmode causes a compiler race in universal mode.
26683 test "$am__universal" = false || continue
26684 ;;
26685 nosideeffect)
26686 # After this tag, mechanisms are not by side-effect, so they'll
26687 # only be used when explicitly requested.
26688 if test "x$enable_dependency_tracking" = xyes; then
26689 continue
26690 else
26691 break
26692 fi
26693 ;;
26694 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
26695 # This compiler won't grok '-c -o', but also, the minuso test has
26696 # not run yet. These depmodes are late enough in the game, and
26697 # so weak that their functioning should not be impacted.
26698 am__obj=conftest.${OBJEXT-o}
26699 am__minus_obj=
26700 ;;
26701 none) break ;;
26702 esac
26703 if depmode=$depmode \
26704 source=sub/conftest.c object=$am__obj \
26705 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
26706 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
26707 >/dev/null 2>conftest.err &&
26708 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
26709 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
26710 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
26711 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
26712 # icc doesn't choke on unknown options, it will just issue warnings
26713 # or remarks (even with -Werror). So we grep stderr for any message
26714 # that says an option was ignored or not supported.
26715 # When given -MP, icc 7.0 and 7.1 complain thusly:
26716 # icc: Command line warning: ignoring option '-M'; no argument required
26717 # The diagnosis changed in icc 8.0:
26718 # icc: Command line remark: option '-MP' not supported
26719 if (grep 'ignoring option' conftest.err ||
26720 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
26721 am_cv_CC_dependencies_compiler_type=$depmode
26722 break
26723 fi
26724 fi
26725 done
26726
26727 cd ..
26728 rm -rf conftest.dir
26729 else
26730 am_cv_CC_dependencies_compiler_type=none
26731 fi
26732
26733 fi
26734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
26735 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
26736 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
26737
26738 if
26739 test "x$enable_dependency_tracking" != xno \
26740 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
26741 am__fastdepCC_TRUE=
26742 am__fastdepCC_FALSE='#'
26743 else
26744 am__fastdepCC_TRUE='#'
26745 am__fastdepCC_FALSE=
26746 fi
26747
26748
26749
26750 # POSIX will say in a future version that running "rm -f" with no argument
26751 # is OK; and we want to be able to make that assumption in our Makefile
26752 # recipes. So use an aggressive probe to check that the usage we want is
26753 # actually supported "in the wild" to an acceptable degree.
26754 # See automake bug#10828.
26755 # To make any issue more visible, cause the running configure to be aborted
26756 # by default if the 'rm' program in use doesn't match our expectations; the
26757 # user can still override this though.
26758 if rm -f && rm -fr && rm -rf; then : OK; else
26759 cat >&2 <<'END'
26760 Oops!
26761
26762 Your 'rm' program seems unable to run without file operands specified
26763 on the command line, even when the '-f' option is present. This is contrary
26764 to the behaviour of most rm programs out there, and not conforming with
26765 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
26766
26767 Please tell bug-automake@gnu.org about your system, including the value
26768 of your $PATH and any error possibly output before this message. This
26769 can help us improve future automake versions.
26770
26771 END
26772 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
26773 echo 'Configuration will proceed anyway, since you have set the' >&2
26774 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
26775 echo >&2
26776 else
26777 cat >&2 <<'END'
26778 Aborting the configuration process, to ensure you take notice of the issue.
26779
26780 You can download and install GNU coreutils to get an 'rm' implementation
26781 that behaves properly: <http://www.gnu.org/software/coreutils/>.
26782
26783 If you want to complete the configuration process using your problematic
26784 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
26785 to "yes", and re-run configure.
26786
26787 END
26788 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
26789 fi
26790 fi
26791
26792
26793 # Check whether --enable-silent-rules was given.
26794 if test "${enable_silent_rules+set}" = set; then :
26795 enableval=$enable_silent_rules;
26796 fi
26797
26798 case $enable_silent_rules in # (((
26799 yes) AM_DEFAULT_VERBOSITY=0;;
26800 no) AM_DEFAULT_VERBOSITY=1;;
26801 *) AM_DEFAULT_VERBOSITY=0;;
26802 esac
26803 am_make=${MAKE-make}
26804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
26805 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
26806 if ${am_cv_make_support_nested_variables+:} false; then :
26807 $as_echo_n "(cached) " >&6
26808 else
26809 if $as_echo 'TRUE=$(BAR$(V))
26810 BAR0=false
26811 BAR1=true
26812 V=1
26813 am__doit:
26814 @$(TRUE)
26815 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
26816 am_cv_make_support_nested_variables=yes
26817 else
26818 am_cv_make_support_nested_variables=no
26819 fi
26820 fi
26821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
26822 $as_echo "$am_cv_make_support_nested_variables" >&6; }
26823 if test $am_cv_make_support_nested_variables = yes; then
26824 AM_V='$(V)'
26825 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
26826 else
26827 AM_V=$AM_DEFAULT_VERBOSITY
26828 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
26829 fi
26830 AM_BACKSLASH='\'
26831
26832
26833 # --------------------- #
26834 # Checks for programs. #
26835 # --------------------- #
26836
26837
26838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
26839 $as_echo_n "checking whether ln -s works... " >&6; }
26840 LN_S=$as_ln_s
26841 if test "$LN_S" = "ln -s"; then
26842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26843 $as_echo "yes" >&6; }
26844 else
26845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
26846 $as_echo "no, using $LN_S" >&6; }
26847 fi
26848
26849 if test -n "$ac_tool_prefix"; then
26850 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
26851 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
26852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26853 $as_echo_n "checking for $ac_word... " >&6; }
26854 if ${ac_cv_prog_RANLIB+:} false; then :
26855 $as_echo_n "(cached) " >&6
26856 else
26857 if test -n "$RANLIB"; then
26858 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
26859 else
26860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26861 for as_dir in $PATH
26862 do
26863 IFS=$as_save_IFS
26864 test -z "$as_dir" && as_dir=.
26865 for ac_exec_ext in '' $ac_executable_extensions; do
26866 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26867 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
26868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26869 break 2
26870 fi
26871 done
26872 done
26873 IFS=$as_save_IFS
26874
26875 fi
26876 fi
26877 RANLIB=$ac_cv_prog_RANLIB
26878 if test -n "$RANLIB"; then
26879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
26880 $as_echo "$RANLIB" >&6; }
26881 else
26882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26883 $as_echo "no" >&6; }
26884 fi
26885
26886
26887 fi
26888 if test -z "$ac_cv_prog_RANLIB"; then
26889 ac_ct_RANLIB=$RANLIB
26890 # Extract the first word of "ranlib", so it can be a program name with args.
26891 set dummy ranlib; ac_word=$2
26892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26893 $as_echo_n "checking for $ac_word... " >&6; }
26894 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
26895 $as_echo_n "(cached) " >&6
26896 else
26897 if test -n "$ac_ct_RANLIB"; then
26898 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
26899 else
26900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26901 for as_dir in $PATH
26902 do
26903 IFS=$as_save_IFS
26904 test -z "$as_dir" && as_dir=.
26905 for ac_exec_ext in '' $ac_executable_extensions; do
26906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26907 ac_cv_prog_ac_ct_RANLIB="ranlib"
26908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26909 break 2
26910 fi
26911 done
26912 done
26913 IFS=$as_save_IFS
26914
26915 fi
26916 fi
26917 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
26918 if test -n "$ac_ct_RANLIB"; then
26919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
26920 $as_echo "$ac_ct_RANLIB" >&6; }
26921 else
26922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26923 $as_echo "no" >&6; }
26924 fi
26925
26926 if test "x$ac_ct_RANLIB" = x; then
26927 RANLIB=":"
26928 else
26929 case $cross_compiling:$ac_tool_warned in
26930 yes:)
26931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26932 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26933 ac_tool_warned=yes ;;
26934 esac
26935 RANLIB=$ac_ct_RANLIB
26936 fi
26937 else
26938 RANLIB="$ac_cv_prog_RANLIB"
26939 fi
26940
26941
26942 if test -n "$ac_tool_prefix"; then
26943 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
26944 set dummy ${ac_tool_prefix}ar; ac_word=$2
26945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26946 $as_echo_n "checking for $ac_word... " >&6; }
26947 if ${ac_cv_prog_AR+:} false; then :
26948 $as_echo_n "(cached) " >&6
26949 else
26950 if test -n "$AR"; then
26951 ac_cv_prog_AR="$AR" # Let the user override the test.
26952 else
26953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26954 for as_dir in $PATH
26955 do
26956 IFS=$as_save_IFS
26957 test -z "$as_dir" && as_dir=.
26958 for ac_exec_ext in '' $ac_executable_extensions; do
26959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26960 ac_cv_prog_AR="${ac_tool_prefix}ar"
26961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26962 break 2
26963 fi
26964 done
26965 done
26966 IFS=$as_save_IFS
26967
26968 fi
26969 fi
26970 AR=$ac_cv_prog_AR
26971 if test -n "$AR"; then
26972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
26973 $as_echo "$AR" >&6; }
26974 else
26975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26976 $as_echo "no" >&6; }
26977 fi
26978
26979
26980 fi
26981 if test -z "$ac_cv_prog_AR"; then
26982 ac_ct_AR=$AR
26983 # Extract the first word of "ar", so it can be a program name with args.
26984 set dummy ar; ac_word=$2
26985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26986 $as_echo_n "checking for $ac_word... " >&6; }
26987 if ${ac_cv_prog_ac_ct_AR+:} false; then :
26988 $as_echo_n "(cached) " >&6
26989 else
26990 if test -n "$ac_ct_AR"; then
26991 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
26992 else
26993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26994 for as_dir in $PATH
26995 do
26996 IFS=$as_save_IFS
26997 test -z "$as_dir" && as_dir=.
26998 for ac_exec_ext in '' $ac_executable_extensions; do
26999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27000 ac_cv_prog_ac_ct_AR="ar"
27001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27002 break 2
27003 fi
27004 done
27005 done
27006 IFS=$as_save_IFS
27007
27008 fi
27009 fi
27010 ac_ct_AR=$ac_cv_prog_ac_ct_AR
27011 if test -n "$ac_ct_AR"; then
27012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
27013 $as_echo "$ac_ct_AR" >&6; }
27014 else
27015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27016 $as_echo "no" >&6; }
27017 fi
27018
27019 if test "x$ac_ct_AR" = x; then
27020 AR=""
27021 else
27022 case $cross_compiling:$ac_tool_warned in
27023 yes:)
27024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
27025 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27026 ac_tool_warned=yes ;;
27027 esac
27028 AR=$ac_ct_AR
27029 fi
27030 else
27031 AR="$ac_cv_prog_AR"
27032 fi
27033
27034
27035 # ---------------------- #
27036 # Checks for libraries. #
27037 # ---------------------- #
27038
27039 ac_config_files="$ac_config_files Makefile import/Makefile"
27040
27041 ac_config_commands="$ac_config_commands default"
27042
27043 cat >confcache <<\_ACEOF
27044 # This file is a shell script that caches the results of configure
27045 # tests run on this system so they can be shared between configure
27046 # scripts and configure runs, see configure's option --config-cache.
27047 # It is not useful on other systems. If it contains results you don't
27048 # want to keep, you may remove or edit it.
27049 #
27050 # config.status only pays attention to the cache file if you give it
27051 # the --recheck option to rerun configure.
27052 #
27053 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27054 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27055 # following values.
27056
27057 _ACEOF
27058
27059 # The following way of writing the cache mishandles newlines in values,
27060 # but we know of no workaround that is simple, portable, and efficient.
27061 # So, we kill variables containing newlines.
27062 # Ultrix sh set writes to stderr and can't be redirected directly,
27063 # and sets the high bit in the cache file unless we assign to the vars.
27064 (
27065 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27066 eval ac_val=\$$ac_var
27067 case $ac_val in #(
27068 *${as_nl}*)
27069 case $ac_var in #(
27070 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27071 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27072 esac
27073 case $ac_var in #(
27074 _ | IFS | as_nl) ;; #(
27075 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
27076 *) { eval $ac_var=; unset $ac_var;} ;;
27077 esac ;;
27078 esac
27079 done
27080
27081 (set) 2>&1 |
27082 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27083 *${as_nl}ac_space=\ *)
27084 # `set' does not quote correctly, so add quotes: double-quote
27085 # substitution turns \\\\ into \\, and sed turns \\ into \.
27086 sed -n \
27087 "s/'/'\\\\''/g;
27088 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27089 ;; #(
27090 *)
27091 # `set' quotes correctly as required by POSIX, so do not add quotes.
27092 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27093 ;;
27094 esac |
27095 sort
27096 ) |
27097 sed '
27098 /^ac_cv_env_/b end
27099 t clear
27100 :clear
27101 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27102 t end
27103 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27104 :end' >>confcache
27105 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27106 if test -w "$cache_file"; then
27107 if test "x$cache_file" != "x/dev/null"; then
27108 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27109 $as_echo "$as_me: updating cache $cache_file" >&6;}
27110 if test ! -f "$cache_file" || test -h "$cache_file"; then
27111 cat confcache >"$cache_file"
27112 else
27113 case $cache_file in #(
27114 */* | ?:*)
27115 mv -f confcache "$cache_file"$$ &&
27116 mv -f "$cache_file"$$ "$cache_file" ;; #(
27117 *)
27118 mv -f confcache "$cache_file" ;;
27119 esac
27120 fi
27121 fi
27122 else
27123 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27124 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27125 fi
27126 fi
27127 rm -f confcache
27128
27129 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27130 # Let make expand exec_prefix.
27131 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27132
27133 DEFS=-DHAVE_CONFIG_H
27134
27135 ac_libobjs=
27136 ac_ltlibobjs=
27137 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27138 # 1. Remove the extension, and $U if already installed.
27139 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27140 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
27141 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27142 # will be set to the directory where LIBOBJS objects are built.
27143 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27144 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
27145 done
27146 LIBOBJS=$ac_libobjs
27147
27148 LTLIBOBJS=$ac_ltlibobjs
27149
27150
27151 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
27152 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
27153 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27154 fi
27155 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
27156 as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
27157 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27158 fi
27159 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
27160 as_fn_error $? "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
27161 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27162 fi
27163 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
27164 as_fn_error $? "conditional \"GL_GENERATE_ERRNO_H\" was never defined.
27165 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27166 fi
27167 if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
27168 as_fn_error $? "conditional \"GL_GENERATE_FLOAT_H\" was never defined.
27169 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27170 fi
27171 if test -z "${GL_GENERATE_FNMATCH_H_TRUE}" && test -z "${GL_GENERATE_FNMATCH_H_FALSE}"; then
27172 as_fn_error $? "conditional \"GL_GENERATE_FNMATCH_H\" was never defined.
27173 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27174 fi
27175 if test -z "${GL_GENERATE_GLOB_H_TRUE}" && test -z "${GL_GENERATE_GLOB_H_FALSE}"; then
27176 as_fn_error $? "conditional \"GL_GENERATE_GLOB_H\" was never defined.
27177 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27178 fi
27179 if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
27180 as_fn_error $? "conditional \"GL_GENERATE_LIMITS_H\" was never defined.
27181 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27182 fi
27183 if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
27184 as_fn_error $? "conditional \"GL_GENERATE_LIMITS_H\" was never defined.
27185 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27186 fi
27187 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
27188 as_fn_error $? "conditional \"GL_GENERATE_STDINT_H\" was never defined.
27189 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27190 fi
27191
27192
27193 if test -z "${GL_GENERATE_NETINET_IN_H_TRUE}" && test -z "${GL_GENERATE_NETINET_IN_H_FALSE}"; then
27194 as_fn_error $? "conditional \"GL_GENERATE_NETINET_IN_H\" was never defined.
27195 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27196 fi
27197 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
27198 as_fn_error $? "conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
27199 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27200 fi
27201 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
27202 as_fn_error $? "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
27203 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27204 fi
27205 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
27206 as_fn_error $? "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
27207 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27208 fi
27209
27210 gl_libobjs=
27211 gl_ltlibobjs=
27212 if test -n "$gl_LIBOBJS"; then
27213 # Remove the extension.
27214 sed_drop_objext='s/\.o$//;s/\.obj$//'
27215 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
27216 gl_libobjs="$gl_libobjs $i.$ac_objext"
27217 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
27218 done
27219 fi
27220 gl_LIBOBJS=$gl_libobjs
27221
27222 gl_LTLIBOBJS=$gl_ltlibobjs
27223
27224
27225
27226 gltests_libobjs=
27227 gltests_ltlibobjs=
27228 if test -n "$gltests_LIBOBJS"; then
27229 # Remove the extension.
27230 sed_drop_objext='s/\.o$//;s/\.obj$//'
27231 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
27232 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
27233 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
27234 done
27235 fi
27236 gltests_LIBOBJS=$gltests_libobjs
27237
27238 gltests_LTLIBOBJS=$gltests_ltlibobjs
27239
27240
27241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
27242 $as_echo_n "checking that generated files are newer than configure... " >&6; }
27243 if test -n "$am_sleep_pid"; then
27244 # Hide warnings about reused PIDs.
27245 wait $am_sleep_pid 2>/dev/null
27246 fi
27247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
27248 $as_echo "done" >&6; }
27249 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
27250 as_fn_error $? "conditional \"AMDEP\" was never defined.
27251 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27252 fi
27253 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27254 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
27255 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27256 fi
27257 if test -n "$EXEEXT"; then
27258 am__EXEEXT_TRUE=
27259 am__EXEEXT_FALSE='#'
27260 else
27261 am__EXEEXT_TRUE='#'
27262 am__EXEEXT_FALSE=
27263 fi
27264
27265
27266 : "${CONFIG_STATUS=./config.status}"
27267 ac_write_fail=0
27268 ac_clean_files_save=$ac_clean_files
27269 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27270 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27271 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27272 as_write_fail=0
27273 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27274 #! $SHELL
27275 # Generated by $as_me.
27276 # Run this file to recreate the current configuration.
27277 # Compiler output produced by configure, useful for debugging
27278 # configure, is in config.log if it exists.
27279
27280 debug=false
27281 ac_cs_recheck=false
27282 ac_cs_silent=false
27283
27284 SHELL=\${CONFIG_SHELL-$SHELL}
27285 export SHELL
27286 _ASEOF
27287 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
27288 ## -------------------- ##
27289 ## M4sh Initialization. ##
27290 ## -------------------- ##
27291
27292 # Be more Bourne compatible
27293 DUALCASE=1; export DUALCASE # for MKS sh
27294 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
27295 emulate sh
27296 NULLCMD=:
27297 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27298 # is contrary to our usage. Disable this feature.
27299 alias -g '${1+"$@"}'='"$@"'
27300 setopt NO_GLOB_SUBST
27301 else
27302 case `(set -o) 2>/dev/null` in #(
27303 *posix*) :
27304 set -o posix ;; #(
27305 *) :
27306 ;;
27307 esac
27308 fi
27309
27310
27311 as_nl='
27312 '
27313 export as_nl
27314 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27315 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27316 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27317 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27318 # Prefer a ksh shell builtin over an external printf program on Solaris,
27319 # but without wasting forks for bash or zsh.
27320 if test -z "$BASH_VERSION$ZSH_VERSION" \
27321 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27322 as_echo='print -r --'
27323 as_echo_n='print -rn --'
27324 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27325 as_echo='printf %s\n'
27326 as_echo_n='printf %s'
27327 else
27328 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27329 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
27330 as_echo_n='/usr/ucb/echo -n'
27331 else
27332 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27333 as_echo_n_body='eval
27334 arg=$1;
27335 case $arg in #(
27336 *"$as_nl"*)
27337 expr "X$arg" : "X\\(.*\\)$as_nl";
27338 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27339 esac;
27340 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
27341 '
27342 export as_echo_n_body
27343 as_echo_n='sh -c $as_echo_n_body as_echo'
27344 fi
27345 export as_echo_body
27346 as_echo='sh -c $as_echo_body as_echo'
27347 fi
27348
27349 # The user is always right.
27350 if test "${PATH_SEPARATOR+set}" != set; then
27351 PATH_SEPARATOR=:
27352 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27353 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27354 PATH_SEPARATOR=';'
27355 }
27356 fi
27357
27358
27359 # IFS
27360 # We need space, tab and new line, in precisely that order. Quoting is
27361 # there to prevent editors from complaining about space-tab.
27362 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27363 # splitting by setting IFS to empty value.)
27364 IFS=" "" $as_nl"
27365
27366 # Find who we are. Look in the path if we contain no directory separator.
27367 as_myself=
27368 case $0 in #((
27369 *[\\/]* ) as_myself=$0 ;;
27370 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27371 for as_dir in $PATH
27372 do
27373 IFS=$as_save_IFS
27374 test -z "$as_dir" && as_dir=.
27375 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27376 done
27377 IFS=$as_save_IFS
27378
27379 ;;
27380 esac
27381 # We did not find ourselves, most probably we were run as `sh COMMAND'
27382 # in which case we are not to be found in the path.
27383 if test "x$as_myself" = x; then
27384 as_myself=$0
27385 fi
27386 if test ! -f "$as_myself"; then
27387 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27388 exit 1
27389 fi
27390
27391 # Unset variables that we do not need and which cause bugs (e.g. in
27392 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
27393 # suppresses any "Segmentation fault" message there. '((' could
27394 # trigger a bug in pdksh 5.2.14.
27395 for as_var in BASH_ENV ENV MAIL MAILPATH
27396 do eval test x\${$as_var+set} = xset \
27397 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
27398 done
27399 PS1='$ '
27400 PS2='> '
27401 PS4='+ '
27402
27403 # NLS nuisances.
27404 LC_ALL=C
27405 export LC_ALL
27406 LANGUAGE=C
27407 export LANGUAGE
27408
27409 # CDPATH.
27410 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27411
27412
27413 # as_fn_error STATUS ERROR [LINENO LOG_FD]
27414 # ----------------------------------------
27415 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27416 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27417 # script with STATUS, using 1 if that was 0.
27418 as_fn_error ()
27419 {
27420 as_status=$1; test $as_status -eq 0 && as_status=1
27421 if test "$4"; then
27422 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
27423 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
27424 fi
27425 $as_echo "$as_me: error: $2" >&2
27426 as_fn_exit $as_status
27427 } # as_fn_error
27428
27429
27430 # as_fn_set_status STATUS
27431 # -----------------------
27432 # Set $? to STATUS, without forking.
27433 as_fn_set_status ()
27434 {
27435 return $1
27436 } # as_fn_set_status
27437
27438 # as_fn_exit STATUS
27439 # -----------------
27440 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27441 as_fn_exit ()
27442 {
27443 set +e
27444 as_fn_set_status $1
27445 exit $1
27446 } # as_fn_exit
27447
27448 # as_fn_unset VAR
27449 # ---------------
27450 # Portably unset VAR.
27451 as_fn_unset ()
27452 {
27453 { eval $1=; unset $1;}
27454 }
27455 as_unset=as_fn_unset
27456 # as_fn_append VAR VALUE
27457 # ----------------------
27458 # Append the text in VALUE to the end of the definition contained in VAR. Take
27459 # advantage of any shell optimizations that allow amortized linear growth over
27460 # repeated appends, instead of the typical quadratic growth present in naive
27461 # implementations.
27462 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
27463 eval 'as_fn_append ()
27464 {
27465 eval $1+=\$2
27466 }'
27467 else
27468 as_fn_append ()
27469 {
27470 eval $1=\$$1\$2
27471 }
27472 fi # as_fn_append
27473
27474 # as_fn_arith ARG...
27475 # ------------------
27476 # Perform arithmetic evaluation on the ARGs, and store the result in the
27477 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27478 # must be portable across $(()) and expr.
27479 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
27480 eval 'as_fn_arith ()
27481 {
27482 as_val=$(( $* ))
27483 }'
27484 else
27485 as_fn_arith ()
27486 {
27487 as_val=`expr "$@" || test $? -eq 1`
27488 }
27489 fi # as_fn_arith
27490
27491
27492 if expr a : '\(a\)' >/dev/null 2>&1 &&
27493 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27494 as_expr=expr
27495 else
27496 as_expr=false
27497 fi
27498
27499 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27500 as_basename=basename
27501 else
27502 as_basename=false
27503 fi
27504
27505 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27506 as_dirname=dirname
27507 else
27508 as_dirname=false
27509 fi
27510
27511 as_me=`$as_basename -- "$0" ||
27512 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27513 X"$0" : 'X\(//\)$' \| \
27514 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27515 $as_echo X/"$0" |
27516 sed '/^.*\/\([^/][^/]*\)\/*$/{
27517 s//\1/
27518 q
27519 }
27520 /^X\/\(\/\/\)$/{
27521 s//\1/
27522 q
27523 }
27524 /^X\/\(\/\).*/{
27525 s//\1/
27526 q
27527 }
27528 s/.*/./; q'`
27529
27530 # Avoid depending upon Character Ranges.
27531 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27532 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27533 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27534 as_cr_digits='0123456789'
27535 as_cr_alnum=$as_cr_Letters$as_cr_digits
27536
27537 ECHO_C= ECHO_N= ECHO_T=
27538 case `echo -n x` in #(((((
27539 -n*)
27540 case `echo 'xy\c'` in
27541 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27542 xy) ECHO_C='\c';;
27543 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
27544 ECHO_T=' ';;
27545 esac;;
27546 *)
27547 ECHO_N='-n';;
27548 esac
27549
27550 rm -f conf$$ conf$$.exe conf$$.file
27551 if test -d conf$$.dir; then
27552 rm -f conf$$.dir/conf$$.file
27553 else
27554 rm -f conf$$.dir
27555 mkdir conf$$.dir 2>/dev/null
27556 fi
27557 if (echo >conf$$.file) 2>/dev/null; then
27558 if ln -s conf$$.file conf$$ 2>/dev/null; then
27559 as_ln_s='ln -s'
27560 # ... but there are two gotchas:
27561 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27562 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27563 # In both cases, we have to default to `cp -pR'.
27564 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27565 as_ln_s='cp -pR'
27566 elif ln conf$$.file conf$$ 2>/dev/null; then
27567 as_ln_s=ln
27568 else
27569 as_ln_s='cp -pR'
27570 fi
27571 else
27572 as_ln_s='cp -pR'
27573 fi
27574 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27575 rmdir conf$$.dir 2>/dev/null
27576
27577
27578 # as_fn_mkdir_p
27579 # -------------
27580 # Create "$as_dir" as a directory, including parents if necessary.
27581 as_fn_mkdir_p ()
27582 {
27583
27584 case $as_dir in #(
27585 -*) as_dir=./$as_dir;;
27586 esac
27587 test -d "$as_dir" || eval $as_mkdir_p || {
27588 as_dirs=
27589 while :; do
27590 case $as_dir in #(
27591 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27592 *) as_qdir=$as_dir;;
27593 esac
27594 as_dirs="'$as_qdir' $as_dirs"
27595 as_dir=`$as_dirname -- "$as_dir" ||
27596 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27597 X"$as_dir" : 'X\(//\)[^/]' \| \
27598 X"$as_dir" : 'X\(//\)$' \| \
27599 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27600 $as_echo X"$as_dir" |
27601 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27602 s//\1/
27603 q
27604 }
27605 /^X\(\/\/\)[^/].*/{
27606 s//\1/
27607 q
27608 }
27609 /^X\(\/\/\)$/{
27610 s//\1/
27611 q
27612 }
27613 /^X\(\/\).*/{
27614 s//\1/
27615 q
27616 }
27617 s/.*/./; q'`
27618 test -d "$as_dir" && break
27619 done
27620 test -z "$as_dirs" || eval "mkdir $as_dirs"
27621 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
27622
27623
27624 } # as_fn_mkdir_p
27625 if mkdir -p . 2>/dev/null; then
27626 as_mkdir_p='mkdir -p "$as_dir"'
27627 else
27628 test -d ./-p && rmdir ./-p
27629 as_mkdir_p=false
27630 fi
27631
27632
27633 # as_fn_executable_p FILE
27634 # -----------------------
27635 # Test if FILE is an executable regular file.
27636 as_fn_executable_p ()
27637 {
27638 test -f "$1" && test -x "$1"
27639 } # as_fn_executable_p
27640 as_test_x='test -x'
27641 as_executable_p=as_fn_executable_p
27642
27643 # Sed expression to map a string onto a valid CPP name.
27644 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27645
27646 # Sed expression to map a string onto a valid variable name.
27647 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27648
27649
27650 exec 6>&1
27651 ## ----------------------------------- ##
27652 ## Main body of $CONFIG_STATUS script. ##
27653 ## ----------------------------------- ##
27654 _ASEOF
27655 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
27656
27657 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27658 # Save the log message, to keep $0 and so on meaningful, and to
27659 # report actual input values of CONFIG_FILES etc. instead of their
27660 # values after options handling.
27661 ac_log="
27662 This file was extended by libgnu $as_me UNUSED-VERSION, which was
27663 generated by GNU Autoconf 2.69. Invocation command line was
27664
27665 CONFIG_FILES = $CONFIG_FILES
27666 CONFIG_HEADERS = $CONFIG_HEADERS
27667 CONFIG_LINKS = $CONFIG_LINKS
27668 CONFIG_COMMANDS = $CONFIG_COMMANDS
27669 $ $0 $@
27670
27671 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27672 "
27673
27674 _ACEOF
27675
27676 case $ac_config_files in *"
27677 "*) set x $ac_config_files; shift; ac_config_files=$*;;
27678 esac
27679
27680 case $ac_config_headers in *"
27681 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27682 esac
27683
27684
27685 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27686 # Files that config.status was made for.
27687 config_files="$ac_config_files"
27688 config_headers="$ac_config_headers"
27689 config_commands="$ac_config_commands"
27690
27691 _ACEOF
27692
27693 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27694 ac_cs_usage="\
27695 \`$as_me' instantiates files and other configuration actions
27696 from templates according to the current configuration. Unless the files
27697 and actions are specified as TAGs, all are instantiated by default.
27698
27699 Usage: $0 [OPTION]... [TAG]...
27700
27701 -h, --help print this help, then exit
27702 -V, --version print version number and configuration settings, then exit
27703 --config print configuration, then exit
27704 -q, --quiet, --silent
27705 do not print progress messages
27706 -d, --debug don't remove temporary files
27707 --recheck update $as_me by reconfiguring in the same conditions
27708 --file=FILE[:TEMPLATE]
27709 instantiate the configuration file FILE
27710 --header=FILE[:TEMPLATE]
27711 instantiate the configuration header FILE
27712
27713 Configuration files:
27714 $config_files
27715
27716 Configuration headers:
27717 $config_headers
27718
27719 Configuration commands:
27720 $config_commands
27721
27722 Report bugs to the package provider."
27723
27724 _ACEOF
27725 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27726 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
27727 ac_cs_version="\\
27728 libgnu config.status UNUSED-VERSION
27729 configured by $0, generated by GNU Autoconf 2.69,
27730 with options \\"\$ac_cs_config\\"
27731
27732 Copyright (C) 2012 Free Software Foundation, Inc.
27733 This config.status script is free software; the Free Software Foundation
27734 gives unlimited permission to copy, distribute and modify it."
27735
27736 ac_pwd='$ac_pwd'
27737 srcdir='$srcdir'
27738 INSTALL='$INSTALL'
27739 MKDIR_P='$MKDIR_P'
27740 AWK='$AWK'
27741 test -n "\$AWK" || AWK=awk
27742 _ACEOF
27743
27744 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27745 # The default lists apply if the user does not specify any file.
27746 ac_need_defaults=:
27747 while test $# != 0
27748 do
27749 case $1 in
27750 --*=?*)
27751 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27752 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27753 ac_shift=:
27754 ;;
27755 --*=)
27756 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27757 ac_optarg=
27758 ac_shift=:
27759 ;;
27760 *)
27761 ac_option=$1
27762 ac_optarg=$2
27763 ac_shift=shift
27764 ;;
27765 esac
27766
27767 case $ac_option in
27768 # Handling of the options.
27769 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27770 ac_cs_recheck=: ;;
27771 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27772 $as_echo "$ac_cs_version"; exit ;;
27773 --config | --confi | --conf | --con | --co | --c )
27774 $as_echo "$ac_cs_config"; exit ;;
27775 --debug | --debu | --deb | --de | --d | -d )
27776 debug=: ;;
27777 --file | --fil | --fi | --f )
27778 $ac_shift
27779 case $ac_optarg in
27780 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27781 '') as_fn_error $? "missing file argument" ;;
27782 esac
27783 as_fn_append CONFIG_FILES " '$ac_optarg'"
27784 ac_need_defaults=false;;
27785 --header | --heade | --head | --hea )
27786 $ac_shift
27787 case $ac_optarg in
27788 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27789 esac
27790 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
27791 ac_need_defaults=false;;
27792 --he | --h)
27793 # Conflict between --help and --header
27794 as_fn_error $? "ambiguous option: \`$1'
27795 Try \`$0 --help' for more information.";;
27796 --help | --hel | -h )
27797 $as_echo "$ac_cs_usage"; exit ;;
27798 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27799 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27800 ac_cs_silent=: ;;
27801
27802 # This is an error.
27803 -*) as_fn_error $? "unrecognized option: \`$1'
27804 Try \`$0 --help' for more information." ;;
27805
27806 *) as_fn_append ac_config_targets " $1"
27807 ac_need_defaults=false ;;
27808
27809 esac
27810 shift
27811 done
27812
27813 ac_configure_extra_args=
27814
27815 if $ac_cs_silent; then
27816 exec 6>/dev/null
27817 ac_configure_extra_args="$ac_configure_extra_args --silent"
27818 fi
27819
27820 _ACEOF
27821 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27822 if \$ac_cs_recheck; then
27823 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27824 shift
27825 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27826 CONFIG_SHELL='$SHELL'
27827 export CONFIG_SHELL
27828 exec "\$@"
27829 fi
27830
27831 _ACEOF
27832 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27833 exec 5>>config.log
27834 {
27835 echo
27836 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27837 ## Running $as_me. ##
27838 _ASBOX
27839 $as_echo "$ac_log"
27840 } >&5
27841
27842 _ACEOF
27843 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27844 #
27845 # INIT-COMMANDS
27846 #
27847 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
27848
27849 _ACEOF
27850
27851 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27852
27853 # Handling of arguments.
27854 for ac_config_target in $ac_config_targets
27855 do
27856 case $ac_config_target in
27857 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
27858 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27859 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27860 "import/Makefile") CONFIG_FILES="$CONFIG_FILES import/Makefile" ;;
27861 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
27862
27863 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27864 esac
27865 done
27866
27867
27868 # If the user did not use the arguments to specify the items to instantiate,
27869 # then the envvar interface is used. Set only those that are not.
27870 # We use the long form for the default assignment because of an extremely
27871 # bizarre bug on SunOS 4.1.3.
27872 if $ac_need_defaults; then
27873 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27874 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27875 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27876 fi
27877
27878 # Have a temporary directory for convenience. Make it in the build tree
27879 # simply because there is no reason against having it here, and in addition,
27880 # creating and moving files from /tmp can sometimes cause problems.
27881 # Hook for its removal unless debugging.
27882 # Note that there is a small window in which the directory will not be cleaned:
27883 # after its creation but before its name has been assigned to `$tmp'.
27884 $debug ||
27885 {
27886 tmp= ac_tmp=
27887 trap 'exit_status=$?
27888 : "${ac_tmp:=$tmp}"
27889 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
27890 ' 0
27891 trap 'as_fn_exit 1' 1 2 13 15
27892 }
27893 # Create a (secure) tmp directory for tmp files.
27894
27895 {
27896 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27897 test -d "$tmp"
27898 } ||
27899 {
27900 tmp=./conf$$-$RANDOM
27901 (umask 077 && mkdir "$tmp")
27902 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
27903 ac_tmp=$tmp
27904
27905 # Set up the scripts for CONFIG_FILES section.
27906 # No need to generate them if there are no CONFIG_FILES.
27907 # This happens for instance with `./config.status config.h'.
27908 if test -n "$CONFIG_FILES"; then
27909
27910
27911 ac_cr=`echo X | tr X '\015'`
27912 # On cygwin, bash can eat \r inside `` if the user requested igncr.
27913 # But we know of no other shell where ac_cr would be empty at this
27914 # point, so we can use a bashism as a fallback.
27915 if test "x$ac_cr" = x; then
27916 eval ac_cr=\$\'\\r\'
27917 fi
27918 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27919 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27920 ac_cs_awk_cr='\\r'
27921 else
27922 ac_cs_awk_cr=$ac_cr
27923 fi
27924
27925 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
27926 _ACEOF
27927
27928
27929 {
27930 echo "cat >conf$$subs.awk <<_ACEOF" &&
27931 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27932 echo "_ACEOF"
27933 } >conf$$subs.sh ||
27934 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27935 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
27936 ac_delim='%!_!# '
27937 for ac_last_try in false false false false false :; do
27938 . ./conf$$subs.sh ||
27939 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27940
27941 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
27942 if test $ac_delim_n = $ac_delim_num; then
27943 break
27944 elif $ac_last_try; then
27945 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27946 else
27947 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27948 fi
27949 done
27950 rm -f conf$$subs.sh
27951
27952 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27953 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
27954 _ACEOF
27955 sed -n '
27956 h
27957 s/^/S["/; s/!.*/"]=/
27958 p
27959 g
27960 s/^[^!]*!//
27961 :repl
27962 t repl
27963 s/'"$ac_delim"'$//
27964 t delim
27965 :nl
27966 h
27967 s/\(.\{148\}\)..*/\1/
27968 t more1
27969 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27970 p
27971 n
27972 b repl
27973 :more1
27974 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27975 p
27976 g
27977 s/.\{148\}//
27978 t nl
27979 :delim
27980 h
27981 s/\(.\{148\}\)..*/\1/
27982 t more2
27983 s/["\\]/\\&/g; s/^/"/; s/$/"/
27984 p
27985 b
27986 :more2
27987 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27988 p
27989 g
27990 s/.\{148\}//
27991 t delim
27992 ' <conf$$subs.awk | sed '
27993 /^[^""]/{
27994 N
27995 s/\n//
27996 }
27997 ' >>$CONFIG_STATUS || ac_write_fail=1
27998 rm -f conf$$subs.awk
27999 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28000 _ACAWK
28001 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
28002 for (key in S) S_is_set[key] = 1
28003 FS = "\a"
28004
28005 }
28006 {
28007 line = $ 0
28008 nfields = split(line, field, "@")
28009 substed = 0
28010 len = length(field[1])
28011 for (i = 2; i < nfields; i++) {
28012 key = field[i]
28013 keylen = length(key)
28014 if (S_is_set[key]) {
28015 value = S[key]
28016 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28017 len += length(value) + length(field[++i])
28018 substed = 1
28019 } else
28020 len += 1 + keylen
28021 }
28022
28023 print line
28024 }
28025
28026 _ACAWK
28027 _ACEOF
28028 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28029 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28030 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
28031 else
28032 cat
28033 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
28034 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
28035 _ACEOF
28036
28037 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
28038 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
28039 # trailing colons and then remove the whole line if VPATH becomes empty
28040 # (actually we leave an empty line to preserve line numbers).
28041 if test "x$srcdir" = x.; then
28042 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
28043 h
28044 s///
28045 s/^/:/
28046 s/[ ]*$/:/
28047 s/:\$(srcdir):/:/g
28048 s/:\${srcdir}:/:/g
28049 s/:@srcdir@:/:/g
28050 s/^:*//
28051 s/:*$//
28052 x
28053 s/\(=[ ]*\).*/\1/
28054 G
28055 s/\n//
28056 s/^[^=]*=[ ]*$//
28057 }'
28058 fi
28059
28060 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28061 fi # test -n "$CONFIG_FILES"
28062
28063 # Set up the scripts for CONFIG_HEADERS section.
28064 # No need to generate them if there are no CONFIG_HEADERS.
28065 # This happens for instance with `./config.status Makefile'.
28066 if test -n "$CONFIG_HEADERS"; then
28067 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
28068 BEGIN {
28069 _ACEOF
28070
28071 # Transform confdefs.h into an awk script `defines.awk', embedded as
28072 # here-document in config.status, that substitutes the proper values into
28073 # config.h.in to produce config.h.
28074
28075 # Create a delimiter string that does not exist in confdefs.h, to ease
28076 # handling of long lines.
28077 ac_delim='%!_!# '
28078 for ac_last_try in false false :; do
28079 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
28080 if test -z "$ac_tt"; then
28081 break
28082 elif $ac_last_try; then
28083 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
28084 else
28085 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28086 fi
28087 done
28088
28089 # For the awk script, D is an array of macro values keyed by name,
28090 # likewise P contains macro parameters if any. Preserve backslash
28091 # newline sequences.
28092
28093 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28094 sed -n '
28095 s/.\{148\}/&'"$ac_delim"'/g
28096 t rset
28097 :rset
28098 s/^[ ]*#[ ]*define[ ][ ]*/ /
28099 t def
28100 d
28101 :def
28102 s/\\$//
28103 t bsnl
28104 s/["\\]/\\&/g
28105 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28106 D["\1"]=" \3"/p
28107 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
28108 d
28109 :bsnl
28110 s/["\\]/\\&/g
28111 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28112 D["\1"]=" \3\\\\\\n"\\/p
28113 t cont
28114 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
28115 t cont
28116 d
28117 :cont
28118 n
28119 s/.\{148\}/&'"$ac_delim"'/g
28120 t clear
28121 :clear
28122 s/\\$//
28123 t bsnlc
28124 s/["\\]/\\&/g; s/^/"/; s/$/"/p
28125 d
28126 :bsnlc
28127 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
28128 b cont
28129 ' <confdefs.h | sed '
28130 s/'"$ac_delim"'/"\\\
28131 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28132
28133 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28134 for (key in D) D_is_set[key] = 1
28135 FS = "\a"
28136 }
28137 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28138 line = \$ 0
28139 split(line, arg, " ")
28140 if (arg[1] == "#") {
28141 defundef = arg[2]
28142 mac1 = arg[3]
28143 } else {
28144 defundef = substr(arg[1], 2)
28145 mac1 = arg[2]
28146 }
28147 split(mac1, mac2, "(") #)
28148 macro = mac2[1]
28149 prefix = substr(line, 1, index(line, defundef) - 1)
28150 if (D_is_set[macro]) {
28151 # Preserve the white space surrounding the "#".
28152 print prefix "define", macro P[macro] D[macro]
28153 next
28154 } else {
28155 # Replace #undef with comments. This is necessary, for example,
28156 # in the case of _POSIX_SOURCE, which is predefined and required
28157 # on some systems where configure will not decide to define it.
28158 if (defundef == "undef") {
28159 print "/*", prefix defundef, macro, "*/"
28160 next
28161 }
28162 }
28163 }
28164 { print }
28165 _ACAWK
28166 _ACEOF
28167 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28168 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
28169 fi # test -n "$CONFIG_HEADERS"
28170
28171
28172 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28173 shift
28174 for ac_tag
28175 do
28176 case $ac_tag in
28177 :[FHLC]) ac_mode=$ac_tag; continue;;
28178 esac
28179 case $ac_mode$ac_tag in
28180 :[FHL]*:*);;
28181 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
28182 :[FH]-) ac_tag=-:-;;
28183 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28184 esac
28185 ac_save_IFS=$IFS
28186 IFS=:
28187 set x $ac_tag
28188 IFS=$ac_save_IFS
28189 shift
28190 ac_file=$1
28191 shift
28192
28193 case $ac_mode in
28194 :L) ac_source=$1;;
28195 :[FH])
28196 ac_file_inputs=
28197 for ac_f
28198 do
28199 case $ac_f in
28200 -) ac_f="$ac_tmp/stdin";;
28201 *) # Look for the file first in the build tree, then in the source tree
28202 # (if the path is not absolute). The absolute path cannot be DOS-style,
28203 # because $ac_f cannot contain `:'.
28204 test -f "$ac_f" ||
28205 case $ac_f in
28206 [\\/$]*) false;;
28207 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28208 esac ||
28209 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
28210 esac
28211 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28212 as_fn_append ac_file_inputs " '$ac_f'"
28213 done
28214
28215 # Let's still pretend it is `configure' which instantiates (i.e., don't
28216 # use $as_me), people would be surprised to read:
28217 # /* config.h. Generated by config.status. */
28218 configure_input='Generated from '`
28219 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28220 `' by configure.'
28221 if test x"$ac_file" != x-; then
28222 configure_input="$ac_file. $configure_input"
28223 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28224 $as_echo "$as_me: creating $ac_file" >&6;}
28225 fi
28226 # Neutralize special characters interpreted by sed in replacement strings.
28227 case $configure_input in #(
28228 *\&* | *\|* | *\\* )
28229 ac_sed_conf_input=`$as_echo "$configure_input" |
28230 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28231 *) ac_sed_conf_input=$configure_input;;
28232 esac
28233
28234 case $ac_tag in
28235 *:-:* | *:-) cat >"$ac_tmp/stdin" \
28236 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
28237 esac
28238 ;;
28239 esac
28240
28241 ac_dir=`$as_dirname -- "$ac_file" ||
28242 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28243 X"$ac_file" : 'X\(//\)[^/]' \| \
28244 X"$ac_file" : 'X\(//\)$' \| \
28245 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28246 $as_echo X"$ac_file" |
28247 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28248 s//\1/
28249 q
28250 }
28251 /^X\(\/\/\)[^/].*/{
28252 s//\1/
28253 q
28254 }
28255 /^X\(\/\/\)$/{
28256 s//\1/
28257 q
28258 }
28259 /^X\(\/\).*/{
28260 s//\1/
28261 q
28262 }
28263 s/.*/./; q'`
28264 as_dir="$ac_dir"; as_fn_mkdir_p
28265 ac_builddir=.
28266
28267 case "$ac_dir" in
28268 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28269 *)
28270 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28271 # A ".." for each directory in $ac_dir_suffix.
28272 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28273 case $ac_top_builddir_sub in
28274 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28275 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28276 esac ;;
28277 esac
28278 ac_abs_top_builddir=$ac_pwd
28279 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28280 # for backward compatibility:
28281 ac_top_builddir=$ac_top_build_prefix
28282
28283 case $srcdir in
28284 .) # We are building in place.
28285 ac_srcdir=.
28286 ac_top_srcdir=$ac_top_builddir_sub
28287 ac_abs_top_srcdir=$ac_pwd ;;
28288 [\\/]* | ?:[\\/]* ) # Absolute name.
28289 ac_srcdir=$srcdir$ac_dir_suffix;
28290 ac_top_srcdir=$srcdir
28291 ac_abs_top_srcdir=$srcdir ;;
28292 *) # Relative name.
28293 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28294 ac_top_srcdir=$ac_top_build_prefix$srcdir
28295 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28296 esac
28297 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28298
28299
28300 case $ac_mode in
28301 :F)
28302 #
28303 # CONFIG_FILE
28304 #
28305
28306 case $INSTALL in
28307 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28308 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
28309 esac
28310 ac_MKDIR_P=$MKDIR_P
28311 case $MKDIR_P in
28312 [\\/$]* | ?:[\\/]* ) ;;
28313 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
28314 esac
28315 _ACEOF
28316
28317 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28318 # If the template does not know about datarootdir, expand it.
28319 # FIXME: This hack should be removed a few years after 2.60.
28320 ac_datarootdir_hack=; ac_datarootdir_seen=
28321 ac_sed_dataroot='
28322 /datarootdir/ {
28323 p
28324 q
28325 }
28326 /@datadir@/p
28327 /@docdir@/p
28328 /@infodir@/p
28329 /@localedir@/p
28330 /@mandir@/p'
28331 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28332 *datarootdir*) ac_datarootdir_seen=yes;;
28333 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28335 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28336 _ACEOF
28337 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28338 ac_datarootdir_hack='
28339 s&@datadir@&$datadir&g
28340 s&@docdir@&$docdir&g
28341 s&@infodir@&$infodir&g
28342 s&@localedir@&$localedir&g
28343 s&@mandir@&$mandir&g
28344 s&\\\${datarootdir}&$datarootdir&g' ;;
28345 esac
28346 _ACEOF
28347
28348 # Neutralize VPATH when `$srcdir' = `.'.
28349 # Shell code in configure.ac might set extrasub.
28350 # FIXME: do we really want to maintain this feature?
28351 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28352 ac_sed_extra="$ac_vpsub
28353 $extrasub
28354 _ACEOF
28355 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28356 :t
28357 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28358 s|@configure_input@|$ac_sed_conf_input|;t t
28359 s&@top_builddir@&$ac_top_builddir_sub&;t t
28360 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28361 s&@srcdir@&$ac_srcdir&;t t
28362 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28363 s&@top_srcdir@&$ac_top_srcdir&;t t
28364 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28365 s&@builddir@&$ac_builddir&;t t
28366 s&@abs_builddir@&$ac_abs_builddir&;t t
28367 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28368 s&@INSTALL@&$ac_INSTALL&;t t
28369 s&@MKDIR_P@&$ac_MKDIR_P&;t t
28370 $ac_datarootdir_hack
28371 "
28372 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
28373 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28374
28375 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28376 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
28377 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
28378 "$ac_tmp/out"`; test -z "$ac_out"; } &&
28379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28380 which seems to be undefined. Please make sure it is defined" >&5
28381 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28382 which seems to be undefined. Please make sure it is defined" >&2;}
28383
28384 rm -f "$ac_tmp/stdin"
28385 case $ac_file in
28386 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
28387 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
28388 esac \
28389 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28390 ;;
28391 :H)
28392 #
28393 # CONFIG_HEADER
28394 #
28395 if test x"$ac_file" != x-; then
28396 {
28397 $as_echo "/* $configure_input */" \
28398 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
28399 } >"$ac_tmp/config.h" \
28400 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28401 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
28402 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28403 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28404 else
28405 rm -f "$ac_file"
28406 mv "$ac_tmp/config.h" "$ac_file" \
28407 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28408 fi
28409 else
28410 $as_echo "/* $configure_input */" \
28411 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
28412 || as_fn_error $? "could not create -" "$LINENO" 5
28413 fi
28414 # Compute "$ac_file"'s index in $config_headers.
28415 _am_arg="$ac_file"
28416 _am_stamp_count=1
28417 for _am_header in $config_headers :; do
28418 case $_am_header in
28419 $_am_arg | $_am_arg:* )
28420 break ;;
28421 * )
28422 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
28423 esac
28424 done
28425 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
28426 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28427 X"$_am_arg" : 'X\(//\)[^/]' \| \
28428 X"$_am_arg" : 'X\(//\)$' \| \
28429 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
28430 $as_echo X"$_am_arg" |
28431 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28432 s//\1/
28433 q
28434 }
28435 /^X\(\/\/\)[^/].*/{
28436 s//\1/
28437 q
28438 }
28439 /^X\(\/\/\)$/{
28440 s//\1/
28441 q
28442 }
28443 /^X\(\/\).*/{
28444 s//\1/
28445 q
28446 }
28447 s/.*/./; q'`/stamp-h$_am_stamp_count
28448 ;;
28449
28450 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28451 $as_echo "$as_me: executing $ac_file commands" >&6;}
28452 ;;
28453 esac
28454
28455
28456 case $ac_file$ac_mode in
28457 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
28458 # Older Autoconf quotes --file arguments for eval, but not when files
28459 # are listed without --file. Let's play safe and only enable the eval
28460 # if we detect the quoting.
28461 case $CONFIG_FILES in
28462 *\'*) eval set x "$CONFIG_FILES" ;;
28463 *) set x $CONFIG_FILES ;;
28464 esac
28465 shift
28466 for mf
28467 do
28468 # Strip MF so we end up with the name of the file.
28469 mf=`echo "$mf" | sed -e 's/:.*$//'`
28470 # Check whether this is an Automake generated Makefile or not.
28471 # We used to match only the files named 'Makefile.in', but
28472 # some people rename them; so instead we look at the file content.
28473 # Grep'ing the first line is not enough: some people post-process
28474 # each Makefile.in and add a new line on top of each file to say so.
28475 # Grep'ing the whole file is not good either: AIX grep has a line
28476 # limit of 2048, but all sed's we know have understand at least 4000.
28477 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
28478 dirpart=`$as_dirname -- "$mf" ||
28479 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28480 X"$mf" : 'X\(//\)[^/]' \| \
28481 X"$mf" : 'X\(//\)$' \| \
28482 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
28483 $as_echo X"$mf" |
28484 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28485 s//\1/
28486 q
28487 }
28488 /^X\(\/\/\)[^/].*/{
28489 s//\1/
28490 q
28491 }
28492 /^X\(\/\/\)$/{
28493 s//\1/
28494 q
28495 }
28496 /^X\(\/\).*/{
28497 s//\1/
28498 q
28499 }
28500 s/.*/./; q'`
28501 else
28502 continue
28503 fi
28504 # Extract the definition of DEPDIR, am__include, and am__quote
28505 # from the Makefile without running 'make'.
28506 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
28507 test -z "$DEPDIR" && continue
28508 am__include=`sed -n 's/^am__include = //p' < "$mf"`
28509 test -z "$am__include" && continue
28510 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
28511 # Find all dependency output files, they are included files with
28512 # $(DEPDIR) in their names. We invoke sed twice because it is the
28513 # simplest approach to changing $(DEPDIR) to its actual value in the
28514 # expansion.
28515 for file in `sed -n "
28516 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
28517 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
28518 # Make sure the directory exists.
28519 test -f "$dirpart/$file" && continue
28520 fdir=`$as_dirname -- "$file" ||
28521 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28522 X"$file" : 'X\(//\)[^/]' \| \
28523 X"$file" : 'X\(//\)$' \| \
28524 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
28525 $as_echo X"$file" |
28526 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28527 s//\1/
28528 q
28529 }
28530 /^X\(\/\/\)[^/].*/{
28531 s//\1/
28532 q
28533 }
28534 /^X\(\/\/\)$/{
28535 s//\1/
28536 q
28537 }
28538 /^X\(\/\).*/{
28539 s//\1/
28540 q
28541 }
28542 s/.*/./; q'`
28543 as_dir=$dirpart/$fdir; as_fn_mkdir_p
28544 # echo "creating $dirpart/$file"
28545 echo '# dummy' > "$dirpart/$file"
28546 done
28547 done
28548 }
28549 ;;
28550 "default":C)
28551 case x$CONFIG_HEADERS in
28552 xconfig.h:config.in)
28553 echo > stamp-h ;;
28554 esac
28555 ;;
28556
28557 esac
28558 done # for ac_tag
28559
28560
28561 as_fn_exit 0
28562 _ACEOF
28563 ac_clean_files=$ac_clean_files_save
28564
28565 test $ac_write_fail = 0 ||
28566 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
28567
28568
28569 # configure is writing to config.log, and then calls config.status.
28570 # config.status does its own redirection, appending to config.log.
28571 # Unfortunately, on DOS this fails, as config.log is still kept open
28572 # by configure, so config.status won't be able to write to it; its
28573 # output is simply discarded. So we exec the FD to /dev/null,
28574 # effectively closing config.log, so it can be properly (re)opened and
28575 # appended to by config.status. When coming back to configure, we
28576 # need to make the FD available again.
28577 if test "$no_create" != yes; then
28578 ac_cs_success=:
28579 ac_config_status_args=
28580 test "$silent" = yes &&
28581 ac_config_status_args="$ac_config_status_args --quiet"
28582 exec 5>/dev/null
28583 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28584 exec 5>>config.log
28585 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28586 # would make configure fail if this is the last instruction.
28587 $ac_cs_success || as_fn_exit 1
28588 fi
28589 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28591 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
28592 fi
28593
28594
28595 exit 0