Import readlink
[deliverable/binutils-gdb.git] / gdb / gnulib / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
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 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
100
101 ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148 esac
149 fi
150 "
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165 exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175 else
176 as_have_required=no
177 fi
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180 else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182 as_found=false
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
184 do
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
189 /*)
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
198 fi
199 fi
200 done;;
201 esac
202 as_found=false
203 done
204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207 fi; }
208 IFS=$as_save_IFS
209
210
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220 fi
221
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228 else
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
233 fi
234 exit 1
235 fi
236 fi
237 fi
238 SHELL=${CONFIG_SHELL-/bin/sh}
239 export SHELL
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
243
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
247 # as_fn_unset VAR
248 # ---------------
249 # Portably unset VAR.
250 as_fn_unset ()
251 {
252 { eval $1=; unset $1;}
253 }
254 as_unset=as_fn_unset
255
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
259 as_fn_set_status ()
260 {
261 return $1
262 } # as_fn_set_status
263
264 # as_fn_exit STATUS
265 # -----------------
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267 as_fn_exit ()
268 {
269 set +e
270 as_fn_set_status $1
271 exit $1
272 } # as_fn_exit
273
274 # as_fn_mkdir_p
275 # -------------
276 # Create "$as_dir" as a directory, including parents if necessary.
277 as_fn_mkdir_p ()
278 {
279
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
299 q
300 }
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
303 q
304 }
305 /^X\(\/\/\)$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\).*/{
310 s//\1/
311 q
312 }
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320 } # as_fn_mkdir_p
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
326 # implementations.
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
329 {
330 eval $1+=\$2
331 }'
332 else
333 as_fn_append ()
334 {
335 eval $1=\$$1\$2
336 }
337 fi # as_fn_append
338
339 # as_fn_arith ARG...
340 # ------------------
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
346 {
347 as_val=$(( $* ))
348 }'
349 else
350 as_fn_arith ()
351 {
352 as_val=`expr "$@" || test $? -eq 1`
353 }
354 fi # as_fn_arith
355
356
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
362 as_fn_error ()
363 {
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368 fi
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371 } # as_fn_error
372
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
375 as_expr=expr
376 else
377 as_expr=false
378 fi
379
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381 as_basename=basename
382 else
383 as_basename=false
384 fi
385
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388 else
389 as_dirname=false
390 fi
391
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396 $as_echo X/"$0" |
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
399 q
400 }
401 /^X\/\(\/\/\)$/{
402 s//\1/
403 q
404 }
405 /^X\/\(\/\).*/{
406 s//\1/
407 q
408 }
409 s/.*/./; q'`
410
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
417
418
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
424 sed -n '
425 p
426 /[$]LINENO/=
427 ' <$as_myself |
428 sed '
429 s/[$]LINENO.*/&-/
430 t lineno
431 b
432 :lineno
433 N
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436 t loop
437 s/-\n.*//
438 ' >$as_me.lineno &&
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
441
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
446 # Exit status is that of the last command.
447 exit
448 }
449
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
452 -n*)
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
458 esac;;
459 *)
460 ECHO_N='-n';;
461 esac
462
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
466 else
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
469 fi
470 if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
472 as_ln_s='ln -s'
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
482 as_ln_s='cp -p'
483 fi
484 else
485 as_ln_s='cp -p'
486 fi
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
489
490 if mkdir -p . 2>/dev/null; then
491 as_mkdir_p='mkdir -p "$as_dir"'
492 else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
495 fi
496
497 if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499 else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
504 fi
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
508 test -d "$1/.";
509 else
510 case $1 in #(
511 -*)set "./$1";;
512 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
516 '
517 fi
518 as_executable_p=$as_test_x
519
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
526
527 exec 7<&0 </dev/null 6>&1
528
529 # Name of the host.
530 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531 # so uname gets run too.
532 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
533
534 #
535 # Initializations.
536 #
537 ac_default_prefix=/usr/local
538 ac_clean_files=
539 ac_config_libobj_dir=.
540 LIBOBJS=
541 cross_compiling=no
542 subdirs=
543 MFLAGS=
544 MAKEFLAGS=
545
546 # Identity of this package.
547 PACKAGE_NAME=
548 PACKAGE_TARNAME=
549 PACKAGE_VERSION=
550 PACKAGE_STRING=
551 PACKAGE_BUGREPORT=
552 PACKAGE_URL=
553
554 ac_unique_file="import/memmem.c"
555 # Factoring default headers for most tests.
556 ac_includes_default="\
557 #include <stdio.h>
558 #ifdef HAVE_SYS_TYPES_H
559 # include <sys/types.h>
560 #endif
561 #ifdef HAVE_SYS_STAT_H
562 # include <sys/stat.h>
563 #endif
564 #ifdef STDC_HEADERS
565 # include <stdlib.h>
566 # include <stddef.h>
567 #else
568 # ifdef HAVE_STDLIB_H
569 # include <stdlib.h>
570 # endif
571 #endif
572 #ifdef HAVE_STRING_H
573 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
574 # include <memory.h>
575 # endif
576 # include <string.h>
577 #endif
578 #ifdef HAVE_STRINGS_H
579 # include <strings.h>
580 #endif
581 #ifdef HAVE_INTTYPES_H
582 # include <inttypes.h>
583 #endif
584 #ifdef HAVE_STDINT_H
585 # include <stdint.h>
586 #endif
587 #ifdef HAVE_UNISTD_H
588 # include <unistd.h>
589 #endif"
590
591 ac_header_list=
592 gl_fnmatch_required=POSIX
593 ac_func_list=
594 ac_subst_vars='am__EXEEXT_FALSE
595 am__EXEEXT_TRUE
596 gltests_LTLIBOBJS
597 gltests_LIBOBJS
598 gl_LTLIBOBJS
599 gl_LIBOBJS
600 LTLIBOBJS
601 LIBOBJS
602 LN_S
603 am__fastdepCC_FALSE
604 am__fastdepCC_TRUE
605 CCDEPMODE
606 AMDEPBACKSLASH
607 AMDEP_FALSE
608 AMDEP_TRUE
609 am__quote
610 am__include
611 DEPDIR
612 am__untar
613 am__tar
614 AMTAR
615 am__leading_dot
616 SET_MAKE
617 AWK
618 mkdir_p
619 INSTALL_STRIP_PROGRAM
620 STRIP
621 install_sh
622 MAKEINFO
623 AUTOHEADER
624 AUTOMAKE
625 AUTOCONF
626 ACLOCAL
627 VERSION
628 PACKAGE
629 CYGPATH_W
630 am__isrc
631 INSTALL_DATA
632 INSTALL_SCRIPT
633 INSTALL_PROGRAM
634 LIBGNU_LTLIBDEPS
635 LIBGNU_LIBDEPS
636 gltests_WITNESS
637 REPLACE_TOWLOWER
638 REPLACE_ISWCNTRL
639 HAVE_WCTYPE_H
640 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
641 NEXT_WCTYPE_H
642 HAVE_ISWCNTRL
643 REPLACE_ISWBLANK
644 HAVE_WCTRANS_T
645 HAVE_WCTYPE_T
646 HAVE_ISWBLANK
647 GNULIB_TOWCTRANS
648 GNULIB_WCTRANS
649 GNULIB_ISWCTYPE
650 GNULIB_WCTYPE
651 GNULIB_ISWBLANK
652 HAVE_WINT_T
653 HAVE_FEATURES_H
654 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
655 NEXT_WCHAR_H
656 HAVE_UNISTD_H
657 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
658 NEXT_UNISTD_H
659 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
660 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
661 TIME_H_DEFINES_STRUCT_TIMESPEC
662 NEXT_AS_FIRST_DIRECTIVE_TIME_H
663 NEXT_TIME_H
664 REPLACE_TIMEGM
665 REPLACE_NANOSLEEP
666 REPLACE_MKTIME
667 REPLACE_LOCALTIME_R
668 HAVE_TIMEGM
669 HAVE_STRPTIME
670 HAVE_NANOSLEEP
671 HAVE_DECL_LOCALTIME_R
672 GNULIB_TIME_R
673 GNULIB_TIMEGM
674 GNULIB_STRPTIME
675 GNULIB_NANOSLEEP
676 GNULIB_MKTIME
677 WINDOWS_64_BIT_OFF_T
678 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
679 NEXT_SYS_TYPES_H
680 MKDIR_P
681 WINDOWS_64_BIT_ST_SIZE
682 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
683 NEXT_SYS_STAT_H
684 NEXT_AS_FIRST_DIRECTIVE_STRING_H
685 NEXT_STRING_H
686 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
687 NEXT_STDDEF_H
688 GL_GENERATE_STDDEF_H_FALSE
689 GL_GENERATE_STDDEF_H_TRUE
690 STDDEF_H
691 HAVE_WCHAR_T
692 REPLACE_NULL
693 HAVE__BOOL
694 GL_GENERATE_STDBOOL_H_FALSE
695 GL_GENERATE_STDBOOL_H_TRUE
696 STDBOOL_H
697 REPLACE_UTIMENSAT
698 REPLACE_STAT
699 REPLACE_MKNOD
700 REPLACE_MKFIFO
701 REPLACE_MKDIR
702 REPLACE_LSTAT
703 REPLACE_FUTIMENS
704 REPLACE_FSTATAT
705 REPLACE_FSTAT
706 HAVE_UTIMENSAT
707 HAVE_MKNODAT
708 HAVE_MKNOD
709 HAVE_MKFIFOAT
710 HAVE_MKFIFO
711 HAVE_MKDIRAT
712 HAVE_LSTAT
713 HAVE_LCHMOD
714 HAVE_FUTIMENS
715 HAVE_FSTATAT
716 HAVE_FCHMODAT
717 GNULIB_UTIMENSAT
718 GNULIB_STAT
719 GNULIB_MKNODAT
720 GNULIB_MKNOD
721 GNULIB_MKFIFOAT
722 GNULIB_MKFIFO
723 GNULIB_MKDIRAT
724 GNULIB_LSTAT
725 GNULIB_LCHMOD
726 GNULIB_FUTIMENS
727 GNULIB_FSTATAT
728 GNULIB_FSTAT
729 GNULIB_FCHMODAT
730 UNDEFINE_STRTOK_R
731 REPLACE_STRTOK_R
732 REPLACE_STRSIGNAL
733 REPLACE_STRNLEN
734 REPLACE_STRNDUP
735 REPLACE_STRNCAT
736 REPLACE_STRERROR_R
737 REPLACE_STRERROR
738 REPLACE_STRCHRNUL
739 REPLACE_STRCASESTR
740 REPLACE_STRSTR
741 REPLACE_STRDUP
742 REPLACE_STPNCPY
743 REPLACE_MEMMEM
744 REPLACE_MEMCHR
745 HAVE_STRVERSCMP
746 HAVE_DECL_STRSIGNAL
747 HAVE_DECL_STRERROR_R
748 HAVE_DECL_STRTOK_R
749 HAVE_STRCASESTR
750 HAVE_STRSEP
751 HAVE_STRPBRK
752 HAVE_DECL_STRNLEN
753 HAVE_DECL_STRNDUP
754 HAVE_DECL_STRDUP
755 HAVE_STRCHRNUL
756 HAVE_STPNCPY
757 HAVE_STPCPY
758 HAVE_RAWMEMCHR
759 HAVE_DECL_MEMRCHR
760 HAVE_MEMPCPY
761 HAVE_DECL_MEMMEM
762 HAVE_MEMCHR
763 HAVE_FFSLL
764 HAVE_FFSL
765 HAVE_MBSLEN
766 GNULIB_STRVERSCMP
767 GNULIB_STRSIGNAL
768 GNULIB_STRERROR_R
769 GNULIB_STRERROR
770 GNULIB_MBSTOK_R
771 GNULIB_MBSSEP
772 GNULIB_MBSSPN
773 GNULIB_MBSPBRK
774 GNULIB_MBSCSPN
775 GNULIB_MBSCASESTR
776 GNULIB_MBSPCASECMP
777 GNULIB_MBSNCASECMP
778 GNULIB_MBSCASECMP
779 GNULIB_MBSSTR
780 GNULIB_MBSRCHR
781 GNULIB_MBSCHR
782 GNULIB_MBSNLEN
783 GNULIB_MBSLEN
784 GNULIB_STRTOK_R
785 GNULIB_STRCASESTR
786 GNULIB_STRSTR
787 GNULIB_STRSEP
788 GNULIB_STRPBRK
789 GNULIB_STRNLEN
790 GNULIB_STRNDUP
791 GNULIB_STRNCAT
792 GNULIB_STRDUP
793 GNULIB_STRCHRNUL
794 GNULIB_STPNCPY
795 GNULIB_STPCPY
796 GNULIB_RAWMEMCHR
797 GNULIB_MEMRCHR
798 GNULIB_MEMPCPY
799 GNULIB_MEMMEM
800 GNULIB_MEMCHR
801 GNULIB_FFSLL
802 GNULIB_FFSL
803 LOCALE_FR
804 LOCALE_FR_UTF8
805 LOCALE_ZH_CN
806 LOCALE_JA
807 REPLACE_WCSWIDTH
808 REPLACE_WCWIDTH
809 REPLACE_WCSNRTOMBS
810 REPLACE_WCSRTOMBS
811 REPLACE_WCRTOMB
812 REPLACE_MBSNRTOWCS
813 REPLACE_MBSRTOWCS
814 REPLACE_MBRLEN
815 REPLACE_MBRTOWC
816 REPLACE_MBSINIT
817 REPLACE_WCTOB
818 REPLACE_BTOWC
819 REPLACE_MBSTATE_T
820 HAVE_DECL_WCWIDTH
821 HAVE_DECL_WCTOB
822 HAVE_WCSWIDTH
823 HAVE_WCSTOK
824 HAVE_WCSSTR
825 HAVE_WCSPBRK
826 HAVE_WCSSPN
827 HAVE_WCSCSPN
828 HAVE_WCSRCHR
829 HAVE_WCSCHR
830 HAVE_WCSDUP
831 HAVE_WCSXFRM
832 HAVE_WCSCOLL
833 HAVE_WCSNCASECMP
834 HAVE_WCSCASECMP
835 HAVE_WCSNCMP
836 HAVE_WCSCMP
837 HAVE_WCSNCAT
838 HAVE_WCSCAT
839 HAVE_WCPNCPY
840 HAVE_WCSNCPY
841 HAVE_WCPCPY
842 HAVE_WCSCPY
843 HAVE_WCSNLEN
844 HAVE_WCSLEN
845 HAVE_WMEMSET
846 HAVE_WMEMMOVE
847 HAVE_WMEMCPY
848 HAVE_WMEMCMP
849 HAVE_WMEMCHR
850 HAVE_WCSNRTOMBS
851 HAVE_WCSRTOMBS
852 HAVE_WCRTOMB
853 HAVE_MBSNRTOWCS
854 HAVE_MBSRTOWCS
855 HAVE_MBRLEN
856 HAVE_MBRTOWC
857 HAVE_MBSINIT
858 HAVE_BTOWC
859 GNULIB_WCSWIDTH
860 GNULIB_WCSTOK
861 GNULIB_WCSSTR
862 GNULIB_WCSPBRK
863 GNULIB_WCSSPN
864 GNULIB_WCSCSPN
865 GNULIB_WCSRCHR
866 GNULIB_WCSCHR
867 GNULIB_WCSDUP
868 GNULIB_WCSXFRM
869 GNULIB_WCSCOLL
870 GNULIB_WCSNCASECMP
871 GNULIB_WCSCASECMP
872 GNULIB_WCSNCMP
873 GNULIB_WCSCMP
874 GNULIB_WCSNCAT
875 GNULIB_WCSCAT
876 GNULIB_WCPNCPY
877 GNULIB_WCSNCPY
878 GNULIB_WCPCPY
879 GNULIB_WCSCPY
880 GNULIB_WCSNLEN
881 GNULIB_WCSLEN
882 GNULIB_WMEMSET
883 GNULIB_WMEMMOVE
884 GNULIB_WMEMCPY
885 GNULIB_WMEMCMP
886 GNULIB_WMEMCHR
887 GNULIB_WCWIDTH
888 GNULIB_WCSNRTOMBS
889 GNULIB_WCSRTOMBS
890 GNULIB_WCRTOMB
891 GNULIB_MBSNRTOWCS
892 GNULIB_MBSRTOWCS
893 GNULIB_MBRLEN
894 GNULIB_MBRTOWC
895 GNULIB_MBSINIT
896 GNULIB_WCTOB
897 GNULIB_BTOWC
898 NEXT_AS_FIRST_DIRECTIVE_MATH_H
899 NEXT_MATH_H
900 LOCALCHARSET_TESTS_ENVIRONMENT
901 GLIBC21
902 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
903 NEXT_INTTYPES_H
904 UINT64_MAX_EQ_ULONG_MAX
905 UINT32_MAX_LT_UINTMAX_MAX
906 PRIPTR_PREFIX
907 PRI_MACROS_BROKEN
908 INT64_MAX_EQ_LONG_MAX
909 INT32_MAX_LT_INTMAX_MAX
910 REPLACE_STRTOIMAX
911 HAVE_DECL_STRTOUMAX
912 HAVE_DECL_STRTOIMAX
913 HAVE_DECL_IMAXDIV
914 HAVE_DECL_IMAXABS
915 GNULIB_STRTOUMAX
916 GNULIB_STRTOIMAX
917 GNULIB_IMAXDIV
918 GNULIB_IMAXABS
919 GL_GENERATE_STDINT_H_FALSE
920 GL_GENERATE_STDINT_H_TRUE
921 STDINT_H
922 WINT_T_SUFFIX
923 WCHAR_T_SUFFIX
924 SIG_ATOMIC_T_SUFFIX
925 SIZE_T_SUFFIX
926 PTRDIFF_T_SUFFIX
927 HAVE_SIGNED_WINT_T
928 HAVE_SIGNED_WCHAR_T
929 HAVE_SIGNED_SIG_ATOMIC_T
930 BITSIZEOF_WINT_T
931 BITSIZEOF_WCHAR_T
932 BITSIZEOF_SIG_ATOMIC_T
933 BITSIZEOF_SIZE_T
934 BITSIZEOF_PTRDIFF_T
935 APPLE_UNIVERSAL_BUILD
936 HAVE_SYS_BITYPES_H
937 HAVE_SYS_INTTYPES_H
938 HAVE_STDINT_H
939 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
940 NEXT_STDINT_H
941 HAVE_SYS_TYPES_H
942 HAVE_INTTYPES_H
943 HAVE_WCHAR_H
944 HAVE_UNSIGNED_LONG_LONG_INT
945 HAVE_LONG_LONG_INT
946 FREXPL_LIBM
947 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
948 FREXP_LIBM
949 REPLACE_TRUNCL
950 REPLACE_TRUNCF
951 REPLACE_TRUNC
952 REPLACE_SQRTL
953 REPLACE_SIGNBIT_USING_GCC
954 REPLACE_SIGNBIT
955 REPLACE_ROUNDL
956 REPLACE_ROUNDF
957 REPLACE_ROUND
958 REPLACE_REMAINDERL
959 REPLACE_REMAINDERF
960 REPLACE_REMAINDER
961 REPLACE_NAN
962 REPLACE_MODFL
963 REPLACE_MODFF
964 REPLACE_MODF
965 REPLACE_LOGBL
966 REPLACE_LOGBF
967 REPLACE_LOGB
968 REPLACE_LOG2L
969 REPLACE_LOG2F
970 REPLACE_LOG2
971 REPLACE_LOG1PL
972 REPLACE_LOG1PF
973 REPLACE_LOG1P
974 REPLACE_LOG10L
975 REPLACE_LOG10F
976 REPLACE_LOG10
977 REPLACE_LOGL
978 REPLACE_LOGF
979 REPLACE_LOG
980 REPLACE_LDEXPL
981 REPLACE_ISNAN
982 REPLACE_ISINF
983 REPLACE_ISFINITE
984 REPLACE_ILOGBF
985 REPLACE_ILOGB
986 REPLACE_HYPOTL
987 REPLACE_HYPOTF
988 REPLACE_HYPOT
989 REPLACE_HUGE_VAL
990 REPLACE_FREXPL
991 REPLACE_FREXP
992 REPLACE_FREXPF
993 REPLACE_FMODL
994 REPLACE_FMODF
995 REPLACE_FMOD
996 REPLACE_FMAL
997 REPLACE_FMAF
998 REPLACE_FMA
999 REPLACE_FLOORL
1000 REPLACE_FLOORF
1001 REPLACE_FLOOR
1002 REPLACE_FABSL
1003 REPLACE_EXP2L
1004 REPLACE_EXP2
1005 REPLACE_EXPM1F
1006 REPLACE_EXPM1
1007 REPLACE_CEILL
1008 REPLACE_CEILF
1009 REPLACE_CEIL
1010 REPLACE_CBRTL
1011 REPLACE_CBRTF
1012 HAVE_DECL_TRUNCL
1013 HAVE_DECL_TRUNCF
1014 HAVE_DECL_TRUNC
1015 HAVE_DECL_TANL
1016 HAVE_DECL_SQRTL
1017 HAVE_DECL_SINL
1018 HAVE_DECL_ROUNDL
1019 HAVE_DECL_ROUNDF
1020 HAVE_DECL_ROUND
1021 HAVE_DECL_RINTF
1022 HAVE_DECL_REMAINDERL
1023 HAVE_DECL_REMAINDER
1024 HAVE_DECL_LOGB
1025 HAVE_DECL_LOG2L
1026 HAVE_DECL_LOG2F
1027 HAVE_DECL_LOG2
1028 HAVE_DECL_LOG10L
1029 HAVE_DECL_LOGL
1030 HAVE_DECL_LDEXPL
1031 HAVE_DECL_FREXPL
1032 HAVE_DECL_FLOORL
1033 HAVE_DECL_FLOORF
1034 HAVE_DECL_EXPM1L
1035 HAVE_DECL_EXP2L
1036 HAVE_DECL_EXP2F
1037 HAVE_DECL_EXP2
1038 HAVE_DECL_EXPL
1039 HAVE_DECL_COSL
1040 HAVE_DECL_COPYSIGNF
1041 HAVE_DECL_CEILL
1042 HAVE_DECL_CEILF
1043 HAVE_DECL_CBRTL
1044 HAVE_DECL_CBRTF
1045 HAVE_DECL_ATANL
1046 HAVE_DECL_ASINL
1047 HAVE_DECL_ACOSL
1048 HAVE_TANHF
1049 HAVE_TANL
1050 HAVE_TANF
1051 HAVE_SQRTL
1052 HAVE_SQRTF
1053 HAVE_SINHF
1054 HAVE_SINL
1055 HAVE_SINF
1056 HAVE_RINTL
1057 HAVE_RINT
1058 HAVE_REMAINDERF
1059 HAVE_REMAINDER
1060 HAVE_POWF
1061 HAVE_MODFL
1062 HAVE_MODFF
1063 HAVE_LOGBL
1064 HAVE_LOGBF
1065 HAVE_LOG1PL
1066 HAVE_LOG1PF
1067 HAVE_LOG1P
1068 HAVE_LOG10L
1069 HAVE_LOG10F
1070 HAVE_LOGL
1071 HAVE_LOGF
1072 HAVE_LDEXPF
1073 HAVE_ISNANL
1074 HAVE_ISNAND
1075 HAVE_ISNANF
1076 HAVE_ILOGBL
1077 HAVE_ILOGBF
1078 HAVE_ILOGB
1079 HAVE_HYPOTL
1080 HAVE_HYPOTF
1081 HAVE_FREXPF
1082 HAVE_FMODL
1083 HAVE_FMODF
1084 HAVE_FMAL
1085 HAVE_FMAF
1086 HAVE_FMA
1087 HAVE_FABSL
1088 HAVE_FABSF
1089 HAVE_EXPM1F
1090 HAVE_EXPM1
1091 HAVE_EXPL
1092 HAVE_EXPF
1093 HAVE_COSHF
1094 HAVE_COSL
1095 HAVE_COSF
1096 HAVE_COPYSIGNL
1097 HAVE_COPYSIGN
1098 HAVE_CBRTL
1099 HAVE_CBRTF
1100 HAVE_CBRT
1101 HAVE_ATAN2F
1102 HAVE_ATANL
1103 HAVE_ATANF
1104 HAVE_ASINL
1105 HAVE_ASINF
1106 HAVE_ACOSL
1107 HAVE_ACOSF
1108 GNULIB_TRUNCL
1109 GNULIB_TRUNCF
1110 GNULIB_TRUNC
1111 GNULIB_TANHF
1112 GNULIB_TANL
1113 GNULIB_TANF
1114 GNULIB_SQRTL
1115 GNULIB_SQRTF
1116 GNULIB_SINHF
1117 GNULIB_SINL
1118 GNULIB_SINF
1119 GNULIB_SIGNBIT
1120 GNULIB_ROUNDL
1121 GNULIB_ROUNDF
1122 GNULIB_ROUND
1123 GNULIB_RINTL
1124 GNULIB_RINTF
1125 GNULIB_RINT
1126 GNULIB_REMAINDERL
1127 GNULIB_REMAINDERF
1128 GNULIB_REMAINDER
1129 GNULIB_POWF
1130 GNULIB_MODFL
1131 GNULIB_MODFF
1132 GNULIB_MODF
1133 GNULIB_LOGBL
1134 GNULIB_LOGBF
1135 GNULIB_LOGB
1136 GNULIB_LOG2L
1137 GNULIB_LOG2F
1138 GNULIB_LOG2
1139 GNULIB_LOG1PL
1140 GNULIB_LOG1PF
1141 GNULIB_LOG1P
1142 GNULIB_LOG10L
1143 GNULIB_LOG10F
1144 GNULIB_LOG10
1145 GNULIB_LOGL
1146 GNULIB_LOGF
1147 GNULIB_LOG
1148 GNULIB_LDEXPL
1149 GNULIB_LDEXPF
1150 GNULIB_ISNANL
1151 GNULIB_ISNAND
1152 GNULIB_ISNANF
1153 GNULIB_ISNAN
1154 GNULIB_ISINF
1155 GNULIB_ISFINITE
1156 GNULIB_ILOGBL
1157 GNULIB_ILOGBF
1158 GNULIB_ILOGB
1159 GNULIB_HYPOTL
1160 GNULIB_HYPOTF
1161 GNULIB_HYPOT
1162 GNULIB_FREXPL
1163 GNULIB_FREXP
1164 GNULIB_FREXPF
1165 GNULIB_FMODL
1166 GNULIB_FMODF
1167 GNULIB_FMOD
1168 GNULIB_FMAL
1169 GNULIB_FMAF
1170 GNULIB_FMA
1171 GNULIB_FLOORL
1172 GNULIB_FLOORF
1173 GNULIB_FLOOR
1174 GNULIB_FABSL
1175 GNULIB_FABSF
1176 GNULIB_EXPM1L
1177 GNULIB_EXPM1F
1178 GNULIB_EXPM1
1179 GNULIB_EXP2L
1180 GNULIB_EXP2F
1181 GNULIB_EXP2
1182 GNULIB_EXPL
1183 GNULIB_EXPF
1184 GNULIB_COSHF
1185 GNULIB_COSL
1186 GNULIB_COSF
1187 GNULIB_COPYSIGNL
1188 GNULIB_COPYSIGNF
1189 GNULIB_COPYSIGN
1190 GNULIB_CEILL
1191 GNULIB_CEILF
1192 GNULIB_CEIL
1193 GNULIB_CBRTL
1194 GNULIB_CBRTF
1195 GNULIB_CBRT
1196 GNULIB_ATAN2F
1197 GNULIB_ATANL
1198 GNULIB_ATANF
1199 GNULIB_ASINL
1200 GNULIB_ASINF
1201 GNULIB_ACOSL
1202 GNULIB_ACOSF
1203 GL_GENERATE_FNMATCH_H_FALSE
1204 GL_GENERATE_FNMATCH_H_TRUE
1205 FNMATCH_H
1206 REPLACE_ITOLD
1207 GL_GENERATE_FLOAT_H_FALSE
1208 GL_GENERATE_FLOAT_H_TRUE
1209 FLOAT_H
1210 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1211 NEXT_FLOAT_H
1212 EOVERFLOW_VALUE
1213 EOVERFLOW_HIDDEN
1214 ENOLINK_VALUE
1215 ENOLINK_HIDDEN
1216 EMULTIHOP_VALUE
1217 EMULTIHOP_HIDDEN
1218 GL_GENERATE_ERRNO_H_FALSE
1219 GL_GENERATE_ERRNO_H_TRUE
1220 ERRNO_H
1221 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1222 NEXT_ERRNO_H
1223 HAVE_DIRENT_H
1224 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
1225 NEXT_DIRENT_H
1226 PRAGMA_COLUMNS
1227 PRAGMA_SYSTEM_HEADER
1228 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1229 INCLUDE_NEXT
1230 REPLACE_FDOPENDIR
1231 REPLACE_DIRFD
1232 REPLACE_CLOSEDIR
1233 REPLACE_OPENDIR
1234 HAVE_ALPHASORT
1235 HAVE_SCANDIR
1236 HAVE_FDOPENDIR
1237 HAVE_DECL_FDOPENDIR
1238 HAVE_DECL_DIRFD
1239 HAVE_CLOSEDIR
1240 HAVE_REWINDDIR
1241 HAVE_READDIR
1242 HAVE_OPENDIR
1243 GNULIB_ALPHASORT
1244 GNULIB_SCANDIR
1245 GNULIB_FDOPENDIR
1246 GNULIB_DIRFD
1247 GNULIB_CLOSEDIR
1248 GNULIB_REWINDDIR
1249 GNULIB_READDIR
1250 GNULIB_OPENDIR
1251 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1252 UNISTD_H_HAVE_WINSOCK2_H
1253 REPLACE_WRITE
1254 REPLACE_USLEEP
1255 REPLACE_UNLINKAT
1256 REPLACE_UNLINK
1257 REPLACE_TTYNAME_R
1258 REPLACE_SYMLINK
1259 REPLACE_SLEEP
1260 REPLACE_RMDIR
1261 REPLACE_READLINK
1262 REPLACE_READ
1263 REPLACE_PWRITE
1264 REPLACE_PREAD
1265 REPLACE_LSEEK
1266 REPLACE_LINKAT
1267 REPLACE_LINK
1268 REPLACE_LCHOWN
1269 REPLACE_ISATTY
1270 REPLACE_GETPAGESIZE
1271 REPLACE_GETGROUPS
1272 REPLACE_GETLOGIN_R
1273 REPLACE_GETDOMAINNAME
1274 REPLACE_GETCWD
1275 REPLACE_FTRUNCATE
1276 REPLACE_FCHOWNAT
1277 REPLACE_DUP2
1278 REPLACE_DUP
1279 REPLACE_CLOSE
1280 REPLACE_CHOWN
1281 HAVE_SYS_PARAM_H
1282 HAVE_OS_H
1283 HAVE_DECL_TTYNAME_R
1284 HAVE_DECL_SETHOSTNAME
1285 HAVE_DECL_GETUSERSHELL
1286 HAVE_DECL_GETPAGESIZE
1287 HAVE_DECL_GETLOGIN_R
1288 HAVE_DECL_GETDOMAINNAME
1289 HAVE_DECL_FDATASYNC
1290 HAVE_DECL_FCHDIR
1291 HAVE_DECL_ENVIRON
1292 HAVE_USLEEP
1293 HAVE_UNLINKAT
1294 HAVE_SYMLINKAT
1295 HAVE_SYMLINK
1296 HAVE_SLEEP
1297 HAVE_SETHOSTNAME
1298 HAVE_READLINKAT
1299 HAVE_READLINK
1300 HAVE_PWRITE
1301 HAVE_PREAD
1302 HAVE_PIPE2
1303 HAVE_PIPE
1304 HAVE_LINKAT
1305 HAVE_LINK
1306 HAVE_LCHOWN
1307 HAVE_GROUP_MEMBER
1308 HAVE_GETPAGESIZE
1309 HAVE_GETLOGIN
1310 HAVE_GETHOSTNAME
1311 HAVE_GETGROUPS
1312 HAVE_GETDTABLESIZE
1313 HAVE_FTRUNCATE
1314 HAVE_FSYNC
1315 HAVE_FDATASYNC
1316 HAVE_FCHOWNAT
1317 HAVE_FCHDIR
1318 HAVE_FACCESSAT
1319 HAVE_EUIDACCESS
1320 HAVE_DUP3
1321 HAVE_DUP2
1322 HAVE_CHOWN
1323 GNULIB_WRITE
1324 GNULIB_USLEEP
1325 GNULIB_UNLINKAT
1326 GNULIB_UNLINK
1327 GNULIB_UNISTD_H_SIGPIPE
1328 GNULIB_UNISTD_H_NONBLOCKING
1329 GNULIB_TTYNAME_R
1330 GNULIB_SYMLINKAT
1331 GNULIB_SYMLINK
1332 GNULIB_SLEEP
1333 GNULIB_SETHOSTNAME
1334 GNULIB_RMDIR
1335 GNULIB_READLINKAT
1336 GNULIB_READLINK
1337 GNULIB_READ
1338 GNULIB_PWRITE
1339 GNULIB_PREAD
1340 GNULIB_PIPE2
1341 GNULIB_PIPE
1342 GNULIB_LSEEK
1343 GNULIB_LINKAT
1344 GNULIB_LINK
1345 GNULIB_LCHOWN
1346 GNULIB_ISATTY
1347 GNULIB_GROUP_MEMBER
1348 GNULIB_GETUSERSHELL
1349 GNULIB_GETPAGESIZE
1350 GNULIB_GETLOGIN_R
1351 GNULIB_GETLOGIN
1352 GNULIB_GETHOSTNAME
1353 GNULIB_GETGROUPS
1354 GNULIB_GETDTABLESIZE
1355 GNULIB_GETDOMAINNAME
1356 GNULIB_GETCWD
1357 GNULIB_FTRUNCATE
1358 GNULIB_FSYNC
1359 GNULIB_FDATASYNC
1360 GNULIB_FCHOWNAT
1361 GNULIB_FCHDIR
1362 GNULIB_FACCESSAT
1363 GNULIB_EUIDACCESS
1364 GNULIB_ENVIRON
1365 GNULIB_DUP3
1366 GNULIB_DUP2
1367 GNULIB_DUP
1368 GNULIB_CLOSE
1369 GNULIB_CHOWN
1370 GNULIB_CHDIR
1371 pkglibexecdir
1372 lispdir
1373 GL_GENERATE_ALLOCA_H_FALSE
1374 GL_GENERATE_ALLOCA_H_TRUE
1375 ALLOCA_H
1376 ALLOCA
1377 GL_COND_LIBTOOL_FALSE
1378 GL_COND_LIBTOOL_TRUE
1379 target_os
1380 target_vendor
1381 target_cpu
1382 target
1383 RANLIB
1384 ARFLAGS
1385 AR
1386 EGREP
1387 GREP
1388 CPP
1389 host_os
1390 host_vendor
1391 host_cpu
1392 host
1393 build_os
1394 build_vendor
1395 build_cpu
1396 build
1397 OBJEXT
1398 EXEEXT
1399 ac_ct_CC
1400 CPPFLAGS
1401 LDFLAGS
1402 CFLAGS
1403 CC
1404 MAINT
1405 MAINTAINER_MODE_FALSE
1406 MAINTAINER_MODE_TRUE
1407 target_alias
1408 host_alias
1409 build_alias
1410 LIBS
1411 ECHO_T
1412 ECHO_N
1413 ECHO_C
1414 DEFS
1415 mandir
1416 localedir
1417 libdir
1418 psdir
1419 pdfdir
1420 dvidir
1421 htmldir
1422 infodir
1423 docdir
1424 oldincludedir
1425 includedir
1426 localstatedir
1427 sharedstatedir
1428 sysconfdir
1429 datadir
1430 datarootdir
1431 libexecdir
1432 sbindir
1433 bindir
1434 program_transform_name
1435 prefix
1436 exec_prefix
1437 PACKAGE_URL
1438 PACKAGE_BUGREPORT
1439 PACKAGE_STRING
1440 PACKAGE_VERSION
1441 PACKAGE_TARNAME
1442 PACKAGE_NAME
1443 PATH_SEPARATOR
1444 SHELL'
1445 ac_subst_files=''
1446 ac_user_opts='
1447 enable_option_checking
1448 enable_maintainer_mode
1449 enable_largefile
1450 enable_dependency_tracking
1451 '
1452 ac_precious_vars='build_alias
1453 host_alias
1454 target_alias
1455 CC
1456 CFLAGS
1457 LDFLAGS
1458 LIBS
1459 CPPFLAGS
1460 CPP'
1461
1462
1463 # Initialize some variables set by options.
1464 ac_init_help=
1465 ac_init_version=false
1466 ac_unrecognized_opts=
1467 ac_unrecognized_sep=
1468 # The variables have the same names as the options, with
1469 # dashes changed to underlines.
1470 cache_file=/dev/null
1471 exec_prefix=NONE
1472 no_create=
1473 no_recursion=
1474 prefix=NONE
1475 program_prefix=NONE
1476 program_suffix=NONE
1477 program_transform_name=s,x,x,
1478 silent=
1479 site=
1480 srcdir=
1481 verbose=
1482 x_includes=NONE
1483 x_libraries=NONE
1484
1485 # Installation directory options.
1486 # These are left unexpanded so users can "make install exec_prefix=/foo"
1487 # and all the variables that are supposed to be based on exec_prefix
1488 # by default will actually change.
1489 # Use braces instead of parens because sh, perl, etc. also accept them.
1490 # (The list follows the same order as the GNU Coding Standards.)
1491 bindir='${exec_prefix}/bin'
1492 sbindir='${exec_prefix}/sbin'
1493 libexecdir='${exec_prefix}/libexec'
1494 datarootdir='${prefix}/share'
1495 datadir='${datarootdir}'
1496 sysconfdir='${prefix}/etc'
1497 sharedstatedir='${prefix}/com'
1498 localstatedir='${prefix}/var'
1499 includedir='${prefix}/include'
1500 oldincludedir='/usr/include'
1501 docdir='${datarootdir}/doc/${PACKAGE}'
1502 infodir='${datarootdir}/info'
1503 htmldir='${docdir}'
1504 dvidir='${docdir}'
1505 pdfdir='${docdir}'
1506 psdir='${docdir}'
1507 libdir='${exec_prefix}/lib'
1508 localedir='${datarootdir}/locale'
1509 mandir='${datarootdir}/man'
1510
1511 ac_prev=
1512 ac_dashdash=
1513 for ac_option
1514 do
1515 # If the previous option needs an argument, assign it.
1516 if test -n "$ac_prev"; then
1517 eval $ac_prev=\$ac_option
1518 ac_prev=
1519 continue
1520 fi
1521
1522 case $ac_option in
1523 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1524 *) ac_optarg=yes ;;
1525 esac
1526
1527 # Accept the important Cygnus configure options, so we can diagnose typos.
1528
1529 case $ac_dashdash$ac_option in
1530 --)
1531 ac_dashdash=yes ;;
1532
1533 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1534 ac_prev=bindir ;;
1535 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1536 bindir=$ac_optarg ;;
1537
1538 -build | --build | --buil | --bui | --bu)
1539 ac_prev=build_alias ;;
1540 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1541 build_alias=$ac_optarg ;;
1542
1543 -cache-file | --cache-file | --cache-fil | --cache-fi \
1544 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1545 ac_prev=cache_file ;;
1546 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1547 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1548 cache_file=$ac_optarg ;;
1549
1550 --config-cache | -C)
1551 cache_file=config.cache ;;
1552
1553 -datadir | --datadir | --datadi | --datad)
1554 ac_prev=datadir ;;
1555 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1556 datadir=$ac_optarg ;;
1557
1558 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1559 | --dataroo | --dataro | --datar)
1560 ac_prev=datarootdir ;;
1561 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1562 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1563 datarootdir=$ac_optarg ;;
1564
1565 -disable-* | --disable-*)
1566 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1567 # Reject names that are not valid shell variable names.
1568 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1569 as_fn_error "invalid feature name: $ac_useropt"
1570 ac_useropt_orig=$ac_useropt
1571 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1572 case $ac_user_opts in
1573 *"
1574 "enable_$ac_useropt"
1575 "*) ;;
1576 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1577 ac_unrecognized_sep=', ';;
1578 esac
1579 eval enable_$ac_useropt=no ;;
1580
1581 -docdir | --docdir | --docdi | --doc | --do)
1582 ac_prev=docdir ;;
1583 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1584 docdir=$ac_optarg ;;
1585
1586 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1587 ac_prev=dvidir ;;
1588 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1589 dvidir=$ac_optarg ;;
1590
1591 -enable-* | --enable-*)
1592 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1593 # Reject names that are not valid shell variable names.
1594 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1595 as_fn_error "invalid feature name: $ac_useropt"
1596 ac_useropt_orig=$ac_useropt
1597 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1598 case $ac_user_opts in
1599 *"
1600 "enable_$ac_useropt"
1601 "*) ;;
1602 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1603 ac_unrecognized_sep=', ';;
1604 esac
1605 eval enable_$ac_useropt=\$ac_optarg ;;
1606
1607 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1608 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1609 | --exec | --exe | --ex)
1610 ac_prev=exec_prefix ;;
1611 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1612 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1613 | --exec=* | --exe=* | --ex=*)
1614 exec_prefix=$ac_optarg ;;
1615
1616 -gas | --gas | --ga | --g)
1617 # Obsolete; use --with-gas.
1618 with_gas=yes ;;
1619
1620 -help | --help | --hel | --he | -h)
1621 ac_init_help=long ;;
1622 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1623 ac_init_help=recursive ;;
1624 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1625 ac_init_help=short ;;
1626
1627 -host | --host | --hos | --ho)
1628 ac_prev=host_alias ;;
1629 -host=* | --host=* | --hos=* | --ho=*)
1630 host_alias=$ac_optarg ;;
1631
1632 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1633 ac_prev=htmldir ;;
1634 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1635 | --ht=*)
1636 htmldir=$ac_optarg ;;
1637
1638 -includedir | --includedir | --includedi | --included | --include \
1639 | --includ | --inclu | --incl | --inc)
1640 ac_prev=includedir ;;
1641 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1642 | --includ=* | --inclu=* | --incl=* | --inc=*)
1643 includedir=$ac_optarg ;;
1644
1645 -infodir | --infodir | --infodi | --infod | --info | --inf)
1646 ac_prev=infodir ;;
1647 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1648 infodir=$ac_optarg ;;
1649
1650 -libdir | --libdir | --libdi | --libd)
1651 ac_prev=libdir ;;
1652 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1653 libdir=$ac_optarg ;;
1654
1655 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1656 | --libexe | --libex | --libe)
1657 ac_prev=libexecdir ;;
1658 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1659 | --libexe=* | --libex=* | --libe=*)
1660 libexecdir=$ac_optarg ;;
1661
1662 -localedir | --localedir | --localedi | --localed | --locale)
1663 ac_prev=localedir ;;
1664 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1665 localedir=$ac_optarg ;;
1666
1667 -localstatedir | --localstatedir | --localstatedi | --localstated \
1668 | --localstate | --localstat | --localsta | --localst | --locals)
1669 ac_prev=localstatedir ;;
1670 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1671 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1672 localstatedir=$ac_optarg ;;
1673
1674 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1675 ac_prev=mandir ;;
1676 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1677 mandir=$ac_optarg ;;
1678
1679 -nfp | --nfp | --nf)
1680 # Obsolete; use --without-fp.
1681 with_fp=no ;;
1682
1683 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1684 | --no-cr | --no-c | -n)
1685 no_create=yes ;;
1686
1687 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1688 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1689 no_recursion=yes ;;
1690
1691 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1692 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1693 | --oldin | --oldi | --old | --ol | --o)
1694 ac_prev=oldincludedir ;;
1695 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1696 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1697 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1698 oldincludedir=$ac_optarg ;;
1699
1700 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1701 ac_prev=prefix ;;
1702 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1703 prefix=$ac_optarg ;;
1704
1705 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1706 | --program-pre | --program-pr | --program-p)
1707 ac_prev=program_prefix ;;
1708 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1709 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1710 program_prefix=$ac_optarg ;;
1711
1712 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1713 | --program-suf | --program-su | --program-s)
1714 ac_prev=program_suffix ;;
1715 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1716 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1717 program_suffix=$ac_optarg ;;
1718
1719 -program-transform-name | --program-transform-name \
1720 | --program-transform-nam | --program-transform-na \
1721 | --program-transform-n | --program-transform- \
1722 | --program-transform | --program-transfor \
1723 | --program-transfo | --program-transf \
1724 | --program-trans | --program-tran \
1725 | --progr-tra | --program-tr | --program-t)
1726 ac_prev=program_transform_name ;;
1727 -program-transform-name=* | --program-transform-name=* \
1728 | --program-transform-nam=* | --program-transform-na=* \
1729 | --program-transform-n=* | --program-transform-=* \
1730 | --program-transform=* | --program-transfor=* \
1731 | --program-transfo=* | --program-transf=* \
1732 | --program-trans=* | --program-tran=* \
1733 | --progr-tra=* | --program-tr=* | --program-t=*)
1734 program_transform_name=$ac_optarg ;;
1735
1736 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1737 ac_prev=pdfdir ;;
1738 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1739 pdfdir=$ac_optarg ;;
1740
1741 -psdir | --psdir | --psdi | --psd | --ps)
1742 ac_prev=psdir ;;
1743 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1744 psdir=$ac_optarg ;;
1745
1746 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1747 | -silent | --silent | --silen | --sile | --sil)
1748 silent=yes ;;
1749
1750 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1751 ac_prev=sbindir ;;
1752 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1753 | --sbi=* | --sb=*)
1754 sbindir=$ac_optarg ;;
1755
1756 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1757 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1758 | --sharedst | --shareds | --shared | --share | --shar \
1759 | --sha | --sh)
1760 ac_prev=sharedstatedir ;;
1761 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1762 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1763 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1764 | --sha=* | --sh=*)
1765 sharedstatedir=$ac_optarg ;;
1766
1767 -site | --site | --sit)
1768 ac_prev=site ;;
1769 -site=* | --site=* | --sit=*)
1770 site=$ac_optarg ;;
1771
1772 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1773 ac_prev=srcdir ;;
1774 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1775 srcdir=$ac_optarg ;;
1776
1777 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1778 | --syscon | --sysco | --sysc | --sys | --sy)
1779 ac_prev=sysconfdir ;;
1780 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1781 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1782 sysconfdir=$ac_optarg ;;
1783
1784 -target | --target | --targe | --targ | --tar | --ta | --t)
1785 ac_prev=target_alias ;;
1786 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1787 target_alias=$ac_optarg ;;
1788
1789 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1790 verbose=yes ;;
1791
1792 -version | --version | --versio | --versi | --vers | -V)
1793 ac_init_version=: ;;
1794
1795 -with-* | --with-*)
1796 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1797 # Reject names that are not valid shell variable names.
1798 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1799 as_fn_error "invalid package name: $ac_useropt"
1800 ac_useropt_orig=$ac_useropt
1801 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1802 case $ac_user_opts in
1803 *"
1804 "with_$ac_useropt"
1805 "*) ;;
1806 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1807 ac_unrecognized_sep=', ';;
1808 esac
1809 eval with_$ac_useropt=\$ac_optarg ;;
1810
1811 -without-* | --without-*)
1812 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1813 # Reject names that are not valid shell variable names.
1814 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1815 as_fn_error "invalid package name: $ac_useropt"
1816 ac_useropt_orig=$ac_useropt
1817 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1818 case $ac_user_opts in
1819 *"
1820 "with_$ac_useropt"
1821 "*) ;;
1822 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1823 ac_unrecognized_sep=', ';;
1824 esac
1825 eval with_$ac_useropt=no ;;
1826
1827 --x)
1828 # Obsolete; use --with-x.
1829 with_x=yes ;;
1830
1831 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1832 | --x-incl | --x-inc | --x-in | --x-i)
1833 ac_prev=x_includes ;;
1834 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1835 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1836 x_includes=$ac_optarg ;;
1837
1838 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1839 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1840 ac_prev=x_libraries ;;
1841 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1842 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1843 x_libraries=$ac_optarg ;;
1844
1845 -*) as_fn_error "unrecognized option: \`$ac_option'
1846 Try \`$0 --help' for more information."
1847 ;;
1848
1849 *=*)
1850 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1851 # Reject names that are not valid shell variable names.
1852 case $ac_envvar in #(
1853 '' | [0-9]* | *[!_$as_cr_alnum]* )
1854 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1855 esac
1856 eval $ac_envvar=\$ac_optarg
1857 export $ac_envvar ;;
1858
1859 *)
1860 # FIXME: should be removed in autoconf 3.0.
1861 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1862 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1863 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1864 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1865 ;;
1866
1867 esac
1868 done
1869
1870 if test -n "$ac_prev"; then
1871 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1872 as_fn_error "missing argument to $ac_option"
1873 fi
1874
1875 if test -n "$ac_unrecognized_opts"; then
1876 case $enable_option_checking in
1877 no) ;;
1878 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1879 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1880 esac
1881 fi
1882
1883 # Check all directory arguments for consistency.
1884 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1885 datadir sysconfdir sharedstatedir localstatedir includedir \
1886 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1887 libdir localedir mandir
1888 do
1889 eval ac_val=\$$ac_var
1890 # Remove trailing slashes.
1891 case $ac_val in
1892 */ )
1893 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1894 eval $ac_var=\$ac_val;;
1895 esac
1896 # Be sure to have absolute directory names.
1897 case $ac_val in
1898 [\\/$]* | ?:[\\/]* ) continue;;
1899 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1900 esac
1901 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1902 done
1903
1904 # There might be people who depend on the old broken behavior: `$host'
1905 # used to hold the argument of --host etc.
1906 # FIXME: To remove some day.
1907 build=$build_alias
1908 host=$host_alias
1909 target=$target_alias
1910
1911 # FIXME: To remove some day.
1912 if test "x$host_alias" != x; then
1913 if test "x$build_alias" = x; then
1914 cross_compiling=maybe
1915 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1916 If a cross compiler is detected then cross compile mode will be used." >&2
1917 elif test "x$build_alias" != "x$host_alias"; then
1918 cross_compiling=yes
1919 fi
1920 fi
1921
1922 ac_tool_prefix=
1923 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1924
1925 test "$silent" = yes && exec 6>/dev/null
1926
1927
1928 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1929 ac_ls_di=`ls -di .` &&
1930 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1931 as_fn_error "working directory cannot be determined"
1932 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1933 as_fn_error "pwd does not report name of working directory"
1934
1935
1936 # Find the source files, if location was not specified.
1937 if test -z "$srcdir"; then
1938 ac_srcdir_defaulted=yes
1939 # Try the directory containing this script, then the parent directory.
1940 ac_confdir=`$as_dirname -- "$as_myself" ||
1941 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1942 X"$as_myself" : 'X\(//\)[^/]' \| \
1943 X"$as_myself" : 'X\(//\)$' \| \
1944 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1945 $as_echo X"$as_myself" |
1946 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1947 s//\1/
1948 q
1949 }
1950 /^X\(\/\/\)[^/].*/{
1951 s//\1/
1952 q
1953 }
1954 /^X\(\/\/\)$/{
1955 s//\1/
1956 q
1957 }
1958 /^X\(\/\).*/{
1959 s//\1/
1960 q
1961 }
1962 s/.*/./; q'`
1963 srcdir=$ac_confdir
1964 if test ! -r "$srcdir/$ac_unique_file"; then
1965 srcdir=..
1966 fi
1967 else
1968 ac_srcdir_defaulted=no
1969 fi
1970 if test ! -r "$srcdir/$ac_unique_file"; then
1971 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1972 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1973 fi
1974 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1975 ac_abs_confdir=`(
1976 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1977 pwd)`
1978 # When building in place, set srcdir=.
1979 if test "$ac_abs_confdir" = "$ac_pwd"; then
1980 srcdir=.
1981 fi
1982 # Remove unnecessary trailing slashes from srcdir.
1983 # Double slashes in file names in object file debugging info
1984 # mess up M-x gdb in Emacs.
1985 case $srcdir in
1986 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1987 esac
1988 for ac_var in $ac_precious_vars; do
1989 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1990 eval ac_env_${ac_var}_value=\$${ac_var}
1991 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1992 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1993 done
1994
1995 #
1996 # Report the --help message.
1997 #
1998 if test "$ac_init_help" = "long"; then
1999 # Omit some internal or obsolete options to make the list less imposing.
2000 # This message is too long to be a string in the A/UX 3.1 sh.
2001 cat <<_ACEOF
2002 \`configure' configures this package to adapt to many kinds of systems.
2003
2004 Usage: $0 [OPTION]... [VAR=VALUE]...
2005
2006 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2007 VAR=VALUE. See below for descriptions of some of the useful variables.
2008
2009 Defaults for the options are specified in brackets.
2010
2011 Configuration:
2012 -h, --help display this help and exit
2013 --help=short display options specific to this package
2014 --help=recursive display the short help of all the included packages
2015 -V, --version display version information and exit
2016 -q, --quiet, --silent do not print \`checking...' messages
2017 --cache-file=FILE cache test results in FILE [disabled]
2018 -C, --config-cache alias for \`--cache-file=config.cache'
2019 -n, --no-create do not create output files
2020 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2021
2022 Installation directories:
2023 --prefix=PREFIX install architecture-independent files in PREFIX
2024 [$ac_default_prefix]
2025 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2026 [PREFIX]
2027
2028 By default, \`make install' will install all the files in
2029 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2030 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2031 for instance \`--prefix=\$HOME'.
2032
2033 For better control, use the options below.
2034
2035 Fine tuning of the installation directories:
2036 --bindir=DIR user executables [EPREFIX/bin]
2037 --sbindir=DIR system admin executables [EPREFIX/sbin]
2038 --libexecdir=DIR program executables [EPREFIX/libexec]
2039 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2040 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2041 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2042 --libdir=DIR object code libraries [EPREFIX/lib]
2043 --includedir=DIR C header files [PREFIX/include]
2044 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2045 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2046 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2047 --infodir=DIR info documentation [DATAROOTDIR/info]
2048 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2049 --mandir=DIR man documentation [DATAROOTDIR/man]
2050 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
2051 --htmldir=DIR html documentation [DOCDIR]
2052 --dvidir=DIR dvi documentation [DOCDIR]
2053 --pdfdir=DIR pdf documentation [DOCDIR]
2054 --psdir=DIR ps documentation [DOCDIR]
2055 _ACEOF
2056
2057 cat <<\_ACEOF
2058
2059 Program names:
2060 --program-prefix=PREFIX prepend PREFIX to installed program names
2061 --program-suffix=SUFFIX append SUFFIX to installed program names
2062 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
2063
2064 System types:
2065 --build=BUILD configure for building on BUILD [guessed]
2066 --host=HOST cross-compile to build programs to run on HOST [BUILD]
2067 --target=TARGET configure for building compilers for TARGET [HOST]
2068 _ACEOF
2069 fi
2070
2071 if test -n "$ac_init_help"; then
2072
2073 cat <<\_ACEOF
2074
2075 Optional Features:
2076 --disable-option-checking ignore unrecognized --enable/--with options
2077 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2078 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2079 --enable-maintainer-mode enable make rules and dependencies not useful
2080 (and sometimes confusing) to the casual installer
2081 --disable-largefile omit support for large files
2082 --disable-dependency-tracking speeds up one-time build
2083 --enable-dependency-tracking do not reject slow dependency extractors
2084
2085 Some influential environment variables:
2086 CC C compiler command
2087 CFLAGS C compiler flags
2088 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2089 nonstandard directory <lib dir>
2090 LIBS libraries to pass to the linker, e.g. -l<library>
2091 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
2092 you have headers in a nonstandard directory <include dir>
2093 CPP C preprocessor
2094
2095 Use these variables to override the choices made by `configure' or to help
2096 it to find libraries and programs with nonstandard names/locations.
2097
2098 Report bugs to the package provider.
2099 _ACEOF
2100 ac_status=$?
2101 fi
2102
2103 if test "$ac_init_help" = "recursive"; then
2104 # If there are subdirs, report their specific --help.
2105 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2106 test -d "$ac_dir" ||
2107 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2108 continue
2109 ac_builddir=.
2110
2111 case "$ac_dir" in
2112 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2113 *)
2114 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2115 # A ".." for each directory in $ac_dir_suffix.
2116 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2117 case $ac_top_builddir_sub in
2118 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2119 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2120 esac ;;
2121 esac
2122 ac_abs_top_builddir=$ac_pwd
2123 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2124 # for backward compatibility:
2125 ac_top_builddir=$ac_top_build_prefix
2126
2127 case $srcdir in
2128 .) # We are building in place.
2129 ac_srcdir=.
2130 ac_top_srcdir=$ac_top_builddir_sub
2131 ac_abs_top_srcdir=$ac_pwd ;;
2132 [\\/]* | ?:[\\/]* ) # Absolute name.
2133 ac_srcdir=$srcdir$ac_dir_suffix;
2134 ac_top_srcdir=$srcdir
2135 ac_abs_top_srcdir=$srcdir ;;
2136 *) # Relative name.
2137 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2138 ac_top_srcdir=$ac_top_build_prefix$srcdir
2139 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2140 esac
2141 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2142
2143 cd "$ac_dir" || { ac_status=$?; continue; }
2144 # Check for guested configure.
2145 if test -f "$ac_srcdir/configure.gnu"; then
2146 echo &&
2147 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2148 elif test -f "$ac_srcdir/configure"; then
2149 echo &&
2150 $SHELL "$ac_srcdir/configure" --help=recursive
2151 else
2152 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2153 fi || ac_status=$?
2154 cd "$ac_pwd" || { ac_status=$?; break; }
2155 done
2156 fi
2157
2158 test -n "$ac_init_help" && exit $ac_status
2159 if $ac_init_version; then
2160 cat <<\_ACEOF
2161 configure
2162 generated by GNU Autoconf 2.64
2163
2164 Copyright (C) 2009 Free Software Foundation, Inc.
2165 This configure script is free software; the Free Software Foundation
2166 gives unlimited permission to copy, distribute and modify it.
2167 _ACEOF
2168 exit
2169 fi
2170
2171 ## ------------------------ ##
2172 ## Autoconf initialization. ##
2173 ## ------------------------ ##
2174
2175 # ac_fn_c_try_compile LINENO
2176 # --------------------------
2177 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2178 ac_fn_c_try_compile ()
2179 {
2180 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2181 rm -f conftest.$ac_objext
2182 if { { ac_try="$ac_compile"
2183 case "(($ac_try" in
2184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2185 *) ac_try_echo=$ac_try;;
2186 esac
2187 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2188 $as_echo "$ac_try_echo"; } >&5
2189 (eval "$ac_compile") 2>conftest.err
2190 ac_status=$?
2191 if test -s conftest.err; then
2192 grep -v '^ *+' conftest.err >conftest.er1
2193 cat conftest.er1 >&5
2194 mv -f conftest.er1 conftest.err
2195 fi
2196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2197 test $ac_status = 0; } && {
2198 test -z "$ac_c_werror_flag" ||
2199 test ! -s conftest.err
2200 } && test -s conftest.$ac_objext; then :
2201 ac_retval=0
2202 else
2203 $as_echo "$as_me: failed program was:" >&5
2204 sed 's/^/| /' conftest.$ac_ext >&5
2205
2206 ac_retval=1
2207 fi
2208 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2209 return $ac_retval
2210
2211 } # ac_fn_c_try_compile
2212
2213 # ac_fn_c_try_cpp LINENO
2214 # ----------------------
2215 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2216 ac_fn_c_try_cpp ()
2217 {
2218 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2219 if { { ac_try="$ac_cpp conftest.$ac_ext"
2220 case "(($ac_try" in
2221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2222 *) ac_try_echo=$ac_try;;
2223 esac
2224 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2225 $as_echo "$ac_try_echo"; } >&5
2226 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2227 ac_status=$?
2228 if test -s conftest.err; then
2229 grep -v '^ *+' conftest.err >conftest.er1
2230 cat conftest.er1 >&5
2231 mv -f conftest.er1 conftest.err
2232 fi
2233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2234 test $ac_status = 0; } >/dev/null && {
2235 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2236 test ! -s conftest.err
2237 }; then :
2238 ac_retval=0
2239 else
2240 $as_echo "$as_me: failed program was:" >&5
2241 sed 's/^/| /' conftest.$ac_ext >&5
2242
2243 ac_retval=1
2244 fi
2245 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2246 return $ac_retval
2247
2248 } # ac_fn_c_try_cpp
2249
2250 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2251 # -------------------------------------------------------
2252 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2253 # the include files in INCLUDES and setting the cache variable VAR
2254 # accordingly.
2255 ac_fn_c_check_header_mongrel ()
2256 {
2257 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2258 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2260 $as_echo_n "checking for $2... " >&6; }
2261 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2262 $as_echo_n "(cached) " >&6
2263 fi
2264 eval ac_res=\$$3
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2266 $as_echo "$ac_res" >&6; }
2267 else
2268 # Is the header compilable?
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2270 $as_echo_n "checking $2 usability... " >&6; }
2271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2272 /* end confdefs.h. */
2273 $4
2274 #include <$2>
2275 _ACEOF
2276 if ac_fn_c_try_compile "$LINENO"; then :
2277 ac_header_compiler=yes
2278 else
2279 ac_header_compiler=no
2280 fi
2281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2283 $as_echo "$ac_header_compiler" >&6; }
2284
2285 # Is the header present?
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2287 $as_echo_n "checking $2 presence... " >&6; }
2288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2289 /* end confdefs.h. */
2290 #include <$2>
2291 _ACEOF
2292 if ac_fn_c_try_cpp "$LINENO"; then :
2293 ac_header_preproc=yes
2294 else
2295 ac_header_preproc=no
2296 fi
2297 rm -f conftest.err conftest.$ac_ext
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2299 $as_echo "$ac_header_preproc" >&6; }
2300
2301 # So? What about this header?
2302 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2303 yes:no: )
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2305 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2307 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2308 ;;
2309 no:yes:* )
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2311 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2313 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2315 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2317 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2318 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2319 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2320 ;;
2321 esac
2322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2323 $as_echo_n "checking for $2... " >&6; }
2324 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2325 $as_echo_n "(cached) " >&6
2326 else
2327 eval "$3=\$ac_header_compiler"
2328 fi
2329 eval ac_res=\$$3
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2331 $as_echo "$ac_res" >&6; }
2332 fi
2333 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2334
2335 } # ac_fn_c_check_header_mongrel
2336
2337 # ac_fn_c_try_run LINENO
2338 # ----------------------
2339 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2340 # that executables *can* be run.
2341 ac_fn_c_try_run ()
2342 {
2343 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2344 if { { ac_try="$ac_link"
2345 case "(($ac_try" in
2346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2347 *) ac_try_echo=$ac_try;;
2348 esac
2349 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2350 $as_echo "$ac_try_echo"; } >&5
2351 (eval "$ac_link") 2>&5
2352 ac_status=$?
2353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2354 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2355 { { case "(($ac_try" in
2356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2357 *) ac_try_echo=$ac_try;;
2358 esac
2359 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2360 $as_echo "$ac_try_echo"; } >&5
2361 (eval "$ac_try") 2>&5
2362 ac_status=$?
2363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2364 test $ac_status = 0; }; }; then :
2365 ac_retval=0
2366 else
2367 $as_echo "$as_me: program exited with status $ac_status" >&5
2368 $as_echo "$as_me: failed program was:" >&5
2369 sed 's/^/| /' conftest.$ac_ext >&5
2370
2371 ac_retval=$ac_status
2372 fi
2373 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2374 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2375 return $ac_retval
2376
2377 } # ac_fn_c_try_run
2378
2379 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2380 # -------------------------------------------------------
2381 # Tests whether HEADER exists and can be compiled using the include files in
2382 # INCLUDES, setting the cache variable VAR accordingly.
2383 ac_fn_c_check_header_compile ()
2384 {
2385 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2387 $as_echo_n "checking for $2... " >&6; }
2388 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2389 $as_echo_n "(cached) " >&6
2390 else
2391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2392 /* end confdefs.h. */
2393 $4
2394 #include <$2>
2395 _ACEOF
2396 if ac_fn_c_try_compile "$LINENO"; then :
2397 eval "$3=yes"
2398 else
2399 eval "$3=no"
2400 fi
2401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2402 fi
2403 eval ac_res=\$$3
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2405 $as_echo "$ac_res" >&6; }
2406 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2407
2408 } # ac_fn_c_check_header_compile
2409
2410 # ac_fn_c_try_link LINENO
2411 # -----------------------
2412 # Try to link conftest.$ac_ext, and return whether this succeeded.
2413 ac_fn_c_try_link ()
2414 {
2415 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2416 rm -f conftest.$ac_objext conftest$ac_exeext
2417 if { { ac_try="$ac_link"
2418 case "(($ac_try" in
2419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2420 *) ac_try_echo=$ac_try;;
2421 esac
2422 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2423 $as_echo "$ac_try_echo"; } >&5
2424 (eval "$ac_link") 2>conftest.err
2425 ac_status=$?
2426 if test -s conftest.err; then
2427 grep -v '^ *+' conftest.err >conftest.er1
2428 cat conftest.er1 >&5
2429 mv -f conftest.er1 conftest.err
2430 fi
2431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2432 test $ac_status = 0; } && {
2433 test -z "$ac_c_werror_flag" ||
2434 test ! -s conftest.err
2435 } && test -s conftest$ac_exeext && {
2436 test "$cross_compiling" = yes ||
2437 $as_test_x conftest$ac_exeext
2438 }; then :
2439 ac_retval=0
2440 else
2441 $as_echo "$as_me: failed program was:" >&5
2442 sed 's/^/| /' conftest.$ac_ext >&5
2443
2444 ac_retval=1
2445 fi
2446 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2447 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2448 # interfere with the next link command; also delete a directory that is
2449 # left behind by Apple's compiler. We do this before executing the actions.
2450 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2451 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2452 return $ac_retval
2453
2454 } # ac_fn_c_try_link
2455
2456 # ac_fn_c_check_func LINENO FUNC VAR
2457 # ----------------------------------
2458 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2459 ac_fn_c_check_func ()
2460 {
2461 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2463 $as_echo_n "checking for $2... " >&6; }
2464 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2465 $as_echo_n "(cached) " >&6
2466 else
2467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2468 /* end confdefs.h. */
2469 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2470 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2471 #define $2 innocuous_$2
2472
2473 /* System header to define __stub macros and hopefully few prototypes,
2474 which can conflict with char $2 (); below.
2475 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2476 <limits.h> exists even on freestanding compilers. */
2477
2478 #ifdef __STDC__
2479 # include <limits.h>
2480 #else
2481 # include <assert.h>
2482 #endif
2483
2484 #undef $2
2485
2486 /* Override any GCC internal prototype to avoid an error.
2487 Use char because int might match the return type of a GCC
2488 builtin and then its argument prototype would still apply. */
2489 #ifdef __cplusplus
2490 extern "C"
2491 #endif
2492 char $2 ();
2493 /* The GNU C library defines this for functions which it implements
2494 to always fail with ENOSYS. Some functions are actually named
2495 something starting with __ and the normal name is an alias. */
2496 #if defined __stub_$2 || defined __stub___$2
2497 choke me
2498 #endif
2499
2500 int
2501 main ()
2502 {
2503 return $2 ();
2504 ;
2505 return 0;
2506 }
2507 _ACEOF
2508 if ac_fn_c_try_link "$LINENO"; then :
2509 eval "$3=yes"
2510 else
2511 eval "$3=no"
2512 fi
2513 rm -f core conftest.err conftest.$ac_objext \
2514 conftest$ac_exeext conftest.$ac_ext
2515 fi
2516 eval ac_res=\$$3
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2518 $as_echo "$ac_res" >&6; }
2519 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2520
2521 } # ac_fn_c_check_func
2522
2523 # ac_fn_c_check_decl LINENO SYMBOL VAR
2524 # ------------------------------------
2525 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2526 ac_fn_c_check_decl ()
2527 {
2528 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2530 $as_echo_n "checking whether $2 is declared... " >&6; }
2531 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2532 $as_echo_n "(cached) " >&6
2533 else
2534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2535 /* end confdefs.h. */
2536 $4
2537 int
2538 main ()
2539 {
2540 #ifndef $2
2541 (void) $2;
2542 #endif
2543
2544 ;
2545 return 0;
2546 }
2547 _ACEOF
2548 if ac_fn_c_try_compile "$LINENO"; then :
2549 eval "$3=yes"
2550 else
2551 eval "$3=no"
2552 fi
2553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2554 fi
2555 eval ac_res=\$$3
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2557 $as_echo "$ac_res" >&6; }
2558 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2559
2560 } # ac_fn_c_check_decl
2561
2562 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2563 # --------------------------------------------
2564 # Tries to find the compile-time value of EXPR in a program that includes
2565 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2566 # computed
2567 ac_fn_c_compute_int ()
2568 {
2569 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2570 if test "$cross_compiling" = yes; then
2571 # Depending upon the size, compute the lo and hi bounds.
2572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2573 /* end confdefs.h. */
2574 $4
2575 int
2576 main ()
2577 {
2578 static int test_array [1 - 2 * !(($2) >= 0)];
2579 test_array [0] = 0
2580
2581 ;
2582 return 0;
2583 }
2584 _ACEOF
2585 if ac_fn_c_try_compile "$LINENO"; then :
2586 ac_lo=0 ac_mid=0
2587 while :; do
2588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2589 /* end confdefs.h. */
2590 $4
2591 int
2592 main ()
2593 {
2594 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2595 test_array [0] = 0
2596
2597 ;
2598 return 0;
2599 }
2600 _ACEOF
2601 if ac_fn_c_try_compile "$LINENO"; then :
2602 ac_hi=$ac_mid; break
2603 else
2604 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2605 if test $ac_lo -le $ac_mid; then
2606 ac_lo= ac_hi=
2607 break
2608 fi
2609 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2610 fi
2611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2612 done
2613 else
2614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2615 /* end confdefs.h. */
2616 $4
2617 int
2618 main ()
2619 {
2620 static int test_array [1 - 2 * !(($2) < 0)];
2621 test_array [0] = 0
2622
2623 ;
2624 return 0;
2625 }
2626 _ACEOF
2627 if ac_fn_c_try_compile "$LINENO"; then :
2628 ac_hi=-1 ac_mid=-1
2629 while :; do
2630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2631 /* end confdefs.h. */
2632 $4
2633 int
2634 main ()
2635 {
2636 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2637 test_array [0] = 0
2638
2639 ;
2640 return 0;
2641 }
2642 _ACEOF
2643 if ac_fn_c_try_compile "$LINENO"; then :
2644 ac_lo=$ac_mid; break
2645 else
2646 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2647 if test $ac_mid -le $ac_hi; then
2648 ac_lo= ac_hi=
2649 break
2650 fi
2651 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2652 fi
2653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2654 done
2655 else
2656 ac_lo= ac_hi=
2657 fi
2658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2659 fi
2660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2661 # Binary search between lo and hi bounds.
2662 while test "x$ac_lo" != "x$ac_hi"; do
2663 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2665 /* end confdefs.h. */
2666 $4
2667 int
2668 main ()
2669 {
2670 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2671 test_array [0] = 0
2672
2673 ;
2674 return 0;
2675 }
2676 _ACEOF
2677 if ac_fn_c_try_compile "$LINENO"; then :
2678 ac_hi=$ac_mid
2679 else
2680 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2681 fi
2682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2683 done
2684 case $ac_lo in #((
2685 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2686 '') ac_retval=1 ;;
2687 esac
2688 else
2689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2690 /* end confdefs.h. */
2691 $4
2692 static long int longval () { return $2; }
2693 static unsigned long int ulongval () { return $2; }
2694 #include <stdio.h>
2695 #include <stdlib.h>
2696 int
2697 main ()
2698 {
2699
2700 FILE *f = fopen ("conftest.val", "w");
2701 if (! f)
2702 return 1;
2703 if (($2) < 0)
2704 {
2705 long int i = longval ();
2706 if (i != ($2))
2707 return 1;
2708 fprintf (f, "%ld", i);
2709 }
2710 else
2711 {
2712 unsigned long int i = ulongval ();
2713 if (i != ($2))
2714 return 1;
2715 fprintf (f, "%lu", i);
2716 }
2717 /* Do not output a trailing newline, as this causes \r\n confusion
2718 on some platforms. */
2719 return ferror (f) || fclose (f) != 0;
2720
2721 ;
2722 return 0;
2723 }
2724 _ACEOF
2725 if ac_fn_c_try_run "$LINENO"; then :
2726 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2727 else
2728 ac_retval=1
2729 fi
2730 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2731 conftest.$ac_objext conftest.beam conftest.$ac_ext
2732 rm -f conftest.val
2733
2734 fi
2735 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2736 return $ac_retval
2737
2738 } # ac_fn_c_compute_int
2739
2740 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2741 # -------------------------------------------
2742 # Tests whether TYPE exists after having included INCLUDES, setting cache
2743 # variable VAR accordingly.
2744 ac_fn_c_check_type ()
2745 {
2746 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2748 $as_echo_n "checking for $2... " >&6; }
2749 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2750 $as_echo_n "(cached) " >&6
2751 else
2752 eval "$3=no"
2753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2754 /* end confdefs.h. */
2755 $4
2756 int
2757 main ()
2758 {
2759 if (sizeof ($2))
2760 return 0;
2761 ;
2762 return 0;
2763 }
2764 _ACEOF
2765 if ac_fn_c_try_compile "$LINENO"; then :
2766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2767 /* end confdefs.h. */
2768 $4
2769 int
2770 main ()
2771 {
2772 if (sizeof (($2)))
2773 return 0;
2774 ;
2775 return 0;
2776 }
2777 _ACEOF
2778 if ac_fn_c_try_compile "$LINENO"; then :
2779
2780 else
2781 eval "$3=yes"
2782 fi
2783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2784 fi
2785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2786 fi
2787 eval ac_res=\$$3
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2789 $as_echo "$ac_res" >&6; }
2790 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2791
2792 } # ac_fn_c_check_type
2793 cat >config.log <<_ACEOF
2794 This file contains any messages produced by compilers while
2795 running configure, to aid debugging if configure makes a mistake.
2796
2797 It was created by $as_me, which was
2798 generated by GNU Autoconf 2.64. Invocation command line was
2799
2800 $ $0 $@
2801
2802 _ACEOF
2803 exec 5>>config.log
2804 {
2805 cat <<_ASUNAME
2806 ## --------- ##
2807 ## Platform. ##
2808 ## --------- ##
2809
2810 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2811 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2812 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2813 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2814 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2815
2816 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2817 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2818
2819 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2820 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2821 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2822 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2823 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2824 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2825 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2826
2827 _ASUNAME
2828
2829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2830 for as_dir in $PATH
2831 do
2832 IFS=$as_save_IFS
2833 test -z "$as_dir" && as_dir=.
2834 $as_echo "PATH: $as_dir"
2835 done
2836 IFS=$as_save_IFS
2837
2838 } >&5
2839
2840 cat >&5 <<_ACEOF
2841
2842
2843 ## ----------- ##
2844 ## Core tests. ##
2845 ## ----------- ##
2846
2847 _ACEOF
2848
2849
2850 # Keep a trace of the command line.
2851 # Strip out --no-create and --no-recursion so they do not pile up.
2852 # Strip out --silent because we don't want to record it for future runs.
2853 # Also quote any args containing shell meta-characters.
2854 # Make two passes to allow for proper duplicate-argument suppression.
2855 ac_configure_args=
2856 ac_configure_args0=
2857 ac_configure_args1=
2858 ac_must_keep_next=false
2859 for ac_pass in 1 2
2860 do
2861 for ac_arg
2862 do
2863 case $ac_arg in
2864 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2865 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2866 | -silent | --silent | --silen | --sile | --sil)
2867 continue ;;
2868 *\'*)
2869 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2870 esac
2871 case $ac_pass in
2872 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2873 2)
2874 as_fn_append ac_configure_args1 " '$ac_arg'"
2875 if test $ac_must_keep_next = true; then
2876 ac_must_keep_next=false # Got value, back to normal.
2877 else
2878 case $ac_arg in
2879 *=* | --config-cache | -C | -disable-* | --disable-* \
2880 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2881 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2882 | -with-* | --with-* | -without-* | --without-* | --x)
2883 case "$ac_configure_args0 " in
2884 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2885 esac
2886 ;;
2887 -* ) ac_must_keep_next=true ;;
2888 esac
2889 fi
2890 as_fn_append ac_configure_args " '$ac_arg'"
2891 ;;
2892 esac
2893 done
2894 done
2895 { ac_configure_args0=; unset ac_configure_args0;}
2896 { ac_configure_args1=; unset ac_configure_args1;}
2897
2898 # When interrupted or exit'd, cleanup temporary files, and complete
2899 # config.log. We remove comments because anyway the quotes in there
2900 # would cause problems or look ugly.
2901 # WARNING: Use '\'' to represent an apostrophe within the trap.
2902 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2903 trap 'exit_status=$?
2904 # Save into config.log some information that might help in debugging.
2905 {
2906 echo
2907
2908 cat <<\_ASBOX
2909 ## ---------------- ##
2910 ## Cache variables. ##
2911 ## ---------------- ##
2912 _ASBOX
2913 echo
2914 # The following way of writing the cache mishandles newlines in values,
2915 (
2916 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2917 eval ac_val=\$$ac_var
2918 case $ac_val in #(
2919 *${as_nl}*)
2920 case $ac_var in #(
2921 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2922 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2923 esac
2924 case $ac_var in #(
2925 _ | IFS | as_nl) ;; #(
2926 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2927 *) { eval $ac_var=; unset $ac_var;} ;;
2928 esac ;;
2929 esac
2930 done
2931 (set) 2>&1 |
2932 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2933 *${as_nl}ac_space=\ *)
2934 sed -n \
2935 "s/'\''/'\''\\\\'\'''\''/g;
2936 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2937 ;; #(
2938 *)
2939 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2940 ;;
2941 esac |
2942 sort
2943 )
2944 echo
2945
2946 cat <<\_ASBOX
2947 ## ----------------- ##
2948 ## Output variables. ##
2949 ## ----------------- ##
2950 _ASBOX
2951 echo
2952 for ac_var in $ac_subst_vars
2953 do
2954 eval ac_val=\$$ac_var
2955 case $ac_val in
2956 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2957 esac
2958 $as_echo "$ac_var='\''$ac_val'\''"
2959 done | sort
2960 echo
2961
2962 if test -n "$ac_subst_files"; then
2963 cat <<\_ASBOX
2964 ## ------------------- ##
2965 ## File substitutions. ##
2966 ## ------------------- ##
2967 _ASBOX
2968 echo
2969 for ac_var in $ac_subst_files
2970 do
2971 eval ac_val=\$$ac_var
2972 case $ac_val in
2973 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2974 esac
2975 $as_echo "$ac_var='\''$ac_val'\''"
2976 done | sort
2977 echo
2978 fi
2979
2980 if test -s confdefs.h; then
2981 cat <<\_ASBOX
2982 ## ----------- ##
2983 ## confdefs.h. ##
2984 ## ----------- ##
2985 _ASBOX
2986 echo
2987 cat confdefs.h
2988 echo
2989 fi
2990 test "$ac_signal" != 0 &&
2991 $as_echo "$as_me: caught signal $ac_signal"
2992 $as_echo "$as_me: exit $exit_status"
2993 } >&5
2994 rm -f core *.core core.conftest.* &&
2995 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2996 exit $exit_status
2997 ' 0
2998 for ac_signal in 1 2 13 15; do
2999 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3000 done
3001 ac_signal=0
3002
3003 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3004 rm -f -r conftest* confdefs.h
3005
3006 $as_echo "/* confdefs.h */" > confdefs.h
3007
3008 # Predefined preprocessor variables.
3009
3010 cat >>confdefs.h <<_ACEOF
3011 #define PACKAGE_NAME "$PACKAGE_NAME"
3012 _ACEOF
3013
3014 cat >>confdefs.h <<_ACEOF
3015 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3016 _ACEOF
3017
3018 cat >>confdefs.h <<_ACEOF
3019 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3020 _ACEOF
3021
3022 cat >>confdefs.h <<_ACEOF
3023 #define PACKAGE_STRING "$PACKAGE_STRING"
3024 _ACEOF
3025
3026 cat >>confdefs.h <<_ACEOF
3027 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3028 _ACEOF
3029
3030 cat >>confdefs.h <<_ACEOF
3031 #define PACKAGE_URL "$PACKAGE_URL"
3032 _ACEOF
3033
3034
3035 # Let the site file select an alternate cache file if it wants to.
3036 # Prefer an explicitly selected file to automatically selected ones.
3037 ac_site_file1=NONE
3038 ac_site_file2=NONE
3039 if test -n "$CONFIG_SITE"; then
3040 ac_site_file1=$CONFIG_SITE
3041 elif test "x$prefix" != xNONE; then
3042 ac_site_file1=$prefix/share/config.site
3043 ac_site_file2=$prefix/etc/config.site
3044 else
3045 ac_site_file1=$ac_default_prefix/share/config.site
3046 ac_site_file2=$ac_default_prefix/etc/config.site
3047 fi
3048 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3049 do
3050 test "x$ac_site_file" = xNONE && continue
3051 if test -r "$ac_site_file"; then
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3053 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3054 sed 's/^/| /' "$ac_site_file" >&5
3055 . "$ac_site_file"
3056 fi
3057 done
3058
3059 if test -r "$cache_file"; then
3060 # Some versions of bash will fail to source /dev/null (special
3061 # files actually), so we avoid doing that.
3062 if test -f "$cache_file"; then
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3064 $as_echo "$as_me: loading cache $cache_file" >&6;}
3065 case $cache_file in
3066 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3067 *) . "./$cache_file";;
3068 esac
3069 fi
3070 else
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3072 $as_echo "$as_me: creating cache $cache_file" >&6;}
3073 >$cache_file
3074 fi
3075
3076 as_fn_append ac_header_list " dirent.h"
3077 as_fn_append ac_func_list " btowc"
3078 as_fn_append ac_func_list " isblank"
3079 as_fn_append ac_func_list " iswctype"
3080 as_fn_append ac_func_list " mbsrtowcs"
3081 as_fn_append ac_func_list " mempcpy"
3082 as_fn_append ac_func_list " wmemchr"
3083 as_fn_append ac_func_list " wmemcpy"
3084 as_fn_append ac_func_list " wmempcpy"
3085 as_fn_append ac_header_list " wctype.h"
3086 gl_fnmatch_required=GNU
3087 as_fn_append ac_func_list " alarm"
3088 as_fn_append ac_header_list " wchar.h"
3089 as_fn_append ac_header_list " stdint.h"
3090 as_fn_append ac_header_list " inttypes.h"
3091 as_fn_append ac_header_list " unistd.h"
3092 as_fn_append ac_func_list " symlink"
3093 as_fn_append ac_header_list " math.h"
3094 as_fn_append ac_func_list " mbsinit"
3095 as_fn_append ac_func_list " mbrtowc"
3096 as_fn_append ac_header_list " sys/mman.h"
3097 as_fn_append ac_func_list " mprotect"
3098 as_fn_append ac_header_list " sys/param.h"
3099 as_fn_append ac_func_list " readlink"
3100 as_fn_append ac_func_list " lstat"
3101 as_fn_append ac_header_list " sys/stat.h"
3102 as_fn_append ac_header_list " sys/time.h"
3103 as_fn_append ac_header_list " features.h"
3104 as_fn_append ac_func_list " iswcntrl"
3105 # Check that the precious variables saved in the cache have kept the same
3106 # value.
3107 ac_cache_corrupted=false
3108 for ac_var in $ac_precious_vars; do
3109 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3110 eval ac_new_set=\$ac_env_${ac_var}_set
3111 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3112 eval ac_new_val=\$ac_env_${ac_var}_value
3113 case $ac_old_set,$ac_new_set in
3114 set,)
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3116 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3117 ac_cache_corrupted=: ;;
3118 ,set)
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3120 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3121 ac_cache_corrupted=: ;;
3122 ,);;
3123 *)
3124 if test "x$ac_old_val" != "x$ac_new_val"; then
3125 # differences in whitespace do not lead to failure.
3126 ac_old_val_w=`echo x $ac_old_val`
3127 ac_new_val_w=`echo x $ac_new_val`
3128 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3130 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3131 ac_cache_corrupted=:
3132 else
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3134 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3135 eval $ac_var=\$ac_old_val
3136 fi
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3138 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3140 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3141 fi;;
3142 esac
3143 # Pass precious variables to config.status.
3144 if test "$ac_new_set" = set; then
3145 case $ac_new_val in
3146 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3147 *) ac_arg=$ac_var=$ac_new_val ;;
3148 esac
3149 case " $ac_configure_args " in
3150 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3151 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3152 esac
3153 fi
3154 done
3155 if $ac_cache_corrupted; then
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3157 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3159 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3160 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3161 fi
3162 ## -------------------- ##
3163 ## Main body of script. ##
3164 ## -------------------- ##
3165
3166 ac_ext=c
3167 ac_cpp='$CPP $CPPFLAGS'
3168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3171
3172
3173 ac_config_headers="$ac_config_headers config.h:config.in"
3174
3175
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3177 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3178 # Check whether --enable-maintainer-mode was given.
3179 if test "${enable_maintainer_mode+set}" = set; then :
3180 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3181 else
3182 USE_MAINTAINER_MODE=no
3183 fi
3184
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3186 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3187 if test $USE_MAINTAINER_MODE = yes; then
3188 MAINTAINER_MODE_TRUE=
3189 MAINTAINER_MODE_FALSE='#'
3190 else
3191 MAINTAINER_MODE_TRUE='#'
3192 MAINTAINER_MODE_FALSE=
3193 fi
3194
3195 MAINT=$MAINTAINER_MODE_TRUE
3196
3197
3198
3199 ac_ext=c
3200 ac_cpp='$CPP $CPPFLAGS'
3201 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3202 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3203 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3204 if test -n "$ac_tool_prefix"; then
3205 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3206 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3208 $as_echo_n "checking for $ac_word... " >&6; }
3209 if test "${ac_cv_prog_CC+set}" = set; then :
3210 $as_echo_n "(cached) " >&6
3211 else
3212 if test -n "$CC"; then
3213 ac_cv_prog_CC="$CC" # Let the user override the test.
3214 else
3215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3216 for as_dir in $PATH
3217 do
3218 IFS=$as_save_IFS
3219 test -z "$as_dir" && as_dir=.
3220 for ac_exec_ext in '' $ac_executable_extensions; do
3221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3222 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3224 break 2
3225 fi
3226 done
3227 done
3228 IFS=$as_save_IFS
3229
3230 fi
3231 fi
3232 CC=$ac_cv_prog_CC
3233 if test -n "$CC"; then
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3235 $as_echo "$CC" >&6; }
3236 else
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3238 $as_echo "no" >&6; }
3239 fi
3240
3241
3242 fi
3243 if test -z "$ac_cv_prog_CC"; then
3244 ac_ct_CC=$CC
3245 # Extract the first word of "gcc", so it can be a program name with args.
3246 set dummy gcc; ac_word=$2
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3248 $as_echo_n "checking for $ac_word... " >&6; }
3249 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3250 $as_echo_n "(cached) " >&6
3251 else
3252 if test -n "$ac_ct_CC"; then
3253 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3254 else
3255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3256 for as_dir in $PATH
3257 do
3258 IFS=$as_save_IFS
3259 test -z "$as_dir" && as_dir=.
3260 for ac_exec_ext in '' $ac_executable_extensions; do
3261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3262 ac_cv_prog_ac_ct_CC="gcc"
3263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3264 break 2
3265 fi
3266 done
3267 done
3268 IFS=$as_save_IFS
3269
3270 fi
3271 fi
3272 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3273 if test -n "$ac_ct_CC"; then
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3275 $as_echo "$ac_ct_CC" >&6; }
3276 else
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3278 $as_echo "no" >&6; }
3279 fi
3280
3281 if test "x$ac_ct_CC" = x; then
3282 CC=""
3283 else
3284 case $cross_compiling:$ac_tool_warned in
3285 yes:)
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3287 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3288 ac_tool_warned=yes ;;
3289 esac
3290 CC=$ac_ct_CC
3291 fi
3292 else
3293 CC="$ac_cv_prog_CC"
3294 fi
3295
3296 if test -z "$CC"; then
3297 if test -n "$ac_tool_prefix"; then
3298 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3299 set dummy ${ac_tool_prefix}cc; ac_word=$2
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3301 $as_echo_n "checking for $ac_word... " >&6; }
3302 if test "${ac_cv_prog_CC+set}" = set; then :
3303 $as_echo_n "(cached) " >&6
3304 else
3305 if test -n "$CC"; then
3306 ac_cv_prog_CC="$CC" # Let the user override the test.
3307 else
3308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3309 for as_dir in $PATH
3310 do
3311 IFS=$as_save_IFS
3312 test -z "$as_dir" && as_dir=.
3313 for ac_exec_ext in '' $ac_executable_extensions; do
3314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3315 ac_cv_prog_CC="${ac_tool_prefix}cc"
3316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3317 break 2
3318 fi
3319 done
3320 done
3321 IFS=$as_save_IFS
3322
3323 fi
3324 fi
3325 CC=$ac_cv_prog_CC
3326 if test -n "$CC"; then
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3328 $as_echo "$CC" >&6; }
3329 else
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3331 $as_echo "no" >&6; }
3332 fi
3333
3334
3335 fi
3336 fi
3337 if test -z "$CC"; then
3338 # Extract the first word of "cc", so it can be a program name with args.
3339 set dummy cc; ac_word=$2
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3341 $as_echo_n "checking for $ac_word... " >&6; }
3342 if test "${ac_cv_prog_CC+set}" = set; then :
3343 $as_echo_n "(cached) " >&6
3344 else
3345 if test -n "$CC"; then
3346 ac_cv_prog_CC="$CC" # Let the user override the test.
3347 else
3348 ac_prog_rejected=no
3349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3350 for as_dir in $PATH
3351 do
3352 IFS=$as_save_IFS
3353 test -z "$as_dir" && as_dir=.
3354 for ac_exec_ext in '' $ac_executable_extensions; do
3355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3356 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3357 ac_prog_rejected=yes
3358 continue
3359 fi
3360 ac_cv_prog_CC="cc"
3361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3362 break 2
3363 fi
3364 done
3365 done
3366 IFS=$as_save_IFS
3367
3368 if test $ac_prog_rejected = yes; then
3369 # We found a bogon in the path, so make sure we never use it.
3370 set dummy $ac_cv_prog_CC
3371 shift
3372 if test $# != 0; then
3373 # We chose a different compiler from the bogus one.
3374 # However, it has the same basename, so the bogon will be chosen
3375 # first if we set CC to just the basename; use the full file name.
3376 shift
3377 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3378 fi
3379 fi
3380 fi
3381 fi
3382 CC=$ac_cv_prog_CC
3383 if test -n "$CC"; then
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3385 $as_echo "$CC" >&6; }
3386 else
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3388 $as_echo "no" >&6; }
3389 fi
3390
3391
3392 fi
3393 if test -z "$CC"; then
3394 if test -n "$ac_tool_prefix"; then
3395 for ac_prog in cl.exe
3396 do
3397 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3398 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3400 $as_echo_n "checking for $ac_word... " >&6; }
3401 if test "${ac_cv_prog_CC+set}" = set; then :
3402 $as_echo_n "(cached) " >&6
3403 else
3404 if test -n "$CC"; then
3405 ac_cv_prog_CC="$CC" # Let the user override the test.
3406 else
3407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3408 for as_dir in $PATH
3409 do
3410 IFS=$as_save_IFS
3411 test -z "$as_dir" && as_dir=.
3412 for ac_exec_ext in '' $ac_executable_extensions; do
3413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3414 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3416 break 2
3417 fi
3418 done
3419 done
3420 IFS=$as_save_IFS
3421
3422 fi
3423 fi
3424 CC=$ac_cv_prog_CC
3425 if test -n "$CC"; then
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3427 $as_echo "$CC" >&6; }
3428 else
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3430 $as_echo "no" >&6; }
3431 fi
3432
3433
3434 test -n "$CC" && break
3435 done
3436 fi
3437 if test -z "$CC"; then
3438 ac_ct_CC=$CC
3439 for ac_prog in cl.exe
3440 do
3441 # Extract the first word of "$ac_prog", so it can be a program name with args.
3442 set dummy $ac_prog; ac_word=$2
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3444 $as_echo_n "checking for $ac_word... " >&6; }
3445 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3446 $as_echo_n "(cached) " >&6
3447 else
3448 if test -n "$ac_ct_CC"; then
3449 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3450 else
3451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3452 for as_dir in $PATH
3453 do
3454 IFS=$as_save_IFS
3455 test -z "$as_dir" && as_dir=.
3456 for ac_exec_ext in '' $ac_executable_extensions; do
3457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3458 ac_cv_prog_ac_ct_CC="$ac_prog"
3459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3460 break 2
3461 fi
3462 done
3463 done
3464 IFS=$as_save_IFS
3465
3466 fi
3467 fi
3468 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3469 if test -n "$ac_ct_CC"; then
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3471 $as_echo "$ac_ct_CC" >&6; }
3472 else
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3474 $as_echo "no" >&6; }
3475 fi
3476
3477
3478 test -n "$ac_ct_CC" && break
3479 done
3480
3481 if test "x$ac_ct_CC" = x; then
3482 CC=""
3483 else
3484 case $cross_compiling:$ac_tool_warned in
3485 yes:)
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3487 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3488 ac_tool_warned=yes ;;
3489 esac
3490 CC=$ac_ct_CC
3491 fi
3492 fi
3493
3494 fi
3495
3496
3497 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3498 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3499 as_fn_error "no acceptable C compiler found in \$PATH
3500 See \`config.log' for more details." "$LINENO" 5; }
3501
3502 # Provide some information about the compiler.
3503 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3504 set X $ac_compile
3505 ac_compiler=$2
3506 for ac_option in --version -v -V -qversion; do
3507 { { ac_try="$ac_compiler $ac_option >&5"
3508 case "(($ac_try" in
3509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3510 *) ac_try_echo=$ac_try;;
3511 esac
3512 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3513 $as_echo "$ac_try_echo"; } >&5
3514 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3515 ac_status=$?
3516 if test -s conftest.err; then
3517 sed '10a\
3518 ... rest of stderr output deleted ...
3519 10q' conftest.err >conftest.er1
3520 cat conftest.er1 >&5
3521 rm -f conftest.er1 conftest.err
3522 fi
3523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3524 test $ac_status = 0; }
3525 done
3526
3527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3528 /* end confdefs.h. */
3529 #include <stdio.h>
3530 int
3531 main ()
3532 {
3533 FILE *f = fopen ("conftest.out", "w");
3534 return ferror (f) || fclose (f) != 0;
3535
3536 ;
3537 return 0;
3538 }
3539 _ACEOF
3540 ac_clean_files_save=$ac_clean_files
3541 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3542 # Try to create an executable without -o first, disregard a.out.
3543 # It will help us diagnose broken compilers, and finding out an intuition
3544 # of exeext.
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3546 $as_echo_n "checking for C compiler default output file name... " >&6; }
3547 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3548
3549 # The possible output files:
3550 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3551
3552 ac_rmfiles=
3553 for ac_file in $ac_files
3554 do
3555 case $ac_file in
3556 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3557 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3558 esac
3559 done
3560 rm -f $ac_rmfiles
3561
3562 if { { ac_try="$ac_link_default"
3563 case "(($ac_try" in
3564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3565 *) ac_try_echo=$ac_try;;
3566 esac
3567 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3568 $as_echo "$ac_try_echo"; } >&5
3569 (eval "$ac_link_default") 2>&5
3570 ac_status=$?
3571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3572 test $ac_status = 0; }; then :
3573 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3574 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3575 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3576 # so that the user can short-circuit this test for compilers unknown to
3577 # Autoconf.
3578 for ac_file in $ac_files ''
3579 do
3580 test -f "$ac_file" || continue
3581 case $ac_file in
3582 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3583 ;;
3584 [ab].out )
3585 # We found the default executable, but exeext='' is most
3586 # certainly right.
3587 break;;
3588 *.* )
3589 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3590 then :; else
3591 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3592 fi
3593 # We set ac_cv_exeext here because the later test for it is not
3594 # safe: cross compilers may not add the suffix if given an `-o'
3595 # argument, so we may need to know it at that point already.
3596 # Even if this section looks crufty: it has the advantage of
3597 # actually working.
3598 break;;
3599 * )
3600 break;;
3601 esac
3602 done
3603 test "$ac_cv_exeext" = no && ac_cv_exeext=
3604
3605 else
3606 ac_file=''
3607 fi
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3609 $as_echo "$ac_file" >&6; }
3610 if test -z "$ac_file"; then :
3611 $as_echo "$as_me: failed program was:" >&5
3612 sed 's/^/| /' conftest.$ac_ext >&5
3613
3614 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3615 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3616 { as_fn_set_status 77
3617 as_fn_error "C compiler cannot create executables
3618 See \`config.log' for more details." "$LINENO" 5; }; }
3619 fi
3620 ac_exeext=$ac_cv_exeext
3621
3622 # Check that the compiler produces executables we can run. If not, either
3623 # the compiler is broken, or we cross compile.
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3625 $as_echo_n "checking whether the C compiler works... " >&6; }
3626 # If not cross compiling, check that we can run a simple program.
3627 if test "$cross_compiling" != yes; then
3628 if { ac_try='./$ac_file'
3629 { { case "(($ac_try" in
3630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3631 *) ac_try_echo=$ac_try;;
3632 esac
3633 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3634 $as_echo "$ac_try_echo"; } >&5
3635 (eval "$ac_try") 2>&5
3636 ac_status=$?
3637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3638 test $ac_status = 0; }; }; then
3639 cross_compiling=no
3640 else
3641 if test "$cross_compiling" = maybe; then
3642 cross_compiling=yes
3643 else
3644 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3645 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3646 as_fn_error "cannot run C compiled programs.
3647 If you meant to cross compile, use \`--host'.
3648 See \`config.log' for more details." "$LINENO" 5; }
3649 fi
3650 fi
3651 fi
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3653 $as_echo "yes" >&6; }
3654
3655 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3656 ac_clean_files=$ac_clean_files_save
3657 # Check that the compiler produces executables we can run. If not, either
3658 # the compiler is broken, or we cross compile.
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3660 $as_echo_n "checking whether we are cross compiling... " >&6; }
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3662 $as_echo "$cross_compiling" >&6; }
3663
3664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3665 $as_echo_n "checking for suffix of executables... " >&6; }
3666 if { { ac_try="$ac_link"
3667 case "(($ac_try" in
3668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3669 *) ac_try_echo=$ac_try;;
3670 esac
3671 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3672 $as_echo "$ac_try_echo"; } >&5
3673 (eval "$ac_link") 2>&5
3674 ac_status=$?
3675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3676 test $ac_status = 0; }; then :
3677 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3678 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3679 # work properly (i.e., refer to `conftest.exe'), while it won't with
3680 # `rm'.
3681 for ac_file in conftest.exe conftest conftest.*; do
3682 test -f "$ac_file" || continue
3683 case $ac_file in
3684 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3685 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3686 break;;
3687 * ) break;;
3688 esac
3689 done
3690 else
3691 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3692 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3693 as_fn_error "cannot compute suffix of executables: cannot compile and link
3694 See \`config.log' for more details." "$LINENO" 5; }
3695 fi
3696 rm -f conftest$ac_cv_exeext
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3698 $as_echo "$ac_cv_exeext" >&6; }
3699
3700 rm -f conftest.$ac_ext
3701 EXEEXT=$ac_cv_exeext
3702 ac_exeext=$EXEEXT
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3704 $as_echo_n "checking for suffix of object files... " >&6; }
3705 if test "${ac_cv_objext+set}" = set; then :
3706 $as_echo_n "(cached) " >&6
3707 else
3708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3709 /* end confdefs.h. */
3710
3711 int
3712 main ()
3713 {
3714
3715 ;
3716 return 0;
3717 }
3718 _ACEOF
3719 rm -f conftest.o conftest.obj
3720 if { { ac_try="$ac_compile"
3721 case "(($ac_try" in
3722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3723 *) ac_try_echo=$ac_try;;
3724 esac
3725 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3726 $as_echo "$ac_try_echo"; } >&5
3727 (eval "$ac_compile") 2>&5
3728 ac_status=$?
3729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3730 test $ac_status = 0; }; then :
3731 for ac_file in conftest.o conftest.obj conftest.*; do
3732 test -f "$ac_file" || continue;
3733 case $ac_file in
3734 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3735 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3736 break;;
3737 esac
3738 done
3739 else
3740 $as_echo "$as_me: failed program was:" >&5
3741 sed 's/^/| /' conftest.$ac_ext >&5
3742
3743 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3744 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3745 as_fn_error "cannot compute suffix of object files: cannot compile
3746 See \`config.log' for more details." "$LINENO" 5; }
3747 fi
3748 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3749 fi
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3751 $as_echo "$ac_cv_objext" >&6; }
3752 OBJEXT=$ac_cv_objext
3753 ac_objext=$OBJEXT
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3755 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3756 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3757 $as_echo_n "(cached) " >&6
3758 else
3759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3760 /* end confdefs.h. */
3761
3762 int
3763 main ()
3764 {
3765 #ifndef __GNUC__
3766 choke me
3767 #endif
3768
3769 ;
3770 return 0;
3771 }
3772 _ACEOF
3773 if ac_fn_c_try_compile "$LINENO"; then :
3774 ac_compiler_gnu=yes
3775 else
3776 ac_compiler_gnu=no
3777 fi
3778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3779 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3780
3781 fi
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3783 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3784 if test $ac_compiler_gnu = yes; then
3785 GCC=yes
3786 else
3787 GCC=
3788 fi
3789 ac_test_CFLAGS=${CFLAGS+set}
3790 ac_save_CFLAGS=$CFLAGS
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3792 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3793 if test "${ac_cv_prog_cc_g+set}" = set; then :
3794 $as_echo_n "(cached) " >&6
3795 else
3796 ac_save_c_werror_flag=$ac_c_werror_flag
3797 ac_c_werror_flag=yes
3798 ac_cv_prog_cc_g=no
3799 CFLAGS="-g"
3800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3801 /* end confdefs.h. */
3802
3803 int
3804 main ()
3805 {
3806
3807 ;
3808 return 0;
3809 }
3810 _ACEOF
3811 if ac_fn_c_try_compile "$LINENO"; then :
3812 ac_cv_prog_cc_g=yes
3813 else
3814 CFLAGS=""
3815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3816 /* end confdefs.h. */
3817
3818 int
3819 main ()
3820 {
3821
3822 ;
3823 return 0;
3824 }
3825 _ACEOF
3826 if ac_fn_c_try_compile "$LINENO"; then :
3827
3828 else
3829 ac_c_werror_flag=$ac_save_c_werror_flag
3830 CFLAGS="-g"
3831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3832 /* end confdefs.h. */
3833
3834 int
3835 main ()
3836 {
3837
3838 ;
3839 return 0;
3840 }
3841 _ACEOF
3842 if ac_fn_c_try_compile "$LINENO"; then :
3843 ac_cv_prog_cc_g=yes
3844 fi
3845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3846 fi
3847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3848 fi
3849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3850 ac_c_werror_flag=$ac_save_c_werror_flag
3851 fi
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3853 $as_echo "$ac_cv_prog_cc_g" >&6; }
3854 if test "$ac_test_CFLAGS" = set; then
3855 CFLAGS=$ac_save_CFLAGS
3856 elif test $ac_cv_prog_cc_g = yes; then
3857 if test "$GCC" = yes; then
3858 CFLAGS="-g -O2"
3859 else
3860 CFLAGS="-g"
3861 fi
3862 else
3863 if test "$GCC" = yes; then
3864 CFLAGS="-O2"
3865 else
3866 CFLAGS=
3867 fi
3868 fi
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3870 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3871 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3872 $as_echo_n "(cached) " >&6
3873 else
3874 ac_cv_prog_cc_c89=no
3875 ac_save_CC=$CC
3876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3877 /* end confdefs.h. */
3878 #include <stdarg.h>
3879 #include <stdio.h>
3880 #include <sys/types.h>
3881 #include <sys/stat.h>
3882 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3883 struct buf { int x; };
3884 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3885 static char *e (p, i)
3886 char **p;
3887 int i;
3888 {
3889 return p[i];
3890 }
3891 static char *f (char * (*g) (char **, int), char **p, ...)
3892 {
3893 char *s;
3894 va_list v;
3895 va_start (v,p);
3896 s = g (p, va_arg (v,int));
3897 va_end (v);
3898 return s;
3899 }
3900
3901 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3902 function prototypes and stuff, but not '\xHH' hex character constants.
3903 These don't provoke an error unfortunately, instead are silently treated
3904 as 'x'. The following induces an error, until -std is added to get
3905 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3906 array size at least. It's necessary to write '\x00'==0 to get something
3907 that's true only with -std. */
3908 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3909
3910 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3911 inside strings and character constants. */
3912 #define FOO(x) 'x'
3913 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3914
3915 int test (int i, double x);
3916 struct s1 {int (*f) (int a);};
3917 struct s2 {int (*f) (double a);};
3918 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3919 int argc;
3920 char **argv;
3921 int
3922 main ()
3923 {
3924 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3925 ;
3926 return 0;
3927 }
3928 _ACEOF
3929 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3930 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3931 do
3932 CC="$ac_save_CC $ac_arg"
3933 if ac_fn_c_try_compile "$LINENO"; then :
3934 ac_cv_prog_cc_c89=$ac_arg
3935 fi
3936 rm -f core conftest.err conftest.$ac_objext
3937 test "x$ac_cv_prog_cc_c89" != "xno" && break
3938 done
3939 rm -f conftest.$ac_ext
3940 CC=$ac_save_CC
3941
3942 fi
3943 # AC_CACHE_VAL
3944 case "x$ac_cv_prog_cc_c89" in
3945 x)
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3947 $as_echo "none needed" >&6; } ;;
3948 xno)
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3950 $as_echo "unsupported" >&6; } ;;
3951 *)
3952 CC="$CC $ac_cv_prog_cc_c89"
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3954 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3955 esac
3956 if test "x$ac_cv_prog_cc_c89" != xno; then :
3957
3958 fi
3959
3960 ac_ext=c
3961 ac_cpp='$CPP $CPPFLAGS'
3962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3965
3966 ac_aux_dir=
3967 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3968 for ac_t in install-sh install.sh shtool; do
3969 if test -f "$ac_dir/$ac_t"; then
3970 ac_aux_dir=$ac_dir
3971 ac_install_sh="$ac_aux_dir/$ac_t -c"
3972 break 2
3973 fi
3974 done
3975 done
3976 if test -z "$ac_aux_dir"; then
3977 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3978 fi
3979
3980 # These three variables are undocumented and unsupported,
3981 # and are intended to be withdrawn in a future Autoconf release.
3982 # They can cause serious problems if a builder's source tree is in a directory
3983 # whose full name contains unusual characters.
3984 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3985 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3986 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3987
3988
3989 # Make sure we can run config.sub.
3990 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3991 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3992
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3994 $as_echo_n "checking build system type... " >&6; }
3995 if test "${ac_cv_build+set}" = set; then :
3996 $as_echo_n "(cached) " >&6
3997 else
3998 ac_build_alias=$build_alias
3999 test "x$ac_build_alias" = x &&
4000 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4001 test "x$ac_build_alias" = x &&
4002 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4003 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4004 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4005
4006 fi
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4008 $as_echo "$ac_cv_build" >&6; }
4009 case $ac_cv_build in
4010 *-*-*) ;;
4011 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4012 esac
4013 build=$ac_cv_build
4014 ac_save_IFS=$IFS; IFS='-'
4015 set x $ac_cv_build
4016 shift
4017 build_cpu=$1
4018 build_vendor=$2
4019 shift; shift
4020 # Remember, the first character of IFS is used to create $*,
4021 # except with old shells:
4022 build_os=$*
4023 IFS=$ac_save_IFS
4024 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4025
4026
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4028 $as_echo_n "checking host system type... " >&6; }
4029 if test "${ac_cv_host+set}" = set; then :
4030 $as_echo_n "(cached) " >&6
4031 else
4032 if test "x$host_alias" = x; then
4033 ac_cv_host=$ac_cv_build
4034 else
4035 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4036 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4037 fi
4038
4039 fi
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4041 $as_echo "$ac_cv_host" >&6; }
4042 case $ac_cv_host in
4043 *-*-*) ;;
4044 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4045 esac
4046 host=$ac_cv_host
4047 ac_save_IFS=$IFS; IFS='-'
4048 set x $ac_cv_host
4049 shift
4050 host_cpu=$1
4051 host_vendor=$2
4052 shift; shift
4053 # Remember, the first character of IFS is used to create $*,
4054 # except with old shells:
4055 host_os=$*
4056 IFS=$ac_save_IFS
4057 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4058
4059
4060
4061 ac_ext=c
4062 ac_cpp='$CPP $CPPFLAGS'
4063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4067 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4068 # On Suns, sometimes $CPP names a directory.
4069 if test -n "$CPP" && test -d "$CPP"; then
4070 CPP=
4071 fi
4072 if test -z "$CPP"; then
4073 if test "${ac_cv_prog_CPP+set}" = set; then :
4074 $as_echo_n "(cached) " >&6
4075 else
4076 # Double quotes because CPP needs to be expanded
4077 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4078 do
4079 ac_preproc_ok=false
4080 for ac_c_preproc_warn_flag in '' yes
4081 do
4082 # Use a header file that comes with gcc, so configuring glibc
4083 # with a fresh cross-compiler works.
4084 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4085 # <limits.h> exists even on freestanding compilers.
4086 # On the NeXT, cc -E runs the code through the compiler's parser,
4087 # not just through cpp. "Syntax error" is here to catch this case.
4088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4089 /* end confdefs.h. */
4090 #ifdef __STDC__
4091 # include <limits.h>
4092 #else
4093 # include <assert.h>
4094 #endif
4095 Syntax error
4096 _ACEOF
4097 if ac_fn_c_try_cpp "$LINENO"; then :
4098
4099 else
4100 # Broken: fails on valid input.
4101 continue
4102 fi
4103 rm -f conftest.err conftest.$ac_ext
4104
4105 # OK, works on sane cases. Now check whether nonexistent headers
4106 # can be detected and how.
4107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4108 /* end confdefs.h. */
4109 #include <ac_nonexistent.h>
4110 _ACEOF
4111 if ac_fn_c_try_cpp "$LINENO"; then :
4112 # Broken: success on invalid input.
4113 continue
4114 else
4115 # Passes both tests.
4116 ac_preproc_ok=:
4117 break
4118 fi
4119 rm -f conftest.err conftest.$ac_ext
4120
4121 done
4122 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4123 rm -f conftest.err conftest.$ac_ext
4124 if $ac_preproc_ok; then :
4125 break
4126 fi
4127
4128 done
4129 ac_cv_prog_CPP=$CPP
4130
4131 fi
4132 CPP=$ac_cv_prog_CPP
4133 else
4134 ac_cv_prog_CPP=$CPP
4135 fi
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4137 $as_echo "$CPP" >&6; }
4138 ac_preproc_ok=false
4139 for ac_c_preproc_warn_flag in '' yes
4140 do
4141 # Use a header file that comes with gcc, so configuring glibc
4142 # with a fresh cross-compiler works.
4143 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4144 # <limits.h> exists even on freestanding compilers.
4145 # On the NeXT, cc -E runs the code through the compiler's parser,
4146 # not just through cpp. "Syntax error" is here to catch this case.
4147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4148 /* end confdefs.h. */
4149 #ifdef __STDC__
4150 # include <limits.h>
4151 #else
4152 # include <assert.h>
4153 #endif
4154 Syntax error
4155 _ACEOF
4156 if ac_fn_c_try_cpp "$LINENO"; then :
4157
4158 else
4159 # Broken: fails on valid input.
4160 continue
4161 fi
4162 rm -f conftest.err conftest.$ac_ext
4163
4164 # OK, works on sane cases. Now check whether nonexistent headers
4165 # can be detected and how.
4166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4167 /* end confdefs.h. */
4168 #include <ac_nonexistent.h>
4169 _ACEOF
4170 if ac_fn_c_try_cpp "$LINENO"; then :
4171 # Broken: success on invalid input.
4172 continue
4173 else
4174 # Passes both tests.
4175 ac_preproc_ok=:
4176 break
4177 fi
4178 rm -f conftest.err conftest.$ac_ext
4179
4180 done
4181 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4182 rm -f conftest.err conftest.$ac_ext
4183 if $ac_preproc_ok; then :
4184
4185 else
4186 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4187 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4188 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4189 See \`config.log' for more details." "$LINENO" 5; }
4190 fi
4191
4192 ac_ext=c
4193 ac_cpp='$CPP $CPPFLAGS'
4194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4197
4198
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4200 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4201 if test "${ac_cv_path_GREP+set}" = set; then :
4202 $as_echo_n "(cached) " >&6
4203 else
4204 if test -z "$GREP"; then
4205 ac_path_GREP_found=false
4206 # Loop through the user's path and test for each of PROGNAME-LIST
4207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4208 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4209 do
4210 IFS=$as_save_IFS
4211 test -z "$as_dir" && as_dir=.
4212 for ac_prog in grep ggrep; do
4213 for ac_exec_ext in '' $ac_executable_extensions; do
4214 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4215 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4216 # Check for GNU ac_path_GREP and select it if it is found.
4217 # Check for GNU $ac_path_GREP
4218 case `"$ac_path_GREP" --version 2>&1` in
4219 *GNU*)
4220 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4221 *)
4222 ac_count=0
4223 $as_echo_n 0123456789 >"conftest.in"
4224 while :
4225 do
4226 cat "conftest.in" "conftest.in" >"conftest.tmp"
4227 mv "conftest.tmp" "conftest.in"
4228 cp "conftest.in" "conftest.nl"
4229 $as_echo 'GREP' >> "conftest.nl"
4230 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4231 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4232 as_fn_arith $ac_count + 1 && ac_count=$as_val
4233 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4234 # Best one so far, save it but keep looking for a better one
4235 ac_cv_path_GREP="$ac_path_GREP"
4236 ac_path_GREP_max=$ac_count
4237 fi
4238 # 10*(2^10) chars as input seems more than enough
4239 test $ac_count -gt 10 && break
4240 done
4241 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4242 esac
4243
4244 $ac_path_GREP_found && break 3
4245 done
4246 done
4247 done
4248 IFS=$as_save_IFS
4249 if test -z "$ac_cv_path_GREP"; then
4250 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4251 fi
4252 else
4253 ac_cv_path_GREP=$GREP
4254 fi
4255
4256 fi
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4258 $as_echo "$ac_cv_path_GREP" >&6; }
4259 GREP="$ac_cv_path_GREP"
4260
4261
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4263 $as_echo_n "checking for egrep... " >&6; }
4264 if test "${ac_cv_path_EGREP+set}" = set; then :
4265 $as_echo_n "(cached) " >&6
4266 else
4267 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4268 then ac_cv_path_EGREP="$GREP -E"
4269 else
4270 if test -z "$EGREP"; then
4271 ac_path_EGREP_found=false
4272 # Loop through the user's path and test for each of PROGNAME-LIST
4273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4274 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4275 do
4276 IFS=$as_save_IFS
4277 test -z "$as_dir" && as_dir=.
4278 for ac_prog in egrep; do
4279 for ac_exec_ext in '' $ac_executable_extensions; do
4280 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4281 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4282 # Check for GNU ac_path_EGREP and select it if it is found.
4283 # Check for GNU $ac_path_EGREP
4284 case `"$ac_path_EGREP" --version 2>&1` in
4285 *GNU*)
4286 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4287 *)
4288 ac_count=0
4289 $as_echo_n 0123456789 >"conftest.in"
4290 while :
4291 do
4292 cat "conftest.in" "conftest.in" >"conftest.tmp"
4293 mv "conftest.tmp" "conftest.in"
4294 cp "conftest.in" "conftest.nl"
4295 $as_echo 'EGREP' >> "conftest.nl"
4296 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4297 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4298 as_fn_arith $ac_count + 1 && ac_count=$as_val
4299 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4300 # Best one so far, save it but keep looking for a better one
4301 ac_cv_path_EGREP="$ac_path_EGREP"
4302 ac_path_EGREP_max=$ac_count
4303 fi
4304 # 10*(2^10) chars as input seems more than enough
4305 test $ac_count -gt 10 && break
4306 done
4307 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4308 esac
4309
4310 $ac_path_EGREP_found && break 3
4311 done
4312 done
4313 done
4314 IFS=$as_save_IFS
4315 if test -z "$ac_cv_path_EGREP"; then
4316 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4317 fi
4318 else
4319 ac_cv_path_EGREP=$EGREP
4320 fi
4321
4322 fi
4323 fi
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4325 $as_echo "$ac_cv_path_EGREP" >&6; }
4326 EGREP="$ac_cv_path_EGREP"
4327
4328
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4330 $as_echo_n "checking for ANSI C header files... " >&6; }
4331 if test "${ac_cv_header_stdc+set}" = set; then :
4332 $as_echo_n "(cached) " >&6
4333 else
4334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4335 /* end confdefs.h. */
4336 #include <stdlib.h>
4337 #include <stdarg.h>
4338 #include <string.h>
4339 #include <float.h>
4340
4341 int
4342 main ()
4343 {
4344
4345 ;
4346 return 0;
4347 }
4348 _ACEOF
4349 if ac_fn_c_try_compile "$LINENO"; then :
4350 ac_cv_header_stdc=yes
4351 else
4352 ac_cv_header_stdc=no
4353 fi
4354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4355
4356 if test $ac_cv_header_stdc = yes; then
4357 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4359 /* end confdefs.h. */
4360 #include <string.h>
4361
4362 _ACEOF
4363 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4364 $EGREP "memchr" >/dev/null 2>&1; then :
4365
4366 else
4367 ac_cv_header_stdc=no
4368 fi
4369 rm -f conftest*
4370
4371 fi
4372
4373 if test $ac_cv_header_stdc = yes; then
4374 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4376 /* end confdefs.h. */
4377 #include <stdlib.h>
4378
4379 _ACEOF
4380 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4381 $EGREP "free" >/dev/null 2>&1; then :
4382
4383 else
4384 ac_cv_header_stdc=no
4385 fi
4386 rm -f conftest*
4387
4388 fi
4389
4390 if test $ac_cv_header_stdc = yes; then
4391 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4392 if test "$cross_compiling" = yes; then :
4393 :
4394 else
4395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4396 /* end confdefs.h. */
4397 #include <ctype.h>
4398 #include <stdlib.h>
4399 #if ((' ' & 0x0FF) == 0x020)
4400 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4401 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4402 #else
4403 # define ISLOWER(c) \
4404 (('a' <= (c) && (c) <= 'i') \
4405 || ('j' <= (c) && (c) <= 'r') \
4406 || ('s' <= (c) && (c) <= 'z'))
4407 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4408 #endif
4409
4410 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4411 int
4412 main ()
4413 {
4414 int i;
4415 for (i = 0; i < 256; i++)
4416 if (XOR (islower (i), ISLOWER (i))
4417 || toupper (i) != TOUPPER (i))
4418 return 2;
4419 return 0;
4420 }
4421 _ACEOF
4422 if ac_fn_c_try_run "$LINENO"; then :
4423
4424 else
4425 ac_cv_header_stdc=no
4426 fi
4427 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4428 conftest.$ac_objext conftest.beam conftest.$ac_ext
4429 fi
4430
4431 fi
4432 fi
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4434 $as_echo "$ac_cv_header_stdc" >&6; }
4435 if test $ac_cv_header_stdc = yes; then
4436
4437 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4438
4439 fi
4440
4441 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4442 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4443 inttypes.h stdint.h unistd.h
4444 do :
4445 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4446 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4447 "
4448 eval as_val=\$$as_ac_Header
4449 if test "x$as_val" = x""yes; then :
4450 cat >>confdefs.h <<_ACEOF
4451 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4452 _ACEOF
4453
4454 fi
4455
4456 done
4457
4458
4459
4460
4461
4462 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4463 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4464 MINIX=yes
4465 else
4466 MINIX=
4467 fi
4468
4469
4470 if test "$MINIX" = yes; then
4471
4472 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4473
4474
4475 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4476
4477
4478 $as_echo "#define _MINIX 1" >>confdefs.h
4479
4480 fi
4481
4482 case "$host_os" in
4483 hpux*)
4484
4485 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
4486
4487 ;;
4488 esac
4489
4490
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4492 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4493 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4494 $as_echo_n "(cached) " >&6
4495 else
4496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4497 /* end confdefs.h. */
4498
4499 # define __EXTENSIONS__ 1
4500 $ac_includes_default
4501 int
4502 main ()
4503 {
4504
4505 ;
4506 return 0;
4507 }
4508 _ACEOF
4509 if ac_fn_c_try_compile "$LINENO"; then :
4510 ac_cv_safe_to_define___extensions__=yes
4511 else
4512 ac_cv_safe_to_define___extensions__=no
4513 fi
4514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4515 fi
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4517 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4518 test $ac_cv_safe_to_define___extensions__ = yes &&
4519 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4520
4521 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4522
4523 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4524
4525 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4526
4527 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4528
4529 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4530
4531
4532
4533
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
4535 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
4536 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
4537 $as_echo_n "(cached) " >&6
4538 else
4539
4540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4541 /* end confdefs.h. */
4542
4543 #ifdef __ACK__
4544 Amsterdam
4545 #endif
4546
4547 _ACEOF
4548 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4549 $EGREP "Amsterdam" >/dev/null 2>&1; then :
4550 gl_cv_c_amsterdam_compiler=yes
4551 else
4552 gl_cv_c_amsterdam_compiler=no
4553 fi
4554 rm -f conftest*
4555
4556
4557 fi
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
4559 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
4560 if test -z "$AR"; then
4561 if test $gl_cv_c_amsterdam_compiler = yes; then
4562 AR='cc -c.a'
4563 if test -z "$ARFLAGS"; then
4564 ARFLAGS='-o'
4565 fi
4566 else
4567 if test -n "$ac_tool_prefix"; then
4568 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4569 set dummy ${ac_tool_prefix}ar; ac_word=$2
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4571 $as_echo_n "checking for $ac_word... " >&6; }
4572 if test "${ac_cv_prog_AR+set}" = set; then :
4573 $as_echo_n "(cached) " >&6
4574 else
4575 if test -n "$AR"; then
4576 ac_cv_prog_AR="$AR" # Let the user override the test.
4577 else
4578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4579 for as_dir in $PATH
4580 do
4581 IFS=$as_save_IFS
4582 test -z "$as_dir" && as_dir=.
4583 for ac_exec_ext in '' $ac_executable_extensions; do
4584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4585 ac_cv_prog_AR="${ac_tool_prefix}ar"
4586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4587 break 2
4588 fi
4589 done
4590 done
4591 IFS=$as_save_IFS
4592
4593 fi
4594 fi
4595 AR=$ac_cv_prog_AR
4596 if test -n "$AR"; then
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4598 $as_echo "$AR" >&6; }
4599 else
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4601 $as_echo "no" >&6; }
4602 fi
4603
4604
4605 fi
4606 if test -z "$ac_cv_prog_AR"; then
4607 ac_ct_AR=$AR
4608 # Extract the first word of "ar", so it can be a program name with args.
4609 set dummy ar; ac_word=$2
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4611 $as_echo_n "checking for $ac_word... " >&6; }
4612 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4613 $as_echo_n "(cached) " >&6
4614 else
4615 if test -n "$ac_ct_AR"; then
4616 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4617 else
4618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4619 for as_dir in $PATH
4620 do
4621 IFS=$as_save_IFS
4622 test -z "$as_dir" && as_dir=.
4623 for ac_exec_ext in '' $ac_executable_extensions; do
4624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4625 ac_cv_prog_ac_ct_AR="ar"
4626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4627 break 2
4628 fi
4629 done
4630 done
4631 IFS=$as_save_IFS
4632
4633 fi
4634 fi
4635 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4636 if test -n "$ac_ct_AR"; then
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4638 $as_echo "$ac_ct_AR" >&6; }
4639 else
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4641 $as_echo "no" >&6; }
4642 fi
4643
4644 if test "x$ac_ct_AR" = x; then
4645 AR="ar"
4646 else
4647 case $cross_compiling:$ac_tool_warned in
4648 yes:)
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4650 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4651 ac_tool_warned=yes ;;
4652 esac
4653 AR=$ac_ct_AR
4654 fi
4655 else
4656 AR="$ac_cv_prog_AR"
4657 fi
4658
4659 if test -z "$ARFLAGS"; then
4660 ARFLAGS='cru'
4661 fi
4662 fi
4663 else
4664 if test -z "$ARFLAGS"; then
4665 ARFLAGS='cru'
4666 fi
4667 fi
4668
4669
4670 if test -z "$RANLIB"; then
4671 if test $gl_cv_c_amsterdam_compiler = yes; then
4672 RANLIB=':'
4673 else
4674 if test -n "$ac_tool_prefix"; then
4675 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4676 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4678 $as_echo_n "checking for $ac_word... " >&6; }
4679 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4680 $as_echo_n "(cached) " >&6
4681 else
4682 if test -n "$RANLIB"; then
4683 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4684 else
4685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4686 for as_dir in $PATH
4687 do
4688 IFS=$as_save_IFS
4689 test -z "$as_dir" && as_dir=.
4690 for ac_exec_ext in '' $ac_executable_extensions; do
4691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4692 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4694 break 2
4695 fi
4696 done
4697 done
4698 IFS=$as_save_IFS
4699
4700 fi
4701 fi
4702 RANLIB=$ac_cv_prog_RANLIB
4703 if test -n "$RANLIB"; then
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4705 $as_echo "$RANLIB" >&6; }
4706 else
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4708 $as_echo "no" >&6; }
4709 fi
4710
4711
4712 fi
4713 if test -z "$ac_cv_prog_RANLIB"; then
4714 ac_ct_RANLIB=$RANLIB
4715 # Extract the first word of "ranlib", so it can be a program name with args.
4716 set dummy ranlib; ac_word=$2
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4718 $as_echo_n "checking for $ac_word... " >&6; }
4719 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4720 $as_echo_n "(cached) " >&6
4721 else
4722 if test -n "$ac_ct_RANLIB"; then
4723 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4724 else
4725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4726 for as_dir in $PATH
4727 do
4728 IFS=$as_save_IFS
4729 test -z "$as_dir" && as_dir=.
4730 for ac_exec_ext in '' $ac_executable_extensions; do
4731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4732 ac_cv_prog_ac_ct_RANLIB="ranlib"
4733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4734 break 2
4735 fi
4736 done
4737 done
4738 IFS=$as_save_IFS
4739
4740 fi
4741 fi
4742 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4743 if test -n "$ac_ct_RANLIB"; then
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4745 $as_echo "$ac_ct_RANLIB" >&6; }
4746 else
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4748 $as_echo "no" >&6; }
4749 fi
4750
4751 if test "x$ac_ct_RANLIB" = x; then
4752 RANLIB=":"
4753 else
4754 case $cross_compiling:$ac_tool_warned in
4755 yes:)
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4757 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4758 ac_tool_warned=yes ;;
4759 esac
4760 RANLIB=$ac_ct_RANLIB
4761 fi
4762 else
4763 RANLIB="$ac_cv_prog_RANLIB"
4764 fi
4765
4766 fi
4767 fi
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779 # IEEE behaviour is the default on all CPUs except Alpha and SH
4780 # (according to the test results of Bruno Haible's ieeefp/fenv_default.m4
4781 # and the GCC 4.1.2 manual).
4782 case "$host_cpu" in
4783 alpha*)
4784 # On Alpha systems, a compiler option provides the behaviour.
4785 # See the ieee(3) manual page, also available at
4786 # <http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V51B_HTML/MAN/MAN3/0600____.HTM>
4787 if test -n "$GCC"; then
4788 # GCC has the option -mieee.
4789 # For full IEEE compliance (rarely needed), use option -mieee-with-inexact.
4790 CPPFLAGS="$CPPFLAGS -mieee"
4791 else
4792 # Compaq (ex-DEC) C has the option -ieee, equivalent to -ieee_with_no_inexact.
4793 # For full IEEE compliance (rarely needed), use option -ieee_with_inexact.
4794 CPPFLAGS="$CPPFLAGS -ieee"
4795 fi
4796 ;;
4797 sh*)
4798 if test -n "$GCC"; then
4799 # GCC has the option -mieee.
4800 CPPFLAGS="$CPPFLAGS -mieee"
4801 fi
4802 ;;
4803 esac
4804
4805 # Check whether --enable-largefile was given.
4806 if test "${enable_largefile+set}" = set; then :
4807 enableval=$enable_largefile;
4808 fi
4809
4810 if test "$enable_largefile" != no; then
4811
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4813 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4814 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4815 $as_echo_n "(cached) " >&6
4816 else
4817 ac_cv_sys_largefile_CC=no
4818 if test "$GCC" != yes; then
4819 ac_save_CC=$CC
4820 while :; do
4821 # IRIX 6.2 and later do not support large files by default,
4822 # so use the C compiler's -n32 option if that helps.
4823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4824 /* end confdefs.h. */
4825 #include <sys/types.h>
4826 /* Check that off_t can represent 2**63 - 1 correctly.
4827 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4828 since some C++ compilers masquerading as C compilers
4829 incorrectly reject 9223372036854775807. */
4830 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4831 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4832 && LARGE_OFF_T % 2147483647 == 1)
4833 ? 1 : -1];
4834 int
4835 main ()
4836 {
4837
4838 ;
4839 return 0;
4840 }
4841 _ACEOF
4842 if ac_fn_c_try_compile "$LINENO"; then :
4843 break
4844 fi
4845 rm -f core conftest.err conftest.$ac_objext
4846 CC="$CC -n32"
4847 if ac_fn_c_try_compile "$LINENO"; then :
4848 ac_cv_sys_largefile_CC=' -n32'; break
4849 fi
4850 rm -f core conftest.err conftest.$ac_objext
4851 break
4852 done
4853 CC=$ac_save_CC
4854 rm -f conftest.$ac_ext
4855 fi
4856 fi
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4858 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4859 if test "$ac_cv_sys_largefile_CC" != no; then
4860 CC=$CC$ac_cv_sys_largefile_CC
4861 fi
4862
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4864 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4865 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4866 $as_echo_n "(cached) " >&6
4867 else
4868 while :; do
4869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4870 /* end confdefs.h. */
4871 #include <sys/types.h>
4872 /* Check that off_t can represent 2**63 - 1 correctly.
4873 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4874 since some C++ compilers masquerading as C compilers
4875 incorrectly reject 9223372036854775807. */
4876 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4877 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4878 && LARGE_OFF_T % 2147483647 == 1)
4879 ? 1 : -1];
4880 int
4881 main ()
4882 {
4883
4884 ;
4885 return 0;
4886 }
4887 _ACEOF
4888 if ac_fn_c_try_compile "$LINENO"; then :
4889 ac_cv_sys_file_offset_bits=no; break
4890 fi
4891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4893 /* end confdefs.h. */
4894 #define _FILE_OFFSET_BITS 64
4895 #include <sys/types.h>
4896 /* Check that off_t can represent 2**63 - 1 correctly.
4897 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4898 since some C++ compilers masquerading as C compilers
4899 incorrectly reject 9223372036854775807. */
4900 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4901 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4902 && LARGE_OFF_T % 2147483647 == 1)
4903 ? 1 : -1];
4904 int
4905 main ()
4906 {
4907
4908 ;
4909 return 0;
4910 }
4911 _ACEOF
4912 if ac_fn_c_try_compile "$LINENO"; then :
4913 ac_cv_sys_file_offset_bits=64; break
4914 fi
4915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4916 ac_cv_sys_file_offset_bits=unknown
4917 break
4918 done
4919 fi
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4921 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4922 case $ac_cv_sys_file_offset_bits in #(
4923 no | unknown) ;;
4924 *)
4925 cat >>confdefs.h <<_ACEOF
4926 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4927 _ACEOF
4928 ;;
4929 esac
4930 rm -rf conftest*
4931 if test $ac_cv_sys_file_offset_bits = unknown; then
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4933 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4934 if test "${ac_cv_sys_large_files+set}" = set; then :
4935 $as_echo_n "(cached) " >&6
4936 else
4937 while :; do
4938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4939 /* end confdefs.h. */
4940 #include <sys/types.h>
4941 /* Check that off_t can represent 2**63 - 1 correctly.
4942 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4943 since some C++ compilers masquerading as C compilers
4944 incorrectly reject 9223372036854775807. */
4945 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4946 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4947 && LARGE_OFF_T % 2147483647 == 1)
4948 ? 1 : -1];
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_sys_large_files=no; break
4959 fi
4960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4962 /* end confdefs.h. */
4963 #define _LARGE_FILES 1
4964 #include <sys/types.h>
4965 /* Check that off_t can represent 2**63 - 1 correctly.
4966 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4967 since some C++ compilers masquerading as C compilers
4968 incorrectly reject 9223372036854775807. */
4969 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4970 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4971 && LARGE_OFF_T % 2147483647 == 1)
4972 ? 1 : -1];
4973 int
4974 main ()
4975 {
4976
4977 ;
4978 return 0;
4979 }
4980 _ACEOF
4981 if ac_fn_c_try_compile "$LINENO"; then :
4982 ac_cv_sys_large_files=1; break
4983 fi
4984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4985 ac_cv_sys_large_files=unknown
4986 break
4987 done
4988 fi
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4990 $as_echo "$ac_cv_sys_large_files" >&6; }
4991 case $ac_cv_sys_large_files in #(
4992 no | unknown) ;;
4993 *)
4994 cat >>confdefs.h <<_ACEOF
4995 #define _LARGE_FILES $ac_cv_sys_large_files
4996 _ACEOF
4997 ;;
4998 esac
4999 rm -rf conftest*
5000 fi
5001
5002
5003 fi
5004
5005
5006
5007 # Code from module alloca:
5008 # Code from module alloca-opt:
5009 # Code from module configmake:
5010 # Code from module dirent:
5011 # Code from module dirfd:
5012 # Code from module dosname:
5013 # Code from module errno:
5014 # Code from module extensions:
5015
5016 # Code from module extern-inline:
5017 # Code from module float:
5018 # Code from module fnmatch:
5019 # Code from module fnmatch-gnu:
5020 # Code from module fpieee:
5021
5022 # Code from module fpucw:
5023 # Code from module frexp:
5024 # Code from module frexpl:
5025 # Code from module include_next:
5026 # Code from module inttypes:
5027 # Code from module inttypes-incomplete:
5028 # Code from module isnand-nolibm:
5029 # Code from module isnanl-nolibm:
5030 # Code from module largefile:
5031
5032 # Code from module localcharset:
5033 # Code from module math:
5034 # Code from module mbrtowc:
5035 # Code from module mbsinit:
5036 # Code from module mbsrtowcs:
5037 # Code from module memchr:
5038 # Code from module memmem:
5039 # Code from module memmem-simple:
5040 # Code from module multiarch:
5041 # Code from module pathmax:
5042 # Code from module readlink:
5043 # Code from module snippet/arg-nonnull:
5044 # Code from module snippet/c++defs:
5045 # Code from module snippet/warn-on-use:
5046 # Code from module ssize_t:
5047 # Code from module stat:
5048 # Code from module stdbool:
5049 # Code from module stddef:
5050 # Code from module stdint:
5051 # Code from module streq:
5052 # Code from module string:
5053 # Code from module strnlen1:
5054 # Code from module strstr:
5055 # Code from module strstr-simple:
5056 # Code from module sys_stat:
5057 # Code from module sys_types:
5058 # Code from module time:
5059 # Code from module unistd:
5060 # Code from module update-copyright:
5061 # Code from module verify:
5062 # Code from module wchar:
5063 # Code from module wctype-h:
5064
5065 ac_ext=c
5066 ac_cpp='$CPP $CPPFLAGS'
5067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5070 if test -n "$ac_tool_prefix"; then
5071 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5072 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5074 $as_echo_n "checking for $ac_word... " >&6; }
5075 if test "${ac_cv_prog_CC+set}" = set; then :
5076 $as_echo_n "(cached) " >&6
5077 else
5078 if test -n "$CC"; then
5079 ac_cv_prog_CC="$CC" # Let the user override the test.
5080 else
5081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5082 for as_dir in $PATH
5083 do
5084 IFS=$as_save_IFS
5085 test -z "$as_dir" && as_dir=.
5086 for ac_exec_ext in '' $ac_executable_extensions; do
5087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5088 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5090 break 2
5091 fi
5092 done
5093 done
5094 IFS=$as_save_IFS
5095
5096 fi
5097 fi
5098 CC=$ac_cv_prog_CC
5099 if test -n "$CC"; then
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5101 $as_echo "$CC" >&6; }
5102 else
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5104 $as_echo "no" >&6; }
5105 fi
5106
5107
5108 fi
5109 if test -z "$ac_cv_prog_CC"; then
5110 ac_ct_CC=$CC
5111 # Extract the first word of "gcc", so it can be a program name with args.
5112 set dummy gcc; ac_word=$2
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5114 $as_echo_n "checking for $ac_word... " >&6; }
5115 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5116 $as_echo_n "(cached) " >&6
5117 else
5118 if test -n "$ac_ct_CC"; then
5119 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5120 else
5121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5122 for as_dir in $PATH
5123 do
5124 IFS=$as_save_IFS
5125 test -z "$as_dir" && as_dir=.
5126 for ac_exec_ext in '' $ac_executable_extensions; do
5127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5128 ac_cv_prog_ac_ct_CC="gcc"
5129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5130 break 2
5131 fi
5132 done
5133 done
5134 IFS=$as_save_IFS
5135
5136 fi
5137 fi
5138 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5139 if test -n "$ac_ct_CC"; then
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5141 $as_echo "$ac_ct_CC" >&6; }
5142 else
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5144 $as_echo "no" >&6; }
5145 fi
5146
5147 if test "x$ac_ct_CC" = x; then
5148 CC=""
5149 else
5150 case $cross_compiling:$ac_tool_warned in
5151 yes:)
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5153 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5154 ac_tool_warned=yes ;;
5155 esac
5156 CC=$ac_ct_CC
5157 fi
5158 else
5159 CC="$ac_cv_prog_CC"
5160 fi
5161
5162 if test -z "$CC"; then
5163 if test -n "$ac_tool_prefix"; then
5164 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5165 set dummy ${ac_tool_prefix}cc; ac_word=$2
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5167 $as_echo_n "checking for $ac_word... " >&6; }
5168 if test "${ac_cv_prog_CC+set}" = set; then :
5169 $as_echo_n "(cached) " >&6
5170 else
5171 if test -n "$CC"; then
5172 ac_cv_prog_CC="$CC" # Let the user override the test.
5173 else
5174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5175 for as_dir in $PATH
5176 do
5177 IFS=$as_save_IFS
5178 test -z "$as_dir" && as_dir=.
5179 for ac_exec_ext in '' $ac_executable_extensions; do
5180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5181 ac_cv_prog_CC="${ac_tool_prefix}cc"
5182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5183 break 2
5184 fi
5185 done
5186 done
5187 IFS=$as_save_IFS
5188
5189 fi
5190 fi
5191 CC=$ac_cv_prog_CC
5192 if test -n "$CC"; then
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5194 $as_echo "$CC" >&6; }
5195 else
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5197 $as_echo "no" >&6; }
5198 fi
5199
5200
5201 fi
5202 fi
5203 if test -z "$CC"; then
5204 # Extract the first word of "cc", so it can be a program name with args.
5205 set dummy cc; ac_word=$2
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5207 $as_echo_n "checking for $ac_word... " >&6; }
5208 if test "${ac_cv_prog_CC+set}" = set; then :
5209 $as_echo_n "(cached) " >&6
5210 else
5211 if test -n "$CC"; then
5212 ac_cv_prog_CC="$CC" # Let the user override the test.
5213 else
5214 ac_prog_rejected=no
5215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5216 for as_dir in $PATH
5217 do
5218 IFS=$as_save_IFS
5219 test -z "$as_dir" && as_dir=.
5220 for ac_exec_ext in '' $ac_executable_extensions; do
5221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5222 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5223 ac_prog_rejected=yes
5224 continue
5225 fi
5226 ac_cv_prog_CC="cc"
5227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5228 break 2
5229 fi
5230 done
5231 done
5232 IFS=$as_save_IFS
5233
5234 if test $ac_prog_rejected = yes; then
5235 # We found a bogon in the path, so make sure we never use it.
5236 set dummy $ac_cv_prog_CC
5237 shift
5238 if test $# != 0; then
5239 # We chose a different compiler from the bogus one.
5240 # However, it has the same basename, so the bogon will be chosen
5241 # first if we set CC to just the basename; use the full file name.
5242 shift
5243 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5244 fi
5245 fi
5246 fi
5247 fi
5248 CC=$ac_cv_prog_CC
5249 if test -n "$CC"; then
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5251 $as_echo "$CC" >&6; }
5252 else
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5254 $as_echo "no" >&6; }
5255 fi
5256
5257
5258 fi
5259 if test -z "$CC"; then
5260 if test -n "$ac_tool_prefix"; then
5261 for ac_prog in cl.exe
5262 do
5263 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5264 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5266 $as_echo_n "checking for $ac_word... " >&6; }
5267 if test "${ac_cv_prog_CC+set}" = set; then :
5268 $as_echo_n "(cached) " >&6
5269 else
5270 if test -n "$CC"; then
5271 ac_cv_prog_CC="$CC" # Let the user override the test.
5272 else
5273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5274 for as_dir in $PATH
5275 do
5276 IFS=$as_save_IFS
5277 test -z "$as_dir" && as_dir=.
5278 for ac_exec_ext in '' $ac_executable_extensions; do
5279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5280 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5282 break 2
5283 fi
5284 done
5285 done
5286 IFS=$as_save_IFS
5287
5288 fi
5289 fi
5290 CC=$ac_cv_prog_CC
5291 if test -n "$CC"; then
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5293 $as_echo "$CC" >&6; }
5294 else
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5296 $as_echo "no" >&6; }
5297 fi
5298
5299
5300 test -n "$CC" && break
5301 done
5302 fi
5303 if test -z "$CC"; then
5304 ac_ct_CC=$CC
5305 for ac_prog in cl.exe
5306 do
5307 # Extract the first word of "$ac_prog", so it can be a program name with args.
5308 set dummy $ac_prog; ac_word=$2
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5310 $as_echo_n "checking for $ac_word... " >&6; }
5311 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5312 $as_echo_n "(cached) " >&6
5313 else
5314 if test -n "$ac_ct_CC"; then
5315 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5316 else
5317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5318 for as_dir in $PATH
5319 do
5320 IFS=$as_save_IFS
5321 test -z "$as_dir" && as_dir=.
5322 for ac_exec_ext in '' $ac_executable_extensions; do
5323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5324 ac_cv_prog_ac_ct_CC="$ac_prog"
5325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5326 break 2
5327 fi
5328 done
5329 done
5330 IFS=$as_save_IFS
5331
5332 fi
5333 fi
5334 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5335 if test -n "$ac_ct_CC"; then
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5337 $as_echo "$ac_ct_CC" >&6; }
5338 else
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5340 $as_echo "no" >&6; }
5341 fi
5342
5343
5344 test -n "$ac_ct_CC" && break
5345 done
5346
5347 if test "x$ac_ct_CC" = x; then
5348 CC=""
5349 else
5350 case $cross_compiling:$ac_tool_warned in
5351 yes:)
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5353 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5354 ac_tool_warned=yes ;;
5355 esac
5356 CC=$ac_ct_CC
5357 fi
5358 fi
5359
5360 fi
5361
5362
5363 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5364 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5365 as_fn_error "no acceptable C compiler found in \$PATH
5366 See \`config.log' for more details." "$LINENO" 5; }
5367
5368 # Provide some information about the compiler.
5369 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5370 set X $ac_compile
5371 ac_compiler=$2
5372 for ac_option in --version -v -V -qversion; do
5373 { { ac_try="$ac_compiler $ac_option >&5"
5374 case "(($ac_try" in
5375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5376 *) ac_try_echo=$ac_try;;
5377 esac
5378 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5379 $as_echo "$ac_try_echo"; } >&5
5380 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5381 ac_status=$?
5382 if test -s conftest.err; then
5383 sed '10a\
5384 ... rest of stderr output deleted ...
5385 10q' conftest.err >conftest.er1
5386 cat conftest.er1 >&5
5387 rm -f conftest.er1 conftest.err
5388 fi
5389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5390 test $ac_status = 0; }
5391 done
5392
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5394 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5395 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5396 $as_echo_n "(cached) " >&6
5397 else
5398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5399 /* end confdefs.h. */
5400
5401 int
5402 main ()
5403 {
5404 #ifndef __GNUC__
5405 choke me
5406 #endif
5407
5408 ;
5409 return 0;
5410 }
5411 _ACEOF
5412 if ac_fn_c_try_compile "$LINENO"; then :
5413 ac_compiler_gnu=yes
5414 else
5415 ac_compiler_gnu=no
5416 fi
5417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5418 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5419
5420 fi
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5422 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5423 if test $ac_compiler_gnu = yes; then
5424 GCC=yes
5425 else
5426 GCC=
5427 fi
5428 ac_test_CFLAGS=${CFLAGS+set}
5429 ac_save_CFLAGS=$CFLAGS
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5431 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5432 if test "${ac_cv_prog_cc_g+set}" = set; then :
5433 $as_echo_n "(cached) " >&6
5434 else
5435 ac_save_c_werror_flag=$ac_c_werror_flag
5436 ac_c_werror_flag=yes
5437 ac_cv_prog_cc_g=no
5438 CFLAGS="-g"
5439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5440 /* end confdefs.h. */
5441
5442 int
5443 main ()
5444 {
5445
5446 ;
5447 return 0;
5448 }
5449 _ACEOF
5450 if ac_fn_c_try_compile "$LINENO"; then :
5451 ac_cv_prog_cc_g=yes
5452 else
5453 CFLAGS=""
5454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5455 /* end confdefs.h. */
5456
5457 int
5458 main ()
5459 {
5460
5461 ;
5462 return 0;
5463 }
5464 _ACEOF
5465 if ac_fn_c_try_compile "$LINENO"; then :
5466
5467 else
5468 ac_c_werror_flag=$ac_save_c_werror_flag
5469 CFLAGS="-g"
5470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5471 /* end confdefs.h. */
5472
5473 int
5474 main ()
5475 {
5476
5477 ;
5478 return 0;
5479 }
5480 _ACEOF
5481 if ac_fn_c_try_compile "$LINENO"; then :
5482 ac_cv_prog_cc_g=yes
5483 fi
5484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5485 fi
5486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5487 fi
5488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5489 ac_c_werror_flag=$ac_save_c_werror_flag
5490 fi
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5492 $as_echo "$ac_cv_prog_cc_g" >&6; }
5493 if test "$ac_test_CFLAGS" = set; then
5494 CFLAGS=$ac_save_CFLAGS
5495 elif test $ac_cv_prog_cc_g = yes; then
5496 if test "$GCC" = yes; then
5497 CFLAGS="-g -O2"
5498 else
5499 CFLAGS="-g"
5500 fi
5501 else
5502 if test "$GCC" = yes; then
5503 CFLAGS="-O2"
5504 else
5505 CFLAGS=
5506 fi
5507 fi
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5509 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5510 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5511 $as_echo_n "(cached) " >&6
5512 else
5513 ac_cv_prog_cc_c89=no
5514 ac_save_CC=$CC
5515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5516 /* end confdefs.h. */
5517 #include <stdarg.h>
5518 #include <stdio.h>
5519 #include <sys/types.h>
5520 #include <sys/stat.h>
5521 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5522 struct buf { int x; };
5523 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5524 static char *e (p, i)
5525 char **p;
5526 int i;
5527 {
5528 return p[i];
5529 }
5530 static char *f (char * (*g) (char **, int), char **p, ...)
5531 {
5532 char *s;
5533 va_list v;
5534 va_start (v,p);
5535 s = g (p, va_arg (v,int));
5536 va_end (v);
5537 return s;
5538 }
5539
5540 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5541 function prototypes and stuff, but not '\xHH' hex character constants.
5542 These don't provoke an error unfortunately, instead are silently treated
5543 as 'x'. The following induces an error, until -std is added to get
5544 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5545 array size at least. It's necessary to write '\x00'==0 to get something
5546 that's true only with -std. */
5547 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5548
5549 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5550 inside strings and character constants. */
5551 #define FOO(x) 'x'
5552 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5553
5554 int test (int i, double x);
5555 struct s1 {int (*f) (int a);};
5556 struct s2 {int (*f) (double a);};
5557 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5558 int argc;
5559 char **argv;
5560 int
5561 main ()
5562 {
5563 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5564 ;
5565 return 0;
5566 }
5567 _ACEOF
5568 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5569 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5570 do
5571 CC="$ac_save_CC $ac_arg"
5572 if ac_fn_c_try_compile "$LINENO"; then :
5573 ac_cv_prog_cc_c89=$ac_arg
5574 fi
5575 rm -f core conftest.err conftest.$ac_objext
5576 test "x$ac_cv_prog_cc_c89" != "xno" && break
5577 done
5578 rm -f conftest.$ac_ext
5579 CC=$ac_save_CC
5580
5581 fi
5582 # AC_CACHE_VAL
5583 case "x$ac_cv_prog_cc_c89" in
5584 x)
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5586 $as_echo "none needed" >&6; } ;;
5587 xno)
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5589 $as_echo "unsupported" >&6; } ;;
5590 *)
5591 CC="$CC $ac_cv_prog_cc_c89"
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5593 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5594 esac
5595 if test "x$ac_cv_prog_cc_c89" != xno; then :
5596
5597 fi
5598
5599 ac_ext=c
5600 ac_cpp='$CPP $CPPFLAGS'
5601 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5602 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5603 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5604
5605
5606 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5607
5608
5609 ac_aux_dir=
5610 for ac_dir in ../.. "$srcdir"/../..; do
5611 for ac_t in install-sh install.sh shtool; do
5612 if test -f "$ac_dir/$ac_t"; then
5613 ac_aux_dir=$ac_dir
5614 ac_install_sh="$ac_aux_dir/$ac_t -c"
5615 break 2
5616 fi
5617 done
5618 done
5619 if test -z "$ac_aux_dir"; then
5620 as_fn_error "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5
5621 fi
5622
5623 # These three variables are undocumented and unsupported,
5624 # and are intended to be withdrawn in a future Autoconf release.
5625 # They can cause serious problems if a builder's source tree is in a directory
5626 # whose full name contains unusual characters.
5627 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5628 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5629 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5630
5631
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
5633 $as_echo_n "checking target system type... " >&6; }
5634 if test "${ac_cv_target+set}" = set; then :
5635 $as_echo_n "(cached) " >&6
5636 else
5637 if test "x$target_alias" = x; then
5638 ac_cv_target=$ac_cv_host
5639 else
5640 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
5641 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
5642 fi
5643
5644 fi
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
5646 $as_echo "$ac_cv_target" >&6; }
5647 case $ac_cv_target in
5648 *-*-*) ;;
5649 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
5650 esac
5651 target=$ac_cv_target
5652 ac_save_IFS=$IFS; IFS='-'
5653 set x $ac_cv_target
5654 shift
5655 target_cpu=$1
5656 target_vendor=$2
5657 shift; shift
5658 # Remember, the first character of IFS is used to create $*,
5659 # except with old shells:
5660 target_os=$*
5661 IFS=$ac_save_IFS
5662 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
5663
5664
5665 # The aliases save the names the user supplied, while $host etc.
5666 # will get canonicalized.
5667 test -n "$target_alias" &&
5668 test "$program_prefix$program_suffix$program_transform_name" = \
5669 NONENONEs,x,x, &&
5670 program_prefix=${target_alias}-
5671
5672
5673
5674
5675
5676
5677
5678 LIBC_FATAL_STDERR_=1
5679 export LIBC_FATAL_STDERR_
5680
5681 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5682 # for constant arguments. Useless!
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5684 $as_echo_n "checking for working alloca.h... " >&6; }
5685 if test "${ac_cv_working_alloca_h+set}" = set; then :
5686 $as_echo_n "(cached) " >&6
5687 else
5688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5689 /* end confdefs.h. */
5690 #include <alloca.h>
5691 int
5692 main ()
5693 {
5694 char *p = (char *) alloca (2 * sizeof (int));
5695 if (p) return 0;
5696 ;
5697 return 0;
5698 }
5699 _ACEOF
5700 if ac_fn_c_try_link "$LINENO"; then :
5701 ac_cv_working_alloca_h=yes
5702 else
5703 ac_cv_working_alloca_h=no
5704 fi
5705 rm -f core conftest.err conftest.$ac_objext \
5706 conftest$ac_exeext conftest.$ac_ext
5707 fi
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5709 $as_echo "$ac_cv_working_alloca_h" >&6; }
5710 if test $ac_cv_working_alloca_h = yes; then
5711
5712 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
5713
5714 fi
5715
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5717 $as_echo_n "checking for alloca... " >&6; }
5718 if test "${ac_cv_func_alloca_works+set}" = set; then :
5719 $as_echo_n "(cached) " >&6
5720 else
5721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5722 /* end confdefs.h. */
5723 #ifdef __GNUC__
5724 # define alloca __builtin_alloca
5725 #else
5726 # ifdef _MSC_VER
5727 # include <malloc.h>
5728 # define alloca _alloca
5729 # else
5730 # ifdef HAVE_ALLOCA_H
5731 # include <alloca.h>
5732 # else
5733 # ifdef _AIX
5734 #pragma alloca
5735 # else
5736 # ifndef alloca /* predefined by HP cc +Olibcalls */
5737 char *alloca ();
5738 # endif
5739 # endif
5740 # endif
5741 # endif
5742 #endif
5743
5744 int
5745 main ()
5746 {
5747 char *p = (char *) alloca (1);
5748 if (p) return 0;
5749 ;
5750 return 0;
5751 }
5752 _ACEOF
5753 if ac_fn_c_try_link "$LINENO"; then :
5754 ac_cv_func_alloca_works=yes
5755 else
5756 ac_cv_func_alloca_works=no
5757 fi
5758 rm -f core conftest.err conftest.$ac_objext \
5759 conftest$ac_exeext conftest.$ac_ext
5760 fi
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5762 $as_echo "$ac_cv_func_alloca_works" >&6; }
5763
5764 if test $ac_cv_func_alloca_works = yes; then
5765
5766 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
5767
5768 else
5769 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5770 # that cause trouble. Some versions do not even contain alloca or
5771 # contain a buggy version. If you still want to use their alloca,
5772 # use ar to extract alloca.o from them instead of compiling alloca.c.
5773
5774
5775
5776
5777
5778 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
5779
5780 $as_echo "#define C_ALLOCA 1" >>confdefs.h
5781
5782
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
5784 $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
5785 if test "${ac_cv_os_cray+set}" = set; then :
5786 $as_echo_n "(cached) " >&6
5787 else
5788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5789 /* end confdefs.h. */
5790 #if defined CRAY && ! defined CRAY2
5791 webecray
5792 #else
5793 wenotbecray
5794 #endif
5795
5796 _ACEOF
5797 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5798 $EGREP "webecray" >/dev/null 2>&1; then :
5799 ac_cv_os_cray=yes
5800 else
5801 ac_cv_os_cray=no
5802 fi
5803 rm -f conftest*
5804
5805 fi
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5807 $as_echo "$ac_cv_os_cray" >&6; }
5808 if test $ac_cv_os_cray = yes; then
5809 for ac_func in _getb67 GETB67 getb67; do
5810 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5811 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5812 eval as_val=\$$as_ac_var
5813 if test "x$as_val" = x""yes; then :
5814
5815 cat >>confdefs.h <<_ACEOF
5816 #define CRAY_STACKSEG_END $ac_func
5817 _ACEOF
5818
5819 break
5820 fi
5821
5822 done
5823 fi
5824
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5826 $as_echo_n "checking stack direction for C alloca... " >&6; }
5827 if test "${ac_cv_c_stack_direction+set}" = set; then :
5828 $as_echo_n "(cached) " >&6
5829 else
5830 if test "$cross_compiling" = yes; then :
5831 ac_cv_c_stack_direction=0
5832 else
5833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5834 /* end confdefs.h. */
5835 $ac_includes_default
5836 int
5837 find_stack_direction (int *addr, int depth)
5838 {
5839 int dir, dummy = 0;
5840 if (! addr)
5841 addr = &dummy;
5842 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
5843 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
5844 return dir + dummy;
5845 }
5846
5847 int
5848 main (int argc, char **argv)
5849 {
5850 return find_stack_direction (0, argc + !argv + 20) < 0;
5851 }
5852 _ACEOF
5853 if ac_fn_c_try_run "$LINENO"; then :
5854 ac_cv_c_stack_direction=1
5855 else
5856 ac_cv_c_stack_direction=-1
5857 fi
5858 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5859 conftest.$ac_objext conftest.beam conftest.$ac_ext
5860 fi
5861
5862 fi
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5864 $as_echo "$ac_cv_c_stack_direction" >&6; }
5865 cat >>confdefs.h <<_ACEOF
5866 #define STACK_DIRECTION $ac_cv_c_stack_direction
5867 _ACEOF
5868
5869
5870 fi
5871
5872
5873 GNULIB_CHDIR=0;
5874 GNULIB_CHOWN=0;
5875 GNULIB_CLOSE=0;
5876 GNULIB_DUP=0;
5877 GNULIB_DUP2=0;
5878 GNULIB_DUP3=0;
5879 GNULIB_ENVIRON=0;
5880 GNULIB_EUIDACCESS=0;
5881 GNULIB_FACCESSAT=0;
5882 GNULIB_FCHDIR=0;
5883 GNULIB_FCHOWNAT=0;
5884 GNULIB_FDATASYNC=0;
5885 GNULIB_FSYNC=0;
5886 GNULIB_FTRUNCATE=0;
5887 GNULIB_GETCWD=0;
5888 GNULIB_GETDOMAINNAME=0;
5889 GNULIB_GETDTABLESIZE=0;
5890 GNULIB_GETGROUPS=0;
5891 GNULIB_GETHOSTNAME=0;
5892 GNULIB_GETLOGIN=0;
5893 GNULIB_GETLOGIN_R=0;
5894 GNULIB_GETPAGESIZE=0;
5895 GNULIB_GETUSERSHELL=0;
5896 GNULIB_GROUP_MEMBER=0;
5897 GNULIB_ISATTY=0;
5898 GNULIB_LCHOWN=0;
5899 GNULIB_LINK=0;
5900 GNULIB_LINKAT=0;
5901 GNULIB_LSEEK=0;
5902 GNULIB_PIPE=0;
5903 GNULIB_PIPE2=0;
5904 GNULIB_PREAD=0;
5905 GNULIB_PWRITE=0;
5906 GNULIB_READ=0;
5907 GNULIB_READLINK=0;
5908 GNULIB_READLINKAT=0;
5909 GNULIB_RMDIR=0;
5910 GNULIB_SETHOSTNAME=0;
5911 GNULIB_SLEEP=0;
5912 GNULIB_SYMLINK=0;
5913 GNULIB_SYMLINKAT=0;
5914 GNULIB_TTYNAME_R=0;
5915 GNULIB_UNISTD_H_NONBLOCKING=0;
5916 GNULIB_UNISTD_H_SIGPIPE=0;
5917 GNULIB_UNLINK=0;
5918 GNULIB_UNLINKAT=0;
5919 GNULIB_USLEEP=0;
5920 GNULIB_WRITE=0;
5921 HAVE_CHOWN=1;
5922 HAVE_DUP2=1;
5923 HAVE_DUP3=1;
5924 HAVE_EUIDACCESS=1;
5925 HAVE_FACCESSAT=1;
5926 HAVE_FCHDIR=1;
5927 HAVE_FCHOWNAT=1;
5928 HAVE_FDATASYNC=1;
5929 HAVE_FSYNC=1;
5930 HAVE_FTRUNCATE=1;
5931 HAVE_GETDTABLESIZE=1;
5932 HAVE_GETGROUPS=1;
5933 HAVE_GETHOSTNAME=1;
5934 HAVE_GETLOGIN=1;
5935 HAVE_GETPAGESIZE=1;
5936 HAVE_GROUP_MEMBER=1;
5937 HAVE_LCHOWN=1;
5938 HAVE_LINK=1;
5939 HAVE_LINKAT=1;
5940 HAVE_PIPE=1;
5941 HAVE_PIPE2=1;
5942 HAVE_PREAD=1;
5943 HAVE_PWRITE=1;
5944 HAVE_READLINK=1;
5945 HAVE_READLINKAT=1;
5946 HAVE_SETHOSTNAME=1;
5947 HAVE_SLEEP=1;
5948 HAVE_SYMLINK=1;
5949 HAVE_SYMLINKAT=1;
5950 HAVE_UNLINKAT=1;
5951 HAVE_USLEEP=1;
5952 HAVE_DECL_ENVIRON=1;
5953 HAVE_DECL_FCHDIR=1;
5954 HAVE_DECL_FDATASYNC=1;
5955 HAVE_DECL_GETDOMAINNAME=1;
5956 HAVE_DECL_GETLOGIN_R=1;
5957 HAVE_DECL_GETPAGESIZE=1;
5958 HAVE_DECL_GETUSERSHELL=1;
5959 HAVE_DECL_SETHOSTNAME=1;
5960 HAVE_DECL_TTYNAME_R=1;
5961 HAVE_OS_H=0;
5962 HAVE_SYS_PARAM_H=0;
5963 REPLACE_CHOWN=0;
5964 REPLACE_CLOSE=0;
5965 REPLACE_DUP=0;
5966 REPLACE_DUP2=0;
5967 REPLACE_FCHOWNAT=0;
5968 REPLACE_FTRUNCATE=0;
5969 REPLACE_GETCWD=0;
5970 REPLACE_GETDOMAINNAME=0;
5971 REPLACE_GETLOGIN_R=0;
5972 REPLACE_GETGROUPS=0;
5973 REPLACE_GETPAGESIZE=0;
5974 REPLACE_ISATTY=0;
5975 REPLACE_LCHOWN=0;
5976 REPLACE_LINK=0;
5977 REPLACE_LINKAT=0;
5978 REPLACE_LSEEK=0;
5979 REPLACE_PREAD=0;
5980 REPLACE_PWRITE=0;
5981 REPLACE_READ=0;
5982 REPLACE_READLINK=0;
5983 REPLACE_RMDIR=0;
5984 REPLACE_SLEEP=0;
5985 REPLACE_SYMLINK=0;
5986 REPLACE_TTYNAME_R=0;
5987 REPLACE_UNLINK=0;
5988 REPLACE_UNLINKAT=0;
5989 REPLACE_USLEEP=0;
5990 REPLACE_WRITE=0;
5991 UNISTD_H_HAVE_WINSOCK2_H=0;
5992 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
5993
5994
5995
5996 GNULIB_OPENDIR=0;
5997 GNULIB_READDIR=0;
5998 GNULIB_REWINDDIR=0;
5999 GNULIB_CLOSEDIR=0;
6000 GNULIB_DIRFD=0;
6001 GNULIB_FDOPENDIR=0;
6002 GNULIB_SCANDIR=0;
6003 GNULIB_ALPHASORT=0;
6004 HAVE_OPENDIR=1;
6005 HAVE_READDIR=1;
6006 HAVE_REWINDDIR=1;
6007 HAVE_CLOSEDIR=1;
6008 HAVE_DECL_DIRFD=1;
6009 HAVE_DECL_FDOPENDIR=1;
6010 HAVE_FDOPENDIR=1;
6011 HAVE_SCANDIR=1;
6012 HAVE_ALPHASORT=1;
6013 REPLACE_OPENDIR=0;
6014 REPLACE_CLOSEDIR=0;
6015 REPLACE_DIRFD=0;
6016 REPLACE_FDOPENDIR=0;
6017
6018
6019
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
6021 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
6022 if test "${gl_cv_have_include_next+set}" = set; then :
6023 $as_echo_n "(cached) " >&6
6024 else
6025 rm -rf conftestd1a conftestd1b conftestd2
6026 mkdir conftestd1a conftestd1b conftestd2
6027 cat <<EOF > conftestd1a/conftest.h
6028 #define DEFINED_IN_CONFTESTD1
6029 #include_next <conftest.h>
6030 #ifdef DEFINED_IN_CONFTESTD2
6031 int foo;
6032 #else
6033 #error "include_next doesn't work"
6034 #endif
6035 EOF
6036 cat <<EOF > conftestd1b/conftest.h
6037 #define DEFINED_IN_CONFTESTD1
6038 #include <stdio.h>
6039 #include_next <conftest.h>
6040 #ifdef DEFINED_IN_CONFTESTD2
6041 int foo;
6042 #else
6043 #error "include_next doesn't work"
6044 #endif
6045 EOF
6046 cat <<EOF > conftestd2/conftest.h
6047 #ifndef DEFINED_IN_CONFTESTD1
6048 #error "include_next test doesn't work"
6049 #endif
6050 #define DEFINED_IN_CONFTESTD2
6051 EOF
6052 gl_save_CPPFLAGS="$CPPFLAGS"
6053 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
6054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6055 /* end confdefs.h. */
6056 #include <conftest.h>
6057 _ACEOF
6058 if ac_fn_c_try_compile "$LINENO"; then :
6059 gl_cv_have_include_next=yes
6060 else
6061 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
6062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6063 /* end confdefs.h. */
6064 #include <conftest.h>
6065 _ACEOF
6066 if ac_fn_c_try_compile "$LINENO"; then :
6067 gl_cv_have_include_next=buggy
6068 else
6069 gl_cv_have_include_next=no
6070 fi
6071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6072
6073 fi
6074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6075 CPPFLAGS="$gl_save_CPPFLAGS"
6076 rm -rf conftestd1a conftestd1b conftestd2
6077
6078 fi
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
6080 $as_echo "$gl_cv_have_include_next" >&6; }
6081 PRAGMA_SYSTEM_HEADER=
6082 if test $gl_cv_have_include_next = yes; then
6083 INCLUDE_NEXT=include_next
6084 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
6085 if test -n "$GCC"; then
6086 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
6087 fi
6088 else
6089 if test $gl_cv_have_include_next = buggy; then
6090 INCLUDE_NEXT=include
6091 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
6092 else
6093 INCLUDE_NEXT=include
6094 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
6095 fi
6096 fi
6097
6098
6099
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
6101 $as_echo_n "checking whether system header files limit the line length... " >&6; }
6102 if test "${gl_cv_pragma_columns+set}" = set; then :
6103 $as_echo_n "(cached) " >&6
6104 else
6105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6106 /* end confdefs.h. */
6107
6108 #ifdef __TANDEM
6109 choke me
6110 #endif
6111
6112 _ACEOF
6113 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6114 $EGREP "choke me" >/dev/null 2>&1; then :
6115 gl_cv_pragma_columns=yes
6116 else
6117 gl_cv_pragma_columns=no
6118 fi
6119 rm -f conftest*
6120
6121
6122 fi
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
6124 $as_echo "$gl_cv_pragma_columns" >&6; }
6125 if test $gl_cv_pragma_columns = yes; then
6126 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
6127 else
6128 PRAGMA_COLUMNS=
6129 fi
6130
6131
6132
6133
6134
6135 for ac_header in $ac_header_list
6136 do :
6137 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6138 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6139 "
6140 eval as_val=\$$as_ac_Header
6141 if test "x$as_val" = x""yes; then :
6142 cat >>confdefs.h <<_ACEOF
6143 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6144 _ACEOF
6145
6146 fi
6147
6148 done
6149
6150
6151
6152
6153
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
6155 $as_echo_n "checking for complete errno.h... " >&6; }
6156 if test "${gl_cv_header_errno_h_complete+set}" = set; then :
6157 $as_echo_n "(cached) " >&6
6158 else
6159
6160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6161 /* end confdefs.h. */
6162
6163 #include <errno.h>
6164 #if !defined ETXTBSY
6165 booboo
6166 #endif
6167 #if !defined ENOMSG
6168 booboo
6169 #endif
6170 #if !defined EIDRM
6171 booboo
6172 #endif
6173 #if !defined ENOLINK
6174 booboo
6175 #endif
6176 #if !defined EPROTO
6177 booboo
6178 #endif
6179 #if !defined EMULTIHOP
6180 booboo
6181 #endif
6182 #if !defined EBADMSG
6183 booboo
6184 #endif
6185 #if !defined EOVERFLOW
6186 booboo
6187 #endif
6188 #if !defined ENOTSUP
6189 booboo
6190 #endif
6191 #if !defined ENETRESET
6192 booboo
6193 #endif
6194 #if !defined ECONNABORTED
6195 booboo
6196 #endif
6197 #if !defined ESTALE
6198 booboo
6199 #endif
6200 #if !defined EDQUOT
6201 booboo
6202 #endif
6203 #if !defined ECANCELED
6204 booboo
6205 #endif
6206 #if !defined EOWNERDEAD
6207 booboo
6208 #endif
6209 #if !defined ENOTRECOVERABLE
6210 booboo
6211 #endif
6212 #if !defined EILSEQ
6213 booboo
6214 #endif
6215
6216 _ACEOF
6217 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6218 $EGREP "booboo" >/dev/null 2>&1; then :
6219 gl_cv_header_errno_h_complete=no
6220 else
6221 gl_cv_header_errno_h_complete=yes
6222 fi
6223 rm -f conftest*
6224
6225
6226 fi
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
6228 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
6229 if test $gl_cv_header_errno_h_complete = yes; then
6230 ERRNO_H=''
6231 else
6232
6233
6234
6235
6236
6237
6238
6239
6240 if test $gl_cv_have_include_next = yes; then
6241 gl_cv_next_errno_h='<'errno.h'>'
6242 else
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
6244 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
6245 if test "${gl_cv_next_errno_h+set}" = set; then :
6246 $as_echo_n "(cached) " >&6
6247 else
6248
6249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6250 /* end confdefs.h. */
6251 #include <errno.h>
6252
6253 _ACEOF
6254 case "$host_os" in
6255 aix*) gl_absname_cpp="$ac_cpp -C" ;;
6256 *) gl_absname_cpp="$ac_cpp" ;;
6257 esac
6258
6259 case "$host_os" in
6260 mingw*)
6261 gl_dirsep_regex='[/\\]'
6262 ;;
6263 *)
6264 gl_dirsep_regex='\/'
6265 ;;
6266 esac
6267 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
6268
6269 gl_header_literal_regex=`echo 'errno.h' \
6270 | sed -e "$gl_make_literal_regex_sed"`
6271 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
6272 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
6273 s|^/[^/]|//&|
6274 p
6275 q
6276 }'
6277 gl_cv_next_errno_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6278 sed -n "$gl_absolute_header_sed"`'"'
6279
6280
6281 fi
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
6283 $as_echo "$gl_cv_next_errno_h" >&6; }
6284 fi
6285 NEXT_ERRNO_H=$gl_cv_next_errno_h
6286
6287 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
6288 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6289 gl_next_as_first_directive='<'errno.h'>'
6290 else
6291 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6292 gl_next_as_first_directive=$gl_cv_next_errno_h
6293 fi
6294 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
6295
6296
6297
6298
6299 ERRNO_H='errno.h'
6300 fi
6301
6302 if test -n "$ERRNO_H"; then
6303 GL_GENERATE_ERRNO_H_TRUE=
6304 GL_GENERATE_ERRNO_H_FALSE='#'
6305 else
6306 GL_GENERATE_ERRNO_H_TRUE='#'
6307 GL_GENERATE_ERRNO_H_FALSE=
6308 fi
6309
6310
6311 if test -n "$ERRNO_H"; then
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
6313 $as_echo_n "checking for EMULTIHOP value... " >&6; }
6314 if test "${gl_cv_header_errno_h_EMULTIHOP+set}" = set; then :
6315 $as_echo_n "(cached) " >&6
6316 else
6317
6318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6319 /* end confdefs.h. */
6320
6321 #include <errno.h>
6322 #ifdef EMULTIHOP
6323 yes
6324 #endif
6325
6326 _ACEOF
6327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6328 $EGREP "yes" >/dev/null 2>&1; then :
6329 gl_cv_header_errno_h_EMULTIHOP=yes
6330 else
6331 gl_cv_header_errno_h_EMULTIHOP=no
6332 fi
6333 rm -f conftest*
6334
6335 if test $gl_cv_header_errno_h_EMULTIHOP = no; then
6336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6337 /* end confdefs.h. */
6338
6339 #define _XOPEN_SOURCE_EXTENDED 1
6340 #include <errno.h>
6341 #ifdef EMULTIHOP
6342 yes
6343 #endif
6344
6345 _ACEOF
6346 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6347 $EGREP "yes" >/dev/null 2>&1; then :
6348 gl_cv_header_errno_h_EMULTIHOP=hidden
6349 fi
6350 rm -f conftest*
6351
6352 if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
6353 if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
6354 #define _XOPEN_SOURCE_EXTENDED 1
6355 #include <errno.h>
6356 /* The following two lines are a workaround against an autoconf-2.52 bug. */
6357 #include <stdio.h>
6358 #include <stdlib.h>
6359 "; then :
6360
6361 fi
6362
6363 fi
6364 fi
6365
6366 fi
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
6368 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
6369 case $gl_cv_header_errno_h_EMULTIHOP in
6370 yes | no)
6371 EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
6372 ;;
6373 *)
6374 EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
6375 ;;
6376 esac
6377
6378
6379 fi
6380
6381
6382 if test -n "$ERRNO_H"; then
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
6384 $as_echo_n "checking for ENOLINK value... " >&6; }
6385 if test "${gl_cv_header_errno_h_ENOLINK+set}" = set; then :
6386 $as_echo_n "(cached) " >&6
6387 else
6388
6389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6390 /* end confdefs.h. */
6391
6392 #include <errno.h>
6393 #ifdef ENOLINK
6394 yes
6395 #endif
6396
6397 _ACEOF
6398 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6399 $EGREP "yes" >/dev/null 2>&1; then :
6400 gl_cv_header_errno_h_ENOLINK=yes
6401 else
6402 gl_cv_header_errno_h_ENOLINK=no
6403 fi
6404 rm -f conftest*
6405
6406 if test $gl_cv_header_errno_h_ENOLINK = no; then
6407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6408 /* end confdefs.h. */
6409
6410 #define _XOPEN_SOURCE_EXTENDED 1
6411 #include <errno.h>
6412 #ifdef ENOLINK
6413 yes
6414 #endif
6415
6416 _ACEOF
6417 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6418 $EGREP "yes" >/dev/null 2>&1; then :
6419 gl_cv_header_errno_h_ENOLINK=hidden
6420 fi
6421 rm -f conftest*
6422
6423 if test $gl_cv_header_errno_h_ENOLINK = hidden; then
6424 if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
6425 #define _XOPEN_SOURCE_EXTENDED 1
6426 #include <errno.h>
6427 /* The following two lines are a workaround against an autoconf-2.52 bug. */
6428 #include <stdio.h>
6429 #include <stdlib.h>
6430 "; then :
6431
6432 fi
6433
6434 fi
6435 fi
6436
6437 fi
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
6439 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
6440 case $gl_cv_header_errno_h_ENOLINK in
6441 yes | no)
6442 ENOLINK_HIDDEN=0; ENOLINK_VALUE=
6443 ;;
6444 *)
6445 ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
6446 ;;
6447 esac
6448
6449
6450 fi
6451
6452
6453 if test -n "$ERRNO_H"; then
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
6455 $as_echo_n "checking for EOVERFLOW value... " >&6; }
6456 if test "${gl_cv_header_errno_h_EOVERFLOW+set}" = set; then :
6457 $as_echo_n "(cached) " >&6
6458 else
6459
6460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6461 /* end confdefs.h. */
6462
6463 #include <errno.h>
6464 #ifdef EOVERFLOW
6465 yes
6466 #endif
6467
6468 _ACEOF
6469 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6470 $EGREP "yes" >/dev/null 2>&1; then :
6471 gl_cv_header_errno_h_EOVERFLOW=yes
6472 else
6473 gl_cv_header_errno_h_EOVERFLOW=no
6474 fi
6475 rm -f conftest*
6476
6477 if test $gl_cv_header_errno_h_EOVERFLOW = no; then
6478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6479 /* end confdefs.h. */
6480
6481 #define _XOPEN_SOURCE_EXTENDED 1
6482 #include <errno.h>
6483 #ifdef EOVERFLOW
6484 yes
6485 #endif
6486
6487 _ACEOF
6488 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6489 $EGREP "yes" >/dev/null 2>&1; then :
6490 gl_cv_header_errno_h_EOVERFLOW=hidden
6491 fi
6492 rm -f conftest*
6493
6494 if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
6495 if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
6496 #define _XOPEN_SOURCE_EXTENDED 1
6497 #include <errno.h>
6498 /* The following two lines are a workaround against an autoconf-2.52 bug. */
6499 #include <stdio.h>
6500 #include <stdlib.h>
6501 "; then :
6502
6503 fi
6504
6505 fi
6506 fi
6507
6508 fi
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
6510 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
6511 case $gl_cv_header_errno_h_EOVERFLOW in
6512 yes | no)
6513 EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
6514 ;;
6515 *)
6516 EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
6517 ;;
6518 esac
6519
6520
6521 fi
6522
6523
6524
6525
6526
6527
6528
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
6530 $as_echo_n "checking for mbstate_t... " >&6; }
6531 if test "${ac_cv_type_mbstate_t+set}" = set; then :
6532 $as_echo_n "(cached) " >&6
6533 else
6534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6535 /* end confdefs.h. */
6536 $ac_includes_default
6537 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
6538 <wchar.h>.
6539 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6540 included before <wchar.h>. */
6541 #include <stddef.h>
6542 #include <stdio.h>
6543 #include <time.h>
6544 #include <wchar.h>
6545 int
6546 main ()
6547 {
6548 mbstate_t x; return sizeof x;
6549 ;
6550 return 0;
6551 }
6552 _ACEOF
6553 if ac_fn_c_try_compile "$LINENO"; then :
6554 ac_cv_type_mbstate_t=yes
6555 else
6556 ac_cv_type_mbstate_t=no
6557 fi
6558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6559 fi
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
6561 $as_echo "$ac_cv_type_mbstate_t" >&6; }
6562 if test $ac_cv_type_mbstate_t = yes; then
6563
6564 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
6565
6566 else
6567
6568 $as_echo "#define mbstate_t int" >>confdefs.h
6569
6570 fi
6571
6572
6573
6574
6575 for ac_func in $ac_func_list
6576 do :
6577 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6578 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6579 eval as_val=\$$as_ac_var
6580 if test "x$as_val" = x""yes; then :
6581 cat >>confdefs.h <<_ACEOF
6582 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6583 _ACEOF
6584
6585 fi
6586 done
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607 GNULIB_ACOSF=0;
6608 GNULIB_ACOSL=0;
6609 GNULIB_ASINF=0;
6610 GNULIB_ASINL=0;
6611 GNULIB_ATANF=0;
6612 GNULIB_ATANL=0;
6613 GNULIB_ATAN2F=0;
6614 GNULIB_CBRT=0;
6615 GNULIB_CBRTF=0;
6616 GNULIB_CBRTL=0;
6617 GNULIB_CEIL=0;
6618 GNULIB_CEILF=0;
6619 GNULIB_CEILL=0;
6620 GNULIB_COPYSIGN=0;
6621 GNULIB_COPYSIGNF=0;
6622 GNULIB_COPYSIGNL=0;
6623 GNULIB_COSF=0;
6624 GNULIB_COSL=0;
6625 GNULIB_COSHF=0;
6626 GNULIB_EXPF=0;
6627 GNULIB_EXPL=0;
6628 GNULIB_EXP2=0;
6629 GNULIB_EXP2F=0;
6630 GNULIB_EXP2L=0;
6631 GNULIB_EXPM1=0;
6632 GNULIB_EXPM1F=0;
6633 GNULIB_EXPM1L=0;
6634 GNULIB_FABSF=0;
6635 GNULIB_FABSL=0;
6636 GNULIB_FLOOR=0;
6637 GNULIB_FLOORF=0;
6638 GNULIB_FLOORL=0;
6639 GNULIB_FMA=0;
6640 GNULIB_FMAF=0;
6641 GNULIB_FMAL=0;
6642 GNULIB_FMOD=0;
6643 GNULIB_FMODF=0;
6644 GNULIB_FMODL=0;
6645 GNULIB_FREXPF=0;
6646 GNULIB_FREXP=0;
6647 GNULIB_FREXPL=0;
6648 GNULIB_HYPOT=0;
6649 GNULIB_HYPOTF=0;
6650 GNULIB_HYPOTL=0;
6651 GNULIB_ILOGB=0;
6652 GNULIB_ILOGBF=0;
6653 GNULIB_ILOGBL=0;
6654 GNULIB_ISFINITE=0;
6655 GNULIB_ISINF=0;
6656 GNULIB_ISNAN=0;
6657 GNULIB_ISNANF=0;
6658 GNULIB_ISNAND=0;
6659 GNULIB_ISNANL=0;
6660 GNULIB_LDEXPF=0;
6661 GNULIB_LDEXPL=0;
6662 GNULIB_LOG=0;
6663 GNULIB_LOGF=0;
6664 GNULIB_LOGL=0;
6665 GNULIB_LOG10=0;
6666 GNULIB_LOG10F=0;
6667 GNULIB_LOG10L=0;
6668 GNULIB_LOG1P=0;
6669 GNULIB_LOG1PF=0;
6670 GNULIB_LOG1PL=0;
6671 GNULIB_LOG2=0;
6672 GNULIB_LOG2F=0;
6673 GNULIB_LOG2L=0;
6674 GNULIB_LOGB=0;
6675 GNULIB_LOGBF=0;
6676 GNULIB_LOGBL=0;
6677 GNULIB_MODF=0;
6678 GNULIB_MODFF=0;
6679 GNULIB_MODFL=0;
6680 GNULIB_POWF=0;
6681 GNULIB_REMAINDER=0;
6682 GNULIB_REMAINDERF=0;
6683 GNULIB_REMAINDERL=0;
6684 GNULIB_RINT=0;
6685 GNULIB_RINTF=0;
6686 GNULIB_RINTL=0;
6687 GNULIB_ROUND=0;
6688 GNULIB_ROUNDF=0;
6689 GNULIB_ROUNDL=0;
6690 GNULIB_SIGNBIT=0;
6691 GNULIB_SINF=0;
6692 GNULIB_SINL=0;
6693 GNULIB_SINHF=0;
6694 GNULIB_SQRTF=0;
6695 GNULIB_SQRTL=0;
6696 GNULIB_TANF=0;
6697 GNULIB_TANL=0;
6698 GNULIB_TANHF=0;
6699 GNULIB_TRUNC=0;
6700 GNULIB_TRUNCF=0;
6701 GNULIB_TRUNCL=0;
6702 HAVE_ACOSF=1;
6703 HAVE_ACOSL=1;
6704 HAVE_ASINF=1;
6705 HAVE_ASINL=1;
6706 HAVE_ATANF=1;
6707 HAVE_ATANL=1;
6708 HAVE_ATAN2F=1;
6709 HAVE_CBRT=1;
6710 HAVE_CBRTF=1;
6711 HAVE_CBRTL=1;
6712 HAVE_COPYSIGN=1;
6713 HAVE_COPYSIGNL=1;
6714 HAVE_COSF=1;
6715 HAVE_COSL=1;
6716 HAVE_COSHF=1;
6717 HAVE_EXPF=1;
6718 HAVE_EXPL=1;
6719 HAVE_EXPM1=1;
6720 HAVE_EXPM1F=1;
6721 HAVE_FABSF=1;
6722 HAVE_FABSL=1;
6723 HAVE_FMA=1;
6724 HAVE_FMAF=1;
6725 HAVE_FMAL=1;
6726 HAVE_FMODF=1;
6727 HAVE_FMODL=1;
6728 HAVE_FREXPF=1;
6729 HAVE_HYPOTF=1;
6730 HAVE_HYPOTL=1;
6731 HAVE_ILOGB=1;
6732 HAVE_ILOGBF=1;
6733 HAVE_ILOGBL=1;
6734 HAVE_ISNANF=1;
6735 HAVE_ISNAND=1;
6736 HAVE_ISNANL=1;
6737 HAVE_LDEXPF=1;
6738 HAVE_LOGF=1;
6739 HAVE_LOGL=1;
6740 HAVE_LOG10F=1;
6741 HAVE_LOG10L=1;
6742 HAVE_LOG1P=1;
6743 HAVE_LOG1PF=1;
6744 HAVE_LOG1PL=1;
6745 HAVE_LOGBF=1;
6746 HAVE_LOGBL=1;
6747 HAVE_MODFF=1;
6748 HAVE_MODFL=1;
6749 HAVE_POWF=1;
6750 HAVE_REMAINDER=1;
6751 HAVE_REMAINDERF=1;
6752 HAVE_RINT=1;
6753 HAVE_RINTL=1;
6754 HAVE_SINF=1;
6755 HAVE_SINL=1;
6756 HAVE_SINHF=1;
6757 HAVE_SQRTF=1;
6758 HAVE_SQRTL=1;
6759 HAVE_TANF=1;
6760 HAVE_TANL=1;
6761 HAVE_TANHF=1;
6762 HAVE_DECL_ACOSL=1;
6763 HAVE_DECL_ASINL=1;
6764 HAVE_DECL_ATANL=1;
6765 HAVE_DECL_CBRTF=1;
6766 HAVE_DECL_CBRTL=1;
6767 HAVE_DECL_CEILF=1;
6768 HAVE_DECL_CEILL=1;
6769 HAVE_DECL_COPYSIGNF=1;
6770 HAVE_DECL_COSL=1;
6771 HAVE_DECL_EXPL=1;
6772 HAVE_DECL_EXP2=1;
6773 HAVE_DECL_EXP2F=1;
6774 HAVE_DECL_EXP2L=1;
6775 HAVE_DECL_EXPM1L=1;
6776 HAVE_DECL_FLOORF=1;
6777 HAVE_DECL_FLOORL=1;
6778 HAVE_DECL_FREXPL=1;
6779 HAVE_DECL_LDEXPL=1;
6780 HAVE_DECL_LOGL=1;
6781 HAVE_DECL_LOG10L=1;
6782 HAVE_DECL_LOG2=1;
6783 HAVE_DECL_LOG2F=1;
6784 HAVE_DECL_LOG2L=1;
6785 HAVE_DECL_LOGB=1;
6786 HAVE_DECL_REMAINDER=1;
6787 HAVE_DECL_REMAINDERL=1;
6788 HAVE_DECL_RINTF=1;
6789 HAVE_DECL_ROUND=1;
6790 HAVE_DECL_ROUNDF=1;
6791 HAVE_DECL_ROUNDL=1;
6792 HAVE_DECL_SINL=1;
6793 HAVE_DECL_SQRTL=1;
6794 HAVE_DECL_TANL=1;
6795 HAVE_DECL_TRUNC=1;
6796 HAVE_DECL_TRUNCF=1;
6797 HAVE_DECL_TRUNCL=1;
6798 REPLACE_CBRTF=0;
6799 REPLACE_CBRTL=0;
6800 REPLACE_CEIL=0;
6801 REPLACE_CEILF=0;
6802 REPLACE_CEILL=0;
6803 REPLACE_EXPM1=0;
6804 REPLACE_EXPM1F=0;
6805 REPLACE_EXP2=0;
6806 REPLACE_EXP2L=0;
6807 REPLACE_FABSL=0;
6808 REPLACE_FLOOR=0;
6809 REPLACE_FLOORF=0;
6810 REPLACE_FLOORL=0;
6811 REPLACE_FMA=0;
6812 REPLACE_FMAF=0;
6813 REPLACE_FMAL=0;
6814 REPLACE_FMOD=0;
6815 REPLACE_FMODF=0;
6816 REPLACE_FMODL=0;
6817 REPLACE_FREXPF=0;
6818 REPLACE_FREXP=0;
6819 REPLACE_FREXPL=0;
6820 REPLACE_HUGE_VAL=0;
6821 REPLACE_HYPOT=0;
6822 REPLACE_HYPOTF=0;
6823 REPLACE_HYPOTL=0;
6824 REPLACE_ILOGB=0;
6825 REPLACE_ILOGBF=0;
6826 REPLACE_ISFINITE=0;
6827 REPLACE_ISINF=0;
6828 REPLACE_ISNAN=0;
6829 REPLACE_LDEXPL=0;
6830 REPLACE_LOG=0;
6831 REPLACE_LOGF=0;
6832 REPLACE_LOGL=0;
6833 REPLACE_LOG10=0;
6834 REPLACE_LOG10F=0;
6835 REPLACE_LOG10L=0;
6836 REPLACE_LOG1P=0;
6837 REPLACE_LOG1PF=0;
6838 REPLACE_LOG1PL=0;
6839 REPLACE_LOG2=0;
6840 REPLACE_LOG2F=0;
6841 REPLACE_LOG2L=0;
6842 REPLACE_LOGB=0;
6843 REPLACE_LOGBF=0;
6844 REPLACE_LOGBL=0;
6845 REPLACE_MODF=0;
6846 REPLACE_MODFF=0;
6847 REPLACE_MODFL=0;
6848 REPLACE_NAN=0;
6849 REPLACE_REMAINDER=0;
6850 REPLACE_REMAINDERF=0;
6851 REPLACE_REMAINDERL=0;
6852 REPLACE_ROUND=0;
6853 REPLACE_ROUNDF=0;
6854 REPLACE_ROUNDL=0;
6855 REPLACE_SIGNBIT=0;
6856 REPLACE_SIGNBIT_USING_GCC=0;
6857 REPLACE_SQRTL=0;
6858 REPLACE_TRUNC=0;
6859 REPLACE_TRUNCF=0;
6860 REPLACE_TRUNCL=0;
6861
6862
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used without linking with libm" >&5
6864 $as_echo_n "checking whether frexp() can be used without linking with libm... " >&6; }
6865 if test "${gl_cv_func_frexp_no_libm+set}" = set; then :
6866 $as_echo_n "(cached) " >&6
6867 else
6868
6869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6870 /* end confdefs.h. */
6871 #include <math.h>
6872 double x;
6873 int
6874 main ()
6875 {
6876 int e; return frexp (x, &e) > 0;
6877 ;
6878 return 0;
6879 }
6880 _ACEOF
6881 if ac_fn_c_try_link "$LINENO"; then :
6882 gl_cv_func_frexp_no_libm=yes
6883 else
6884 gl_cv_func_frexp_no_libm=no
6885 fi
6886 rm -f core conftest.err conftest.$ac_objext \
6887 conftest$ac_exeext conftest.$ac_ext
6888
6889 fi
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_no_libm" >&5
6891 $as_echo "$gl_cv_func_frexp_no_libm" >&6; }
6892
6893
6894
6895
6896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long double and double are the same" >&5
6897 $as_echo_n "checking whether long double and double are the same... " >&6; }
6898 if test "${gl_cv_long_double_equals_double+set}" = set; then :
6899 $as_echo_n "(cached) " >&6
6900 else
6901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6902 /* end confdefs.h. */
6903 #include <float.h>
6904 int
6905 main ()
6906 {
6907 typedef int check[sizeof (long double) == sizeof (double)
6908 && LDBL_MANT_DIG == DBL_MANT_DIG
6909 && LDBL_MAX_EXP == DBL_MAX_EXP
6910 && LDBL_MIN_EXP == DBL_MIN_EXP
6911 ? 1 : -1];
6912
6913 ;
6914 return 0;
6915 }
6916 _ACEOF
6917 if ac_fn_c_try_compile "$LINENO"; then :
6918 gl_cv_long_double_equals_double=yes
6919 else
6920 gl_cv_long_double_equals_double=no
6921 fi
6922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6923
6924 fi
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_long_double_equals_double" >&5
6926 $as_echo "$gl_cv_long_double_equals_double" >&6; }
6927 if test $gl_cv_long_double_equals_double = yes; then
6928
6929 $as_echo "#define HAVE_SAME_LONG_DOUBLE_AS_DOUBLE 1" >>confdefs.h
6930
6931 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=1
6932 else
6933 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=0
6934 fi
6935
6936
6937
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6939 $as_echo_n "checking for unsigned long long int... " >&6; }
6940 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6941 $as_echo_n "(cached) " >&6
6942 else
6943 ac_cv_type_unsigned_long_long_int=yes
6944 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6946 /* end confdefs.h. */
6947
6948 /* For now, do not test the preprocessor; as of 2007 there are too many
6949 implementations with broken preprocessors. Perhaps this can
6950 be revisited in 2012. In the meantime, code should not expect
6951 #if to work with literals wider than 32 bits. */
6952 /* Test literals. */
6953 long long int ll = 9223372036854775807ll;
6954 long long int nll = -9223372036854775807LL;
6955 unsigned long long int ull = 18446744073709551615ULL;
6956 /* Test constant expressions. */
6957 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6958 ? 1 : -1)];
6959 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6960 ? 1 : -1)];
6961 int i = 63;
6962 int
6963 main ()
6964 {
6965 /* Test availability of runtime routines for shift and division. */
6966 long long int llmax = 9223372036854775807ll;
6967 unsigned long long int ullmax = 18446744073709551615ull;
6968 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6969 | (llmax / ll) | (llmax % ll)
6970 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6971 | (ullmax / ull) | (ullmax % ull));
6972 ;
6973 return 0;
6974 }
6975
6976 _ACEOF
6977 if ac_fn_c_try_link "$LINENO"; then :
6978
6979 else
6980 ac_cv_type_unsigned_long_long_int=no
6981 fi
6982 rm -f core conftest.err conftest.$ac_objext \
6983 conftest$ac_exeext conftest.$ac_ext
6984 fi
6985 fi
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6987 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6988 if test $ac_cv_type_unsigned_long_long_int = yes; then
6989
6990 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6991
6992 fi
6993
6994
6995
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6997 $as_echo_n "checking for long long int... " >&6; }
6998 if test "${ac_cv_type_long_long_int+set}" = set; then :
6999 $as_echo_n "(cached) " >&6
7000 else
7001 ac_cv_type_long_long_int=yes
7002 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
7003 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
7004 if test $ac_cv_type_long_long_int = yes; then
7005 if test "$cross_compiling" = yes; then :
7006 :
7007 else
7008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7009 /* end confdefs.h. */
7010 #include <limits.h>
7011 #ifndef LLONG_MAX
7012 # define HALF \
7013 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
7014 # define LLONG_MAX (HALF - 1 + HALF)
7015 #endif
7016 int
7017 main ()
7018 {
7019 long long int n = 1;
7020 int i;
7021 for (i = 0; ; i++)
7022 {
7023 long long int m = n << i;
7024 if (m >> i != n)
7025 return 1;
7026 if (LLONG_MAX / 2 < m)
7027 break;
7028 }
7029 return 0;
7030 ;
7031 return 0;
7032 }
7033 _ACEOF
7034 if ac_fn_c_try_run "$LINENO"; then :
7035
7036 else
7037 ac_cv_type_long_long_int=no
7038 fi
7039 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7040 conftest.$ac_objext conftest.beam conftest.$ac_ext
7041 fi
7042
7043 fi
7044 fi
7045 fi
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
7047 $as_echo "$ac_cv_type_long_long_int" >&6; }
7048 if test $ac_cv_type_long_long_int = yes; then
7049
7050 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
7051
7052 fi
7053
7054
7055
7056
7057
7058
7059 gl_cv_c_multiarch=no
7060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7061 /* end confdefs.h. */
7062 #ifndef __APPLE_CC__
7063 not a universal capable compiler
7064 #endif
7065 typedef int dummy;
7066
7067 _ACEOF
7068 if ac_fn_c_try_compile "$LINENO"; then :
7069
7070 arch=
7071 prev=
7072 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
7073 if test -n "$prev"; then
7074 case $word in
7075 i?86 | x86_64 | ppc | ppc64)
7076 if test -z "$arch" || test "$arch" = "$word"; then
7077 arch="$word"
7078 else
7079 gl_cv_c_multiarch=yes
7080 fi
7081 ;;
7082 esac
7083 prev=
7084 else
7085 if test "x$word" = "x-arch"; then
7086 prev=arch
7087 fi
7088 fi
7089 done
7090
7091 fi
7092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7093 if test $gl_cv_c_multiarch = yes; then
7094 APPLE_UNIVERSAL_BUILD=1
7095 else
7096 APPLE_UNIVERSAL_BUILD=0
7097 fi
7098
7099
7100
7101
7102
7103 if test $ac_cv_type_long_long_int = yes; then
7104 HAVE_LONG_LONG_INT=1
7105 else
7106 HAVE_LONG_LONG_INT=0
7107 fi
7108
7109
7110 if test $ac_cv_type_unsigned_long_long_int = yes; then
7111 HAVE_UNSIGNED_LONG_LONG_INT=1
7112 else
7113 HAVE_UNSIGNED_LONG_LONG_INT=0
7114 fi
7115
7116
7117
7118 if test $ac_cv_header_wchar_h = yes; then
7119 HAVE_WCHAR_H=1
7120 else
7121 HAVE_WCHAR_H=0
7122 fi
7123
7124
7125 if test $ac_cv_header_inttypes_h = yes; then
7126 HAVE_INTTYPES_H=1
7127 else
7128 HAVE_INTTYPES_H=0
7129 fi
7130
7131
7132 if test $ac_cv_header_sys_types_h = yes; then
7133 HAVE_SYS_TYPES_H=1
7134 else
7135 HAVE_SYS_TYPES_H=0
7136 fi
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148 if test $gl_cv_have_include_next = yes; then
7149 gl_cv_next_stdint_h='<'stdint.h'>'
7150 else
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
7152 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
7153 if test "${gl_cv_next_stdint_h+set}" = set; then :
7154 $as_echo_n "(cached) " >&6
7155 else
7156
7157 if test $ac_cv_header_stdint_h = yes; then
7158
7159
7160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7161 /* end confdefs.h. */
7162 #include <stdint.h>
7163
7164 _ACEOF
7165 case "$host_os" in
7166 aix*) gl_absname_cpp="$ac_cpp -C" ;;
7167 *) gl_absname_cpp="$ac_cpp" ;;
7168 esac
7169
7170 case "$host_os" in
7171 mingw*)
7172 gl_dirsep_regex='[/\\]'
7173 ;;
7174 *)
7175 gl_dirsep_regex='\/'
7176 ;;
7177 esac
7178 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
7179
7180 gl_header_literal_regex=`echo 'stdint.h' \
7181 | sed -e "$gl_make_literal_regex_sed"`
7182 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
7183 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
7184 s|^/[^/]|//&|
7185 p
7186 q
7187 }'
7188 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7189 sed -n "$gl_absolute_header_sed"`'"'
7190 else
7191 gl_cv_next_stdint_h='<'stdint.h'>'
7192 fi
7193
7194
7195 fi
7196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
7197 $as_echo "$gl_cv_next_stdint_h" >&6; }
7198 fi
7199 NEXT_STDINT_H=$gl_cv_next_stdint_h
7200
7201 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
7202 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7203 gl_next_as_first_directive='<'stdint.h'>'
7204 else
7205 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7206 gl_next_as_first_directive=$gl_cv_next_stdint_h
7207 fi
7208 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
7209
7210
7211
7212
7213 if test $ac_cv_header_stdint_h = yes; then
7214 HAVE_STDINT_H=1
7215 else
7216 HAVE_STDINT_H=0
7217 fi
7218
7219
7220 if test $ac_cv_header_stdint_h = yes; then
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
7222 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
7223 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
7224 $as_echo_n "(cached) " >&6
7225 else
7226 gl_cv_header_working_stdint_h=no
7227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7228 /* end confdefs.h. */
7229
7230
7231 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
7232 #include <stdint.h>
7233 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
7234 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
7235 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
7236 #endif
7237
7238
7239 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7240 included before <wchar.h>. */
7241 #include <stddef.h>
7242 #include <signal.h>
7243 #if HAVE_WCHAR_H
7244 # include <stdio.h>
7245 # include <time.h>
7246 # include <wchar.h>
7247 #endif
7248
7249
7250 #ifdef INT8_MAX
7251 int8_t a1 = INT8_MAX;
7252 int8_t a1min = INT8_MIN;
7253 #endif
7254 #ifdef INT16_MAX
7255 int16_t a2 = INT16_MAX;
7256 int16_t a2min = INT16_MIN;
7257 #endif
7258 #ifdef INT32_MAX
7259 int32_t a3 = INT32_MAX;
7260 int32_t a3min = INT32_MIN;
7261 #endif
7262 #ifdef INT64_MAX
7263 int64_t a4 = INT64_MAX;
7264 int64_t a4min = INT64_MIN;
7265 #endif
7266 #ifdef UINT8_MAX
7267 uint8_t b1 = UINT8_MAX;
7268 #else
7269 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
7270 #endif
7271 #ifdef UINT16_MAX
7272 uint16_t b2 = UINT16_MAX;
7273 #endif
7274 #ifdef UINT32_MAX
7275 uint32_t b3 = UINT32_MAX;
7276 #endif
7277 #ifdef UINT64_MAX
7278 uint64_t b4 = UINT64_MAX;
7279 #endif
7280 int_least8_t c1 = INT8_C (0x7f);
7281 int_least8_t c1max = INT_LEAST8_MAX;
7282 int_least8_t c1min = INT_LEAST8_MIN;
7283 int_least16_t c2 = INT16_C (0x7fff);
7284 int_least16_t c2max = INT_LEAST16_MAX;
7285 int_least16_t c2min = INT_LEAST16_MIN;
7286 int_least32_t c3 = INT32_C (0x7fffffff);
7287 int_least32_t c3max = INT_LEAST32_MAX;
7288 int_least32_t c3min = INT_LEAST32_MIN;
7289 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
7290 int_least64_t c4max = INT_LEAST64_MAX;
7291 int_least64_t c4min = INT_LEAST64_MIN;
7292 uint_least8_t d1 = UINT8_C (0xff);
7293 uint_least8_t d1max = UINT_LEAST8_MAX;
7294 uint_least16_t d2 = UINT16_C (0xffff);
7295 uint_least16_t d2max = UINT_LEAST16_MAX;
7296 uint_least32_t d3 = UINT32_C (0xffffffff);
7297 uint_least32_t d3max = UINT_LEAST32_MAX;
7298 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
7299 uint_least64_t d4max = UINT_LEAST64_MAX;
7300 int_fast8_t e1 = INT_FAST8_MAX;
7301 int_fast8_t e1min = INT_FAST8_MIN;
7302 int_fast16_t e2 = INT_FAST16_MAX;
7303 int_fast16_t e2min = INT_FAST16_MIN;
7304 int_fast32_t e3 = INT_FAST32_MAX;
7305 int_fast32_t e3min = INT_FAST32_MIN;
7306 int_fast64_t e4 = INT_FAST64_MAX;
7307 int_fast64_t e4min = INT_FAST64_MIN;
7308 uint_fast8_t f1 = UINT_FAST8_MAX;
7309 uint_fast16_t f2 = UINT_FAST16_MAX;
7310 uint_fast32_t f3 = UINT_FAST32_MAX;
7311 uint_fast64_t f4 = UINT_FAST64_MAX;
7312 #ifdef INTPTR_MAX
7313 intptr_t g = INTPTR_MAX;
7314 intptr_t gmin = INTPTR_MIN;
7315 #endif
7316 #ifdef UINTPTR_MAX
7317 uintptr_t h = UINTPTR_MAX;
7318 #endif
7319 intmax_t i = INTMAX_MAX;
7320 uintmax_t j = UINTMAX_MAX;
7321
7322 #include <limits.h> /* for CHAR_BIT */
7323 #define TYPE_MINIMUM(t) \
7324 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
7325 #define TYPE_MAXIMUM(t) \
7326 ((t) ((t) 0 < (t) -1 \
7327 ? (t) -1 \
7328 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
7329 struct s {
7330 int check_PTRDIFF:
7331 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
7332 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
7333 ? 1 : -1;
7334 /* Detect bug in FreeBSD 6.0 / ia64. */
7335 int check_SIG_ATOMIC:
7336 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
7337 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
7338 ? 1 : -1;
7339 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
7340 int check_WCHAR:
7341 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
7342 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
7343 ? 1 : -1;
7344 /* Detect bug in mingw. */
7345 int check_WINT:
7346 WINT_MIN == TYPE_MINIMUM (wint_t)
7347 && WINT_MAX == TYPE_MAXIMUM (wint_t)
7348 ? 1 : -1;
7349
7350 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
7351 int check_UINT8_C:
7352 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
7353 int check_UINT16_C:
7354 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
7355
7356 /* Detect bugs in OpenBSD 3.9 stdint.h. */
7357 #ifdef UINT8_MAX
7358 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
7359 #endif
7360 #ifdef UINT16_MAX
7361 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
7362 #endif
7363 #ifdef UINT32_MAX
7364 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
7365 #endif
7366 #ifdef UINT64_MAX
7367 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
7368 #endif
7369 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
7370 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
7371 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
7372 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
7373 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
7374 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
7375 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
7376 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
7377 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
7378 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
7379 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
7380 };
7381
7382 int
7383 main ()
7384 {
7385
7386 ;
7387 return 0;
7388 }
7389 _ACEOF
7390 if ac_fn_c_try_compile "$LINENO"; then :
7391 if test "$cross_compiling" = yes; then :
7392 gl_cv_header_working_stdint_h=yes
7393
7394 else
7395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7396 /* end confdefs.h. */
7397
7398
7399 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
7400 #include <stdint.h>
7401
7402
7403 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7404 included before <wchar.h>. */
7405 #include <stddef.h>
7406 #include <signal.h>
7407 #if HAVE_WCHAR_H
7408 # include <stdio.h>
7409 # include <time.h>
7410 # include <wchar.h>
7411 #endif
7412
7413
7414 #include <stdio.h>
7415 #include <string.h>
7416 #define MVAL(macro) MVAL1(macro)
7417 #define MVAL1(expression) #expression
7418 static const char *macro_values[] =
7419 {
7420 #ifdef INT8_MAX
7421 MVAL (INT8_MAX),
7422 #endif
7423 #ifdef INT16_MAX
7424 MVAL (INT16_MAX),
7425 #endif
7426 #ifdef INT32_MAX
7427 MVAL (INT32_MAX),
7428 #endif
7429 #ifdef INT64_MAX
7430 MVAL (INT64_MAX),
7431 #endif
7432 #ifdef UINT8_MAX
7433 MVAL (UINT8_MAX),
7434 #endif
7435 #ifdef UINT16_MAX
7436 MVAL (UINT16_MAX),
7437 #endif
7438 #ifdef UINT32_MAX
7439 MVAL (UINT32_MAX),
7440 #endif
7441 #ifdef UINT64_MAX
7442 MVAL (UINT64_MAX),
7443 #endif
7444 NULL
7445 };
7446
7447 int
7448 main ()
7449 {
7450
7451 const char **mv;
7452 for (mv = macro_values; *mv != NULL; mv++)
7453 {
7454 const char *value = *mv;
7455 /* Test whether it looks like a cast expression. */
7456 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
7457 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
7458 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
7459 || strncmp (value, "((int)"/*)*/, 6) == 0
7460 || strncmp (value, "((signed short)"/*)*/, 15) == 0
7461 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
7462 return mv - macro_values + 1;
7463 }
7464 return 0;
7465
7466 ;
7467 return 0;
7468 }
7469 _ACEOF
7470 if ac_fn_c_try_run "$LINENO"; then :
7471 gl_cv_header_working_stdint_h=yes
7472 fi
7473 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7474 conftest.$ac_objext conftest.beam conftest.$ac_ext
7475 fi
7476
7477
7478 fi
7479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7480
7481 fi
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
7483 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
7484 fi
7485 if test "$gl_cv_header_working_stdint_h" = yes; then
7486 STDINT_H=
7487 else
7488 for ac_header in sys/inttypes.h sys/bitypes.h
7489 do :
7490 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7491 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7492 eval as_val=\$$as_ac_Header
7493 if test "x$as_val" = x""yes; then :
7494 cat >>confdefs.h <<_ACEOF
7495 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7496 _ACEOF
7497
7498 fi
7499
7500 done
7501
7502 if test $ac_cv_header_sys_inttypes_h = yes; then
7503 HAVE_SYS_INTTYPES_H=1
7504 else
7505 HAVE_SYS_INTTYPES_H=0
7506 fi
7507
7508 if test $ac_cv_header_sys_bitypes_h = yes; then
7509 HAVE_SYS_BITYPES_H=1
7510 else
7511 HAVE_SYS_BITYPES_H=0
7512 fi
7513
7514
7515
7516
7517 if test $APPLE_UNIVERSAL_BUILD = 0; then
7518
7519
7520 for gltype in ptrdiff_t size_t ; do
7521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
7522 $as_echo_n "checking for bit size of $gltype... " >&6; }
7523 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
7524 $as_echo_n "(cached) " >&6
7525 else
7526 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
7527 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7528 included before <wchar.h>. */
7529 #include <stddef.h>
7530 #include <signal.h>
7531 #if HAVE_WCHAR_H
7532 # include <stdio.h>
7533 # include <time.h>
7534 # include <wchar.h>
7535 #endif
7536
7537 #include <limits.h>"; then :
7538
7539 else
7540 result=unknown
7541 fi
7542
7543 eval gl_cv_bitsizeof_${gltype}=\$result
7544
7545 fi
7546 eval ac_res=\$gl_cv_bitsizeof_${gltype}
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7548 $as_echo "$ac_res" >&6; }
7549 eval result=\$gl_cv_bitsizeof_${gltype}
7550 if test $result = unknown; then
7551 result=0
7552 fi
7553 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
7554 cat >>confdefs.h <<_ACEOF
7555 #define BITSIZEOF_${GLTYPE} $result
7556 _ACEOF
7557
7558 eval BITSIZEOF_${GLTYPE}=\$result
7559 done
7560
7561
7562 fi
7563
7564
7565 for gltype in sig_atomic_t wchar_t wint_t ; do
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
7567 $as_echo_n "checking for bit size of $gltype... " >&6; }
7568 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
7569 $as_echo_n "(cached) " >&6
7570 else
7571 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
7572 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7573 included before <wchar.h>. */
7574 #include <stddef.h>
7575 #include <signal.h>
7576 #if HAVE_WCHAR_H
7577 # include <stdio.h>
7578 # include <time.h>
7579 # include <wchar.h>
7580 #endif
7581
7582 #include <limits.h>"; then :
7583
7584 else
7585 result=unknown
7586 fi
7587
7588 eval gl_cv_bitsizeof_${gltype}=\$result
7589
7590 fi
7591 eval ac_res=\$gl_cv_bitsizeof_${gltype}
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7593 $as_echo "$ac_res" >&6; }
7594 eval result=\$gl_cv_bitsizeof_${gltype}
7595 if test $result = unknown; then
7596 result=0
7597 fi
7598 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
7599 cat >>confdefs.h <<_ACEOF
7600 #define BITSIZEOF_${GLTYPE} $result
7601 _ACEOF
7602
7603 eval BITSIZEOF_${GLTYPE}=\$result
7604 done
7605
7606
7607
7608
7609 for gltype in sig_atomic_t wchar_t wint_t ; do
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
7611 $as_echo_n "checking whether $gltype is signed... " >&6; }
7612 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
7613 $as_echo_n "(cached) " >&6
7614 else
7615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7616 /* end confdefs.h. */
7617
7618 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7619 included before <wchar.h>. */
7620 #include <stddef.h>
7621 #include <signal.h>
7622 #if HAVE_WCHAR_H
7623 # include <stdio.h>
7624 # include <time.h>
7625 # include <wchar.h>
7626 #endif
7627
7628 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
7629 int
7630 main ()
7631 {
7632
7633 ;
7634 return 0;
7635 }
7636 _ACEOF
7637 if ac_fn_c_try_compile "$LINENO"; then :
7638 result=yes
7639 else
7640 result=no
7641 fi
7642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7643 eval gl_cv_type_${gltype}_signed=\$result
7644
7645 fi
7646 eval ac_res=\$gl_cv_type_${gltype}_signed
7647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7648 $as_echo "$ac_res" >&6; }
7649 eval result=\$gl_cv_type_${gltype}_signed
7650 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
7651 if test "$result" = yes; then
7652 cat >>confdefs.h <<_ACEOF
7653 #define HAVE_SIGNED_${GLTYPE} 1
7654 _ACEOF
7655
7656 eval HAVE_SIGNED_${GLTYPE}=1
7657 else
7658 eval HAVE_SIGNED_${GLTYPE}=0
7659 fi
7660 done
7661
7662
7663 gl_cv_type_ptrdiff_t_signed=yes
7664 gl_cv_type_size_t_signed=no
7665 if test $APPLE_UNIVERSAL_BUILD = 0; then
7666
7667
7668 for gltype in ptrdiff_t size_t ; do
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
7670 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
7671 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
7672 $as_echo_n "(cached) " >&6
7673 else
7674 eval gl_cv_type_${gltype}_suffix=no
7675 eval result=\$gl_cv_type_${gltype}_signed
7676 if test "$result" = yes; then
7677 glsufu=
7678 else
7679 glsufu=u
7680 fi
7681 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
7682 case $glsuf in
7683 '') gltype1='int';;
7684 l) gltype1='long int';;
7685 ll) gltype1='long long int';;
7686 i64) gltype1='__int64';;
7687 u) gltype1='unsigned int';;
7688 ul) gltype1='unsigned long int';;
7689 ull) gltype1='unsigned long long int';;
7690 ui64)gltype1='unsigned __int64';;
7691 esac
7692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7693 /* end confdefs.h. */
7694
7695 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7696 included before <wchar.h>. */
7697 #include <stddef.h>
7698 #include <signal.h>
7699 #if HAVE_WCHAR_H
7700 # include <stdio.h>
7701 # include <time.h>
7702 # include <wchar.h>
7703 #endif
7704
7705 extern $gltype foo;
7706 extern $gltype1 foo;
7707 int
7708 main ()
7709 {
7710
7711 ;
7712 return 0;
7713 }
7714 _ACEOF
7715 if ac_fn_c_try_compile "$LINENO"; then :
7716 eval gl_cv_type_${gltype}_suffix=\$glsuf
7717 fi
7718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7719 eval result=\$gl_cv_type_${gltype}_suffix
7720 test "$result" != no && break
7721 done
7722 fi
7723 eval ac_res=\$gl_cv_type_${gltype}_suffix
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7725 $as_echo "$ac_res" >&6; }
7726 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
7727 eval result=\$gl_cv_type_${gltype}_suffix
7728 test "$result" = no && result=
7729 eval ${GLTYPE}_SUFFIX=\$result
7730 cat >>confdefs.h <<_ACEOF
7731 #define ${GLTYPE}_SUFFIX $result
7732 _ACEOF
7733
7734 done
7735
7736
7737 fi
7738
7739
7740 for gltype in sig_atomic_t wchar_t wint_t ; do
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
7742 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
7743 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
7744 $as_echo_n "(cached) " >&6
7745 else
7746 eval gl_cv_type_${gltype}_suffix=no
7747 eval result=\$gl_cv_type_${gltype}_signed
7748 if test "$result" = yes; then
7749 glsufu=
7750 else
7751 glsufu=u
7752 fi
7753 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
7754 case $glsuf in
7755 '') gltype1='int';;
7756 l) gltype1='long int';;
7757 ll) gltype1='long long int';;
7758 i64) gltype1='__int64';;
7759 u) gltype1='unsigned int';;
7760 ul) gltype1='unsigned long int';;
7761 ull) gltype1='unsigned long long int';;
7762 ui64)gltype1='unsigned __int64';;
7763 esac
7764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7765 /* end confdefs.h. */
7766
7767 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7768 included before <wchar.h>. */
7769 #include <stddef.h>
7770 #include <signal.h>
7771 #if HAVE_WCHAR_H
7772 # include <stdio.h>
7773 # include <time.h>
7774 # include <wchar.h>
7775 #endif
7776
7777 extern $gltype foo;
7778 extern $gltype1 foo;
7779 int
7780 main ()
7781 {
7782
7783 ;
7784 return 0;
7785 }
7786 _ACEOF
7787 if ac_fn_c_try_compile "$LINENO"; then :
7788 eval gl_cv_type_${gltype}_suffix=\$glsuf
7789 fi
7790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7791 eval result=\$gl_cv_type_${gltype}_suffix
7792 test "$result" != no && break
7793 done
7794 fi
7795 eval ac_res=\$gl_cv_type_${gltype}_suffix
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7797 $as_echo "$ac_res" >&6; }
7798 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
7799 eval result=\$gl_cv_type_${gltype}_suffix
7800 test "$result" = no && result=
7801 eval ${GLTYPE}_SUFFIX=\$result
7802 cat >>confdefs.h <<_ACEOF
7803 #define ${GLTYPE}_SUFFIX $result
7804 _ACEOF
7805
7806 done
7807
7808
7809
7810 if test $BITSIZEOF_WINT_T -lt 32; then
7811 BITSIZEOF_WINT_T=32
7812 fi
7813
7814 STDINT_H=stdint.h
7815 fi
7816
7817 if test -n "$STDINT_H"; then
7818 GL_GENERATE_STDINT_H_TRUE=
7819 GL_GENERATE_STDINT_H_FALSE='#'
7820 else
7821 GL_GENERATE_STDINT_H_TRUE='#'
7822 GL_GENERATE_STDINT_H_FALSE=
7823 fi
7824
7825
7826
7827
7828
7829 GNULIB_IMAXABS=0;
7830 GNULIB_IMAXDIV=0;
7831 GNULIB_STRTOIMAX=0;
7832 GNULIB_STRTOUMAX=0;
7833 HAVE_DECL_IMAXABS=1;
7834 HAVE_DECL_IMAXDIV=1;
7835 HAVE_DECL_STRTOIMAX=1;
7836 HAVE_DECL_STRTOUMAX=1;
7837 REPLACE_STRTOIMAX=0;
7838 INT32_MAX_LT_INTMAX_MAX=1;
7839 INT64_MAX_EQ_LONG_MAX='defined _LP64';
7840 PRI_MACROS_BROKEN=0;
7841 PRIPTR_PREFIX=__PRIPTR_PREFIX;
7842 UINT32_MAX_LT_UINTMAX_MAX=1;
7843 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859 if test $gl_cv_have_include_next = yes; then
7860 gl_cv_next_inttypes_h='<'inttypes.h'>'
7861 else
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
7863 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
7864 if test "${gl_cv_next_inttypes_h+set}" = set; then :
7865 $as_echo_n "(cached) " >&6
7866 else
7867
7868 if test $ac_cv_header_inttypes_h = yes; then
7869
7870
7871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7872 /* end confdefs.h. */
7873 #include <inttypes.h>
7874
7875 _ACEOF
7876 case "$host_os" in
7877 aix*) gl_absname_cpp="$ac_cpp -C" ;;
7878 *) gl_absname_cpp="$ac_cpp" ;;
7879 esac
7880
7881 case "$host_os" in
7882 mingw*)
7883 gl_dirsep_regex='[/\\]'
7884 ;;
7885 *)
7886 gl_dirsep_regex='\/'
7887 ;;
7888 esac
7889 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
7890
7891 gl_header_literal_regex=`echo 'inttypes.h' \
7892 | sed -e "$gl_make_literal_regex_sed"`
7893 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
7894 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
7895 s|^/[^/]|//&|
7896 p
7897 q
7898 }'
7899 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7900 sed -n "$gl_absolute_header_sed"`'"'
7901 else
7902 gl_cv_next_inttypes_h='<'inttypes.h'>'
7903 fi
7904
7905
7906 fi
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
7908 $as_echo "$gl_cv_next_inttypes_h" >&6; }
7909 fi
7910 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
7911
7912 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
7913 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7914 gl_next_as_first_directive='<'inttypes.h'>'
7915 else
7916 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7917 gl_next_as_first_directive=$gl_cv_next_inttypes_h
7918 fi
7919 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
7920
7921
7922
7923
7924
7925
7926
7927
7928 for gl_func in imaxabs imaxdiv strtoimax strtoumax; do
7929 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
7931 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
7932 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
7933 $as_echo_n "(cached) " >&6
7934 else
7935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7936 /* end confdefs.h. */
7937 #include <inttypes.h>
7938
7939 int
7940 main ()
7941 {
7942 #undef $gl_func
7943 (void) $gl_func;
7944 ;
7945 return 0;
7946 }
7947 _ACEOF
7948 if ac_fn_c_try_compile "$LINENO"; then :
7949 eval "$as_gl_Symbol=yes"
7950 else
7951 eval "$as_gl_Symbol=no"
7952 fi
7953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7954 fi
7955 eval ac_res=\$$as_gl_Symbol
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7957 $as_echo "$ac_res" >&6; }
7958 eval as_val=\$$as_gl_Symbol
7959 if test "x$as_val" = x""yes; then :
7960 cat >>confdefs.h <<_ACEOF
7961 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
7962 _ACEOF
7963
7964 eval ac_cv_have_decl_$gl_func=yes
7965 fi
7966 done
7967
7968
7969
7970 for ac_header in inttypes.h
7971 do :
7972 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
7973 if test "x$ac_cv_header_inttypes_h" = x""yes; then :
7974 cat >>confdefs.h <<_ACEOF
7975 #define HAVE_INTTYPES_H 1
7976 _ACEOF
7977
7978 fi
7979
7980 done
7981
7982 if test $ac_cv_header_inttypes_h = yes; then
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
7984 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7985 if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
7986 $as_echo_n "(cached) " >&6
7987 else
7988
7989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7990 /* end confdefs.h. */
7991
7992 #include <inttypes.h>
7993 #ifdef PRId32
7994 char *p = PRId32;
7995 #endif
7996
7997 int
7998 main ()
7999 {
8000
8001 ;
8002 return 0;
8003 }
8004 _ACEOF
8005 if ac_fn_c_try_compile "$LINENO"; then :
8006 gt_cv_inttypes_pri_broken=no
8007 else
8008 gt_cv_inttypes_pri_broken=yes
8009 fi
8010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8011
8012 fi
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
8014 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
8015 fi
8016 if test "$gt_cv_inttypes_pri_broken" = yes; then
8017
8018 cat >>confdefs.h <<_ACEOF
8019 #define PRI_MACROS_BROKEN 1
8020 _ACEOF
8021
8022 PRI_MACROS_BROKEN=1
8023 else
8024 PRI_MACROS_BROKEN=0
8025 fi
8026
8027
8028
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
8030 $as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
8031 if test "${gl_cv_cc_double_expbit0+set}" = set; then :
8032 $as_echo_n "(cached) " >&6
8033 else
8034
8035 if test "$cross_compiling" = yes; then :
8036
8037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8038 /* end confdefs.h. */
8039
8040 #if defined arm || defined __arm || defined __arm__
8041 mixed_endianness
8042 #endif
8043
8044 _ACEOF
8045 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8046 $EGREP "mixed_endianness" >/dev/null 2>&1; then :
8047 gl_cv_cc_double_expbit0="unknown"
8048 else
8049
8050 :
8051 if test "${ac_cv_c_bigendian+set}" = set; then :
8052 $as_echo_n "(cached) " >&6
8053 else
8054 ac_cv_c_bigendian=unknown
8055 # See if we're dealing with a universal compiler.
8056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8057 /* end confdefs.h. */
8058 #ifndef __APPLE_CC__
8059 not a universal capable compiler
8060 #endif
8061 typedef int dummy;
8062
8063 _ACEOF
8064 if ac_fn_c_try_compile "$LINENO"; then :
8065
8066 # Check for potential -arch flags. It is not universal unless
8067 # there are at least two -arch flags with different values.
8068 ac_arch=
8069 ac_prev=
8070 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8071 if test -n "$ac_prev"; then
8072 case $ac_word in
8073 i?86 | x86_64 | ppc | ppc64)
8074 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8075 ac_arch=$ac_word
8076 else
8077 ac_cv_c_bigendian=universal
8078 break
8079 fi
8080 ;;
8081 esac
8082 ac_prev=
8083 elif test "x$ac_word" = "x-arch"; then
8084 ac_prev=arch
8085 fi
8086 done
8087 fi
8088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8089 if test $ac_cv_c_bigendian = unknown; then
8090 # See if sys/param.h defines the BYTE_ORDER macro.
8091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8092 /* end confdefs.h. */
8093 #include <sys/types.h>
8094 #include <sys/param.h>
8095
8096 int
8097 main ()
8098 {
8099 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8100 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8101 && LITTLE_ENDIAN)
8102 bogus endian macros
8103 #endif
8104
8105 ;
8106 return 0;
8107 }
8108 _ACEOF
8109 if ac_fn_c_try_compile "$LINENO"; then :
8110 # It does; now see whether it defined to BIG_ENDIAN or not.
8111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8112 /* end confdefs.h. */
8113 #include <sys/types.h>
8114 #include <sys/param.h>
8115
8116 int
8117 main ()
8118 {
8119 #if BYTE_ORDER != BIG_ENDIAN
8120 not big endian
8121 #endif
8122
8123 ;
8124 return 0;
8125 }
8126 _ACEOF
8127 if ac_fn_c_try_compile "$LINENO"; then :
8128 ac_cv_c_bigendian=yes
8129 else
8130 ac_cv_c_bigendian=no
8131 fi
8132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8133 fi
8134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8135 fi
8136 if test $ac_cv_c_bigendian = unknown; then
8137 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8139 /* end confdefs.h. */
8140 #include <limits.h>
8141
8142 int
8143 main ()
8144 {
8145 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8146 bogus endian macros
8147 #endif
8148
8149 ;
8150 return 0;
8151 }
8152 _ACEOF
8153 if ac_fn_c_try_compile "$LINENO"; then :
8154 # It does; now see whether it defined to _BIG_ENDIAN or not.
8155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8156 /* end confdefs.h. */
8157 #include <limits.h>
8158
8159 int
8160 main ()
8161 {
8162 #ifndef _BIG_ENDIAN
8163 not big endian
8164 #endif
8165
8166 ;
8167 return 0;
8168 }
8169 _ACEOF
8170 if ac_fn_c_try_compile "$LINENO"; then :
8171 ac_cv_c_bigendian=yes
8172 else
8173 ac_cv_c_bigendian=no
8174 fi
8175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8176 fi
8177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8178 fi
8179 if test $ac_cv_c_bigendian = unknown; then
8180 # Compile a test program.
8181 if test "$cross_compiling" = yes; then :
8182 # Try to guess by grepping values from an object file.
8183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8184 /* end confdefs.h. */
8185 short int ascii_mm[] =
8186 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8187 short int ascii_ii[] =
8188 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8189 int use_ascii (int i) {
8190 return ascii_mm[i] + ascii_ii[i];
8191 }
8192 short int ebcdic_ii[] =
8193 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8194 short int ebcdic_mm[] =
8195 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8196 int use_ebcdic (int i) {
8197 return ebcdic_mm[i] + ebcdic_ii[i];
8198 }
8199 extern int foo;
8200
8201 int
8202 main ()
8203 {
8204 return use_ascii (foo) == use_ebcdic (foo);
8205 ;
8206 return 0;
8207 }
8208 _ACEOF
8209 if ac_fn_c_try_compile "$LINENO"; then :
8210 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8211 ac_cv_c_bigendian=yes
8212 fi
8213 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8214 if test "$ac_cv_c_bigendian" = unknown; then
8215 ac_cv_c_bigendian=no
8216 else
8217 # finding both strings is unlikely to happen, but who knows?
8218 ac_cv_c_bigendian=unknown
8219 fi
8220 fi
8221 fi
8222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8223 else
8224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8225 /* end confdefs.h. */
8226 $ac_includes_default
8227 int
8228 main ()
8229 {
8230
8231 /* Are we little or big endian? From Harbison&Steele. */
8232 union
8233 {
8234 long int l;
8235 char c[sizeof (long int)];
8236 } u;
8237 u.l = 1;
8238 return u.c[sizeof (long int) - 1] == 1;
8239
8240 ;
8241 return 0;
8242 }
8243 _ACEOF
8244 if ac_fn_c_try_run "$LINENO"; then :
8245 ac_cv_c_bigendian=no
8246 else
8247 ac_cv_c_bigendian=yes
8248 fi
8249 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8250 conftest.$ac_objext conftest.beam conftest.$ac_ext
8251 fi
8252
8253 fi
8254 fi
8255 :
8256 case $ac_cv_c_bigendian in #(
8257 yes)
8258 gl_cv_cc_double_expbit0="word 0 bit 20";; #(
8259 no)
8260 gl_cv_cc_double_expbit0="word 1 bit 20" ;; #(
8261 universal)
8262
8263 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8264
8265 ;; #(
8266 *)
8267 gl_cv_cc_double_expbit0="unknown" ;;
8268 esac
8269
8270
8271 fi
8272 rm -f conftest*
8273
8274
8275 else
8276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8277 /* end confdefs.h. */
8278
8279 #include <float.h>
8280 #include <stddef.h>
8281 #include <stdio.h>
8282 #include <string.h>
8283 #define NWORDS \
8284 ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
8285 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
8286 static unsigned int ored_words[NWORDS];
8287 static unsigned int anded_words[NWORDS];
8288 static void add_to_ored_words (double x)
8289 {
8290 memory_double m;
8291 size_t i;
8292 /* Clear it first, in case sizeof (double) < sizeof (memory_double). */
8293 memset (&m, 0, sizeof (memory_double));
8294 m.value = x;
8295 for (i = 0; i < NWORDS; i++)
8296 {
8297 ored_words[i] |= m.word[i];
8298 anded_words[i] &= m.word[i];
8299 }
8300 }
8301 int main ()
8302 {
8303 size_t j;
8304 FILE *fp = fopen ("conftest.out", "w");
8305 if (fp == NULL)
8306 return 1;
8307 for (j = 0; j < NWORDS; j++)
8308 anded_words[j] = ~ (unsigned int) 0;
8309 add_to_ored_words (0.25);
8310 add_to_ored_words (0.5);
8311 add_to_ored_words (1.0);
8312 add_to_ored_words (2.0);
8313 add_to_ored_words (4.0);
8314 /* Remove bits that are common (e.g. if representation of the first mantissa
8315 bit is explicit). */
8316 for (j = 0; j < NWORDS; j++)
8317 ored_words[j] &= ~anded_words[j];
8318 /* Now find the nonzero word. */
8319 for (j = 0; j < NWORDS; j++)
8320 if (ored_words[j] != 0)
8321 break;
8322 if (j < NWORDS)
8323 {
8324 size_t i;
8325 for (i = j + 1; i < NWORDS; i++)
8326 if (ored_words[i] != 0)
8327 {
8328 fprintf (fp, "unknown");
8329 return (fclose (fp) != 0);
8330 }
8331 for (i = 0; ; i++)
8332 if ((ored_words[j] >> i) & 1)
8333 {
8334 fprintf (fp, "word %d bit %d", (int) j, (int) i);
8335 return (fclose (fp) != 0);
8336 }
8337 }
8338 fprintf (fp, "unknown");
8339 return (fclose (fp) != 0);
8340 }
8341
8342 _ACEOF
8343 if ac_fn_c_try_run "$LINENO"; then :
8344 gl_cv_cc_double_expbit0=`cat conftest.out`
8345 else
8346 gl_cv_cc_double_expbit0="unknown"
8347 fi
8348 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8349 conftest.$ac_objext conftest.beam conftest.$ac_ext
8350 fi
8351
8352 rm -f conftest.out
8353
8354 fi
8355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
8356 $as_echo "$gl_cv_cc_double_expbit0" >&6; }
8357 case "$gl_cv_cc_double_expbit0" in
8358 word*bit*)
8359 word=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
8360 bit=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
8361
8362 cat >>confdefs.h <<_ACEOF
8363 #define DBL_EXPBIT0_WORD $word
8364 _ACEOF
8365
8366
8367 cat >>confdefs.h <<_ACEOF
8368 #define DBL_EXPBIT0_BIT $bit
8369 _ACEOF
8370
8371 ;;
8372 esac
8373
8374
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8376 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8377 if test "${ac_cv_c_bigendian+set}" = set; then :
8378 $as_echo_n "(cached) " >&6
8379 else
8380 ac_cv_c_bigendian=unknown
8381 # See if we're dealing with a universal compiler.
8382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8383 /* end confdefs.h. */
8384 #ifndef __APPLE_CC__
8385 not a universal capable compiler
8386 #endif
8387 typedef int dummy;
8388
8389 _ACEOF
8390 if ac_fn_c_try_compile "$LINENO"; then :
8391
8392 # Check for potential -arch flags. It is not universal unless
8393 # there are at least two -arch flags with different values.
8394 ac_arch=
8395 ac_prev=
8396 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8397 if test -n "$ac_prev"; then
8398 case $ac_word in
8399 i?86 | x86_64 | ppc | ppc64)
8400 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8401 ac_arch=$ac_word
8402 else
8403 ac_cv_c_bigendian=universal
8404 break
8405 fi
8406 ;;
8407 esac
8408 ac_prev=
8409 elif test "x$ac_word" = "x-arch"; then
8410 ac_prev=arch
8411 fi
8412 done
8413 fi
8414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8415 if test $ac_cv_c_bigendian = unknown; then
8416 # See if sys/param.h defines the BYTE_ORDER macro.
8417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8418 /* end confdefs.h. */
8419 #include <sys/types.h>
8420 #include <sys/param.h>
8421
8422 int
8423 main ()
8424 {
8425 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8426 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8427 && LITTLE_ENDIAN)
8428 bogus endian macros
8429 #endif
8430
8431 ;
8432 return 0;
8433 }
8434 _ACEOF
8435 if ac_fn_c_try_compile "$LINENO"; then :
8436 # It does; now see whether it defined to BIG_ENDIAN or not.
8437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8438 /* end confdefs.h. */
8439 #include <sys/types.h>
8440 #include <sys/param.h>
8441
8442 int
8443 main ()
8444 {
8445 #if BYTE_ORDER != BIG_ENDIAN
8446 not big endian
8447 #endif
8448
8449 ;
8450 return 0;
8451 }
8452 _ACEOF
8453 if ac_fn_c_try_compile "$LINENO"; then :
8454 ac_cv_c_bigendian=yes
8455 else
8456 ac_cv_c_bigendian=no
8457 fi
8458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8459 fi
8460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8461 fi
8462 if test $ac_cv_c_bigendian = unknown; then
8463 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8465 /* end confdefs.h. */
8466 #include <limits.h>
8467
8468 int
8469 main ()
8470 {
8471 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8472 bogus endian macros
8473 #endif
8474
8475 ;
8476 return 0;
8477 }
8478 _ACEOF
8479 if ac_fn_c_try_compile "$LINENO"; then :
8480 # It does; now see whether it defined to _BIG_ENDIAN or not.
8481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8482 /* end confdefs.h. */
8483 #include <limits.h>
8484
8485 int
8486 main ()
8487 {
8488 #ifndef _BIG_ENDIAN
8489 not big endian
8490 #endif
8491
8492 ;
8493 return 0;
8494 }
8495 _ACEOF
8496 if ac_fn_c_try_compile "$LINENO"; then :
8497 ac_cv_c_bigendian=yes
8498 else
8499 ac_cv_c_bigendian=no
8500 fi
8501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8502 fi
8503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8504 fi
8505 if test $ac_cv_c_bigendian = unknown; then
8506 # Compile a test program.
8507 if test "$cross_compiling" = yes; then :
8508 # Try to guess by grepping values from an object file.
8509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8510 /* end confdefs.h. */
8511 short int ascii_mm[] =
8512 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8513 short int ascii_ii[] =
8514 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8515 int use_ascii (int i) {
8516 return ascii_mm[i] + ascii_ii[i];
8517 }
8518 short int ebcdic_ii[] =
8519 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8520 short int ebcdic_mm[] =
8521 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8522 int use_ebcdic (int i) {
8523 return ebcdic_mm[i] + ebcdic_ii[i];
8524 }
8525 extern int foo;
8526
8527 int
8528 main ()
8529 {
8530 return use_ascii (foo) == use_ebcdic (foo);
8531 ;
8532 return 0;
8533 }
8534 _ACEOF
8535 if ac_fn_c_try_compile "$LINENO"; then :
8536 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8537 ac_cv_c_bigendian=yes
8538 fi
8539 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8540 if test "$ac_cv_c_bigendian" = unknown; then
8541 ac_cv_c_bigendian=no
8542 else
8543 # finding both strings is unlikely to happen, but who knows?
8544 ac_cv_c_bigendian=unknown
8545 fi
8546 fi
8547 fi
8548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8549 else
8550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8551 /* end confdefs.h. */
8552 $ac_includes_default
8553 int
8554 main ()
8555 {
8556
8557 /* Are we little or big endian? From Harbison&Steele. */
8558 union
8559 {
8560 long int l;
8561 char c[sizeof (long int)];
8562 } u;
8563 u.l = 1;
8564 return u.c[sizeof (long int) - 1] == 1;
8565
8566 ;
8567 return 0;
8568 }
8569 _ACEOF
8570 if ac_fn_c_try_run "$LINENO"; then :
8571 ac_cv_c_bigendian=no
8572 else
8573 ac_cv_c_bigendian=yes
8574 fi
8575 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8576 conftest.$ac_objext conftest.beam conftest.$ac_ext
8577 fi
8578
8579 fi
8580 fi
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8582 $as_echo "$ac_cv_c_bigendian" >&6; }
8583 case $ac_cv_c_bigendian in #(
8584 yes)
8585 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8586 ;; #(
8587 no)
8588 ;; #(
8589 universal)
8590
8591 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8592
8593 ;; #(
8594 *)
8595 as_fn_error "unknown endianness
8596 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8597 esac
8598
8599
8600
8601
8602 case "$host_os" in
8603 mingw*)
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
8605 $as_echo_n "checking for 64-bit off_t... " >&6; }
8606 if test "${gl_cv_type_off_t_64+set}" = set; then :
8607 $as_echo_n "(cached) " >&6
8608 else
8609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8610 /* end confdefs.h. */
8611 #include <sys/types.h>
8612 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
8613
8614 int
8615 main ()
8616 {
8617
8618 ;
8619 return 0;
8620 }
8621 _ACEOF
8622 if ac_fn_c_try_compile "$LINENO"; then :
8623 gl_cv_type_off_t_64=yes
8624 else
8625 gl_cv_type_off_t_64=no
8626 fi
8627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8628
8629 fi
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
8631 $as_echo "$gl_cv_type_off_t_64" >&6; }
8632 if test $gl_cv_type_off_t_64 = no; then
8633 WINDOWS_64_BIT_OFF_T=1
8634 else
8635 WINDOWS_64_BIT_OFF_T=0
8636 fi
8637 WINDOWS_64_BIT_ST_SIZE=1
8638 ;;
8639 *)
8640 WINDOWS_64_BIT_OFF_T=0
8641 WINDOWS_64_BIT_ST_SIZE=0
8642 ;;
8643 esac
8644
8645
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
8647 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
8648 if test "${am_cv_langinfo_codeset+set}" = set; then :
8649 $as_echo_n "(cached) " >&6
8650 else
8651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8652 /* end confdefs.h. */
8653 #include <langinfo.h>
8654 int
8655 main ()
8656 {
8657 char* cs = nl_langinfo(CODESET); return !cs;
8658 ;
8659 return 0;
8660 }
8661 _ACEOF
8662 if ac_fn_c_try_link "$LINENO"; then :
8663 am_cv_langinfo_codeset=yes
8664 else
8665 am_cv_langinfo_codeset=no
8666 fi
8667 rm -f core conftest.err conftest.$ac_objext \
8668 conftest$ac_exeext conftest.$ac_ext
8669
8670 fi
8671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
8672 $as_echo "$am_cv_langinfo_codeset" >&6; }
8673 if test $am_cv_langinfo_codeset = yes; then
8674
8675 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
8676
8677 fi
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
8689 $as_echo_n "checking for working fcntl.h... " >&6; }
8690 if test "${gl_cv_header_working_fcntl_h+set}" = set; then :
8691 $as_echo_n "(cached) " >&6
8692 else
8693 if test "$cross_compiling" = yes; then :
8694 gl_cv_header_working_fcntl_h=cross-compiling
8695 else
8696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8697 /* end confdefs.h. */
8698 #include <sys/types.h>
8699 #include <sys/stat.h>
8700 #if HAVE_UNISTD_H
8701 # include <unistd.h>
8702 #else /* on Windows with MSVC */
8703 # include <io.h>
8704 # include <stdlib.h>
8705 # defined sleep(n) _sleep ((n) * 1000)
8706 #endif
8707 #include <fcntl.h>
8708 #ifndef O_NOATIME
8709 #define O_NOATIME 0
8710 #endif
8711 #ifndef O_NOFOLLOW
8712 #define O_NOFOLLOW 0
8713 #endif
8714 static int const constants[] =
8715 {
8716 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
8717 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
8718 };
8719
8720 int
8721 main ()
8722 {
8723
8724 int result = !constants;
8725 #if HAVE_SYMLINK
8726 {
8727 static char const sym[] = "conftest.sym";
8728 if (symlink ("/dev/null", sym) != 0)
8729 result |= 2;
8730 else
8731 {
8732 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
8733 if (fd >= 0)
8734 {
8735 close (fd);
8736 result |= 4;
8737 }
8738 }
8739 if (unlink (sym) != 0 || symlink (".", sym) != 0)
8740 result |= 2;
8741 else
8742 {
8743 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
8744 if (fd >= 0)
8745 {
8746 close (fd);
8747 result |= 4;
8748 }
8749 }
8750 unlink (sym);
8751 }
8752 #endif
8753 {
8754 static char const file[] = "confdefs.h";
8755 int fd = open (file, O_RDONLY | O_NOATIME);
8756 if (fd < 0)
8757 result |= 8;
8758 else
8759 {
8760 struct stat st0;
8761 if (fstat (fd, &st0) != 0)
8762 result |= 16;
8763 else
8764 {
8765 char c;
8766 sleep (1);
8767 if (read (fd, &c, 1) != 1)
8768 result |= 24;
8769 else
8770 {
8771 if (close (fd) != 0)
8772 result |= 32;
8773 else
8774 {
8775 struct stat st1;
8776 if (stat (file, &st1) != 0)
8777 result |= 40;
8778 else
8779 if (st0.st_atime != st1.st_atime)
8780 result |= 64;
8781 }
8782 }
8783 }
8784 }
8785 }
8786 return result;
8787 ;
8788 return 0;
8789 }
8790 _ACEOF
8791 if ac_fn_c_try_run "$LINENO"; then :
8792 gl_cv_header_working_fcntl_h=yes
8793 else
8794 case $? in #(
8795 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
8796 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
8797 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
8798 *) gl_cv_header_working_fcntl_h='no';;
8799 esac
8800 fi
8801 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8802 conftest.$ac_objext conftest.beam conftest.$ac_ext
8803 fi
8804
8805 fi
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
8807 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
8808
8809 case $gl_cv_header_working_fcntl_h in #(
8810 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
8811 *) ac_val=1;;
8812 esac
8813
8814 cat >>confdefs.h <<_ACEOF
8815 #define HAVE_WORKING_O_NOATIME $ac_val
8816 _ACEOF
8817
8818
8819 case $gl_cv_header_working_fcntl_h in #(
8820 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
8821 *) ac_val=1;;
8822 esac
8823
8824 cat >>confdefs.h <<_ACEOF
8825 #define HAVE_WORKING_O_NOFOLLOW $ac_val
8826 _ACEOF
8827
8828
8829 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
8830 if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then :
8831 ac_have_decl=1
8832 else
8833 ac_have_decl=0
8834 fi
8835
8836 cat >>confdefs.h <<_ACEOF
8837 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
8838 _ACEOF
8839
8840
8841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
8842 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
8843 if test "${ac_cv_gnu_library_2_1+set}" = set; then :
8844 $as_echo_n "(cached) " >&6
8845 else
8846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8847 /* end confdefs.h. */
8848
8849 #include <features.h>
8850 #ifdef __GNU_LIBRARY__
8851 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
8852 Lucky GNU user
8853 #endif
8854 #endif
8855 #ifdef __UCLIBC__
8856 Lucky user
8857 #endif
8858
8859 _ACEOF
8860 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8861 $EGREP "Lucky" >/dev/null 2>&1; then :
8862 ac_cv_gnu_library_2_1=yes
8863 else
8864 ac_cv_gnu_library_2_1=no
8865 fi
8866 rm -f conftest*
8867
8868
8869
8870 fi
8871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
8872 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
8873
8874 GLIBC21="$ac_cv_gnu_library_2_1"
8875
8876
8877
8878
8879
8880 GNULIB_BTOWC=0;
8881 GNULIB_WCTOB=0;
8882 GNULIB_MBSINIT=0;
8883 GNULIB_MBRTOWC=0;
8884 GNULIB_MBRLEN=0;
8885 GNULIB_MBSRTOWCS=0;
8886 GNULIB_MBSNRTOWCS=0;
8887 GNULIB_WCRTOMB=0;
8888 GNULIB_WCSRTOMBS=0;
8889 GNULIB_WCSNRTOMBS=0;
8890 GNULIB_WCWIDTH=0;
8891 GNULIB_WMEMCHR=0;
8892 GNULIB_WMEMCMP=0;
8893 GNULIB_WMEMCPY=0;
8894 GNULIB_WMEMMOVE=0;
8895 GNULIB_WMEMSET=0;
8896 GNULIB_WCSLEN=0;
8897 GNULIB_WCSNLEN=0;
8898 GNULIB_WCSCPY=0;
8899 GNULIB_WCPCPY=0;
8900 GNULIB_WCSNCPY=0;
8901 GNULIB_WCPNCPY=0;
8902 GNULIB_WCSCAT=0;
8903 GNULIB_WCSNCAT=0;
8904 GNULIB_WCSCMP=0;
8905 GNULIB_WCSNCMP=0;
8906 GNULIB_WCSCASECMP=0;
8907 GNULIB_WCSNCASECMP=0;
8908 GNULIB_WCSCOLL=0;
8909 GNULIB_WCSXFRM=0;
8910 GNULIB_WCSDUP=0;
8911 GNULIB_WCSCHR=0;
8912 GNULIB_WCSRCHR=0;
8913 GNULIB_WCSCSPN=0;
8914 GNULIB_WCSSPN=0;
8915 GNULIB_WCSPBRK=0;
8916 GNULIB_WCSSTR=0;
8917 GNULIB_WCSTOK=0;
8918 GNULIB_WCSWIDTH=0;
8919 HAVE_BTOWC=1;
8920 HAVE_MBSINIT=1;
8921 HAVE_MBRTOWC=1;
8922 HAVE_MBRLEN=1;
8923 HAVE_MBSRTOWCS=1;
8924 HAVE_MBSNRTOWCS=1;
8925 HAVE_WCRTOMB=1;
8926 HAVE_WCSRTOMBS=1;
8927 HAVE_WCSNRTOMBS=1;
8928 HAVE_WMEMCHR=1;
8929 HAVE_WMEMCMP=1;
8930 HAVE_WMEMCPY=1;
8931 HAVE_WMEMMOVE=1;
8932 HAVE_WMEMSET=1;
8933 HAVE_WCSLEN=1;
8934 HAVE_WCSNLEN=1;
8935 HAVE_WCSCPY=1;
8936 HAVE_WCPCPY=1;
8937 HAVE_WCSNCPY=1;
8938 HAVE_WCPNCPY=1;
8939 HAVE_WCSCAT=1;
8940 HAVE_WCSNCAT=1;
8941 HAVE_WCSCMP=1;
8942 HAVE_WCSNCMP=1;
8943 HAVE_WCSCASECMP=1;
8944 HAVE_WCSNCASECMP=1;
8945 HAVE_WCSCOLL=1;
8946 HAVE_WCSXFRM=1;
8947 HAVE_WCSDUP=1;
8948 HAVE_WCSCHR=1;
8949 HAVE_WCSRCHR=1;
8950 HAVE_WCSCSPN=1;
8951 HAVE_WCSSPN=1;
8952 HAVE_WCSPBRK=1;
8953 HAVE_WCSSTR=1;
8954 HAVE_WCSTOK=1;
8955 HAVE_WCSWIDTH=1;
8956 HAVE_DECL_WCTOB=1;
8957 HAVE_DECL_WCWIDTH=1;
8958 REPLACE_MBSTATE_T=0;
8959 REPLACE_BTOWC=0;
8960 REPLACE_WCTOB=0;
8961 REPLACE_MBSINIT=0;
8962 REPLACE_MBRTOWC=0;
8963 REPLACE_MBRLEN=0;
8964 REPLACE_MBSRTOWCS=0;
8965 REPLACE_MBSNRTOWCS=0;
8966 REPLACE_WCRTOMB=0;
8967 REPLACE_WCSRTOMBS=0;
8968 REPLACE_WCSNRTOMBS=0;
8969 REPLACE_WCWIDTH=0;
8970 REPLACE_WCSWIDTH=0;
8971
8972
8973
8974
8975
8976
8977
8978
8979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
8980 $as_echo_n "checking for a traditional japanese locale... " >&6; }
8981 if test "${gt_cv_locale_ja+set}" = set; then :
8982 $as_echo_n "(cached) " >&6
8983 else
8984
8985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8986 /* end confdefs.h. */
8987
8988 #include <locale.h>
8989 #include <time.h>
8990 #if HAVE_LANGINFO_CODESET
8991 # include <langinfo.h>
8992 #endif
8993 #include <stdlib.h>
8994 #include <string.h>
8995 struct tm t;
8996 char buf[16];
8997 int main ()
8998 {
8999 const char *p;
9000 /* Check whether the given locale name is recognized by the system. */
9001 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
9002 /* On native Windows, setlocale(category, "") looks at the system settings,
9003 not at the environment variables. Also, when an encoding suffix such
9004 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
9005 category of the locale to "C". */
9006 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
9007 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
9008 return 1;
9009 #else
9010 if (setlocale (LC_ALL, "") == NULL) return 1;
9011 #endif
9012 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
9013 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
9014 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
9015 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
9016 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
9017 some unit tests fail.
9018 On MirBSD 10, when an unsupported locale is specified, setlocale()
9019 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
9020 #if HAVE_LANGINFO_CODESET
9021 {
9022 const char *cs = nl_langinfo (CODESET);
9023 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
9024 || strcmp (cs, "UTF-8") == 0)
9025 return 1;
9026 }
9027 #endif
9028 #ifdef __CYGWIN__
9029 /* On Cygwin, avoid locale names without encoding suffix, because the
9030 locale_charset() function relies on the encoding suffix. Note that
9031 LC_ALL is set on the command line. */
9032 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
9033 #endif
9034 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales
9035 on Cygwin 1.5.x. */
9036 if (MB_CUR_MAX == 1)
9037 return 1;
9038 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
9039 This excludes the UTF-8 encoding (except on MirBSD). */
9040 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
9041 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
9042 for (p = buf; *p != '\0'; p++)
9043 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
9044 return 1;
9045 return 0;
9046 }
9047
9048 _ACEOF
9049 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9050 (eval $ac_link) 2>&5
9051 ac_status=$?
9052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9053 test $ac_status = 0; } && test -s conftest$ac_exeext; then
9054 case "$host_os" in
9055 # Handle native Windows specially, because there setlocale() interprets
9056 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
9057 # "fr" or "fra" as "French" or "French_France.1252",
9058 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
9059 # "ja" as "Japanese" or "Japanese_Japan.932",
9060 # and similar.
9061 mingw*)
9062 # Note that on native Windows, the Japanese locale is
9063 # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
9064 # cannot use it here.
9065 gt_cv_locale_ja=none
9066 ;;
9067 *)
9068 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
9069 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
9070 # configure script would override the LC_ALL setting. Likewise for
9071 # LC_CTYPE, which is also set at the beginning of the configure script.
9072 # Test for the AIX locale name.
9073 if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9074 gt_cv_locale_ja=ja_JP
9075 else
9076 # Test for the locale name with explicit encoding suffix.
9077 if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9078 gt_cv_locale_ja=ja_JP.EUC-JP
9079 else
9080 # Test for the HP-UX, OSF/1, NetBSD locale name.
9081 if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9082 gt_cv_locale_ja=ja_JP.eucJP
9083 else
9084 # Test for the IRIX, FreeBSD locale name.
9085 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9086 gt_cv_locale_ja=ja_JP.EUC
9087 else
9088 # Test for the Solaris 7 locale name.
9089 if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9090 gt_cv_locale_ja=ja
9091 else
9092 # Special test for NetBSD 1.6.
9093 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
9094 gt_cv_locale_ja=ja_JP.eucJP
9095 else
9096 # None found.
9097 gt_cv_locale_ja=none
9098 fi
9099 fi
9100 fi
9101 fi
9102 fi
9103 fi
9104 ;;
9105 esac
9106 fi
9107 rm -fr conftest*
9108
9109 fi
9110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
9111 $as_echo "$gt_cv_locale_ja" >&6; }
9112 LOCALE_JA=$gt_cv_locale_ja
9113
9114
9115
9116
9117
9118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
9119 $as_echo_n "checking for a transitional chinese locale... " >&6; }
9120 if test "${gt_cv_locale_zh_CN+set}" = set; then :
9121 $as_echo_n "(cached) " >&6
9122 else
9123
9124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9125 /* end confdefs.h. */
9126
9127 #include <locale.h>
9128 #include <stdlib.h>
9129 #include <time.h>
9130 #if HAVE_LANGINFO_CODESET
9131 # include <langinfo.h>
9132 #endif
9133 #include <stdlib.h>
9134 #include <string.h>
9135 struct tm t;
9136 char buf[16];
9137 int main ()
9138 {
9139 const char *p;
9140 /* Check whether the given locale name is recognized by the system. */
9141 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
9142 /* On native Windows, setlocale(category, "") looks at the system settings,
9143 not at the environment variables. Also, when an encoding suffix such
9144 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
9145 category of the locale to "C". */
9146 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
9147 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
9148 return 1;
9149 #else
9150 if (setlocale (LC_ALL, "") == NULL) return 1;
9151 #endif
9152 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
9153 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
9154 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
9155 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
9156 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
9157 some unit tests fail.
9158 On MirBSD 10, when an unsupported locale is specified, setlocale()
9159 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
9160 #if HAVE_LANGINFO_CODESET
9161 {
9162 const char *cs = nl_langinfo (CODESET);
9163 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
9164 || strcmp (cs, "UTF-8") == 0)
9165 return 1;
9166 }
9167 #endif
9168 #ifdef __CYGWIN__
9169 /* On Cygwin, avoid locale names without encoding suffix, because the
9170 locale_charset() function relies on the encoding suffix. Note that
9171 LC_ALL is set on the command line. */
9172 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
9173 #endif
9174 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
9175 This excludes the UTF-8 encoding (except on MirBSD). */
9176 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
9177 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
9178 for (p = buf; *p != '\0'; p++)
9179 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
9180 return 1;
9181 /* Check whether a typical GB18030 multibyte sequence is recognized as a
9182 single wide character. This excludes the GB2312 and GBK encodings. */
9183 if (mblen ("\203\062\332\066", 5) != 4)
9184 return 1;
9185 return 0;
9186 }
9187
9188 _ACEOF
9189 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9190 (eval $ac_link) 2>&5
9191 ac_status=$?
9192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9193 test $ac_status = 0; } && test -s conftest$ac_exeext; then
9194 case "$host_os" in
9195 # Handle native Windows specially, because there setlocale() interprets
9196 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
9197 # "fr" or "fra" as "French" or "French_France.1252",
9198 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
9199 # "ja" as "Japanese" or "Japanese_Japan.932",
9200 # and similar.
9201 mingw*)
9202 # Test for the hypothetical native Windows locale name.
9203 if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9204 gt_cv_locale_zh_CN=Chinese_China.54936
9205 else
9206 # None found.
9207 gt_cv_locale_zh_CN=none
9208 fi
9209 ;;
9210 solaris2.8)
9211 # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
9212 # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
9213 # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
9214 gt_cv_locale_zh_CN=none
9215 ;;
9216 *)
9217 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
9218 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
9219 # configure script would override the LC_ALL setting. Likewise for
9220 # LC_CTYPE, which is also set at the beginning of the configure script.
9221 # Test for the locale name without encoding suffix.
9222 if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9223 gt_cv_locale_zh_CN=zh_CN
9224 else
9225 # Test for the locale name with explicit encoding suffix.
9226 if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9227 gt_cv_locale_zh_CN=zh_CN.GB18030
9228 else
9229 # None found.
9230 gt_cv_locale_zh_CN=none
9231 fi
9232 fi
9233 ;;
9234 esac
9235 else
9236 # If there was a link error, due to mblen(), the system is so old that
9237 # it certainly doesn't have a chinese locale.
9238 gt_cv_locale_zh_CN=none
9239 fi
9240 rm -fr conftest*
9241
9242 fi
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
9244 $as_echo "$gt_cv_locale_zh_CN" >&6; }
9245 LOCALE_ZH_CN=$gt_cv_locale_zh_CN
9246
9247
9248
9249
9250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
9251 $as_echo_n "checking for a french Unicode locale... " >&6; }
9252 if test "${gt_cv_locale_fr_utf8+set}" = set; then :
9253 $as_echo_n "(cached) " >&6
9254 else
9255
9256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9257 /* end confdefs.h. */
9258
9259 #include <locale.h>
9260 #include <time.h>
9261 #if HAVE_LANGINFO_CODESET
9262 # include <langinfo.h>
9263 #endif
9264 #include <stdlib.h>
9265 #include <string.h>
9266 struct tm t;
9267 char buf[16];
9268 int main () {
9269 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
9270 imitates locale dependent behaviour by looking at the environment
9271 variables, and all locales use the UTF-8 encoding. */
9272 #if !(defined __BEOS__ || defined __HAIKU__)
9273 /* Check whether the given locale name is recognized by the system. */
9274 # if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
9275 /* On native Windows, setlocale(category, "") looks at the system settings,
9276 not at the environment variables. Also, when an encoding suffix such
9277 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
9278 category of the locale to "C". */
9279 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
9280 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
9281 return 1;
9282 # else
9283 if (setlocale (LC_ALL, "") == NULL) return 1;
9284 # endif
9285 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
9286 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
9287 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
9288 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
9289 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
9290 some unit tests fail. */
9291 # if HAVE_LANGINFO_CODESET
9292 {
9293 const char *cs = nl_langinfo (CODESET);
9294 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
9295 return 1;
9296 }
9297 # endif
9298 # ifdef __CYGWIN__
9299 /* On Cygwin, avoid locale names without encoding suffix, because the
9300 locale_charset() function relies on the encoding suffix. Note that
9301 LC_ALL is set on the command line. */
9302 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
9303 # endif
9304 /* Check whether in the abbreviation of the second month, the second
9305 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
9306 two bytes long, with UTF-8 encoding. */
9307 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
9308 if (strftime (buf, sizeof (buf), "%b", &t) < 4
9309 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
9310 return 1;
9311 #endif
9312 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
9313 /* Check whether the decimal separator is a comma.
9314 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
9315 are nl_langinfo(RADIXCHAR) are both ".". */
9316 if (localeconv () ->decimal_point[0] != ',') return 1;
9317 #endif
9318 return 0;
9319 }
9320
9321 _ACEOF
9322 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9323 (eval $ac_link) 2>&5
9324 ac_status=$?
9325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9326 test $ac_status = 0; } && test -s conftest$ac_exeext; then
9327 case "$host_os" in
9328 # Handle native Windows specially, because there setlocale() interprets
9329 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
9330 # "fr" or "fra" as "French" or "French_France.1252",
9331 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
9332 # "ja" as "Japanese" or "Japanese_Japan.932",
9333 # and similar.
9334 mingw*)
9335 # Test for the hypothetical native Windows locale name.
9336 if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9337 gt_cv_locale_fr_utf8=French_France.65001
9338 else
9339 # None found.
9340 gt_cv_locale_fr_utf8=none
9341 fi
9342 ;;
9343 *)
9344 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
9345 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
9346 # configure script would override the LC_ALL setting. Likewise for
9347 # LC_CTYPE, which is also set at the beginning of the configure script.
9348 # Test for the usual locale name.
9349 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9350 gt_cv_locale_fr_utf8=fr_FR
9351 else
9352 # Test for the locale name with explicit encoding suffix.
9353 if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9354 gt_cv_locale_fr_utf8=fr_FR.UTF-8
9355 else
9356 # Test for the Solaris 7 locale name.
9357 if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9358 gt_cv_locale_fr_utf8=fr.UTF-8
9359 else
9360 # None found.
9361 gt_cv_locale_fr_utf8=none
9362 fi
9363 fi
9364 fi
9365 ;;
9366 esac
9367 fi
9368 rm -fr conftest*
9369
9370 fi
9371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
9372 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
9373 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
9374
9375
9376
9377
9378
9379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
9380 $as_echo_n "checking for a traditional french locale... " >&6; }
9381 if test "${gt_cv_locale_fr+set}" = set; then :
9382 $as_echo_n "(cached) " >&6
9383 else
9384
9385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9386 /* end confdefs.h. */
9387
9388 #include <locale.h>
9389 #include <time.h>
9390 #if HAVE_LANGINFO_CODESET
9391 # include <langinfo.h>
9392 #endif
9393 #include <stdlib.h>
9394 #include <string.h>
9395 struct tm t;
9396 char buf[16];
9397 int main () {
9398 /* Check whether the given locale name is recognized by the system. */
9399 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
9400 /* On native Windows, setlocale(category, "") looks at the system settings,
9401 not at the environment variables. Also, when an encoding suffix such
9402 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
9403 category of the locale to "C". */
9404 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
9405 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
9406 return 1;
9407 #else
9408 if (setlocale (LC_ALL, "") == NULL) return 1;
9409 #endif
9410 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
9411 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
9412 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
9413 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
9414 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
9415 some unit tests fail.
9416 On MirBSD 10, when an unsupported locale is specified, setlocale()
9417 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
9418 #if HAVE_LANGINFO_CODESET
9419 {
9420 const char *cs = nl_langinfo (CODESET);
9421 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
9422 || strcmp (cs, "UTF-8") == 0)
9423 return 1;
9424 }
9425 #endif
9426 #ifdef __CYGWIN__
9427 /* On Cygwin, avoid locale names without encoding suffix, because the
9428 locale_charset() function relies on the encoding suffix. Note that
9429 LC_ALL is set on the command line. */
9430 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
9431 #endif
9432 /* Check whether in the abbreviation of the second month, the second
9433 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
9434 one byte long. This excludes the UTF-8 encoding. */
9435 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
9436 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
9437 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
9438 /* Check whether the decimal separator is a comma.
9439 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
9440 are nl_langinfo(RADIXCHAR) are both ".". */
9441 if (localeconv () ->decimal_point[0] != ',') return 1;
9442 #endif
9443 return 0;
9444 }
9445
9446 _ACEOF
9447 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9448 (eval $ac_link) 2>&5
9449 ac_status=$?
9450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9451 test $ac_status = 0; } && test -s conftest$ac_exeext; then
9452 case "$host_os" in
9453 # Handle native Windows specially, because there setlocale() interprets
9454 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
9455 # "fr" or "fra" as "French" or "French_France.1252",
9456 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
9457 # "ja" as "Japanese" or "Japanese_Japan.932",
9458 # and similar.
9459 mingw*)
9460 # Test for the native Windows locale name.
9461 if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9462 gt_cv_locale_fr=French_France.1252
9463 else
9464 # None found.
9465 gt_cv_locale_fr=none
9466 fi
9467 ;;
9468 *)
9469 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
9470 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
9471 # configure script would override the LC_ALL setting. Likewise for
9472 # LC_CTYPE, which is also set at the beginning of the configure script.
9473 # Test for the usual locale name.
9474 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9475 gt_cv_locale_fr=fr_FR
9476 else
9477 # Test for the locale name with explicit encoding suffix.
9478 if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9479 gt_cv_locale_fr=fr_FR.ISO-8859-1
9480 else
9481 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
9482 if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9483 gt_cv_locale_fr=fr_FR.ISO8859-1
9484 else
9485 # Test for the HP-UX locale name.
9486 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9487 gt_cv_locale_fr=fr_FR.iso88591
9488 else
9489 # Test for the Solaris 7 locale name.
9490 if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9491 gt_cv_locale_fr=fr
9492 else
9493 # None found.
9494 gt_cv_locale_fr=none
9495 fi
9496 fi
9497 fi
9498 fi
9499 fi
9500 ;;
9501 esac
9502 fi
9503 rm -fr conftest*
9504
9505 fi
9506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
9507 $as_echo "$gt_cv_locale_fr" >&6; }
9508 LOCALE_FR=$gt_cv_locale_fr
9509
9510
9511
9512
9513
9514
9515
9516 GNULIB_FFSL=0;
9517 GNULIB_FFSLL=0;
9518 GNULIB_MEMCHR=0;
9519 GNULIB_MEMMEM=0;
9520 GNULIB_MEMPCPY=0;
9521 GNULIB_MEMRCHR=0;
9522 GNULIB_RAWMEMCHR=0;
9523 GNULIB_STPCPY=0;
9524 GNULIB_STPNCPY=0;
9525 GNULIB_STRCHRNUL=0;
9526 GNULIB_STRDUP=0;
9527 GNULIB_STRNCAT=0;
9528 GNULIB_STRNDUP=0;
9529 GNULIB_STRNLEN=0;
9530 GNULIB_STRPBRK=0;
9531 GNULIB_STRSEP=0;
9532 GNULIB_STRSTR=0;
9533 GNULIB_STRCASESTR=0;
9534 GNULIB_STRTOK_R=0;
9535 GNULIB_MBSLEN=0;
9536 GNULIB_MBSNLEN=0;
9537 GNULIB_MBSCHR=0;
9538 GNULIB_MBSRCHR=0;
9539 GNULIB_MBSSTR=0;
9540 GNULIB_MBSCASECMP=0;
9541 GNULIB_MBSNCASECMP=0;
9542 GNULIB_MBSPCASECMP=0;
9543 GNULIB_MBSCASESTR=0;
9544 GNULIB_MBSCSPN=0;
9545 GNULIB_MBSPBRK=0;
9546 GNULIB_MBSSPN=0;
9547 GNULIB_MBSSEP=0;
9548 GNULIB_MBSTOK_R=0;
9549 GNULIB_STRERROR=0;
9550 GNULIB_STRERROR_R=0;
9551 GNULIB_STRSIGNAL=0;
9552 GNULIB_STRVERSCMP=0;
9553 HAVE_MBSLEN=0;
9554 HAVE_FFSL=1;
9555 HAVE_FFSLL=1;
9556 HAVE_MEMCHR=1;
9557 HAVE_DECL_MEMMEM=1;
9558 HAVE_MEMPCPY=1;
9559 HAVE_DECL_MEMRCHR=1;
9560 HAVE_RAWMEMCHR=1;
9561 HAVE_STPCPY=1;
9562 HAVE_STPNCPY=1;
9563 HAVE_STRCHRNUL=1;
9564 HAVE_DECL_STRDUP=1;
9565 HAVE_DECL_STRNDUP=1;
9566 HAVE_DECL_STRNLEN=1;
9567 HAVE_STRPBRK=1;
9568 HAVE_STRSEP=1;
9569 HAVE_STRCASESTR=1;
9570 HAVE_DECL_STRTOK_R=1;
9571 HAVE_DECL_STRERROR_R=1;
9572 HAVE_DECL_STRSIGNAL=1;
9573 HAVE_STRVERSCMP=1;
9574 REPLACE_MEMCHR=0;
9575 REPLACE_MEMMEM=0;
9576 REPLACE_STPNCPY=0;
9577 REPLACE_STRDUP=0;
9578 REPLACE_STRSTR=0;
9579 REPLACE_STRCASESTR=0;
9580 REPLACE_STRCHRNUL=0;
9581 REPLACE_STRERROR=0;
9582 REPLACE_STRERROR_R=0;
9583 REPLACE_STRNCAT=0;
9584 REPLACE_STRNDUP=0;
9585 REPLACE_STRNLEN=0;
9586 REPLACE_STRSIGNAL=0;
9587 REPLACE_STRTOK_R=0;
9588 UNDEFINE_STRTOK_R=0;
9589
9590
9591
9592
9593
9594 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
9595 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
9596 # irrelevant for anonymous mappings.
9597 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9598 if test "x$ac_cv_func_mmap" = x""yes; then :
9599 gl_have_mmap=yes
9600 else
9601 gl_have_mmap=no
9602 fi
9603
9604
9605 # Try to allow MAP_ANONYMOUS.
9606 gl_have_mmap_anonymous=no
9607 if test $gl_have_mmap = yes; then
9608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
9609 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
9610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9611 /* end confdefs.h. */
9612
9613 #include <sys/mman.h>
9614 #ifdef MAP_ANONYMOUS
9615 I cannot identify this map
9616 #endif
9617
9618 _ACEOF
9619 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9620 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
9621 gl_have_mmap_anonymous=yes
9622 fi
9623 rm -f conftest*
9624
9625 if test $gl_have_mmap_anonymous != yes; then
9626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9627 /* end confdefs.h. */
9628
9629 #include <sys/mman.h>
9630 #ifdef MAP_ANON
9631 I cannot identify this map
9632 #endif
9633
9634 _ACEOF
9635 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9636 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
9637
9638 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
9639
9640 gl_have_mmap_anonymous=yes
9641 fi
9642 rm -f conftest*
9643
9644 fi
9645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
9646 $as_echo "$gl_have_mmap_anonymous" >&6; }
9647 if test $gl_have_mmap_anonymous = yes; then
9648
9649 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
9650
9651 fi
9652 fi
9653
9654
9655
9656
9657
9658
9659 if test $HAVE_MEMCHR = 1; then
9660 # Detect platform-specific bugs in some versions of glibc:
9661 # memchr should not dereference anything with length 0
9662 # http://bugzilla.redhat.com/499689
9663 # memchr should not dereference overestimated length after a match
9664 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
9665 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
9666 # Assume that memchr works on platforms that lack mprotect.
9667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
9668 $as_echo_n "checking whether memchr works... " >&6; }
9669 if test "${gl_cv_func_memchr_works+set}" = set; then :
9670 $as_echo_n "(cached) " >&6
9671 else
9672 if test "$cross_compiling" = yes; then :
9673 gl_cv_func_memchr_works="guessing no"
9674 else
9675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9676 /* end confdefs.h. */
9677
9678 #include <string.h>
9679 #if HAVE_SYS_MMAN_H
9680 # include <fcntl.h>
9681 # include <unistd.h>
9682 # include <sys/types.h>
9683 # include <sys/mman.h>
9684 # ifndef MAP_FILE
9685 # define MAP_FILE 0
9686 # endif
9687 #endif
9688
9689 int
9690 main ()
9691 {
9692
9693 int result = 0;
9694 char *fence = NULL;
9695 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
9696 # if HAVE_MAP_ANONYMOUS
9697 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
9698 const int fd = -1;
9699 # else /* !HAVE_MAP_ANONYMOUS */
9700 const int flags = MAP_FILE | MAP_PRIVATE;
9701 int fd = open ("/dev/zero", O_RDONLY, 0666);
9702 if (fd >= 0)
9703 # endif
9704 {
9705 int pagesize = getpagesize ();
9706 char *two_pages =
9707 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
9708 flags, fd, 0);
9709 if (two_pages != (char *)(-1)
9710 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
9711 fence = two_pages + pagesize;
9712 }
9713 #endif
9714 if (fence)
9715 {
9716 if (memchr (fence, 0, 0))
9717 result |= 1;
9718 strcpy (fence - 9, "12345678");
9719 if (memchr (fence - 9, 0, 79) != fence - 1)
9720 result |= 2;
9721 if (memchr (fence - 1, 0, 3) != fence - 1)
9722 result |= 4;
9723 }
9724 return result;
9725
9726 ;
9727 return 0;
9728 }
9729 _ACEOF
9730 if ac_fn_c_try_run "$LINENO"; then :
9731 gl_cv_func_memchr_works=yes
9732 else
9733 gl_cv_func_memchr_works=no
9734 fi
9735 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9736 conftest.$ac_objext conftest.beam conftest.$ac_ext
9737 fi
9738
9739 fi
9740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
9741 $as_echo "$gl_cv_func_memchr_works" >&6; }
9742 if test "$gl_cv_func_memchr_works" != yes; then
9743 REPLACE_MEMCHR=1
9744 fi
9745 fi
9746
9747 ac_fn_c_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
9748 if test "x$ac_cv_have_decl_memmem" = x""yes; then :
9749 ac_have_decl=1
9750 else
9751 ac_have_decl=0
9752 fi
9753
9754 cat >>confdefs.h <<_ACEOF
9755 #define HAVE_DECL_MEMMEM $ac_have_decl
9756 _ACEOF
9757
9758
9759
9760
9761
9762 for ac_func in memmem
9763 do :
9764 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
9765 if test "x$ac_cv_func_memmem" = x""yes; then :
9766 cat >>confdefs.h <<_ACEOF
9767 #define HAVE_MEMMEM 1
9768 _ACEOF
9769
9770 fi
9771 done
9772
9773 if test $ac_cv_func_memmem = yes; then
9774 HAVE_MEMMEM=1
9775 else
9776 HAVE_MEMMEM=0
9777 fi
9778
9779 if test $ac_cv_have_decl_memmem = no; then
9780 HAVE_DECL_MEMMEM=0
9781 else
9782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
9783 $as_echo_n "checking whether memmem works... " >&6; }
9784 if test "${gl_cv_func_memmem_works_always+set}" = set; then :
9785 $as_echo_n "(cached) " >&6
9786 else
9787 if test "$cross_compiling" = yes; then :
9788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9789 /* end confdefs.h. */
9790
9791 #ifdef __GNU_LIBRARY__
9792 #include <features.h>
9793 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
9794 || __GLIBC_MINOR__ > 12)) \
9795 || (__GLIBC__ > 2)) \
9796 || defined __UCLIBC__
9797 Lucky user
9798 #endif
9799 #elif defined __CYGWIN__
9800 #include <cygwin/version.h>
9801 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
9802 Lucky user
9803 #endif
9804 #else
9805 Lucky user
9806 #endif
9807
9808 _ACEOF
9809 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9810 $EGREP "Lucky user" >/dev/null 2>&1; then :
9811 gl_cv_func_memmem_works_always="guessing yes"
9812 else
9813 gl_cv_func_memmem_works_always="guessing no"
9814 fi
9815 rm -f conftest*
9816
9817
9818 else
9819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9820 /* end confdefs.h. */
9821
9822 #include <string.h> /* for memmem */
9823 #define P "_EF_BF_BD"
9824 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
9825 #define NEEDLE P P P P P
9826
9827 int
9828 main ()
9829 {
9830
9831 int result = 0;
9832 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
9833 result |= 1;
9834 /* Check for empty needle behavior. */
9835 {
9836 const char *haystack = "AAA";
9837 if (memmem (haystack, 3, NULL, 0) != haystack)
9838 result |= 2;
9839 }
9840 return result;
9841
9842 ;
9843 return 0;
9844 }
9845 _ACEOF
9846 if ac_fn_c_try_run "$LINENO"; then :
9847 gl_cv_func_memmem_works_always=yes
9848 else
9849 gl_cv_func_memmem_works_always=no
9850 fi
9851 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9852 conftest.$ac_objext conftest.beam conftest.$ac_ext
9853 fi
9854
9855
9856 fi
9857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
9858 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
9859 case "$gl_cv_func_memmem_works_always" in
9860 *yes) ;;
9861 *)
9862 REPLACE_MEMMEM=1
9863 ;;
9864 esac
9865 fi
9866 :
9867
9868
9869
9870
9871
9872
9873 GNULIB_FCHMODAT=0;
9874 GNULIB_FSTAT=0;
9875 GNULIB_FSTATAT=0;
9876 GNULIB_FUTIMENS=0;
9877 GNULIB_LCHMOD=0;
9878 GNULIB_LSTAT=0;
9879 GNULIB_MKDIRAT=0;
9880 GNULIB_MKFIFO=0;
9881 GNULIB_MKFIFOAT=0;
9882 GNULIB_MKNOD=0;
9883 GNULIB_MKNODAT=0;
9884 GNULIB_STAT=0;
9885 GNULIB_UTIMENSAT=0;
9886 HAVE_FCHMODAT=1;
9887 HAVE_FSTATAT=1;
9888 HAVE_FUTIMENS=1;
9889 HAVE_LCHMOD=1;
9890 HAVE_LSTAT=1;
9891 HAVE_MKDIRAT=1;
9892 HAVE_MKFIFO=1;
9893 HAVE_MKFIFOAT=1;
9894 HAVE_MKNOD=1;
9895 HAVE_MKNODAT=1;
9896 HAVE_UTIMENSAT=1;
9897 REPLACE_FSTAT=0;
9898 REPLACE_FSTATAT=0;
9899 REPLACE_FUTIMENS=0;
9900 REPLACE_LSTAT=0;
9901 REPLACE_MKDIR=0;
9902 REPLACE_MKFIFO=0;
9903 REPLACE_MKNOD=0;
9904 REPLACE_STAT=0;
9905 REPLACE_UTIMENSAT=0;
9906
9907
9908
9909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
9910 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
9911 if test "${ac_cv_header_stdbool_h+set}" = set; then :
9912 $as_echo_n "(cached) " >&6
9913 else
9914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9915 /* end confdefs.h. */
9916
9917 #include <stdbool.h>
9918 #ifndef bool
9919 "error: bool is not defined"
9920 #endif
9921 #ifndef false
9922 "error: false is not defined"
9923 #endif
9924 #if false
9925 "error: false is not 0"
9926 #endif
9927 #ifndef true
9928 "error: true is not defined"
9929 #endif
9930 #if true != 1
9931 "error: true is not 1"
9932 #endif
9933 #ifndef __bool_true_false_are_defined
9934 "error: __bool_true_false_are_defined is not defined"
9935 #endif
9936
9937 struct s { _Bool s: 1; _Bool t; } s;
9938
9939 char a[true == 1 ? 1 : -1];
9940 char b[false == 0 ? 1 : -1];
9941 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
9942 char d[(bool) 0.5 == true ? 1 : -1];
9943 /* See body of main program for 'e'. */
9944 char f[(_Bool) 0.0 == false ? 1 : -1];
9945 char g[true];
9946 char h[sizeof (_Bool)];
9947 char i[sizeof s.t];
9948 enum { j = false, k = true, l = false * true, m = true * 256 };
9949 /* The following fails for
9950 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
9951 _Bool n[m];
9952 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
9953 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
9954 /* Catch a bug in an HP-UX C compiler. See
9955 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
9956 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
9957 */
9958 _Bool q = true;
9959 _Bool *pq = &q;
9960
9961 int
9962 main ()
9963 {
9964
9965 bool e = &s;
9966 *pq |= q;
9967 *pq |= ! q;
9968 /* Refer to every declared value, to avoid compiler optimizations. */
9969 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
9970 + !m + !n + !o + !p + !q + !pq);
9971
9972 ;
9973 return 0;
9974 }
9975 _ACEOF
9976 if ac_fn_c_try_compile "$LINENO"; then :
9977 ac_cv_header_stdbool_h=yes
9978 else
9979 ac_cv_header_stdbool_h=no
9980 fi
9981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9982 fi
9983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
9984 $as_echo "$ac_cv_header_stdbool_h" >&6; }
9985 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
9986 if test "x$ac_cv_type__Bool" = x""yes; then :
9987
9988 cat >>confdefs.h <<_ACEOF
9989 #define HAVE__BOOL 1
9990 _ACEOF
9991
9992
9993 fi
9994
9995
9996
9997 REPLACE_NULL=0;
9998 HAVE_WCHAR_T=1;
9999
10000
10001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
10002 $as_echo_n "checking for wchar_t... " >&6; }
10003 if test "${gt_cv_c_wchar_t+set}" = set; then :
10004 $as_echo_n "(cached) " >&6
10005 else
10006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10007 /* end confdefs.h. */
10008 #include <stddef.h>
10009 wchar_t foo = (wchar_t)'\0';
10010 int
10011 main ()
10012 {
10013
10014 ;
10015 return 0;
10016 }
10017 _ACEOF
10018 if ac_fn_c_try_compile "$LINENO"; then :
10019 gt_cv_c_wchar_t=yes
10020 else
10021 gt_cv_c_wchar_t=no
10022 fi
10023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10024 fi
10025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
10026 $as_echo "$gt_cv_c_wchar_t" >&6; }
10027 if test $gt_cv_c_wchar_t = yes; then
10028
10029 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
10030
10031 fi
10032
10033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
10034 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
10035 if test "${ac_cv_c_restrict+set}" = set; then :
10036 $as_echo_n "(cached) " >&6
10037 else
10038 ac_cv_c_restrict=no
10039 # The order here caters to the fact that C++ does not require restrict.
10040 for ac_kw in __restrict __restrict__ _Restrict restrict; do
10041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10042 /* end confdefs.h. */
10043 typedef int * int_ptr;
10044 int foo (int_ptr $ac_kw ip) {
10045 return ip[0];
10046 }
10047 int
10048 main ()
10049 {
10050 int s[1];
10051 int * $ac_kw t = s;
10052 t[0] = 0;
10053 return foo(t)
10054 ;
10055 return 0;
10056 }
10057 _ACEOF
10058 if ac_fn_c_try_compile "$LINENO"; then :
10059 ac_cv_c_restrict=$ac_kw
10060 fi
10061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10062 test "$ac_cv_c_restrict" != no && break
10063 done
10064
10065 fi
10066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
10067 $as_echo "$ac_cv_c_restrict" >&6; }
10068
10069 case $ac_cv_c_restrict in
10070 restrict) ;;
10071 no) $as_echo "#define restrict /**/" >>confdefs.h
10072 ;;
10073 *) cat >>confdefs.h <<_ACEOF
10074 #define restrict $ac_cv_c_restrict
10075 _ACEOF
10076 ;;
10077 esac
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090 if test $gl_cv_have_include_next = yes; then
10091 gl_cv_next_string_h='<'string.h'>'
10092 else
10093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
10094 $as_echo_n "checking absolute name of <string.h>... " >&6; }
10095 if test "${gl_cv_next_string_h+set}" = set; then :
10096 $as_echo_n "(cached) " >&6
10097 else
10098
10099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10100 /* end confdefs.h. */
10101 #include <string.h>
10102
10103 _ACEOF
10104 case "$host_os" in
10105 aix*) gl_absname_cpp="$ac_cpp -C" ;;
10106 *) gl_absname_cpp="$ac_cpp" ;;
10107 esac
10108
10109 case "$host_os" in
10110 mingw*)
10111 gl_dirsep_regex='[/\\]'
10112 ;;
10113 *)
10114 gl_dirsep_regex='\/'
10115 ;;
10116 esac
10117 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
10118
10119 gl_header_literal_regex=`echo 'string.h' \
10120 | sed -e "$gl_make_literal_regex_sed"`
10121 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10122 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10123 s|^/[^/]|//&|
10124 p
10125 q
10126 }'
10127 gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10128 sed -n "$gl_absolute_header_sed"`'"'
10129
10130
10131 fi
10132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
10133 $as_echo "$gl_cv_next_string_h" >&6; }
10134 fi
10135 NEXT_STRING_H=$gl_cv_next_string_h
10136
10137 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
10138 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10139 gl_next_as_first_directive='<'string.h'>'
10140 else
10141 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10142 gl_next_as_first_directive=$gl_cv_next_string_h
10143 fi
10144 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
10145
10146
10147
10148
10149
10150
10151 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
10152 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
10153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
10154 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
10155 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
10156 $as_echo_n "(cached) " >&6
10157 else
10158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10159 /* end confdefs.h. */
10160 #include <string.h>
10161
10162 int
10163 main ()
10164 {
10165 #undef $gl_func
10166 (void) $gl_func;
10167 ;
10168 return 0;
10169 }
10170 _ACEOF
10171 if ac_fn_c_try_compile "$LINENO"; then :
10172 eval "$as_gl_Symbol=yes"
10173 else
10174 eval "$as_gl_Symbol=no"
10175 fi
10176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10177 fi
10178 eval ac_res=\$$as_gl_Symbol
10179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10180 $as_echo "$ac_res" >&6; }
10181 eval as_val=\$$as_gl_Symbol
10182 if test "x$as_val" = x""yes; then :
10183 cat >>confdefs.h <<_ACEOF
10184 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
10185 _ACEOF
10186
10187 eval ac_cv_have_decl_$gl_func=yes
10188 fi
10189 done
10190
10191
10192
10193
10194
10195 if test "$gl_cv_func_memchr_works" != yes; then
10196 REPLACE_STRSTR=1
10197 else
10198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
10199 $as_echo_n "checking whether strstr works... " >&6; }
10200 if test "${gl_cv_func_strstr_works_always+set}" = set; then :
10201 $as_echo_n "(cached) " >&6
10202 else
10203 if test "$cross_compiling" = yes; then :
10204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10205 /* end confdefs.h. */
10206
10207 #ifdef __GNU_LIBRARY__
10208 #include <features.h>
10209 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
10210 || defined __UCLIBC__
10211 Lucky user
10212 #endif
10213 #elif defined __CYGWIN__
10214 #include <cygwin/version.h>
10215 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
10216 Lucky user
10217 #endif
10218 #else
10219 Lucky user
10220 #endif
10221
10222 _ACEOF
10223 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10224 $EGREP "Lucky user" >/dev/null 2>&1; then :
10225 gl_cv_func_strstr_works_always="guessing yes"
10226 else
10227 gl_cv_func_strstr_works_always="guessing no"
10228 fi
10229 rm -f conftest*
10230
10231
10232 else
10233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10234 /* end confdefs.h. */
10235
10236 #include <string.h> /* for strstr */
10237 #define P "_EF_BF_BD"
10238 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
10239 #define NEEDLE P P P P P
10240
10241 int
10242 main ()
10243 {
10244 return !!strstr (HAYSTACK, NEEDLE);
10245
10246 ;
10247 return 0;
10248 }
10249 _ACEOF
10250 if ac_fn_c_try_run "$LINENO"; then :
10251 gl_cv_func_strstr_works_always=yes
10252 else
10253 gl_cv_func_strstr_works_always=no
10254 fi
10255 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10256 conftest.$ac_objext conftest.beam conftest.$ac_ext
10257 fi
10258
10259
10260 fi
10261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
10262 $as_echo "$gl_cv_func_strstr_works_always" >&6; }
10263 case "$gl_cv_func_strstr_works_always" in
10264 *yes) ;;
10265 *)
10266 REPLACE_STRSTR=1
10267 ;;
10268 esac
10269 fi
10270
10271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
10272 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
10273 if test "${ac_cv_header_stat_broken+set}" = set; then :
10274 $as_echo_n "(cached) " >&6
10275 else
10276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10277 /* end confdefs.h. */
10278 #include <sys/types.h>
10279 #include <sys/stat.h>
10280
10281 #if defined S_ISBLK && defined S_IFDIR
10282 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
10283 #endif
10284
10285 #if defined S_ISBLK && defined S_IFCHR
10286 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
10287 #endif
10288
10289 #if defined S_ISLNK && defined S_IFREG
10290 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
10291 #endif
10292
10293 #if defined S_ISSOCK && defined S_IFREG
10294 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
10295 #endif
10296
10297 _ACEOF
10298 if ac_fn_c_try_compile "$LINENO"; then :
10299 ac_cv_header_stat_broken=no
10300 else
10301 ac_cv_header_stat_broken=yes
10302 fi
10303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10304 fi
10305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
10306 $as_echo "$ac_cv_header_stat_broken" >&6; }
10307 if test $ac_cv_header_stat_broken = yes; then
10308
10309 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
10310
10311 fi
10312
10313
10314
10315 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
10316 if test "x$ac_cv_type_mode_t" = x""yes; then :
10317
10318 else
10319
10320 cat >>confdefs.h <<_ACEOF
10321 #define mode_t int
10322 _ACEOF
10323
10324 fi
10325
10326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
10327 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
10328 if test -z "$MKDIR_P"; then
10329 if test "${ac_cv_path_mkdir+set}" = set; then :
10330 $as_echo_n "(cached) " >&6
10331 else
10332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10333 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
10334 do
10335 IFS=$as_save_IFS
10336 test -z "$as_dir" && as_dir=.
10337 for ac_prog in mkdir gmkdir; do
10338 for ac_exec_ext in '' $ac_executable_extensions; do
10339 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
10340 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
10341 'mkdir (GNU coreutils) '* | \
10342 'mkdir (coreutils) '* | \
10343 'mkdir (fileutils) '4.1*)
10344 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
10345 break 3;;
10346 esac
10347 done
10348 done
10349 done
10350 IFS=$as_save_IFS
10351
10352 fi
10353
10354 if test "${ac_cv_path_mkdir+set}" = set; then
10355 MKDIR_P="$ac_cv_path_mkdir -p"
10356 else
10357 # As a last resort, use the slow shell script. Don't cache a
10358 # value for MKDIR_P within a source directory, because that will
10359 # break other packages using the cache if that directory is
10360 # removed, or if the value is a relative name.
10361 test -d ./--version && rmdir ./--version
10362 MKDIR_P="$ac_install_sh -d"
10363 fi
10364 fi
10365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
10366 $as_echo "$MKDIR_P" >&6; }
10367
10368
10369
10370 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
10371 if test "x$ac_cv_type_pid_t" = x""yes; then :
10372
10373 else
10374
10375 cat >>confdefs.h <<_ACEOF
10376 #define pid_t int
10377 _ACEOF
10378
10379 fi
10380
10381
10382
10383
10384
10385
10386
10387
10388 GNULIB_MKTIME=0;
10389 GNULIB_NANOSLEEP=0;
10390 GNULIB_STRPTIME=0;
10391 GNULIB_TIMEGM=0;
10392 GNULIB_TIME_R=0;
10393 HAVE_DECL_LOCALTIME_R=1;
10394 HAVE_NANOSLEEP=1;
10395 HAVE_STRPTIME=1;
10396 HAVE_TIMEGM=1;
10397 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
10398 REPLACE_MKTIME=GNULIB_PORTCHECK;
10399 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
10400 REPLACE_TIMEGM=GNULIB_PORTCHECK;
10401
10402
10403
10404
10405
10406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
10407 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
10408 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
10409 $as_echo_n "(cached) " >&6
10410 else
10411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10412 /* end confdefs.h. */
10413 #include <time.h>
10414
10415 int
10416 main ()
10417 {
10418 static struct timespec x; x.tv_sec = x.tv_nsec;
10419 ;
10420 return 0;
10421 }
10422 _ACEOF
10423 if ac_fn_c_try_compile "$LINENO"; then :
10424 gl_cv_sys_struct_timespec_in_time_h=yes
10425 else
10426 gl_cv_sys_struct_timespec_in_time_h=no
10427 fi
10428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10429 fi
10430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
10431 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
10432
10433 TIME_H_DEFINES_STRUCT_TIMESPEC=0
10434 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
10435 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
10436 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
10437 TIME_H_DEFINES_STRUCT_TIMESPEC=1
10438 else
10439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
10440 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
10441 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
10442 $as_echo_n "(cached) " >&6
10443 else
10444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10445 /* end confdefs.h. */
10446 #include <sys/time.h>
10447
10448 int
10449 main ()
10450 {
10451 static struct timespec x; x.tv_sec = x.tv_nsec;
10452 ;
10453 return 0;
10454 }
10455 _ACEOF
10456 if ac_fn_c_try_compile "$LINENO"; then :
10457 gl_cv_sys_struct_timespec_in_sys_time_h=yes
10458 else
10459 gl_cv_sys_struct_timespec_in_sys_time_h=no
10460 fi
10461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10462 fi
10463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
10464 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
10465 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
10466 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
10467 else
10468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
10469 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
10470 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
10471 $as_echo_n "(cached) " >&6
10472 else
10473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10474 /* end confdefs.h. */
10475 #include <pthread.h>
10476
10477 int
10478 main ()
10479 {
10480 static struct timespec x; x.tv_sec = x.tv_nsec;
10481 ;
10482 return 0;
10483 }
10484 _ACEOF
10485 if ac_fn_c_try_compile "$LINENO"; then :
10486 gl_cv_sys_struct_timespec_in_pthread_h=yes
10487 else
10488 gl_cv_sys_struct_timespec_in_pthread_h=no
10489 fi
10490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10491 fi
10492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
10493 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
10494 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
10495 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
10496 fi
10497 fi
10498 fi
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514 if test $gl_cv_have_include_next = yes; then
10515 gl_cv_next_time_h='<'time.h'>'
10516 else
10517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
10518 $as_echo_n "checking absolute name of <time.h>... " >&6; }
10519 if test "${gl_cv_next_time_h+set}" = set; then :
10520 $as_echo_n "(cached) " >&6
10521 else
10522
10523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10524 /* end confdefs.h. */
10525 #include <time.h>
10526
10527 _ACEOF
10528 case "$host_os" in
10529 aix*) gl_absname_cpp="$ac_cpp -C" ;;
10530 *) gl_absname_cpp="$ac_cpp" ;;
10531 esac
10532
10533 case "$host_os" in
10534 mingw*)
10535 gl_dirsep_regex='[/\\]'
10536 ;;
10537 *)
10538 gl_dirsep_regex='\/'
10539 ;;
10540 esac
10541 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
10542
10543 gl_header_literal_regex=`echo 'time.h' \
10544 | sed -e "$gl_make_literal_regex_sed"`
10545 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10546 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10547 s|^/[^/]|//&|
10548 p
10549 q
10550 }'
10551 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10552 sed -n "$gl_absolute_header_sed"`'"'
10553
10554
10555 fi
10556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
10557 $as_echo "$gl_cv_next_time_h" >&6; }
10558 fi
10559 NEXT_TIME_H=$gl_cv_next_time_h
10560
10561 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
10562 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10563 gl_next_as_first_directive='<'time.h'>'
10564 else
10565 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10566 gl_next_as_first_directive=$gl_cv_next_time_h
10567 fi
10568 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
10569
10570
10571
10572
10573
10574
10575
10576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
10577 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
10578 if test "${gl_cv_header_wchar_h_correct_inline+set}" = set; then :
10579 $as_echo_n "(cached) " >&6
10580 else
10581 gl_cv_header_wchar_h_correct_inline=yes
10582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10583 /* end confdefs.h. */
10584
10585 #define wcstod renamed_wcstod
10586 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
10587 <wchar.h>.
10588 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10589 included before <wchar.h>. */
10590 #include <stddef.h>
10591 #include <stdio.h>
10592 #include <time.h>
10593 #include <wchar.h>
10594 extern int zero (void);
10595 int main () { return zero(); }
10596
10597 _ACEOF
10598 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10599 (eval $ac_compile) 2>&5
10600 ac_status=$?
10601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10602 test $ac_status = 0; }; then
10603 mv conftest.$ac_objext conftest1.$ac_objext
10604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10605 /* end confdefs.h. */
10606
10607 #define wcstod renamed_wcstod
10608 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
10609 <wchar.h>.
10610 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10611 included before <wchar.h>. */
10612 #include <stddef.h>
10613 #include <stdio.h>
10614 #include <time.h>
10615 #include <wchar.h>
10616 int zero (void) { return 0; }
10617
10618 _ACEOF
10619 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10620 (eval $ac_compile) 2>&5
10621 ac_status=$?
10622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10623 test $ac_status = 0; }; then
10624 mv conftest.$ac_objext conftest2.$ac_objext
10625 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
10626 :
10627 else
10628 gl_cv_header_wchar_h_correct_inline=no
10629 fi
10630 fi
10631 fi
10632 rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
10633
10634 fi
10635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
10636 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
10637 if test $gl_cv_header_wchar_h_correct_inline = no; then
10638 as_fn_error "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
10639 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
10640 C99 mode. You have four options:
10641 - Add the flag -fgnu89-inline to CC and reconfigure, or
10642 - Fix your include files, using parts of
10643 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
10644 - Use a gcc version older than 4.3, or
10645 - Don't use the flags -std=c99 or -std=gnu99.
10646 Configuration aborted." "$LINENO" 5
10647 fi
10648
10649
10650
10651
10652
10653 if test $ac_cv_header_features_h = yes; then
10654 HAVE_FEATURES_H=1
10655 else
10656 HAVE_FEATURES_H=0
10657 fi
10658
10659
10660
10661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
10662 $as_echo_n "checking for wint_t... " >&6; }
10663 if test "${gt_cv_c_wint_t+set}" = set; then :
10664 $as_echo_n "(cached) " >&6
10665 else
10666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10667 /* end confdefs.h. */
10668
10669 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
10670 <wchar.h>.
10671 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
10672 before <wchar.h>. */
10673 #include <stddef.h>
10674 #include <stdio.h>
10675 #include <time.h>
10676 #include <wchar.h>
10677 wint_t foo = (wchar_t)'\0';
10678 int
10679 main ()
10680 {
10681
10682 ;
10683 return 0;
10684 }
10685 _ACEOF
10686 if ac_fn_c_try_compile "$LINENO"; then :
10687 gt_cv_c_wint_t=yes
10688 else
10689 gt_cv_c_wint_t=no
10690 fi
10691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10692 fi
10693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
10694 $as_echo "$gt_cv_c_wint_t" >&6; }
10695 if test $gt_cv_c_wint_t = yes; then
10696
10697 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
10698
10699 fi
10700
10701
10702 GNULIB_ISWBLANK=0;
10703 GNULIB_WCTYPE=0;
10704 GNULIB_ISWCTYPE=0;
10705 GNULIB_WCTRANS=0;
10706 GNULIB_TOWCTRANS=0;
10707 HAVE_ISWBLANK=1;
10708 HAVE_WCTYPE_T=1;
10709 HAVE_WCTRANS_T=1;
10710 REPLACE_ISWBLANK=0;
10711
10712
10713
10714
10715 if false; then
10716 GL_COND_LIBTOOL_TRUE=
10717 GL_COND_LIBTOOL_FALSE='#'
10718 else
10719 GL_COND_LIBTOOL_TRUE='#'
10720 GL_COND_LIBTOOL_FALSE=
10721 fi
10722
10723 gl_cond_libtool=false
10724 gl_libdeps=
10725 gl_ltlibdeps=
10726 gl_m4_base='import/m4'
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736 gl_source_base='import'
10737
10738
10739 if test $ac_cv_func_alloca_works = no; then
10740 :
10741 fi
10742
10743 # Define an additional variable used in the Makefile substitution.
10744 if test $ac_cv_working_alloca_h = yes; then
10745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
10746 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
10747 if test "${gl_cv_rpl_alloca+set}" = set; then :
10748 $as_echo_n "(cached) " >&6
10749 else
10750
10751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10752 /* end confdefs.h. */
10753
10754 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
10755 Need own alloca
10756 #endif
10757
10758 _ACEOF
10759 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10760 $EGREP "Need own alloca" >/dev/null 2>&1; then :
10761 gl_cv_rpl_alloca=yes
10762 else
10763 gl_cv_rpl_alloca=no
10764 fi
10765 rm -f conftest*
10766
10767
10768 fi
10769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
10770 $as_echo "$gl_cv_rpl_alloca" >&6; }
10771 if test $gl_cv_rpl_alloca = yes; then
10772
10773 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
10774
10775 ALLOCA_H=alloca.h
10776 else
10777 ALLOCA_H=
10778 fi
10779 else
10780 ALLOCA_H=alloca.h
10781 fi
10782
10783 if test -n "$ALLOCA_H"; then
10784 GL_GENERATE_ALLOCA_H_TRUE=
10785 GL_GENERATE_ALLOCA_H_FALSE='#'
10786 else
10787 GL_GENERATE_ALLOCA_H_TRUE='#'
10788 GL_GENERATE_ALLOCA_H_FALSE=
10789 fi
10790
10791
10792
10793 if test "x$datarootdir" = x; then
10794 datarootdir='${datadir}'
10795
10796 fi
10797 if test "x$docdir" = x; then
10798 docdir='${datarootdir}/doc/${PACKAGE}'
10799
10800 fi
10801 if test "x$htmldir" = x; then
10802 htmldir='${docdir}'
10803
10804 fi
10805 if test "x$dvidir" = x; then
10806 dvidir='${docdir}'
10807
10808 fi
10809 if test "x$pdfdir" = x; then
10810 pdfdir='${docdir}'
10811
10812 fi
10813 if test "x$psdir" = x; then
10814 psdir='${docdir}'
10815
10816 fi
10817 if test "x$lispdir" = x; then
10818 lispdir='${datarootdir}/emacs/site-lisp'
10819
10820 fi
10821 if test "x$localedir" = x; then
10822 localedir='${datarootdir}/locale'
10823
10824 fi
10825
10826 pkglibexecdir='${libexecdir}/${PACKAGE}'
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841 if test $gl_cv_have_include_next = yes; then
10842 gl_cv_next_dirent_h='<'dirent.h'>'
10843 else
10844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <dirent.h>" >&5
10845 $as_echo_n "checking absolute name of <dirent.h>... " >&6; }
10846 if test "${gl_cv_next_dirent_h+set}" = set; then :
10847 $as_echo_n "(cached) " >&6
10848 else
10849
10850 if test $ac_cv_header_dirent_h = yes; then
10851
10852
10853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10854 /* end confdefs.h. */
10855 #include <dirent.h>
10856
10857 _ACEOF
10858 case "$host_os" in
10859 aix*) gl_absname_cpp="$ac_cpp -C" ;;
10860 *) gl_absname_cpp="$ac_cpp" ;;
10861 esac
10862
10863 case "$host_os" in
10864 mingw*)
10865 gl_dirsep_regex='[/\\]'
10866 ;;
10867 *)
10868 gl_dirsep_regex='\/'
10869 ;;
10870 esac
10871 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
10872
10873 gl_header_literal_regex=`echo 'dirent.h' \
10874 | sed -e "$gl_make_literal_regex_sed"`
10875 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10876 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10877 s|^/[^/]|//&|
10878 p
10879 q
10880 }'
10881 gl_cv_next_dirent_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10882 sed -n "$gl_absolute_header_sed"`'"'
10883 else
10884 gl_cv_next_dirent_h='<'dirent.h'>'
10885 fi
10886
10887
10888 fi
10889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_dirent_h" >&5
10890 $as_echo "$gl_cv_next_dirent_h" >&6; }
10891 fi
10892 NEXT_DIRENT_H=$gl_cv_next_dirent_h
10893
10894 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
10895 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10896 gl_next_as_first_directive='<'dirent.h'>'
10897 else
10898 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10899 gl_next_as_first_directive=$gl_cv_next_dirent_h
10900 fi
10901 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H=$gl_next_as_first_directive
10902
10903
10904
10905
10906 if test $ac_cv_header_dirent_h = yes; then
10907 HAVE_DIRENT_H=1
10908 else
10909 HAVE_DIRENT_H=0
10910 fi
10911
10912
10913
10914 for gl_func in alphasort closedir dirfd fdopendir opendir readdir rewinddir scandir; do
10915 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
10916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
10917 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
10918 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
10919 $as_echo_n "(cached) " >&6
10920 else
10921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10922 /* end confdefs.h. */
10923 #include <dirent.h>
10924
10925 int
10926 main ()
10927 {
10928 #undef $gl_func
10929 (void) $gl_func;
10930 ;
10931 return 0;
10932 }
10933 _ACEOF
10934 if ac_fn_c_try_compile "$LINENO"; then :
10935 eval "$as_gl_Symbol=yes"
10936 else
10937 eval "$as_gl_Symbol=no"
10938 fi
10939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10940 fi
10941 eval ac_res=\$$as_gl_Symbol
10942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10943 $as_echo "$ac_res" >&6; }
10944 eval as_val=\$$as_gl_Symbol
10945 if test "x$as_val" = x""yes; then :
10946 cat >>confdefs.h <<_ACEOF
10947 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
10948 _ACEOF
10949
10950 eval ac_cv_have_decl_$gl_func=yes
10951 fi
10952 done
10953
10954
10955
10956
10957
10958
10959
10960 for ac_func in dirfd
10961 do :
10962 ac_fn_c_check_func "$LINENO" "dirfd" "ac_cv_func_dirfd"
10963 if test "x$ac_cv_func_dirfd" = x""yes; then :
10964 cat >>confdefs.h <<_ACEOF
10965 #define HAVE_DIRFD 1
10966 _ACEOF
10967
10968 fi
10969 done
10970
10971 ac_fn_c_check_decl "$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "#include <sys/types.h>
10972 #include <dirent.h>
10973 "
10974 if test "x$ac_cv_have_decl_dirfd" = x""yes; then :
10975 ac_have_decl=1
10976 else
10977 ac_have_decl=0
10978 fi
10979
10980 cat >>confdefs.h <<_ACEOF
10981 #define HAVE_DECL_DIRFD $ac_have_decl
10982 _ACEOF
10983
10984 if test $ac_cv_have_decl_dirfd = no; then
10985 HAVE_DECL_DIRFD=0
10986 fi
10987
10988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dirfd is a macro" >&5
10989 $as_echo_n "checking whether dirfd is a macro... " >&6; }
10990 if test "${gl_cv_func_dirfd_macro+set}" = set; then :
10991 $as_echo_n "(cached) " >&6
10992 else
10993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10994 /* end confdefs.h. */
10995
10996 #include <sys/types.h>
10997 #include <dirent.h>
10998 #ifdef dirfd
10999 dirent_header_defines_dirfd
11000 #endif
11001 _ACEOF
11002 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11003 $EGREP "dirent_header_defines_dirfd" >/dev/null 2>&1; then :
11004 gl_cv_func_dirfd_macro=yes
11005 else
11006 gl_cv_func_dirfd_macro=no
11007 fi
11008 rm -f conftest*
11009
11010 fi
11011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dirfd_macro" >&5
11012 $as_echo "$gl_cv_func_dirfd_macro" >&6; }
11013
11014 # Use the replacement only if we have no function or macro with that name.
11015 if test $ac_cv_func_dirfd = no && test $gl_cv_func_dirfd_macro = no; then
11016 if test $ac_cv_have_decl_dirfd = yes; then
11017 # If the system declares dirfd already, let's declare rpl_dirfd instead.
11018 REPLACE_DIRFD=1
11019 fi
11020 fi
11021
11022 if test $ac_cv_func_dirfd = no && test $gl_cv_func_dirfd_macro = no; then
11023
11024
11025
11026
11027
11028
11029
11030
11031 gl_LIBOBJS="$gl_LIBOBJS dirfd.$ac_objext"
11032
11033
11034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get the file descriptor associated with an open DIR*" >&5
11035 $as_echo_n "checking how to get the file descriptor associated with an open DIR*... " >&6; }
11036 if test "${gl_cv_sys_dir_fd_member_name+set}" = set; then :
11037 $as_echo_n "(cached) " >&6
11038 else
11039
11040 dirfd_save_CFLAGS=$CFLAGS
11041 for ac_expr in d_fd dd_fd; do
11042
11043 CFLAGS="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr"
11044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11045 /* end confdefs.h. */
11046
11047 #include <sys/types.h>
11048 #include <dirent.h>
11049 int
11050 main ()
11051 {
11052 DIR *dir_p = opendir("."); (void) dir_p->DIR_FD_MEMBER_NAME;
11053 ;
11054 return 0;
11055 }
11056 _ACEOF
11057 if ac_fn_c_try_compile "$LINENO"; then :
11058 dir_fd_found=yes
11059
11060 fi
11061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11062 CFLAGS=$dirfd_save_CFLAGS
11063 test "$dir_fd_found" = yes && break
11064 done
11065 test "$dir_fd_found" = yes || ac_expr=no_such_member
11066
11067 gl_cv_sys_dir_fd_member_name=$ac_expr
11068
11069
11070 fi
11071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_dir_fd_member_name" >&5
11072 $as_echo "$gl_cv_sys_dir_fd_member_name" >&6; }
11073 if test $gl_cv_sys_dir_fd_member_name != no_such_member; then
11074
11075 cat >>confdefs.h <<_ACEOF
11076 #define DIR_FD_MEMBER_NAME $gl_cv_sys_dir_fd_member_name
11077 _ACEOF
11078
11079 fi
11080
11081
11082 fi
11083
11084
11085
11086
11087
11088 GNULIB_DIRFD=1
11089
11090
11091
11092
11093
11094 $as_echo "#define GNULIB_TEST_DIRFD 1" >>confdefs.h
11095
11096
11097
11098
11099
11100
11101
11102
11103 FLOAT_H=
11104 REPLACE_FLOAT_LDBL=0
11105 case "$host_os" in
11106 aix* | beos* | openbsd* | mirbsd* | irix*)
11107 FLOAT_H=float.h
11108 ;;
11109 freebsd*)
11110 case "$host_cpu" in
11111 i[34567]86 )
11112 FLOAT_H=float.h
11113 ;;
11114 x86_64 )
11115 # On x86_64 systems, the C compiler may still be generating
11116 # 32-bit code.
11117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11118 /* end confdefs.h. */
11119 #if defined __LP64__ || defined __x86_64__ || defined __amd64__
11120 yes
11121 #endif
11122 _ACEOF
11123 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11124 $EGREP "yes" >/dev/null 2>&1; then :
11125
11126 else
11127 FLOAT_H=float.h
11128 fi
11129 rm -f conftest*
11130
11131 ;;
11132 esac
11133 ;;
11134 linux*)
11135 case "$host_cpu" in
11136 powerpc*)
11137 FLOAT_H=float.h
11138 ;;
11139 esac
11140 ;;
11141 esac
11142 case "$host_os" in
11143 aix* | freebsd* | linux*)
11144 if test -n "$FLOAT_H"; then
11145 REPLACE_FLOAT_LDBL=1
11146 fi
11147 ;;
11148 esac
11149
11150 REPLACE_ITOLD=0
11151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
11152 $as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
11153 if test "${gl_cv_func_itold_works+set}" = set; then :
11154 $as_echo_n "(cached) " >&6
11155 else
11156
11157 if test "$cross_compiling" = yes; then :
11158 case "$host" in
11159 sparc*-*-linux*)
11160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11161 /* end confdefs.h. */
11162 #if defined __LP64__ || defined __arch64__
11163 yes
11164 #endif
11165 _ACEOF
11166 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11167 $EGREP "yes" >/dev/null 2>&1; then :
11168 gl_cv_func_itold_works="guessing no"
11169 else
11170 gl_cv_func_itold_works="guessing yes"
11171 fi
11172 rm -f conftest*
11173
11174 ;;
11175 *) gl_cv_func_itold_works="guessing yes" ;;
11176 esac
11177
11178 else
11179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11180 /* end confdefs.h. */
11181
11182 int i = -1;
11183 volatile long double ld;
11184 int main ()
11185 {
11186 ld += i * 1.0L;
11187 if (ld > 0)
11188 return 1;
11189 return 0;
11190 }
11191 _ACEOF
11192 if ac_fn_c_try_run "$LINENO"; then :
11193 gl_cv_func_itold_works=yes
11194 else
11195 gl_cv_func_itold_works=no
11196 fi
11197 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11198 conftest.$ac_objext conftest.beam conftest.$ac_ext
11199 fi
11200
11201
11202 fi
11203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
11204 $as_echo "$gl_cv_func_itold_works" >&6; }
11205 case "$gl_cv_func_itold_works" in
11206 *no)
11207 REPLACE_ITOLD=1
11208 FLOAT_H=float.h
11209 ;;
11210 esac
11211
11212 if test -n "$FLOAT_H"; then
11213
11214
11215
11216
11217
11218
11219
11220
11221 if test $gl_cv_have_include_next = yes; then
11222 gl_cv_next_float_h='<'float.h'>'
11223 else
11224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
11225 $as_echo_n "checking absolute name of <float.h>... " >&6; }
11226 if test "${gl_cv_next_float_h+set}" = set; then :
11227 $as_echo_n "(cached) " >&6
11228 else
11229
11230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11231 /* end confdefs.h. */
11232 #include <float.h>
11233
11234 _ACEOF
11235 case "$host_os" in
11236 aix*) gl_absname_cpp="$ac_cpp -C" ;;
11237 *) gl_absname_cpp="$ac_cpp" ;;
11238 esac
11239
11240 case "$host_os" in
11241 mingw*)
11242 gl_dirsep_regex='[/\\]'
11243 ;;
11244 *)
11245 gl_dirsep_regex='\/'
11246 ;;
11247 esac
11248 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
11249
11250 gl_header_literal_regex=`echo 'float.h' \
11251 | sed -e "$gl_make_literal_regex_sed"`
11252 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11253 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11254 s|^/[^/]|//&|
11255 p
11256 q
11257 }'
11258 gl_cv_next_float_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11259 sed -n "$gl_absolute_header_sed"`'"'
11260
11261
11262 fi
11263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
11264 $as_echo "$gl_cv_next_float_h" >&6; }
11265 fi
11266 NEXT_FLOAT_H=$gl_cv_next_float_h
11267
11268 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11269 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11270 gl_next_as_first_directive='<'float.h'>'
11271 else
11272 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11273 gl_next_as_first_directive=$gl_cv_next_float_h
11274 fi
11275 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
11276
11277
11278
11279
11280 fi
11281
11282 if test -n "$FLOAT_H"; then
11283 GL_GENERATE_FLOAT_H_TRUE=
11284 GL_GENERATE_FLOAT_H_FALSE='#'
11285 else
11286 GL_GENERATE_FLOAT_H_TRUE='#'
11287 GL_GENERATE_FLOAT_H_FALSE=
11288 fi
11289
11290
11291
11292 if test $REPLACE_FLOAT_LDBL = 1; then
11293
11294
11295
11296
11297
11298
11299
11300
11301 gl_LIBOBJS="$gl_LIBOBJS float.$ac_objext"
11302
11303 fi
11304 if test $REPLACE_ITOLD = 1; then
11305
11306
11307
11308
11309
11310
11311
11312
11313 gl_LIBOBJS="$gl_LIBOBJS itold.$ac_objext"
11314
11315 fi
11316
11317
11318
11319
11320
11321 FNMATCH_H=
11322 gl_fnmatch_required_lowercase=`
11323 echo $gl_fnmatch_required | LC_ALL=C tr '[A-Z]' '[a-z]'
11324 `
11325 gl_fnmatch_cache_var="gl_cv_func_fnmatch_${gl_fnmatch_required_lowercase}"
11326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working $gl_fnmatch_required fnmatch" >&5
11327 $as_echo_n "checking for working $gl_fnmatch_required fnmatch... " >&6; }
11328 if { as_var=$gl_fnmatch_cache_var; eval "test \"\${$as_var+set}\" = set"; }; then :
11329 $as_echo_n "(cached) " >&6
11330 else
11331 if test $gl_fnmatch_required = GNU; then
11332 gl_fnmatch_gnu_start=
11333 gl_fnmatch_gnu_end=
11334 else
11335 gl_fnmatch_gnu_start='#if 0'
11336 gl_fnmatch_gnu_end='#endif'
11337 fi
11338 if test "$cross_compiling" = yes; then :
11339 eval "$gl_fnmatch_cache_var=\"guessing no\""
11340 else
11341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11342 /* end confdefs.h. */
11343 #include <fnmatch.h>
11344 static int
11345 y (char const *pattern, char const *string, int flags)
11346 {
11347 return fnmatch (pattern, string, flags) == 0;
11348 }
11349 static int
11350 n (char const *pattern, char const *string, int flags)
11351 {
11352 return fnmatch (pattern, string, flags) == FNM_NOMATCH;
11353 }
11354
11355 int
11356 main ()
11357 {
11358 char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]";
11359 char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]";
11360 static char const A_1[] = { 'A' - 1, 0 };
11361 static char const A01[] = { 'A' + 1, 0 };
11362 static char const a_1[] = { 'a' - 1, 0 };
11363 static char const a01[] = { 'a' + 1, 0 };
11364 static char const bs_1[] = { '\\\\' - 1, 0 };
11365 static char const bs01[] = { '\\\\' + 1, 0 };
11366 int result = 0;
11367 if (!n ("a*", "", 0))
11368 return 1;
11369 if (!y ("a*", "abc", 0))
11370 return 1;
11371 if (!y ("[/b", "[/b", 0)) /*"]]"*/ /* glibc Bugzilla bug 12378 */
11372 return 1;
11373 if (!n ("d*/*1", "d/s/1", FNM_PATHNAME))
11374 return 2;
11375 if (!y ("a\\\\bc", "abc", 0))
11376 return 3;
11377 if (!n ("a\\\\bc", "abc", FNM_NOESCAPE))
11378 return 3;
11379 if (!y ("*x", ".x", 0))
11380 return 4;
11381 if (!n ("*x", ".x", FNM_PERIOD))
11382 return 4;
11383 if (!y (Apat, "\\\\", 0))
11384 return 5;
11385 if (!y (Apat, "A", 0))
11386 return 5;
11387 if (!y (apat, "\\\\", 0))
11388 return 5;
11389 if (!y (apat, "a", 0))
11390 return 5;
11391 if (!(n (Apat, A_1, 0) == ('A' < '\\\\')))
11392 return 5;
11393 if (!(n (apat, a_1, 0) == ('a' < '\\\\')))
11394 return 5;
11395 if (!(y (Apat, A01, 0) == ('A' < '\\\\')))
11396 return 5;
11397 if (!(y (apat, a01, 0) == ('a' < '\\\\')))
11398 return 5;
11399 if (!(y (Apat, bs_1, 0) == ('A' < '\\\\')))
11400 return 5;
11401 if (!(y (apat, bs_1, 0) == ('a' < '\\\\')))
11402 return 5;
11403 if (!(n (Apat, bs01, 0) == ('A' < '\\\\')))
11404 return 5;
11405 if (!(n (apat, bs01, 0) == ('a' < '\\\\')))
11406 return 5;
11407 $gl_fnmatch_gnu_start
11408 if (!y ("xxXX", "xXxX", FNM_CASEFOLD))
11409 result |= 8;
11410 if (!y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH))
11411 result |= 16;
11412 if (!n ("d*/*1", "d/s/1", FNM_FILE_NAME))
11413 result |= 32;
11414 if (!y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR))
11415 result |= 64;
11416 if (!y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR))
11417 result |= 64;
11418 if (!y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR))
11419 result |= 64;
11420 $gl_fnmatch_gnu_end
11421 return result;
11422
11423 ;
11424 return 0;
11425 }
11426 _ACEOF
11427 if ac_fn_c_try_run "$LINENO"; then :
11428 eval "$gl_fnmatch_cache_var=yes"
11429 else
11430 eval "$gl_fnmatch_cache_var=no"
11431 fi
11432 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11433 conftest.$ac_objext conftest.beam conftest.$ac_ext
11434 fi
11435
11436
11437 fi
11438 eval ac_res=\$$gl_fnmatch_cache_var
11439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11440 $as_echo "$ac_res" >&6; }
11441 eval "gl_fnmatch_result=\"\$$gl_fnmatch_cache_var\""
11442 if test "$gl_fnmatch_result" = yes; then
11443 rm -f "$gl_source_base/fnmatch.h"
11444 else
11445 FNMATCH_H=fnmatch.h
11446 fi
11447
11448 if test -n "$FNMATCH_H"; then
11449 GL_GENERATE_FNMATCH_H_TRUE=
11450 GL_GENERATE_FNMATCH_H_FALSE='#'
11451 else
11452 GL_GENERATE_FNMATCH_H_TRUE='#'
11453 GL_GENERATE_FNMATCH_H_FALSE=
11454 fi
11455
11456
11457 if test -n "$FNMATCH_H"; then
11458
11459
11460
11461
11462
11463
11464
11465
11466 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
11467
11468
11469
11470 cat >>confdefs.h <<_ACEOF
11471 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
11472 _ACEOF
11473
11474
11475 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
11476 "
11477 if test "x$ac_cv_have_decl_isblank" = x""yes; then :
11478 ac_have_decl=1
11479 else
11480 ac_have_decl=0
11481 fi
11482
11483 cat >>confdefs.h <<_ACEOF
11484 #define HAVE_DECL_ISBLANK $ac_have_decl
11485 _ACEOF
11486
11487
11488
11489
11490 fi
11491
11492
11493
11494
11495
11496 if test -n "$FNMATCH_H"; then
11497
11498
11499
11500
11501
11502
11503
11504
11505 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
11506
11507
11508
11509 cat >>confdefs.h <<_ACEOF
11510 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
11511 _ACEOF
11512
11513
11514 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
11515 "
11516 if test "x$ac_cv_have_decl_isblank" = x""yes; then :
11517 ac_have_decl=1
11518 else
11519 ac_have_decl=0
11520 fi
11521
11522 cat >>confdefs.h <<_ACEOF
11523 #define HAVE_DECL_ISBLANK $ac_have_decl
11524 _ACEOF
11525
11526
11527
11528
11529 fi
11530
11531
11532
11533 FREXP_LIBM=
11534 if test $gl_cv_func_frexp_no_libm = no; then
11535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used with libm" >&5
11536 $as_echo_n "checking whether frexp() can be used with libm... " >&6; }
11537 if test "${gl_cv_func_frexp_in_libm+set}" = set; then :
11538 $as_echo_n "(cached) " >&6
11539 else
11540
11541 save_LIBS="$LIBS"
11542 LIBS="$LIBS -lm"
11543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11544 /* end confdefs.h. */
11545 #include <math.h>
11546 double x;
11547 int
11548 main ()
11549 {
11550 int e; return frexp (x, &e) > 0;
11551 ;
11552 return 0;
11553 }
11554 _ACEOF
11555 if ac_fn_c_try_link "$LINENO"; then :
11556 gl_cv_func_frexp_in_libm=yes
11557 else
11558 gl_cv_func_frexp_in_libm=no
11559 fi
11560 rm -f core conftest.err conftest.$ac_objext \
11561 conftest$ac_exeext conftest.$ac_ext
11562 LIBS="$save_LIBS"
11563
11564 fi
11565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_in_libm" >&5
11566 $as_echo "$gl_cv_func_frexp_in_libm" >&6; }
11567 if test $gl_cv_func_frexp_in_libm = yes; then
11568 FREXP_LIBM=-lm
11569 fi
11570 fi
11571 if test $gl_cv_func_frexp_no_libm = yes \
11572 || test $gl_cv_func_frexp_in_libm = yes; then
11573 save_LIBS="$LIBS"
11574 LIBS="$LIBS $FREXP_LIBM"
11575
11576
11577
11578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp works" >&5
11579 $as_echo_n "checking whether frexp works... " >&6; }
11580 if test "${gl_cv_func_frexp_works+set}" = set; then :
11581 $as_echo_n "(cached) " >&6
11582 else
11583
11584 if test "$cross_compiling" = yes; then :
11585 case "$host_os" in
11586 netbsd* | irix* | mingw*) gl_cv_func_frexp_works="guessing no";;
11587 *) gl_cv_func_frexp_works="guessing yes";;
11588 esac
11589
11590 else
11591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11592 /* end confdefs.h. */
11593
11594 #include <float.h>
11595 #include <math.h>
11596 #include <string.h>
11597 #if HAVE_ALARM
11598 # include <unistd.h>
11599 #endif
11600 /* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0.
11601 ICC 10.0 has a bug when optimizing the expression -zero.
11602 The expression -DBL_MIN * DBL_MIN does not work when cross-compiling
11603 to PowerPC on Mac OS X 10.5. */
11604 #if defined __hpux || defined __sgi || defined __ICC
11605 static double
11606 compute_minus_zero (void)
11607 {
11608 return -DBL_MIN * DBL_MIN;
11609 }
11610 # define minus_zero compute_minus_zero ()
11611 #else
11612 double minus_zero = -0.0;
11613 #endif
11614 int main()
11615 {
11616 int result = 0;
11617 int i;
11618 volatile double x;
11619 double zero = 0.0;
11620 #if HAVE_ALARM
11621 /* NeXTstep 3.3 frexp() runs into an endless loop when called on an infinite
11622 number. Let the test fail in this case. */
11623 alarm (5);
11624 #endif
11625 /* Test on denormalized numbers. */
11626 for (i = 1, x = 1.0; i >= DBL_MIN_EXP; i--, x *= 0.5)
11627 ;
11628 if (x > 0.0)
11629 {
11630 int exp;
11631 double y = frexp (x, &exp);
11632 /* On machines with IEEE754 arithmetic: x = 1.11254e-308, exp = -1022.
11633 On NetBSD: y = 0.75. Correct: y = 0.5. */
11634 if (y != 0.5)
11635 result |= 1;
11636 }
11637 /* Test on infinite numbers. */
11638 x = 1.0 / zero;
11639 {
11640 int exp;
11641 double y = frexp (x, &exp);
11642 if (y != x)
11643 result |= 2;
11644 }
11645 /* Test on negative zero. */
11646 x = minus_zero;
11647 {
11648 int exp;
11649 double y = frexp (x, &exp);
11650 if (memcmp (&y, &x, sizeof x))
11651 result |= 4;
11652 }
11653 return result;
11654 }
11655 _ACEOF
11656 if ac_fn_c_try_run "$LINENO"; then :
11657 gl_cv_func_frexp_works=yes
11658 else
11659 gl_cv_func_frexp_works=no
11660 fi
11661 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11662 conftest.$ac_objext conftest.beam conftest.$ac_ext
11663 fi
11664
11665
11666 fi
11667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_works" >&5
11668 $as_echo "$gl_cv_func_frexp_works" >&6; }
11669
11670 LIBS="$save_LIBS"
11671 case "$gl_cv_func_frexp_works" in
11672 *yes) gl_func_frexp=yes ;;
11673 *) gl_func_frexp=no; REPLACE_FREXP=1; FREXP_LIBM= ;;
11674 esac
11675 else
11676 gl_func_frexp=no
11677 fi
11678 if test $gl_func_frexp = yes; then
11679
11680 $as_echo "#define HAVE_FREXP 1" >>confdefs.h
11681
11682 fi
11683
11684
11685 if test $gl_func_frexp != yes; then
11686
11687
11688
11689
11690
11691
11692
11693
11694 gl_LIBOBJS="$gl_LIBOBJS frexp.$ac_objext"
11695
11696 fi
11697
11698
11699
11700
11701
11702 GNULIB_FREXP=1
11703
11704
11705
11706
11707
11708 $as_echo "#define GNULIB_TEST_FREXP 1" >>confdefs.h
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718 ac_fn_c_check_decl "$LINENO" "frexpl" "ac_cv_have_decl_frexpl" "#include <math.h>
11719 "
11720 if test "x$ac_cv_have_decl_frexpl" = x""yes; then :
11721
11722 else
11723 HAVE_DECL_FREXPL=0
11724 fi
11725
11726
11727 FREXPL_LIBM=
11728 if test $HAVE_DECL_FREXPL = 1; then
11729
11730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used without linking with libm" >&5
11731 $as_echo_n "checking whether frexpl() can be used without linking with libm... " >&6; }
11732 if test "${gl_cv_func_frexpl_no_libm+set}" = set; then :
11733 $as_echo_n "(cached) " >&6
11734 else
11735
11736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11737 /* end confdefs.h. */
11738 #include <math.h>
11739 long double x;
11740 int
11741 main ()
11742 {
11743 int e; return frexpl (x, &e) > 0;
11744 ;
11745 return 0;
11746 }
11747 _ACEOF
11748 if ac_fn_c_try_link "$LINENO"; then :
11749 gl_cv_func_frexpl_no_libm=yes
11750 else
11751 gl_cv_func_frexpl_no_libm=no
11752 fi
11753 rm -f core conftest.err conftest.$ac_objext \
11754 conftest$ac_exeext conftest.$ac_ext
11755
11756 fi
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_no_libm" >&5
11758 $as_echo "$gl_cv_func_frexpl_no_libm" >&6; }
11759
11760 if test $gl_cv_func_frexpl_no_libm = no; then
11761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used with libm" >&5
11762 $as_echo_n "checking whether frexpl() can be used with libm... " >&6; }
11763 if test "${gl_cv_func_frexpl_in_libm+set}" = set; then :
11764 $as_echo_n "(cached) " >&6
11765 else
11766
11767 save_LIBS="$LIBS"
11768 LIBS="$LIBS -lm"
11769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11770 /* end confdefs.h. */
11771 #include <math.h>
11772 long double x;
11773 int
11774 main ()
11775 {
11776 int e; return frexpl (x, &e) > 0;
11777 ;
11778 return 0;
11779 }
11780 _ACEOF
11781 if ac_fn_c_try_link "$LINENO"; then :
11782 gl_cv_func_frexpl_in_libm=yes
11783 else
11784 gl_cv_func_frexpl_in_libm=no
11785 fi
11786 rm -f core conftest.err conftest.$ac_objext \
11787 conftest$ac_exeext conftest.$ac_ext
11788 LIBS="$save_LIBS"
11789
11790 fi
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_in_libm" >&5
11792 $as_echo "$gl_cv_func_frexpl_in_libm" >&6; }
11793 if test $gl_cv_func_frexpl_in_libm = yes; then
11794 FREXPL_LIBM=-lm
11795 fi
11796 fi
11797 if test $gl_cv_func_frexpl_no_libm = yes \
11798 || test $gl_cv_func_frexpl_in_libm = yes; then
11799 save_LIBS="$LIBS"
11800 LIBS="$LIBS $FREXPL_LIBM"
11801
11802
11803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl works" >&5
11804 $as_echo_n "checking whether frexpl works... " >&6; }
11805 if test "${gl_cv_func_frexpl_works+set}" = set; then :
11806 $as_echo_n "(cached) " >&6
11807 else
11808
11809 if test "$cross_compiling" = yes; then :
11810
11811 case "$host_os" in
11812 aix | aix[3-6]* | beos* | darwin* | irix* | mingw* | pw*)
11813 gl_cv_func_frexpl_works="guessing no";;
11814 *) gl_cv_func_frexpl_works="guessing yes";;
11815 esac
11816
11817 else
11818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11819 /* end confdefs.h. */
11820
11821 #include <float.h>
11822 #include <math.h>
11823 /* Override the values of <float.h>, like done in float.in.h. */
11824 #if defined __i386__ && (defined __BEOS__ || defined __OpenBSD__)
11825 # undef LDBL_MIN_EXP
11826 # define LDBL_MIN_EXP (-16381)
11827 #endif
11828 #if defined __i386__ && defined __FreeBSD__
11829 # undef LDBL_MIN_EXP
11830 # define LDBL_MIN_EXP (-16381)
11831 #endif
11832 #if (defined _ARCH_PPC || defined _POWER) && defined _AIX && (LDBL_MANT_DIG == 106) && defined __GNUC__
11833 # undef LDBL_MIN_EXP
11834 # define LDBL_MIN_EXP DBL_MIN_EXP
11835 #endif
11836 #if defined __sgi && (LDBL_MANT_DIG >= 106)
11837 # if defined __GNUC__
11838 # undef LDBL_MIN_EXP
11839 # define LDBL_MIN_EXP DBL_MIN_EXP
11840 # endif
11841 #endif
11842 extern
11843 #ifdef __cplusplus
11844 "C"
11845 #endif
11846 long double frexpl (long double, int *);
11847 int main()
11848 {
11849 int result = 0;
11850 volatile long double x;
11851 /* Test on finite numbers that fails on AIX 5.1. */
11852 x = 16.0L;
11853 {
11854 int exp = -9999;
11855 frexpl (x, &exp);
11856 if (exp != 5)
11857 result |= 1;
11858 }
11859 /* Test on finite numbers that fails on Mac OS X 10.4, because its frexpl
11860 function returns an invalid (incorrectly normalized) value: it returns
11861 y = { 0x3fe028f5, 0xc28f5c28, 0x3c9eb851, 0xeb851eb8 }
11862 but the correct result is
11863 0.505L = { 0x3fe028f5, 0xc28f5c29, 0xbc547ae1, 0x47ae1480 } */
11864 x = 1.01L;
11865 {
11866 int exp = -9999;
11867 long double y = frexpl (x, &exp);
11868 if (!(exp == 1 && y == 0.505L))
11869 result |= 2;
11870 }
11871 /* Test on large finite numbers. This fails on BeOS at i = 16322, while
11872 LDBL_MAX_EXP = 16384.
11873 In the loop end test, we test x against Infinity, rather than comparing
11874 i with LDBL_MAX_EXP, because BeOS <float.h> has a wrong LDBL_MAX_EXP. */
11875 {
11876 int i;
11877 for (i = 1, x = 1.0L; x != x + x; i++, x *= 2.0L)
11878 {
11879 int exp = -9999;
11880 frexpl (x, &exp);
11881 if (exp != i)
11882 {
11883 result |= 4;
11884 break;
11885 }
11886 }
11887 }
11888 /* Test on denormalized numbers. */
11889 {
11890 int i;
11891 for (i = 1, x = 1.0L; i >= LDBL_MIN_EXP; i--, x *= 0.5L)
11892 ;
11893 if (x > 0.0L)
11894 {
11895 int exp;
11896 long double y = frexpl (x, &exp);
11897 /* On machines with IEEE854 arithmetic: x = 1.68105e-4932,
11898 exp = -16382, y = 0.5. On Mac OS X 10.5: exp = -16384, y = 0.5. */
11899 if (exp != LDBL_MIN_EXP - 1)
11900 result |= 8;
11901 }
11902 }
11903 /* Test on infinite numbers. */
11904 x = 1.0L / 0.0L;
11905 {
11906 int exp;
11907 long double y = frexpl (x, &exp);
11908 if (y != x)
11909 result |= 16;
11910 }
11911 return result;
11912 }
11913 _ACEOF
11914 if ac_fn_c_try_run "$LINENO"; then :
11915 gl_cv_func_frexpl_works=yes
11916 else
11917 gl_cv_func_frexpl_works=no
11918 fi
11919 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11920 conftest.$ac_objext conftest.beam conftest.$ac_ext
11921 fi
11922
11923
11924 fi
11925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_works" >&5
11926 $as_echo "$gl_cv_func_frexpl_works" >&6; }
11927
11928 LIBS="$save_LIBS"
11929 case "$gl_cv_func_frexpl_works" in
11930 *yes) gl_func_frexpl=yes ;;
11931 *) gl_func_frexpl=no; REPLACE_FREXPL=1 ;;
11932 esac
11933 else
11934 gl_func_frexpl=no
11935 fi
11936 if test $gl_func_frexpl = yes; then
11937
11938 $as_echo "#define HAVE_FREXPL 1" >>confdefs.h
11939
11940 fi
11941 fi
11942 if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl = no; then
11943 if test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1; then
11944
11945 FREXPL_LIBM="$FREXP_LIBM"
11946 else
11947 FREXPL_LIBM=
11948 fi
11949 fi
11950
11951
11952 if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl = no; then
11953
11954
11955
11956
11957
11958
11959
11960
11961 gl_LIBOBJS="$gl_LIBOBJS frexpl.$ac_objext"
11962
11963 fi
11964
11965
11966
11967
11968
11969 GNULIB_FREXPL=1
11970
11971
11972
11973
11974
11975 $as_echo "#define GNULIB_TEST_FREXPL 1" >>confdefs.h
11976
11977
11978
11979
11980
11981
11982
11983
11984 PRIPTR_PREFIX=
11985 if test -n "$STDINT_H"; then
11986 PRIPTR_PREFIX='"l"'
11987 else
11988 for glpfx in '' l ll I64; do
11989 case $glpfx in
11990 '') gltype1='int';;
11991 l) gltype1='long int';;
11992 ll) gltype1='long long int';;
11993 I64) gltype1='__int64';;
11994 esac
11995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11996 /* end confdefs.h. */
11997 #include <stdint.h>
11998 extern intptr_t foo;
11999 extern $gltype1 foo;
12000 int
12001 main ()
12002 {
12003
12004 ;
12005 return 0;
12006 }
12007 _ACEOF
12008 if ac_fn_c_try_compile "$LINENO"; then :
12009 PRIPTR_PREFIX='"'$glpfx'"'
12010 fi
12011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12012 test -n "$PRIPTR_PREFIX" && break
12013 done
12014 fi
12015
12016
12017
12018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5
12019 $as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
12020 if test "${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+set}" = set; then :
12021 $as_echo_n "(cached) " >&6
12022 else
12023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12024 /* end confdefs.h. */
12025 /* Work also in C++ mode. */
12026 #define __STDC_LIMIT_MACROS 1
12027
12028 /* Work if build is not clean. */
12029 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
12030
12031 #include <limits.h>
12032 #if HAVE_STDINT_H
12033 #include <stdint.h>
12034 #endif
12035
12036 #if defined INT32_MAX && defined INTMAX_MAX
12037 #define CONDITION (INT32_MAX < INTMAX_MAX)
12038 #elif HAVE_LONG_LONG_INT
12039 #define CONDITION (sizeof (int) < sizeof (long long int))
12040 #else
12041 #define CONDITION 0
12042 #endif
12043 int test[CONDITION ? 1 : -1];
12044 int
12045 main ()
12046 {
12047
12048 ;
12049 return 0;
12050 }
12051 _ACEOF
12052 if ac_fn_c_try_compile "$LINENO"; then :
12053 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=yes
12054 else
12055 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=no
12056 fi
12057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12058 fi
12059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
12060 $as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
12061 if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
12062 INT32_MAX_LT_INTMAX_MAX=1;
12063 else
12064 INT32_MAX_LT_INTMAX_MAX=0;
12065 fi
12066
12067
12068 if test $APPLE_UNIVERSAL_BUILD = 0; then
12069
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5
12071 $as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; }
12072 if test "${gl_cv_test_INT64_MAX_EQ_LONG_MAX+set}" = set; then :
12073 $as_echo_n "(cached) " >&6
12074 else
12075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12076 /* end confdefs.h. */
12077 /* Work also in C++ mode. */
12078 #define __STDC_LIMIT_MACROS 1
12079
12080 /* Work if build is not clean. */
12081 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
12082
12083 #include <limits.h>
12084 #if HAVE_STDINT_H
12085 #include <stdint.h>
12086 #endif
12087
12088 #if defined INT64_MAX
12089 #define CONDITION (INT64_MAX == LONG_MAX)
12090 #elif HAVE_LONG_LONG_INT
12091 #define CONDITION (sizeof (long long int) == sizeof (long int))
12092 #else
12093 #define CONDITION 0
12094 #endif
12095 int test[CONDITION ? 1 : -1];
12096 int
12097 main ()
12098 {
12099
12100 ;
12101 return 0;
12102 }
12103 _ACEOF
12104 if ac_fn_c_try_compile "$LINENO"; then :
12105 gl_cv_test_INT64_MAX_EQ_LONG_MAX=yes
12106 else
12107 gl_cv_test_INT64_MAX_EQ_LONG_MAX=no
12108 fi
12109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12110 fi
12111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
12112 $as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
12113 if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
12114 INT64_MAX_EQ_LONG_MAX=1;
12115 else
12116 INT64_MAX_EQ_LONG_MAX=0;
12117 fi
12118
12119
12120 else
12121 INT64_MAX_EQ_LONG_MAX=-1
12122 fi
12123
12124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5
12125 $as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
12126 if test "${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+set}" = set; then :
12127 $as_echo_n "(cached) " >&6
12128 else
12129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12130 /* end confdefs.h. */
12131 /* Work also in C++ mode. */
12132 #define __STDC_LIMIT_MACROS 1
12133
12134 /* Work if build is not clean. */
12135 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
12136
12137 #include <limits.h>
12138 #if HAVE_STDINT_H
12139 #include <stdint.h>
12140 #endif
12141
12142 #if defined UINT32_MAX && defined UINTMAX_MAX
12143 #define CONDITION (UINT32_MAX < UINTMAX_MAX)
12144 #elif HAVE_LONG_LONG_INT
12145 #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
12146 #else
12147 #define CONDITION 0
12148 #endif
12149 int test[CONDITION ? 1 : -1];
12150 int
12151 main ()
12152 {
12153
12154 ;
12155 return 0;
12156 }
12157 _ACEOF
12158 if ac_fn_c_try_compile "$LINENO"; then :
12159 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=yes
12160 else
12161 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=no
12162 fi
12163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12164 fi
12165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
12166 $as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
12167 if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
12168 UINT32_MAX_LT_UINTMAX_MAX=1;
12169 else
12170 UINT32_MAX_LT_UINTMAX_MAX=0;
12171 fi
12172
12173
12174 if test $APPLE_UNIVERSAL_BUILD = 0; then
12175
12176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5
12177 $as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
12178 if test "${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+set}" = set; then :
12179 $as_echo_n "(cached) " >&6
12180 else
12181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12182 /* end confdefs.h. */
12183 /* Work also in C++ mode. */
12184 #define __STDC_LIMIT_MACROS 1
12185
12186 /* Work if build is not clean. */
12187 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
12188
12189 #include <limits.h>
12190 #if HAVE_STDINT_H
12191 #include <stdint.h>
12192 #endif
12193
12194 #if defined UINT64_MAX
12195 #define CONDITION (UINT64_MAX == ULONG_MAX)
12196 #elif HAVE_LONG_LONG_INT
12197 #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
12198 #else
12199 #define CONDITION 0
12200 #endif
12201 int test[CONDITION ? 1 : -1];
12202 int
12203 main ()
12204 {
12205
12206 ;
12207 return 0;
12208 }
12209 _ACEOF
12210 if ac_fn_c_try_compile "$LINENO"; then :
12211 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=yes
12212 else
12213 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=no
12214 fi
12215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12216 fi
12217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
12218 $as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
12219 if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
12220 UINT64_MAX_EQ_ULONG_MAX=1;
12221 else
12222 UINT64_MAX_EQ_ULONG_MAX=0;
12223 fi
12224
12225
12226 else
12227 UINT64_MAX_EQ_ULONG_MAX=-1
12228 fi
12229
12230
12231
12232
12233
12234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(double) can be used without linking with libm" >&5
12235 $as_echo_n "checking whether isnan(double) can be used without linking with libm... " >&6; }
12236 if test "${gl_cv_func_isnand_no_libm+set}" = set; then :
12237 $as_echo_n "(cached) " >&6
12238 else
12239
12240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12241 /* end confdefs.h. */
12242 #include <math.h>
12243 #if __GNUC__ >= 4
12244 # undef isnand
12245 # define isnand(x) __builtin_isnan ((double)(x))
12246 #else
12247 # undef isnand
12248 # define isnand(x) isnan ((double)(x))
12249 #endif
12250 double x;
12251 int
12252 main ()
12253 {
12254 return isnand (x);
12255 ;
12256 return 0;
12257 }
12258 _ACEOF
12259 if ac_fn_c_try_link "$LINENO"; then :
12260 gl_cv_func_isnand_no_libm=yes
12261 else
12262 gl_cv_func_isnand_no_libm=no
12263 fi
12264 rm -f core conftest.err conftest.$ac_objext \
12265 conftest$ac_exeext conftest.$ac_ext
12266
12267 fi
12268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnand_no_libm" >&5
12269 $as_echo "$gl_cv_func_isnand_no_libm" >&6; }
12270
12271 gl_func_isnand_no_libm=$gl_cv_func_isnand_no_libm
12272 if test $gl_cv_func_isnand_no_libm = yes; then
12273
12274 $as_echo "#define HAVE_ISNAND_IN_LIBC 1" >>confdefs.h
12275
12276 fi
12277
12278 if test $gl_func_isnand_no_libm != yes; then
12279
12280
12281
12282
12283
12284
12285
12286
12287 gl_LIBOBJS="$gl_LIBOBJS isnand.$ac_objext"
12288
12289
12290
12291
12292 fi
12293
12294
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(long double) can be used without linking with libm" >&5
12296 $as_echo_n "checking whether isnan(long double) can be used without linking with libm... " >&6; }
12297 if test "${gl_cv_func_isnanl_no_libm+set}" = set; then :
12298 $as_echo_n "(cached) " >&6
12299 else
12300
12301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12302 /* end confdefs.h. */
12303 #include <math.h>
12304 #if __GNUC__ >= 4
12305 # undef isnanl
12306 # define isnanl(x) __builtin_isnanl ((long double)(x))
12307 #elif defined isnan
12308 # undef isnanl
12309 # define isnanl(x) isnan ((long double)(x))
12310 #endif
12311 long double x;
12312 int
12313 main ()
12314 {
12315 return isnanl (x);
12316 ;
12317 return 0;
12318 }
12319 _ACEOF
12320 if ac_fn_c_try_link "$LINENO"; then :
12321 gl_cv_func_isnanl_no_libm=yes
12322 else
12323 gl_cv_func_isnanl_no_libm=no
12324 fi
12325 rm -f core conftest.err conftest.$ac_objext \
12326 conftest$ac_exeext conftest.$ac_ext
12327
12328 fi
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_no_libm" >&5
12330 $as_echo "$gl_cv_func_isnanl_no_libm" >&6; }
12331
12332 gl_func_isnanl_no_libm=$gl_cv_func_isnanl_no_libm
12333 if test $gl_func_isnanl_no_libm = yes; then
12334
12335
12336
12337
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnanl works" >&5
12339 $as_echo_n "checking whether isnanl works... " >&6; }
12340 if test "${gl_cv_func_isnanl_works+set}" = set; then :
12341 $as_echo_n "(cached) " >&6
12342 else
12343
12344 if test "$cross_compiling" = yes; then :
12345 case "$host_cpu" in
12346 # Guess no on ia64, x86_64, i386.
12347 ia64 | x86_64 | i*86) gl_cv_func_isnanl_works="guessing no";;
12348 *)
12349 case "$host_os" in
12350 netbsd*) gl_cv_func_isnanl_works="guessing no";;
12351 *) gl_cv_func_isnanl_works="guessing yes";;
12352 esac
12353 ;;
12354 esac
12355
12356 else
12357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12358 /* end confdefs.h. */
12359
12360 #include <float.h>
12361 #include <limits.h>
12362 #include <math.h>
12363 #if __GNUC__ >= 4
12364 # undef isnanl
12365 # define isnanl(x) __builtin_isnanl ((long double)(x))
12366 #elif defined isnan
12367 # undef isnanl
12368 # define isnanl(x) isnan ((long double)(x))
12369 #endif
12370 #define NWORDS \
12371 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
12372 typedef union { unsigned int word[NWORDS]; long double value; }
12373 memory_long_double;
12374 /* On Irix 6.5, gcc 3.4.3 can't compute compile-time NaN, and needs the
12375 runtime type conversion. */
12376 #ifdef __sgi
12377 static long double NaNl ()
12378 {
12379 double zero = 0.0;
12380 return zero / zero;
12381 }
12382 #else
12383 # define NaNl() (0.0L / 0.0L)
12384 #endif
12385 int main ()
12386 {
12387 int result = 0;
12388
12389 if (!isnanl (NaNl ()))
12390 result |= 1;
12391
12392 {
12393 memory_long_double m;
12394 unsigned int i;
12395
12396 /* The isnanl function should be immune against changes in the sign bit and
12397 in the mantissa bits. The xor operation twiddles a bit that can only be
12398 a sign bit or a mantissa bit (since the exponent never extends to
12399 bit 31). */
12400 m.value = NaNl ();
12401 m.word[NWORDS / 2] ^= (unsigned int) 1 << (sizeof (unsigned int) * CHAR_BIT - 1);
12402 for (i = 0; i < NWORDS; i++)
12403 m.word[i] |= 1;
12404 if (!isnanl (m.value))
12405 result |= 1;
12406 }
12407
12408 #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
12409 /* Representation of an 80-bit 'long double' as an initializer for a sequence
12410 of 'unsigned int' words. */
12411 # ifdef WORDS_BIGENDIAN
12412 # define LDBL80_WORDS(exponent,manthi,mantlo) \
12413 { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
12414 ((unsigned int) (manthi) << 16) | (unsigned int) (mantlo) >> 16), \
12415 (unsigned int) (mantlo) << 16 \
12416 }
12417 # else
12418 # define LDBL80_WORDS(exponent,manthi,mantlo) \
12419 { mantlo, manthi, exponent }
12420 # endif
12421 { /* Quiet NaN. */
12422 static memory_long_double x =
12423 { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) };
12424 if (!isnanl (x.value))
12425 result |= 2;
12426 }
12427 {
12428 /* Signalling NaN. */
12429 static memory_long_double x =
12430 { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) };
12431 if (!isnanl (x.value))
12432 result |= 2;
12433 }
12434 /* The isnanl function should recognize Pseudo-NaNs, Pseudo-Infinities,
12435 Pseudo-Zeroes, Unnormalized Numbers, and Pseudo-Denormals, as defined in
12436 Intel IA-64 Architecture Software Developer's Manual, Volume 1:
12437 Application Architecture.
12438 Table 5-2 "Floating-Point Register Encodings"
12439 Figure 5-6 "Memory to Floating-Point Register Data Translation"
12440 */
12441 { /* Pseudo-NaN. */
12442 static memory_long_double x =
12443 { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) };
12444 if (!isnanl (x.value))
12445 result |= 4;
12446 }
12447 { /* Pseudo-Infinity. */
12448 static memory_long_double x =
12449 { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) };
12450 if (!isnanl (x.value))
12451 result |= 8;
12452 }
12453 { /* Pseudo-Zero. */
12454 static memory_long_double x =
12455 { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) };
12456 if (!isnanl (x.value))
12457 result |= 16;
12458 }
12459 { /* Unnormalized number. */
12460 static memory_long_double x =
12461 { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) };
12462 if (!isnanl (x.value))
12463 result |= 32;
12464 }
12465 { /* Pseudo-Denormal. */
12466 static memory_long_double x =
12467 { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) };
12468 if (!isnanl (x.value))
12469 result |= 64;
12470 }
12471 #endif
12472
12473 return result;
12474 }
12475 _ACEOF
12476 if ac_fn_c_try_run "$LINENO"; then :
12477 gl_cv_func_isnanl_works=yes
12478 else
12479 gl_cv_func_isnanl_works=no
12480 fi
12481 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12482 conftest.$ac_objext conftest.beam conftest.$ac_ext
12483 fi
12484
12485
12486 fi
12487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_works" >&5
12488 $as_echo "$gl_cv_func_isnanl_works" >&6; }
12489
12490 case "$gl_cv_func_isnanl_works" in
12491 *yes) ;;
12492 *) gl_func_isnanl_no_libm=no ;;
12493 esac
12494 fi
12495 if test $gl_func_isnanl_no_libm = yes; then
12496
12497 $as_echo "#define HAVE_ISNANL_IN_LIBC 1" >>confdefs.h
12498
12499 fi
12500
12501 if test $gl_func_isnanl_no_libm != yes; then
12502
12503
12504
12505
12506
12507
12508
12509
12510 gl_LIBOBJS="$gl_LIBOBJS isnanl.$ac_objext"
12511
12512
12513
12514
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'long double'" >&5
12516 $as_echo_n "checking where to find the exponent in a 'long double'... " >&6; }
12517 if test "${gl_cv_cc_long_double_expbit0+set}" = set; then :
12518 $as_echo_n "(cached) " >&6
12519 else
12520
12521 if test "$cross_compiling" = yes; then :
12522
12523 gl_cv_cc_long_double_expbit0="unknown"
12524
12525 else
12526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12527 /* end confdefs.h. */
12528
12529 #include <float.h>
12530 #include <stddef.h>
12531 #include <stdio.h>
12532 #include <string.h>
12533 #define NWORDS \
12534 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
12535 typedef union { long double value; unsigned int word[NWORDS]; }
12536 memory_long_double;
12537 static unsigned int ored_words[NWORDS];
12538 static unsigned int anded_words[NWORDS];
12539 static void add_to_ored_words (long double x)
12540 {
12541 memory_long_double m;
12542 size_t i;
12543 /* Clear it first, in case
12544 sizeof (long double) < sizeof (memory_long_double). */
12545 memset (&m, 0, sizeof (memory_long_double));
12546 m.value = x;
12547 for (i = 0; i < NWORDS; i++)
12548 {
12549 ored_words[i] |= m.word[i];
12550 anded_words[i] &= m.word[i];
12551 }
12552 }
12553 int main ()
12554 {
12555 size_t j;
12556 FILE *fp = fopen ("conftest.out", "w");
12557 if (fp == NULL)
12558 return 1;
12559 for (j = 0; j < NWORDS; j++)
12560 anded_words[j] = ~ (unsigned int) 0;
12561 add_to_ored_words (0.25L);
12562 add_to_ored_words (0.5L);
12563 add_to_ored_words (1.0L);
12564 add_to_ored_words (2.0L);
12565 add_to_ored_words (4.0L);
12566 /* Remove bits that are common (e.g. if representation of the first mantissa
12567 bit is explicit). */
12568 for (j = 0; j < NWORDS; j++)
12569 ored_words[j] &= ~anded_words[j];
12570 /* Now find the nonzero word. */
12571 for (j = 0; j < NWORDS; j++)
12572 if (ored_words[j] != 0)
12573 break;
12574 if (j < NWORDS)
12575 {
12576 size_t i;
12577 for (i = j + 1; i < NWORDS; i++)
12578 if (ored_words[i] != 0)
12579 {
12580 fprintf (fp, "unknown");
12581 return (fclose (fp) != 0);
12582 }
12583 for (i = 0; ; i++)
12584 if ((ored_words[j] >> i) & 1)
12585 {
12586 fprintf (fp, "word %d bit %d", (int) j, (int) i);
12587 return (fclose (fp) != 0);
12588 }
12589 }
12590 fprintf (fp, "unknown");
12591 return (fclose (fp) != 0);
12592 }
12593
12594 _ACEOF
12595 if ac_fn_c_try_run "$LINENO"; then :
12596 gl_cv_cc_long_double_expbit0=`cat conftest.out`
12597 else
12598 gl_cv_cc_long_double_expbit0="unknown"
12599 fi
12600 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12601 conftest.$ac_objext conftest.beam conftest.$ac_ext
12602 fi
12603
12604 rm -f conftest.out
12605
12606 fi
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_long_double_expbit0" >&5
12608 $as_echo "$gl_cv_cc_long_double_expbit0" >&6; }
12609 case "$gl_cv_cc_long_double_expbit0" in
12610 word*bit*)
12611 word=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
12612 bit=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word.*bit //'`
12613
12614 cat >>confdefs.h <<_ACEOF
12615 #define LDBL_EXPBIT0_WORD $word
12616 _ACEOF
12617
12618
12619 cat >>confdefs.h <<_ACEOF
12620 #define LDBL_EXPBIT0_BIT $bit
12621 _ACEOF
12622
12623 ;;
12624 esac
12625
12626
12627
12628 fi
12629
12630
12631
12632
12633
12634
12635
12636
12637
12638 LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
12639
12640
12641
12642
12643
12644
12645
12646
12647
12648
12649
12650
12651 if test $gl_cv_have_include_next = yes; then
12652 gl_cv_next_math_h='<'math.h'>'
12653 else
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <math.h>" >&5
12655 $as_echo_n "checking absolute name of <math.h>... " >&6; }
12656 if test "${gl_cv_next_math_h+set}" = set; then :
12657 $as_echo_n "(cached) " >&6
12658 else
12659
12660 if test $ac_cv_header_math_h = yes; then
12661
12662
12663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12664 /* end confdefs.h. */
12665 #include <math.h>
12666
12667 _ACEOF
12668 case "$host_os" in
12669 aix*) gl_absname_cpp="$ac_cpp -C" ;;
12670 *) gl_absname_cpp="$ac_cpp" ;;
12671 esac
12672
12673 case "$host_os" in
12674 mingw*)
12675 gl_dirsep_regex='[/\\]'
12676 ;;
12677 *)
12678 gl_dirsep_regex='\/'
12679 ;;
12680 esac
12681 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
12682
12683 gl_header_literal_regex=`echo 'math.h' \
12684 | sed -e "$gl_make_literal_regex_sed"`
12685 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
12686 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
12687 s|^/[^/]|//&|
12688 p
12689 q
12690 }'
12691 gl_cv_next_math_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12692 sed -n "$gl_absolute_header_sed"`'"'
12693 else
12694 gl_cv_next_math_h='<'math.h'>'
12695 fi
12696
12697
12698 fi
12699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_math_h" >&5
12700 $as_echo "$gl_cv_next_math_h" >&6; }
12701 fi
12702 NEXT_MATH_H=$gl_cv_next_math_h
12703
12704 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
12705 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12706 gl_next_as_first_directive='<'math.h'>'
12707 else
12708 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12709 gl_next_as_first_directive=$gl_cv_next_math_h
12710 fi
12711 NEXT_AS_FIRST_DIRECTIVE_MATH_H=$gl_next_as_first_directive
12712
12713
12714
12715
12716
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NAN macro works" >&5
12718 $as_echo_n "checking whether NAN macro works... " >&6; }
12719 if test "${gl_cv_header_math_nan_works+set}" = set; then :
12720 $as_echo_n "(cached) " >&6
12721 else
12722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12723 /* end confdefs.h. */
12724 #include <math.h>
12725 int
12726 main ()
12727 {
12728 /* Solaris 10 has a broken definition of NAN. Other platforms
12729 fail to provide NAN, or provide it only in C99 mode; this
12730 test only needs to fail when NAN is provided but wrong. */
12731 float f = 1.0f;
12732 #ifdef NAN
12733 f = NAN;
12734 #endif
12735 return f == 0;
12736 ;
12737 return 0;
12738 }
12739 _ACEOF
12740 if ac_fn_c_try_compile "$LINENO"; then :
12741 gl_cv_header_math_nan_works=yes
12742 else
12743 gl_cv_header_math_nan_works=no
12744 fi
12745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12746 fi
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_nan_works" >&5
12748 $as_echo "$gl_cv_header_math_nan_works" >&6; }
12749 if test $gl_cv_header_math_nan_works = no; then
12750 REPLACE_NAN=1
12751 fi
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether HUGE_VAL works" >&5
12753 $as_echo_n "checking whether HUGE_VAL works... " >&6; }
12754 if test "${gl_cv_header_math_huge_val_works+set}" = set; then :
12755 $as_echo_n "(cached) " >&6
12756 else
12757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12758 /* end confdefs.h. */
12759 #include <math.h>
12760 int
12761 main ()
12762 {
12763 /* Solaris 10 has a broken definition of HUGE_VAL. */
12764 double d = HUGE_VAL;
12765 return d == 0;
12766 ;
12767 return 0;
12768 }
12769 _ACEOF
12770 if ac_fn_c_try_compile "$LINENO"; then :
12771 gl_cv_header_math_huge_val_works=yes
12772 else
12773 gl_cv_header_math_huge_val_works=no
12774 fi
12775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12776 fi
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_huge_val_works" >&5
12778 $as_echo "$gl_cv_header_math_huge_val_works" >&6; }
12779 if test $gl_cv_header_math_huge_val_works = no; then
12780 REPLACE_HUGE_VAL=1
12781 fi
12782
12783
12784 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
12785 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
12786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
12787 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
12788 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
12789 $as_echo_n "(cached) " >&6
12790 else
12791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12792 /* end confdefs.h. */
12793 #include <math.h>
12794 int
12795 main ()
12796 {
12797 #undef $gl_func
12798 (void) $gl_func;
12799 ;
12800 return 0;
12801 }
12802 _ACEOF
12803 if ac_fn_c_try_compile "$LINENO"; then :
12804 eval "$as_gl_Symbol=yes"
12805 else
12806 eval "$as_gl_Symbol=no"
12807 fi
12808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12809 fi
12810 eval ac_res=\$$as_gl_Symbol
12811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12812 $as_echo "$ac_res" >&6; }
12813 eval as_val=\$$as_gl_Symbol
12814 if test "x$as_val" = x""yes; then :
12815 cat >>confdefs.h <<_ACEOF
12816 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
12817 _ACEOF
12818
12819 eval ac_cv_have_decl_$gl_func=yes
12820 fi
12821 done
12822
12823
12824
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
12835
12836
12837
12838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
12839 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
12840 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
12841 $as_echo_n "(cached) " >&6
12842 else
12843
12844 case "$host_os" in
12845 # Guess no on AIX and OSF/1.
12846 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
12847 # Guess yes otherwise.
12848 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
12849 esac
12850 if test $LOCALE_JA != none; then
12851 if test "$cross_compiling" = yes; then :
12852 :
12853 else
12854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12855 /* end confdefs.h. */
12856
12857 #include <locale.h>
12858 #include <string.h>
12859 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12860 <wchar.h>.
12861 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12862 included before <wchar.h>. */
12863 #include <stddef.h>
12864 #include <stdio.h>
12865 #include <time.h>
12866 #include <wchar.h>
12867 int main ()
12868 {
12869 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
12870 {
12871 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
12872 mbstate_t state;
12873 wchar_t wc;
12874
12875 memset (&state, '\0', sizeof (mbstate_t));
12876 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
12877 if (mbsinit (&state))
12878 return 1;
12879 }
12880 return 0;
12881 }
12882 _ACEOF
12883 if ac_fn_c_try_run "$LINENO"; then :
12884 gl_cv_func_mbrtowc_incomplete_state=yes
12885 else
12886 gl_cv_func_mbrtowc_incomplete_state=no
12887 fi
12888 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12889 conftest.$ac_objext conftest.beam conftest.$ac_ext
12890 fi
12891
12892 fi
12893
12894 fi
12895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
12896 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
12897
12898
12899
12900
12901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
12902 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
12903 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
12904 $as_echo_n "(cached) " >&6
12905 else
12906
12907 case "$host_os" in
12908 # Guess no on Solaris 8.
12909 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
12910 # Guess yes otherwise.
12911 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
12912 esac
12913 if test $LOCALE_ZH_CN != none; then
12914 if test "$cross_compiling" = yes; then :
12915 :
12916 else
12917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12918 /* end confdefs.h. */
12919
12920 #include <locale.h>
12921 #include <stdlib.h>
12922 #include <string.h>
12923 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12924 <wchar.h>.
12925 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12926 included before <wchar.h>. */
12927 #include <stddef.h>
12928 #include <stdio.h>
12929 #include <time.h>
12930 #include <wchar.h>
12931 int main ()
12932 {
12933 /* This fails on Solaris 8:
12934 mbrtowc returns 2, and sets wc to 0x00F0.
12935 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
12936 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
12937 {
12938 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
12939 mbstate_t state;
12940 wchar_t wc;
12941
12942 memset (&state, '\0', sizeof (mbstate_t));
12943 if (mbrtowc (&wc, input + 3, 6, &state) != 4
12944 && mbtowc (&wc, input + 3, 6) == 4)
12945 return 1;
12946 }
12947 return 0;
12948 }
12949 _ACEOF
12950 if ac_fn_c_try_run "$LINENO"; then :
12951 gl_cv_func_mbrtowc_sanitycheck=yes
12952 else
12953 gl_cv_func_mbrtowc_sanitycheck=no
12954 fi
12955 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12956 conftest.$ac_objext conftest.beam conftest.$ac_ext
12957 fi
12958
12959 fi
12960
12961 fi
12962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
12963 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
12964
12965 REPLACE_MBSTATE_T=0
12966 case "$gl_cv_func_mbrtowc_incomplete_state" in
12967 *yes) ;;
12968 *) REPLACE_MBSTATE_T=1 ;;
12969 esac
12970 case "$gl_cv_func_mbrtowc_sanitycheck" in
12971 *yes) ;;
12972 *) REPLACE_MBSTATE_T=1 ;;
12973 esac
12974 else
12975 REPLACE_MBSTATE_T=1
12976 fi
12977
12978
12979
12980 if test $ac_cv_func_mbrtowc = no; then
12981 HAVE_MBRTOWC=0
12982 ac_fn_c_check_decl "$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" "
12983 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12984 <wchar.h>.
12985 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12986 included before <wchar.h>. */
12987 #include <stddef.h>
12988 #include <stdio.h>
12989 #include <time.h>
12990 #include <wchar.h>
12991
12992 "
12993 if test "x$ac_cv_have_decl_mbrtowc" = x""yes; then :
12994 ac_have_decl=1
12995 else
12996 ac_have_decl=0
12997 fi
12998
12999 cat >>confdefs.h <<_ACEOF
13000 #define HAVE_DECL_MBRTOWC $ac_have_decl
13001 _ACEOF
13002
13003 if test $ac_cv_have_decl_mbrtowc = yes; then
13004 REPLACE_MBRTOWC=1
13005 fi
13006 else
13007 if test $REPLACE_MBSTATE_T = 1; then
13008 REPLACE_MBRTOWC=1
13009 else
13010
13011
13012
13013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL pwc argument" >&5
13014 $as_echo_n "checking whether mbrtowc handles a NULL pwc argument... " >&6; }
13015 if test "${gl_cv_func_mbrtowc_null_arg1+set}" = set; then :
13016 $as_echo_n "(cached) " >&6
13017 else
13018
13019 case "$host_os" in
13020 # Guess no on Solaris.
13021 solaris*) gl_cv_func_mbrtowc_null_arg1="guessing no" ;;
13022 # Guess yes otherwise.
13023 *) gl_cv_func_mbrtowc_null_arg1="guessing yes" ;;
13024 esac
13025 if test $LOCALE_FR_UTF8 != none; then
13026 if test "$cross_compiling" = yes; then :
13027 :
13028 else
13029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13030 /* end confdefs.h. */
13031
13032 #include <locale.h>
13033 #include <stdlib.h>
13034 #include <string.h>
13035 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13036 <wchar.h>.
13037 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13038 included before <wchar.h>. */
13039 #include <stddef.h>
13040 #include <stdio.h>
13041 #include <time.h>
13042 #include <wchar.h>
13043 int main ()
13044 {
13045 int result = 0;
13046
13047 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
13048 {
13049 char input[] = "\303\237er";
13050 mbstate_t state;
13051 wchar_t wc;
13052 size_t ret;
13053
13054 memset (&state, '\0', sizeof (mbstate_t));
13055 wc = (wchar_t) 0xBADFACE;
13056 ret = mbrtowc (&wc, input, 5, &state);
13057 if (ret != 2)
13058 result |= 1;
13059 if (!mbsinit (&state))
13060 result |= 2;
13061
13062 memset (&state, '\0', sizeof (mbstate_t));
13063 ret = mbrtowc (NULL, input, 5, &state);
13064 if (ret != 2) /* Solaris 7 fails here: ret is -1. */
13065 result |= 4;
13066 if (!mbsinit (&state))
13067 result |= 8;
13068 }
13069 return result;
13070 }
13071 _ACEOF
13072 if ac_fn_c_try_run "$LINENO"; then :
13073 gl_cv_func_mbrtowc_null_arg1=yes
13074 else
13075 gl_cv_func_mbrtowc_null_arg1=no
13076 fi
13077 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13078 conftest.$ac_objext conftest.beam conftest.$ac_ext
13079 fi
13080
13081 fi
13082
13083 fi
13084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg1" >&5
13085 $as_echo "$gl_cv_func_mbrtowc_null_arg1" >&6; }
13086
13087
13088
13089
13090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
13091 $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
13092 if test "${gl_cv_func_mbrtowc_null_arg2+set}" = set; then :
13093 $as_echo_n "(cached) " >&6
13094 else
13095
13096 case "$host_os" in
13097 # Guess no on OSF/1.
13098 osf*) gl_cv_func_mbrtowc_null_arg2="guessing no" ;;
13099 # Guess yes otherwise.
13100 *) gl_cv_func_mbrtowc_null_arg2="guessing yes" ;;
13101 esac
13102 if test $LOCALE_FR_UTF8 != none; then
13103 if test "$cross_compiling" = yes; then :
13104 :
13105 else
13106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13107 /* end confdefs.h. */
13108
13109 #include <locale.h>
13110 #include <string.h>
13111 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13112 <wchar.h>.
13113 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13114 included before <wchar.h>. */
13115 #include <stddef.h>
13116 #include <stdio.h>
13117 #include <time.h>
13118 #include <wchar.h>
13119 int main ()
13120 {
13121 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
13122 {
13123 mbstate_t state;
13124 wchar_t wc;
13125 int ret;
13126
13127 memset (&state, '\0', sizeof (mbstate_t));
13128 wc = (wchar_t) 0xBADFACE;
13129 mbrtowc (&wc, NULL, 5, &state);
13130 /* Check that wc was not modified. */
13131 if (wc != (wchar_t) 0xBADFACE)
13132 return 1;
13133 }
13134 return 0;
13135 }
13136 _ACEOF
13137 if ac_fn_c_try_run "$LINENO"; then :
13138 gl_cv_func_mbrtowc_null_arg2=yes
13139 else
13140 gl_cv_func_mbrtowc_null_arg2=no
13141 fi
13142 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13143 conftest.$ac_objext conftest.beam conftest.$ac_ext
13144 fi
13145
13146 fi
13147
13148 fi
13149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg2" >&5
13150 $as_echo "$gl_cv_func_mbrtowc_null_arg2" >&6; }
13151
13152
13153
13154
13155
13156
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
13158 $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
13159 if test "${gl_cv_func_mbrtowc_retval+set}" = set; then :
13160 $as_echo_n "(cached) " >&6
13161 else
13162
13163 case "$host_os" in
13164 # Guess no on HP-UX, Solaris, native Windows.
13165 hpux* | solaris* | mingw*) gl_cv_func_mbrtowc_retval="guessing no" ;;
13166 # Guess yes otherwise.
13167 *) gl_cv_func_mbrtowc_retval="guessing yes" ;;
13168 esac
13169 if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none \
13170 || { case "$host_os" in mingw*) true;; *) false;; esac; }; then
13171 if test "$cross_compiling" = yes; then :
13172 :
13173 else
13174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13175 /* end confdefs.h. */
13176
13177 #include <locale.h>
13178 #include <string.h>
13179 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13180 <wchar.h>.
13181 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13182 included before <wchar.h>. */
13183 #include <stddef.h>
13184 #include <stdio.h>
13185 #include <time.h>
13186 #include <wchar.h>
13187 int main ()
13188 {
13189 int result = 0;
13190 int found_some_locale = 0;
13191 /* This fails on Solaris. */
13192 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
13193 {
13194 char input[] = "B\303\274\303\237er"; /* "Büßer" */
13195 mbstate_t state;
13196 wchar_t wc;
13197
13198 memset (&state, '\0', sizeof (mbstate_t));
13199 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
13200 {
13201 input[1] = '\0';
13202 if (mbrtowc (&wc, input + 2, 5, &state) != 1)
13203 result |= 1;
13204 }
13205 found_some_locale = 1;
13206 }
13207 /* This fails on HP-UX 11.11. */
13208 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
13209 {
13210 char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
13211 mbstate_t state;
13212 wchar_t wc;
13213
13214 memset (&state, '\0', sizeof (mbstate_t));
13215 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
13216 {
13217 input[1] = '\0';
13218 if (mbrtowc (&wc, input + 2, 5, &state) != 2)
13219 result |= 2;
13220 }
13221 found_some_locale = 1;
13222 }
13223 /* This fails on native Windows. */
13224 if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
13225 {
13226 char input[] = "<\223\372\226\173\214\352>"; /* "<日本語>" */
13227 mbstate_t state;
13228 wchar_t wc;
13229
13230 memset (&state, '\0', sizeof (mbstate_t));
13231 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
13232 {
13233 input[3] = '\0';
13234 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
13235 result |= 4;
13236 }
13237 found_some_locale = 1;
13238 }
13239 if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
13240 {
13241 char input[] = "<\244\351\245\273\273\171>"; /* "<日本語>" */
13242 mbstate_t state;
13243 wchar_t wc;
13244
13245 memset (&state, '\0', sizeof (mbstate_t));
13246 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
13247 {
13248 input[3] = '\0';
13249 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
13250 result |= 8;
13251 }
13252 found_some_locale = 1;
13253 }
13254 if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
13255 {
13256 char input[] = "<\310\325\261\276\325\132>"; /* "<日本語>" */
13257 mbstate_t state;
13258 wchar_t wc;
13259
13260 memset (&state, '\0', sizeof (mbstate_t));
13261 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
13262 {
13263 input[3] = '\0';
13264 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
13265 result |= 16;
13266 }
13267 found_some_locale = 1;
13268 }
13269 return (found_some_locale ? result : 77);
13270 }
13271 _ACEOF
13272 if ac_fn_c_try_run "$LINENO"; then :
13273 gl_cv_func_mbrtowc_retval=yes
13274 else
13275 if test $? != 77; then
13276 gl_cv_func_mbrtowc_retval=no
13277 fi
13278
13279 fi
13280 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13281 conftest.$ac_objext conftest.beam conftest.$ac_ext
13282 fi
13283
13284 fi
13285
13286 fi
13287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
13288 $as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
13289
13290
13291
13292
13293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
13294 $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
13295 if test "${gl_cv_func_mbrtowc_nul_retval+set}" = set; then :
13296 $as_echo_n "(cached) " >&6
13297 else
13298
13299 case "$host_os" in
13300 # Guess no on Solaris 8 and 9.
13301 solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
13302 # Guess yes otherwise.
13303 *) gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
13304 esac
13305 if test $LOCALE_ZH_CN != none; then
13306 if test "$cross_compiling" = yes; then :
13307 :
13308 else
13309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13310 /* end confdefs.h. */
13311
13312 #include <locale.h>
13313 #include <string.h>
13314 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13315 <wchar.h>.
13316 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13317 included before <wchar.h>. */
13318 #include <stddef.h>
13319 #include <stdio.h>
13320 #include <time.h>
13321 #include <wchar.h>
13322 int main ()
13323 {
13324 /* This fails on Solaris 8 and 9. */
13325 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
13326 {
13327 mbstate_t state;
13328 wchar_t wc;
13329
13330 memset (&state, '\0', sizeof (mbstate_t));
13331 if (mbrtowc (&wc, "", 1, &state) != 0)
13332 return 1;
13333 }
13334 return 0;
13335 }
13336 _ACEOF
13337 if ac_fn_c_try_run "$LINENO"; then :
13338 gl_cv_func_mbrtowc_nul_retval=yes
13339 else
13340 gl_cv_func_mbrtowc_nul_retval=no
13341 fi
13342 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13343 conftest.$ac_objext conftest.beam conftest.$ac_ext
13344 fi
13345
13346 fi
13347
13348 fi
13349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
13350 $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
13351
13352 case "$gl_cv_func_mbrtowc_null_arg1" in
13353 *yes) ;;
13354 *)
13355 $as_echo "#define MBRTOWC_NULL_ARG1_BUG 1" >>confdefs.h
13356
13357 REPLACE_MBRTOWC=1
13358 ;;
13359 esac
13360 case "$gl_cv_func_mbrtowc_null_arg2" in
13361 *yes) ;;
13362 *)
13363 $as_echo "#define MBRTOWC_NULL_ARG2_BUG 1" >>confdefs.h
13364
13365 REPLACE_MBRTOWC=1
13366 ;;
13367 esac
13368 case "$gl_cv_func_mbrtowc_retval" in
13369 *yes) ;;
13370 *)
13371 $as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
13372
13373 REPLACE_MBRTOWC=1
13374 ;;
13375 esac
13376 case "$gl_cv_func_mbrtowc_nul_retval" in
13377 *yes) ;;
13378 *)
13379 $as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
13380
13381 REPLACE_MBRTOWC=1
13382 ;;
13383 esac
13384 fi
13385 fi
13386
13387 if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
13388
13389
13390
13391
13392
13393
13394
13395
13396 gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext"
13397
13398
13399 :
13400
13401 fi
13402
13403
13404
13405
13406
13407 GNULIB_MBRTOWC=1
13408
13409
13410
13411
13412
13413 $as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
13414
13415
13416
13417
13418
13419
13420
13421
13422
13423
13424
13425
13426
13427
13428 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
13429
13430
13431
13432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
13433 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
13434 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
13435 $as_echo_n "(cached) " >&6
13436 else
13437
13438 case "$host_os" in
13439 # Guess no on AIX and OSF/1.
13440 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
13441 # Guess yes otherwise.
13442 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
13443 esac
13444 if test $LOCALE_JA != none; then
13445 if test "$cross_compiling" = yes; then :
13446 :
13447 else
13448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13449 /* end confdefs.h. */
13450
13451 #include <locale.h>
13452 #include <string.h>
13453 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13454 <wchar.h>.
13455 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13456 included before <wchar.h>. */
13457 #include <stddef.h>
13458 #include <stdio.h>
13459 #include <time.h>
13460 #include <wchar.h>
13461 int main ()
13462 {
13463 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
13464 {
13465 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
13466 mbstate_t state;
13467 wchar_t wc;
13468
13469 memset (&state, '\0', sizeof (mbstate_t));
13470 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
13471 if (mbsinit (&state))
13472 return 1;
13473 }
13474 return 0;
13475 }
13476 _ACEOF
13477 if ac_fn_c_try_run "$LINENO"; then :
13478 gl_cv_func_mbrtowc_incomplete_state=yes
13479 else
13480 gl_cv_func_mbrtowc_incomplete_state=no
13481 fi
13482 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13483 conftest.$ac_objext conftest.beam conftest.$ac_ext
13484 fi
13485
13486 fi
13487
13488 fi
13489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
13490 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
13491
13492
13493
13494
13495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
13496 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
13497 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
13498 $as_echo_n "(cached) " >&6
13499 else
13500
13501 case "$host_os" in
13502 # Guess no on Solaris 8.
13503 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
13504 # Guess yes otherwise.
13505 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
13506 esac
13507 if test $LOCALE_ZH_CN != none; then
13508 if test "$cross_compiling" = yes; then :
13509 :
13510 else
13511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13512 /* end confdefs.h. */
13513
13514 #include <locale.h>
13515 #include <stdlib.h>
13516 #include <string.h>
13517 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13518 <wchar.h>.
13519 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13520 included before <wchar.h>. */
13521 #include <stddef.h>
13522 #include <stdio.h>
13523 #include <time.h>
13524 #include <wchar.h>
13525 int main ()
13526 {
13527 /* This fails on Solaris 8:
13528 mbrtowc returns 2, and sets wc to 0x00F0.
13529 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
13530 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
13531 {
13532 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
13533 mbstate_t state;
13534 wchar_t wc;
13535
13536 memset (&state, '\0', sizeof (mbstate_t));
13537 if (mbrtowc (&wc, input + 3, 6, &state) != 4
13538 && mbtowc (&wc, input + 3, 6) == 4)
13539 return 1;
13540 }
13541 return 0;
13542 }
13543 _ACEOF
13544 if ac_fn_c_try_run "$LINENO"; then :
13545 gl_cv_func_mbrtowc_sanitycheck=yes
13546 else
13547 gl_cv_func_mbrtowc_sanitycheck=no
13548 fi
13549 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13550 conftest.$ac_objext conftest.beam conftest.$ac_ext
13551 fi
13552
13553 fi
13554
13555 fi
13556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
13557 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
13558
13559 REPLACE_MBSTATE_T=0
13560 case "$gl_cv_func_mbrtowc_incomplete_state" in
13561 *yes) ;;
13562 *) REPLACE_MBSTATE_T=1 ;;
13563 esac
13564 case "$gl_cv_func_mbrtowc_sanitycheck" in
13565 *yes) ;;
13566 *) REPLACE_MBSTATE_T=1 ;;
13567 esac
13568 else
13569 REPLACE_MBSTATE_T=1
13570 fi
13571
13572
13573
13574 if test $ac_cv_func_mbsinit = no; then
13575 HAVE_MBSINIT=0
13576 ac_fn_c_check_decl "$LINENO" "mbsinit" "ac_cv_have_decl_mbsinit" "
13577 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13578 <wchar.h>.
13579 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13580 included before <wchar.h>. */
13581 #include <stddef.h>
13582 #include <stdio.h>
13583 #include <time.h>
13584 #include <wchar.h>
13585
13586 "
13587 if test "x$ac_cv_have_decl_mbsinit" = x""yes; then :
13588 ac_have_decl=1
13589 else
13590 ac_have_decl=0
13591 fi
13592
13593 cat >>confdefs.h <<_ACEOF
13594 #define HAVE_DECL_MBSINIT $ac_have_decl
13595 _ACEOF
13596
13597 if test $ac_cv_have_decl_mbsinit = yes; then
13598 REPLACE_MBSINIT=1
13599 fi
13600 else
13601 if test $REPLACE_MBSTATE_T = 1; then
13602 REPLACE_MBSINIT=1
13603 else
13604 case "$host_os" in
13605 mingw*) REPLACE_MBSINIT=1 ;;
13606 esac
13607 fi
13608 fi
13609
13610 if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
13611
13612
13613
13614
13615
13616
13617
13618
13619 gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext"
13620
13621
13622 :
13623
13624 fi
13625
13626
13627
13628
13629
13630 GNULIB_MBSINIT=1
13631
13632
13633
13634
13635
13636 $as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
13637
13638
13639
13640
13641
13642
13643
13644
13645
13646
13647
13648
13649
13650 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
13651
13652
13653
13654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
13655 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
13656 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
13657 $as_echo_n "(cached) " >&6
13658 else
13659
13660 case "$host_os" in
13661 # Guess no on AIX and OSF/1.
13662 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
13663 # Guess yes otherwise.
13664 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
13665 esac
13666 if test $LOCALE_JA != none; then
13667 if test "$cross_compiling" = yes; then :
13668 :
13669 else
13670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13671 /* end confdefs.h. */
13672
13673 #include <locale.h>
13674 #include <string.h>
13675 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13676 <wchar.h>.
13677 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13678 included before <wchar.h>. */
13679 #include <stddef.h>
13680 #include <stdio.h>
13681 #include <time.h>
13682 #include <wchar.h>
13683 int main ()
13684 {
13685 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
13686 {
13687 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
13688 mbstate_t state;
13689 wchar_t wc;
13690
13691 memset (&state, '\0', sizeof (mbstate_t));
13692 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
13693 if (mbsinit (&state))
13694 return 1;
13695 }
13696 return 0;
13697 }
13698 _ACEOF
13699 if ac_fn_c_try_run "$LINENO"; then :
13700 gl_cv_func_mbrtowc_incomplete_state=yes
13701 else
13702 gl_cv_func_mbrtowc_incomplete_state=no
13703 fi
13704 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13705 conftest.$ac_objext conftest.beam conftest.$ac_ext
13706 fi
13707
13708 fi
13709
13710 fi
13711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
13712 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
13713
13714
13715
13716
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
13718 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
13719 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
13720 $as_echo_n "(cached) " >&6
13721 else
13722
13723 case "$host_os" in
13724 # Guess no on Solaris 8.
13725 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
13726 # Guess yes otherwise.
13727 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
13728 esac
13729 if test $LOCALE_ZH_CN != none; then
13730 if test "$cross_compiling" = yes; then :
13731 :
13732 else
13733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13734 /* end confdefs.h. */
13735
13736 #include <locale.h>
13737 #include <stdlib.h>
13738 #include <string.h>
13739 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13740 <wchar.h>.
13741 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13742 included before <wchar.h>. */
13743 #include <stddef.h>
13744 #include <stdio.h>
13745 #include <time.h>
13746 #include <wchar.h>
13747 int main ()
13748 {
13749 /* This fails on Solaris 8:
13750 mbrtowc returns 2, and sets wc to 0x00F0.
13751 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
13752 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
13753 {
13754 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
13755 mbstate_t state;
13756 wchar_t wc;
13757
13758 memset (&state, '\0', sizeof (mbstate_t));
13759 if (mbrtowc (&wc, input + 3, 6, &state) != 4
13760 && mbtowc (&wc, input + 3, 6) == 4)
13761 return 1;
13762 }
13763 return 0;
13764 }
13765 _ACEOF
13766 if ac_fn_c_try_run "$LINENO"; then :
13767 gl_cv_func_mbrtowc_sanitycheck=yes
13768 else
13769 gl_cv_func_mbrtowc_sanitycheck=no
13770 fi
13771 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13772 conftest.$ac_objext conftest.beam conftest.$ac_ext
13773 fi
13774
13775 fi
13776
13777 fi
13778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
13779 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
13780
13781 REPLACE_MBSTATE_T=0
13782 case "$gl_cv_func_mbrtowc_incomplete_state" in
13783 *yes) ;;
13784 *) REPLACE_MBSTATE_T=1 ;;
13785 esac
13786 case "$gl_cv_func_mbrtowc_sanitycheck" in
13787 *yes) ;;
13788 *) REPLACE_MBSTATE_T=1 ;;
13789 esac
13790 else
13791 REPLACE_MBSTATE_T=1
13792 fi
13793
13794
13795
13796 if test $ac_cv_func_mbsrtowcs = no; then
13797 HAVE_MBSRTOWCS=0
13798 ac_fn_c_check_decl "$LINENO" "mbsrtowcs" "ac_cv_have_decl_mbsrtowcs" "
13799 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13800 <wchar.h>.
13801 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13802 included before <wchar.h>. */
13803 #include <stddef.h>
13804 #include <stdio.h>
13805 #include <time.h>
13806 #include <wchar.h>
13807
13808 "
13809 if test "x$ac_cv_have_decl_mbsrtowcs" = x""yes; then :
13810 ac_have_decl=1
13811 else
13812 ac_have_decl=0
13813 fi
13814
13815 cat >>confdefs.h <<_ACEOF
13816 #define HAVE_DECL_MBSRTOWCS $ac_have_decl
13817 _ACEOF
13818
13819 if test $ac_cv_have_decl_mbsrtowcs = yes; then
13820 REPLACE_MBSRTOWCS=1
13821 fi
13822 else
13823 if test $REPLACE_MBSTATE_T = 1; then
13824 REPLACE_MBSRTOWCS=1
13825 else
13826
13827
13828
13829
13830
13831
13832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbsrtowcs works" >&5
13833 $as_echo_n "checking whether mbsrtowcs works... " >&6; }
13834 if test "${gl_cv_func_mbsrtowcs_works+set}" = set; then :
13835 $as_echo_n "(cached) " >&6
13836 else
13837
13838 case "$host_os" in
13839 # Guess no on HP-UX, Solaris, mingw.
13840 hpux* | solaris* | mingw*) gl_cv_func_mbsrtowcs_works="guessing no" ;;
13841 # Guess yes otherwise.
13842 *) gl_cv_func_mbsrtowcs_works="guessing yes" ;;
13843 esac
13844 if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
13845 if test "$cross_compiling" = yes; then :
13846 :
13847 else
13848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13849 /* end confdefs.h. */
13850
13851 #include <locale.h>
13852 #include <string.h>
13853 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13854 <wchar.h>.
13855 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13856 included before <wchar.h>. */
13857 #include <stddef.h>
13858 #include <stdio.h>
13859 #include <time.h>
13860 #include <wchar.h>
13861 int main ()
13862 {
13863 int result = 0;
13864 /* Test whether the function supports a NULL destination argument.
13865 This fails on native Windows. */
13866 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
13867 {
13868 const char input[] = "\337er";
13869 const char *src = input;
13870 mbstate_t state;
13871
13872 memset (&state, '\0', sizeof (mbstate_t));
13873 if (mbsrtowcs (NULL, &src, 1, &state) != 3
13874 || src != input)
13875 result |= 1;
13876 }
13877 /* Test whether the function works when started with a conversion state
13878 in non-initial state. This fails on HP-UX 11.11 and Solaris 10. */
13879 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
13880 {
13881 const char input[] = "B\303\274\303\237er";
13882 mbstate_t state;
13883
13884 memset (&state, '\0', sizeof (mbstate_t));
13885 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
13886 if (!mbsinit (&state))
13887 {
13888 const char *src = input + 2;
13889 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
13890 result |= 2;
13891 }
13892 }
13893 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
13894 {
13895 const char input[] = "<\306\374\313\334\270\354>";
13896 mbstate_t state;
13897
13898 memset (&state, '\0', sizeof (mbstate_t));
13899 if (mbrtowc (NULL, input + 3, 1, &state) == (size_t)(-2))
13900 if (!mbsinit (&state))
13901 {
13902 const char *src = input + 4;
13903 if (mbsrtowcs (NULL, &src, 10, &state) != 3)
13904 result |= 4;
13905 }
13906 }
13907 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
13908 {
13909 const char input[] = "B\250\271\201\060\211\070er";
13910 mbstate_t state;
13911
13912 memset (&state, '\0', sizeof (mbstate_t));
13913 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
13914 if (!mbsinit (&state))
13915 {
13916 const char *src = input + 2;
13917 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
13918 result |= 8;
13919 }
13920 }
13921 return result;
13922 }
13923 _ACEOF
13924 if ac_fn_c_try_run "$LINENO"; then :
13925 gl_cv_func_mbsrtowcs_works=yes
13926 else
13927 gl_cv_func_mbsrtowcs_works=no
13928 fi
13929 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13930 conftest.$ac_objext conftest.beam conftest.$ac_ext
13931 fi
13932
13933 fi
13934
13935 fi
13936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbsrtowcs_works" >&5
13937 $as_echo "$gl_cv_func_mbsrtowcs_works" >&6; }
13938
13939 case "$gl_cv_func_mbsrtowcs_works" in
13940 *yes) ;;
13941 *) REPLACE_MBSRTOWCS=1 ;;
13942 esac
13943 fi
13944 fi
13945
13946 if test $HAVE_MBSRTOWCS = 0 || test $REPLACE_MBSRTOWCS = 1; then
13947
13948
13949
13950
13951
13952
13953
13954
13955 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs.$ac_objext"
13956
13957
13958
13959
13960
13961
13962
13963
13964
13965 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs-state.$ac_objext"
13966
13967
13968 :
13969
13970 fi
13971
13972
13973
13974
13975
13976 GNULIB_MBSRTOWCS=1
13977
13978
13979
13980
13981
13982 $as_echo "#define GNULIB_TEST_MBSRTOWCS 1" >>confdefs.h
13983
13984
13985
13986
13987 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
13988
13989
13990
13991
13992
13993
13994
13995
13996 gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
13997
13998
13999 for ac_header in bp-sym.h
14000 do :
14001 ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
14002 if test "x$ac_cv_header_bp_sym_h" = x""yes; then :
14003 cat >>confdefs.h <<_ACEOF
14004 #define HAVE_BP_SYM_H 1
14005 _ACEOF
14006
14007 fi
14008
14009 done
14010
14011
14012 fi
14013
14014
14015
14016
14017
14018 GNULIB_MEMCHR=1
14019
14020
14021
14022
14023
14024 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
14025
14026
14027
14028
14029
14030 if test $HAVE_DECL_MEMMEM = 1 && test $REPLACE_MEMMEM = 0; then
14031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
14032 $as_echo_n "checking whether memmem works in linear time... " >&6; }
14033 if test "${gl_cv_func_memmem_works_fast+set}" = set; then :
14034 $as_echo_n "(cached) " >&6
14035 else
14036 if test "$cross_compiling" = yes; then :
14037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14038 /* end confdefs.h. */
14039
14040 #include <features.h>
14041 #ifdef __GNU_LIBRARY__
14042 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)) \
14043 && !defined __UCLIBC__
14044 Lucky user
14045 #endif
14046 #endif
14047 #ifdef __CYGWIN__
14048 #include <cygwin/version.h>
14049 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 0)
14050 Lucky user
14051 #endif
14052 #endif
14053
14054 _ACEOF
14055 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14056 $EGREP "Lucky user" >/dev/null 2>&1; then :
14057 gl_cv_func_memmem_works_fast="guessing yes"
14058 else
14059 gl_cv_func_memmem_works_fast="guessing no"
14060 fi
14061 rm -f conftest*
14062
14063
14064 else
14065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14066 /* end confdefs.h. */
14067
14068 #include <signal.h> /* for signal */
14069 #include <string.h> /* for memmem */
14070 #include <stdlib.h> /* for malloc */
14071 #include <unistd.h> /* for alarm */
14072 static void quit (int sig) { exit (sig + 128); }
14073
14074 int
14075 main ()
14076 {
14077
14078 int result = 0;
14079 size_t m = 1000000;
14080 char *haystack = (char *) malloc (2 * m + 1);
14081 char *needle = (char *) malloc (m + 1);
14082 /* Failure to compile this test due to missing alarm is okay,
14083 since all such platforms (mingw) also lack memmem. */
14084 signal (SIGALRM, quit);
14085 alarm (5);
14086 /* Check for quadratic performance. */
14087 if (haystack && needle)
14088 {
14089 memset (haystack, 'A', 2 * m);
14090 haystack[2 * m] = 'B';
14091 memset (needle, 'A', m);
14092 needle[m] = 'B';
14093 if (!memmem (haystack, 2 * m + 1, needle, m + 1))
14094 result |= 1;
14095 }
14096 return result;
14097
14098 ;
14099 return 0;
14100 }
14101 _ACEOF
14102 if ac_fn_c_try_run "$LINENO"; then :
14103 gl_cv_func_memmem_works_fast=yes
14104 else
14105 gl_cv_func_memmem_works_fast=no
14106 fi
14107 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14108 conftest.$ac_objext conftest.beam conftest.$ac_ext
14109 fi
14110
14111
14112 fi
14113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_fast" >&5
14114 $as_echo "$gl_cv_func_memmem_works_fast" >&6; }
14115 case "$gl_cv_func_memmem_works_fast" in
14116 *yes) ;;
14117 *)
14118 REPLACE_MEMMEM=1
14119 ;;
14120 esac
14121 fi
14122
14123 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
14124
14125
14126
14127
14128
14129
14130
14131
14132 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
14133
14134 fi
14135
14136
14137
14138
14139 for ac_func in memmem
14140 do :
14141 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
14142 if test "x$ac_cv_func_memmem" = x""yes; then :
14143 cat >>confdefs.h <<_ACEOF
14144 #define HAVE_MEMMEM 1
14145 _ACEOF
14146
14147 fi
14148 done
14149
14150 if test $ac_cv_func_memmem = yes; then
14151 HAVE_MEMMEM=1
14152 else
14153 HAVE_MEMMEM=0
14154 fi
14155
14156 if test $ac_cv_have_decl_memmem = no; then
14157 HAVE_DECL_MEMMEM=0
14158 else
14159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
14160 $as_echo_n "checking whether memmem works... " >&6; }
14161 if test "${gl_cv_func_memmem_works_always+set}" = set; then :
14162 $as_echo_n "(cached) " >&6
14163 else
14164 if test "$cross_compiling" = yes; then :
14165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14166 /* end confdefs.h. */
14167
14168 #ifdef __GNU_LIBRARY__
14169 #include <features.h>
14170 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
14171 || __GLIBC_MINOR__ > 12)) \
14172 || (__GLIBC__ > 2)) \
14173 || defined __UCLIBC__
14174 Lucky user
14175 #endif
14176 #elif defined __CYGWIN__
14177 #include <cygwin/version.h>
14178 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
14179 Lucky user
14180 #endif
14181 #else
14182 Lucky user
14183 #endif
14184
14185 _ACEOF
14186 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14187 $EGREP "Lucky user" >/dev/null 2>&1; then :
14188 gl_cv_func_memmem_works_always="guessing yes"
14189 else
14190 gl_cv_func_memmem_works_always="guessing no"
14191 fi
14192 rm -f conftest*
14193
14194
14195 else
14196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14197 /* end confdefs.h. */
14198
14199 #include <string.h> /* for memmem */
14200 #define P "_EF_BF_BD"
14201 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
14202 #define NEEDLE P P P P P
14203
14204 int
14205 main ()
14206 {
14207
14208 int result = 0;
14209 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
14210 result |= 1;
14211 /* Check for empty needle behavior. */
14212 {
14213 const char *haystack = "AAA";
14214 if (memmem (haystack, 3, NULL, 0) != haystack)
14215 result |= 2;
14216 }
14217 return result;
14218
14219 ;
14220 return 0;
14221 }
14222 _ACEOF
14223 if ac_fn_c_try_run "$LINENO"; then :
14224 gl_cv_func_memmem_works_always=yes
14225 else
14226 gl_cv_func_memmem_works_always=no
14227 fi
14228 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14229 conftest.$ac_objext conftest.beam conftest.$ac_ext
14230 fi
14231
14232
14233 fi
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
14235 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
14236 case "$gl_cv_func_memmem_works_always" in
14237 *yes) ;;
14238 *)
14239 REPLACE_MEMMEM=1
14240 ;;
14241 esac
14242 fi
14243 :
14244
14245 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
14246
14247
14248
14249
14250
14251
14252
14253
14254 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
14255
14256 fi
14257
14258
14259
14260
14261
14262 GNULIB_MEMMEM=1
14263
14264
14265
14266
14267
14268 $as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
14269
14270
14271
14272
14273
14274
14275
14276
14277
14278
14279 if test $ac_cv_func_readlink = no; then
14280 HAVE_READLINK=0
14281 else
14282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
14283 $as_echo_n "checking whether readlink signature is correct... " >&6; }
14284 if test "${gl_cv_decl_readlink_works+set}" = set; then :
14285 $as_echo_n "(cached) " >&6
14286 else
14287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14288 /* end confdefs.h. */
14289 #include <unistd.h>
14290 /* Cause compilation failure if original declaration has wrong type. */
14291 ssize_t readlink (const char *, char *, size_t);
14292 int
14293 main ()
14294 {
14295
14296 ;
14297 return 0;
14298 }
14299 _ACEOF
14300 if ac_fn_c_try_compile "$LINENO"; then :
14301 gl_cv_decl_readlink_works=yes
14302 else
14303 gl_cv_decl_readlink_works=no
14304 fi
14305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14306 fi
14307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
14308 $as_echo "$gl_cv_decl_readlink_works" >&6; }
14309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
14310 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
14311 if test "${gl_cv_func_readlink_works+set}" = set; then :
14312 $as_echo_n "(cached) " >&6
14313 else
14314 # We have readlink, so assume ln -s works.
14315 ln -s conftest.no-such conftest.link
14316 ln -s conftest.link conftest.lnk2
14317 if test "$cross_compiling" = yes; then :
14318 case "$host_os" in
14319 # Guess yes on glibc systems.
14320 *-gnu*) gl_cv_func_readlink_works="guessing yes" ;;
14321 # If we don't know, assume the worst.
14322 *) gl_cv_func_readlink_works="guessing no" ;;
14323 esac
14324
14325 else
14326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14327 /* end confdefs.h. */
14328 #include <unistd.h>
14329
14330 int
14331 main ()
14332 {
14333 char buf[20];
14334 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
14335 ;
14336 return 0;
14337 }
14338 _ACEOF
14339 if ac_fn_c_try_run "$LINENO"; then :
14340 gl_cv_func_readlink_works=yes
14341 else
14342 gl_cv_func_readlink_works=no
14343 fi
14344 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14345 conftest.$ac_objext conftest.beam conftest.$ac_ext
14346 fi
14347
14348 rm -f conftest.link conftest.lnk2
14349 fi
14350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
14351 $as_echo "$gl_cv_func_readlink_works" >&6; }
14352 case "$gl_cv_func_readlink_works" in
14353 *yes)
14354 if test "$gl_cv_decl_readlink_works" != yes; then
14355 REPLACE_READLINK=1
14356 fi
14357 ;;
14358 *)
14359
14360 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
14361
14362 REPLACE_READLINK=1
14363 ;;
14364 esac
14365 fi
14366
14367 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
14368
14369
14370
14371
14372
14373
14374
14375
14376 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
14377
14378
14379 :
14380
14381 fi
14382
14383
14384
14385
14386
14387 GNULIB_READLINK=1
14388
14389
14390
14391
14392
14393 $as_echo "#define GNULIB_TEST_READLINK 1" >>confdefs.h
14394
14395
14396
14397
14398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
14399 $as_echo_n "checking for ssize_t... " >&6; }
14400 if test "${gt_cv_ssize_t+set}" = set; then :
14401 $as_echo_n "(cached) " >&6
14402 else
14403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14404 /* end confdefs.h. */
14405 #include <sys/types.h>
14406 int
14407 main ()
14408 {
14409 int x = sizeof (ssize_t *) + sizeof (ssize_t);
14410 return !x;
14411 ;
14412 return 0;
14413 }
14414 _ACEOF
14415 if ac_fn_c_try_compile "$LINENO"; then :
14416 gt_cv_ssize_t=yes
14417 else
14418 gt_cv_ssize_t=no
14419 fi
14420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14421 fi
14422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
14423 $as_echo "$gt_cv_ssize_t" >&6; }
14424 if test $gt_cv_ssize_t = no; then
14425
14426 $as_echo "#define ssize_t int" >>confdefs.h
14427
14428 fi
14429
14430
14431
14432
14433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
14434 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
14435 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
14436 $as_echo_n "(cached) " >&6
14437 else
14438 if test "$cross_compiling" = yes; then :
14439 case $host_os in
14440 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
14441 *) gl_cv_func_stat_dir_slash="guessing yes";;
14442 esac
14443 else
14444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14445 /* end confdefs.h. */
14446 #include <sys/stat.h>
14447
14448 int
14449 main ()
14450 {
14451 struct stat st; return stat (".", &st) != stat ("./", &st);
14452 ;
14453 return 0;
14454 }
14455 _ACEOF
14456 if ac_fn_c_try_run "$LINENO"; then :
14457 gl_cv_func_stat_dir_slash=yes
14458 else
14459 gl_cv_func_stat_dir_slash=no
14460 fi
14461 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14462 conftest.$ac_objext conftest.beam conftest.$ac_ext
14463 fi
14464
14465 fi
14466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
14467 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
14468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
14469 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
14470 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
14471 $as_echo_n "(cached) " >&6
14472 else
14473 touch conftest.tmp
14474 # Assume that if we have lstat, we can also check symlinks.
14475 if test $ac_cv_func_lstat = yes; then
14476 ln -s conftest.tmp conftest.lnk
14477 fi
14478 if test "$cross_compiling" = yes; then :
14479 case "$host_os" in
14480 # Guess yes on glibc systems.
14481 *-gnu*) gl_cv_func_stat_file_slash="guessing yes" ;;
14482 # If we don't know, assume the worst.
14483 *) gl_cv_func_stat_file_slash="guessing no" ;;
14484 esac
14485
14486 else
14487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14488 /* end confdefs.h. */
14489 #include <sys/stat.h>
14490
14491 int
14492 main ()
14493 {
14494 int result = 0;
14495 struct stat st;
14496 if (!stat ("conftest.tmp/", &st))
14497 result |= 1;
14498 #if HAVE_LSTAT
14499 if (!stat ("conftest.lnk/", &st))
14500 result |= 2;
14501 #endif
14502 return result;
14503
14504 ;
14505 return 0;
14506 }
14507 _ACEOF
14508 if ac_fn_c_try_run "$LINENO"; then :
14509 gl_cv_func_stat_file_slash=yes
14510 else
14511 gl_cv_func_stat_file_slash=no
14512 fi
14513 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14514 conftest.$ac_objext conftest.beam conftest.$ac_ext
14515 fi
14516
14517 rm -f conftest.tmp conftest.lnk
14518 fi
14519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
14520 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
14521 case $gl_cv_func_stat_dir_slash in
14522 *no) REPLACE_STAT=1
14523
14524 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
14525 ;;
14526 esac
14527 case $gl_cv_func_stat_file_slash in
14528 *no) REPLACE_STAT=1
14529
14530 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
14531 ;;
14532 esac
14533
14534 if test $REPLACE_STAT = 1; then
14535
14536
14537
14538
14539
14540
14541
14542
14543 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
14544
14545 :
14546 fi
14547
14548
14549
14550
14551
14552 GNULIB_STAT=1
14553
14554
14555
14556
14557
14558 $as_echo "#define GNULIB_TEST_STAT 1" >>confdefs.h
14559
14560
14561
14562
14563
14564
14565 # Define two additional variables used in the Makefile substitution.
14566
14567 if test "$ac_cv_header_stdbool_h" = yes; then
14568 STDBOOL_H=''
14569 else
14570 STDBOOL_H='stdbool.h'
14571 fi
14572
14573 if test -n "$STDBOOL_H"; then
14574 GL_GENERATE_STDBOOL_H_TRUE=
14575 GL_GENERATE_STDBOOL_H_FALSE='#'
14576 else
14577 GL_GENERATE_STDBOOL_H_TRUE='#'
14578 GL_GENERATE_STDBOOL_H_FALSE=
14579 fi
14580
14581
14582 if test "$ac_cv_type__Bool" = yes; then
14583 HAVE__BOOL=1
14584 else
14585 HAVE__BOOL=0
14586 fi
14587
14588
14589
14590
14591
14592 STDDEF_H=
14593 if test $gt_cv_c_wchar_t = no; then
14594 HAVE_WCHAR_T=0
14595 STDDEF_H=stddef.h
14596 fi
14597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
14598 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
14599 if test "${gl_cv_decl_null_works+set}" = set; then :
14600 $as_echo_n "(cached) " >&6
14601 else
14602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14603 /* end confdefs.h. */
14604 #include <stddef.h>
14605 int test[2 * (sizeof NULL == sizeof (void *)) -1];
14606
14607 int
14608 main ()
14609 {
14610
14611 ;
14612 return 0;
14613 }
14614 _ACEOF
14615 if ac_fn_c_try_compile "$LINENO"; then :
14616 gl_cv_decl_null_works=yes
14617 else
14618 gl_cv_decl_null_works=no
14619 fi
14620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14621 fi
14622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
14623 $as_echo "$gl_cv_decl_null_works" >&6; }
14624 if test $gl_cv_decl_null_works = no; then
14625 REPLACE_NULL=1
14626 STDDEF_H=stddef.h
14627 fi
14628
14629 if test -n "$STDDEF_H"; then
14630 GL_GENERATE_STDDEF_H_TRUE=
14631 GL_GENERATE_STDDEF_H_FALSE='#'
14632 else
14633 GL_GENERATE_STDDEF_H_TRUE='#'
14634 GL_GENERATE_STDDEF_H_FALSE=
14635 fi
14636
14637 if test -n "$STDDEF_H"; then
14638
14639
14640
14641
14642
14643
14644
14645
14646 if test $gl_cv_have_include_next = yes; then
14647 gl_cv_next_stddef_h='<'stddef.h'>'
14648 else
14649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
14650 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
14651 if test "${gl_cv_next_stddef_h+set}" = set; then :
14652 $as_echo_n "(cached) " >&6
14653 else
14654
14655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14656 /* end confdefs.h. */
14657 #include <stddef.h>
14658
14659 _ACEOF
14660 case "$host_os" in
14661 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14662 *) gl_absname_cpp="$ac_cpp" ;;
14663 esac
14664
14665 case "$host_os" in
14666 mingw*)
14667 gl_dirsep_regex='[/\\]'
14668 ;;
14669 *)
14670 gl_dirsep_regex='\/'
14671 ;;
14672 esac
14673 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14674
14675 gl_header_literal_regex=`echo 'stddef.h' \
14676 | sed -e "$gl_make_literal_regex_sed"`
14677 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14678 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14679 s|^/[^/]|//&|
14680 p
14681 q
14682 }'
14683 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14684 sed -n "$gl_absolute_header_sed"`'"'
14685
14686
14687 fi
14688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
14689 $as_echo "$gl_cv_next_stddef_h" >&6; }
14690 fi
14691 NEXT_STDDEF_H=$gl_cv_next_stddef_h
14692
14693 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14694 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14695 gl_next_as_first_directive='<'stddef.h'>'
14696 else
14697 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14698 gl_next_as_first_directive=$gl_cv_next_stddef_h
14699 fi
14700 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
14701
14702
14703
14704
14705 fi
14706
14707
14708
14709
14710
14711
14712
14713 if test $REPLACE_STRSTR = 0; then
14714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works in linear time" >&5
14715 $as_echo_n "checking whether strstr works in linear time... " >&6; }
14716 if test "${gl_cv_func_strstr_linear+set}" = set; then :
14717 $as_echo_n "(cached) " >&6
14718 else
14719 if test "$cross_compiling" = yes; then :
14720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14721 /* end confdefs.h. */
14722
14723 #include <features.h>
14724 #ifdef __GNU_LIBRARY__
14725 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
14726 && !(defined __i386__ || defined __x86_64__) \
14727 && !defined __UCLIBC__
14728 Lucky user
14729 #endif
14730 #endif
14731 #ifdef __CYGWIN__
14732 #include <cygwin/version.h>
14733 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
14734 Lucky user
14735 #endif
14736 #endif
14737
14738 _ACEOF
14739 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14740 $EGREP "Lucky user" >/dev/null 2>&1; then :
14741 gl_cv_func_strstr_linear="guessing yes"
14742 else
14743 gl_cv_func_strstr_linear="guessing no"
14744 fi
14745 rm -f conftest*
14746
14747
14748 else
14749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14750 /* end confdefs.h. */
14751
14752 #include <signal.h> /* for signal */
14753 #include <string.h> /* for strstr */
14754 #include <stdlib.h> /* for malloc */
14755 #include <unistd.h> /* for alarm */
14756 static void quit (int sig) { exit (sig + 128); }
14757
14758 int
14759 main ()
14760 {
14761
14762 int result = 0;
14763 size_t m = 1000000;
14764 char *haystack = (char *) malloc (2 * m + 2);
14765 char *needle = (char *) malloc (m + 2);
14766 /* Failure to compile this test due to missing alarm is okay,
14767 since all such platforms (mingw) also have quadratic strstr. */
14768 signal (SIGALRM, quit);
14769 alarm (5);
14770 /* Check for quadratic performance. */
14771 if (haystack && needle)
14772 {
14773 memset (haystack, 'A', 2 * m);
14774 haystack[2 * m] = 'B';
14775 haystack[2 * m + 1] = 0;
14776 memset (needle, 'A', m);
14777 needle[m] = 'B';
14778 needle[m + 1] = 0;
14779 if (!strstr (haystack, needle))
14780 result |= 1;
14781 }
14782 return result;
14783
14784 ;
14785 return 0;
14786 }
14787 _ACEOF
14788 if ac_fn_c_try_run "$LINENO"; then :
14789 gl_cv_func_strstr_linear=yes
14790 else
14791 gl_cv_func_strstr_linear=no
14792 fi
14793 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14794 conftest.$ac_objext conftest.beam conftest.$ac_ext
14795 fi
14796
14797
14798 fi
14799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_linear" >&5
14800 $as_echo "$gl_cv_func_strstr_linear" >&6; }
14801 case "$gl_cv_func_strstr_linear" in
14802 *yes) ;;
14803 *)
14804 REPLACE_STRSTR=1
14805 ;;
14806 esac
14807 fi
14808
14809 if test $REPLACE_STRSTR = 1; then
14810
14811
14812
14813
14814
14815
14816
14817
14818 gl_LIBOBJS="$gl_LIBOBJS strstr.$ac_objext"
14819
14820 fi
14821
14822
14823
14824 if test "$gl_cv_func_memchr_works" != yes; then
14825 REPLACE_STRSTR=1
14826 else
14827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
14828 $as_echo_n "checking whether strstr works... " >&6; }
14829 if test "${gl_cv_func_strstr_works_always+set}" = set; then :
14830 $as_echo_n "(cached) " >&6
14831 else
14832 if test "$cross_compiling" = yes; then :
14833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14834 /* end confdefs.h. */
14835
14836 #ifdef __GNU_LIBRARY__
14837 #include <features.h>
14838 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
14839 || defined __UCLIBC__
14840 Lucky user
14841 #endif
14842 #elif defined __CYGWIN__
14843 #include <cygwin/version.h>
14844 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
14845 Lucky user
14846 #endif
14847 #else
14848 Lucky user
14849 #endif
14850
14851 _ACEOF
14852 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14853 $EGREP "Lucky user" >/dev/null 2>&1; then :
14854 gl_cv_func_strstr_works_always="guessing yes"
14855 else
14856 gl_cv_func_strstr_works_always="guessing no"
14857 fi
14858 rm -f conftest*
14859
14860
14861 else
14862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14863 /* end confdefs.h. */
14864
14865 #include <string.h> /* for strstr */
14866 #define P "_EF_BF_BD"
14867 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
14868 #define NEEDLE P P P P P
14869
14870 int
14871 main ()
14872 {
14873 return !!strstr (HAYSTACK, NEEDLE);
14874
14875 ;
14876 return 0;
14877 }
14878 _ACEOF
14879 if ac_fn_c_try_run "$LINENO"; then :
14880 gl_cv_func_strstr_works_always=yes
14881 else
14882 gl_cv_func_strstr_works_always=no
14883 fi
14884 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14885 conftest.$ac_objext conftest.beam conftest.$ac_ext
14886 fi
14887
14888
14889 fi
14890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
14891 $as_echo "$gl_cv_func_strstr_works_always" >&6; }
14892 case "$gl_cv_func_strstr_works_always" in
14893 *yes) ;;
14894 *)
14895 REPLACE_STRSTR=1
14896 ;;
14897 esac
14898 fi
14899
14900 if test $REPLACE_STRSTR = 1; then
14901
14902
14903
14904
14905
14906
14907
14908
14909 gl_LIBOBJS="$gl_LIBOBJS strstr.$ac_objext"
14910
14911 fi
14912
14913
14914
14915
14916
14917 GNULIB_STRSTR=1
14918
14919
14920
14921
14922
14923 $as_echo "#define GNULIB_TEST_STRSTR 1" >>confdefs.h
14924
14925
14926
14927
14928
14929
14930
14931
14932
14933
14934
14935
14936
14937
14938
14939
14940
14941 if test $gl_cv_have_include_next = yes; then
14942 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
14943 else
14944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
14945 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
14946 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
14947 $as_echo_n "(cached) " >&6
14948 else
14949
14950 if test $ac_cv_header_sys_stat_h = yes; then
14951
14952
14953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14954 /* end confdefs.h. */
14955 #include <sys/stat.h>
14956
14957 _ACEOF
14958 case "$host_os" in
14959 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14960 *) gl_absname_cpp="$ac_cpp" ;;
14961 esac
14962
14963 case "$host_os" in
14964 mingw*)
14965 gl_dirsep_regex='[/\\]'
14966 ;;
14967 *)
14968 gl_dirsep_regex='\/'
14969 ;;
14970 esac
14971 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14972
14973 gl_header_literal_regex=`echo 'sys/stat.h' \
14974 | sed -e "$gl_make_literal_regex_sed"`
14975 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14976 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14977 s|^/[^/]|//&|
14978 p
14979 q
14980 }'
14981 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14982 sed -n "$gl_absolute_header_sed"`'"'
14983 else
14984 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
14985 fi
14986
14987
14988 fi
14989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
14990 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
14991 fi
14992 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
14993
14994 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14995 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14996 gl_next_as_first_directive='<'sys/stat.h'>'
14997 else
14998 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14999 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
15000 fi
15001 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
15002
15003
15004
15005
15006
15007
15008
15009
15010
15011
15012
15013 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
15014
15015 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
15016
15017 fi
15018
15019 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
15020 #include <sys/stat.h>
15021 "
15022 if test "x$ac_cv_type_nlink_t" = x""yes; then :
15023
15024 else
15025
15026 $as_echo "#define nlink_t int" >>confdefs.h
15027
15028 fi
15029
15030
15031
15032 for gl_func in fchmodat fstat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat mknod mknodat stat utimensat; do
15033 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
15034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
15035 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
15036 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
15037 $as_echo_n "(cached) " >&6
15038 else
15039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15040 /* end confdefs.h. */
15041 #include <sys/stat.h>
15042
15043 int
15044 main ()
15045 {
15046 #undef $gl_func
15047 (void) $gl_func;
15048 ;
15049 return 0;
15050 }
15051 _ACEOF
15052 if ac_fn_c_try_compile "$LINENO"; then :
15053 eval "$as_gl_Symbol=yes"
15054 else
15055 eval "$as_gl_Symbol=no"
15056 fi
15057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15058 fi
15059 eval ac_res=\$$as_gl_Symbol
15060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15061 $as_echo "$ac_res" >&6; }
15062 eval as_val=\$$as_gl_Symbol
15063 if test "x$as_val" = x""yes; then :
15064 cat >>confdefs.h <<_ACEOF
15065 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
15066 _ACEOF
15067
15068 eval ac_cv_have_decl_$gl_func=yes
15069 fi
15070 done
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085 if test $gl_cv_have_include_next = yes; then
15086 gl_cv_next_sys_types_h='<'sys/types.h'>'
15087 else
15088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
15089 $as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
15090 if test "${gl_cv_next_sys_types_h+set}" = set; then :
15091 $as_echo_n "(cached) " >&6
15092 else
15093
15094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15095 /* end confdefs.h. */
15096 #include <sys/types.h>
15097
15098 _ACEOF
15099 case "$host_os" in
15100 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15101 *) gl_absname_cpp="$ac_cpp" ;;
15102 esac
15103
15104 case "$host_os" in
15105 mingw*)
15106 gl_dirsep_regex='[/\\]'
15107 ;;
15108 *)
15109 gl_dirsep_regex='\/'
15110 ;;
15111 esac
15112 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
15113
15114 gl_header_literal_regex=`echo 'sys/types.h' \
15115 | sed -e "$gl_make_literal_regex_sed"`
15116 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15117 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15118 s|^/[^/]|//&|
15119 p
15120 q
15121 }'
15122 gl_cv_next_sys_types_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15123 sed -n "$gl_absolute_header_sed"`'"'
15124
15125
15126 fi
15127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
15128 $as_echo "$gl_cv_next_sys_types_h" >&6; }
15129 fi
15130 NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
15131
15132 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15133 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15134 gl_next_as_first_directive='<'sys/types.h'>'
15135 else
15136 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15137 gl_next_as_first_directive=$gl_cv_next_sys_types_h
15138 fi
15139 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
15140
15141
15142
15143
15144
15145
15146
15147
15148
15149
15150
15151
15152
15153
15154
15155
15156
15157
15158
15159
15160
15161
15162
15163
15164
15165
15166
15167 if test $gl_cv_have_include_next = yes; then
15168 gl_cv_next_unistd_h='<'unistd.h'>'
15169 else
15170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
15171 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
15172 if test "${gl_cv_next_unistd_h+set}" = set; then :
15173 $as_echo_n "(cached) " >&6
15174 else
15175
15176 if test $ac_cv_header_unistd_h = yes; then
15177
15178
15179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15180 /* end confdefs.h. */
15181 #include <unistd.h>
15182
15183 _ACEOF
15184 case "$host_os" in
15185 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15186 *) gl_absname_cpp="$ac_cpp" ;;
15187 esac
15188
15189 case "$host_os" in
15190 mingw*)
15191 gl_dirsep_regex='[/\\]'
15192 ;;
15193 *)
15194 gl_dirsep_regex='\/'
15195 ;;
15196 esac
15197 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
15198
15199 gl_header_literal_regex=`echo 'unistd.h' \
15200 | sed -e "$gl_make_literal_regex_sed"`
15201 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15202 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15203 s|^/[^/]|//&|
15204 p
15205 q
15206 }'
15207 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15208 sed -n "$gl_absolute_header_sed"`'"'
15209 else
15210 gl_cv_next_unistd_h='<'unistd.h'>'
15211 fi
15212
15213
15214 fi
15215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
15216 $as_echo "$gl_cv_next_unistd_h" >&6; }
15217 fi
15218 NEXT_UNISTD_H=$gl_cv_next_unistd_h
15219
15220 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15221 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15222 gl_next_as_first_directive='<'unistd.h'>'
15223 else
15224 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15225 gl_next_as_first_directive=$gl_cv_next_unistd_h
15226 fi
15227 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
15228
15229
15230
15231
15232 if test $ac_cv_header_unistd_h = yes; then
15233 HAVE_UNISTD_H=1
15234 else
15235 HAVE_UNISTD_H=0
15236 fi
15237
15238
15239
15240
15241
15242
15243
15244 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
15245 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
15246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
15247 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
15248 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
15249 $as_echo_n "(cached) " >&6
15250 else
15251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15252 /* end confdefs.h. */
15253
15254 #if HAVE_UNISTD_H
15255 # include <unistd.h>
15256 #endif
15257 /* Some systems declare various items in the wrong headers. */
15258 #if !(defined __GLIBC__ && !defined __UCLIBC__)
15259 # include <fcntl.h>
15260 # include <stdio.h>
15261 # include <stdlib.h>
15262 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
15263 # include <io.h>
15264 # endif
15265 #endif
15266
15267 int
15268 main ()
15269 {
15270 #undef $gl_func
15271 (void) $gl_func;
15272 ;
15273 return 0;
15274 }
15275 _ACEOF
15276 if ac_fn_c_try_compile "$LINENO"; then :
15277 eval "$as_gl_Symbol=yes"
15278 else
15279 eval "$as_gl_Symbol=no"
15280 fi
15281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15282 fi
15283 eval ac_res=\$$as_gl_Symbol
15284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15285 $as_echo "$ac_res" >&6; }
15286 eval as_val=\$$as_gl_Symbol
15287 if test "x$as_val" = x""yes; then :
15288 cat >>confdefs.h <<_ACEOF
15289 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
15290 _ACEOF
15291
15292 eval ac_cv_have_decl_$gl_func=yes
15293 fi
15294 done
15295
15296
15297
15298
15299
15300
15301
15302
15303
15304
15305
15306
15307
15308
15309 if test $gl_cv_have_include_next = yes; then
15310 gl_cv_next_wchar_h='<'wchar.h'>'
15311 else
15312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
15313 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
15314 if test "${gl_cv_next_wchar_h+set}" = set; then :
15315 $as_echo_n "(cached) " >&6
15316 else
15317
15318 if test $ac_cv_header_wchar_h = yes; then
15319
15320
15321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15322 /* end confdefs.h. */
15323 #include <wchar.h>
15324
15325 _ACEOF
15326 case "$host_os" in
15327 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15328 *) gl_absname_cpp="$ac_cpp" ;;
15329 esac
15330
15331 case "$host_os" in
15332 mingw*)
15333 gl_dirsep_regex='[/\\]'
15334 ;;
15335 *)
15336 gl_dirsep_regex='\/'
15337 ;;
15338 esac
15339 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
15340
15341 gl_header_literal_regex=`echo 'wchar.h' \
15342 | sed -e "$gl_make_literal_regex_sed"`
15343 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15344 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15345 s|^/[^/]|//&|
15346 p
15347 q
15348 }'
15349 gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15350 sed -n "$gl_absolute_header_sed"`'"'
15351 else
15352 gl_cv_next_wchar_h='<'wchar.h'>'
15353 fi
15354
15355
15356 fi
15357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
15358 $as_echo "$gl_cv_next_wchar_h" >&6; }
15359 fi
15360 NEXT_WCHAR_H=$gl_cv_next_wchar_h
15361
15362 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15363 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15364 gl_next_as_first_directive='<'wchar.h'>'
15365 else
15366 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15367 gl_next_as_first_directive=$gl_cv_next_wchar_h
15368 fi
15369 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
15370
15371
15372
15373
15374 if test $ac_cv_header_wchar_h = yes; then
15375 HAVE_WCHAR_H=1
15376 else
15377 HAVE_WCHAR_H=0
15378 fi
15379
15380
15381
15382
15383
15384 if test $gt_cv_c_wint_t = yes; then
15385 HAVE_WINT_T=1
15386 else
15387 HAVE_WINT_T=0
15388 fi
15389
15390
15391
15392 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
15393 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
15394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
15395 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
15396 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
15397 $as_echo_n "(cached) " >&6
15398 else
15399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15400 /* end confdefs.h. */
15401
15402 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15403 <wchar.h>.
15404 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15405 included before <wchar.h>. */
15406 #if !(defined __GLIBC__ && !defined __UCLIBC__)
15407 # include <stddef.h>
15408 # include <stdio.h>
15409 # include <time.h>
15410 #endif
15411 #include <wchar.h>
15412
15413 int
15414 main ()
15415 {
15416 #undef $gl_func
15417 (void) $gl_func;
15418 ;
15419 return 0;
15420 }
15421 _ACEOF
15422 if ac_fn_c_try_compile "$LINENO"; then :
15423 eval "$as_gl_Symbol=yes"
15424 else
15425 eval "$as_gl_Symbol=no"
15426 fi
15427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15428 fi
15429 eval ac_res=\$$as_gl_Symbol
15430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15431 $as_echo "$ac_res" >&6; }
15432 eval as_val=\$$as_gl_Symbol
15433 if test "x$as_val" = x""yes; then :
15434 cat >>confdefs.h <<_ACEOF
15435 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
15436 _ACEOF
15437
15438 eval ac_cv_have_decl_$gl_func=yes
15439 fi
15440 done
15441
15442
15443
15444
15445
15446
15447
15448 if test $ac_cv_func_iswcntrl = yes; then
15449 HAVE_ISWCNTRL=1
15450 else
15451 HAVE_ISWCNTRL=0
15452 fi
15453
15454
15455
15456 if test $gt_cv_c_wint_t = yes; then
15457 HAVE_WINT_T=1
15458 else
15459 HAVE_WINT_T=0
15460 fi
15461
15462
15463
15464
15465
15466
15467
15468
15469
15470
15471
15472 if test $gl_cv_have_include_next = yes; then
15473 gl_cv_next_wctype_h='<'wctype.h'>'
15474 else
15475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
15476 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
15477 if test "${gl_cv_next_wctype_h+set}" = set; then :
15478 $as_echo_n "(cached) " >&6
15479 else
15480
15481 if test $ac_cv_header_wctype_h = yes; then
15482
15483
15484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15485 /* end confdefs.h. */
15486 #include <wctype.h>
15487
15488 _ACEOF
15489 case "$host_os" in
15490 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15491 *) gl_absname_cpp="$ac_cpp" ;;
15492 esac
15493
15494 case "$host_os" in
15495 mingw*)
15496 gl_dirsep_regex='[/\\]'
15497 ;;
15498 *)
15499 gl_dirsep_regex='\/'
15500 ;;
15501 esac
15502 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
15503
15504 gl_header_literal_regex=`echo 'wctype.h' \
15505 | sed -e "$gl_make_literal_regex_sed"`
15506 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15507 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15508 s|^/[^/]|//&|
15509 p
15510 q
15511 }'
15512 gl_cv_next_wctype_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15513 sed -n "$gl_absolute_header_sed"`'"'
15514 else
15515 gl_cv_next_wctype_h='<'wctype.h'>'
15516 fi
15517
15518
15519 fi
15520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
15521 $as_echo "$gl_cv_next_wctype_h" >&6; }
15522 fi
15523 NEXT_WCTYPE_H=$gl_cv_next_wctype_h
15524
15525 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15526 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15527 gl_next_as_first_directive='<'wctype.h'>'
15528 else
15529 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15530 gl_next_as_first_directive=$gl_cv_next_wctype_h
15531 fi
15532 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
15533
15534
15535
15536
15537 if test $ac_cv_header_wctype_h = yes; then
15538 if test $ac_cv_func_iswcntrl = yes; then
15539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
15540 $as_echo_n "checking whether iswcntrl works... " >&6; }
15541 if test "${gl_cv_func_iswcntrl_works+set}" = set; then :
15542 $as_echo_n "(cached) " >&6
15543 else
15544
15545 if test "$cross_compiling" = yes; then :
15546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15547 /* end confdefs.h. */
15548 #include <stdlib.h>
15549 #if __GNU_LIBRARY__ == 1
15550 Linux libc5 i18n is broken.
15551 #endif
15552 int
15553 main ()
15554 {
15555
15556 ;
15557 return 0;
15558 }
15559 _ACEOF
15560 if ac_fn_c_try_compile "$LINENO"; then :
15561 gl_cv_func_iswcntrl_works="guessing yes"
15562 else
15563 gl_cv_func_iswcntrl_works="guessing no"
15564 fi
15565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15566
15567 else
15568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15569 /* end confdefs.h. */
15570
15571 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
15572 included before <wchar.h>.
15573 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
15574 must be included before <wchar.h>. */
15575 #include <stddef.h>
15576 #include <stdio.h>
15577 #include <time.h>
15578 #include <wchar.h>
15579 #include <wctype.h>
15580 int main () { return iswprint ('x') == 0; }
15581
15582 _ACEOF
15583 if ac_fn_c_try_run "$LINENO"; then :
15584 gl_cv_func_iswcntrl_works=yes
15585 else
15586 gl_cv_func_iswcntrl_works=no
15587 fi
15588 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15589 conftest.$ac_objext conftest.beam conftest.$ac_ext
15590 fi
15591
15592
15593 fi
15594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
15595 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
15596 fi
15597 HAVE_WCTYPE_H=1
15598 else
15599 HAVE_WCTYPE_H=0
15600 fi
15601
15602
15603 case "$gl_cv_func_iswcntrl_works" in
15604 *yes) REPLACE_ISWCNTRL=0 ;;
15605 *) REPLACE_ISWCNTRL=1 ;;
15606 esac
15607
15608
15609 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
15610 :
15611 fi
15612
15613 if test $REPLACE_ISWCNTRL = 1; then
15614 REPLACE_TOWLOWER=1
15615 else
15616 for ac_func in towlower
15617 do :
15618 ac_fn_c_check_func "$LINENO" "towlower" "ac_cv_func_towlower"
15619 if test "x$ac_cv_func_towlower" = x""yes; then :
15620 cat >>confdefs.h <<_ACEOF
15621 #define HAVE_TOWLOWER 1
15622 _ACEOF
15623
15624 fi
15625 done
15626
15627 if test $ac_cv_func_towlower = yes; then
15628 REPLACE_TOWLOWER=0
15629 else
15630 ac_fn_c_check_decl "$LINENO" "towlower" "ac_cv_have_decl_towlower" "/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
15631 included before <wchar.h>.
15632 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
15633 must be included before <wchar.h>. */
15634 #include <stddef.h>
15635 #include <stdio.h>
15636 #include <time.h>
15637 #include <wchar.h>
15638 #if HAVE_WCTYPE_H
15639 # include <wctype.h>
15640 #endif
15641
15642 "
15643 if test "x$ac_cv_have_decl_towlower" = x""yes; then :
15644 ac_have_decl=1
15645 else
15646 ac_have_decl=0
15647 fi
15648
15649 cat >>confdefs.h <<_ACEOF
15650 #define HAVE_DECL_TOWLOWER $ac_have_decl
15651 _ACEOF
15652
15653 if test $ac_cv_have_decl_towlower = yes; then
15654 REPLACE_TOWLOWER=1
15655 else
15656 REPLACE_TOWLOWER=0
15657 fi
15658 fi
15659 fi
15660
15661
15662 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_TOWLOWER = 1; then
15663 :
15664 fi
15665
15666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
15667 $as_echo_n "checking for wctype_t... " >&6; }
15668 if test "${gl_cv_type_wctype_t+set}" = set; then :
15669 $as_echo_n "(cached) " >&6
15670 else
15671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15672 /* end confdefs.h. */
15673 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
15674 included before <wchar.h>.
15675 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
15676 must be included before <wchar.h>. */
15677 #include <stddef.h>
15678 #include <stdio.h>
15679 #include <time.h>
15680 #include <wchar.h>
15681 #if HAVE_WCTYPE_H
15682 # include <wctype.h>
15683 #endif
15684 wctype_t a;
15685
15686 int
15687 main ()
15688 {
15689
15690 ;
15691 return 0;
15692 }
15693 _ACEOF
15694 if ac_fn_c_try_compile "$LINENO"; then :
15695 gl_cv_type_wctype_t=yes
15696 else
15697 gl_cv_type_wctype_t=no
15698 fi
15699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15700
15701 fi
15702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
15703 $as_echo "$gl_cv_type_wctype_t" >&6; }
15704 if test $gl_cv_type_wctype_t = no; then
15705 HAVE_WCTYPE_T=0
15706 fi
15707
15708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
15709 $as_echo_n "checking for wctrans_t... " >&6; }
15710 if test "${gl_cv_type_wctrans_t+set}" = set; then :
15711 $as_echo_n "(cached) " >&6
15712 else
15713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15714 /* end confdefs.h. */
15715 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
15716 included before <wchar.h>.
15717 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
15718 must be included before <wchar.h>. */
15719 #include <stddef.h>
15720 #include <stdio.h>
15721 #include <time.h>
15722 #include <wchar.h>
15723 #include <wctype.h>
15724 wctrans_t a;
15725
15726 int
15727 main ()
15728 {
15729
15730 ;
15731 return 0;
15732 }
15733 _ACEOF
15734 if ac_fn_c_try_compile "$LINENO"; then :
15735 gl_cv_type_wctrans_t=yes
15736 else
15737 gl_cv_type_wctrans_t=no
15738 fi
15739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15740
15741 fi
15742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
15743 $as_echo "$gl_cv_type_wctrans_t" >&6; }
15744 if test $gl_cv_type_wctrans_t = no; then
15745 HAVE_WCTRANS_T=0
15746 fi
15747
15748
15749 for gl_func in wctype iswctype wctrans towctrans ; do
15750 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
15751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
15752 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
15753 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
15754 $as_echo_n "(cached) " >&6
15755 else
15756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15757 /* end confdefs.h. */
15758
15759 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15760 <wchar.h>.
15761 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15762 included before <wchar.h>. */
15763 #if !(defined __GLIBC__ && !defined __UCLIBC__)
15764 # include <stddef.h>
15765 # include <stdio.h>
15766 # include <time.h>
15767 # include <wchar.h>
15768 #endif
15769 #include <wctype.h>
15770
15771 int
15772 main ()
15773 {
15774 #undef $gl_func
15775 (void) $gl_func;
15776 ;
15777 return 0;
15778 }
15779 _ACEOF
15780 if ac_fn_c_try_compile "$LINENO"; then :
15781 eval "$as_gl_Symbol=yes"
15782 else
15783 eval "$as_gl_Symbol=no"
15784 fi
15785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15786 fi
15787 eval ac_res=\$$as_gl_Symbol
15788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15789 $as_echo "$ac_res" >&6; }
15790 eval as_val=\$$as_gl_Symbol
15791 if test "x$as_val" = x""yes; then :
15792 cat >>confdefs.h <<_ACEOF
15793 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
15794 _ACEOF
15795
15796 eval ac_cv_have_decl_$gl_func=yes
15797 fi
15798 done
15799
15800
15801 # End of code from modules
15802
15803
15804
15805
15806
15807
15808
15809
15810
15811 gltests_libdeps=
15812 gltests_ltlibdeps=
15813
15814
15815
15816
15817
15818
15819
15820
15821
15822 gl_source_base='tests'
15823 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
15824
15825 gl_module_indicator_condition=$gltests_WITNESS
15826
15827
15828
15829
15830
15831
15832
15833
15834
15835 LIBGNU_LIBDEPS="$gl_libdeps"
15836
15837 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
15838
15839
15840
15841 # We don't use automake, but gnulib does. This line lets us generate
15842 # its Makefile.in.
15843 am__api_version='1.11'
15844
15845 # Find a good install program. We prefer a C program (faster),
15846 # so one script is as good as another. But avoid the broken or
15847 # incompatible versions:
15848 # SysV /etc/install, /usr/sbin/install
15849 # SunOS /usr/etc/install
15850 # IRIX /sbin/install
15851 # AIX /bin/install
15852 # AmigaOS /C/install, which installs bootblocks on floppy discs
15853 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
15854 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
15855 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
15856 # OS/2's system install, which has a completely different semantic
15857 # ./install, which can be erroneously created by make from ./install.sh.
15858 # Reject install programs that cannot install multiple files.
15859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
15860 $as_echo_n "checking for a BSD-compatible install... " >&6; }
15861 if test -z "$INSTALL"; then
15862 if test "${ac_cv_path_install+set}" = set; then :
15863 $as_echo_n "(cached) " >&6
15864 else
15865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15866 for as_dir in $PATH
15867 do
15868 IFS=$as_save_IFS
15869 test -z "$as_dir" && as_dir=.
15870 # Account for people who put trailing slashes in PATH elements.
15871 case $as_dir/ in #((
15872 ./ | .// | /[cC]/* | \
15873 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
15874 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
15875 /usr/ucb/* ) ;;
15876 *)
15877 # OSF1 and SCO ODT 3.0 have their own names for install.
15878 # Don't use installbsd from OSF since it installs stuff as root
15879 # by default.
15880 for ac_prog in ginstall scoinst install; do
15881 for ac_exec_ext in '' $ac_executable_extensions; do
15882 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
15883 if test $ac_prog = install &&
15884 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
15885 # AIX install. It has an incompatible calling convention.
15886 :
15887 elif test $ac_prog = install &&
15888 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
15889 # program-specific install script used by HP pwplus--don't use.
15890 :
15891 else
15892 rm -rf conftest.one conftest.two conftest.dir
15893 echo one > conftest.one
15894 echo two > conftest.two
15895 mkdir conftest.dir
15896 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
15897 test -s conftest.one && test -s conftest.two &&
15898 test -s conftest.dir/conftest.one &&
15899 test -s conftest.dir/conftest.two
15900 then
15901 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
15902 break 3
15903 fi
15904 fi
15905 fi
15906 done
15907 done
15908 ;;
15909 esac
15910
15911 done
15912 IFS=$as_save_IFS
15913
15914 rm -rf conftest.one conftest.two conftest.dir
15915
15916 fi
15917 if test "${ac_cv_path_install+set}" = set; then
15918 INSTALL=$ac_cv_path_install
15919 else
15920 # As a last resort, use the slow shell script. Don't cache a
15921 # value for INSTALL within a source directory, because that will
15922 # break other packages using the cache if that directory is
15923 # removed, or if the value is a relative name.
15924 INSTALL=$ac_install_sh
15925 fi
15926 fi
15927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
15928 $as_echo "$INSTALL" >&6; }
15929
15930 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
15931 # It thinks the first close brace ends the variable substitution.
15932 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
15933
15934 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
15935
15936 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
15937
15938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
15939 $as_echo_n "checking whether build environment is sane... " >&6; }
15940 # Just in case
15941 sleep 1
15942 echo timestamp > conftest.file
15943 # Reject unsafe characters in $srcdir or the absolute working directory
15944 # name. Accept space and tab only in the latter.
15945 am_lf='
15946 '
15947 case `pwd` in
15948 *[\\\"\#\$\&\'\`$am_lf]*)
15949 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
15950 esac
15951 case $srcdir in
15952 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
15953 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
15954 esac
15955
15956 # Do `set' in a subshell so we don't clobber the current shell's
15957 # arguments. Must try -L first in case configure is actually a
15958 # symlink; some systems play weird games with the mod time of symlinks
15959 # (eg FreeBSD returns the mod time of the symlink's containing
15960 # directory).
15961 if (
15962 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
15963 if test "$*" = "X"; then
15964 # -L didn't work.
15965 set X `ls -t "$srcdir/configure" conftest.file`
15966 fi
15967 rm -f conftest.file
15968 if test "$*" != "X $srcdir/configure conftest.file" \
15969 && test "$*" != "X conftest.file $srcdir/configure"; then
15970
15971 # If neither matched, then we have a broken ls. This can happen
15972 # if, for instance, CONFIG_SHELL is bash and it inherits a
15973 # broken ls alias from the environment. This has actually
15974 # happened. Such a system could not be considered "sane".
15975 as_fn_error "ls -t appears to fail. Make sure there is not a broken
15976 alias in your environment" "$LINENO" 5
15977 fi
15978
15979 test "$2" = conftest.file
15980 )
15981 then
15982 # Ok.
15983 :
15984 else
15985 as_fn_error "newly created file is older than distributed files!
15986 Check your system clock" "$LINENO" 5
15987 fi
15988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15989 $as_echo "yes" >&6; }
15990 test "$program_prefix" != NONE &&
15991 program_transform_name="s&^&$program_prefix&;$program_transform_name"
15992 # Use a double $ so make ignores it.
15993 test "$program_suffix" != NONE &&
15994 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
15995 # Double any \ or $.
15996 # By default was `s,x,x', remove it if useless.
15997 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
15998 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
15999
16000 # expand $ac_aux_dir to an absolute path
16001 am_aux_dir=`cd $ac_aux_dir && pwd`
16002
16003 if test x"${MISSING+set}" != xset; then
16004 case $am_aux_dir in
16005 *\ * | *\ *)
16006 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
16007 *)
16008 MISSING="\${SHELL} $am_aux_dir/missing" ;;
16009 esac
16010 fi
16011 # Use eval to expand $SHELL
16012 if eval "$MISSING --run true"; then
16013 am_missing_run="$MISSING --run "
16014 else
16015 am_missing_run=
16016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
16017 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
16018 fi
16019
16020 if test x"${install_sh}" != xset; then
16021 case $am_aux_dir in
16022 *\ * | *\ *)
16023 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
16024 *)
16025 install_sh="\${SHELL} $am_aux_dir/install-sh"
16026 esac
16027 fi
16028
16029 # Installed binaries are usually stripped using `strip' when the user
16030 # run `make install-strip'. However `strip' might not be the right
16031 # tool to use in cross-compilation environments, therefore Automake
16032 # will honor the `STRIP' environment variable to overrule this program.
16033 if test "$cross_compiling" != no; then
16034 if test -n "$ac_tool_prefix"; then
16035 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
16036 set dummy ${ac_tool_prefix}strip; ac_word=$2
16037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16038 $as_echo_n "checking for $ac_word... " >&6; }
16039 if test "${ac_cv_prog_STRIP+set}" = set; then :
16040 $as_echo_n "(cached) " >&6
16041 else
16042 if test -n "$STRIP"; then
16043 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
16044 else
16045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16046 for as_dir in $PATH
16047 do
16048 IFS=$as_save_IFS
16049 test -z "$as_dir" && as_dir=.
16050 for ac_exec_ext in '' $ac_executable_extensions; do
16051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16052 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
16053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16054 break 2
16055 fi
16056 done
16057 done
16058 IFS=$as_save_IFS
16059
16060 fi
16061 fi
16062 STRIP=$ac_cv_prog_STRIP
16063 if test -n "$STRIP"; then
16064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
16065 $as_echo "$STRIP" >&6; }
16066 else
16067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16068 $as_echo "no" >&6; }
16069 fi
16070
16071
16072 fi
16073 if test -z "$ac_cv_prog_STRIP"; then
16074 ac_ct_STRIP=$STRIP
16075 # Extract the first word of "strip", so it can be a program name with args.
16076 set dummy strip; ac_word=$2
16077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16078 $as_echo_n "checking for $ac_word... " >&6; }
16079 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
16080 $as_echo_n "(cached) " >&6
16081 else
16082 if test -n "$ac_ct_STRIP"; then
16083 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
16084 else
16085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16086 for as_dir in $PATH
16087 do
16088 IFS=$as_save_IFS
16089 test -z "$as_dir" && as_dir=.
16090 for ac_exec_ext in '' $ac_executable_extensions; do
16091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16092 ac_cv_prog_ac_ct_STRIP="strip"
16093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16094 break 2
16095 fi
16096 done
16097 done
16098 IFS=$as_save_IFS
16099
16100 fi
16101 fi
16102 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
16103 if test -n "$ac_ct_STRIP"; then
16104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
16105 $as_echo "$ac_ct_STRIP" >&6; }
16106 else
16107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16108 $as_echo "no" >&6; }
16109 fi
16110
16111 if test "x$ac_ct_STRIP" = x; then
16112 STRIP=":"
16113 else
16114 case $cross_compiling:$ac_tool_warned in
16115 yes:)
16116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16117 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16118 ac_tool_warned=yes ;;
16119 esac
16120 STRIP=$ac_ct_STRIP
16121 fi
16122 else
16123 STRIP="$ac_cv_prog_STRIP"
16124 fi
16125
16126 fi
16127 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
16128
16129 mkdir_p="$MKDIR_P"
16130 case $mkdir_p in
16131 [\\/$]* | ?:[\\/]*) ;;
16132 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
16133 esac
16134
16135 for ac_prog in gawk mawk nawk awk
16136 do
16137 # Extract the first word of "$ac_prog", so it can be a program name with args.
16138 set dummy $ac_prog; ac_word=$2
16139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16140 $as_echo_n "checking for $ac_word... " >&6; }
16141 if test "${ac_cv_prog_AWK+set}" = set; then :
16142 $as_echo_n "(cached) " >&6
16143 else
16144 if test -n "$AWK"; then
16145 ac_cv_prog_AWK="$AWK" # Let the user override the test.
16146 else
16147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16148 for as_dir in $PATH
16149 do
16150 IFS=$as_save_IFS
16151 test -z "$as_dir" && as_dir=.
16152 for ac_exec_ext in '' $ac_executable_extensions; do
16153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16154 ac_cv_prog_AWK="$ac_prog"
16155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16156 break 2
16157 fi
16158 done
16159 done
16160 IFS=$as_save_IFS
16161
16162 fi
16163 fi
16164 AWK=$ac_cv_prog_AWK
16165 if test -n "$AWK"; then
16166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
16167 $as_echo "$AWK" >&6; }
16168 else
16169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16170 $as_echo "no" >&6; }
16171 fi
16172
16173
16174 test -n "$AWK" && break
16175 done
16176
16177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
16178 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
16179 set x ${MAKE-make}
16180 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16181 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
16182 $as_echo_n "(cached) " >&6
16183 else
16184 cat >conftest.make <<\_ACEOF
16185 SHELL = /bin/sh
16186 all:
16187 @echo '@@@%%%=$(MAKE)=@@@%%%'
16188 _ACEOF
16189 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
16190 case `${MAKE-make} -f conftest.make 2>/dev/null` in
16191 *@@@%%%=?*=@@@%%%*)
16192 eval ac_cv_prog_make_${ac_make}_set=yes;;
16193 *)
16194 eval ac_cv_prog_make_${ac_make}_set=no;;
16195 esac
16196 rm -f conftest.make
16197 fi
16198 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16200 $as_echo "yes" >&6; }
16201 SET_MAKE=
16202 else
16203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16204 $as_echo "no" >&6; }
16205 SET_MAKE="MAKE=${MAKE-make}"
16206 fi
16207
16208 rm -rf .tst 2>/dev/null
16209 mkdir .tst 2>/dev/null
16210 if test -d .tst; then
16211 am__leading_dot=.
16212 else
16213 am__leading_dot=_
16214 fi
16215 rmdir .tst 2>/dev/null
16216
16217 DEPDIR="${am__leading_dot}deps"
16218
16219 ac_config_commands="$ac_config_commands depfiles"
16220
16221
16222 am_make=${MAKE-make}
16223 cat > confinc << 'END'
16224 am__doit:
16225 @echo this is the am__doit target
16226 .PHONY: am__doit
16227 END
16228 # If we don't find an include directive, just comment out the code.
16229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
16230 $as_echo_n "checking for style of include used by $am_make... " >&6; }
16231 am__include="#"
16232 am__quote=
16233 _am_result=none
16234 # First try GNU make style include.
16235 echo "include confinc" > confmf
16236 # Ignore all kinds of additional output from `make'.
16237 case `$am_make -s -f confmf 2> /dev/null` in #(
16238 *the\ am__doit\ target*)
16239 am__include=include
16240 am__quote=
16241 _am_result=GNU
16242 ;;
16243 esac
16244 # Now try BSD make style include.
16245 if test "$am__include" = "#"; then
16246 echo '.include "confinc"' > confmf
16247 case `$am_make -s -f confmf 2> /dev/null` in #(
16248 *the\ am__doit\ target*)
16249 am__include=.include
16250 am__quote="\""
16251 _am_result=BSD
16252 ;;
16253 esac
16254 fi
16255
16256
16257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
16258 $as_echo "$_am_result" >&6; }
16259 rm -f confinc confmf
16260
16261 # Check whether --enable-dependency-tracking was given.
16262 if test "${enable_dependency_tracking+set}" = set; then :
16263 enableval=$enable_dependency_tracking;
16264 fi
16265
16266 if test "x$enable_dependency_tracking" != xno; then
16267 am_depcomp="$ac_aux_dir/depcomp"
16268 AMDEPBACKSLASH='\'
16269 fi
16270 if test "x$enable_dependency_tracking" != xno; then
16271 AMDEP_TRUE=
16272 AMDEP_FALSE='#'
16273 else
16274 AMDEP_TRUE='#'
16275 AMDEP_FALSE=
16276 fi
16277
16278
16279 if test "`cd $srcdir && pwd`" != "`pwd`"; then
16280 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
16281 # is not polluted with repeated "-I."
16282 am__isrc=' -I$(srcdir)'
16283 # test to see if srcdir already configured
16284 if test -f $srcdir/config.status; then
16285 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
16286 fi
16287 fi
16288
16289 # test whether we have cygpath
16290 if test -z "$CYGPATH_W"; then
16291 if (cygpath --version) >/dev/null 2>/dev/null; then
16292 CYGPATH_W='cygpath -w'
16293 else
16294 CYGPATH_W=echo
16295 fi
16296 fi
16297
16298
16299 # Define the identity of the package.
16300 PACKAGE=libgnu
16301 VERSION=UNUSED-VERSION
16302
16303
16304 # Some tools Automake needs.
16305
16306 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
16307
16308
16309 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
16310
16311
16312 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
16313
16314
16315 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
16316
16317
16318 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
16319
16320 # We need awk for the "check" target. The system "awk" is bad on
16321 # some platforms.
16322 # Always define AMTAR for backward compatibility.
16323
16324 AMTAR=${AMTAR-"${am_missing_run}tar"}
16325
16326 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
16327
16328
16329
16330
16331 depcc="$CC" am_compiler_list=
16332
16333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
16334 $as_echo_n "checking dependency style of $depcc... " >&6; }
16335 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
16336 $as_echo_n "(cached) " >&6
16337 else
16338 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
16339 # We make a subdir and do the tests there. Otherwise we can end up
16340 # making bogus files that we don't know about and never remove. For
16341 # instance it was reported that on HP-UX the gcc test will end up
16342 # making a dummy file named `D' -- because `-MD' means `put the output
16343 # in D'.
16344 mkdir conftest.dir
16345 # Copy depcomp to subdir because otherwise we won't find it if we're
16346 # using a relative directory.
16347 cp "$am_depcomp" conftest.dir
16348 cd conftest.dir
16349 # We will build objects and dependencies in a subdirectory because
16350 # it helps to detect inapplicable dependency modes. For instance
16351 # both Tru64's cc and ICC support -MD to output dependencies as a
16352 # side effect of compilation, but ICC will put the dependencies in
16353 # the current directory while Tru64 will put them in the object
16354 # directory.
16355 mkdir sub
16356
16357 am_cv_CC_dependencies_compiler_type=none
16358 if test "$am_compiler_list" = ""; then
16359 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
16360 fi
16361 am__universal=false
16362 case " $depcc " in #(
16363 *\ -arch\ *\ -arch\ *) am__universal=true ;;
16364 esac
16365
16366 for depmode in $am_compiler_list; do
16367 # Setup a source with many dependencies, because some compilers
16368 # like to wrap large dependency lists on column 80 (with \), and
16369 # we should not choose a depcomp mode which is confused by this.
16370 #
16371 # We need to recreate these files for each test, as the compiler may
16372 # overwrite some of them when testing with obscure command lines.
16373 # This happens at least with the AIX C compiler.
16374 : > sub/conftest.c
16375 for i in 1 2 3 4 5 6; do
16376 echo '#include "conftst'$i'.h"' >> sub/conftest.c
16377 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
16378 # Solaris 8's {/usr,}/bin/sh.
16379 touch sub/conftst$i.h
16380 done
16381 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
16382
16383 # We check with `-c' and `-o' for the sake of the "dashmstdout"
16384 # mode. It turns out that the SunPro C++ compiler does not properly
16385 # handle `-M -o', and we need to detect this. Also, some Intel
16386 # versions had trouble with output in subdirs
16387 am__obj=sub/conftest.${OBJEXT-o}
16388 am__minus_obj="-o $am__obj"
16389 case $depmode in
16390 gcc)
16391 # This depmode causes a compiler race in universal mode.
16392 test "$am__universal" = false || continue
16393 ;;
16394 nosideeffect)
16395 # after this tag, mechanisms are not by side-effect, so they'll
16396 # only be used when explicitly requested
16397 if test "x$enable_dependency_tracking" = xyes; then
16398 continue
16399 else
16400 break
16401 fi
16402 ;;
16403 msvisualcpp | msvcmsys)
16404 # This compiler won't grok `-c -o', but also, the minuso test has
16405 # not run yet. These depmodes are late enough in the game, and
16406 # so weak that their functioning should not be impacted.
16407 am__obj=conftest.${OBJEXT-o}
16408 am__minus_obj=
16409 ;;
16410 none) break ;;
16411 esac
16412 if depmode=$depmode \
16413 source=sub/conftest.c object=$am__obj \
16414 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
16415 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
16416 >/dev/null 2>conftest.err &&
16417 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
16418 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
16419 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
16420 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
16421 # icc doesn't choke on unknown options, it will just issue warnings
16422 # or remarks (even with -Werror). So we grep stderr for any message
16423 # that says an option was ignored or not supported.
16424 # When given -MP, icc 7.0 and 7.1 complain thusly:
16425 # icc: Command line warning: ignoring option '-M'; no argument required
16426 # The diagnosis changed in icc 8.0:
16427 # icc: Command line remark: option '-MP' not supported
16428 if (grep 'ignoring option' conftest.err ||
16429 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
16430 am_cv_CC_dependencies_compiler_type=$depmode
16431 break
16432 fi
16433 fi
16434 done
16435
16436 cd ..
16437 rm -rf conftest.dir
16438 else
16439 am_cv_CC_dependencies_compiler_type=none
16440 fi
16441
16442 fi
16443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
16444 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
16445 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
16446
16447 if
16448 test "x$enable_dependency_tracking" != xno \
16449 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
16450 am__fastdepCC_TRUE=
16451 am__fastdepCC_FALSE='#'
16452 else
16453 am__fastdepCC_TRUE='#'
16454 am__fastdepCC_FALSE=
16455 fi
16456
16457
16458
16459
16460 # --------------------- #
16461 # Checks for programs. #
16462 # --------------------- #
16463
16464
16465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
16466 $as_echo_n "checking whether ln -s works... " >&6; }
16467 LN_S=$as_ln_s
16468 if test "$LN_S" = "ln -s"; then
16469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16470 $as_echo "yes" >&6; }
16471 else
16472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
16473 $as_echo "no, using $LN_S" >&6; }
16474 fi
16475
16476 if test -n "$ac_tool_prefix"; then
16477 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
16478 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
16479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16480 $as_echo_n "checking for $ac_word... " >&6; }
16481 if test "${ac_cv_prog_RANLIB+set}" = set; then :
16482 $as_echo_n "(cached) " >&6
16483 else
16484 if test -n "$RANLIB"; then
16485 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
16486 else
16487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16488 for as_dir in $PATH
16489 do
16490 IFS=$as_save_IFS
16491 test -z "$as_dir" && as_dir=.
16492 for ac_exec_ext in '' $ac_executable_extensions; do
16493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16494 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
16495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16496 break 2
16497 fi
16498 done
16499 done
16500 IFS=$as_save_IFS
16501
16502 fi
16503 fi
16504 RANLIB=$ac_cv_prog_RANLIB
16505 if test -n "$RANLIB"; then
16506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
16507 $as_echo "$RANLIB" >&6; }
16508 else
16509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16510 $as_echo "no" >&6; }
16511 fi
16512
16513
16514 fi
16515 if test -z "$ac_cv_prog_RANLIB"; then
16516 ac_ct_RANLIB=$RANLIB
16517 # Extract the first word of "ranlib", so it can be a program name with args.
16518 set dummy ranlib; ac_word=$2
16519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16520 $as_echo_n "checking for $ac_word... " >&6; }
16521 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
16522 $as_echo_n "(cached) " >&6
16523 else
16524 if test -n "$ac_ct_RANLIB"; then
16525 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
16526 else
16527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16528 for as_dir in $PATH
16529 do
16530 IFS=$as_save_IFS
16531 test -z "$as_dir" && as_dir=.
16532 for ac_exec_ext in '' $ac_executable_extensions; do
16533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16534 ac_cv_prog_ac_ct_RANLIB="ranlib"
16535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16536 break 2
16537 fi
16538 done
16539 done
16540 IFS=$as_save_IFS
16541
16542 fi
16543 fi
16544 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
16545 if test -n "$ac_ct_RANLIB"; then
16546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
16547 $as_echo "$ac_ct_RANLIB" >&6; }
16548 else
16549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16550 $as_echo "no" >&6; }
16551 fi
16552
16553 if test "x$ac_ct_RANLIB" = x; then
16554 RANLIB=":"
16555 else
16556 case $cross_compiling:$ac_tool_warned in
16557 yes:)
16558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16559 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16560 ac_tool_warned=yes ;;
16561 esac
16562 RANLIB=$ac_ct_RANLIB
16563 fi
16564 else
16565 RANLIB="$ac_cv_prog_RANLIB"
16566 fi
16567
16568
16569 if test -n "$ac_tool_prefix"; then
16570 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
16571 set dummy ${ac_tool_prefix}ar; ac_word=$2
16572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16573 $as_echo_n "checking for $ac_word... " >&6; }
16574 if test "${ac_cv_prog_AR+set}" = set; then :
16575 $as_echo_n "(cached) " >&6
16576 else
16577 if test -n "$AR"; then
16578 ac_cv_prog_AR="$AR" # Let the user override the test.
16579 else
16580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16581 for as_dir in $PATH
16582 do
16583 IFS=$as_save_IFS
16584 test -z "$as_dir" && as_dir=.
16585 for ac_exec_ext in '' $ac_executable_extensions; do
16586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16587 ac_cv_prog_AR="${ac_tool_prefix}ar"
16588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16589 break 2
16590 fi
16591 done
16592 done
16593 IFS=$as_save_IFS
16594
16595 fi
16596 fi
16597 AR=$ac_cv_prog_AR
16598 if test -n "$AR"; then
16599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
16600 $as_echo "$AR" >&6; }
16601 else
16602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16603 $as_echo "no" >&6; }
16604 fi
16605
16606
16607 fi
16608 if test -z "$ac_cv_prog_AR"; then
16609 ac_ct_AR=$AR
16610 # Extract the first word of "ar", so it can be a program name with args.
16611 set dummy ar; ac_word=$2
16612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16613 $as_echo_n "checking for $ac_word... " >&6; }
16614 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
16615 $as_echo_n "(cached) " >&6
16616 else
16617 if test -n "$ac_ct_AR"; then
16618 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
16619 else
16620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16621 for as_dir in $PATH
16622 do
16623 IFS=$as_save_IFS
16624 test -z "$as_dir" && as_dir=.
16625 for ac_exec_ext in '' $ac_executable_extensions; do
16626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16627 ac_cv_prog_ac_ct_AR="ar"
16628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16629 break 2
16630 fi
16631 done
16632 done
16633 IFS=$as_save_IFS
16634
16635 fi
16636 fi
16637 ac_ct_AR=$ac_cv_prog_ac_ct_AR
16638 if test -n "$ac_ct_AR"; then
16639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
16640 $as_echo "$ac_ct_AR" >&6; }
16641 else
16642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16643 $as_echo "no" >&6; }
16644 fi
16645
16646 if test "x$ac_ct_AR" = x; then
16647 AR=""
16648 else
16649 case $cross_compiling:$ac_tool_warned in
16650 yes:)
16651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16652 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16653 ac_tool_warned=yes ;;
16654 esac
16655 AR=$ac_ct_AR
16656 fi
16657 else
16658 AR="$ac_cv_prog_AR"
16659 fi
16660
16661
16662 # ---------------------- #
16663 # Checks for libraries. #
16664 # ---------------------- #
16665
16666 ac_config_files="$ac_config_files Makefile import/Makefile"
16667
16668 ac_config_commands="$ac_config_commands default"
16669
16670 cat >confcache <<\_ACEOF
16671 # This file is a shell script that caches the results of configure
16672 # tests run on this system so they can be shared between configure
16673 # scripts and configure runs, see configure's option --config-cache.
16674 # It is not useful on other systems. If it contains results you don't
16675 # want to keep, you may remove or edit it.
16676 #
16677 # config.status only pays attention to the cache file if you give it
16678 # the --recheck option to rerun configure.
16679 #
16680 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16681 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16682 # following values.
16683
16684 _ACEOF
16685
16686 # The following way of writing the cache mishandles newlines in values,
16687 # but we know of no workaround that is simple, portable, and efficient.
16688 # So, we kill variables containing newlines.
16689 # Ultrix sh set writes to stderr and can't be redirected directly,
16690 # and sets the high bit in the cache file unless we assign to the vars.
16691 (
16692 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16693 eval ac_val=\$$ac_var
16694 case $ac_val in #(
16695 *${as_nl}*)
16696 case $ac_var in #(
16697 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16698 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16699 esac
16700 case $ac_var in #(
16701 _ | IFS | as_nl) ;; #(
16702 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16703 *) { eval $ac_var=; unset $ac_var;} ;;
16704 esac ;;
16705 esac
16706 done
16707
16708 (set) 2>&1 |
16709 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16710 *${as_nl}ac_space=\ *)
16711 # `set' does not quote correctly, so add quotes: double-quote
16712 # substitution turns \\\\ into \\, and sed turns \\ into \.
16713 sed -n \
16714 "s/'/'\\\\''/g;
16715 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16716 ;; #(
16717 *)
16718 # `set' quotes correctly as required by POSIX, so do not add quotes.
16719 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16720 ;;
16721 esac |
16722 sort
16723 ) |
16724 sed '
16725 /^ac_cv_env_/b end
16726 t clear
16727 :clear
16728 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16729 t end
16730 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16731 :end' >>confcache
16732 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16733 if test -w "$cache_file"; then
16734 test "x$cache_file" != "x/dev/null" &&
16735 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16736 $as_echo "$as_me: updating cache $cache_file" >&6;}
16737 cat confcache >$cache_file
16738 else
16739 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16740 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16741 fi
16742 fi
16743 rm -f confcache
16744
16745 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16746 # Let make expand exec_prefix.
16747 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16748
16749 DEFS=-DHAVE_CONFIG_H
16750
16751 ac_libobjs=
16752 ac_ltlibobjs=
16753 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16754 # 1. Remove the extension, and $U if already installed.
16755 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16756 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16757 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16758 # will be set to the directory where LIBOBJS objects are built.
16759 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16760 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16761 done
16762 LIBOBJS=$ac_libobjs
16763
16764 LTLIBOBJS=$ac_ltlibobjs
16765
16766
16767 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16768 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
16769 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16770 fi
16771 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
16772 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
16773 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16774 fi
16775 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
16776 as_fn_error "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
16777 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16778 fi
16779 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
16780 as_fn_error "conditional \"GL_GENERATE_ERRNO_H\" was never defined.
16781 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16782 fi
16783 if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
16784 as_fn_error "conditional \"GL_GENERATE_FLOAT_H\" was never defined.
16785 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16786 fi
16787 if test -z "${GL_GENERATE_FNMATCH_H_TRUE}" && test -z "${GL_GENERATE_FNMATCH_H_FALSE}"; then
16788 as_fn_error "conditional \"GL_GENERATE_FNMATCH_H\" was never defined.
16789 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16790 fi
16791 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
16792 as_fn_error "conditional \"GL_GENERATE_STDINT_H\" was never defined.
16793 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16794 fi
16795
16796
16797 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
16798 as_fn_error "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
16799 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16800 fi
16801 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
16802 as_fn_error "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
16803 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16804 fi
16805
16806 gl_libobjs=
16807 gl_ltlibobjs=
16808 if test -n "$gl_LIBOBJS"; then
16809 # Remove the extension.
16810 sed_drop_objext='s/\.o$//;s/\.obj$//'
16811 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
16812 gl_libobjs="$gl_libobjs $i.$ac_objext"
16813 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
16814 done
16815 fi
16816 gl_LIBOBJS=$gl_libobjs
16817
16818 gl_LTLIBOBJS=$gl_ltlibobjs
16819
16820
16821
16822 gltests_libobjs=
16823 gltests_ltlibobjs=
16824 if test -n "$gltests_LIBOBJS"; then
16825 # Remove the extension.
16826 sed_drop_objext='s/\.o$//;s/\.obj$//'
16827 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
16828 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
16829 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
16830 done
16831 fi
16832 gltests_LIBOBJS=$gltests_libobjs
16833
16834 gltests_LTLIBOBJS=$gltests_ltlibobjs
16835
16836
16837 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16838 as_fn_error "conditional \"AMDEP\" was never defined.
16839 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16840 fi
16841 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16842 as_fn_error "conditional \"am__fastdepCC\" was never defined.
16843 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16844 fi
16845 if test -n "$EXEEXT"; then
16846 am__EXEEXT_TRUE=
16847 am__EXEEXT_FALSE='#'
16848 else
16849 am__EXEEXT_TRUE='#'
16850 am__EXEEXT_FALSE=
16851 fi
16852
16853
16854 : ${CONFIG_STATUS=./config.status}
16855 ac_write_fail=0
16856 ac_clean_files_save=$ac_clean_files
16857 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16858 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16859 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16860 as_write_fail=0
16861 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16862 #! $SHELL
16863 # Generated by $as_me.
16864 # Run this file to recreate the current configuration.
16865 # Compiler output produced by configure, useful for debugging
16866 # configure, is in config.log if it exists.
16867
16868 debug=false
16869 ac_cs_recheck=false
16870 ac_cs_silent=false
16871
16872 SHELL=\${CONFIG_SHELL-$SHELL}
16873 export SHELL
16874 _ASEOF
16875 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16876 ## -------------------- ##
16877 ## M4sh Initialization. ##
16878 ## -------------------- ##
16879
16880 # Be more Bourne compatible
16881 DUALCASE=1; export DUALCASE # for MKS sh
16882 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16883 emulate sh
16884 NULLCMD=:
16885 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16886 # is contrary to our usage. Disable this feature.
16887 alias -g '${1+"$@"}'='"$@"'
16888 setopt NO_GLOB_SUBST
16889 else
16890 case `(set -o) 2>/dev/null` in #(
16891 *posix*) :
16892 set -o posix ;; #(
16893 *) :
16894 ;;
16895 esac
16896 fi
16897
16898
16899 as_nl='
16900 '
16901 export as_nl
16902 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16903 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16904 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16905 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16906 # Prefer a ksh shell builtin over an external printf program on Solaris,
16907 # but without wasting forks for bash or zsh.
16908 if test -z "$BASH_VERSION$ZSH_VERSION" \
16909 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16910 as_echo='print -r --'
16911 as_echo_n='print -rn --'
16912 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16913 as_echo='printf %s\n'
16914 as_echo_n='printf %s'
16915 else
16916 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16917 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16918 as_echo_n='/usr/ucb/echo -n'
16919 else
16920 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16921 as_echo_n_body='eval
16922 arg=$1;
16923 case $arg in #(
16924 *"$as_nl"*)
16925 expr "X$arg" : "X\\(.*\\)$as_nl";
16926 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16927 esac;
16928 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16929 '
16930 export as_echo_n_body
16931 as_echo_n='sh -c $as_echo_n_body as_echo'
16932 fi
16933 export as_echo_body
16934 as_echo='sh -c $as_echo_body as_echo'
16935 fi
16936
16937 # The user is always right.
16938 if test "${PATH_SEPARATOR+set}" != set; then
16939 PATH_SEPARATOR=:
16940 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16941 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16942 PATH_SEPARATOR=';'
16943 }
16944 fi
16945
16946
16947 # IFS
16948 # We need space, tab and new line, in precisely that order. Quoting is
16949 # there to prevent editors from complaining about space-tab.
16950 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16951 # splitting by setting IFS to empty value.)
16952 IFS=" "" $as_nl"
16953
16954 # Find who we are. Look in the path if we contain no directory separator.
16955 case $0 in #((
16956 *[\\/]* ) as_myself=$0 ;;
16957 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16958 for as_dir in $PATH
16959 do
16960 IFS=$as_save_IFS
16961 test -z "$as_dir" && as_dir=.
16962 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16963 done
16964 IFS=$as_save_IFS
16965
16966 ;;
16967 esac
16968 # We did not find ourselves, most probably we were run as `sh COMMAND'
16969 # in which case we are not to be found in the path.
16970 if test "x$as_myself" = x; then
16971 as_myself=$0
16972 fi
16973 if test ! -f "$as_myself"; then
16974 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16975 exit 1
16976 fi
16977
16978 # Unset variables that we do not need and which cause bugs (e.g. in
16979 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16980 # suppresses any "Segmentation fault" message there. '((' could
16981 # trigger a bug in pdksh 5.2.14.
16982 for as_var in BASH_ENV ENV MAIL MAILPATH
16983 do eval test x\${$as_var+set} = xset \
16984 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16985 done
16986 PS1='$ '
16987 PS2='> '
16988 PS4='+ '
16989
16990 # NLS nuisances.
16991 LC_ALL=C
16992 export LC_ALL
16993 LANGUAGE=C
16994 export LANGUAGE
16995
16996 # CDPATH.
16997 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16998
16999
17000 # as_fn_error ERROR [LINENO LOG_FD]
17001 # ---------------------------------
17002 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17003 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17004 # script with status $?, using 1 if that was 0.
17005 as_fn_error ()
17006 {
17007 as_status=$?; test $as_status -eq 0 && as_status=1
17008 if test "$3"; then
17009 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17010 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
17011 fi
17012 $as_echo "$as_me: error: $1" >&2
17013 as_fn_exit $as_status
17014 } # as_fn_error
17015
17016
17017 # as_fn_set_status STATUS
17018 # -----------------------
17019 # Set $? to STATUS, without forking.
17020 as_fn_set_status ()
17021 {
17022 return $1
17023 } # as_fn_set_status
17024
17025 # as_fn_exit STATUS
17026 # -----------------
17027 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17028 as_fn_exit ()
17029 {
17030 set +e
17031 as_fn_set_status $1
17032 exit $1
17033 } # as_fn_exit
17034
17035 # as_fn_unset VAR
17036 # ---------------
17037 # Portably unset VAR.
17038 as_fn_unset ()
17039 {
17040 { eval $1=; unset $1;}
17041 }
17042 as_unset=as_fn_unset
17043 # as_fn_append VAR VALUE
17044 # ----------------------
17045 # Append the text in VALUE to the end of the definition contained in VAR. Take
17046 # advantage of any shell optimizations that allow amortized linear growth over
17047 # repeated appends, instead of the typical quadratic growth present in naive
17048 # implementations.
17049 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17050 eval 'as_fn_append ()
17051 {
17052 eval $1+=\$2
17053 }'
17054 else
17055 as_fn_append ()
17056 {
17057 eval $1=\$$1\$2
17058 }
17059 fi # as_fn_append
17060
17061 # as_fn_arith ARG...
17062 # ------------------
17063 # Perform arithmetic evaluation on the ARGs, and store the result in the
17064 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17065 # must be portable across $(()) and expr.
17066 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17067 eval 'as_fn_arith ()
17068 {
17069 as_val=$(( $* ))
17070 }'
17071 else
17072 as_fn_arith ()
17073 {
17074 as_val=`expr "$@" || test $? -eq 1`
17075 }
17076 fi # as_fn_arith
17077
17078
17079 if expr a : '\(a\)' >/dev/null 2>&1 &&
17080 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17081 as_expr=expr
17082 else
17083 as_expr=false
17084 fi
17085
17086 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17087 as_basename=basename
17088 else
17089 as_basename=false
17090 fi
17091
17092 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17093 as_dirname=dirname
17094 else
17095 as_dirname=false
17096 fi
17097
17098 as_me=`$as_basename -- "$0" ||
17099 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17100 X"$0" : 'X\(//\)$' \| \
17101 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17102 $as_echo X/"$0" |
17103 sed '/^.*\/\([^/][^/]*\)\/*$/{
17104 s//\1/
17105 q
17106 }
17107 /^X\/\(\/\/\)$/{
17108 s//\1/
17109 q
17110 }
17111 /^X\/\(\/\).*/{
17112 s//\1/
17113 q
17114 }
17115 s/.*/./; q'`
17116
17117 # Avoid depending upon Character Ranges.
17118 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17119 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17120 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17121 as_cr_digits='0123456789'
17122 as_cr_alnum=$as_cr_Letters$as_cr_digits
17123
17124 ECHO_C= ECHO_N= ECHO_T=
17125 case `echo -n x` in #(((((
17126 -n*)
17127 case `echo 'xy\c'` in
17128 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17129 xy) ECHO_C='\c';;
17130 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17131 ECHO_T=' ';;
17132 esac;;
17133 *)
17134 ECHO_N='-n';;
17135 esac
17136
17137 rm -f conf$$ conf$$.exe conf$$.file
17138 if test -d conf$$.dir; then
17139 rm -f conf$$.dir/conf$$.file
17140 else
17141 rm -f conf$$.dir
17142 mkdir conf$$.dir 2>/dev/null
17143 fi
17144 if (echo >conf$$.file) 2>/dev/null; then
17145 if ln -s conf$$.file conf$$ 2>/dev/null; then
17146 as_ln_s='ln -s'
17147 # ... but there are two gotchas:
17148 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17149 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17150 # In both cases, we have to default to `cp -p'.
17151 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17152 as_ln_s='cp -p'
17153 elif ln conf$$.file conf$$ 2>/dev/null; then
17154 as_ln_s=ln
17155 else
17156 as_ln_s='cp -p'
17157 fi
17158 else
17159 as_ln_s='cp -p'
17160 fi
17161 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17162 rmdir conf$$.dir 2>/dev/null
17163
17164
17165 # as_fn_mkdir_p
17166 # -------------
17167 # Create "$as_dir" as a directory, including parents if necessary.
17168 as_fn_mkdir_p ()
17169 {
17170
17171 case $as_dir in #(
17172 -*) as_dir=./$as_dir;;
17173 esac
17174 test -d "$as_dir" || eval $as_mkdir_p || {
17175 as_dirs=
17176 while :; do
17177 case $as_dir in #(
17178 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17179 *) as_qdir=$as_dir;;
17180 esac
17181 as_dirs="'$as_qdir' $as_dirs"
17182 as_dir=`$as_dirname -- "$as_dir" ||
17183 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17184 X"$as_dir" : 'X\(//\)[^/]' \| \
17185 X"$as_dir" : 'X\(//\)$' \| \
17186 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17187 $as_echo X"$as_dir" |
17188 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17189 s//\1/
17190 q
17191 }
17192 /^X\(\/\/\)[^/].*/{
17193 s//\1/
17194 q
17195 }
17196 /^X\(\/\/\)$/{
17197 s//\1/
17198 q
17199 }
17200 /^X\(\/\).*/{
17201 s//\1/
17202 q
17203 }
17204 s/.*/./; q'`
17205 test -d "$as_dir" && break
17206 done
17207 test -z "$as_dirs" || eval "mkdir $as_dirs"
17208 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
17209
17210
17211 } # as_fn_mkdir_p
17212 if mkdir -p . 2>/dev/null; then
17213 as_mkdir_p='mkdir -p "$as_dir"'
17214 else
17215 test -d ./-p && rmdir ./-p
17216 as_mkdir_p=false
17217 fi
17218
17219 if test -x / >/dev/null 2>&1; then
17220 as_test_x='test -x'
17221 else
17222 if ls -dL / >/dev/null 2>&1; then
17223 as_ls_L_option=L
17224 else
17225 as_ls_L_option=
17226 fi
17227 as_test_x='
17228 eval sh -c '\''
17229 if test -d "$1"; then
17230 test -d "$1/.";
17231 else
17232 case $1 in #(
17233 -*)set "./$1";;
17234 esac;
17235 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17236 ???[sx]*):;;*)false;;esac;fi
17237 '\'' sh
17238 '
17239 fi
17240 as_executable_p=$as_test_x
17241
17242 # Sed expression to map a string onto a valid CPP name.
17243 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17244
17245 # Sed expression to map a string onto a valid variable name.
17246 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17247
17248
17249 exec 6>&1
17250 ## ----------------------------------- ##
17251 ## Main body of $CONFIG_STATUS script. ##
17252 ## ----------------------------------- ##
17253 _ASEOF
17254 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17255
17256 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17257 # Save the log message, to keep $0 and so on meaningful, and to
17258 # report actual input values of CONFIG_FILES etc. instead of their
17259 # values after options handling.
17260 ac_log="
17261 This file was extended by $as_me, which was
17262 generated by GNU Autoconf 2.64. Invocation command line was
17263
17264 CONFIG_FILES = $CONFIG_FILES
17265 CONFIG_HEADERS = $CONFIG_HEADERS
17266 CONFIG_LINKS = $CONFIG_LINKS
17267 CONFIG_COMMANDS = $CONFIG_COMMANDS
17268 $ $0 $@
17269
17270 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17271 "
17272
17273 _ACEOF
17274
17275 case $ac_config_files in *"
17276 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17277 esac
17278
17279 case $ac_config_headers in *"
17280 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17281 esac
17282
17283
17284 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17285 # Files that config.status was made for.
17286 config_files="$ac_config_files"
17287 config_headers="$ac_config_headers"
17288 config_commands="$ac_config_commands"
17289
17290 _ACEOF
17291
17292 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17293 ac_cs_usage="\
17294 \`$as_me' instantiates files and other configuration actions
17295 from templates according to the current configuration. Unless the files
17296 and actions are specified as TAGs, all are instantiated by default.
17297
17298 Usage: $0 [OPTION]... [TAG]...
17299
17300 -h, --help print this help, then exit
17301 -V, --version print version number and configuration settings, then exit
17302 -q, --quiet, --silent
17303 do not print progress messages
17304 -d, --debug don't remove temporary files
17305 --recheck update $as_me by reconfiguring in the same conditions
17306 --file=FILE[:TEMPLATE]
17307 instantiate the configuration file FILE
17308 --header=FILE[:TEMPLATE]
17309 instantiate the configuration header FILE
17310
17311 Configuration files:
17312 $config_files
17313
17314 Configuration headers:
17315 $config_headers
17316
17317 Configuration commands:
17318 $config_commands
17319
17320 Report bugs to the package provider."
17321
17322 _ACEOF
17323 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17324 ac_cs_version="\\
17325 config.status
17326 configured by $0, generated by GNU Autoconf 2.64,
17327 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17328
17329 Copyright (C) 2009 Free Software Foundation, Inc.
17330 This config.status script is free software; the Free Software Foundation
17331 gives unlimited permission to copy, distribute and modify it."
17332
17333 ac_pwd='$ac_pwd'
17334 srcdir='$srcdir'
17335 INSTALL='$INSTALL'
17336 MKDIR_P='$MKDIR_P'
17337 AWK='$AWK'
17338 test -n "\$AWK" || AWK=awk
17339 _ACEOF
17340
17341 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17342 # The default lists apply if the user does not specify any file.
17343 ac_need_defaults=:
17344 while test $# != 0
17345 do
17346 case $1 in
17347 --*=*)
17348 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17349 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17350 ac_shift=:
17351 ;;
17352 *)
17353 ac_option=$1
17354 ac_optarg=$2
17355 ac_shift=shift
17356 ;;
17357 esac
17358
17359 case $ac_option in
17360 # Handling of the options.
17361 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17362 ac_cs_recheck=: ;;
17363 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17364 $as_echo "$ac_cs_version"; exit ;;
17365 --debug | --debu | --deb | --de | --d | -d )
17366 debug=: ;;
17367 --file | --fil | --fi | --f )
17368 $ac_shift
17369 case $ac_optarg in
17370 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17371 esac
17372 as_fn_append CONFIG_FILES " '$ac_optarg'"
17373 ac_need_defaults=false;;
17374 --header | --heade | --head | --hea )
17375 $ac_shift
17376 case $ac_optarg in
17377 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17378 esac
17379 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17380 ac_need_defaults=false;;
17381 --he | --h)
17382 # Conflict between --help and --header
17383 as_fn_error "ambiguous option: \`$1'
17384 Try \`$0 --help' for more information.";;
17385 --help | --hel | -h )
17386 $as_echo "$ac_cs_usage"; exit ;;
17387 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17388 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17389 ac_cs_silent=: ;;
17390
17391 # This is an error.
17392 -*) as_fn_error "unrecognized option: \`$1'
17393 Try \`$0 --help' for more information." ;;
17394
17395 *) as_fn_append ac_config_targets " $1"
17396 ac_need_defaults=false ;;
17397
17398 esac
17399 shift
17400 done
17401
17402 ac_configure_extra_args=
17403
17404 if $ac_cs_silent; then
17405 exec 6>/dev/null
17406 ac_configure_extra_args="$ac_configure_extra_args --silent"
17407 fi
17408
17409 _ACEOF
17410 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17411 if \$ac_cs_recheck; then
17412 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17413 shift
17414 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17415 CONFIG_SHELL='$SHELL'
17416 export CONFIG_SHELL
17417 exec "\$@"
17418 fi
17419
17420 _ACEOF
17421 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17422 exec 5>>config.log
17423 {
17424 echo
17425 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17426 ## Running $as_me. ##
17427 _ASBOX
17428 $as_echo "$ac_log"
17429 } >&5
17430
17431 _ACEOF
17432 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17433 #
17434 # INIT-COMMANDS
17435 #
17436 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17437
17438 _ACEOF
17439
17440 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17441
17442 # Handling of arguments.
17443 for ac_config_target in $ac_config_targets
17444 do
17445 case $ac_config_target in
17446 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
17447 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17448 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17449 "import/Makefile") CONFIG_FILES="$CONFIG_FILES import/Makefile" ;;
17450 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
17451
17452 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17453 esac
17454 done
17455
17456
17457 # If the user did not use the arguments to specify the items to instantiate,
17458 # then the envvar interface is used. Set only those that are not.
17459 # We use the long form for the default assignment because of an extremely
17460 # bizarre bug on SunOS 4.1.3.
17461 if $ac_need_defaults; then
17462 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17463 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17464 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17465 fi
17466
17467 # Have a temporary directory for convenience. Make it in the build tree
17468 # simply because there is no reason against having it here, and in addition,
17469 # creating and moving files from /tmp can sometimes cause problems.
17470 # Hook for its removal unless debugging.
17471 # Note that there is a small window in which the directory will not be cleaned:
17472 # after its creation but before its name has been assigned to `$tmp'.
17473 $debug ||
17474 {
17475 tmp=
17476 trap 'exit_status=$?
17477 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17478 ' 0
17479 trap 'as_fn_exit 1' 1 2 13 15
17480 }
17481 # Create a (secure) tmp directory for tmp files.
17482
17483 {
17484 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17485 test -n "$tmp" && test -d "$tmp"
17486 } ||
17487 {
17488 tmp=./conf$$-$RANDOM
17489 (umask 077 && mkdir "$tmp")
17490 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
17491
17492 # Set up the scripts for CONFIG_FILES section.
17493 # No need to generate them if there are no CONFIG_FILES.
17494 # This happens for instance with `./config.status config.h'.
17495 if test -n "$CONFIG_FILES"; then
17496
17497
17498 ac_cr=`echo X | tr X '\015'`
17499 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17500 # But we know of no other shell where ac_cr would be empty at this
17501 # point, so we can use a bashism as a fallback.
17502 if test "x$ac_cr" = x; then
17503 eval ac_cr=\$\'\\r\'
17504 fi
17505 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17506 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17507 ac_cs_awk_cr='\r'
17508 else
17509 ac_cs_awk_cr=$ac_cr
17510 fi
17511
17512 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17513 _ACEOF
17514
17515
17516 {
17517 echo "cat >conf$$subs.awk <<_ACEOF" &&
17518 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17519 echo "_ACEOF"
17520 } >conf$$subs.sh ||
17521 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17522 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17523 ac_delim='%!_!# '
17524 for ac_last_try in false false false false false :; do
17525 . ./conf$$subs.sh ||
17526 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17527
17528 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17529 if test $ac_delim_n = $ac_delim_num; then
17530 break
17531 elif $ac_last_try; then
17532 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17533 else
17534 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17535 fi
17536 done
17537 rm -f conf$$subs.sh
17538
17539 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17540 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17541 _ACEOF
17542 sed -n '
17543 h
17544 s/^/S["/; s/!.*/"]=/
17545 p
17546 g
17547 s/^[^!]*!//
17548 :repl
17549 t repl
17550 s/'"$ac_delim"'$//
17551 t delim
17552 :nl
17553 h
17554 s/\(.\{148\}\).*/\1/
17555 t more1
17556 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17557 p
17558 n
17559 b repl
17560 :more1
17561 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17562 p
17563 g
17564 s/.\{148\}//
17565 t nl
17566 :delim
17567 h
17568 s/\(.\{148\}\).*/\1/
17569 t more2
17570 s/["\\]/\\&/g; s/^/"/; s/$/"/
17571 p
17572 b
17573 :more2
17574 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17575 p
17576 g
17577 s/.\{148\}//
17578 t delim
17579 ' <conf$$subs.awk | sed '
17580 /^[^""]/{
17581 N
17582 s/\n//
17583 }
17584 ' >>$CONFIG_STATUS || ac_write_fail=1
17585 rm -f conf$$subs.awk
17586 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17587 _ACAWK
17588 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17589 for (key in S) S_is_set[key] = 1
17590 FS = "\a"
17591
17592 }
17593 {
17594 line = $ 0
17595 nfields = split(line, field, "@")
17596 substed = 0
17597 len = length(field[1])
17598 for (i = 2; i < nfields; i++) {
17599 key = field[i]
17600 keylen = length(key)
17601 if (S_is_set[key]) {
17602 value = S[key]
17603 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17604 len += length(value) + length(field[++i])
17605 substed = 1
17606 } else
17607 len += 1 + keylen
17608 }
17609
17610 print line
17611 }
17612
17613 _ACAWK
17614 _ACEOF
17615 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17616 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17617 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17618 else
17619 cat
17620 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17621 || as_fn_error "could not setup config files machinery" "$LINENO" 5
17622 _ACEOF
17623
17624 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17625 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17626 # trailing colons and then remove the whole line if VPATH becomes empty
17627 # (actually we leave an empty line to preserve line numbers).
17628 if test "x$srcdir" = x.; then
17629 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17630 s/:*\$(srcdir):*/:/
17631 s/:*\${srcdir}:*/:/
17632 s/:*@srcdir@:*/:/
17633 s/^\([^=]*=[ ]*\):*/\1/
17634 s/:*$//
17635 s/^[^=]*=[ ]*$//
17636 }'
17637 fi
17638
17639 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17640 fi # test -n "$CONFIG_FILES"
17641
17642 # Set up the scripts for CONFIG_HEADERS section.
17643 # No need to generate them if there are no CONFIG_HEADERS.
17644 # This happens for instance with `./config.status Makefile'.
17645 if test -n "$CONFIG_HEADERS"; then
17646 cat >"$tmp/defines.awk" <<\_ACAWK ||
17647 BEGIN {
17648 _ACEOF
17649
17650 # Transform confdefs.h into an awk script `defines.awk', embedded as
17651 # here-document in config.status, that substitutes the proper values into
17652 # config.h.in to produce config.h.
17653
17654 # Create a delimiter string that does not exist in confdefs.h, to ease
17655 # handling of long lines.
17656 ac_delim='%!_!# '
17657 for ac_last_try in false false :; do
17658 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17659 if test -z "$ac_t"; then
17660 break
17661 elif $ac_last_try; then
17662 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
17663 else
17664 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17665 fi
17666 done
17667
17668 # For the awk script, D is an array of macro values keyed by name,
17669 # likewise P contains macro parameters if any. Preserve backslash
17670 # newline sequences.
17671
17672 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17673 sed -n '
17674 s/.\{148\}/&'"$ac_delim"'/g
17675 t rset
17676 :rset
17677 s/^[ ]*#[ ]*define[ ][ ]*/ /
17678 t def
17679 d
17680 :def
17681 s/\\$//
17682 t bsnl
17683 s/["\\]/\\&/g
17684 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17685 D["\1"]=" \3"/p
17686 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17687 d
17688 :bsnl
17689 s/["\\]/\\&/g
17690 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17691 D["\1"]=" \3\\\\\\n"\\/p
17692 t cont
17693 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17694 t cont
17695 d
17696 :cont
17697 n
17698 s/.\{148\}/&'"$ac_delim"'/g
17699 t clear
17700 :clear
17701 s/\\$//
17702 t bsnlc
17703 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17704 d
17705 :bsnlc
17706 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17707 b cont
17708 ' <confdefs.h | sed '
17709 s/'"$ac_delim"'/"\\\
17710 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17711
17712 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17713 for (key in D) D_is_set[key] = 1
17714 FS = "\a"
17715 }
17716 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17717 line = \$ 0
17718 split(line, arg, " ")
17719 if (arg[1] == "#") {
17720 defundef = arg[2]
17721 mac1 = arg[3]
17722 } else {
17723 defundef = substr(arg[1], 2)
17724 mac1 = arg[2]
17725 }
17726 split(mac1, mac2, "(") #)
17727 macro = mac2[1]
17728 prefix = substr(line, 1, index(line, defundef) - 1)
17729 if (D_is_set[macro]) {
17730 # Preserve the white space surrounding the "#".
17731 print prefix "define", macro P[macro] D[macro]
17732 next
17733 } else {
17734 # Replace #undef with comments. This is necessary, for example,
17735 # in the case of _POSIX_SOURCE, which is predefined and required
17736 # on some systems where configure will not decide to define it.
17737 if (defundef == "undef") {
17738 print "/*", prefix defundef, macro, "*/"
17739 next
17740 }
17741 }
17742 }
17743 { print }
17744 _ACAWK
17745 _ACEOF
17746 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17747 as_fn_error "could not setup config headers machinery" "$LINENO" 5
17748 fi # test -n "$CONFIG_HEADERS"
17749
17750
17751 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17752 shift
17753 for ac_tag
17754 do
17755 case $ac_tag in
17756 :[FHLC]) ac_mode=$ac_tag; continue;;
17757 esac
17758 case $ac_mode$ac_tag in
17759 :[FHL]*:*);;
17760 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
17761 :[FH]-) ac_tag=-:-;;
17762 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17763 esac
17764 ac_save_IFS=$IFS
17765 IFS=:
17766 set x $ac_tag
17767 IFS=$ac_save_IFS
17768 shift
17769 ac_file=$1
17770 shift
17771
17772 case $ac_mode in
17773 :L) ac_source=$1;;
17774 :[FH])
17775 ac_file_inputs=
17776 for ac_f
17777 do
17778 case $ac_f in
17779 -) ac_f="$tmp/stdin";;
17780 *) # Look for the file first in the build tree, then in the source tree
17781 # (if the path is not absolute). The absolute path cannot be DOS-style,
17782 # because $ac_f cannot contain `:'.
17783 test -f "$ac_f" ||
17784 case $ac_f in
17785 [\\/$]*) false;;
17786 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17787 esac ||
17788 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17789 esac
17790 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17791 as_fn_append ac_file_inputs " '$ac_f'"
17792 done
17793
17794 # Let's still pretend it is `configure' which instantiates (i.e., don't
17795 # use $as_me), people would be surprised to read:
17796 # /* config.h. Generated by config.status. */
17797 configure_input='Generated from '`
17798 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17799 `' by configure.'
17800 if test x"$ac_file" != x-; then
17801 configure_input="$ac_file. $configure_input"
17802 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17803 $as_echo "$as_me: creating $ac_file" >&6;}
17804 fi
17805 # Neutralize special characters interpreted by sed in replacement strings.
17806 case $configure_input in #(
17807 *\&* | *\|* | *\\* )
17808 ac_sed_conf_input=`$as_echo "$configure_input" |
17809 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17810 *) ac_sed_conf_input=$configure_input;;
17811 esac
17812
17813 case $ac_tag in
17814 *:-:* | *:-) cat >"$tmp/stdin" \
17815 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
17816 esac
17817 ;;
17818 esac
17819
17820 ac_dir=`$as_dirname -- "$ac_file" ||
17821 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17822 X"$ac_file" : 'X\(//\)[^/]' \| \
17823 X"$ac_file" : 'X\(//\)$' \| \
17824 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17825 $as_echo X"$ac_file" |
17826 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17827 s//\1/
17828 q
17829 }
17830 /^X\(\/\/\)[^/].*/{
17831 s//\1/
17832 q
17833 }
17834 /^X\(\/\/\)$/{
17835 s//\1/
17836 q
17837 }
17838 /^X\(\/\).*/{
17839 s//\1/
17840 q
17841 }
17842 s/.*/./; q'`
17843 as_dir="$ac_dir"; as_fn_mkdir_p
17844 ac_builddir=.
17845
17846 case "$ac_dir" in
17847 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17848 *)
17849 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17850 # A ".." for each directory in $ac_dir_suffix.
17851 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17852 case $ac_top_builddir_sub in
17853 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17854 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17855 esac ;;
17856 esac
17857 ac_abs_top_builddir=$ac_pwd
17858 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17859 # for backward compatibility:
17860 ac_top_builddir=$ac_top_build_prefix
17861
17862 case $srcdir in
17863 .) # We are building in place.
17864 ac_srcdir=.
17865 ac_top_srcdir=$ac_top_builddir_sub
17866 ac_abs_top_srcdir=$ac_pwd ;;
17867 [\\/]* | ?:[\\/]* ) # Absolute name.
17868 ac_srcdir=$srcdir$ac_dir_suffix;
17869 ac_top_srcdir=$srcdir
17870 ac_abs_top_srcdir=$srcdir ;;
17871 *) # Relative name.
17872 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17873 ac_top_srcdir=$ac_top_build_prefix$srcdir
17874 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17875 esac
17876 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17877
17878
17879 case $ac_mode in
17880 :F)
17881 #
17882 # CONFIG_FILE
17883 #
17884
17885 case $INSTALL in
17886 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17887 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17888 esac
17889 ac_MKDIR_P=$MKDIR_P
17890 case $MKDIR_P in
17891 [\\/$]* | ?:[\\/]* ) ;;
17892 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17893 esac
17894 _ACEOF
17895
17896 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17897 # If the template does not know about datarootdir, expand it.
17898 # FIXME: This hack should be removed a few years after 2.60.
17899 ac_datarootdir_hack=; ac_datarootdir_seen=
17900 ac_sed_dataroot='
17901 /datarootdir/ {
17902 p
17903 q
17904 }
17905 /@datadir@/p
17906 /@docdir@/p
17907 /@infodir@/p
17908 /@localedir@/p
17909 /@mandir@/p'
17910 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17911 *datarootdir*) ac_datarootdir_seen=yes;;
17912 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17914 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17915 _ACEOF
17916 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17917 ac_datarootdir_hack='
17918 s&@datadir@&$datadir&g
17919 s&@docdir@&$docdir&g
17920 s&@infodir@&$infodir&g
17921 s&@localedir@&$localedir&g
17922 s&@mandir@&$mandir&g
17923 s&\\\${datarootdir}&$datarootdir&g' ;;
17924 esac
17925 _ACEOF
17926
17927 # Neutralize VPATH when `$srcdir' = `.'.
17928 # Shell code in configure.ac might set extrasub.
17929 # FIXME: do we really want to maintain this feature?
17930 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17931 ac_sed_extra="$ac_vpsub
17932 $extrasub
17933 _ACEOF
17934 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17935 :t
17936 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17937 s|@configure_input@|$ac_sed_conf_input|;t t
17938 s&@top_builddir@&$ac_top_builddir_sub&;t t
17939 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17940 s&@srcdir@&$ac_srcdir&;t t
17941 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17942 s&@top_srcdir@&$ac_top_srcdir&;t t
17943 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17944 s&@builddir@&$ac_builddir&;t t
17945 s&@abs_builddir@&$ac_abs_builddir&;t t
17946 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17947 s&@INSTALL@&$ac_INSTALL&;t t
17948 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17949 $ac_datarootdir_hack
17950 "
17951 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17952 || as_fn_error "could not create $ac_file" "$LINENO" 5
17953
17954 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17955 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17956 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17958 which seems to be undefined. Please make sure it is defined." >&5
17959 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17960 which seems to be undefined. Please make sure it is defined." >&2;}
17961
17962 rm -f "$tmp/stdin"
17963 case $ac_file in
17964 -) cat "$tmp/out" && rm -f "$tmp/out";;
17965 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17966 esac \
17967 || as_fn_error "could not create $ac_file" "$LINENO" 5
17968 ;;
17969 :H)
17970 #
17971 # CONFIG_HEADER
17972 #
17973 if test x"$ac_file" != x-; then
17974 {
17975 $as_echo "/* $configure_input */" \
17976 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17977 } >"$tmp/config.h" \
17978 || as_fn_error "could not create $ac_file" "$LINENO" 5
17979 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17980 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17981 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17982 else
17983 rm -f "$ac_file"
17984 mv "$tmp/config.h" "$ac_file" \
17985 || as_fn_error "could not create $ac_file" "$LINENO" 5
17986 fi
17987 else
17988 $as_echo "/* $configure_input */" \
17989 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17990 || as_fn_error "could not create -" "$LINENO" 5
17991 fi
17992 # Compute "$ac_file"'s index in $config_headers.
17993 _am_arg="$ac_file"
17994 _am_stamp_count=1
17995 for _am_header in $config_headers :; do
17996 case $_am_header in
17997 $_am_arg | $_am_arg:* )
17998 break ;;
17999 * )
18000 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18001 esac
18002 done
18003 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18004 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18005 X"$_am_arg" : 'X\(//\)[^/]' \| \
18006 X"$_am_arg" : 'X\(//\)$' \| \
18007 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18008 $as_echo X"$_am_arg" |
18009 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18010 s//\1/
18011 q
18012 }
18013 /^X\(\/\/\)[^/].*/{
18014 s//\1/
18015 q
18016 }
18017 /^X\(\/\/\)$/{
18018 s//\1/
18019 q
18020 }
18021 /^X\(\/\).*/{
18022 s//\1/
18023 q
18024 }
18025 s/.*/./; q'`/stamp-h$_am_stamp_count
18026 ;;
18027
18028 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18029 $as_echo "$as_me: executing $ac_file commands" >&6;}
18030 ;;
18031 esac
18032
18033
18034 case $ac_file$ac_mode in
18035 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18036 # Autoconf 2.62 quotes --file arguments for eval, but not when files
18037 # are listed without --file. Let's play safe and only enable the eval
18038 # if we detect the quoting.
18039 case $CONFIG_FILES in
18040 *\'*) eval set x "$CONFIG_FILES" ;;
18041 *) set x $CONFIG_FILES ;;
18042 esac
18043 shift
18044 for mf
18045 do
18046 # Strip MF so we end up with the name of the file.
18047 mf=`echo "$mf" | sed -e 's/:.*$//'`
18048 # Check whether this is an Automake generated Makefile or not.
18049 # We used to match only the files named `Makefile.in', but
18050 # some people rename them; so instead we look at the file content.
18051 # Grep'ing the first line is not enough: some people post-process
18052 # each Makefile.in and add a new line on top of each file to say so.
18053 # Grep'ing the whole file is not good either: AIX grep has a line
18054 # limit of 2048, but all sed's we know have understand at least 4000.
18055 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18056 dirpart=`$as_dirname -- "$mf" ||
18057 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18058 X"$mf" : 'X\(//\)[^/]' \| \
18059 X"$mf" : 'X\(//\)$' \| \
18060 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18061 $as_echo X"$mf" |
18062 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18063 s//\1/
18064 q
18065 }
18066 /^X\(\/\/\)[^/].*/{
18067 s//\1/
18068 q
18069 }
18070 /^X\(\/\/\)$/{
18071 s//\1/
18072 q
18073 }
18074 /^X\(\/\).*/{
18075 s//\1/
18076 q
18077 }
18078 s/.*/./; q'`
18079 else
18080 continue
18081 fi
18082 # Extract the definition of DEPDIR, am__include, and am__quote
18083 # from the Makefile without running `make'.
18084 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18085 test -z "$DEPDIR" && continue
18086 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18087 test -z "am__include" && continue
18088 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18089 # When using ansi2knr, U may be empty or an underscore; expand it
18090 U=`sed -n 's/^U = //p' < "$mf"`
18091 # Find all dependency output files, they are included files with
18092 # $(DEPDIR) in their names. We invoke sed twice because it is the
18093 # simplest approach to changing $(DEPDIR) to its actual value in the
18094 # expansion.
18095 for file in `sed -n "
18096 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18097 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18098 # Make sure the directory exists.
18099 test -f "$dirpart/$file" && continue
18100 fdir=`$as_dirname -- "$file" ||
18101 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18102 X"$file" : 'X\(//\)[^/]' \| \
18103 X"$file" : 'X\(//\)$' \| \
18104 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18105 $as_echo X"$file" |
18106 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18107 s//\1/
18108 q
18109 }
18110 /^X\(\/\/\)[^/].*/{
18111 s//\1/
18112 q
18113 }
18114 /^X\(\/\/\)$/{
18115 s//\1/
18116 q
18117 }
18118 /^X\(\/\).*/{
18119 s//\1/
18120 q
18121 }
18122 s/.*/./; q'`
18123 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18124 # echo "creating $dirpart/$file"
18125 echo '# dummy' > "$dirpart/$file"
18126 done
18127 done
18128 }
18129 ;;
18130 "default":C)
18131 case x$CONFIG_HEADERS in
18132 xconfig.h:config.in)
18133 echo > stamp-h ;;
18134 esac
18135 ;;
18136
18137 esac
18138 done # for ac_tag
18139
18140
18141 as_fn_exit 0
18142 _ACEOF
18143 ac_clean_files=$ac_clean_files_save
18144
18145 test $ac_write_fail = 0 ||
18146 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
18147
18148
18149 # configure is writing to config.log, and then calls config.status.
18150 # config.status does its own redirection, appending to config.log.
18151 # Unfortunately, on DOS this fails, as config.log is still kept open
18152 # by configure, so config.status won't be able to write to it; its
18153 # output is simply discarded. So we exec the FD to /dev/null,
18154 # effectively closing config.log, so it can be properly (re)opened and
18155 # appended to by config.status. When coming back to configure, we
18156 # need to make the FD available again.
18157 if test "$no_create" != yes; then
18158 ac_cs_success=:
18159 ac_config_status_args=
18160 test "$silent" = yes &&
18161 ac_config_status_args="$ac_config_status_args --quiet"
18162 exec 5>/dev/null
18163 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18164 exec 5>>config.log
18165 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18166 # would make configure fail if this is the last instruction.
18167 $ac_cs_success || as_fn_exit $?
18168 fi
18169 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18171 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18172 fi
18173
18174
18175 exit 0
This page took 0.41144 seconds and 4 git commands to generate.