Import canonicalize-lgpl
[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_func_list=
592 ac_header_list=
593 gl_fnmatch_required=POSIX
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_STDLIB_H
687 NEXT_STDLIB_H
688 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
689 NEXT_STDDEF_H
690 GL_GENERATE_STDDEF_H_FALSE
691 GL_GENERATE_STDDEF_H_TRUE
692 STDDEF_H
693 HAVE_WCHAR_T
694 REPLACE_NULL
695 HAVE__BOOL
696 GL_GENERATE_STDBOOL_H_FALSE
697 GL_GENERATE_STDBOOL_H_TRUE
698 STDBOOL_H
699 UNDEFINE_STRTOK_R
700 REPLACE_STRTOK_R
701 REPLACE_STRSIGNAL
702 REPLACE_STRNLEN
703 REPLACE_STRNDUP
704 REPLACE_STRNCAT
705 REPLACE_STRERROR_R
706 REPLACE_STRERROR
707 REPLACE_STRCHRNUL
708 REPLACE_STRCASESTR
709 REPLACE_STRSTR
710 REPLACE_STRDUP
711 REPLACE_STPNCPY
712 REPLACE_MEMMEM
713 REPLACE_MEMCHR
714 HAVE_STRVERSCMP
715 HAVE_DECL_STRSIGNAL
716 HAVE_DECL_STRERROR_R
717 HAVE_DECL_STRTOK_R
718 HAVE_STRCASESTR
719 HAVE_STRSEP
720 HAVE_STRPBRK
721 HAVE_DECL_STRNLEN
722 HAVE_DECL_STRNDUP
723 HAVE_DECL_STRDUP
724 HAVE_STRCHRNUL
725 HAVE_STPNCPY
726 HAVE_STPCPY
727 HAVE_RAWMEMCHR
728 HAVE_DECL_MEMRCHR
729 HAVE_MEMPCPY
730 HAVE_DECL_MEMMEM
731 HAVE_MEMCHR
732 HAVE_FFSLL
733 HAVE_FFSL
734 HAVE_MBSLEN
735 GNULIB_STRVERSCMP
736 GNULIB_STRSIGNAL
737 GNULIB_STRERROR_R
738 GNULIB_STRERROR
739 GNULIB_MBSTOK_R
740 GNULIB_MBSSEP
741 GNULIB_MBSSPN
742 GNULIB_MBSPBRK
743 GNULIB_MBSCSPN
744 GNULIB_MBSCASESTR
745 GNULIB_MBSPCASECMP
746 GNULIB_MBSNCASECMP
747 GNULIB_MBSCASECMP
748 GNULIB_MBSSTR
749 GNULIB_MBSRCHR
750 GNULIB_MBSCHR
751 GNULIB_MBSNLEN
752 GNULIB_MBSLEN
753 GNULIB_STRTOK_R
754 GNULIB_STRCASESTR
755 GNULIB_STRSTR
756 GNULIB_STRSEP
757 GNULIB_STRPBRK
758 GNULIB_STRNLEN
759 GNULIB_STRNDUP
760 GNULIB_STRNCAT
761 GNULIB_STRDUP
762 GNULIB_STRCHRNUL
763 GNULIB_STPNCPY
764 GNULIB_STPCPY
765 GNULIB_RAWMEMCHR
766 GNULIB_MEMRCHR
767 GNULIB_MEMPCPY
768 GNULIB_MEMMEM
769 GNULIB_MEMCHR
770 GNULIB_FFSLL
771 GNULIB_FFSL
772 LOCALE_FR
773 LOCALE_FR_UTF8
774 LOCALE_ZH_CN
775 LOCALE_JA
776 REPLACE_WCSWIDTH
777 REPLACE_WCWIDTH
778 REPLACE_WCSNRTOMBS
779 REPLACE_WCSRTOMBS
780 REPLACE_WCRTOMB
781 REPLACE_MBSNRTOWCS
782 REPLACE_MBSRTOWCS
783 REPLACE_MBRLEN
784 REPLACE_MBRTOWC
785 REPLACE_MBSINIT
786 REPLACE_WCTOB
787 REPLACE_BTOWC
788 REPLACE_MBSTATE_T
789 HAVE_DECL_WCWIDTH
790 HAVE_DECL_WCTOB
791 HAVE_WCSWIDTH
792 HAVE_WCSTOK
793 HAVE_WCSSTR
794 HAVE_WCSPBRK
795 HAVE_WCSSPN
796 HAVE_WCSCSPN
797 HAVE_WCSRCHR
798 HAVE_WCSCHR
799 HAVE_WCSDUP
800 HAVE_WCSXFRM
801 HAVE_WCSCOLL
802 HAVE_WCSNCASECMP
803 HAVE_WCSCASECMP
804 HAVE_WCSNCMP
805 HAVE_WCSCMP
806 HAVE_WCSNCAT
807 HAVE_WCSCAT
808 HAVE_WCPNCPY
809 HAVE_WCSNCPY
810 HAVE_WCPCPY
811 HAVE_WCSCPY
812 HAVE_WCSNLEN
813 HAVE_WCSLEN
814 HAVE_WMEMSET
815 HAVE_WMEMMOVE
816 HAVE_WMEMCPY
817 HAVE_WMEMCMP
818 HAVE_WMEMCHR
819 HAVE_WCSNRTOMBS
820 HAVE_WCSRTOMBS
821 HAVE_WCRTOMB
822 HAVE_MBSNRTOWCS
823 HAVE_MBSRTOWCS
824 HAVE_MBRLEN
825 HAVE_MBRTOWC
826 HAVE_MBSINIT
827 HAVE_BTOWC
828 GNULIB_WCSWIDTH
829 GNULIB_WCSTOK
830 GNULIB_WCSSTR
831 GNULIB_WCSPBRK
832 GNULIB_WCSSPN
833 GNULIB_WCSCSPN
834 GNULIB_WCSRCHR
835 GNULIB_WCSCHR
836 GNULIB_WCSDUP
837 GNULIB_WCSXFRM
838 GNULIB_WCSCOLL
839 GNULIB_WCSNCASECMP
840 GNULIB_WCSCASECMP
841 GNULIB_WCSNCMP
842 GNULIB_WCSCMP
843 GNULIB_WCSNCAT
844 GNULIB_WCSCAT
845 GNULIB_WCPNCPY
846 GNULIB_WCSNCPY
847 GNULIB_WCPCPY
848 GNULIB_WCSCPY
849 GNULIB_WCSNLEN
850 GNULIB_WCSLEN
851 GNULIB_WMEMSET
852 GNULIB_WMEMMOVE
853 GNULIB_WMEMCPY
854 GNULIB_WMEMCMP
855 GNULIB_WMEMCHR
856 GNULIB_WCWIDTH
857 GNULIB_WCSNRTOMBS
858 GNULIB_WCSRTOMBS
859 GNULIB_WCRTOMB
860 GNULIB_MBSNRTOWCS
861 GNULIB_MBSRTOWCS
862 GNULIB_MBRLEN
863 GNULIB_MBRTOWC
864 GNULIB_MBSINIT
865 GNULIB_WCTOB
866 GNULIB_BTOWC
867 NEXT_AS_FIRST_DIRECTIVE_MATH_H
868 NEXT_MATH_H
869 REPLACE_UTIMENSAT
870 REPLACE_STAT
871 REPLACE_MKNOD
872 REPLACE_MKFIFO
873 REPLACE_MKDIR
874 REPLACE_LSTAT
875 REPLACE_FUTIMENS
876 REPLACE_FSTATAT
877 REPLACE_FSTAT
878 HAVE_UTIMENSAT
879 HAVE_MKNODAT
880 HAVE_MKNOD
881 HAVE_MKFIFOAT
882 HAVE_MKFIFO
883 HAVE_MKDIRAT
884 HAVE_LSTAT
885 HAVE_LCHMOD
886 HAVE_FUTIMENS
887 HAVE_FSTATAT
888 HAVE_FCHMODAT
889 GNULIB_UTIMENSAT
890 GNULIB_STAT
891 GNULIB_MKNODAT
892 GNULIB_MKNOD
893 GNULIB_MKFIFOAT
894 GNULIB_MKFIFO
895 GNULIB_MKDIRAT
896 GNULIB_LSTAT
897 GNULIB_LCHMOD
898 GNULIB_FUTIMENS
899 GNULIB_FSTATAT
900 GNULIB_FSTAT
901 GNULIB_FCHMODAT
902 LOCALCHARSET_TESTS_ENVIRONMENT
903 GLIBC21
904 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
905 NEXT_INTTYPES_H
906 UINT64_MAX_EQ_ULONG_MAX
907 UINT32_MAX_LT_UINTMAX_MAX
908 PRIPTR_PREFIX
909 PRI_MACROS_BROKEN
910 INT64_MAX_EQ_LONG_MAX
911 INT32_MAX_LT_INTMAX_MAX
912 REPLACE_STRTOIMAX
913 HAVE_DECL_STRTOUMAX
914 HAVE_DECL_STRTOIMAX
915 HAVE_DECL_IMAXDIV
916 HAVE_DECL_IMAXABS
917 GNULIB_STRTOUMAX
918 GNULIB_STRTOIMAX
919 GNULIB_IMAXDIV
920 GNULIB_IMAXABS
921 GL_GENERATE_STDINT_H_FALSE
922 GL_GENERATE_STDINT_H_TRUE
923 STDINT_H
924 WINT_T_SUFFIX
925 WCHAR_T_SUFFIX
926 SIG_ATOMIC_T_SUFFIX
927 SIZE_T_SUFFIX
928 PTRDIFF_T_SUFFIX
929 HAVE_SIGNED_WINT_T
930 HAVE_SIGNED_WCHAR_T
931 HAVE_SIGNED_SIG_ATOMIC_T
932 BITSIZEOF_WINT_T
933 BITSIZEOF_WCHAR_T
934 BITSIZEOF_SIG_ATOMIC_T
935 BITSIZEOF_SIZE_T
936 BITSIZEOF_PTRDIFF_T
937 APPLE_UNIVERSAL_BUILD
938 HAVE_SYS_BITYPES_H
939 HAVE_SYS_INTTYPES_H
940 HAVE_STDINT_H
941 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
942 NEXT_STDINT_H
943 HAVE_SYS_TYPES_H
944 HAVE_INTTYPES_H
945 HAVE_WCHAR_H
946 HAVE_UNSIGNED_LONG_LONG_INT
947 HAVE_LONG_LONG_INT
948 FREXPL_LIBM
949 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
950 FREXP_LIBM
951 REPLACE_TRUNCL
952 REPLACE_TRUNCF
953 REPLACE_TRUNC
954 REPLACE_SQRTL
955 REPLACE_SIGNBIT_USING_GCC
956 REPLACE_SIGNBIT
957 REPLACE_ROUNDL
958 REPLACE_ROUNDF
959 REPLACE_ROUND
960 REPLACE_REMAINDERL
961 REPLACE_REMAINDERF
962 REPLACE_REMAINDER
963 REPLACE_NAN
964 REPLACE_MODFL
965 REPLACE_MODFF
966 REPLACE_MODF
967 REPLACE_LOGBL
968 REPLACE_LOGBF
969 REPLACE_LOGB
970 REPLACE_LOG2L
971 REPLACE_LOG2F
972 REPLACE_LOG2
973 REPLACE_LOG1PL
974 REPLACE_LOG1PF
975 REPLACE_LOG1P
976 REPLACE_LOG10L
977 REPLACE_LOG10F
978 REPLACE_LOG10
979 REPLACE_LOGL
980 REPLACE_LOGF
981 REPLACE_LOG
982 REPLACE_LDEXPL
983 REPLACE_ISNAN
984 REPLACE_ISINF
985 REPLACE_ISFINITE
986 REPLACE_ILOGBF
987 REPLACE_ILOGB
988 REPLACE_HYPOTL
989 REPLACE_HYPOTF
990 REPLACE_HYPOT
991 REPLACE_HUGE_VAL
992 REPLACE_FREXPL
993 REPLACE_FREXP
994 REPLACE_FREXPF
995 REPLACE_FMODL
996 REPLACE_FMODF
997 REPLACE_FMOD
998 REPLACE_FMAL
999 REPLACE_FMAF
1000 REPLACE_FMA
1001 REPLACE_FLOORL
1002 REPLACE_FLOORF
1003 REPLACE_FLOOR
1004 REPLACE_FABSL
1005 REPLACE_EXP2L
1006 REPLACE_EXP2
1007 REPLACE_EXPM1F
1008 REPLACE_EXPM1
1009 REPLACE_CEILL
1010 REPLACE_CEILF
1011 REPLACE_CEIL
1012 REPLACE_CBRTL
1013 REPLACE_CBRTF
1014 HAVE_DECL_TRUNCL
1015 HAVE_DECL_TRUNCF
1016 HAVE_DECL_TRUNC
1017 HAVE_DECL_TANL
1018 HAVE_DECL_SQRTL
1019 HAVE_DECL_SINL
1020 HAVE_DECL_ROUNDL
1021 HAVE_DECL_ROUNDF
1022 HAVE_DECL_ROUND
1023 HAVE_DECL_RINTF
1024 HAVE_DECL_REMAINDERL
1025 HAVE_DECL_REMAINDER
1026 HAVE_DECL_LOGB
1027 HAVE_DECL_LOG2L
1028 HAVE_DECL_LOG2F
1029 HAVE_DECL_LOG2
1030 HAVE_DECL_LOG10L
1031 HAVE_DECL_LOGL
1032 HAVE_DECL_LDEXPL
1033 HAVE_DECL_FREXPL
1034 HAVE_DECL_FLOORL
1035 HAVE_DECL_FLOORF
1036 HAVE_DECL_EXPM1L
1037 HAVE_DECL_EXP2L
1038 HAVE_DECL_EXP2F
1039 HAVE_DECL_EXP2
1040 HAVE_DECL_EXPL
1041 HAVE_DECL_COSL
1042 HAVE_DECL_COPYSIGNF
1043 HAVE_DECL_CEILL
1044 HAVE_DECL_CEILF
1045 HAVE_DECL_CBRTL
1046 HAVE_DECL_CBRTF
1047 HAVE_DECL_ATANL
1048 HAVE_DECL_ASINL
1049 HAVE_DECL_ACOSL
1050 HAVE_TANHF
1051 HAVE_TANL
1052 HAVE_TANF
1053 HAVE_SQRTL
1054 HAVE_SQRTF
1055 HAVE_SINHF
1056 HAVE_SINL
1057 HAVE_SINF
1058 HAVE_RINTL
1059 HAVE_RINT
1060 HAVE_REMAINDERF
1061 HAVE_REMAINDER
1062 HAVE_POWF
1063 HAVE_MODFL
1064 HAVE_MODFF
1065 HAVE_LOGBL
1066 HAVE_LOGBF
1067 HAVE_LOG1PL
1068 HAVE_LOG1PF
1069 HAVE_LOG1P
1070 HAVE_LOG10L
1071 HAVE_LOG10F
1072 HAVE_LOGL
1073 HAVE_LOGF
1074 HAVE_LDEXPF
1075 HAVE_ISNANL
1076 HAVE_ISNAND
1077 HAVE_ISNANF
1078 HAVE_ILOGBL
1079 HAVE_ILOGBF
1080 HAVE_ILOGB
1081 HAVE_HYPOTL
1082 HAVE_HYPOTF
1083 HAVE_FREXPF
1084 HAVE_FMODL
1085 HAVE_FMODF
1086 HAVE_FMAL
1087 HAVE_FMAF
1088 HAVE_FMA
1089 HAVE_FABSL
1090 HAVE_FABSF
1091 HAVE_EXPM1F
1092 HAVE_EXPM1
1093 HAVE_EXPL
1094 HAVE_EXPF
1095 HAVE_COSHF
1096 HAVE_COSL
1097 HAVE_COSF
1098 HAVE_COPYSIGNL
1099 HAVE_COPYSIGN
1100 HAVE_CBRTL
1101 HAVE_CBRTF
1102 HAVE_CBRT
1103 HAVE_ATAN2F
1104 HAVE_ATANL
1105 HAVE_ATANF
1106 HAVE_ASINL
1107 HAVE_ASINF
1108 HAVE_ACOSL
1109 HAVE_ACOSF
1110 GNULIB_TRUNCL
1111 GNULIB_TRUNCF
1112 GNULIB_TRUNC
1113 GNULIB_TANHF
1114 GNULIB_TANL
1115 GNULIB_TANF
1116 GNULIB_SQRTL
1117 GNULIB_SQRTF
1118 GNULIB_SINHF
1119 GNULIB_SINL
1120 GNULIB_SINF
1121 GNULIB_SIGNBIT
1122 GNULIB_ROUNDL
1123 GNULIB_ROUNDF
1124 GNULIB_ROUND
1125 GNULIB_RINTL
1126 GNULIB_RINTF
1127 GNULIB_RINT
1128 GNULIB_REMAINDERL
1129 GNULIB_REMAINDERF
1130 GNULIB_REMAINDER
1131 GNULIB_POWF
1132 GNULIB_MODFL
1133 GNULIB_MODFF
1134 GNULIB_MODF
1135 GNULIB_LOGBL
1136 GNULIB_LOGBF
1137 GNULIB_LOGB
1138 GNULIB_LOG2L
1139 GNULIB_LOG2F
1140 GNULIB_LOG2
1141 GNULIB_LOG1PL
1142 GNULIB_LOG1PF
1143 GNULIB_LOG1P
1144 GNULIB_LOG10L
1145 GNULIB_LOG10F
1146 GNULIB_LOG10
1147 GNULIB_LOGL
1148 GNULIB_LOGF
1149 GNULIB_LOG
1150 GNULIB_LDEXPL
1151 GNULIB_LDEXPF
1152 GNULIB_ISNANL
1153 GNULIB_ISNAND
1154 GNULIB_ISNANF
1155 GNULIB_ISNAN
1156 GNULIB_ISINF
1157 GNULIB_ISFINITE
1158 GNULIB_ILOGBL
1159 GNULIB_ILOGBF
1160 GNULIB_ILOGB
1161 GNULIB_HYPOTL
1162 GNULIB_HYPOTF
1163 GNULIB_HYPOT
1164 GNULIB_FREXPL
1165 GNULIB_FREXP
1166 GNULIB_FREXPF
1167 GNULIB_FMODL
1168 GNULIB_FMODF
1169 GNULIB_FMOD
1170 GNULIB_FMAL
1171 GNULIB_FMAF
1172 GNULIB_FMA
1173 GNULIB_FLOORL
1174 GNULIB_FLOORF
1175 GNULIB_FLOOR
1176 GNULIB_FABSL
1177 GNULIB_FABSF
1178 GNULIB_EXPM1L
1179 GNULIB_EXPM1F
1180 GNULIB_EXPM1
1181 GNULIB_EXP2L
1182 GNULIB_EXP2F
1183 GNULIB_EXP2
1184 GNULIB_EXPL
1185 GNULIB_EXPF
1186 GNULIB_COSHF
1187 GNULIB_COSL
1188 GNULIB_COSF
1189 GNULIB_COPYSIGNL
1190 GNULIB_COPYSIGNF
1191 GNULIB_COPYSIGN
1192 GNULIB_CEILL
1193 GNULIB_CEILF
1194 GNULIB_CEIL
1195 GNULIB_CBRTL
1196 GNULIB_CBRTF
1197 GNULIB_CBRT
1198 GNULIB_ATAN2F
1199 GNULIB_ATANL
1200 GNULIB_ATANF
1201 GNULIB_ASINL
1202 GNULIB_ASINF
1203 GNULIB_ACOSL
1204 GNULIB_ACOSF
1205 GL_GENERATE_FNMATCH_H_FALSE
1206 GL_GENERATE_FNMATCH_H_TRUE
1207 FNMATCH_H
1208 REPLACE_ITOLD
1209 GL_GENERATE_FLOAT_H_FALSE
1210 GL_GENERATE_FLOAT_H_TRUE
1211 FLOAT_H
1212 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1213 NEXT_FLOAT_H
1214 EOVERFLOW_VALUE
1215 EOVERFLOW_HIDDEN
1216 ENOLINK_VALUE
1217 ENOLINK_HIDDEN
1218 EMULTIHOP_VALUE
1219 EMULTIHOP_HIDDEN
1220 GL_GENERATE_ERRNO_H_FALSE
1221 GL_GENERATE_ERRNO_H_TRUE
1222 ERRNO_H
1223 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1224 NEXT_ERRNO_H
1225 HAVE_DIRENT_H
1226 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
1227 NEXT_DIRENT_H
1228 PRAGMA_COLUMNS
1229 PRAGMA_SYSTEM_HEADER
1230 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1231 INCLUDE_NEXT
1232 REPLACE_FDOPENDIR
1233 REPLACE_DIRFD
1234 REPLACE_CLOSEDIR
1235 REPLACE_OPENDIR
1236 HAVE_ALPHASORT
1237 HAVE_SCANDIR
1238 HAVE_FDOPENDIR
1239 HAVE_DECL_FDOPENDIR
1240 HAVE_DECL_DIRFD
1241 HAVE_CLOSEDIR
1242 HAVE_REWINDDIR
1243 HAVE_READDIR
1244 HAVE_OPENDIR
1245 GNULIB_ALPHASORT
1246 GNULIB_SCANDIR
1247 GNULIB_FDOPENDIR
1248 GNULIB_DIRFD
1249 GNULIB_CLOSEDIR
1250 GNULIB_REWINDDIR
1251 GNULIB_READDIR
1252 GNULIB_OPENDIR
1253 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1254 UNISTD_H_HAVE_WINSOCK2_H
1255 REPLACE_WRITE
1256 REPLACE_USLEEP
1257 REPLACE_UNLINKAT
1258 REPLACE_UNLINK
1259 REPLACE_TTYNAME_R
1260 REPLACE_SYMLINK
1261 REPLACE_SLEEP
1262 REPLACE_RMDIR
1263 REPLACE_READLINK
1264 REPLACE_READ
1265 REPLACE_PWRITE
1266 REPLACE_PREAD
1267 REPLACE_LSEEK
1268 REPLACE_LINKAT
1269 REPLACE_LINK
1270 REPLACE_LCHOWN
1271 REPLACE_ISATTY
1272 REPLACE_GETPAGESIZE
1273 REPLACE_GETGROUPS
1274 REPLACE_GETLOGIN_R
1275 REPLACE_GETDOMAINNAME
1276 REPLACE_GETCWD
1277 REPLACE_FTRUNCATE
1278 REPLACE_FCHOWNAT
1279 REPLACE_DUP2
1280 REPLACE_DUP
1281 REPLACE_CLOSE
1282 REPLACE_CHOWN
1283 HAVE_SYS_PARAM_H
1284 HAVE_OS_H
1285 HAVE_DECL_TTYNAME_R
1286 HAVE_DECL_SETHOSTNAME
1287 HAVE_DECL_GETUSERSHELL
1288 HAVE_DECL_GETPAGESIZE
1289 HAVE_DECL_GETLOGIN_R
1290 HAVE_DECL_GETDOMAINNAME
1291 HAVE_DECL_FDATASYNC
1292 HAVE_DECL_FCHDIR
1293 HAVE_DECL_ENVIRON
1294 HAVE_USLEEP
1295 HAVE_UNLINKAT
1296 HAVE_SYMLINKAT
1297 HAVE_SYMLINK
1298 HAVE_SLEEP
1299 HAVE_SETHOSTNAME
1300 HAVE_READLINKAT
1301 HAVE_READLINK
1302 HAVE_PWRITE
1303 HAVE_PREAD
1304 HAVE_PIPE2
1305 HAVE_PIPE
1306 HAVE_LINKAT
1307 HAVE_LINK
1308 HAVE_LCHOWN
1309 HAVE_GROUP_MEMBER
1310 HAVE_GETPAGESIZE
1311 HAVE_GETLOGIN
1312 HAVE_GETHOSTNAME
1313 HAVE_GETGROUPS
1314 HAVE_GETDTABLESIZE
1315 HAVE_FTRUNCATE
1316 HAVE_FSYNC
1317 HAVE_FDATASYNC
1318 HAVE_FCHOWNAT
1319 HAVE_FCHDIR
1320 HAVE_FACCESSAT
1321 HAVE_EUIDACCESS
1322 HAVE_DUP3
1323 HAVE_DUP2
1324 HAVE_CHOWN
1325 GNULIB_WRITE
1326 GNULIB_USLEEP
1327 GNULIB_UNLINKAT
1328 GNULIB_UNLINK
1329 GNULIB_UNISTD_H_SIGPIPE
1330 GNULIB_UNISTD_H_NONBLOCKING
1331 GNULIB_TTYNAME_R
1332 GNULIB_SYMLINKAT
1333 GNULIB_SYMLINK
1334 GNULIB_SLEEP
1335 GNULIB_SETHOSTNAME
1336 GNULIB_RMDIR
1337 GNULIB_READLINKAT
1338 GNULIB_READLINK
1339 GNULIB_READ
1340 GNULIB_PWRITE
1341 GNULIB_PREAD
1342 GNULIB_PIPE2
1343 GNULIB_PIPE
1344 GNULIB_LSEEK
1345 GNULIB_LINKAT
1346 GNULIB_LINK
1347 GNULIB_LCHOWN
1348 GNULIB_ISATTY
1349 GNULIB_GROUP_MEMBER
1350 GNULIB_GETUSERSHELL
1351 GNULIB_GETPAGESIZE
1352 GNULIB_GETLOGIN_R
1353 GNULIB_GETLOGIN
1354 GNULIB_GETHOSTNAME
1355 GNULIB_GETGROUPS
1356 GNULIB_GETDTABLESIZE
1357 GNULIB_GETDOMAINNAME
1358 GNULIB_GETCWD
1359 GNULIB_FTRUNCATE
1360 GNULIB_FSYNC
1361 GNULIB_FDATASYNC
1362 GNULIB_FCHOWNAT
1363 GNULIB_FCHDIR
1364 GNULIB_FACCESSAT
1365 GNULIB_EUIDACCESS
1366 GNULIB_ENVIRON
1367 GNULIB_DUP3
1368 GNULIB_DUP2
1369 GNULIB_DUP
1370 GNULIB_CLOSE
1371 GNULIB_CHOWN
1372 GNULIB_CHDIR
1373 pkglibexecdir
1374 lispdir
1375 REPLACE_WCTOMB
1376 REPLACE_UNSETENV
1377 REPLACE_STRTOD
1378 REPLACE_SETENV
1379 REPLACE_REALPATH
1380 REPLACE_REALLOC
1381 REPLACE_RANDOM_R
1382 REPLACE_PUTENV
1383 REPLACE_PTSNAME_R
1384 REPLACE_PTSNAME
1385 REPLACE_MKSTEMP
1386 REPLACE_MBTOWC
1387 REPLACE_MALLOC
1388 REPLACE_CANONICALIZE_FILE_NAME
1389 REPLACE_CALLOC
1390 HAVE_DECL_UNSETENV
1391 HAVE_UNLOCKPT
1392 HAVE_SYS_LOADAVG_H
1393 HAVE_STRUCT_RANDOM_DATA
1394 HAVE_STRTOULL
1395 HAVE_STRTOLL
1396 HAVE_STRTOD
1397 HAVE_DECL_SETENV
1398 HAVE_SETENV
1399 HAVE_RPMATCH
1400 HAVE_REALPATH
1401 HAVE_RANDOM_R
1402 HAVE_RANDOM_H
1403 HAVE_RANDOM
1404 HAVE_PTSNAME_R
1405 HAVE_PTSNAME
1406 HAVE_POSIX_OPENPT
1407 HAVE_MKSTEMPS
1408 HAVE_MKSTEMP
1409 HAVE_MKOSTEMPS
1410 HAVE_MKOSTEMP
1411 HAVE_MKDTEMP
1412 HAVE_GRANTPT
1413 HAVE_GETSUBOPT
1414 HAVE_DECL_GETLOADAVG
1415 HAVE_CANONICALIZE_FILE_NAME
1416 HAVE_ATOLL
1417 HAVE__EXIT
1418 GNULIB_WCTOMB
1419 GNULIB_UNSETENV
1420 GNULIB_UNLOCKPT
1421 GNULIB_SYSTEM_POSIX
1422 GNULIB_STRTOULL
1423 GNULIB_STRTOLL
1424 GNULIB_STRTOD
1425 GNULIB_SETENV
1426 GNULIB_RPMATCH
1427 GNULIB_REALPATH
1428 GNULIB_REALLOC_POSIX
1429 GNULIB_RANDOM_R
1430 GNULIB_RANDOM
1431 GNULIB_PUTENV
1432 GNULIB_PTSNAME_R
1433 GNULIB_PTSNAME
1434 GNULIB_POSIX_OPENPT
1435 GNULIB_MKSTEMPS
1436 GNULIB_MKSTEMP
1437 GNULIB_MKOSTEMPS
1438 GNULIB_MKOSTEMP
1439 GNULIB_MKDTEMP
1440 GNULIB_MBTOWC
1441 GNULIB_MALLOC_POSIX
1442 GNULIB_GRANTPT
1443 GNULIB_GETSUBOPT
1444 GNULIB_GETLOADAVG
1445 GNULIB_CANONICALIZE_FILE_NAME
1446 GNULIB_CALLOC_POSIX
1447 GNULIB_ATOLL
1448 GNULIB__EXIT
1449 GL_GENERATE_ALLOCA_H_FALSE
1450 GL_GENERATE_ALLOCA_H_TRUE
1451 ALLOCA_H
1452 ALLOCA
1453 GL_COND_LIBTOOL_FALSE
1454 GL_COND_LIBTOOL_TRUE
1455 target_os
1456 target_vendor
1457 target_cpu
1458 target
1459 RANLIB
1460 ARFLAGS
1461 AR
1462 EGREP
1463 GREP
1464 CPP
1465 host_os
1466 host_vendor
1467 host_cpu
1468 host
1469 build_os
1470 build_vendor
1471 build_cpu
1472 build
1473 OBJEXT
1474 EXEEXT
1475 ac_ct_CC
1476 CPPFLAGS
1477 LDFLAGS
1478 CFLAGS
1479 CC
1480 MAINT
1481 MAINTAINER_MODE_FALSE
1482 MAINTAINER_MODE_TRUE
1483 target_alias
1484 host_alias
1485 build_alias
1486 LIBS
1487 ECHO_T
1488 ECHO_N
1489 ECHO_C
1490 DEFS
1491 mandir
1492 localedir
1493 libdir
1494 psdir
1495 pdfdir
1496 dvidir
1497 htmldir
1498 infodir
1499 docdir
1500 oldincludedir
1501 includedir
1502 localstatedir
1503 sharedstatedir
1504 sysconfdir
1505 datadir
1506 datarootdir
1507 libexecdir
1508 sbindir
1509 bindir
1510 program_transform_name
1511 prefix
1512 exec_prefix
1513 PACKAGE_URL
1514 PACKAGE_BUGREPORT
1515 PACKAGE_STRING
1516 PACKAGE_VERSION
1517 PACKAGE_TARNAME
1518 PACKAGE_NAME
1519 PATH_SEPARATOR
1520 SHELL'
1521 ac_subst_files=''
1522 ac_user_opts='
1523 enable_option_checking
1524 enable_maintainer_mode
1525 enable_largefile
1526 enable_dependency_tracking
1527 '
1528 ac_precious_vars='build_alias
1529 host_alias
1530 target_alias
1531 CC
1532 CFLAGS
1533 LDFLAGS
1534 LIBS
1535 CPPFLAGS
1536 CPP'
1537
1538
1539 # Initialize some variables set by options.
1540 ac_init_help=
1541 ac_init_version=false
1542 ac_unrecognized_opts=
1543 ac_unrecognized_sep=
1544 # The variables have the same names as the options, with
1545 # dashes changed to underlines.
1546 cache_file=/dev/null
1547 exec_prefix=NONE
1548 no_create=
1549 no_recursion=
1550 prefix=NONE
1551 program_prefix=NONE
1552 program_suffix=NONE
1553 program_transform_name=s,x,x,
1554 silent=
1555 site=
1556 srcdir=
1557 verbose=
1558 x_includes=NONE
1559 x_libraries=NONE
1560
1561 # Installation directory options.
1562 # These are left unexpanded so users can "make install exec_prefix=/foo"
1563 # and all the variables that are supposed to be based on exec_prefix
1564 # by default will actually change.
1565 # Use braces instead of parens because sh, perl, etc. also accept them.
1566 # (The list follows the same order as the GNU Coding Standards.)
1567 bindir='${exec_prefix}/bin'
1568 sbindir='${exec_prefix}/sbin'
1569 libexecdir='${exec_prefix}/libexec'
1570 datarootdir='${prefix}/share'
1571 datadir='${datarootdir}'
1572 sysconfdir='${prefix}/etc'
1573 sharedstatedir='${prefix}/com'
1574 localstatedir='${prefix}/var'
1575 includedir='${prefix}/include'
1576 oldincludedir='/usr/include'
1577 docdir='${datarootdir}/doc/${PACKAGE}'
1578 infodir='${datarootdir}/info'
1579 htmldir='${docdir}'
1580 dvidir='${docdir}'
1581 pdfdir='${docdir}'
1582 psdir='${docdir}'
1583 libdir='${exec_prefix}/lib'
1584 localedir='${datarootdir}/locale'
1585 mandir='${datarootdir}/man'
1586
1587 ac_prev=
1588 ac_dashdash=
1589 for ac_option
1590 do
1591 # If the previous option needs an argument, assign it.
1592 if test -n "$ac_prev"; then
1593 eval $ac_prev=\$ac_option
1594 ac_prev=
1595 continue
1596 fi
1597
1598 case $ac_option in
1599 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1600 *) ac_optarg=yes ;;
1601 esac
1602
1603 # Accept the important Cygnus configure options, so we can diagnose typos.
1604
1605 case $ac_dashdash$ac_option in
1606 --)
1607 ac_dashdash=yes ;;
1608
1609 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1610 ac_prev=bindir ;;
1611 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1612 bindir=$ac_optarg ;;
1613
1614 -build | --build | --buil | --bui | --bu)
1615 ac_prev=build_alias ;;
1616 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1617 build_alias=$ac_optarg ;;
1618
1619 -cache-file | --cache-file | --cache-fil | --cache-fi \
1620 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1621 ac_prev=cache_file ;;
1622 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1623 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1624 cache_file=$ac_optarg ;;
1625
1626 --config-cache | -C)
1627 cache_file=config.cache ;;
1628
1629 -datadir | --datadir | --datadi | --datad)
1630 ac_prev=datadir ;;
1631 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1632 datadir=$ac_optarg ;;
1633
1634 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1635 | --dataroo | --dataro | --datar)
1636 ac_prev=datarootdir ;;
1637 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1638 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1639 datarootdir=$ac_optarg ;;
1640
1641 -disable-* | --disable-*)
1642 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1643 # Reject names that are not valid shell variable names.
1644 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1645 as_fn_error "invalid feature name: $ac_useropt"
1646 ac_useropt_orig=$ac_useropt
1647 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1648 case $ac_user_opts in
1649 *"
1650 "enable_$ac_useropt"
1651 "*) ;;
1652 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1653 ac_unrecognized_sep=', ';;
1654 esac
1655 eval enable_$ac_useropt=no ;;
1656
1657 -docdir | --docdir | --docdi | --doc | --do)
1658 ac_prev=docdir ;;
1659 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1660 docdir=$ac_optarg ;;
1661
1662 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1663 ac_prev=dvidir ;;
1664 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1665 dvidir=$ac_optarg ;;
1666
1667 -enable-* | --enable-*)
1668 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1669 # Reject names that are not valid shell variable names.
1670 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1671 as_fn_error "invalid feature name: $ac_useropt"
1672 ac_useropt_orig=$ac_useropt
1673 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1674 case $ac_user_opts in
1675 *"
1676 "enable_$ac_useropt"
1677 "*) ;;
1678 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1679 ac_unrecognized_sep=', ';;
1680 esac
1681 eval enable_$ac_useropt=\$ac_optarg ;;
1682
1683 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1684 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1685 | --exec | --exe | --ex)
1686 ac_prev=exec_prefix ;;
1687 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1688 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1689 | --exec=* | --exe=* | --ex=*)
1690 exec_prefix=$ac_optarg ;;
1691
1692 -gas | --gas | --ga | --g)
1693 # Obsolete; use --with-gas.
1694 with_gas=yes ;;
1695
1696 -help | --help | --hel | --he | -h)
1697 ac_init_help=long ;;
1698 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1699 ac_init_help=recursive ;;
1700 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1701 ac_init_help=short ;;
1702
1703 -host | --host | --hos | --ho)
1704 ac_prev=host_alias ;;
1705 -host=* | --host=* | --hos=* | --ho=*)
1706 host_alias=$ac_optarg ;;
1707
1708 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1709 ac_prev=htmldir ;;
1710 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1711 | --ht=*)
1712 htmldir=$ac_optarg ;;
1713
1714 -includedir | --includedir | --includedi | --included | --include \
1715 | --includ | --inclu | --incl | --inc)
1716 ac_prev=includedir ;;
1717 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1718 | --includ=* | --inclu=* | --incl=* | --inc=*)
1719 includedir=$ac_optarg ;;
1720
1721 -infodir | --infodir | --infodi | --infod | --info | --inf)
1722 ac_prev=infodir ;;
1723 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1724 infodir=$ac_optarg ;;
1725
1726 -libdir | --libdir | --libdi | --libd)
1727 ac_prev=libdir ;;
1728 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1729 libdir=$ac_optarg ;;
1730
1731 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1732 | --libexe | --libex | --libe)
1733 ac_prev=libexecdir ;;
1734 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1735 | --libexe=* | --libex=* | --libe=*)
1736 libexecdir=$ac_optarg ;;
1737
1738 -localedir | --localedir | --localedi | --localed | --locale)
1739 ac_prev=localedir ;;
1740 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1741 localedir=$ac_optarg ;;
1742
1743 -localstatedir | --localstatedir | --localstatedi | --localstated \
1744 | --localstate | --localstat | --localsta | --localst | --locals)
1745 ac_prev=localstatedir ;;
1746 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1747 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1748 localstatedir=$ac_optarg ;;
1749
1750 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1751 ac_prev=mandir ;;
1752 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1753 mandir=$ac_optarg ;;
1754
1755 -nfp | --nfp | --nf)
1756 # Obsolete; use --without-fp.
1757 with_fp=no ;;
1758
1759 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1760 | --no-cr | --no-c | -n)
1761 no_create=yes ;;
1762
1763 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1764 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1765 no_recursion=yes ;;
1766
1767 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1768 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1769 | --oldin | --oldi | --old | --ol | --o)
1770 ac_prev=oldincludedir ;;
1771 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1772 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1773 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1774 oldincludedir=$ac_optarg ;;
1775
1776 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1777 ac_prev=prefix ;;
1778 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1779 prefix=$ac_optarg ;;
1780
1781 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1782 | --program-pre | --program-pr | --program-p)
1783 ac_prev=program_prefix ;;
1784 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1785 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1786 program_prefix=$ac_optarg ;;
1787
1788 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1789 | --program-suf | --program-su | --program-s)
1790 ac_prev=program_suffix ;;
1791 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1792 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1793 program_suffix=$ac_optarg ;;
1794
1795 -program-transform-name | --program-transform-name \
1796 | --program-transform-nam | --program-transform-na \
1797 | --program-transform-n | --program-transform- \
1798 | --program-transform | --program-transfor \
1799 | --program-transfo | --program-transf \
1800 | --program-trans | --program-tran \
1801 | --progr-tra | --program-tr | --program-t)
1802 ac_prev=program_transform_name ;;
1803 -program-transform-name=* | --program-transform-name=* \
1804 | --program-transform-nam=* | --program-transform-na=* \
1805 | --program-transform-n=* | --program-transform-=* \
1806 | --program-transform=* | --program-transfor=* \
1807 | --program-transfo=* | --program-transf=* \
1808 | --program-trans=* | --program-tran=* \
1809 | --progr-tra=* | --program-tr=* | --program-t=*)
1810 program_transform_name=$ac_optarg ;;
1811
1812 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1813 ac_prev=pdfdir ;;
1814 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1815 pdfdir=$ac_optarg ;;
1816
1817 -psdir | --psdir | --psdi | --psd | --ps)
1818 ac_prev=psdir ;;
1819 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1820 psdir=$ac_optarg ;;
1821
1822 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1823 | -silent | --silent | --silen | --sile | --sil)
1824 silent=yes ;;
1825
1826 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1827 ac_prev=sbindir ;;
1828 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1829 | --sbi=* | --sb=*)
1830 sbindir=$ac_optarg ;;
1831
1832 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1833 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1834 | --sharedst | --shareds | --shared | --share | --shar \
1835 | --sha | --sh)
1836 ac_prev=sharedstatedir ;;
1837 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1838 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1839 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1840 | --sha=* | --sh=*)
1841 sharedstatedir=$ac_optarg ;;
1842
1843 -site | --site | --sit)
1844 ac_prev=site ;;
1845 -site=* | --site=* | --sit=*)
1846 site=$ac_optarg ;;
1847
1848 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1849 ac_prev=srcdir ;;
1850 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1851 srcdir=$ac_optarg ;;
1852
1853 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1854 | --syscon | --sysco | --sysc | --sys | --sy)
1855 ac_prev=sysconfdir ;;
1856 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1857 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1858 sysconfdir=$ac_optarg ;;
1859
1860 -target | --target | --targe | --targ | --tar | --ta | --t)
1861 ac_prev=target_alias ;;
1862 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1863 target_alias=$ac_optarg ;;
1864
1865 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1866 verbose=yes ;;
1867
1868 -version | --version | --versio | --versi | --vers | -V)
1869 ac_init_version=: ;;
1870
1871 -with-* | --with-*)
1872 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1873 # Reject names that are not valid shell variable names.
1874 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1875 as_fn_error "invalid package name: $ac_useropt"
1876 ac_useropt_orig=$ac_useropt
1877 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1878 case $ac_user_opts in
1879 *"
1880 "with_$ac_useropt"
1881 "*) ;;
1882 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1883 ac_unrecognized_sep=', ';;
1884 esac
1885 eval with_$ac_useropt=\$ac_optarg ;;
1886
1887 -without-* | --without-*)
1888 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1889 # Reject names that are not valid shell variable names.
1890 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1891 as_fn_error "invalid package name: $ac_useropt"
1892 ac_useropt_orig=$ac_useropt
1893 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1894 case $ac_user_opts in
1895 *"
1896 "with_$ac_useropt"
1897 "*) ;;
1898 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1899 ac_unrecognized_sep=', ';;
1900 esac
1901 eval with_$ac_useropt=no ;;
1902
1903 --x)
1904 # Obsolete; use --with-x.
1905 with_x=yes ;;
1906
1907 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1908 | --x-incl | --x-inc | --x-in | --x-i)
1909 ac_prev=x_includes ;;
1910 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1911 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1912 x_includes=$ac_optarg ;;
1913
1914 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1915 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1916 ac_prev=x_libraries ;;
1917 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1918 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1919 x_libraries=$ac_optarg ;;
1920
1921 -*) as_fn_error "unrecognized option: \`$ac_option'
1922 Try \`$0 --help' for more information."
1923 ;;
1924
1925 *=*)
1926 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1927 # Reject names that are not valid shell variable names.
1928 case $ac_envvar in #(
1929 '' | [0-9]* | *[!_$as_cr_alnum]* )
1930 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1931 esac
1932 eval $ac_envvar=\$ac_optarg
1933 export $ac_envvar ;;
1934
1935 *)
1936 # FIXME: should be removed in autoconf 3.0.
1937 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1938 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1939 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1940 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1941 ;;
1942
1943 esac
1944 done
1945
1946 if test -n "$ac_prev"; then
1947 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1948 as_fn_error "missing argument to $ac_option"
1949 fi
1950
1951 if test -n "$ac_unrecognized_opts"; then
1952 case $enable_option_checking in
1953 no) ;;
1954 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1955 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1956 esac
1957 fi
1958
1959 # Check all directory arguments for consistency.
1960 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1961 datadir sysconfdir sharedstatedir localstatedir includedir \
1962 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1963 libdir localedir mandir
1964 do
1965 eval ac_val=\$$ac_var
1966 # Remove trailing slashes.
1967 case $ac_val in
1968 */ )
1969 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1970 eval $ac_var=\$ac_val;;
1971 esac
1972 # Be sure to have absolute directory names.
1973 case $ac_val in
1974 [\\/$]* | ?:[\\/]* ) continue;;
1975 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1976 esac
1977 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1978 done
1979
1980 # There might be people who depend on the old broken behavior: `$host'
1981 # used to hold the argument of --host etc.
1982 # FIXME: To remove some day.
1983 build=$build_alias
1984 host=$host_alias
1985 target=$target_alias
1986
1987 # FIXME: To remove some day.
1988 if test "x$host_alias" != x; then
1989 if test "x$build_alias" = x; then
1990 cross_compiling=maybe
1991 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1992 If a cross compiler is detected then cross compile mode will be used." >&2
1993 elif test "x$build_alias" != "x$host_alias"; then
1994 cross_compiling=yes
1995 fi
1996 fi
1997
1998 ac_tool_prefix=
1999 test -n "$host_alias" && ac_tool_prefix=$host_alias-
2000
2001 test "$silent" = yes && exec 6>/dev/null
2002
2003
2004 ac_pwd=`pwd` && test -n "$ac_pwd" &&
2005 ac_ls_di=`ls -di .` &&
2006 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
2007 as_fn_error "working directory cannot be determined"
2008 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2009 as_fn_error "pwd does not report name of working directory"
2010
2011
2012 # Find the source files, if location was not specified.
2013 if test -z "$srcdir"; then
2014 ac_srcdir_defaulted=yes
2015 # Try the directory containing this script, then the parent directory.
2016 ac_confdir=`$as_dirname -- "$as_myself" ||
2017 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2018 X"$as_myself" : 'X\(//\)[^/]' \| \
2019 X"$as_myself" : 'X\(//\)$' \| \
2020 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2021 $as_echo X"$as_myself" |
2022 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2023 s//\1/
2024 q
2025 }
2026 /^X\(\/\/\)[^/].*/{
2027 s//\1/
2028 q
2029 }
2030 /^X\(\/\/\)$/{
2031 s//\1/
2032 q
2033 }
2034 /^X\(\/\).*/{
2035 s//\1/
2036 q
2037 }
2038 s/.*/./; q'`
2039 srcdir=$ac_confdir
2040 if test ! -r "$srcdir/$ac_unique_file"; then
2041 srcdir=..
2042 fi
2043 else
2044 ac_srcdir_defaulted=no
2045 fi
2046 if test ! -r "$srcdir/$ac_unique_file"; then
2047 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
2048 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
2049 fi
2050 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
2051 ac_abs_confdir=`(
2052 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
2053 pwd)`
2054 # When building in place, set srcdir=.
2055 if test "$ac_abs_confdir" = "$ac_pwd"; then
2056 srcdir=.
2057 fi
2058 # Remove unnecessary trailing slashes from srcdir.
2059 # Double slashes in file names in object file debugging info
2060 # mess up M-x gdb in Emacs.
2061 case $srcdir in
2062 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2063 esac
2064 for ac_var in $ac_precious_vars; do
2065 eval ac_env_${ac_var}_set=\${${ac_var}+set}
2066 eval ac_env_${ac_var}_value=\$${ac_var}
2067 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
2068 eval ac_cv_env_${ac_var}_value=\$${ac_var}
2069 done
2070
2071 #
2072 # Report the --help message.
2073 #
2074 if test "$ac_init_help" = "long"; then
2075 # Omit some internal or obsolete options to make the list less imposing.
2076 # This message is too long to be a string in the A/UX 3.1 sh.
2077 cat <<_ACEOF
2078 \`configure' configures this package to adapt to many kinds of systems.
2079
2080 Usage: $0 [OPTION]... [VAR=VALUE]...
2081
2082 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2083 VAR=VALUE. See below for descriptions of some of the useful variables.
2084
2085 Defaults for the options are specified in brackets.
2086
2087 Configuration:
2088 -h, --help display this help and exit
2089 --help=short display options specific to this package
2090 --help=recursive display the short help of all the included packages
2091 -V, --version display version information and exit
2092 -q, --quiet, --silent do not print \`checking...' messages
2093 --cache-file=FILE cache test results in FILE [disabled]
2094 -C, --config-cache alias for \`--cache-file=config.cache'
2095 -n, --no-create do not create output files
2096 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2097
2098 Installation directories:
2099 --prefix=PREFIX install architecture-independent files in PREFIX
2100 [$ac_default_prefix]
2101 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2102 [PREFIX]
2103
2104 By default, \`make install' will install all the files in
2105 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2106 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2107 for instance \`--prefix=\$HOME'.
2108
2109 For better control, use the options below.
2110
2111 Fine tuning of the installation directories:
2112 --bindir=DIR user executables [EPREFIX/bin]
2113 --sbindir=DIR system admin executables [EPREFIX/sbin]
2114 --libexecdir=DIR program executables [EPREFIX/libexec]
2115 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2116 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2117 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2118 --libdir=DIR object code libraries [EPREFIX/lib]
2119 --includedir=DIR C header files [PREFIX/include]
2120 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2121 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2122 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2123 --infodir=DIR info documentation [DATAROOTDIR/info]
2124 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2125 --mandir=DIR man documentation [DATAROOTDIR/man]
2126 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
2127 --htmldir=DIR html documentation [DOCDIR]
2128 --dvidir=DIR dvi documentation [DOCDIR]
2129 --pdfdir=DIR pdf documentation [DOCDIR]
2130 --psdir=DIR ps documentation [DOCDIR]
2131 _ACEOF
2132
2133 cat <<\_ACEOF
2134
2135 Program names:
2136 --program-prefix=PREFIX prepend PREFIX to installed program names
2137 --program-suffix=SUFFIX append SUFFIX to installed program names
2138 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
2139
2140 System types:
2141 --build=BUILD configure for building on BUILD [guessed]
2142 --host=HOST cross-compile to build programs to run on HOST [BUILD]
2143 --target=TARGET configure for building compilers for TARGET [HOST]
2144 _ACEOF
2145 fi
2146
2147 if test -n "$ac_init_help"; then
2148
2149 cat <<\_ACEOF
2150
2151 Optional Features:
2152 --disable-option-checking ignore unrecognized --enable/--with options
2153 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2154 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2155 --enable-maintainer-mode enable make rules and dependencies not useful
2156 (and sometimes confusing) to the casual installer
2157 --disable-largefile omit support for large files
2158 --disable-dependency-tracking speeds up one-time build
2159 --enable-dependency-tracking do not reject slow dependency extractors
2160
2161 Some influential environment variables:
2162 CC C compiler command
2163 CFLAGS C compiler flags
2164 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2165 nonstandard directory <lib dir>
2166 LIBS libraries to pass to the linker, e.g. -l<library>
2167 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
2168 you have headers in a nonstandard directory <include dir>
2169 CPP C preprocessor
2170
2171 Use these variables to override the choices made by `configure' or to help
2172 it to find libraries and programs with nonstandard names/locations.
2173
2174 Report bugs to the package provider.
2175 _ACEOF
2176 ac_status=$?
2177 fi
2178
2179 if test "$ac_init_help" = "recursive"; then
2180 # If there are subdirs, report their specific --help.
2181 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2182 test -d "$ac_dir" ||
2183 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2184 continue
2185 ac_builddir=.
2186
2187 case "$ac_dir" in
2188 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2189 *)
2190 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2191 # A ".." for each directory in $ac_dir_suffix.
2192 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2193 case $ac_top_builddir_sub in
2194 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2195 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2196 esac ;;
2197 esac
2198 ac_abs_top_builddir=$ac_pwd
2199 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2200 # for backward compatibility:
2201 ac_top_builddir=$ac_top_build_prefix
2202
2203 case $srcdir in
2204 .) # We are building in place.
2205 ac_srcdir=.
2206 ac_top_srcdir=$ac_top_builddir_sub
2207 ac_abs_top_srcdir=$ac_pwd ;;
2208 [\\/]* | ?:[\\/]* ) # Absolute name.
2209 ac_srcdir=$srcdir$ac_dir_suffix;
2210 ac_top_srcdir=$srcdir
2211 ac_abs_top_srcdir=$srcdir ;;
2212 *) # Relative name.
2213 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2214 ac_top_srcdir=$ac_top_build_prefix$srcdir
2215 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2216 esac
2217 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2218
2219 cd "$ac_dir" || { ac_status=$?; continue; }
2220 # Check for guested configure.
2221 if test -f "$ac_srcdir/configure.gnu"; then
2222 echo &&
2223 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2224 elif test -f "$ac_srcdir/configure"; then
2225 echo &&
2226 $SHELL "$ac_srcdir/configure" --help=recursive
2227 else
2228 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2229 fi || ac_status=$?
2230 cd "$ac_pwd" || { ac_status=$?; break; }
2231 done
2232 fi
2233
2234 test -n "$ac_init_help" && exit $ac_status
2235 if $ac_init_version; then
2236 cat <<\_ACEOF
2237 configure
2238 generated by GNU Autoconf 2.64
2239
2240 Copyright (C) 2009 Free Software Foundation, Inc.
2241 This configure script is free software; the Free Software Foundation
2242 gives unlimited permission to copy, distribute and modify it.
2243 _ACEOF
2244 exit
2245 fi
2246
2247 ## ------------------------ ##
2248 ## Autoconf initialization. ##
2249 ## ------------------------ ##
2250
2251 # ac_fn_c_try_compile LINENO
2252 # --------------------------
2253 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2254 ac_fn_c_try_compile ()
2255 {
2256 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2257 rm -f conftest.$ac_objext
2258 if { { ac_try="$ac_compile"
2259 case "(($ac_try" in
2260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2261 *) ac_try_echo=$ac_try;;
2262 esac
2263 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2264 $as_echo "$ac_try_echo"; } >&5
2265 (eval "$ac_compile") 2>conftest.err
2266 ac_status=$?
2267 if test -s conftest.err; then
2268 grep -v '^ *+' conftest.err >conftest.er1
2269 cat conftest.er1 >&5
2270 mv -f conftest.er1 conftest.err
2271 fi
2272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2273 test $ac_status = 0; } && {
2274 test -z "$ac_c_werror_flag" ||
2275 test ! -s conftest.err
2276 } && test -s conftest.$ac_objext; then :
2277 ac_retval=0
2278 else
2279 $as_echo "$as_me: failed program was:" >&5
2280 sed 's/^/| /' conftest.$ac_ext >&5
2281
2282 ac_retval=1
2283 fi
2284 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2285 return $ac_retval
2286
2287 } # ac_fn_c_try_compile
2288
2289 # ac_fn_c_try_cpp LINENO
2290 # ----------------------
2291 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2292 ac_fn_c_try_cpp ()
2293 {
2294 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2295 if { { ac_try="$ac_cpp conftest.$ac_ext"
2296 case "(($ac_try" in
2297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2298 *) ac_try_echo=$ac_try;;
2299 esac
2300 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2301 $as_echo "$ac_try_echo"; } >&5
2302 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2303 ac_status=$?
2304 if test -s conftest.err; then
2305 grep -v '^ *+' conftest.err >conftest.er1
2306 cat conftest.er1 >&5
2307 mv -f conftest.er1 conftest.err
2308 fi
2309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2310 test $ac_status = 0; } >/dev/null && {
2311 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2312 test ! -s conftest.err
2313 }; then :
2314 ac_retval=0
2315 else
2316 $as_echo "$as_me: failed program was:" >&5
2317 sed 's/^/| /' conftest.$ac_ext >&5
2318
2319 ac_retval=1
2320 fi
2321 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2322 return $ac_retval
2323
2324 } # ac_fn_c_try_cpp
2325
2326 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2327 # -------------------------------------------------------
2328 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2329 # the include files in INCLUDES and setting the cache variable VAR
2330 # accordingly.
2331 ac_fn_c_check_header_mongrel ()
2332 {
2333 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2334 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2336 $as_echo_n "checking for $2... " >&6; }
2337 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2338 $as_echo_n "(cached) " >&6
2339 fi
2340 eval ac_res=\$$3
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2342 $as_echo "$ac_res" >&6; }
2343 else
2344 # Is the header compilable?
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2346 $as_echo_n "checking $2 usability... " >&6; }
2347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2348 /* end confdefs.h. */
2349 $4
2350 #include <$2>
2351 _ACEOF
2352 if ac_fn_c_try_compile "$LINENO"; then :
2353 ac_header_compiler=yes
2354 else
2355 ac_header_compiler=no
2356 fi
2357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2359 $as_echo "$ac_header_compiler" >&6; }
2360
2361 # Is the header present?
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2363 $as_echo_n "checking $2 presence... " >&6; }
2364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2365 /* end confdefs.h. */
2366 #include <$2>
2367 _ACEOF
2368 if ac_fn_c_try_cpp "$LINENO"; then :
2369 ac_header_preproc=yes
2370 else
2371 ac_header_preproc=no
2372 fi
2373 rm -f conftest.err conftest.$ac_ext
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2375 $as_echo "$ac_header_preproc" >&6; }
2376
2377 # So? What about this header?
2378 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2379 yes:no: )
2380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2381 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2382 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2383 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2384 ;;
2385 no:yes:* )
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2387 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2389 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2391 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2393 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2395 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2396 ;;
2397 esac
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2399 $as_echo_n "checking for $2... " >&6; }
2400 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2401 $as_echo_n "(cached) " >&6
2402 else
2403 eval "$3=\$ac_header_compiler"
2404 fi
2405 eval ac_res=\$$3
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2407 $as_echo "$ac_res" >&6; }
2408 fi
2409 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2410
2411 } # ac_fn_c_check_header_mongrel
2412
2413 # ac_fn_c_try_run LINENO
2414 # ----------------------
2415 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2416 # that executables *can* be run.
2417 ac_fn_c_try_run ()
2418 {
2419 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2420 if { { ac_try="$ac_link"
2421 case "(($ac_try" in
2422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2423 *) ac_try_echo=$ac_try;;
2424 esac
2425 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2426 $as_echo "$ac_try_echo"; } >&5
2427 (eval "$ac_link") 2>&5
2428 ac_status=$?
2429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2430 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2431 { { case "(($ac_try" in
2432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2433 *) ac_try_echo=$ac_try;;
2434 esac
2435 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2436 $as_echo "$ac_try_echo"; } >&5
2437 (eval "$ac_try") 2>&5
2438 ac_status=$?
2439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2440 test $ac_status = 0; }; }; then :
2441 ac_retval=0
2442 else
2443 $as_echo "$as_me: program exited with status $ac_status" >&5
2444 $as_echo "$as_me: failed program was:" >&5
2445 sed 's/^/| /' conftest.$ac_ext >&5
2446
2447 ac_retval=$ac_status
2448 fi
2449 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2450 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2451 return $ac_retval
2452
2453 } # ac_fn_c_try_run
2454
2455 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2456 # -------------------------------------------------------
2457 # Tests whether HEADER exists and can be compiled using the include files in
2458 # INCLUDES, setting the cache variable VAR accordingly.
2459 ac_fn_c_check_header_compile ()
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 $4
2470 #include <$2>
2471 _ACEOF
2472 if ac_fn_c_try_compile "$LINENO"; then :
2473 eval "$3=yes"
2474 else
2475 eval "$3=no"
2476 fi
2477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2478 fi
2479 eval ac_res=\$$3
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2481 $as_echo "$ac_res" >&6; }
2482 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2483
2484 } # ac_fn_c_check_header_compile
2485
2486 # ac_fn_c_try_link LINENO
2487 # -----------------------
2488 # Try to link conftest.$ac_ext, and return whether this succeeded.
2489 ac_fn_c_try_link ()
2490 {
2491 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2492 rm -f conftest.$ac_objext conftest$ac_exeext
2493 if { { ac_try="$ac_link"
2494 case "(($ac_try" in
2495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2496 *) ac_try_echo=$ac_try;;
2497 esac
2498 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2499 $as_echo "$ac_try_echo"; } >&5
2500 (eval "$ac_link") 2>conftest.err
2501 ac_status=$?
2502 if test -s conftest.err; then
2503 grep -v '^ *+' conftest.err >conftest.er1
2504 cat conftest.er1 >&5
2505 mv -f conftest.er1 conftest.err
2506 fi
2507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2508 test $ac_status = 0; } && {
2509 test -z "$ac_c_werror_flag" ||
2510 test ! -s conftest.err
2511 } && test -s conftest$ac_exeext && {
2512 test "$cross_compiling" = yes ||
2513 $as_test_x conftest$ac_exeext
2514 }; then :
2515 ac_retval=0
2516 else
2517 $as_echo "$as_me: failed program was:" >&5
2518 sed 's/^/| /' conftest.$ac_ext >&5
2519
2520 ac_retval=1
2521 fi
2522 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2523 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2524 # interfere with the next link command; also delete a directory that is
2525 # left behind by Apple's compiler. We do this before executing the actions.
2526 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2527 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2528 return $ac_retval
2529
2530 } # ac_fn_c_try_link
2531
2532 # ac_fn_c_check_func LINENO FUNC VAR
2533 # ----------------------------------
2534 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2535 ac_fn_c_check_func ()
2536 {
2537 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2539 $as_echo_n "checking for $2... " >&6; }
2540 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2541 $as_echo_n "(cached) " >&6
2542 else
2543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2544 /* end confdefs.h. */
2545 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2546 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2547 #define $2 innocuous_$2
2548
2549 /* System header to define __stub macros and hopefully few prototypes,
2550 which can conflict with char $2 (); below.
2551 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2552 <limits.h> exists even on freestanding compilers. */
2553
2554 #ifdef __STDC__
2555 # include <limits.h>
2556 #else
2557 # include <assert.h>
2558 #endif
2559
2560 #undef $2
2561
2562 /* Override any GCC internal prototype to avoid an error.
2563 Use char because int might match the return type of a GCC
2564 builtin and then its argument prototype would still apply. */
2565 #ifdef __cplusplus
2566 extern "C"
2567 #endif
2568 char $2 ();
2569 /* The GNU C library defines this for functions which it implements
2570 to always fail with ENOSYS. Some functions are actually named
2571 something starting with __ and the normal name is an alias. */
2572 #if defined __stub_$2 || defined __stub___$2
2573 choke me
2574 #endif
2575
2576 int
2577 main ()
2578 {
2579 return $2 ();
2580 ;
2581 return 0;
2582 }
2583 _ACEOF
2584 if ac_fn_c_try_link "$LINENO"; then :
2585 eval "$3=yes"
2586 else
2587 eval "$3=no"
2588 fi
2589 rm -f core conftest.err conftest.$ac_objext \
2590 conftest$ac_exeext conftest.$ac_ext
2591 fi
2592 eval ac_res=\$$3
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2594 $as_echo "$ac_res" >&6; }
2595 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2596
2597 } # ac_fn_c_check_func
2598
2599 # ac_fn_c_check_decl LINENO SYMBOL VAR
2600 # ------------------------------------
2601 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2602 ac_fn_c_check_decl ()
2603 {
2604 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2606 $as_echo_n "checking whether $2 is declared... " >&6; }
2607 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2608 $as_echo_n "(cached) " >&6
2609 else
2610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2611 /* end confdefs.h. */
2612 $4
2613 int
2614 main ()
2615 {
2616 #ifndef $2
2617 (void) $2;
2618 #endif
2619
2620 ;
2621 return 0;
2622 }
2623 _ACEOF
2624 if ac_fn_c_try_compile "$LINENO"; then :
2625 eval "$3=yes"
2626 else
2627 eval "$3=no"
2628 fi
2629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2630 fi
2631 eval ac_res=\$$3
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2633 $as_echo "$ac_res" >&6; }
2634 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2635
2636 } # ac_fn_c_check_decl
2637
2638 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2639 # --------------------------------------------
2640 # Tries to find the compile-time value of EXPR in a program that includes
2641 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2642 # computed
2643 ac_fn_c_compute_int ()
2644 {
2645 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2646 if test "$cross_compiling" = yes; then
2647 # Depending upon the size, compute the lo and hi bounds.
2648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2649 /* end confdefs.h. */
2650 $4
2651 int
2652 main ()
2653 {
2654 static int test_array [1 - 2 * !(($2) >= 0)];
2655 test_array [0] = 0
2656
2657 ;
2658 return 0;
2659 }
2660 _ACEOF
2661 if ac_fn_c_try_compile "$LINENO"; then :
2662 ac_lo=0 ac_mid=0
2663 while :; do
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; break
2679 else
2680 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2681 if test $ac_lo -le $ac_mid; then
2682 ac_lo= ac_hi=
2683 break
2684 fi
2685 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2686 fi
2687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2688 done
2689 else
2690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2691 /* end confdefs.h. */
2692 $4
2693 int
2694 main ()
2695 {
2696 static int test_array [1 - 2 * !(($2) < 0)];
2697 test_array [0] = 0
2698
2699 ;
2700 return 0;
2701 }
2702 _ACEOF
2703 if ac_fn_c_try_compile "$LINENO"; then :
2704 ac_hi=-1 ac_mid=-1
2705 while :; do
2706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2707 /* end confdefs.h. */
2708 $4
2709 int
2710 main ()
2711 {
2712 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2713 test_array [0] = 0
2714
2715 ;
2716 return 0;
2717 }
2718 _ACEOF
2719 if ac_fn_c_try_compile "$LINENO"; then :
2720 ac_lo=$ac_mid; break
2721 else
2722 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2723 if test $ac_mid -le $ac_hi; then
2724 ac_lo= ac_hi=
2725 break
2726 fi
2727 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2728 fi
2729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2730 done
2731 else
2732 ac_lo= ac_hi=
2733 fi
2734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2735 fi
2736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2737 # Binary search between lo and hi bounds.
2738 while test "x$ac_lo" != "x$ac_hi"; do
2739 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2741 /* end confdefs.h. */
2742 $4
2743 int
2744 main ()
2745 {
2746 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2747 test_array [0] = 0
2748
2749 ;
2750 return 0;
2751 }
2752 _ACEOF
2753 if ac_fn_c_try_compile "$LINENO"; then :
2754 ac_hi=$ac_mid
2755 else
2756 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2757 fi
2758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2759 done
2760 case $ac_lo in #((
2761 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2762 '') ac_retval=1 ;;
2763 esac
2764 else
2765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2766 /* end confdefs.h. */
2767 $4
2768 static long int longval () { return $2; }
2769 static unsigned long int ulongval () { return $2; }
2770 #include <stdio.h>
2771 #include <stdlib.h>
2772 int
2773 main ()
2774 {
2775
2776 FILE *f = fopen ("conftest.val", "w");
2777 if (! f)
2778 return 1;
2779 if (($2) < 0)
2780 {
2781 long int i = longval ();
2782 if (i != ($2))
2783 return 1;
2784 fprintf (f, "%ld", i);
2785 }
2786 else
2787 {
2788 unsigned long int i = ulongval ();
2789 if (i != ($2))
2790 return 1;
2791 fprintf (f, "%lu", i);
2792 }
2793 /* Do not output a trailing newline, as this causes \r\n confusion
2794 on some platforms. */
2795 return ferror (f) || fclose (f) != 0;
2796
2797 ;
2798 return 0;
2799 }
2800 _ACEOF
2801 if ac_fn_c_try_run "$LINENO"; then :
2802 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2803 else
2804 ac_retval=1
2805 fi
2806 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2807 conftest.$ac_objext conftest.beam conftest.$ac_ext
2808 rm -f conftest.val
2809
2810 fi
2811 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2812 return $ac_retval
2813
2814 } # ac_fn_c_compute_int
2815
2816 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2817 # -------------------------------------------
2818 # Tests whether TYPE exists after having included INCLUDES, setting cache
2819 # variable VAR accordingly.
2820 ac_fn_c_check_type ()
2821 {
2822 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2824 $as_echo_n "checking for $2... " >&6; }
2825 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2826 $as_echo_n "(cached) " >&6
2827 else
2828 eval "$3=no"
2829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2830 /* end confdefs.h. */
2831 $4
2832 int
2833 main ()
2834 {
2835 if (sizeof ($2))
2836 return 0;
2837 ;
2838 return 0;
2839 }
2840 _ACEOF
2841 if ac_fn_c_try_compile "$LINENO"; then :
2842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2843 /* end confdefs.h. */
2844 $4
2845 int
2846 main ()
2847 {
2848 if (sizeof (($2)))
2849 return 0;
2850 ;
2851 return 0;
2852 }
2853 _ACEOF
2854 if ac_fn_c_try_compile "$LINENO"; then :
2855
2856 else
2857 eval "$3=yes"
2858 fi
2859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2860 fi
2861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2862 fi
2863 eval ac_res=\$$3
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2865 $as_echo "$ac_res" >&6; }
2866 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2867
2868 } # ac_fn_c_check_type
2869 cat >config.log <<_ACEOF
2870 This file contains any messages produced by compilers while
2871 running configure, to aid debugging if configure makes a mistake.
2872
2873 It was created by $as_me, which was
2874 generated by GNU Autoconf 2.64. Invocation command line was
2875
2876 $ $0 $@
2877
2878 _ACEOF
2879 exec 5>>config.log
2880 {
2881 cat <<_ASUNAME
2882 ## --------- ##
2883 ## Platform. ##
2884 ## --------- ##
2885
2886 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2887 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2888 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2889 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2890 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2891
2892 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2893 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2894
2895 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2896 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2897 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2898 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2899 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2900 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2901 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2902
2903 _ASUNAME
2904
2905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2906 for as_dir in $PATH
2907 do
2908 IFS=$as_save_IFS
2909 test -z "$as_dir" && as_dir=.
2910 $as_echo "PATH: $as_dir"
2911 done
2912 IFS=$as_save_IFS
2913
2914 } >&5
2915
2916 cat >&5 <<_ACEOF
2917
2918
2919 ## ----------- ##
2920 ## Core tests. ##
2921 ## ----------- ##
2922
2923 _ACEOF
2924
2925
2926 # Keep a trace of the command line.
2927 # Strip out --no-create and --no-recursion so they do not pile up.
2928 # Strip out --silent because we don't want to record it for future runs.
2929 # Also quote any args containing shell meta-characters.
2930 # Make two passes to allow for proper duplicate-argument suppression.
2931 ac_configure_args=
2932 ac_configure_args0=
2933 ac_configure_args1=
2934 ac_must_keep_next=false
2935 for ac_pass in 1 2
2936 do
2937 for ac_arg
2938 do
2939 case $ac_arg in
2940 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2941 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2942 | -silent | --silent | --silen | --sile | --sil)
2943 continue ;;
2944 *\'*)
2945 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2946 esac
2947 case $ac_pass in
2948 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2949 2)
2950 as_fn_append ac_configure_args1 " '$ac_arg'"
2951 if test $ac_must_keep_next = true; then
2952 ac_must_keep_next=false # Got value, back to normal.
2953 else
2954 case $ac_arg in
2955 *=* | --config-cache | -C | -disable-* | --disable-* \
2956 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2957 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2958 | -with-* | --with-* | -without-* | --without-* | --x)
2959 case "$ac_configure_args0 " in
2960 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2961 esac
2962 ;;
2963 -* ) ac_must_keep_next=true ;;
2964 esac
2965 fi
2966 as_fn_append ac_configure_args " '$ac_arg'"
2967 ;;
2968 esac
2969 done
2970 done
2971 { ac_configure_args0=; unset ac_configure_args0;}
2972 { ac_configure_args1=; unset ac_configure_args1;}
2973
2974 # When interrupted or exit'd, cleanup temporary files, and complete
2975 # config.log. We remove comments because anyway the quotes in there
2976 # would cause problems or look ugly.
2977 # WARNING: Use '\'' to represent an apostrophe within the trap.
2978 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2979 trap 'exit_status=$?
2980 # Save into config.log some information that might help in debugging.
2981 {
2982 echo
2983
2984 cat <<\_ASBOX
2985 ## ---------------- ##
2986 ## Cache variables. ##
2987 ## ---------------- ##
2988 _ASBOX
2989 echo
2990 # The following way of writing the cache mishandles newlines in values,
2991 (
2992 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2993 eval ac_val=\$$ac_var
2994 case $ac_val in #(
2995 *${as_nl}*)
2996 case $ac_var in #(
2997 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2998 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2999 esac
3000 case $ac_var in #(
3001 _ | IFS | as_nl) ;; #(
3002 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3003 *) { eval $ac_var=; unset $ac_var;} ;;
3004 esac ;;
3005 esac
3006 done
3007 (set) 2>&1 |
3008 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3009 *${as_nl}ac_space=\ *)
3010 sed -n \
3011 "s/'\''/'\''\\\\'\'''\''/g;
3012 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3013 ;; #(
3014 *)
3015 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3016 ;;
3017 esac |
3018 sort
3019 )
3020 echo
3021
3022 cat <<\_ASBOX
3023 ## ----------------- ##
3024 ## Output variables. ##
3025 ## ----------------- ##
3026 _ASBOX
3027 echo
3028 for ac_var in $ac_subst_vars
3029 do
3030 eval ac_val=\$$ac_var
3031 case $ac_val in
3032 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3033 esac
3034 $as_echo "$ac_var='\''$ac_val'\''"
3035 done | sort
3036 echo
3037
3038 if test -n "$ac_subst_files"; then
3039 cat <<\_ASBOX
3040 ## ------------------- ##
3041 ## File substitutions. ##
3042 ## ------------------- ##
3043 _ASBOX
3044 echo
3045 for ac_var in $ac_subst_files
3046 do
3047 eval ac_val=\$$ac_var
3048 case $ac_val in
3049 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3050 esac
3051 $as_echo "$ac_var='\''$ac_val'\''"
3052 done | sort
3053 echo
3054 fi
3055
3056 if test -s confdefs.h; then
3057 cat <<\_ASBOX
3058 ## ----------- ##
3059 ## confdefs.h. ##
3060 ## ----------- ##
3061 _ASBOX
3062 echo
3063 cat confdefs.h
3064 echo
3065 fi
3066 test "$ac_signal" != 0 &&
3067 $as_echo "$as_me: caught signal $ac_signal"
3068 $as_echo "$as_me: exit $exit_status"
3069 } >&5
3070 rm -f core *.core core.conftest.* &&
3071 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3072 exit $exit_status
3073 ' 0
3074 for ac_signal in 1 2 13 15; do
3075 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3076 done
3077 ac_signal=0
3078
3079 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3080 rm -f -r conftest* confdefs.h
3081
3082 $as_echo "/* confdefs.h */" > confdefs.h
3083
3084 # Predefined preprocessor variables.
3085
3086 cat >>confdefs.h <<_ACEOF
3087 #define PACKAGE_NAME "$PACKAGE_NAME"
3088 _ACEOF
3089
3090 cat >>confdefs.h <<_ACEOF
3091 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3092 _ACEOF
3093
3094 cat >>confdefs.h <<_ACEOF
3095 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3096 _ACEOF
3097
3098 cat >>confdefs.h <<_ACEOF
3099 #define PACKAGE_STRING "$PACKAGE_STRING"
3100 _ACEOF
3101
3102 cat >>confdefs.h <<_ACEOF
3103 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3104 _ACEOF
3105
3106 cat >>confdefs.h <<_ACEOF
3107 #define PACKAGE_URL "$PACKAGE_URL"
3108 _ACEOF
3109
3110
3111 # Let the site file select an alternate cache file if it wants to.
3112 # Prefer an explicitly selected file to automatically selected ones.
3113 ac_site_file1=NONE
3114 ac_site_file2=NONE
3115 if test -n "$CONFIG_SITE"; then
3116 ac_site_file1=$CONFIG_SITE
3117 elif test "x$prefix" != xNONE; then
3118 ac_site_file1=$prefix/share/config.site
3119 ac_site_file2=$prefix/etc/config.site
3120 else
3121 ac_site_file1=$ac_default_prefix/share/config.site
3122 ac_site_file2=$ac_default_prefix/etc/config.site
3123 fi
3124 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3125 do
3126 test "x$ac_site_file" = xNONE && continue
3127 if test -r "$ac_site_file"; then
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3129 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3130 sed 's/^/| /' "$ac_site_file" >&5
3131 . "$ac_site_file"
3132 fi
3133 done
3134
3135 if test -r "$cache_file"; then
3136 # Some versions of bash will fail to source /dev/null (special
3137 # files actually), so we avoid doing that.
3138 if test -f "$cache_file"; then
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3140 $as_echo "$as_me: loading cache $cache_file" >&6;}
3141 case $cache_file in
3142 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3143 *) . "./$cache_file";;
3144 esac
3145 fi
3146 else
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3148 $as_echo "$as_me: creating cache $cache_file" >&6;}
3149 >$cache_file
3150 fi
3151
3152 as_fn_append ac_func_list " canonicalize_file_name"
3153 as_fn_append ac_func_list " getcwd"
3154 as_fn_append ac_func_list " readlink"
3155 as_fn_append ac_func_list " realpath"
3156 as_fn_append ac_header_list " sys/param.h"
3157 as_fn_append ac_header_list " dirent.h"
3158 as_fn_append ac_func_list " btowc"
3159 as_fn_append ac_func_list " isblank"
3160 as_fn_append ac_func_list " iswctype"
3161 as_fn_append ac_func_list " mbsrtowcs"
3162 as_fn_append ac_func_list " mempcpy"
3163 as_fn_append ac_func_list " wmemchr"
3164 as_fn_append ac_func_list " wmemcpy"
3165 as_fn_append ac_func_list " wmempcpy"
3166 as_fn_append ac_header_list " wctype.h"
3167 gl_fnmatch_required=GNU
3168 as_fn_append ac_func_list " alarm"
3169 as_fn_append ac_header_list " wchar.h"
3170 as_fn_append ac_header_list " stdint.h"
3171 as_fn_append ac_header_list " inttypes.h"
3172 as_fn_append ac_header_list " unistd.h"
3173 as_fn_append ac_func_list " symlink"
3174 as_fn_append ac_func_list " lstat"
3175 as_fn_append ac_header_list " math.h"
3176 as_fn_append ac_func_list " mbsinit"
3177 as_fn_append ac_func_list " mbrtowc"
3178 as_fn_append ac_header_list " sys/mman.h"
3179 as_fn_append ac_func_list " mprotect"
3180 as_fn_append ac_header_list " sys/stat.h"
3181 as_fn_append ac_header_list " sys/time.h"
3182 as_fn_append ac_header_list " features.h"
3183 as_fn_append ac_func_list " iswcntrl"
3184 # Check that the precious variables saved in the cache have kept the same
3185 # value.
3186 ac_cache_corrupted=false
3187 for ac_var in $ac_precious_vars; do
3188 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3189 eval ac_new_set=\$ac_env_${ac_var}_set
3190 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3191 eval ac_new_val=\$ac_env_${ac_var}_value
3192 case $ac_old_set,$ac_new_set in
3193 set,)
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3195 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3196 ac_cache_corrupted=: ;;
3197 ,set)
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3199 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3200 ac_cache_corrupted=: ;;
3201 ,);;
3202 *)
3203 if test "x$ac_old_val" != "x$ac_new_val"; then
3204 # differences in whitespace do not lead to failure.
3205 ac_old_val_w=`echo x $ac_old_val`
3206 ac_new_val_w=`echo x $ac_new_val`
3207 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3209 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3210 ac_cache_corrupted=:
3211 else
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3213 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3214 eval $ac_var=\$ac_old_val
3215 fi
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3217 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3219 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3220 fi;;
3221 esac
3222 # Pass precious variables to config.status.
3223 if test "$ac_new_set" = set; then
3224 case $ac_new_val in
3225 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3226 *) ac_arg=$ac_var=$ac_new_val ;;
3227 esac
3228 case " $ac_configure_args " in
3229 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3230 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3231 esac
3232 fi
3233 done
3234 if $ac_cache_corrupted; then
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3236 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3238 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3239 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3240 fi
3241 ## -------------------- ##
3242 ## Main body of script. ##
3243 ## -------------------- ##
3244
3245 ac_ext=c
3246 ac_cpp='$CPP $CPPFLAGS'
3247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3250
3251
3252 ac_config_headers="$ac_config_headers config.h:config.in"
3253
3254
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3256 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3257 # Check whether --enable-maintainer-mode was given.
3258 if test "${enable_maintainer_mode+set}" = set; then :
3259 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3260 else
3261 USE_MAINTAINER_MODE=no
3262 fi
3263
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3265 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3266 if test $USE_MAINTAINER_MODE = yes; then
3267 MAINTAINER_MODE_TRUE=
3268 MAINTAINER_MODE_FALSE='#'
3269 else
3270 MAINTAINER_MODE_TRUE='#'
3271 MAINTAINER_MODE_FALSE=
3272 fi
3273
3274 MAINT=$MAINTAINER_MODE_TRUE
3275
3276
3277
3278 ac_ext=c
3279 ac_cpp='$CPP $CPPFLAGS'
3280 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3281 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3282 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3283 if test -n "$ac_tool_prefix"; then
3284 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3285 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3287 $as_echo_n "checking for $ac_word... " >&6; }
3288 if test "${ac_cv_prog_CC+set}" = set; then :
3289 $as_echo_n "(cached) " >&6
3290 else
3291 if test -n "$CC"; then
3292 ac_cv_prog_CC="$CC" # Let the user override the test.
3293 else
3294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3295 for as_dir in $PATH
3296 do
3297 IFS=$as_save_IFS
3298 test -z "$as_dir" && as_dir=.
3299 for ac_exec_ext in '' $ac_executable_extensions; do
3300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3301 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3303 break 2
3304 fi
3305 done
3306 done
3307 IFS=$as_save_IFS
3308
3309 fi
3310 fi
3311 CC=$ac_cv_prog_CC
3312 if test -n "$CC"; then
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3314 $as_echo "$CC" >&6; }
3315 else
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3317 $as_echo "no" >&6; }
3318 fi
3319
3320
3321 fi
3322 if test -z "$ac_cv_prog_CC"; then
3323 ac_ct_CC=$CC
3324 # Extract the first word of "gcc", so it can be a program name with args.
3325 set dummy gcc; ac_word=$2
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3327 $as_echo_n "checking for $ac_word... " >&6; }
3328 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3329 $as_echo_n "(cached) " >&6
3330 else
3331 if test -n "$ac_ct_CC"; then
3332 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3333 else
3334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3335 for as_dir in $PATH
3336 do
3337 IFS=$as_save_IFS
3338 test -z "$as_dir" && as_dir=.
3339 for ac_exec_ext in '' $ac_executable_extensions; do
3340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3341 ac_cv_prog_ac_ct_CC="gcc"
3342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3343 break 2
3344 fi
3345 done
3346 done
3347 IFS=$as_save_IFS
3348
3349 fi
3350 fi
3351 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3352 if test -n "$ac_ct_CC"; then
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3354 $as_echo "$ac_ct_CC" >&6; }
3355 else
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3357 $as_echo "no" >&6; }
3358 fi
3359
3360 if test "x$ac_ct_CC" = x; then
3361 CC=""
3362 else
3363 case $cross_compiling:$ac_tool_warned in
3364 yes:)
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3366 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3367 ac_tool_warned=yes ;;
3368 esac
3369 CC=$ac_ct_CC
3370 fi
3371 else
3372 CC="$ac_cv_prog_CC"
3373 fi
3374
3375 if test -z "$CC"; then
3376 if test -n "$ac_tool_prefix"; then
3377 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3378 set dummy ${ac_tool_prefix}cc; ac_word=$2
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3380 $as_echo_n "checking for $ac_word... " >&6; }
3381 if test "${ac_cv_prog_CC+set}" = set; then :
3382 $as_echo_n "(cached) " >&6
3383 else
3384 if test -n "$CC"; then
3385 ac_cv_prog_CC="$CC" # Let the user override the test.
3386 else
3387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3388 for as_dir in $PATH
3389 do
3390 IFS=$as_save_IFS
3391 test -z "$as_dir" && as_dir=.
3392 for ac_exec_ext in '' $ac_executable_extensions; do
3393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3394 ac_cv_prog_CC="${ac_tool_prefix}cc"
3395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3396 break 2
3397 fi
3398 done
3399 done
3400 IFS=$as_save_IFS
3401
3402 fi
3403 fi
3404 CC=$ac_cv_prog_CC
3405 if test -n "$CC"; then
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3407 $as_echo "$CC" >&6; }
3408 else
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3410 $as_echo "no" >&6; }
3411 fi
3412
3413
3414 fi
3415 fi
3416 if test -z "$CC"; then
3417 # Extract the first word of "cc", so it can be a program name with args.
3418 set dummy cc; ac_word=$2
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3420 $as_echo_n "checking for $ac_word... " >&6; }
3421 if test "${ac_cv_prog_CC+set}" = set; then :
3422 $as_echo_n "(cached) " >&6
3423 else
3424 if test -n "$CC"; then
3425 ac_cv_prog_CC="$CC" # Let the user override the test.
3426 else
3427 ac_prog_rejected=no
3428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3429 for as_dir in $PATH
3430 do
3431 IFS=$as_save_IFS
3432 test -z "$as_dir" && as_dir=.
3433 for ac_exec_ext in '' $ac_executable_extensions; do
3434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3435 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3436 ac_prog_rejected=yes
3437 continue
3438 fi
3439 ac_cv_prog_CC="cc"
3440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3441 break 2
3442 fi
3443 done
3444 done
3445 IFS=$as_save_IFS
3446
3447 if test $ac_prog_rejected = yes; then
3448 # We found a bogon in the path, so make sure we never use it.
3449 set dummy $ac_cv_prog_CC
3450 shift
3451 if test $# != 0; then
3452 # We chose a different compiler from the bogus one.
3453 # However, it has the same basename, so the bogon will be chosen
3454 # first if we set CC to just the basename; use the full file name.
3455 shift
3456 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3457 fi
3458 fi
3459 fi
3460 fi
3461 CC=$ac_cv_prog_CC
3462 if test -n "$CC"; then
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3464 $as_echo "$CC" >&6; }
3465 else
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3467 $as_echo "no" >&6; }
3468 fi
3469
3470
3471 fi
3472 if test -z "$CC"; then
3473 if test -n "$ac_tool_prefix"; then
3474 for ac_prog in cl.exe
3475 do
3476 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3477 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3479 $as_echo_n "checking for $ac_word... " >&6; }
3480 if test "${ac_cv_prog_CC+set}" = set; then :
3481 $as_echo_n "(cached) " >&6
3482 else
3483 if test -n "$CC"; then
3484 ac_cv_prog_CC="$CC" # Let the user override the test.
3485 else
3486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3487 for as_dir in $PATH
3488 do
3489 IFS=$as_save_IFS
3490 test -z "$as_dir" && as_dir=.
3491 for ac_exec_ext in '' $ac_executable_extensions; do
3492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3493 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3495 break 2
3496 fi
3497 done
3498 done
3499 IFS=$as_save_IFS
3500
3501 fi
3502 fi
3503 CC=$ac_cv_prog_CC
3504 if test -n "$CC"; then
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3506 $as_echo "$CC" >&6; }
3507 else
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3509 $as_echo "no" >&6; }
3510 fi
3511
3512
3513 test -n "$CC" && break
3514 done
3515 fi
3516 if test -z "$CC"; then
3517 ac_ct_CC=$CC
3518 for ac_prog in cl.exe
3519 do
3520 # Extract the first word of "$ac_prog", so it can be a program name with args.
3521 set dummy $ac_prog; ac_word=$2
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3523 $as_echo_n "checking for $ac_word... " >&6; }
3524 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3525 $as_echo_n "(cached) " >&6
3526 else
3527 if test -n "$ac_ct_CC"; then
3528 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3529 else
3530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3531 for as_dir in $PATH
3532 do
3533 IFS=$as_save_IFS
3534 test -z "$as_dir" && as_dir=.
3535 for ac_exec_ext in '' $ac_executable_extensions; do
3536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3537 ac_cv_prog_ac_ct_CC="$ac_prog"
3538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3539 break 2
3540 fi
3541 done
3542 done
3543 IFS=$as_save_IFS
3544
3545 fi
3546 fi
3547 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3548 if test -n "$ac_ct_CC"; then
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3550 $as_echo "$ac_ct_CC" >&6; }
3551 else
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3553 $as_echo "no" >&6; }
3554 fi
3555
3556
3557 test -n "$ac_ct_CC" && break
3558 done
3559
3560 if test "x$ac_ct_CC" = x; then
3561 CC=""
3562 else
3563 case $cross_compiling:$ac_tool_warned in
3564 yes:)
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3566 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3567 ac_tool_warned=yes ;;
3568 esac
3569 CC=$ac_ct_CC
3570 fi
3571 fi
3572
3573 fi
3574
3575
3576 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3577 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3578 as_fn_error "no acceptable C compiler found in \$PATH
3579 See \`config.log' for more details." "$LINENO" 5; }
3580
3581 # Provide some information about the compiler.
3582 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3583 set X $ac_compile
3584 ac_compiler=$2
3585 for ac_option in --version -v -V -qversion; do
3586 { { ac_try="$ac_compiler $ac_option >&5"
3587 case "(($ac_try" in
3588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3589 *) ac_try_echo=$ac_try;;
3590 esac
3591 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3592 $as_echo "$ac_try_echo"; } >&5
3593 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3594 ac_status=$?
3595 if test -s conftest.err; then
3596 sed '10a\
3597 ... rest of stderr output deleted ...
3598 10q' conftest.err >conftest.er1
3599 cat conftest.er1 >&5
3600 rm -f conftest.er1 conftest.err
3601 fi
3602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3603 test $ac_status = 0; }
3604 done
3605
3606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3607 /* end confdefs.h. */
3608 #include <stdio.h>
3609 int
3610 main ()
3611 {
3612 FILE *f = fopen ("conftest.out", "w");
3613 return ferror (f) || fclose (f) != 0;
3614
3615 ;
3616 return 0;
3617 }
3618 _ACEOF
3619 ac_clean_files_save=$ac_clean_files
3620 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3621 # Try to create an executable without -o first, disregard a.out.
3622 # It will help us diagnose broken compilers, and finding out an intuition
3623 # of exeext.
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3625 $as_echo_n "checking for C compiler default output file name... " >&6; }
3626 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3627
3628 # The possible output files:
3629 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3630
3631 ac_rmfiles=
3632 for ac_file in $ac_files
3633 do
3634 case $ac_file in
3635 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3636 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3637 esac
3638 done
3639 rm -f $ac_rmfiles
3640
3641 if { { ac_try="$ac_link_default"
3642 case "(($ac_try" in
3643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3644 *) ac_try_echo=$ac_try;;
3645 esac
3646 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3647 $as_echo "$ac_try_echo"; } >&5
3648 (eval "$ac_link_default") 2>&5
3649 ac_status=$?
3650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3651 test $ac_status = 0; }; then :
3652 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3653 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3654 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3655 # so that the user can short-circuit this test for compilers unknown to
3656 # Autoconf.
3657 for ac_file in $ac_files ''
3658 do
3659 test -f "$ac_file" || continue
3660 case $ac_file in
3661 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3662 ;;
3663 [ab].out )
3664 # We found the default executable, but exeext='' is most
3665 # certainly right.
3666 break;;
3667 *.* )
3668 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3669 then :; else
3670 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3671 fi
3672 # We set ac_cv_exeext here because the later test for it is not
3673 # safe: cross compilers may not add the suffix if given an `-o'
3674 # argument, so we may need to know it at that point already.
3675 # Even if this section looks crufty: it has the advantage of
3676 # actually working.
3677 break;;
3678 * )
3679 break;;
3680 esac
3681 done
3682 test "$ac_cv_exeext" = no && ac_cv_exeext=
3683
3684 else
3685 ac_file=''
3686 fi
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3688 $as_echo "$ac_file" >&6; }
3689 if test -z "$ac_file"; then :
3690 $as_echo "$as_me: failed program was:" >&5
3691 sed 's/^/| /' conftest.$ac_ext >&5
3692
3693 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3694 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3695 { as_fn_set_status 77
3696 as_fn_error "C compiler cannot create executables
3697 See \`config.log' for more details." "$LINENO" 5; }; }
3698 fi
3699 ac_exeext=$ac_cv_exeext
3700
3701 # Check that the compiler produces executables we can run. If not, either
3702 # the compiler is broken, or we cross compile.
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3704 $as_echo_n "checking whether the C compiler works... " >&6; }
3705 # If not cross compiling, check that we can run a simple program.
3706 if test "$cross_compiling" != yes; then
3707 if { ac_try='./$ac_file'
3708 { { case "(($ac_try" in
3709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3710 *) ac_try_echo=$ac_try;;
3711 esac
3712 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3713 $as_echo "$ac_try_echo"; } >&5
3714 (eval "$ac_try") 2>&5
3715 ac_status=$?
3716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3717 test $ac_status = 0; }; }; then
3718 cross_compiling=no
3719 else
3720 if test "$cross_compiling" = maybe; then
3721 cross_compiling=yes
3722 else
3723 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3724 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3725 as_fn_error "cannot run C compiled programs.
3726 If you meant to cross compile, use \`--host'.
3727 See \`config.log' for more details." "$LINENO" 5; }
3728 fi
3729 fi
3730 fi
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3732 $as_echo "yes" >&6; }
3733
3734 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3735 ac_clean_files=$ac_clean_files_save
3736 # Check that the compiler produces executables we can run. If not, either
3737 # the compiler is broken, or we cross compile.
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3739 $as_echo_n "checking whether we are cross compiling... " >&6; }
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3741 $as_echo "$cross_compiling" >&6; }
3742
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3744 $as_echo_n "checking for suffix of executables... " >&6; }
3745 if { { ac_try="$ac_link"
3746 case "(($ac_try" in
3747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3748 *) ac_try_echo=$ac_try;;
3749 esac
3750 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3751 $as_echo "$ac_try_echo"; } >&5
3752 (eval "$ac_link") 2>&5
3753 ac_status=$?
3754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3755 test $ac_status = 0; }; then :
3756 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3757 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3758 # work properly (i.e., refer to `conftest.exe'), while it won't with
3759 # `rm'.
3760 for ac_file in conftest.exe conftest conftest.*; do
3761 test -f "$ac_file" || continue
3762 case $ac_file in
3763 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3764 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3765 break;;
3766 * ) break;;
3767 esac
3768 done
3769 else
3770 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3771 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3772 as_fn_error "cannot compute suffix of executables: cannot compile and link
3773 See \`config.log' for more details." "$LINENO" 5; }
3774 fi
3775 rm -f conftest$ac_cv_exeext
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3777 $as_echo "$ac_cv_exeext" >&6; }
3778
3779 rm -f conftest.$ac_ext
3780 EXEEXT=$ac_cv_exeext
3781 ac_exeext=$EXEEXT
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3783 $as_echo_n "checking for suffix of object files... " >&6; }
3784 if test "${ac_cv_objext+set}" = set; then :
3785 $as_echo_n "(cached) " >&6
3786 else
3787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3788 /* end confdefs.h. */
3789
3790 int
3791 main ()
3792 {
3793
3794 ;
3795 return 0;
3796 }
3797 _ACEOF
3798 rm -f conftest.o conftest.obj
3799 if { { ac_try="$ac_compile"
3800 case "(($ac_try" in
3801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3802 *) ac_try_echo=$ac_try;;
3803 esac
3804 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3805 $as_echo "$ac_try_echo"; } >&5
3806 (eval "$ac_compile") 2>&5
3807 ac_status=$?
3808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3809 test $ac_status = 0; }; then :
3810 for ac_file in conftest.o conftest.obj conftest.*; do
3811 test -f "$ac_file" || continue;
3812 case $ac_file in
3813 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3814 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3815 break;;
3816 esac
3817 done
3818 else
3819 $as_echo "$as_me: failed program was:" >&5
3820 sed 's/^/| /' conftest.$ac_ext >&5
3821
3822 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3823 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3824 as_fn_error "cannot compute suffix of object files: cannot compile
3825 See \`config.log' for more details." "$LINENO" 5; }
3826 fi
3827 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3828 fi
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3830 $as_echo "$ac_cv_objext" >&6; }
3831 OBJEXT=$ac_cv_objext
3832 ac_objext=$OBJEXT
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3834 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3835 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3836 $as_echo_n "(cached) " >&6
3837 else
3838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3839 /* end confdefs.h. */
3840
3841 int
3842 main ()
3843 {
3844 #ifndef __GNUC__
3845 choke me
3846 #endif
3847
3848 ;
3849 return 0;
3850 }
3851 _ACEOF
3852 if ac_fn_c_try_compile "$LINENO"; then :
3853 ac_compiler_gnu=yes
3854 else
3855 ac_compiler_gnu=no
3856 fi
3857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3858 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3859
3860 fi
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3862 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3863 if test $ac_compiler_gnu = yes; then
3864 GCC=yes
3865 else
3866 GCC=
3867 fi
3868 ac_test_CFLAGS=${CFLAGS+set}
3869 ac_save_CFLAGS=$CFLAGS
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3871 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3872 if test "${ac_cv_prog_cc_g+set}" = set; then :
3873 $as_echo_n "(cached) " >&6
3874 else
3875 ac_save_c_werror_flag=$ac_c_werror_flag
3876 ac_c_werror_flag=yes
3877 ac_cv_prog_cc_g=no
3878 CFLAGS="-g"
3879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3880 /* end confdefs.h. */
3881
3882 int
3883 main ()
3884 {
3885
3886 ;
3887 return 0;
3888 }
3889 _ACEOF
3890 if ac_fn_c_try_compile "$LINENO"; then :
3891 ac_cv_prog_cc_g=yes
3892 else
3893 CFLAGS=""
3894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3895 /* end confdefs.h. */
3896
3897 int
3898 main ()
3899 {
3900
3901 ;
3902 return 0;
3903 }
3904 _ACEOF
3905 if ac_fn_c_try_compile "$LINENO"; then :
3906
3907 else
3908 ac_c_werror_flag=$ac_save_c_werror_flag
3909 CFLAGS="-g"
3910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3911 /* end confdefs.h. */
3912
3913 int
3914 main ()
3915 {
3916
3917 ;
3918 return 0;
3919 }
3920 _ACEOF
3921 if ac_fn_c_try_compile "$LINENO"; then :
3922 ac_cv_prog_cc_g=yes
3923 fi
3924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3925 fi
3926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3927 fi
3928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3929 ac_c_werror_flag=$ac_save_c_werror_flag
3930 fi
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3932 $as_echo "$ac_cv_prog_cc_g" >&6; }
3933 if test "$ac_test_CFLAGS" = set; then
3934 CFLAGS=$ac_save_CFLAGS
3935 elif test $ac_cv_prog_cc_g = yes; then
3936 if test "$GCC" = yes; then
3937 CFLAGS="-g -O2"
3938 else
3939 CFLAGS="-g"
3940 fi
3941 else
3942 if test "$GCC" = yes; then
3943 CFLAGS="-O2"
3944 else
3945 CFLAGS=
3946 fi
3947 fi
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3949 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3950 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3951 $as_echo_n "(cached) " >&6
3952 else
3953 ac_cv_prog_cc_c89=no
3954 ac_save_CC=$CC
3955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3956 /* end confdefs.h. */
3957 #include <stdarg.h>
3958 #include <stdio.h>
3959 #include <sys/types.h>
3960 #include <sys/stat.h>
3961 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3962 struct buf { int x; };
3963 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3964 static char *e (p, i)
3965 char **p;
3966 int i;
3967 {
3968 return p[i];
3969 }
3970 static char *f (char * (*g) (char **, int), char **p, ...)
3971 {
3972 char *s;
3973 va_list v;
3974 va_start (v,p);
3975 s = g (p, va_arg (v,int));
3976 va_end (v);
3977 return s;
3978 }
3979
3980 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3981 function prototypes and stuff, but not '\xHH' hex character constants.
3982 These don't provoke an error unfortunately, instead are silently treated
3983 as 'x'. The following induces an error, until -std is added to get
3984 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3985 array size at least. It's necessary to write '\x00'==0 to get something
3986 that's true only with -std. */
3987 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3988
3989 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3990 inside strings and character constants. */
3991 #define FOO(x) 'x'
3992 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3993
3994 int test (int i, double x);
3995 struct s1 {int (*f) (int a);};
3996 struct s2 {int (*f) (double a);};
3997 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3998 int argc;
3999 char **argv;
4000 int
4001 main ()
4002 {
4003 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4004 ;
4005 return 0;
4006 }
4007 _ACEOF
4008 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4009 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4010 do
4011 CC="$ac_save_CC $ac_arg"
4012 if ac_fn_c_try_compile "$LINENO"; then :
4013 ac_cv_prog_cc_c89=$ac_arg
4014 fi
4015 rm -f core conftest.err conftest.$ac_objext
4016 test "x$ac_cv_prog_cc_c89" != "xno" && break
4017 done
4018 rm -f conftest.$ac_ext
4019 CC=$ac_save_CC
4020
4021 fi
4022 # AC_CACHE_VAL
4023 case "x$ac_cv_prog_cc_c89" in
4024 x)
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4026 $as_echo "none needed" >&6; } ;;
4027 xno)
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4029 $as_echo "unsupported" >&6; } ;;
4030 *)
4031 CC="$CC $ac_cv_prog_cc_c89"
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4033 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4034 esac
4035 if test "x$ac_cv_prog_cc_c89" != xno; then :
4036
4037 fi
4038
4039 ac_ext=c
4040 ac_cpp='$CPP $CPPFLAGS'
4041 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4042 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4043 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4044
4045 ac_aux_dir=
4046 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4047 for ac_t in install-sh install.sh shtool; do
4048 if test -f "$ac_dir/$ac_t"; then
4049 ac_aux_dir=$ac_dir
4050 ac_install_sh="$ac_aux_dir/$ac_t -c"
4051 break 2
4052 fi
4053 done
4054 done
4055 if test -z "$ac_aux_dir"; then
4056 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4057 fi
4058
4059 # These three variables are undocumented and unsupported,
4060 # and are intended to be withdrawn in a future Autoconf release.
4061 # They can cause serious problems if a builder's source tree is in a directory
4062 # whose full name contains unusual characters.
4063 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4064 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4065 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4066
4067
4068 # Make sure we can run config.sub.
4069 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4070 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4071
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4073 $as_echo_n "checking build system type... " >&6; }
4074 if test "${ac_cv_build+set}" = set; then :
4075 $as_echo_n "(cached) " >&6
4076 else
4077 ac_build_alias=$build_alias
4078 test "x$ac_build_alias" = x &&
4079 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4080 test "x$ac_build_alias" = x &&
4081 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4082 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4083 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4084
4085 fi
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4087 $as_echo "$ac_cv_build" >&6; }
4088 case $ac_cv_build in
4089 *-*-*) ;;
4090 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4091 esac
4092 build=$ac_cv_build
4093 ac_save_IFS=$IFS; IFS='-'
4094 set x $ac_cv_build
4095 shift
4096 build_cpu=$1
4097 build_vendor=$2
4098 shift; shift
4099 # Remember, the first character of IFS is used to create $*,
4100 # except with old shells:
4101 build_os=$*
4102 IFS=$ac_save_IFS
4103 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4104
4105
4106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4107 $as_echo_n "checking host system type... " >&6; }
4108 if test "${ac_cv_host+set}" = set; then :
4109 $as_echo_n "(cached) " >&6
4110 else
4111 if test "x$host_alias" = x; then
4112 ac_cv_host=$ac_cv_build
4113 else
4114 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4115 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4116 fi
4117
4118 fi
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4120 $as_echo "$ac_cv_host" >&6; }
4121 case $ac_cv_host in
4122 *-*-*) ;;
4123 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4124 esac
4125 host=$ac_cv_host
4126 ac_save_IFS=$IFS; IFS='-'
4127 set x $ac_cv_host
4128 shift
4129 host_cpu=$1
4130 host_vendor=$2
4131 shift; shift
4132 # Remember, the first character of IFS is used to create $*,
4133 # except with old shells:
4134 host_os=$*
4135 IFS=$ac_save_IFS
4136 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4137
4138
4139
4140 ac_ext=c
4141 ac_cpp='$CPP $CPPFLAGS'
4142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4146 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4147 # On Suns, sometimes $CPP names a directory.
4148 if test -n "$CPP" && test -d "$CPP"; then
4149 CPP=
4150 fi
4151 if test -z "$CPP"; then
4152 if test "${ac_cv_prog_CPP+set}" = set; then :
4153 $as_echo_n "(cached) " >&6
4154 else
4155 # Double quotes because CPP needs to be expanded
4156 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4157 do
4158 ac_preproc_ok=false
4159 for ac_c_preproc_warn_flag in '' yes
4160 do
4161 # Use a header file that comes with gcc, so configuring glibc
4162 # with a fresh cross-compiler works.
4163 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4164 # <limits.h> exists even on freestanding compilers.
4165 # On the NeXT, cc -E runs the code through the compiler's parser,
4166 # not just through cpp. "Syntax error" is here to catch this case.
4167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4168 /* end confdefs.h. */
4169 #ifdef __STDC__
4170 # include <limits.h>
4171 #else
4172 # include <assert.h>
4173 #endif
4174 Syntax error
4175 _ACEOF
4176 if ac_fn_c_try_cpp "$LINENO"; then :
4177
4178 else
4179 # Broken: fails on valid input.
4180 continue
4181 fi
4182 rm -f conftest.err conftest.$ac_ext
4183
4184 # OK, works on sane cases. Now check whether nonexistent headers
4185 # can be detected and how.
4186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4187 /* end confdefs.h. */
4188 #include <ac_nonexistent.h>
4189 _ACEOF
4190 if ac_fn_c_try_cpp "$LINENO"; then :
4191 # Broken: success on invalid input.
4192 continue
4193 else
4194 # Passes both tests.
4195 ac_preproc_ok=:
4196 break
4197 fi
4198 rm -f conftest.err conftest.$ac_ext
4199
4200 done
4201 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4202 rm -f conftest.err conftest.$ac_ext
4203 if $ac_preproc_ok; then :
4204 break
4205 fi
4206
4207 done
4208 ac_cv_prog_CPP=$CPP
4209
4210 fi
4211 CPP=$ac_cv_prog_CPP
4212 else
4213 ac_cv_prog_CPP=$CPP
4214 fi
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4216 $as_echo "$CPP" >&6; }
4217 ac_preproc_ok=false
4218 for ac_c_preproc_warn_flag in '' yes
4219 do
4220 # Use a header file that comes with gcc, so configuring glibc
4221 # with a fresh cross-compiler works.
4222 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4223 # <limits.h> exists even on freestanding compilers.
4224 # On the NeXT, cc -E runs the code through the compiler's parser,
4225 # not just through cpp. "Syntax error" is here to catch this case.
4226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4227 /* end confdefs.h. */
4228 #ifdef __STDC__
4229 # include <limits.h>
4230 #else
4231 # include <assert.h>
4232 #endif
4233 Syntax error
4234 _ACEOF
4235 if ac_fn_c_try_cpp "$LINENO"; then :
4236
4237 else
4238 # Broken: fails on valid input.
4239 continue
4240 fi
4241 rm -f conftest.err conftest.$ac_ext
4242
4243 # OK, works on sane cases. Now check whether nonexistent headers
4244 # can be detected and how.
4245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4246 /* end confdefs.h. */
4247 #include <ac_nonexistent.h>
4248 _ACEOF
4249 if ac_fn_c_try_cpp "$LINENO"; then :
4250 # Broken: success on invalid input.
4251 continue
4252 else
4253 # Passes both tests.
4254 ac_preproc_ok=:
4255 break
4256 fi
4257 rm -f conftest.err conftest.$ac_ext
4258
4259 done
4260 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4261 rm -f conftest.err conftest.$ac_ext
4262 if $ac_preproc_ok; then :
4263
4264 else
4265 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4266 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4267 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4268 See \`config.log' for more details." "$LINENO" 5; }
4269 fi
4270
4271 ac_ext=c
4272 ac_cpp='$CPP $CPPFLAGS'
4273 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4274 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4275 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4276
4277
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4279 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4280 if test "${ac_cv_path_GREP+set}" = set; then :
4281 $as_echo_n "(cached) " >&6
4282 else
4283 if test -z "$GREP"; then
4284 ac_path_GREP_found=false
4285 # Loop through the user's path and test for each of PROGNAME-LIST
4286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4287 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4288 do
4289 IFS=$as_save_IFS
4290 test -z "$as_dir" && as_dir=.
4291 for ac_prog in grep ggrep; do
4292 for ac_exec_ext in '' $ac_executable_extensions; do
4293 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4294 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4295 # Check for GNU ac_path_GREP and select it if it is found.
4296 # Check for GNU $ac_path_GREP
4297 case `"$ac_path_GREP" --version 2>&1` in
4298 *GNU*)
4299 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4300 *)
4301 ac_count=0
4302 $as_echo_n 0123456789 >"conftest.in"
4303 while :
4304 do
4305 cat "conftest.in" "conftest.in" >"conftest.tmp"
4306 mv "conftest.tmp" "conftest.in"
4307 cp "conftest.in" "conftest.nl"
4308 $as_echo 'GREP' >> "conftest.nl"
4309 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4310 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4311 as_fn_arith $ac_count + 1 && ac_count=$as_val
4312 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4313 # Best one so far, save it but keep looking for a better one
4314 ac_cv_path_GREP="$ac_path_GREP"
4315 ac_path_GREP_max=$ac_count
4316 fi
4317 # 10*(2^10) chars as input seems more than enough
4318 test $ac_count -gt 10 && break
4319 done
4320 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4321 esac
4322
4323 $ac_path_GREP_found && break 3
4324 done
4325 done
4326 done
4327 IFS=$as_save_IFS
4328 if test -z "$ac_cv_path_GREP"; then
4329 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4330 fi
4331 else
4332 ac_cv_path_GREP=$GREP
4333 fi
4334
4335 fi
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4337 $as_echo "$ac_cv_path_GREP" >&6; }
4338 GREP="$ac_cv_path_GREP"
4339
4340
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4342 $as_echo_n "checking for egrep... " >&6; }
4343 if test "${ac_cv_path_EGREP+set}" = set; then :
4344 $as_echo_n "(cached) " >&6
4345 else
4346 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4347 then ac_cv_path_EGREP="$GREP -E"
4348 else
4349 if test -z "$EGREP"; then
4350 ac_path_EGREP_found=false
4351 # Loop through the user's path and test for each of PROGNAME-LIST
4352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4353 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4354 do
4355 IFS=$as_save_IFS
4356 test -z "$as_dir" && as_dir=.
4357 for ac_prog in egrep; do
4358 for ac_exec_ext in '' $ac_executable_extensions; do
4359 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4360 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4361 # Check for GNU ac_path_EGREP and select it if it is found.
4362 # Check for GNU $ac_path_EGREP
4363 case `"$ac_path_EGREP" --version 2>&1` in
4364 *GNU*)
4365 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4366 *)
4367 ac_count=0
4368 $as_echo_n 0123456789 >"conftest.in"
4369 while :
4370 do
4371 cat "conftest.in" "conftest.in" >"conftest.tmp"
4372 mv "conftest.tmp" "conftest.in"
4373 cp "conftest.in" "conftest.nl"
4374 $as_echo 'EGREP' >> "conftest.nl"
4375 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4376 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4377 as_fn_arith $ac_count + 1 && ac_count=$as_val
4378 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4379 # Best one so far, save it but keep looking for a better one
4380 ac_cv_path_EGREP="$ac_path_EGREP"
4381 ac_path_EGREP_max=$ac_count
4382 fi
4383 # 10*(2^10) chars as input seems more than enough
4384 test $ac_count -gt 10 && break
4385 done
4386 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4387 esac
4388
4389 $ac_path_EGREP_found && break 3
4390 done
4391 done
4392 done
4393 IFS=$as_save_IFS
4394 if test -z "$ac_cv_path_EGREP"; then
4395 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4396 fi
4397 else
4398 ac_cv_path_EGREP=$EGREP
4399 fi
4400
4401 fi
4402 fi
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4404 $as_echo "$ac_cv_path_EGREP" >&6; }
4405 EGREP="$ac_cv_path_EGREP"
4406
4407
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4409 $as_echo_n "checking for ANSI C header files... " >&6; }
4410 if test "${ac_cv_header_stdc+set}" = set; then :
4411 $as_echo_n "(cached) " >&6
4412 else
4413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4414 /* end confdefs.h. */
4415 #include <stdlib.h>
4416 #include <stdarg.h>
4417 #include <string.h>
4418 #include <float.h>
4419
4420 int
4421 main ()
4422 {
4423
4424 ;
4425 return 0;
4426 }
4427 _ACEOF
4428 if ac_fn_c_try_compile "$LINENO"; then :
4429 ac_cv_header_stdc=yes
4430 else
4431 ac_cv_header_stdc=no
4432 fi
4433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4434
4435 if test $ac_cv_header_stdc = yes; then
4436 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4438 /* end confdefs.h. */
4439 #include <string.h>
4440
4441 _ACEOF
4442 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4443 $EGREP "memchr" >/dev/null 2>&1; then :
4444
4445 else
4446 ac_cv_header_stdc=no
4447 fi
4448 rm -f conftest*
4449
4450 fi
4451
4452 if test $ac_cv_header_stdc = yes; then
4453 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4455 /* end confdefs.h. */
4456 #include <stdlib.h>
4457
4458 _ACEOF
4459 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4460 $EGREP "free" >/dev/null 2>&1; then :
4461
4462 else
4463 ac_cv_header_stdc=no
4464 fi
4465 rm -f conftest*
4466
4467 fi
4468
4469 if test $ac_cv_header_stdc = yes; then
4470 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4471 if test "$cross_compiling" = yes; then :
4472 :
4473 else
4474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4475 /* end confdefs.h. */
4476 #include <ctype.h>
4477 #include <stdlib.h>
4478 #if ((' ' & 0x0FF) == 0x020)
4479 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4480 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4481 #else
4482 # define ISLOWER(c) \
4483 (('a' <= (c) && (c) <= 'i') \
4484 || ('j' <= (c) && (c) <= 'r') \
4485 || ('s' <= (c) && (c) <= 'z'))
4486 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4487 #endif
4488
4489 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4490 int
4491 main ()
4492 {
4493 int i;
4494 for (i = 0; i < 256; i++)
4495 if (XOR (islower (i), ISLOWER (i))
4496 || toupper (i) != TOUPPER (i))
4497 return 2;
4498 return 0;
4499 }
4500 _ACEOF
4501 if ac_fn_c_try_run "$LINENO"; then :
4502
4503 else
4504 ac_cv_header_stdc=no
4505 fi
4506 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4507 conftest.$ac_objext conftest.beam conftest.$ac_ext
4508 fi
4509
4510 fi
4511 fi
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4513 $as_echo "$ac_cv_header_stdc" >&6; }
4514 if test $ac_cv_header_stdc = yes; then
4515
4516 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4517
4518 fi
4519
4520 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4521 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4522 inttypes.h stdint.h unistd.h
4523 do :
4524 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4525 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4526 "
4527 eval as_val=\$$as_ac_Header
4528 if test "x$as_val" = x""yes; then :
4529 cat >>confdefs.h <<_ACEOF
4530 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4531 _ACEOF
4532
4533 fi
4534
4535 done
4536
4537
4538
4539
4540
4541 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4542 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4543 MINIX=yes
4544 else
4545 MINIX=
4546 fi
4547
4548
4549 if test "$MINIX" = yes; then
4550
4551 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4552
4553
4554 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4555
4556
4557 $as_echo "#define _MINIX 1" >>confdefs.h
4558
4559 fi
4560
4561 case "$host_os" in
4562 hpux*)
4563
4564 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
4565
4566 ;;
4567 esac
4568
4569
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4571 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4572 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4573 $as_echo_n "(cached) " >&6
4574 else
4575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4576 /* end confdefs.h. */
4577
4578 # define __EXTENSIONS__ 1
4579 $ac_includes_default
4580 int
4581 main ()
4582 {
4583
4584 ;
4585 return 0;
4586 }
4587 _ACEOF
4588 if ac_fn_c_try_compile "$LINENO"; then :
4589 ac_cv_safe_to_define___extensions__=yes
4590 else
4591 ac_cv_safe_to_define___extensions__=no
4592 fi
4593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4594 fi
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4596 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4597 test $ac_cv_safe_to_define___extensions__ = yes &&
4598 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4599
4600 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4601
4602 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4603
4604 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4605
4606 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4607
4608 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4609
4610
4611
4612
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
4614 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
4615 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
4616 $as_echo_n "(cached) " >&6
4617 else
4618
4619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4620 /* end confdefs.h. */
4621
4622 #ifdef __ACK__
4623 Amsterdam
4624 #endif
4625
4626 _ACEOF
4627 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4628 $EGREP "Amsterdam" >/dev/null 2>&1; then :
4629 gl_cv_c_amsterdam_compiler=yes
4630 else
4631 gl_cv_c_amsterdam_compiler=no
4632 fi
4633 rm -f conftest*
4634
4635
4636 fi
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
4638 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
4639 if test -z "$AR"; then
4640 if test $gl_cv_c_amsterdam_compiler = yes; then
4641 AR='cc -c.a'
4642 if test -z "$ARFLAGS"; then
4643 ARFLAGS='-o'
4644 fi
4645 else
4646 if test -n "$ac_tool_prefix"; then
4647 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4648 set dummy ${ac_tool_prefix}ar; ac_word=$2
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4650 $as_echo_n "checking for $ac_word... " >&6; }
4651 if test "${ac_cv_prog_AR+set}" = set; then :
4652 $as_echo_n "(cached) " >&6
4653 else
4654 if test -n "$AR"; then
4655 ac_cv_prog_AR="$AR" # Let the user override the test.
4656 else
4657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4658 for as_dir in $PATH
4659 do
4660 IFS=$as_save_IFS
4661 test -z "$as_dir" && as_dir=.
4662 for ac_exec_ext in '' $ac_executable_extensions; do
4663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4664 ac_cv_prog_AR="${ac_tool_prefix}ar"
4665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4666 break 2
4667 fi
4668 done
4669 done
4670 IFS=$as_save_IFS
4671
4672 fi
4673 fi
4674 AR=$ac_cv_prog_AR
4675 if test -n "$AR"; then
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4677 $as_echo "$AR" >&6; }
4678 else
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4680 $as_echo "no" >&6; }
4681 fi
4682
4683
4684 fi
4685 if test -z "$ac_cv_prog_AR"; then
4686 ac_ct_AR=$AR
4687 # Extract the first word of "ar", so it can be a program name with args.
4688 set dummy ar; ac_word=$2
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4690 $as_echo_n "checking for $ac_word... " >&6; }
4691 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4692 $as_echo_n "(cached) " >&6
4693 else
4694 if test -n "$ac_ct_AR"; then
4695 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4696 else
4697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4698 for as_dir in $PATH
4699 do
4700 IFS=$as_save_IFS
4701 test -z "$as_dir" && as_dir=.
4702 for ac_exec_ext in '' $ac_executable_extensions; do
4703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4704 ac_cv_prog_ac_ct_AR="ar"
4705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4706 break 2
4707 fi
4708 done
4709 done
4710 IFS=$as_save_IFS
4711
4712 fi
4713 fi
4714 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4715 if test -n "$ac_ct_AR"; then
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4717 $as_echo "$ac_ct_AR" >&6; }
4718 else
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4720 $as_echo "no" >&6; }
4721 fi
4722
4723 if test "x$ac_ct_AR" = x; then
4724 AR="ar"
4725 else
4726 case $cross_compiling:$ac_tool_warned in
4727 yes:)
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4729 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4730 ac_tool_warned=yes ;;
4731 esac
4732 AR=$ac_ct_AR
4733 fi
4734 else
4735 AR="$ac_cv_prog_AR"
4736 fi
4737
4738 if test -z "$ARFLAGS"; then
4739 ARFLAGS='cru'
4740 fi
4741 fi
4742 else
4743 if test -z "$ARFLAGS"; then
4744 ARFLAGS='cru'
4745 fi
4746 fi
4747
4748
4749 if test -z "$RANLIB"; then
4750 if test $gl_cv_c_amsterdam_compiler = yes; then
4751 RANLIB=':'
4752 else
4753 if test -n "$ac_tool_prefix"; then
4754 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4755 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4757 $as_echo_n "checking for $ac_word... " >&6; }
4758 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4759 $as_echo_n "(cached) " >&6
4760 else
4761 if test -n "$RANLIB"; then
4762 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4763 else
4764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4765 for as_dir in $PATH
4766 do
4767 IFS=$as_save_IFS
4768 test -z "$as_dir" && as_dir=.
4769 for ac_exec_ext in '' $ac_executable_extensions; do
4770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4771 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4773 break 2
4774 fi
4775 done
4776 done
4777 IFS=$as_save_IFS
4778
4779 fi
4780 fi
4781 RANLIB=$ac_cv_prog_RANLIB
4782 if test -n "$RANLIB"; then
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4784 $as_echo "$RANLIB" >&6; }
4785 else
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4787 $as_echo "no" >&6; }
4788 fi
4789
4790
4791 fi
4792 if test -z "$ac_cv_prog_RANLIB"; then
4793 ac_ct_RANLIB=$RANLIB
4794 # Extract the first word of "ranlib", so it can be a program name with args.
4795 set dummy ranlib; ac_word=$2
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4797 $as_echo_n "checking for $ac_word... " >&6; }
4798 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4799 $as_echo_n "(cached) " >&6
4800 else
4801 if test -n "$ac_ct_RANLIB"; then
4802 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4803 else
4804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4805 for as_dir in $PATH
4806 do
4807 IFS=$as_save_IFS
4808 test -z "$as_dir" && as_dir=.
4809 for ac_exec_ext in '' $ac_executable_extensions; do
4810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4811 ac_cv_prog_ac_ct_RANLIB="ranlib"
4812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4813 break 2
4814 fi
4815 done
4816 done
4817 IFS=$as_save_IFS
4818
4819 fi
4820 fi
4821 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4822 if test -n "$ac_ct_RANLIB"; then
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4824 $as_echo "$ac_ct_RANLIB" >&6; }
4825 else
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4827 $as_echo "no" >&6; }
4828 fi
4829
4830 if test "x$ac_ct_RANLIB" = x; then
4831 RANLIB=":"
4832 else
4833 case $cross_compiling:$ac_tool_warned in
4834 yes:)
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4836 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4837 ac_tool_warned=yes ;;
4838 esac
4839 RANLIB=$ac_ct_RANLIB
4840 fi
4841 else
4842 RANLIB="$ac_cv_prog_RANLIB"
4843 fi
4844
4845 fi
4846 fi
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858 # IEEE behaviour is the default on all CPUs except Alpha and SH
4859 # (according to the test results of Bruno Haible's ieeefp/fenv_default.m4
4860 # and the GCC 4.1.2 manual).
4861 case "$host_cpu" in
4862 alpha*)
4863 # On Alpha systems, a compiler option provides the behaviour.
4864 # See the ieee(3) manual page, also available at
4865 # <http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V51B_HTML/MAN/MAN3/0600____.HTM>
4866 if test -n "$GCC"; then
4867 # GCC has the option -mieee.
4868 # For full IEEE compliance (rarely needed), use option -mieee-with-inexact.
4869 CPPFLAGS="$CPPFLAGS -mieee"
4870 else
4871 # Compaq (ex-DEC) C has the option -ieee, equivalent to -ieee_with_no_inexact.
4872 # For full IEEE compliance (rarely needed), use option -ieee_with_inexact.
4873 CPPFLAGS="$CPPFLAGS -ieee"
4874 fi
4875 ;;
4876 sh*)
4877 if test -n "$GCC"; then
4878 # GCC has the option -mieee.
4879 CPPFLAGS="$CPPFLAGS -mieee"
4880 fi
4881 ;;
4882 esac
4883
4884 # Check whether --enable-largefile was given.
4885 if test "${enable_largefile+set}" = set; then :
4886 enableval=$enable_largefile;
4887 fi
4888
4889 if test "$enable_largefile" != no; then
4890
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4892 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4893 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4894 $as_echo_n "(cached) " >&6
4895 else
4896 ac_cv_sys_largefile_CC=no
4897 if test "$GCC" != yes; then
4898 ac_save_CC=$CC
4899 while :; do
4900 # IRIX 6.2 and later do not support large files by default,
4901 # so use the C compiler's -n32 option if that helps.
4902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4903 /* end confdefs.h. */
4904 #include <sys/types.h>
4905 /* Check that off_t can represent 2**63 - 1 correctly.
4906 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4907 since some C++ compilers masquerading as C compilers
4908 incorrectly reject 9223372036854775807. */
4909 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4910 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4911 && LARGE_OFF_T % 2147483647 == 1)
4912 ? 1 : -1];
4913 int
4914 main ()
4915 {
4916
4917 ;
4918 return 0;
4919 }
4920 _ACEOF
4921 if ac_fn_c_try_compile "$LINENO"; then :
4922 break
4923 fi
4924 rm -f core conftest.err conftest.$ac_objext
4925 CC="$CC -n32"
4926 if ac_fn_c_try_compile "$LINENO"; then :
4927 ac_cv_sys_largefile_CC=' -n32'; break
4928 fi
4929 rm -f core conftest.err conftest.$ac_objext
4930 break
4931 done
4932 CC=$ac_save_CC
4933 rm -f conftest.$ac_ext
4934 fi
4935 fi
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4937 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4938 if test "$ac_cv_sys_largefile_CC" != no; then
4939 CC=$CC$ac_cv_sys_largefile_CC
4940 fi
4941
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4943 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4944 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4945 $as_echo_n "(cached) " >&6
4946 else
4947 while :; do
4948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4949 /* end confdefs.h. */
4950 #include <sys/types.h>
4951 /* Check that off_t can represent 2**63 - 1 correctly.
4952 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4953 since some C++ compilers masquerading as C compilers
4954 incorrectly reject 9223372036854775807. */
4955 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4956 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4957 && LARGE_OFF_T % 2147483647 == 1)
4958 ? 1 : -1];
4959 int
4960 main ()
4961 {
4962
4963 ;
4964 return 0;
4965 }
4966 _ACEOF
4967 if ac_fn_c_try_compile "$LINENO"; then :
4968 ac_cv_sys_file_offset_bits=no; break
4969 fi
4970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4972 /* end confdefs.h. */
4973 #define _FILE_OFFSET_BITS 64
4974 #include <sys/types.h>
4975 /* Check that off_t can represent 2**63 - 1 correctly.
4976 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4977 since some C++ compilers masquerading as C compilers
4978 incorrectly reject 9223372036854775807. */
4979 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4980 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4981 && LARGE_OFF_T % 2147483647 == 1)
4982 ? 1 : -1];
4983 int
4984 main ()
4985 {
4986
4987 ;
4988 return 0;
4989 }
4990 _ACEOF
4991 if ac_fn_c_try_compile "$LINENO"; then :
4992 ac_cv_sys_file_offset_bits=64; break
4993 fi
4994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4995 ac_cv_sys_file_offset_bits=unknown
4996 break
4997 done
4998 fi
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5000 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5001 case $ac_cv_sys_file_offset_bits in #(
5002 no | unknown) ;;
5003 *)
5004 cat >>confdefs.h <<_ACEOF
5005 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5006 _ACEOF
5007 ;;
5008 esac
5009 rm -rf conftest*
5010 if test $ac_cv_sys_file_offset_bits = unknown; then
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5012 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5013 if test "${ac_cv_sys_large_files+set}" = set; then :
5014 $as_echo_n "(cached) " >&6
5015 else
5016 while :; do
5017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5018 /* end confdefs.h. */
5019 #include <sys/types.h>
5020 /* Check that off_t can represent 2**63 - 1 correctly.
5021 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5022 since some C++ compilers masquerading as C compilers
5023 incorrectly reject 9223372036854775807. */
5024 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5025 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5026 && LARGE_OFF_T % 2147483647 == 1)
5027 ? 1 : -1];
5028 int
5029 main ()
5030 {
5031
5032 ;
5033 return 0;
5034 }
5035 _ACEOF
5036 if ac_fn_c_try_compile "$LINENO"; then :
5037 ac_cv_sys_large_files=no; break
5038 fi
5039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5041 /* end confdefs.h. */
5042 #define _LARGE_FILES 1
5043 #include <sys/types.h>
5044 /* Check that off_t can represent 2**63 - 1 correctly.
5045 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5046 since some C++ compilers masquerading as C compilers
5047 incorrectly reject 9223372036854775807. */
5048 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5049 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5050 && LARGE_OFF_T % 2147483647 == 1)
5051 ? 1 : -1];
5052 int
5053 main ()
5054 {
5055
5056 ;
5057 return 0;
5058 }
5059 _ACEOF
5060 if ac_fn_c_try_compile "$LINENO"; then :
5061 ac_cv_sys_large_files=1; break
5062 fi
5063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5064 ac_cv_sys_large_files=unknown
5065 break
5066 done
5067 fi
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5069 $as_echo "$ac_cv_sys_large_files" >&6; }
5070 case $ac_cv_sys_large_files in #(
5071 no | unknown) ;;
5072 *)
5073 cat >>confdefs.h <<_ACEOF
5074 #define _LARGE_FILES $ac_cv_sys_large_files
5075 _ACEOF
5076 ;;
5077 esac
5078 rm -rf conftest*
5079 fi
5080
5081
5082 fi
5083
5084
5085
5086 # Code from module alloca:
5087 # Code from module alloca-opt:
5088 # Code from module canonicalize-lgpl:
5089 # Code from module configmake:
5090 # Code from module dirent:
5091 # Code from module dirfd:
5092 # Code from module dosname:
5093 # Code from module errno:
5094 # Code from module extensions:
5095
5096 # Code from module extern-inline:
5097 # Code from module float:
5098 # Code from module fnmatch:
5099 # Code from module fnmatch-gnu:
5100 # Code from module fpieee:
5101
5102 # Code from module fpucw:
5103 # Code from module frexp:
5104 # Code from module frexpl:
5105 # Code from module include_next:
5106 # Code from module inttypes:
5107 # Code from module inttypes-incomplete:
5108 # Code from module isnand-nolibm:
5109 # Code from module isnanl-nolibm:
5110 # Code from module largefile:
5111
5112 # Code from module localcharset:
5113 # Code from module lstat:
5114 # Code from module malloca:
5115 # Code from module math:
5116 # Code from module mbrtowc:
5117 # Code from module mbsinit:
5118 # Code from module mbsrtowcs:
5119 # Code from module memchr:
5120 # Code from module memmem:
5121 # Code from module memmem-simple:
5122 # Code from module multiarch:
5123 # Code from module nocrash:
5124 # Code from module pathmax:
5125 # Code from module readlink:
5126 # Code from module snippet/_Noreturn:
5127 # Code from module snippet/arg-nonnull:
5128 # Code from module snippet/c++defs:
5129 # Code from module snippet/warn-on-use:
5130 # Code from module ssize_t:
5131 # Code from module stat:
5132 # Code from module stdbool:
5133 # Code from module stddef:
5134 # Code from module stdint:
5135 # Code from module stdlib:
5136 # Code from module streq:
5137 # Code from module string:
5138 # Code from module strnlen1:
5139 # Code from module strstr:
5140 # Code from module strstr-simple:
5141 # Code from module sys_stat:
5142 # Code from module sys_types:
5143 # Code from module time:
5144 # Code from module unistd:
5145 # Code from module update-copyright:
5146 # Code from module verify:
5147 # Code from module wchar:
5148 # Code from module wctype-h:
5149
5150 ac_ext=c
5151 ac_cpp='$CPP $CPPFLAGS'
5152 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5153 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5154 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5155 if test -n "$ac_tool_prefix"; then
5156 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5157 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5159 $as_echo_n "checking for $ac_word... " >&6; }
5160 if test "${ac_cv_prog_CC+set}" = set; then :
5161 $as_echo_n "(cached) " >&6
5162 else
5163 if test -n "$CC"; then
5164 ac_cv_prog_CC="$CC" # Let the user override the test.
5165 else
5166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5167 for as_dir in $PATH
5168 do
5169 IFS=$as_save_IFS
5170 test -z "$as_dir" && as_dir=.
5171 for ac_exec_ext in '' $ac_executable_extensions; do
5172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5173 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5175 break 2
5176 fi
5177 done
5178 done
5179 IFS=$as_save_IFS
5180
5181 fi
5182 fi
5183 CC=$ac_cv_prog_CC
5184 if test -n "$CC"; then
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5186 $as_echo "$CC" >&6; }
5187 else
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5189 $as_echo "no" >&6; }
5190 fi
5191
5192
5193 fi
5194 if test -z "$ac_cv_prog_CC"; then
5195 ac_ct_CC=$CC
5196 # Extract the first word of "gcc", so it can be a program name with args.
5197 set dummy gcc; ac_word=$2
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5199 $as_echo_n "checking for $ac_word... " >&6; }
5200 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5201 $as_echo_n "(cached) " >&6
5202 else
5203 if test -n "$ac_ct_CC"; then
5204 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5205 else
5206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5207 for as_dir in $PATH
5208 do
5209 IFS=$as_save_IFS
5210 test -z "$as_dir" && as_dir=.
5211 for ac_exec_ext in '' $ac_executable_extensions; do
5212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5213 ac_cv_prog_ac_ct_CC="gcc"
5214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5215 break 2
5216 fi
5217 done
5218 done
5219 IFS=$as_save_IFS
5220
5221 fi
5222 fi
5223 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5224 if test -n "$ac_ct_CC"; then
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5226 $as_echo "$ac_ct_CC" >&6; }
5227 else
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5229 $as_echo "no" >&6; }
5230 fi
5231
5232 if test "x$ac_ct_CC" = x; then
5233 CC=""
5234 else
5235 case $cross_compiling:$ac_tool_warned in
5236 yes:)
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5238 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5239 ac_tool_warned=yes ;;
5240 esac
5241 CC=$ac_ct_CC
5242 fi
5243 else
5244 CC="$ac_cv_prog_CC"
5245 fi
5246
5247 if test -z "$CC"; then
5248 if test -n "$ac_tool_prefix"; then
5249 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5250 set dummy ${ac_tool_prefix}cc; ac_word=$2
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5252 $as_echo_n "checking for $ac_word... " >&6; }
5253 if test "${ac_cv_prog_CC+set}" = set; then :
5254 $as_echo_n "(cached) " >&6
5255 else
5256 if test -n "$CC"; then
5257 ac_cv_prog_CC="$CC" # Let the user override the test.
5258 else
5259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5260 for as_dir in $PATH
5261 do
5262 IFS=$as_save_IFS
5263 test -z "$as_dir" && as_dir=.
5264 for ac_exec_ext in '' $ac_executable_extensions; do
5265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5266 ac_cv_prog_CC="${ac_tool_prefix}cc"
5267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5268 break 2
5269 fi
5270 done
5271 done
5272 IFS=$as_save_IFS
5273
5274 fi
5275 fi
5276 CC=$ac_cv_prog_CC
5277 if test -n "$CC"; then
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5279 $as_echo "$CC" >&6; }
5280 else
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5282 $as_echo "no" >&6; }
5283 fi
5284
5285
5286 fi
5287 fi
5288 if test -z "$CC"; then
5289 # Extract the first word of "cc", so it can be a program name with args.
5290 set dummy cc; ac_word=$2
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5292 $as_echo_n "checking for $ac_word... " >&6; }
5293 if test "${ac_cv_prog_CC+set}" = set; then :
5294 $as_echo_n "(cached) " >&6
5295 else
5296 if test -n "$CC"; then
5297 ac_cv_prog_CC="$CC" # Let the user override the test.
5298 else
5299 ac_prog_rejected=no
5300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5301 for as_dir in $PATH
5302 do
5303 IFS=$as_save_IFS
5304 test -z "$as_dir" && as_dir=.
5305 for ac_exec_ext in '' $ac_executable_extensions; do
5306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5307 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5308 ac_prog_rejected=yes
5309 continue
5310 fi
5311 ac_cv_prog_CC="cc"
5312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5313 break 2
5314 fi
5315 done
5316 done
5317 IFS=$as_save_IFS
5318
5319 if test $ac_prog_rejected = yes; then
5320 # We found a bogon in the path, so make sure we never use it.
5321 set dummy $ac_cv_prog_CC
5322 shift
5323 if test $# != 0; then
5324 # We chose a different compiler from the bogus one.
5325 # However, it has the same basename, so the bogon will be chosen
5326 # first if we set CC to just the basename; use the full file name.
5327 shift
5328 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5329 fi
5330 fi
5331 fi
5332 fi
5333 CC=$ac_cv_prog_CC
5334 if test -n "$CC"; then
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5336 $as_echo "$CC" >&6; }
5337 else
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5339 $as_echo "no" >&6; }
5340 fi
5341
5342
5343 fi
5344 if test -z "$CC"; then
5345 if test -n "$ac_tool_prefix"; then
5346 for ac_prog in cl.exe
5347 do
5348 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5349 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5351 $as_echo_n "checking for $ac_word... " >&6; }
5352 if test "${ac_cv_prog_CC+set}" = set; then :
5353 $as_echo_n "(cached) " >&6
5354 else
5355 if test -n "$CC"; then
5356 ac_cv_prog_CC="$CC" # Let the user override the test.
5357 else
5358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5359 for as_dir in $PATH
5360 do
5361 IFS=$as_save_IFS
5362 test -z "$as_dir" && as_dir=.
5363 for ac_exec_ext in '' $ac_executable_extensions; do
5364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5365 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5367 break 2
5368 fi
5369 done
5370 done
5371 IFS=$as_save_IFS
5372
5373 fi
5374 fi
5375 CC=$ac_cv_prog_CC
5376 if test -n "$CC"; then
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5378 $as_echo "$CC" >&6; }
5379 else
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5381 $as_echo "no" >&6; }
5382 fi
5383
5384
5385 test -n "$CC" && break
5386 done
5387 fi
5388 if test -z "$CC"; then
5389 ac_ct_CC=$CC
5390 for ac_prog in cl.exe
5391 do
5392 # Extract the first word of "$ac_prog", so it can be a program name with args.
5393 set dummy $ac_prog; ac_word=$2
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5395 $as_echo_n "checking for $ac_word... " >&6; }
5396 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5397 $as_echo_n "(cached) " >&6
5398 else
5399 if test -n "$ac_ct_CC"; then
5400 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5401 else
5402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5403 for as_dir in $PATH
5404 do
5405 IFS=$as_save_IFS
5406 test -z "$as_dir" && as_dir=.
5407 for ac_exec_ext in '' $ac_executable_extensions; do
5408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5409 ac_cv_prog_ac_ct_CC="$ac_prog"
5410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5411 break 2
5412 fi
5413 done
5414 done
5415 IFS=$as_save_IFS
5416
5417 fi
5418 fi
5419 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5420 if test -n "$ac_ct_CC"; then
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5422 $as_echo "$ac_ct_CC" >&6; }
5423 else
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5425 $as_echo "no" >&6; }
5426 fi
5427
5428
5429 test -n "$ac_ct_CC" && break
5430 done
5431
5432 if test "x$ac_ct_CC" = x; then
5433 CC=""
5434 else
5435 case $cross_compiling:$ac_tool_warned in
5436 yes:)
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5438 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5439 ac_tool_warned=yes ;;
5440 esac
5441 CC=$ac_ct_CC
5442 fi
5443 fi
5444
5445 fi
5446
5447
5448 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5449 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5450 as_fn_error "no acceptable C compiler found in \$PATH
5451 See \`config.log' for more details." "$LINENO" 5; }
5452
5453 # Provide some information about the compiler.
5454 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5455 set X $ac_compile
5456 ac_compiler=$2
5457 for ac_option in --version -v -V -qversion; do
5458 { { ac_try="$ac_compiler $ac_option >&5"
5459 case "(($ac_try" in
5460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5461 *) ac_try_echo=$ac_try;;
5462 esac
5463 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5464 $as_echo "$ac_try_echo"; } >&5
5465 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5466 ac_status=$?
5467 if test -s conftest.err; then
5468 sed '10a\
5469 ... rest of stderr output deleted ...
5470 10q' conftest.err >conftest.er1
5471 cat conftest.er1 >&5
5472 rm -f conftest.er1 conftest.err
5473 fi
5474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5475 test $ac_status = 0; }
5476 done
5477
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5479 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5480 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5481 $as_echo_n "(cached) " >&6
5482 else
5483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5484 /* end confdefs.h. */
5485
5486 int
5487 main ()
5488 {
5489 #ifndef __GNUC__
5490 choke me
5491 #endif
5492
5493 ;
5494 return 0;
5495 }
5496 _ACEOF
5497 if ac_fn_c_try_compile "$LINENO"; then :
5498 ac_compiler_gnu=yes
5499 else
5500 ac_compiler_gnu=no
5501 fi
5502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5503 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5504
5505 fi
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5507 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5508 if test $ac_compiler_gnu = yes; then
5509 GCC=yes
5510 else
5511 GCC=
5512 fi
5513 ac_test_CFLAGS=${CFLAGS+set}
5514 ac_save_CFLAGS=$CFLAGS
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5516 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5517 if test "${ac_cv_prog_cc_g+set}" = set; then :
5518 $as_echo_n "(cached) " >&6
5519 else
5520 ac_save_c_werror_flag=$ac_c_werror_flag
5521 ac_c_werror_flag=yes
5522 ac_cv_prog_cc_g=no
5523 CFLAGS="-g"
5524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5525 /* end confdefs.h. */
5526
5527 int
5528 main ()
5529 {
5530
5531 ;
5532 return 0;
5533 }
5534 _ACEOF
5535 if ac_fn_c_try_compile "$LINENO"; then :
5536 ac_cv_prog_cc_g=yes
5537 else
5538 CFLAGS=""
5539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5540 /* end confdefs.h. */
5541
5542 int
5543 main ()
5544 {
5545
5546 ;
5547 return 0;
5548 }
5549 _ACEOF
5550 if ac_fn_c_try_compile "$LINENO"; then :
5551
5552 else
5553 ac_c_werror_flag=$ac_save_c_werror_flag
5554 CFLAGS="-g"
5555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5556 /* end confdefs.h. */
5557
5558 int
5559 main ()
5560 {
5561
5562 ;
5563 return 0;
5564 }
5565 _ACEOF
5566 if ac_fn_c_try_compile "$LINENO"; then :
5567 ac_cv_prog_cc_g=yes
5568 fi
5569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5570 fi
5571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5572 fi
5573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5574 ac_c_werror_flag=$ac_save_c_werror_flag
5575 fi
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5577 $as_echo "$ac_cv_prog_cc_g" >&6; }
5578 if test "$ac_test_CFLAGS" = set; then
5579 CFLAGS=$ac_save_CFLAGS
5580 elif test $ac_cv_prog_cc_g = yes; then
5581 if test "$GCC" = yes; then
5582 CFLAGS="-g -O2"
5583 else
5584 CFLAGS="-g"
5585 fi
5586 else
5587 if test "$GCC" = yes; then
5588 CFLAGS="-O2"
5589 else
5590 CFLAGS=
5591 fi
5592 fi
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5594 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5595 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5596 $as_echo_n "(cached) " >&6
5597 else
5598 ac_cv_prog_cc_c89=no
5599 ac_save_CC=$CC
5600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5601 /* end confdefs.h. */
5602 #include <stdarg.h>
5603 #include <stdio.h>
5604 #include <sys/types.h>
5605 #include <sys/stat.h>
5606 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5607 struct buf { int x; };
5608 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5609 static char *e (p, i)
5610 char **p;
5611 int i;
5612 {
5613 return p[i];
5614 }
5615 static char *f (char * (*g) (char **, int), char **p, ...)
5616 {
5617 char *s;
5618 va_list v;
5619 va_start (v,p);
5620 s = g (p, va_arg (v,int));
5621 va_end (v);
5622 return s;
5623 }
5624
5625 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5626 function prototypes and stuff, but not '\xHH' hex character constants.
5627 These don't provoke an error unfortunately, instead are silently treated
5628 as 'x'. The following induces an error, until -std is added to get
5629 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5630 array size at least. It's necessary to write '\x00'==0 to get something
5631 that's true only with -std. */
5632 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5633
5634 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5635 inside strings and character constants. */
5636 #define FOO(x) 'x'
5637 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5638
5639 int test (int i, double x);
5640 struct s1 {int (*f) (int a);};
5641 struct s2 {int (*f) (double a);};
5642 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5643 int argc;
5644 char **argv;
5645 int
5646 main ()
5647 {
5648 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5649 ;
5650 return 0;
5651 }
5652 _ACEOF
5653 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5654 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5655 do
5656 CC="$ac_save_CC $ac_arg"
5657 if ac_fn_c_try_compile "$LINENO"; then :
5658 ac_cv_prog_cc_c89=$ac_arg
5659 fi
5660 rm -f core conftest.err conftest.$ac_objext
5661 test "x$ac_cv_prog_cc_c89" != "xno" && break
5662 done
5663 rm -f conftest.$ac_ext
5664 CC=$ac_save_CC
5665
5666 fi
5667 # AC_CACHE_VAL
5668 case "x$ac_cv_prog_cc_c89" in
5669 x)
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5671 $as_echo "none needed" >&6; } ;;
5672 xno)
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5674 $as_echo "unsupported" >&6; } ;;
5675 *)
5676 CC="$CC $ac_cv_prog_cc_c89"
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5678 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5679 esac
5680 if test "x$ac_cv_prog_cc_c89" != xno; then :
5681
5682 fi
5683
5684 ac_ext=c
5685 ac_cpp='$CPP $CPPFLAGS'
5686 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5687 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5688 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5689
5690
5691 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5692
5693
5694 ac_aux_dir=
5695 for ac_dir in ../.. "$srcdir"/../..; do
5696 for ac_t in install-sh install.sh shtool; do
5697 if test -f "$ac_dir/$ac_t"; then
5698 ac_aux_dir=$ac_dir
5699 ac_install_sh="$ac_aux_dir/$ac_t -c"
5700 break 2
5701 fi
5702 done
5703 done
5704 if test -z "$ac_aux_dir"; then
5705 as_fn_error "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5
5706 fi
5707
5708 # These three variables are undocumented and unsupported,
5709 # and are intended to be withdrawn in a future Autoconf release.
5710 # They can cause serious problems if a builder's source tree is in a directory
5711 # whose full name contains unusual characters.
5712 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5713 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5714 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5715
5716
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
5718 $as_echo_n "checking target system type... " >&6; }
5719 if test "${ac_cv_target+set}" = set; then :
5720 $as_echo_n "(cached) " >&6
5721 else
5722 if test "x$target_alias" = x; then
5723 ac_cv_target=$ac_cv_host
5724 else
5725 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
5726 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
5727 fi
5728
5729 fi
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
5731 $as_echo "$ac_cv_target" >&6; }
5732 case $ac_cv_target in
5733 *-*-*) ;;
5734 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
5735 esac
5736 target=$ac_cv_target
5737 ac_save_IFS=$IFS; IFS='-'
5738 set x $ac_cv_target
5739 shift
5740 target_cpu=$1
5741 target_vendor=$2
5742 shift; shift
5743 # Remember, the first character of IFS is used to create $*,
5744 # except with old shells:
5745 target_os=$*
5746 IFS=$ac_save_IFS
5747 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
5748
5749
5750 # The aliases save the names the user supplied, while $host etc.
5751 # will get canonicalized.
5752 test -n "$target_alias" &&
5753 test "$program_prefix$program_suffix$program_transform_name" = \
5754 NONENONEs,x,x, &&
5755 program_prefix=${target_alias}-
5756
5757
5758
5759
5760
5761
5762
5763 LIBC_FATAL_STDERR_=1
5764 export LIBC_FATAL_STDERR_
5765
5766 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5767 # for constant arguments. Useless!
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5769 $as_echo_n "checking for working alloca.h... " >&6; }
5770 if test "${ac_cv_working_alloca_h+set}" = set; then :
5771 $as_echo_n "(cached) " >&6
5772 else
5773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5774 /* end confdefs.h. */
5775 #include <alloca.h>
5776 int
5777 main ()
5778 {
5779 char *p = (char *) alloca (2 * sizeof (int));
5780 if (p) return 0;
5781 ;
5782 return 0;
5783 }
5784 _ACEOF
5785 if ac_fn_c_try_link "$LINENO"; then :
5786 ac_cv_working_alloca_h=yes
5787 else
5788 ac_cv_working_alloca_h=no
5789 fi
5790 rm -f core conftest.err conftest.$ac_objext \
5791 conftest$ac_exeext conftest.$ac_ext
5792 fi
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5794 $as_echo "$ac_cv_working_alloca_h" >&6; }
5795 if test $ac_cv_working_alloca_h = yes; then
5796
5797 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
5798
5799 fi
5800
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5802 $as_echo_n "checking for alloca... " >&6; }
5803 if test "${ac_cv_func_alloca_works+set}" = set; then :
5804 $as_echo_n "(cached) " >&6
5805 else
5806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5807 /* end confdefs.h. */
5808 #ifdef __GNUC__
5809 # define alloca __builtin_alloca
5810 #else
5811 # ifdef _MSC_VER
5812 # include <malloc.h>
5813 # define alloca _alloca
5814 # else
5815 # ifdef HAVE_ALLOCA_H
5816 # include <alloca.h>
5817 # else
5818 # ifdef _AIX
5819 #pragma alloca
5820 # else
5821 # ifndef alloca /* predefined by HP cc +Olibcalls */
5822 char *alloca ();
5823 # endif
5824 # endif
5825 # endif
5826 # endif
5827 #endif
5828
5829 int
5830 main ()
5831 {
5832 char *p = (char *) alloca (1);
5833 if (p) return 0;
5834 ;
5835 return 0;
5836 }
5837 _ACEOF
5838 if ac_fn_c_try_link "$LINENO"; then :
5839 ac_cv_func_alloca_works=yes
5840 else
5841 ac_cv_func_alloca_works=no
5842 fi
5843 rm -f core conftest.err conftest.$ac_objext \
5844 conftest$ac_exeext conftest.$ac_ext
5845 fi
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5847 $as_echo "$ac_cv_func_alloca_works" >&6; }
5848
5849 if test $ac_cv_func_alloca_works = yes; then
5850
5851 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
5852
5853 else
5854 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5855 # that cause trouble. Some versions do not even contain alloca or
5856 # contain a buggy version. If you still want to use their alloca,
5857 # use ar to extract alloca.o from them instead of compiling alloca.c.
5858
5859
5860
5861
5862
5863 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
5864
5865 $as_echo "#define C_ALLOCA 1" >>confdefs.h
5866
5867
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
5869 $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
5870 if test "${ac_cv_os_cray+set}" = set; then :
5871 $as_echo_n "(cached) " >&6
5872 else
5873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5874 /* end confdefs.h. */
5875 #if defined CRAY && ! defined CRAY2
5876 webecray
5877 #else
5878 wenotbecray
5879 #endif
5880
5881 _ACEOF
5882 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5883 $EGREP "webecray" >/dev/null 2>&1; then :
5884 ac_cv_os_cray=yes
5885 else
5886 ac_cv_os_cray=no
5887 fi
5888 rm -f conftest*
5889
5890 fi
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5892 $as_echo "$ac_cv_os_cray" >&6; }
5893 if test $ac_cv_os_cray = yes; then
5894 for ac_func in _getb67 GETB67 getb67; do
5895 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5896 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5897 eval as_val=\$$as_ac_var
5898 if test "x$as_val" = x""yes; then :
5899
5900 cat >>confdefs.h <<_ACEOF
5901 #define CRAY_STACKSEG_END $ac_func
5902 _ACEOF
5903
5904 break
5905 fi
5906
5907 done
5908 fi
5909
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5911 $as_echo_n "checking stack direction for C alloca... " >&6; }
5912 if test "${ac_cv_c_stack_direction+set}" = set; then :
5913 $as_echo_n "(cached) " >&6
5914 else
5915 if test "$cross_compiling" = yes; then :
5916 ac_cv_c_stack_direction=0
5917 else
5918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5919 /* end confdefs.h. */
5920 $ac_includes_default
5921 int
5922 find_stack_direction (int *addr, int depth)
5923 {
5924 int dir, dummy = 0;
5925 if (! addr)
5926 addr = &dummy;
5927 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
5928 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
5929 return dir + dummy;
5930 }
5931
5932 int
5933 main (int argc, char **argv)
5934 {
5935 return find_stack_direction (0, argc + !argv + 20) < 0;
5936 }
5937 _ACEOF
5938 if ac_fn_c_try_run "$LINENO"; then :
5939 ac_cv_c_stack_direction=1
5940 else
5941 ac_cv_c_stack_direction=-1
5942 fi
5943 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5944 conftest.$ac_objext conftest.beam conftest.$ac_ext
5945 fi
5946
5947 fi
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5949 $as_echo "$ac_cv_c_stack_direction" >&6; }
5950 cat >>confdefs.h <<_ACEOF
5951 #define STACK_DIRECTION $ac_cv_c_stack_direction
5952 _ACEOF
5953
5954
5955 fi
5956
5957
5958 GNULIB__EXIT=0;
5959 GNULIB_ATOLL=0;
5960 GNULIB_CALLOC_POSIX=0;
5961 GNULIB_CANONICALIZE_FILE_NAME=0;
5962 GNULIB_GETLOADAVG=0;
5963 GNULIB_GETSUBOPT=0;
5964 GNULIB_GRANTPT=0;
5965 GNULIB_MALLOC_POSIX=0;
5966 GNULIB_MBTOWC=0;
5967 GNULIB_MKDTEMP=0;
5968 GNULIB_MKOSTEMP=0;
5969 GNULIB_MKOSTEMPS=0;
5970 GNULIB_MKSTEMP=0;
5971 GNULIB_MKSTEMPS=0;
5972 GNULIB_POSIX_OPENPT=0;
5973 GNULIB_PTSNAME=0;
5974 GNULIB_PTSNAME_R=0;
5975 GNULIB_PUTENV=0;
5976 GNULIB_RANDOM=0;
5977 GNULIB_RANDOM_R=0;
5978 GNULIB_REALLOC_POSIX=0;
5979 GNULIB_REALPATH=0;
5980 GNULIB_RPMATCH=0;
5981 GNULIB_SETENV=0;
5982 GNULIB_STRTOD=0;
5983 GNULIB_STRTOLL=0;
5984 GNULIB_STRTOULL=0;
5985 GNULIB_SYSTEM_POSIX=0;
5986 GNULIB_UNLOCKPT=0;
5987 GNULIB_UNSETENV=0;
5988 GNULIB_WCTOMB=0;
5989 HAVE__EXIT=1;
5990 HAVE_ATOLL=1;
5991 HAVE_CANONICALIZE_FILE_NAME=1;
5992 HAVE_DECL_GETLOADAVG=1;
5993 HAVE_GETSUBOPT=1;
5994 HAVE_GRANTPT=1;
5995 HAVE_MKDTEMP=1;
5996 HAVE_MKOSTEMP=1;
5997 HAVE_MKOSTEMPS=1;
5998 HAVE_MKSTEMP=1;
5999 HAVE_MKSTEMPS=1;
6000 HAVE_POSIX_OPENPT=1;
6001 HAVE_PTSNAME=1;
6002 HAVE_PTSNAME_R=1;
6003 HAVE_RANDOM=1;
6004 HAVE_RANDOM_H=1;
6005 HAVE_RANDOM_R=1;
6006 HAVE_REALPATH=1;
6007 HAVE_RPMATCH=1;
6008 HAVE_SETENV=1;
6009 HAVE_DECL_SETENV=1;
6010 HAVE_STRTOD=1;
6011 HAVE_STRTOLL=1;
6012 HAVE_STRTOULL=1;
6013 HAVE_STRUCT_RANDOM_DATA=1;
6014 HAVE_SYS_LOADAVG_H=0;
6015 HAVE_UNLOCKPT=1;
6016 HAVE_DECL_UNSETENV=1;
6017 REPLACE_CALLOC=0;
6018 REPLACE_CANONICALIZE_FILE_NAME=0;
6019 REPLACE_MALLOC=0;
6020 REPLACE_MBTOWC=0;
6021 REPLACE_MKSTEMP=0;
6022 REPLACE_PTSNAME=0;
6023 REPLACE_PTSNAME_R=0;
6024 REPLACE_PUTENV=0;
6025 REPLACE_RANDOM_R=0;
6026 REPLACE_REALLOC=0;
6027 REPLACE_REALPATH=0;
6028 REPLACE_SETENV=0;
6029 REPLACE_STRTOD=0;
6030 REPLACE_UNSETENV=0;
6031 REPLACE_WCTOMB=0;
6032
6033
6034
6035
6036 for ac_func in $ac_func_list
6037 do :
6038 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6039 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6040 eval as_val=\$$as_ac_var
6041 if test "x$as_val" = x""yes; then :
6042 cat >>confdefs.h <<_ACEOF
6043 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6044 _ACEOF
6045
6046 fi
6047 done
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
6058 $as_echo_n "checking whether // is distinct from /... " >&6; }
6059 if test "${gl_cv_double_slash_root+set}" = set; then :
6060 $as_echo_n "(cached) " >&6
6061 else
6062 if test x"$cross_compiling" = xyes ; then
6063 # When cross-compiling, there is no way to tell whether // is special
6064 # short of a list of hosts. However, the only known hosts to date
6065 # that have a distinct // are Apollo DomainOS (too old to port to),
6066 # Cygwin, and z/OS. If anyone knows of another system for which // has
6067 # special semantics and is distinct from /, please report it to
6068 # <bug-gnulib@gnu.org>.
6069 case $host in
6070 *-cygwin | i370-ibm-openedition)
6071 gl_cv_double_slash_root=yes ;;
6072 *)
6073 # Be optimistic and assume that / and // are the same when we
6074 # don't know.
6075 gl_cv_double_slash_root='unknown, assuming no' ;;
6076 esac
6077 else
6078 set x `ls -di / // 2>/dev/null`
6079 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
6080 gl_cv_double_slash_root=no
6081 else
6082 gl_cv_double_slash_root=yes
6083 fi
6084 fi
6085 fi
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
6087 $as_echo "$gl_cv_double_slash_root" >&6; }
6088 if test "$gl_cv_double_slash_root" = yes; then
6089
6090 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
6091
6092 fi
6093
6094
6095
6096
6097
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether realpath works" >&5
6099 $as_echo_n "checking whether realpath works... " >&6; }
6100 if test "${gl_cv_func_realpath_works+set}" = set; then :
6101 $as_echo_n "(cached) " >&6
6102 else
6103
6104 touch conftest.a
6105 mkdir conftest.d
6106 if test "$cross_compiling" = yes; then :
6107 case "$host_os" in
6108 # Guess yes on glibc systems.
6109 *-gnu* | gnu*) gl_cv_func_realpath_works="guessing yes" ;;
6110 # If we don't know, assume the worst.
6111 *) gl_cv_func_realpath_works="guessing no" ;;
6112 esac
6113
6114 else
6115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6116 /* end confdefs.h. */
6117
6118
6119
6120 #include <stdlib.h>
6121 #if defined __MACH__ && defined __APPLE__
6122 /* Avoid a crash on Mac OS X. */
6123 #include <mach/mach.h>
6124 #include <mach/mach_error.h>
6125 #include <mach/thread_status.h>
6126 #include <mach/exception.h>
6127 #include <mach/task.h>
6128 #include <pthread.h>
6129 /* The exception port on which our thread listens. */
6130 static mach_port_t our_exception_port;
6131 /* The main function of the thread listening for exceptions of type
6132 EXC_BAD_ACCESS. */
6133 static void *
6134 mach_exception_thread (void *arg)
6135 {
6136 /* Buffer for a message to be received. */
6137 struct {
6138 mach_msg_header_t head;
6139 mach_msg_body_t msgh_body;
6140 char data[1024];
6141 } msg;
6142 mach_msg_return_t retval;
6143 /* Wait for a message on the exception port. */
6144 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
6145 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
6146 if (retval != MACH_MSG_SUCCESS)
6147 abort ();
6148 exit (1);
6149 }
6150 static void
6151 nocrash_init (void)
6152 {
6153 mach_port_t self = mach_task_self ();
6154 /* Allocate a port on which the thread shall listen for exceptions. */
6155 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
6156 == KERN_SUCCESS) {
6157 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
6158 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
6159 MACH_MSG_TYPE_MAKE_SEND)
6160 == KERN_SUCCESS) {
6161 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
6162 for us. */
6163 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
6164 /* Create the thread listening on the exception port. */
6165 pthread_attr_t attr;
6166 pthread_t thread;
6167 if (pthread_attr_init (&attr) == 0
6168 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
6169 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
6170 pthread_attr_destroy (&attr);
6171 /* Replace the exception port info for these exceptions with our own.
6172 Note that we replace the exception port for the entire task, not only
6173 for a particular thread. This has the effect that when our exception
6174 port gets the message, the thread specific exception port has already
6175 been asked, and we don't need to bother about it.
6176 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
6177 task_set_exception_ports (self, mask, our_exception_port,
6178 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
6179 }
6180 }
6181 }
6182 }
6183 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
6184 /* Avoid a crash on native Windows. */
6185 #define WIN32_LEAN_AND_MEAN
6186 #include <windows.h>
6187 #include <winerror.h>
6188 static LONG WINAPI
6189 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
6190 {
6191 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
6192 {
6193 case EXCEPTION_ACCESS_VIOLATION:
6194 case EXCEPTION_IN_PAGE_ERROR:
6195 case EXCEPTION_STACK_OVERFLOW:
6196 case EXCEPTION_GUARD_PAGE:
6197 case EXCEPTION_PRIV_INSTRUCTION:
6198 case EXCEPTION_ILLEGAL_INSTRUCTION:
6199 case EXCEPTION_DATATYPE_MISALIGNMENT:
6200 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
6201 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
6202 exit (1);
6203 }
6204 return EXCEPTION_CONTINUE_SEARCH;
6205 }
6206 static void
6207 nocrash_init (void)
6208 {
6209 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
6210 }
6211 #else
6212 /* Avoid a crash on POSIX systems. */
6213 #include <signal.h>
6214 /* A POSIX signal handler. */
6215 static void
6216 exception_handler (int sig)
6217 {
6218 exit (1);
6219 }
6220 static void
6221 nocrash_init (void)
6222 {
6223 #ifdef SIGSEGV
6224 signal (SIGSEGV, exception_handler);
6225 #endif
6226 #ifdef SIGBUS
6227 signal (SIGBUS, exception_handler);
6228 #endif
6229 }
6230 #endif
6231
6232 #include <stdlib.h>
6233 #include <string.h>
6234
6235 int
6236 main ()
6237 {
6238
6239 int result = 0;
6240 {
6241 char *name = realpath ("conftest.a", NULL);
6242 if (!(name && *name == '/'))
6243 result |= 1;
6244 }
6245 {
6246 char *name = realpath ("conftest.b/../conftest.a", NULL);
6247 if (name != NULL)
6248 result |= 2;
6249 }
6250 {
6251 char *name = realpath ("conftest.a/", NULL);
6252 if (name != NULL)
6253 result |= 4;
6254 }
6255 {
6256 char *name1 = realpath (".", NULL);
6257 char *name2 = realpath ("conftest.d//./..", NULL);
6258 if (strcmp (name1, name2) != 0)
6259 result |= 8;
6260 }
6261 return result;
6262
6263 ;
6264 return 0;
6265 }
6266
6267 _ACEOF
6268 if ac_fn_c_try_run "$LINENO"; then :
6269 gl_cv_func_realpath_works=yes
6270 else
6271 gl_cv_func_realpath_works=no
6272 fi
6273 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6274 conftest.$ac_objext conftest.beam conftest.$ac_ext
6275 fi
6276
6277 rm -rf conftest.a conftest.d
6278
6279 fi
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_realpath_works" >&5
6281 $as_echo "$gl_cv_func_realpath_works" >&6; }
6282 case "$gl_cv_func_realpath_works" in
6283 *yes)
6284
6285 $as_echo "#define FUNC_REALPATH_WORKS 1" >>confdefs.h
6286
6287 ;;
6288 esac
6289
6290
6291
6292
6293 for ac_header in $ac_header_list
6294 do :
6295 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6296 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6297 "
6298 eval as_val=\$$as_ac_Header
6299 if test "x$as_val" = x""yes; then :
6300 cat >>confdefs.h <<_ACEOF
6301 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6302 _ACEOF
6303
6304 fi
6305
6306 done
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318 GNULIB_CHDIR=0;
6319 GNULIB_CHOWN=0;
6320 GNULIB_CLOSE=0;
6321 GNULIB_DUP=0;
6322 GNULIB_DUP2=0;
6323 GNULIB_DUP3=0;
6324 GNULIB_ENVIRON=0;
6325 GNULIB_EUIDACCESS=0;
6326 GNULIB_FACCESSAT=0;
6327 GNULIB_FCHDIR=0;
6328 GNULIB_FCHOWNAT=0;
6329 GNULIB_FDATASYNC=0;
6330 GNULIB_FSYNC=0;
6331 GNULIB_FTRUNCATE=0;
6332 GNULIB_GETCWD=0;
6333 GNULIB_GETDOMAINNAME=0;
6334 GNULIB_GETDTABLESIZE=0;
6335 GNULIB_GETGROUPS=0;
6336 GNULIB_GETHOSTNAME=0;
6337 GNULIB_GETLOGIN=0;
6338 GNULIB_GETLOGIN_R=0;
6339 GNULIB_GETPAGESIZE=0;
6340 GNULIB_GETUSERSHELL=0;
6341 GNULIB_GROUP_MEMBER=0;
6342 GNULIB_ISATTY=0;
6343 GNULIB_LCHOWN=0;
6344 GNULIB_LINK=0;
6345 GNULIB_LINKAT=0;
6346 GNULIB_LSEEK=0;
6347 GNULIB_PIPE=0;
6348 GNULIB_PIPE2=0;
6349 GNULIB_PREAD=0;
6350 GNULIB_PWRITE=0;
6351 GNULIB_READ=0;
6352 GNULIB_READLINK=0;
6353 GNULIB_READLINKAT=0;
6354 GNULIB_RMDIR=0;
6355 GNULIB_SETHOSTNAME=0;
6356 GNULIB_SLEEP=0;
6357 GNULIB_SYMLINK=0;
6358 GNULIB_SYMLINKAT=0;
6359 GNULIB_TTYNAME_R=0;
6360 GNULIB_UNISTD_H_NONBLOCKING=0;
6361 GNULIB_UNISTD_H_SIGPIPE=0;
6362 GNULIB_UNLINK=0;
6363 GNULIB_UNLINKAT=0;
6364 GNULIB_USLEEP=0;
6365 GNULIB_WRITE=0;
6366 HAVE_CHOWN=1;
6367 HAVE_DUP2=1;
6368 HAVE_DUP3=1;
6369 HAVE_EUIDACCESS=1;
6370 HAVE_FACCESSAT=1;
6371 HAVE_FCHDIR=1;
6372 HAVE_FCHOWNAT=1;
6373 HAVE_FDATASYNC=1;
6374 HAVE_FSYNC=1;
6375 HAVE_FTRUNCATE=1;
6376 HAVE_GETDTABLESIZE=1;
6377 HAVE_GETGROUPS=1;
6378 HAVE_GETHOSTNAME=1;
6379 HAVE_GETLOGIN=1;
6380 HAVE_GETPAGESIZE=1;
6381 HAVE_GROUP_MEMBER=1;
6382 HAVE_LCHOWN=1;
6383 HAVE_LINK=1;
6384 HAVE_LINKAT=1;
6385 HAVE_PIPE=1;
6386 HAVE_PIPE2=1;
6387 HAVE_PREAD=1;
6388 HAVE_PWRITE=1;
6389 HAVE_READLINK=1;
6390 HAVE_READLINKAT=1;
6391 HAVE_SETHOSTNAME=1;
6392 HAVE_SLEEP=1;
6393 HAVE_SYMLINK=1;
6394 HAVE_SYMLINKAT=1;
6395 HAVE_UNLINKAT=1;
6396 HAVE_USLEEP=1;
6397 HAVE_DECL_ENVIRON=1;
6398 HAVE_DECL_FCHDIR=1;
6399 HAVE_DECL_FDATASYNC=1;
6400 HAVE_DECL_GETDOMAINNAME=1;
6401 HAVE_DECL_GETLOGIN_R=1;
6402 HAVE_DECL_GETPAGESIZE=1;
6403 HAVE_DECL_GETUSERSHELL=1;
6404 HAVE_DECL_SETHOSTNAME=1;
6405 HAVE_DECL_TTYNAME_R=1;
6406 HAVE_OS_H=0;
6407 HAVE_SYS_PARAM_H=0;
6408 REPLACE_CHOWN=0;
6409 REPLACE_CLOSE=0;
6410 REPLACE_DUP=0;
6411 REPLACE_DUP2=0;
6412 REPLACE_FCHOWNAT=0;
6413 REPLACE_FTRUNCATE=0;
6414 REPLACE_GETCWD=0;
6415 REPLACE_GETDOMAINNAME=0;
6416 REPLACE_GETLOGIN_R=0;
6417 REPLACE_GETGROUPS=0;
6418 REPLACE_GETPAGESIZE=0;
6419 REPLACE_ISATTY=0;
6420 REPLACE_LCHOWN=0;
6421 REPLACE_LINK=0;
6422 REPLACE_LINKAT=0;
6423 REPLACE_LSEEK=0;
6424 REPLACE_PREAD=0;
6425 REPLACE_PWRITE=0;
6426 REPLACE_READ=0;
6427 REPLACE_READLINK=0;
6428 REPLACE_RMDIR=0;
6429 REPLACE_SLEEP=0;
6430 REPLACE_SYMLINK=0;
6431 REPLACE_TTYNAME_R=0;
6432 REPLACE_UNLINK=0;
6433 REPLACE_UNLINKAT=0;
6434 REPLACE_USLEEP=0;
6435 REPLACE_WRITE=0;
6436 UNISTD_H_HAVE_WINSOCK2_H=0;
6437 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
6438
6439
6440
6441 GNULIB_OPENDIR=0;
6442 GNULIB_READDIR=0;
6443 GNULIB_REWINDDIR=0;
6444 GNULIB_CLOSEDIR=0;
6445 GNULIB_DIRFD=0;
6446 GNULIB_FDOPENDIR=0;
6447 GNULIB_SCANDIR=0;
6448 GNULIB_ALPHASORT=0;
6449 HAVE_OPENDIR=1;
6450 HAVE_READDIR=1;
6451 HAVE_REWINDDIR=1;
6452 HAVE_CLOSEDIR=1;
6453 HAVE_DECL_DIRFD=1;
6454 HAVE_DECL_FDOPENDIR=1;
6455 HAVE_FDOPENDIR=1;
6456 HAVE_SCANDIR=1;
6457 HAVE_ALPHASORT=1;
6458 REPLACE_OPENDIR=0;
6459 REPLACE_CLOSEDIR=0;
6460 REPLACE_DIRFD=0;
6461 REPLACE_FDOPENDIR=0;
6462
6463
6464
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
6466 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
6467 if test "${gl_cv_have_include_next+set}" = set; then :
6468 $as_echo_n "(cached) " >&6
6469 else
6470 rm -rf conftestd1a conftestd1b conftestd2
6471 mkdir conftestd1a conftestd1b conftestd2
6472 cat <<EOF > conftestd1a/conftest.h
6473 #define DEFINED_IN_CONFTESTD1
6474 #include_next <conftest.h>
6475 #ifdef DEFINED_IN_CONFTESTD2
6476 int foo;
6477 #else
6478 #error "include_next doesn't work"
6479 #endif
6480 EOF
6481 cat <<EOF > conftestd1b/conftest.h
6482 #define DEFINED_IN_CONFTESTD1
6483 #include <stdio.h>
6484 #include_next <conftest.h>
6485 #ifdef DEFINED_IN_CONFTESTD2
6486 int foo;
6487 #else
6488 #error "include_next doesn't work"
6489 #endif
6490 EOF
6491 cat <<EOF > conftestd2/conftest.h
6492 #ifndef DEFINED_IN_CONFTESTD1
6493 #error "include_next test doesn't work"
6494 #endif
6495 #define DEFINED_IN_CONFTESTD2
6496 EOF
6497 gl_save_CPPFLAGS="$CPPFLAGS"
6498 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
6499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6500 /* end confdefs.h. */
6501 #include <conftest.h>
6502 _ACEOF
6503 if ac_fn_c_try_compile "$LINENO"; then :
6504 gl_cv_have_include_next=yes
6505 else
6506 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
6507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6508 /* end confdefs.h. */
6509 #include <conftest.h>
6510 _ACEOF
6511 if ac_fn_c_try_compile "$LINENO"; then :
6512 gl_cv_have_include_next=buggy
6513 else
6514 gl_cv_have_include_next=no
6515 fi
6516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6517
6518 fi
6519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6520 CPPFLAGS="$gl_save_CPPFLAGS"
6521 rm -rf conftestd1a conftestd1b conftestd2
6522
6523 fi
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
6525 $as_echo "$gl_cv_have_include_next" >&6; }
6526 PRAGMA_SYSTEM_HEADER=
6527 if test $gl_cv_have_include_next = yes; then
6528 INCLUDE_NEXT=include_next
6529 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
6530 if test -n "$GCC"; then
6531 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
6532 fi
6533 else
6534 if test $gl_cv_have_include_next = buggy; then
6535 INCLUDE_NEXT=include
6536 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
6537 else
6538 INCLUDE_NEXT=include
6539 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
6540 fi
6541 fi
6542
6543
6544
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
6546 $as_echo_n "checking whether system header files limit the line length... " >&6; }
6547 if test "${gl_cv_pragma_columns+set}" = set; then :
6548 $as_echo_n "(cached) " >&6
6549 else
6550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6551 /* end confdefs.h. */
6552
6553 #ifdef __TANDEM
6554 choke me
6555 #endif
6556
6557 _ACEOF
6558 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6559 $EGREP "choke me" >/dev/null 2>&1; then :
6560 gl_cv_pragma_columns=yes
6561 else
6562 gl_cv_pragma_columns=no
6563 fi
6564 rm -f conftest*
6565
6566
6567 fi
6568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
6569 $as_echo "$gl_cv_pragma_columns" >&6; }
6570 if test $gl_cv_pragma_columns = yes; then
6571 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
6572 else
6573 PRAGMA_COLUMNS=
6574 fi
6575
6576
6577
6578
6579
6580
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
6582 $as_echo_n "checking for complete errno.h... " >&6; }
6583 if test "${gl_cv_header_errno_h_complete+set}" = set; then :
6584 $as_echo_n "(cached) " >&6
6585 else
6586
6587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6588 /* end confdefs.h. */
6589
6590 #include <errno.h>
6591 #if !defined ETXTBSY
6592 booboo
6593 #endif
6594 #if !defined ENOMSG
6595 booboo
6596 #endif
6597 #if !defined EIDRM
6598 booboo
6599 #endif
6600 #if !defined ENOLINK
6601 booboo
6602 #endif
6603 #if !defined EPROTO
6604 booboo
6605 #endif
6606 #if !defined EMULTIHOP
6607 booboo
6608 #endif
6609 #if !defined EBADMSG
6610 booboo
6611 #endif
6612 #if !defined EOVERFLOW
6613 booboo
6614 #endif
6615 #if !defined ENOTSUP
6616 booboo
6617 #endif
6618 #if !defined ENETRESET
6619 booboo
6620 #endif
6621 #if !defined ECONNABORTED
6622 booboo
6623 #endif
6624 #if !defined ESTALE
6625 booboo
6626 #endif
6627 #if !defined EDQUOT
6628 booboo
6629 #endif
6630 #if !defined ECANCELED
6631 booboo
6632 #endif
6633 #if !defined EOWNERDEAD
6634 booboo
6635 #endif
6636 #if !defined ENOTRECOVERABLE
6637 booboo
6638 #endif
6639 #if !defined EILSEQ
6640 booboo
6641 #endif
6642
6643 _ACEOF
6644 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6645 $EGREP "booboo" >/dev/null 2>&1; then :
6646 gl_cv_header_errno_h_complete=no
6647 else
6648 gl_cv_header_errno_h_complete=yes
6649 fi
6650 rm -f conftest*
6651
6652
6653 fi
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
6655 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
6656 if test $gl_cv_header_errno_h_complete = yes; then
6657 ERRNO_H=''
6658 else
6659
6660
6661
6662
6663
6664
6665
6666
6667 if test $gl_cv_have_include_next = yes; then
6668 gl_cv_next_errno_h='<'errno.h'>'
6669 else
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
6671 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
6672 if test "${gl_cv_next_errno_h+set}" = set; then :
6673 $as_echo_n "(cached) " >&6
6674 else
6675
6676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6677 /* end confdefs.h. */
6678 #include <errno.h>
6679
6680 _ACEOF
6681 case "$host_os" in
6682 aix*) gl_absname_cpp="$ac_cpp -C" ;;
6683 *) gl_absname_cpp="$ac_cpp" ;;
6684 esac
6685
6686 case "$host_os" in
6687 mingw*)
6688 gl_dirsep_regex='[/\\]'
6689 ;;
6690 *)
6691 gl_dirsep_regex='\/'
6692 ;;
6693 esac
6694 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
6695
6696 gl_header_literal_regex=`echo 'errno.h' \
6697 | sed -e "$gl_make_literal_regex_sed"`
6698 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
6699 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
6700 s|^/[^/]|//&|
6701 p
6702 q
6703 }'
6704 gl_cv_next_errno_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6705 sed -n "$gl_absolute_header_sed"`'"'
6706
6707
6708 fi
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
6710 $as_echo "$gl_cv_next_errno_h" >&6; }
6711 fi
6712 NEXT_ERRNO_H=$gl_cv_next_errno_h
6713
6714 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
6715 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6716 gl_next_as_first_directive='<'errno.h'>'
6717 else
6718 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6719 gl_next_as_first_directive=$gl_cv_next_errno_h
6720 fi
6721 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
6722
6723
6724
6725
6726 ERRNO_H='errno.h'
6727 fi
6728
6729 if test -n "$ERRNO_H"; then
6730 GL_GENERATE_ERRNO_H_TRUE=
6731 GL_GENERATE_ERRNO_H_FALSE='#'
6732 else
6733 GL_GENERATE_ERRNO_H_TRUE='#'
6734 GL_GENERATE_ERRNO_H_FALSE=
6735 fi
6736
6737
6738 if test -n "$ERRNO_H"; then
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
6740 $as_echo_n "checking for EMULTIHOP value... " >&6; }
6741 if test "${gl_cv_header_errno_h_EMULTIHOP+set}" = set; then :
6742 $as_echo_n "(cached) " >&6
6743 else
6744
6745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6746 /* end confdefs.h. */
6747
6748 #include <errno.h>
6749 #ifdef EMULTIHOP
6750 yes
6751 #endif
6752
6753 _ACEOF
6754 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6755 $EGREP "yes" >/dev/null 2>&1; then :
6756 gl_cv_header_errno_h_EMULTIHOP=yes
6757 else
6758 gl_cv_header_errno_h_EMULTIHOP=no
6759 fi
6760 rm -f conftest*
6761
6762 if test $gl_cv_header_errno_h_EMULTIHOP = no; then
6763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6764 /* end confdefs.h. */
6765
6766 #define _XOPEN_SOURCE_EXTENDED 1
6767 #include <errno.h>
6768 #ifdef EMULTIHOP
6769 yes
6770 #endif
6771
6772 _ACEOF
6773 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6774 $EGREP "yes" >/dev/null 2>&1; then :
6775 gl_cv_header_errno_h_EMULTIHOP=hidden
6776 fi
6777 rm -f conftest*
6778
6779 if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
6780 if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
6781 #define _XOPEN_SOURCE_EXTENDED 1
6782 #include <errno.h>
6783 /* The following two lines are a workaround against an autoconf-2.52 bug. */
6784 #include <stdio.h>
6785 #include <stdlib.h>
6786 "; then :
6787
6788 fi
6789
6790 fi
6791 fi
6792
6793 fi
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
6795 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
6796 case $gl_cv_header_errno_h_EMULTIHOP in
6797 yes | no)
6798 EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
6799 ;;
6800 *)
6801 EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
6802 ;;
6803 esac
6804
6805
6806 fi
6807
6808
6809 if test -n "$ERRNO_H"; then
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
6811 $as_echo_n "checking for ENOLINK value... " >&6; }
6812 if test "${gl_cv_header_errno_h_ENOLINK+set}" = set; then :
6813 $as_echo_n "(cached) " >&6
6814 else
6815
6816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6817 /* end confdefs.h. */
6818
6819 #include <errno.h>
6820 #ifdef ENOLINK
6821 yes
6822 #endif
6823
6824 _ACEOF
6825 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6826 $EGREP "yes" >/dev/null 2>&1; then :
6827 gl_cv_header_errno_h_ENOLINK=yes
6828 else
6829 gl_cv_header_errno_h_ENOLINK=no
6830 fi
6831 rm -f conftest*
6832
6833 if test $gl_cv_header_errno_h_ENOLINK = no; then
6834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6835 /* end confdefs.h. */
6836
6837 #define _XOPEN_SOURCE_EXTENDED 1
6838 #include <errno.h>
6839 #ifdef ENOLINK
6840 yes
6841 #endif
6842
6843 _ACEOF
6844 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6845 $EGREP "yes" >/dev/null 2>&1; then :
6846 gl_cv_header_errno_h_ENOLINK=hidden
6847 fi
6848 rm -f conftest*
6849
6850 if test $gl_cv_header_errno_h_ENOLINK = hidden; then
6851 if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
6852 #define _XOPEN_SOURCE_EXTENDED 1
6853 #include <errno.h>
6854 /* The following two lines are a workaround against an autoconf-2.52 bug. */
6855 #include <stdio.h>
6856 #include <stdlib.h>
6857 "; then :
6858
6859 fi
6860
6861 fi
6862 fi
6863
6864 fi
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
6866 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
6867 case $gl_cv_header_errno_h_ENOLINK in
6868 yes | no)
6869 ENOLINK_HIDDEN=0; ENOLINK_VALUE=
6870 ;;
6871 *)
6872 ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
6873 ;;
6874 esac
6875
6876
6877 fi
6878
6879
6880 if test -n "$ERRNO_H"; then
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
6882 $as_echo_n "checking for EOVERFLOW value... " >&6; }
6883 if test "${gl_cv_header_errno_h_EOVERFLOW+set}" = set; then :
6884 $as_echo_n "(cached) " >&6
6885 else
6886
6887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6888 /* end confdefs.h. */
6889
6890 #include <errno.h>
6891 #ifdef EOVERFLOW
6892 yes
6893 #endif
6894
6895 _ACEOF
6896 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6897 $EGREP "yes" >/dev/null 2>&1; then :
6898 gl_cv_header_errno_h_EOVERFLOW=yes
6899 else
6900 gl_cv_header_errno_h_EOVERFLOW=no
6901 fi
6902 rm -f conftest*
6903
6904 if test $gl_cv_header_errno_h_EOVERFLOW = no; then
6905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6906 /* end confdefs.h. */
6907
6908 #define _XOPEN_SOURCE_EXTENDED 1
6909 #include <errno.h>
6910 #ifdef EOVERFLOW
6911 yes
6912 #endif
6913
6914 _ACEOF
6915 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6916 $EGREP "yes" >/dev/null 2>&1; then :
6917 gl_cv_header_errno_h_EOVERFLOW=hidden
6918 fi
6919 rm -f conftest*
6920
6921 if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
6922 if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
6923 #define _XOPEN_SOURCE_EXTENDED 1
6924 #include <errno.h>
6925 /* The following two lines are a workaround against an autoconf-2.52 bug. */
6926 #include <stdio.h>
6927 #include <stdlib.h>
6928 "; then :
6929
6930 fi
6931
6932 fi
6933 fi
6934
6935 fi
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
6937 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
6938 case $gl_cv_header_errno_h_EOVERFLOW in
6939 yes | no)
6940 EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
6941 ;;
6942 *)
6943 EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
6944 ;;
6945 esac
6946
6947
6948 fi
6949
6950
6951
6952
6953
6954
6955
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
6957 $as_echo_n "checking for mbstate_t... " >&6; }
6958 if test "${ac_cv_type_mbstate_t+set}" = set; then :
6959 $as_echo_n "(cached) " >&6
6960 else
6961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6962 /* end confdefs.h. */
6963 $ac_includes_default
6964 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
6965 <wchar.h>.
6966 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6967 included before <wchar.h>. */
6968 #include <stddef.h>
6969 #include <stdio.h>
6970 #include <time.h>
6971 #include <wchar.h>
6972 int
6973 main ()
6974 {
6975 mbstate_t x; return sizeof x;
6976 ;
6977 return 0;
6978 }
6979 _ACEOF
6980 if ac_fn_c_try_compile "$LINENO"; then :
6981 ac_cv_type_mbstate_t=yes
6982 else
6983 ac_cv_type_mbstate_t=no
6984 fi
6985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6986 fi
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
6988 $as_echo "$ac_cv_type_mbstate_t" >&6; }
6989 if test $ac_cv_type_mbstate_t = yes; then
6990
6991 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
6992
6993 else
6994
6995 $as_echo "#define mbstate_t int" >>confdefs.h
6996
6997 fi
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018 GNULIB_ACOSF=0;
7019 GNULIB_ACOSL=0;
7020 GNULIB_ASINF=0;
7021 GNULIB_ASINL=0;
7022 GNULIB_ATANF=0;
7023 GNULIB_ATANL=0;
7024 GNULIB_ATAN2F=0;
7025 GNULIB_CBRT=0;
7026 GNULIB_CBRTF=0;
7027 GNULIB_CBRTL=0;
7028 GNULIB_CEIL=0;
7029 GNULIB_CEILF=0;
7030 GNULIB_CEILL=0;
7031 GNULIB_COPYSIGN=0;
7032 GNULIB_COPYSIGNF=0;
7033 GNULIB_COPYSIGNL=0;
7034 GNULIB_COSF=0;
7035 GNULIB_COSL=0;
7036 GNULIB_COSHF=0;
7037 GNULIB_EXPF=0;
7038 GNULIB_EXPL=0;
7039 GNULIB_EXP2=0;
7040 GNULIB_EXP2F=0;
7041 GNULIB_EXP2L=0;
7042 GNULIB_EXPM1=0;
7043 GNULIB_EXPM1F=0;
7044 GNULIB_EXPM1L=0;
7045 GNULIB_FABSF=0;
7046 GNULIB_FABSL=0;
7047 GNULIB_FLOOR=0;
7048 GNULIB_FLOORF=0;
7049 GNULIB_FLOORL=0;
7050 GNULIB_FMA=0;
7051 GNULIB_FMAF=0;
7052 GNULIB_FMAL=0;
7053 GNULIB_FMOD=0;
7054 GNULIB_FMODF=0;
7055 GNULIB_FMODL=0;
7056 GNULIB_FREXPF=0;
7057 GNULIB_FREXP=0;
7058 GNULIB_FREXPL=0;
7059 GNULIB_HYPOT=0;
7060 GNULIB_HYPOTF=0;
7061 GNULIB_HYPOTL=0;
7062 GNULIB_ILOGB=0;
7063 GNULIB_ILOGBF=0;
7064 GNULIB_ILOGBL=0;
7065 GNULIB_ISFINITE=0;
7066 GNULIB_ISINF=0;
7067 GNULIB_ISNAN=0;
7068 GNULIB_ISNANF=0;
7069 GNULIB_ISNAND=0;
7070 GNULIB_ISNANL=0;
7071 GNULIB_LDEXPF=0;
7072 GNULIB_LDEXPL=0;
7073 GNULIB_LOG=0;
7074 GNULIB_LOGF=0;
7075 GNULIB_LOGL=0;
7076 GNULIB_LOG10=0;
7077 GNULIB_LOG10F=0;
7078 GNULIB_LOG10L=0;
7079 GNULIB_LOG1P=0;
7080 GNULIB_LOG1PF=0;
7081 GNULIB_LOG1PL=0;
7082 GNULIB_LOG2=0;
7083 GNULIB_LOG2F=0;
7084 GNULIB_LOG2L=0;
7085 GNULIB_LOGB=0;
7086 GNULIB_LOGBF=0;
7087 GNULIB_LOGBL=0;
7088 GNULIB_MODF=0;
7089 GNULIB_MODFF=0;
7090 GNULIB_MODFL=0;
7091 GNULIB_POWF=0;
7092 GNULIB_REMAINDER=0;
7093 GNULIB_REMAINDERF=0;
7094 GNULIB_REMAINDERL=0;
7095 GNULIB_RINT=0;
7096 GNULIB_RINTF=0;
7097 GNULIB_RINTL=0;
7098 GNULIB_ROUND=0;
7099 GNULIB_ROUNDF=0;
7100 GNULIB_ROUNDL=0;
7101 GNULIB_SIGNBIT=0;
7102 GNULIB_SINF=0;
7103 GNULIB_SINL=0;
7104 GNULIB_SINHF=0;
7105 GNULIB_SQRTF=0;
7106 GNULIB_SQRTL=0;
7107 GNULIB_TANF=0;
7108 GNULIB_TANL=0;
7109 GNULIB_TANHF=0;
7110 GNULIB_TRUNC=0;
7111 GNULIB_TRUNCF=0;
7112 GNULIB_TRUNCL=0;
7113 HAVE_ACOSF=1;
7114 HAVE_ACOSL=1;
7115 HAVE_ASINF=1;
7116 HAVE_ASINL=1;
7117 HAVE_ATANF=1;
7118 HAVE_ATANL=1;
7119 HAVE_ATAN2F=1;
7120 HAVE_CBRT=1;
7121 HAVE_CBRTF=1;
7122 HAVE_CBRTL=1;
7123 HAVE_COPYSIGN=1;
7124 HAVE_COPYSIGNL=1;
7125 HAVE_COSF=1;
7126 HAVE_COSL=1;
7127 HAVE_COSHF=1;
7128 HAVE_EXPF=1;
7129 HAVE_EXPL=1;
7130 HAVE_EXPM1=1;
7131 HAVE_EXPM1F=1;
7132 HAVE_FABSF=1;
7133 HAVE_FABSL=1;
7134 HAVE_FMA=1;
7135 HAVE_FMAF=1;
7136 HAVE_FMAL=1;
7137 HAVE_FMODF=1;
7138 HAVE_FMODL=1;
7139 HAVE_FREXPF=1;
7140 HAVE_HYPOTF=1;
7141 HAVE_HYPOTL=1;
7142 HAVE_ILOGB=1;
7143 HAVE_ILOGBF=1;
7144 HAVE_ILOGBL=1;
7145 HAVE_ISNANF=1;
7146 HAVE_ISNAND=1;
7147 HAVE_ISNANL=1;
7148 HAVE_LDEXPF=1;
7149 HAVE_LOGF=1;
7150 HAVE_LOGL=1;
7151 HAVE_LOG10F=1;
7152 HAVE_LOG10L=1;
7153 HAVE_LOG1P=1;
7154 HAVE_LOG1PF=1;
7155 HAVE_LOG1PL=1;
7156 HAVE_LOGBF=1;
7157 HAVE_LOGBL=1;
7158 HAVE_MODFF=1;
7159 HAVE_MODFL=1;
7160 HAVE_POWF=1;
7161 HAVE_REMAINDER=1;
7162 HAVE_REMAINDERF=1;
7163 HAVE_RINT=1;
7164 HAVE_RINTL=1;
7165 HAVE_SINF=1;
7166 HAVE_SINL=1;
7167 HAVE_SINHF=1;
7168 HAVE_SQRTF=1;
7169 HAVE_SQRTL=1;
7170 HAVE_TANF=1;
7171 HAVE_TANL=1;
7172 HAVE_TANHF=1;
7173 HAVE_DECL_ACOSL=1;
7174 HAVE_DECL_ASINL=1;
7175 HAVE_DECL_ATANL=1;
7176 HAVE_DECL_CBRTF=1;
7177 HAVE_DECL_CBRTL=1;
7178 HAVE_DECL_CEILF=1;
7179 HAVE_DECL_CEILL=1;
7180 HAVE_DECL_COPYSIGNF=1;
7181 HAVE_DECL_COSL=1;
7182 HAVE_DECL_EXPL=1;
7183 HAVE_DECL_EXP2=1;
7184 HAVE_DECL_EXP2F=1;
7185 HAVE_DECL_EXP2L=1;
7186 HAVE_DECL_EXPM1L=1;
7187 HAVE_DECL_FLOORF=1;
7188 HAVE_DECL_FLOORL=1;
7189 HAVE_DECL_FREXPL=1;
7190 HAVE_DECL_LDEXPL=1;
7191 HAVE_DECL_LOGL=1;
7192 HAVE_DECL_LOG10L=1;
7193 HAVE_DECL_LOG2=1;
7194 HAVE_DECL_LOG2F=1;
7195 HAVE_DECL_LOG2L=1;
7196 HAVE_DECL_LOGB=1;
7197 HAVE_DECL_REMAINDER=1;
7198 HAVE_DECL_REMAINDERL=1;
7199 HAVE_DECL_RINTF=1;
7200 HAVE_DECL_ROUND=1;
7201 HAVE_DECL_ROUNDF=1;
7202 HAVE_DECL_ROUNDL=1;
7203 HAVE_DECL_SINL=1;
7204 HAVE_DECL_SQRTL=1;
7205 HAVE_DECL_TANL=1;
7206 HAVE_DECL_TRUNC=1;
7207 HAVE_DECL_TRUNCF=1;
7208 HAVE_DECL_TRUNCL=1;
7209 REPLACE_CBRTF=0;
7210 REPLACE_CBRTL=0;
7211 REPLACE_CEIL=0;
7212 REPLACE_CEILF=0;
7213 REPLACE_CEILL=0;
7214 REPLACE_EXPM1=0;
7215 REPLACE_EXPM1F=0;
7216 REPLACE_EXP2=0;
7217 REPLACE_EXP2L=0;
7218 REPLACE_FABSL=0;
7219 REPLACE_FLOOR=0;
7220 REPLACE_FLOORF=0;
7221 REPLACE_FLOORL=0;
7222 REPLACE_FMA=0;
7223 REPLACE_FMAF=0;
7224 REPLACE_FMAL=0;
7225 REPLACE_FMOD=0;
7226 REPLACE_FMODF=0;
7227 REPLACE_FMODL=0;
7228 REPLACE_FREXPF=0;
7229 REPLACE_FREXP=0;
7230 REPLACE_FREXPL=0;
7231 REPLACE_HUGE_VAL=0;
7232 REPLACE_HYPOT=0;
7233 REPLACE_HYPOTF=0;
7234 REPLACE_HYPOTL=0;
7235 REPLACE_ILOGB=0;
7236 REPLACE_ILOGBF=0;
7237 REPLACE_ISFINITE=0;
7238 REPLACE_ISINF=0;
7239 REPLACE_ISNAN=0;
7240 REPLACE_LDEXPL=0;
7241 REPLACE_LOG=0;
7242 REPLACE_LOGF=0;
7243 REPLACE_LOGL=0;
7244 REPLACE_LOG10=0;
7245 REPLACE_LOG10F=0;
7246 REPLACE_LOG10L=0;
7247 REPLACE_LOG1P=0;
7248 REPLACE_LOG1PF=0;
7249 REPLACE_LOG1PL=0;
7250 REPLACE_LOG2=0;
7251 REPLACE_LOG2F=0;
7252 REPLACE_LOG2L=0;
7253 REPLACE_LOGB=0;
7254 REPLACE_LOGBF=0;
7255 REPLACE_LOGBL=0;
7256 REPLACE_MODF=0;
7257 REPLACE_MODFF=0;
7258 REPLACE_MODFL=0;
7259 REPLACE_NAN=0;
7260 REPLACE_REMAINDER=0;
7261 REPLACE_REMAINDERF=0;
7262 REPLACE_REMAINDERL=0;
7263 REPLACE_ROUND=0;
7264 REPLACE_ROUNDF=0;
7265 REPLACE_ROUNDL=0;
7266 REPLACE_SIGNBIT=0;
7267 REPLACE_SIGNBIT_USING_GCC=0;
7268 REPLACE_SQRTL=0;
7269 REPLACE_TRUNC=0;
7270 REPLACE_TRUNCF=0;
7271 REPLACE_TRUNCL=0;
7272
7273
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used without linking with libm" >&5
7275 $as_echo_n "checking whether frexp() can be used without linking with libm... " >&6; }
7276 if test "${gl_cv_func_frexp_no_libm+set}" = set; then :
7277 $as_echo_n "(cached) " >&6
7278 else
7279
7280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7281 /* end confdefs.h. */
7282 #include <math.h>
7283 double x;
7284 int
7285 main ()
7286 {
7287 int e; return frexp (x, &e) > 0;
7288 ;
7289 return 0;
7290 }
7291 _ACEOF
7292 if ac_fn_c_try_link "$LINENO"; then :
7293 gl_cv_func_frexp_no_libm=yes
7294 else
7295 gl_cv_func_frexp_no_libm=no
7296 fi
7297 rm -f core conftest.err conftest.$ac_objext \
7298 conftest$ac_exeext conftest.$ac_ext
7299
7300 fi
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_no_libm" >&5
7302 $as_echo "$gl_cv_func_frexp_no_libm" >&6; }
7303
7304
7305
7306
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long double and double are the same" >&5
7308 $as_echo_n "checking whether long double and double are the same... " >&6; }
7309 if test "${gl_cv_long_double_equals_double+set}" = set; then :
7310 $as_echo_n "(cached) " >&6
7311 else
7312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7313 /* end confdefs.h. */
7314 #include <float.h>
7315 int
7316 main ()
7317 {
7318 typedef int check[sizeof (long double) == sizeof (double)
7319 && LDBL_MANT_DIG == DBL_MANT_DIG
7320 && LDBL_MAX_EXP == DBL_MAX_EXP
7321 && LDBL_MIN_EXP == DBL_MIN_EXP
7322 ? 1 : -1];
7323
7324 ;
7325 return 0;
7326 }
7327 _ACEOF
7328 if ac_fn_c_try_compile "$LINENO"; then :
7329 gl_cv_long_double_equals_double=yes
7330 else
7331 gl_cv_long_double_equals_double=no
7332 fi
7333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7334
7335 fi
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_long_double_equals_double" >&5
7337 $as_echo "$gl_cv_long_double_equals_double" >&6; }
7338 if test $gl_cv_long_double_equals_double = yes; then
7339
7340 $as_echo "#define HAVE_SAME_LONG_DOUBLE_AS_DOUBLE 1" >>confdefs.h
7341
7342 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=1
7343 else
7344 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=0
7345 fi
7346
7347
7348
7349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
7350 $as_echo_n "checking for unsigned long long int... " >&6; }
7351 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
7352 $as_echo_n "(cached) " >&6
7353 else
7354 ac_cv_type_unsigned_long_long_int=yes
7355 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
7356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357 /* end confdefs.h. */
7358
7359 /* For now, do not test the preprocessor; as of 2007 there are too many
7360 implementations with broken preprocessors. Perhaps this can
7361 be revisited in 2012. In the meantime, code should not expect
7362 #if to work with literals wider than 32 bits. */
7363 /* Test literals. */
7364 long long int ll = 9223372036854775807ll;
7365 long long int nll = -9223372036854775807LL;
7366 unsigned long long int ull = 18446744073709551615ULL;
7367 /* Test constant expressions. */
7368 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
7369 ? 1 : -1)];
7370 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
7371 ? 1 : -1)];
7372 int i = 63;
7373 int
7374 main ()
7375 {
7376 /* Test availability of runtime routines for shift and division. */
7377 long long int llmax = 9223372036854775807ll;
7378 unsigned long long int ullmax = 18446744073709551615ull;
7379 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
7380 | (llmax / ll) | (llmax % ll)
7381 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
7382 | (ullmax / ull) | (ullmax % ull));
7383 ;
7384 return 0;
7385 }
7386
7387 _ACEOF
7388 if ac_fn_c_try_link "$LINENO"; then :
7389
7390 else
7391 ac_cv_type_unsigned_long_long_int=no
7392 fi
7393 rm -f core conftest.err conftest.$ac_objext \
7394 conftest$ac_exeext conftest.$ac_ext
7395 fi
7396 fi
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
7398 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
7399 if test $ac_cv_type_unsigned_long_long_int = yes; then
7400
7401 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
7402
7403 fi
7404
7405
7406
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
7408 $as_echo_n "checking for long long int... " >&6; }
7409 if test "${ac_cv_type_long_long_int+set}" = set; then :
7410 $as_echo_n "(cached) " >&6
7411 else
7412 ac_cv_type_long_long_int=yes
7413 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
7414 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
7415 if test $ac_cv_type_long_long_int = yes; then
7416 if test "$cross_compiling" = yes; then :
7417 :
7418 else
7419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7420 /* end confdefs.h. */
7421 #include <limits.h>
7422 #ifndef LLONG_MAX
7423 # define HALF \
7424 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
7425 # define LLONG_MAX (HALF - 1 + HALF)
7426 #endif
7427 int
7428 main ()
7429 {
7430 long long int n = 1;
7431 int i;
7432 for (i = 0; ; i++)
7433 {
7434 long long int m = n << i;
7435 if (m >> i != n)
7436 return 1;
7437 if (LLONG_MAX / 2 < m)
7438 break;
7439 }
7440 return 0;
7441 ;
7442 return 0;
7443 }
7444 _ACEOF
7445 if ac_fn_c_try_run "$LINENO"; then :
7446
7447 else
7448 ac_cv_type_long_long_int=no
7449 fi
7450 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7451 conftest.$ac_objext conftest.beam conftest.$ac_ext
7452 fi
7453
7454 fi
7455 fi
7456 fi
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
7458 $as_echo "$ac_cv_type_long_long_int" >&6; }
7459 if test $ac_cv_type_long_long_int = yes; then
7460
7461 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
7462
7463 fi
7464
7465
7466
7467
7468
7469
7470 gl_cv_c_multiarch=no
7471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7472 /* end confdefs.h. */
7473 #ifndef __APPLE_CC__
7474 not a universal capable compiler
7475 #endif
7476 typedef int dummy;
7477
7478 _ACEOF
7479 if ac_fn_c_try_compile "$LINENO"; then :
7480
7481 arch=
7482 prev=
7483 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
7484 if test -n "$prev"; then
7485 case $word in
7486 i?86 | x86_64 | ppc | ppc64)
7487 if test -z "$arch" || test "$arch" = "$word"; then
7488 arch="$word"
7489 else
7490 gl_cv_c_multiarch=yes
7491 fi
7492 ;;
7493 esac
7494 prev=
7495 else
7496 if test "x$word" = "x-arch"; then
7497 prev=arch
7498 fi
7499 fi
7500 done
7501
7502 fi
7503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7504 if test $gl_cv_c_multiarch = yes; then
7505 APPLE_UNIVERSAL_BUILD=1
7506 else
7507 APPLE_UNIVERSAL_BUILD=0
7508 fi
7509
7510
7511
7512
7513
7514 if test $ac_cv_type_long_long_int = yes; then
7515 HAVE_LONG_LONG_INT=1
7516 else
7517 HAVE_LONG_LONG_INT=0
7518 fi
7519
7520
7521 if test $ac_cv_type_unsigned_long_long_int = yes; then
7522 HAVE_UNSIGNED_LONG_LONG_INT=1
7523 else
7524 HAVE_UNSIGNED_LONG_LONG_INT=0
7525 fi
7526
7527
7528
7529 if test $ac_cv_header_wchar_h = yes; then
7530 HAVE_WCHAR_H=1
7531 else
7532 HAVE_WCHAR_H=0
7533 fi
7534
7535
7536 if test $ac_cv_header_inttypes_h = yes; then
7537 HAVE_INTTYPES_H=1
7538 else
7539 HAVE_INTTYPES_H=0
7540 fi
7541
7542
7543 if test $ac_cv_header_sys_types_h = yes; then
7544 HAVE_SYS_TYPES_H=1
7545 else
7546 HAVE_SYS_TYPES_H=0
7547 fi
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559 if test $gl_cv_have_include_next = yes; then
7560 gl_cv_next_stdint_h='<'stdint.h'>'
7561 else
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
7563 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
7564 if test "${gl_cv_next_stdint_h+set}" = set; then :
7565 $as_echo_n "(cached) " >&6
7566 else
7567
7568 if test $ac_cv_header_stdint_h = yes; then
7569
7570
7571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7572 /* end confdefs.h. */
7573 #include <stdint.h>
7574
7575 _ACEOF
7576 case "$host_os" in
7577 aix*) gl_absname_cpp="$ac_cpp -C" ;;
7578 *) gl_absname_cpp="$ac_cpp" ;;
7579 esac
7580
7581 case "$host_os" in
7582 mingw*)
7583 gl_dirsep_regex='[/\\]'
7584 ;;
7585 *)
7586 gl_dirsep_regex='\/'
7587 ;;
7588 esac
7589 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
7590
7591 gl_header_literal_regex=`echo 'stdint.h' \
7592 | sed -e "$gl_make_literal_regex_sed"`
7593 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
7594 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
7595 s|^/[^/]|//&|
7596 p
7597 q
7598 }'
7599 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7600 sed -n "$gl_absolute_header_sed"`'"'
7601 else
7602 gl_cv_next_stdint_h='<'stdint.h'>'
7603 fi
7604
7605
7606 fi
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
7608 $as_echo "$gl_cv_next_stdint_h" >&6; }
7609 fi
7610 NEXT_STDINT_H=$gl_cv_next_stdint_h
7611
7612 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
7613 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7614 gl_next_as_first_directive='<'stdint.h'>'
7615 else
7616 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7617 gl_next_as_first_directive=$gl_cv_next_stdint_h
7618 fi
7619 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
7620
7621
7622
7623
7624 if test $ac_cv_header_stdint_h = yes; then
7625 HAVE_STDINT_H=1
7626 else
7627 HAVE_STDINT_H=0
7628 fi
7629
7630
7631 if test $ac_cv_header_stdint_h = yes; then
7632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
7633 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
7634 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
7635 $as_echo_n "(cached) " >&6
7636 else
7637 gl_cv_header_working_stdint_h=no
7638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7639 /* end confdefs.h. */
7640
7641
7642 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
7643 #include <stdint.h>
7644 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
7645 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
7646 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
7647 #endif
7648
7649
7650 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7651 included before <wchar.h>. */
7652 #include <stddef.h>
7653 #include <signal.h>
7654 #if HAVE_WCHAR_H
7655 # include <stdio.h>
7656 # include <time.h>
7657 # include <wchar.h>
7658 #endif
7659
7660
7661 #ifdef INT8_MAX
7662 int8_t a1 = INT8_MAX;
7663 int8_t a1min = INT8_MIN;
7664 #endif
7665 #ifdef INT16_MAX
7666 int16_t a2 = INT16_MAX;
7667 int16_t a2min = INT16_MIN;
7668 #endif
7669 #ifdef INT32_MAX
7670 int32_t a3 = INT32_MAX;
7671 int32_t a3min = INT32_MIN;
7672 #endif
7673 #ifdef INT64_MAX
7674 int64_t a4 = INT64_MAX;
7675 int64_t a4min = INT64_MIN;
7676 #endif
7677 #ifdef UINT8_MAX
7678 uint8_t b1 = UINT8_MAX;
7679 #else
7680 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
7681 #endif
7682 #ifdef UINT16_MAX
7683 uint16_t b2 = UINT16_MAX;
7684 #endif
7685 #ifdef UINT32_MAX
7686 uint32_t b3 = UINT32_MAX;
7687 #endif
7688 #ifdef UINT64_MAX
7689 uint64_t b4 = UINT64_MAX;
7690 #endif
7691 int_least8_t c1 = INT8_C (0x7f);
7692 int_least8_t c1max = INT_LEAST8_MAX;
7693 int_least8_t c1min = INT_LEAST8_MIN;
7694 int_least16_t c2 = INT16_C (0x7fff);
7695 int_least16_t c2max = INT_LEAST16_MAX;
7696 int_least16_t c2min = INT_LEAST16_MIN;
7697 int_least32_t c3 = INT32_C (0x7fffffff);
7698 int_least32_t c3max = INT_LEAST32_MAX;
7699 int_least32_t c3min = INT_LEAST32_MIN;
7700 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
7701 int_least64_t c4max = INT_LEAST64_MAX;
7702 int_least64_t c4min = INT_LEAST64_MIN;
7703 uint_least8_t d1 = UINT8_C (0xff);
7704 uint_least8_t d1max = UINT_LEAST8_MAX;
7705 uint_least16_t d2 = UINT16_C (0xffff);
7706 uint_least16_t d2max = UINT_LEAST16_MAX;
7707 uint_least32_t d3 = UINT32_C (0xffffffff);
7708 uint_least32_t d3max = UINT_LEAST32_MAX;
7709 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
7710 uint_least64_t d4max = UINT_LEAST64_MAX;
7711 int_fast8_t e1 = INT_FAST8_MAX;
7712 int_fast8_t e1min = INT_FAST8_MIN;
7713 int_fast16_t e2 = INT_FAST16_MAX;
7714 int_fast16_t e2min = INT_FAST16_MIN;
7715 int_fast32_t e3 = INT_FAST32_MAX;
7716 int_fast32_t e3min = INT_FAST32_MIN;
7717 int_fast64_t e4 = INT_FAST64_MAX;
7718 int_fast64_t e4min = INT_FAST64_MIN;
7719 uint_fast8_t f1 = UINT_FAST8_MAX;
7720 uint_fast16_t f2 = UINT_FAST16_MAX;
7721 uint_fast32_t f3 = UINT_FAST32_MAX;
7722 uint_fast64_t f4 = UINT_FAST64_MAX;
7723 #ifdef INTPTR_MAX
7724 intptr_t g = INTPTR_MAX;
7725 intptr_t gmin = INTPTR_MIN;
7726 #endif
7727 #ifdef UINTPTR_MAX
7728 uintptr_t h = UINTPTR_MAX;
7729 #endif
7730 intmax_t i = INTMAX_MAX;
7731 uintmax_t j = UINTMAX_MAX;
7732
7733 #include <limits.h> /* for CHAR_BIT */
7734 #define TYPE_MINIMUM(t) \
7735 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
7736 #define TYPE_MAXIMUM(t) \
7737 ((t) ((t) 0 < (t) -1 \
7738 ? (t) -1 \
7739 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
7740 struct s {
7741 int check_PTRDIFF:
7742 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
7743 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
7744 ? 1 : -1;
7745 /* Detect bug in FreeBSD 6.0 / ia64. */
7746 int check_SIG_ATOMIC:
7747 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
7748 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
7749 ? 1 : -1;
7750 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
7751 int check_WCHAR:
7752 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
7753 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
7754 ? 1 : -1;
7755 /* Detect bug in mingw. */
7756 int check_WINT:
7757 WINT_MIN == TYPE_MINIMUM (wint_t)
7758 && WINT_MAX == TYPE_MAXIMUM (wint_t)
7759 ? 1 : -1;
7760
7761 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
7762 int check_UINT8_C:
7763 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
7764 int check_UINT16_C:
7765 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
7766
7767 /* Detect bugs in OpenBSD 3.9 stdint.h. */
7768 #ifdef UINT8_MAX
7769 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
7770 #endif
7771 #ifdef UINT16_MAX
7772 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
7773 #endif
7774 #ifdef UINT32_MAX
7775 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
7776 #endif
7777 #ifdef UINT64_MAX
7778 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
7779 #endif
7780 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
7781 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
7782 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
7783 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
7784 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
7785 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
7786 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
7787 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
7788 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
7789 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
7790 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
7791 };
7792
7793 int
7794 main ()
7795 {
7796
7797 ;
7798 return 0;
7799 }
7800 _ACEOF
7801 if ac_fn_c_try_compile "$LINENO"; then :
7802 if test "$cross_compiling" = yes; then :
7803 gl_cv_header_working_stdint_h=yes
7804
7805 else
7806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7807 /* end confdefs.h. */
7808
7809
7810 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
7811 #include <stdint.h>
7812
7813
7814 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7815 included before <wchar.h>. */
7816 #include <stddef.h>
7817 #include <signal.h>
7818 #if HAVE_WCHAR_H
7819 # include <stdio.h>
7820 # include <time.h>
7821 # include <wchar.h>
7822 #endif
7823
7824
7825 #include <stdio.h>
7826 #include <string.h>
7827 #define MVAL(macro) MVAL1(macro)
7828 #define MVAL1(expression) #expression
7829 static const char *macro_values[] =
7830 {
7831 #ifdef INT8_MAX
7832 MVAL (INT8_MAX),
7833 #endif
7834 #ifdef INT16_MAX
7835 MVAL (INT16_MAX),
7836 #endif
7837 #ifdef INT32_MAX
7838 MVAL (INT32_MAX),
7839 #endif
7840 #ifdef INT64_MAX
7841 MVAL (INT64_MAX),
7842 #endif
7843 #ifdef UINT8_MAX
7844 MVAL (UINT8_MAX),
7845 #endif
7846 #ifdef UINT16_MAX
7847 MVAL (UINT16_MAX),
7848 #endif
7849 #ifdef UINT32_MAX
7850 MVAL (UINT32_MAX),
7851 #endif
7852 #ifdef UINT64_MAX
7853 MVAL (UINT64_MAX),
7854 #endif
7855 NULL
7856 };
7857
7858 int
7859 main ()
7860 {
7861
7862 const char **mv;
7863 for (mv = macro_values; *mv != NULL; mv++)
7864 {
7865 const char *value = *mv;
7866 /* Test whether it looks like a cast expression. */
7867 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
7868 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
7869 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
7870 || strncmp (value, "((int)"/*)*/, 6) == 0
7871 || strncmp (value, "((signed short)"/*)*/, 15) == 0
7872 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
7873 return mv - macro_values + 1;
7874 }
7875 return 0;
7876
7877 ;
7878 return 0;
7879 }
7880 _ACEOF
7881 if ac_fn_c_try_run "$LINENO"; then :
7882 gl_cv_header_working_stdint_h=yes
7883 fi
7884 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7885 conftest.$ac_objext conftest.beam conftest.$ac_ext
7886 fi
7887
7888
7889 fi
7890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7891
7892 fi
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
7894 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
7895 fi
7896 if test "$gl_cv_header_working_stdint_h" = yes; then
7897 STDINT_H=
7898 else
7899 for ac_header in sys/inttypes.h sys/bitypes.h
7900 do :
7901 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7902 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7903 eval as_val=\$$as_ac_Header
7904 if test "x$as_val" = x""yes; then :
7905 cat >>confdefs.h <<_ACEOF
7906 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7907 _ACEOF
7908
7909 fi
7910
7911 done
7912
7913 if test $ac_cv_header_sys_inttypes_h = yes; then
7914 HAVE_SYS_INTTYPES_H=1
7915 else
7916 HAVE_SYS_INTTYPES_H=0
7917 fi
7918
7919 if test $ac_cv_header_sys_bitypes_h = yes; then
7920 HAVE_SYS_BITYPES_H=1
7921 else
7922 HAVE_SYS_BITYPES_H=0
7923 fi
7924
7925
7926
7927
7928 if test $APPLE_UNIVERSAL_BUILD = 0; then
7929
7930
7931 for gltype in ptrdiff_t size_t ; do
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
7933 $as_echo_n "checking for bit size of $gltype... " >&6; }
7934 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
7935 $as_echo_n "(cached) " >&6
7936 else
7937 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
7938 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7939 included before <wchar.h>. */
7940 #include <stddef.h>
7941 #include <signal.h>
7942 #if HAVE_WCHAR_H
7943 # include <stdio.h>
7944 # include <time.h>
7945 # include <wchar.h>
7946 #endif
7947
7948 #include <limits.h>"; then :
7949
7950 else
7951 result=unknown
7952 fi
7953
7954 eval gl_cv_bitsizeof_${gltype}=\$result
7955
7956 fi
7957 eval ac_res=\$gl_cv_bitsizeof_${gltype}
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7959 $as_echo "$ac_res" >&6; }
7960 eval result=\$gl_cv_bitsizeof_${gltype}
7961 if test $result = unknown; then
7962 result=0
7963 fi
7964 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
7965 cat >>confdefs.h <<_ACEOF
7966 #define BITSIZEOF_${GLTYPE} $result
7967 _ACEOF
7968
7969 eval BITSIZEOF_${GLTYPE}=\$result
7970 done
7971
7972
7973 fi
7974
7975
7976 for gltype in sig_atomic_t wchar_t wint_t ; do
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
7978 $as_echo_n "checking for bit size of $gltype... " >&6; }
7979 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
7980 $as_echo_n "(cached) " >&6
7981 else
7982 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
7983 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7984 included before <wchar.h>. */
7985 #include <stddef.h>
7986 #include <signal.h>
7987 #if HAVE_WCHAR_H
7988 # include <stdio.h>
7989 # include <time.h>
7990 # include <wchar.h>
7991 #endif
7992
7993 #include <limits.h>"; then :
7994
7995 else
7996 result=unknown
7997 fi
7998
7999 eval gl_cv_bitsizeof_${gltype}=\$result
8000
8001 fi
8002 eval ac_res=\$gl_cv_bitsizeof_${gltype}
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8004 $as_echo "$ac_res" >&6; }
8005 eval result=\$gl_cv_bitsizeof_${gltype}
8006 if test $result = unknown; then
8007 result=0
8008 fi
8009 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
8010 cat >>confdefs.h <<_ACEOF
8011 #define BITSIZEOF_${GLTYPE} $result
8012 _ACEOF
8013
8014 eval BITSIZEOF_${GLTYPE}=\$result
8015 done
8016
8017
8018
8019
8020 for gltype in sig_atomic_t wchar_t wint_t ; do
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
8022 $as_echo_n "checking whether $gltype is signed... " >&6; }
8023 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
8024 $as_echo_n "(cached) " >&6
8025 else
8026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8027 /* end confdefs.h. */
8028
8029 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8030 included before <wchar.h>. */
8031 #include <stddef.h>
8032 #include <signal.h>
8033 #if HAVE_WCHAR_H
8034 # include <stdio.h>
8035 # include <time.h>
8036 # include <wchar.h>
8037 #endif
8038
8039 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
8040 int
8041 main ()
8042 {
8043
8044 ;
8045 return 0;
8046 }
8047 _ACEOF
8048 if ac_fn_c_try_compile "$LINENO"; then :
8049 result=yes
8050 else
8051 result=no
8052 fi
8053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8054 eval gl_cv_type_${gltype}_signed=\$result
8055
8056 fi
8057 eval ac_res=\$gl_cv_type_${gltype}_signed
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8059 $as_echo "$ac_res" >&6; }
8060 eval result=\$gl_cv_type_${gltype}_signed
8061 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
8062 if test "$result" = yes; then
8063 cat >>confdefs.h <<_ACEOF
8064 #define HAVE_SIGNED_${GLTYPE} 1
8065 _ACEOF
8066
8067 eval HAVE_SIGNED_${GLTYPE}=1
8068 else
8069 eval HAVE_SIGNED_${GLTYPE}=0
8070 fi
8071 done
8072
8073
8074 gl_cv_type_ptrdiff_t_signed=yes
8075 gl_cv_type_size_t_signed=no
8076 if test $APPLE_UNIVERSAL_BUILD = 0; then
8077
8078
8079 for gltype in ptrdiff_t size_t ; do
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
8081 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
8082 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
8083 $as_echo_n "(cached) " >&6
8084 else
8085 eval gl_cv_type_${gltype}_suffix=no
8086 eval result=\$gl_cv_type_${gltype}_signed
8087 if test "$result" = yes; then
8088 glsufu=
8089 else
8090 glsufu=u
8091 fi
8092 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
8093 case $glsuf in
8094 '') gltype1='int';;
8095 l) gltype1='long int';;
8096 ll) gltype1='long long int';;
8097 i64) gltype1='__int64';;
8098 u) gltype1='unsigned int';;
8099 ul) gltype1='unsigned long int';;
8100 ull) gltype1='unsigned long long int';;
8101 ui64)gltype1='unsigned __int64';;
8102 esac
8103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8104 /* end confdefs.h. */
8105
8106 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8107 included before <wchar.h>. */
8108 #include <stddef.h>
8109 #include <signal.h>
8110 #if HAVE_WCHAR_H
8111 # include <stdio.h>
8112 # include <time.h>
8113 # include <wchar.h>
8114 #endif
8115
8116 extern $gltype foo;
8117 extern $gltype1 foo;
8118 int
8119 main ()
8120 {
8121
8122 ;
8123 return 0;
8124 }
8125 _ACEOF
8126 if ac_fn_c_try_compile "$LINENO"; then :
8127 eval gl_cv_type_${gltype}_suffix=\$glsuf
8128 fi
8129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8130 eval result=\$gl_cv_type_${gltype}_suffix
8131 test "$result" != no && break
8132 done
8133 fi
8134 eval ac_res=\$gl_cv_type_${gltype}_suffix
8135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8136 $as_echo "$ac_res" >&6; }
8137 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
8138 eval result=\$gl_cv_type_${gltype}_suffix
8139 test "$result" = no && result=
8140 eval ${GLTYPE}_SUFFIX=\$result
8141 cat >>confdefs.h <<_ACEOF
8142 #define ${GLTYPE}_SUFFIX $result
8143 _ACEOF
8144
8145 done
8146
8147
8148 fi
8149
8150
8151 for gltype in sig_atomic_t wchar_t wint_t ; do
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
8153 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
8154 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
8155 $as_echo_n "(cached) " >&6
8156 else
8157 eval gl_cv_type_${gltype}_suffix=no
8158 eval result=\$gl_cv_type_${gltype}_signed
8159 if test "$result" = yes; then
8160 glsufu=
8161 else
8162 glsufu=u
8163 fi
8164 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
8165 case $glsuf in
8166 '') gltype1='int';;
8167 l) gltype1='long int';;
8168 ll) gltype1='long long int';;
8169 i64) gltype1='__int64';;
8170 u) gltype1='unsigned int';;
8171 ul) gltype1='unsigned long int';;
8172 ull) gltype1='unsigned long long int';;
8173 ui64)gltype1='unsigned __int64';;
8174 esac
8175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8176 /* end confdefs.h. */
8177
8178 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8179 included before <wchar.h>. */
8180 #include <stddef.h>
8181 #include <signal.h>
8182 #if HAVE_WCHAR_H
8183 # include <stdio.h>
8184 # include <time.h>
8185 # include <wchar.h>
8186 #endif
8187
8188 extern $gltype foo;
8189 extern $gltype1 foo;
8190 int
8191 main ()
8192 {
8193
8194 ;
8195 return 0;
8196 }
8197 _ACEOF
8198 if ac_fn_c_try_compile "$LINENO"; then :
8199 eval gl_cv_type_${gltype}_suffix=\$glsuf
8200 fi
8201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8202 eval result=\$gl_cv_type_${gltype}_suffix
8203 test "$result" != no && break
8204 done
8205 fi
8206 eval ac_res=\$gl_cv_type_${gltype}_suffix
8207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8208 $as_echo "$ac_res" >&6; }
8209 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
8210 eval result=\$gl_cv_type_${gltype}_suffix
8211 test "$result" = no && result=
8212 eval ${GLTYPE}_SUFFIX=\$result
8213 cat >>confdefs.h <<_ACEOF
8214 #define ${GLTYPE}_SUFFIX $result
8215 _ACEOF
8216
8217 done
8218
8219
8220
8221 if test $BITSIZEOF_WINT_T -lt 32; then
8222 BITSIZEOF_WINT_T=32
8223 fi
8224
8225 STDINT_H=stdint.h
8226 fi
8227
8228 if test -n "$STDINT_H"; then
8229 GL_GENERATE_STDINT_H_TRUE=
8230 GL_GENERATE_STDINT_H_FALSE='#'
8231 else
8232 GL_GENERATE_STDINT_H_TRUE='#'
8233 GL_GENERATE_STDINT_H_FALSE=
8234 fi
8235
8236
8237
8238
8239
8240 GNULIB_IMAXABS=0;
8241 GNULIB_IMAXDIV=0;
8242 GNULIB_STRTOIMAX=0;
8243 GNULIB_STRTOUMAX=0;
8244 HAVE_DECL_IMAXABS=1;
8245 HAVE_DECL_IMAXDIV=1;
8246 HAVE_DECL_STRTOIMAX=1;
8247 HAVE_DECL_STRTOUMAX=1;
8248 REPLACE_STRTOIMAX=0;
8249 INT32_MAX_LT_INTMAX_MAX=1;
8250 INT64_MAX_EQ_LONG_MAX='defined _LP64';
8251 PRI_MACROS_BROKEN=0;
8252 PRIPTR_PREFIX=__PRIPTR_PREFIX;
8253 UINT32_MAX_LT_UINTMAX_MAX=1;
8254 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270 if test $gl_cv_have_include_next = yes; then
8271 gl_cv_next_inttypes_h='<'inttypes.h'>'
8272 else
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
8274 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
8275 if test "${gl_cv_next_inttypes_h+set}" = set; then :
8276 $as_echo_n "(cached) " >&6
8277 else
8278
8279 if test $ac_cv_header_inttypes_h = yes; then
8280
8281
8282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8283 /* end confdefs.h. */
8284 #include <inttypes.h>
8285
8286 _ACEOF
8287 case "$host_os" in
8288 aix*) gl_absname_cpp="$ac_cpp -C" ;;
8289 *) gl_absname_cpp="$ac_cpp" ;;
8290 esac
8291
8292 case "$host_os" in
8293 mingw*)
8294 gl_dirsep_regex='[/\\]'
8295 ;;
8296 *)
8297 gl_dirsep_regex='\/'
8298 ;;
8299 esac
8300 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
8301
8302 gl_header_literal_regex=`echo 'inttypes.h' \
8303 | sed -e "$gl_make_literal_regex_sed"`
8304 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
8305 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
8306 s|^/[^/]|//&|
8307 p
8308 q
8309 }'
8310 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
8311 sed -n "$gl_absolute_header_sed"`'"'
8312 else
8313 gl_cv_next_inttypes_h='<'inttypes.h'>'
8314 fi
8315
8316
8317 fi
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
8319 $as_echo "$gl_cv_next_inttypes_h" >&6; }
8320 fi
8321 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
8322
8323 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
8324 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
8325 gl_next_as_first_directive='<'inttypes.h'>'
8326 else
8327 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
8328 gl_next_as_first_directive=$gl_cv_next_inttypes_h
8329 fi
8330 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
8331
8332
8333
8334
8335
8336
8337
8338
8339 for gl_func in imaxabs imaxdiv strtoimax strtoumax; do
8340 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
8342 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
8343 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
8344 $as_echo_n "(cached) " >&6
8345 else
8346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8347 /* end confdefs.h. */
8348 #include <inttypes.h>
8349
8350 int
8351 main ()
8352 {
8353 #undef $gl_func
8354 (void) $gl_func;
8355 ;
8356 return 0;
8357 }
8358 _ACEOF
8359 if ac_fn_c_try_compile "$LINENO"; then :
8360 eval "$as_gl_Symbol=yes"
8361 else
8362 eval "$as_gl_Symbol=no"
8363 fi
8364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8365 fi
8366 eval ac_res=\$$as_gl_Symbol
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8368 $as_echo "$ac_res" >&6; }
8369 eval as_val=\$$as_gl_Symbol
8370 if test "x$as_val" = x""yes; then :
8371 cat >>confdefs.h <<_ACEOF
8372 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
8373 _ACEOF
8374
8375 eval ac_cv_have_decl_$gl_func=yes
8376 fi
8377 done
8378
8379
8380
8381 for ac_header in inttypes.h
8382 do :
8383 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
8384 if test "x$ac_cv_header_inttypes_h" = x""yes; then :
8385 cat >>confdefs.h <<_ACEOF
8386 #define HAVE_INTTYPES_H 1
8387 _ACEOF
8388
8389 fi
8390
8391 done
8392
8393 if test $ac_cv_header_inttypes_h = yes; then
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
8395 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
8396 if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
8397 $as_echo_n "(cached) " >&6
8398 else
8399
8400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8401 /* end confdefs.h. */
8402
8403 #include <inttypes.h>
8404 #ifdef PRId32
8405 char *p = PRId32;
8406 #endif
8407
8408 int
8409 main ()
8410 {
8411
8412 ;
8413 return 0;
8414 }
8415 _ACEOF
8416 if ac_fn_c_try_compile "$LINENO"; then :
8417 gt_cv_inttypes_pri_broken=no
8418 else
8419 gt_cv_inttypes_pri_broken=yes
8420 fi
8421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8422
8423 fi
8424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
8425 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
8426 fi
8427 if test "$gt_cv_inttypes_pri_broken" = yes; then
8428
8429 cat >>confdefs.h <<_ACEOF
8430 #define PRI_MACROS_BROKEN 1
8431 _ACEOF
8432
8433 PRI_MACROS_BROKEN=1
8434 else
8435 PRI_MACROS_BROKEN=0
8436 fi
8437
8438
8439
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
8441 $as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
8442 if test "${gl_cv_cc_double_expbit0+set}" = set; then :
8443 $as_echo_n "(cached) " >&6
8444 else
8445
8446 if test "$cross_compiling" = yes; then :
8447
8448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8449 /* end confdefs.h. */
8450
8451 #if defined arm || defined __arm || defined __arm__
8452 mixed_endianness
8453 #endif
8454
8455 _ACEOF
8456 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8457 $EGREP "mixed_endianness" >/dev/null 2>&1; then :
8458 gl_cv_cc_double_expbit0="unknown"
8459 else
8460
8461 :
8462 if test "${ac_cv_c_bigendian+set}" = set; then :
8463 $as_echo_n "(cached) " >&6
8464 else
8465 ac_cv_c_bigendian=unknown
8466 # See if we're dealing with a universal compiler.
8467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8468 /* end confdefs.h. */
8469 #ifndef __APPLE_CC__
8470 not a universal capable compiler
8471 #endif
8472 typedef int dummy;
8473
8474 _ACEOF
8475 if ac_fn_c_try_compile "$LINENO"; then :
8476
8477 # Check for potential -arch flags. It is not universal unless
8478 # there are at least two -arch flags with different values.
8479 ac_arch=
8480 ac_prev=
8481 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8482 if test -n "$ac_prev"; then
8483 case $ac_word in
8484 i?86 | x86_64 | ppc | ppc64)
8485 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8486 ac_arch=$ac_word
8487 else
8488 ac_cv_c_bigendian=universal
8489 break
8490 fi
8491 ;;
8492 esac
8493 ac_prev=
8494 elif test "x$ac_word" = "x-arch"; then
8495 ac_prev=arch
8496 fi
8497 done
8498 fi
8499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8500 if test $ac_cv_c_bigendian = unknown; then
8501 # See if sys/param.h defines the BYTE_ORDER macro.
8502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8503 /* end confdefs.h. */
8504 #include <sys/types.h>
8505 #include <sys/param.h>
8506
8507 int
8508 main ()
8509 {
8510 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8511 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8512 && LITTLE_ENDIAN)
8513 bogus endian macros
8514 #endif
8515
8516 ;
8517 return 0;
8518 }
8519 _ACEOF
8520 if ac_fn_c_try_compile "$LINENO"; then :
8521 # It does; now see whether it defined to BIG_ENDIAN or not.
8522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8523 /* end confdefs.h. */
8524 #include <sys/types.h>
8525 #include <sys/param.h>
8526
8527 int
8528 main ()
8529 {
8530 #if BYTE_ORDER != BIG_ENDIAN
8531 not big endian
8532 #endif
8533
8534 ;
8535 return 0;
8536 }
8537 _ACEOF
8538 if ac_fn_c_try_compile "$LINENO"; then :
8539 ac_cv_c_bigendian=yes
8540 else
8541 ac_cv_c_bigendian=no
8542 fi
8543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8544 fi
8545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8546 fi
8547 if test $ac_cv_c_bigendian = unknown; then
8548 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8550 /* end confdefs.h. */
8551 #include <limits.h>
8552
8553 int
8554 main ()
8555 {
8556 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8557 bogus endian macros
8558 #endif
8559
8560 ;
8561 return 0;
8562 }
8563 _ACEOF
8564 if ac_fn_c_try_compile "$LINENO"; then :
8565 # It does; now see whether it defined to _BIG_ENDIAN or not.
8566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8567 /* end confdefs.h. */
8568 #include <limits.h>
8569
8570 int
8571 main ()
8572 {
8573 #ifndef _BIG_ENDIAN
8574 not big endian
8575 #endif
8576
8577 ;
8578 return 0;
8579 }
8580 _ACEOF
8581 if ac_fn_c_try_compile "$LINENO"; then :
8582 ac_cv_c_bigendian=yes
8583 else
8584 ac_cv_c_bigendian=no
8585 fi
8586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8587 fi
8588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8589 fi
8590 if test $ac_cv_c_bigendian = unknown; then
8591 # Compile a test program.
8592 if test "$cross_compiling" = yes; then :
8593 # Try to guess by grepping values from an object file.
8594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8595 /* end confdefs.h. */
8596 short int ascii_mm[] =
8597 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8598 short int ascii_ii[] =
8599 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8600 int use_ascii (int i) {
8601 return ascii_mm[i] + ascii_ii[i];
8602 }
8603 short int ebcdic_ii[] =
8604 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8605 short int ebcdic_mm[] =
8606 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8607 int use_ebcdic (int i) {
8608 return ebcdic_mm[i] + ebcdic_ii[i];
8609 }
8610 extern int foo;
8611
8612 int
8613 main ()
8614 {
8615 return use_ascii (foo) == use_ebcdic (foo);
8616 ;
8617 return 0;
8618 }
8619 _ACEOF
8620 if ac_fn_c_try_compile "$LINENO"; then :
8621 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8622 ac_cv_c_bigendian=yes
8623 fi
8624 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8625 if test "$ac_cv_c_bigendian" = unknown; then
8626 ac_cv_c_bigendian=no
8627 else
8628 # finding both strings is unlikely to happen, but who knows?
8629 ac_cv_c_bigendian=unknown
8630 fi
8631 fi
8632 fi
8633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8634 else
8635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8636 /* end confdefs.h. */
8637 $ac_includes_default
8638 int
8639 main ()
8640 {
8641
8642 /* Are we little or big endian? From Harbison&Steele. */
8643 union
8644 {
8645 long int l;
8646 char c[sizeof (long int)];
8647 } u;
8648 u.l = 1;
8649 return u.c[sizeof (long int) - 1] == 1;
8650
8651 ;
8652 return 0;
8653 }
8654 _ACEOF
8655 if ac_fn_c_try_run "$LINENO"; then :
8656 ac_cv_c_bigendian=no
8657 else
8658 ac_cv_c_bigendian=yes
8659 fi
8660 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8661 conftest.$ac_objext conftest.beam conftest.$ac_ext
8662 fi
8663
8664 fi
8665 fi
8666 :
8667 case $ac_cv_c_bigendian in #(
8668 yes)
8669 gl_cv_cc_double_expbit0="word 0 bit 20";; #(
8670 no)
8671 gl_cv_cc_double_expbit0="word 1 bit 20" ;; #(
8672 universal)
8673
8674 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8675
8676 ;; #(
8677 *)
8678 gl_cv_cc_double_expbit0="unknown" ;;
8679 esac
8680
8681
8682 fi
8683 rm -f conftest*
8684
8685
8686 else
8687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8688 /* end confdefs.h. */
8689
8690 #include <float.h>
8691 #include <stddef.h>
8692 #include <stdio.h>
8693 #include <string.h>
8694 #define NWORDS \
8695 ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
8696 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
8697 static unsigned int ored_words[NWORDS];
8698 static unsigned int anded_words[NWORDS];
8699 static void add_to_ored_words (double x)
8700 {
8701 memory_double m;
8702 size_t i;
8703 /* Clear it first, in case sizeof (double) < sizeof (memory_double). */
8704 memset (&m, 0, sizeof (memory_double));
8705 m.value = x;
8706 for (i = 0; i < NWORDS; i++)
8707 {
8708 ored_words[i] |= m.word[i];
8709 anded_words[i] &= m.word[i];
8710 }
8711 }
8712 int main ()
8713 {
8714 size_t j;
8715 FILE *fp = fopen ("conftest.out", "w");
8716 if (fp == NULL)
8717 return 1;
8718 for (j = 0; j < NWORDS; j++)
8719 anded_words[j] = ~ (unsigned int) 0;
8720 add_to_ored_words (0.25);
8721 add_to_ored_words (0.5);
8722 add_to_ored_words (1.0);
8723 add_to_ored_words (2.0);
8724 add_to_ored_words (4.0);
8725 /* Remove bits that are common (e.g. if representation of the first mantissa
8726 bit is explicit). */
8727 for (j = 0; j < NWORDS; j++)
8728 ored_words[j] &= ~anded_words[j];
8729 /* Now find the nonzero word. */
8730 for (j = 0; j < NWORDS; j++)
8731 if (ored_words[j] != 0)
8732 break;
8733 if (j < NWORDS)
8734 {
8735 size_t i;
8736 for (i = j + 1; i < NWORDS; i++)
8737 if (ored_words[i] != 0)
8738 {
8739 fprintf (fp, "unknown");
8740 return (fclose (fp) != 0);
8741 }
8742 for (i = 0; ; i++)
8743 if ((ored_words[j] >> i) & 1)
8744 {
8745 fprintf (fp, "word %d bit %d", (int) j, (int) i);
8746 return (fclose (fp) != 0);
8747 }
8748 }
8749 fprintf (fp, "unknown");
8750 return (fclose (fp) != 0);
8751 }
8752
8753 _ACEOF
8754 if ac_fn_c_try_run "$LINENO"; then :
8755 gl_cv_cc_double_expbit0=`cat conftest.out`
8756 else
8757 gl_cv_cc_double_expbit0="unknown"
8758 fi
8759 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8760 conftest.$ac_objext conftest.beam conftest.$ac_ext
8761 fi
8762
8763 rm -f conftest.out
8764
8765 fi
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
8767 $as_echo "$gl_cv_cc_double_expbit0" >&6; }
8768 case "$gl_cv_cc_double_expbit0" in
8769 word*bit*)
8770 word=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
8771 bit=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
8772
8773 cat >>confdefs.h <<_ACEOF
8774 #define DBL_EXPBIT0_WORD $word
8775 _ACEOF
8776
8777
8778 cat >>confdefs.h <<_ACEOF
8779 #define DBL_EXPBIT0_BIT $bit
8780 _ACEOF
8781
8782 ;;
8783 esac
8784
8785
8786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8787 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8788 if test "${ac_cv_c_bigendian+set}" = set; then :
8789 $as_echo_n "(cached) " >&6
8790 else
8791 ac_cv_c_bigendian=unknown
8792 # See if we're dealing with a universal compiler.
8793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8794 /* end confdefs.h. */
8795 #ifndef __APPLE_CC__
8796 not a universal capable compiler
8797 #endif
8798 typedef int dummy;
8799
8800 _ACEOF
8801 if ac_fn_c_try_compile "$LINENO"; then :
8802
8803 # Check for potential -arch flags. It is not universal unless
8804 # there are at least two -arch flags with different values.
8805 ac_arch=
8806 ac_prev=
8807 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8808 if test -n "$ac_prev"; then
8809 case $ac_word in
8810 i?86 | x86_64 | ppc | ppc64)
8811 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8812 ac_arch=$ac_word
8813 else
8814 ac_cv_c_bigendian=universal
8815 break
8816 fi
8817 ;;
8818 esac
8819 ac_prev=
8820 elif test "x$ac_word" = "x-arch"; then
8821 ac_prev=arch
8822 fi
8823 done
8824 fi
8825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8826 if test $ac_cv_c_bigendian = unknown; then
8827 # See if sys/param.h defines the BYTE_ORDER macro.
8828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8829 /* end confdefs.h. */
8830 #include <sys/types.h>
8831 #include <sys/param.h>
8832
8833 int
8834 main ()
8835 {
8836 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8837 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8838 && LITTLE_ENDIAN)
8839 bogus endian macros
8840 #endif
8841
8842 ;
8843 return 0;
8844 }
8845 _ACEOF
8846 if ac_fn_c_try_compile "$LINENO"; then :
8847 # It does; now see whether it defined to BIG_ENDIAN or not.
8848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8849 /* end confdefs.h. */
8850 #include <sys/types.h>
8851 #include <sys/param.h>
8852
8853 int
8854 main ()
8855 {
8856 #if BYTE_ORDER != BIG_ENDIAN
8857 not big endian
8858 #endif
8859
8860 ;
8861 return 0;
8862 }
8863 _ACEOF
8864 if ac_fn_c_try_compile "$LINENO"; then :
8865 ac_cv_c_bigendian=yes
8866 else
8867 ac_cv_c_bigendian=no
8868 fi
8869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8870 fi
8871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8872 fi
8873 if test $ac_cv_c_bigendian = unknown; then
8874 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8876 /* end confdefs.h. */
8877 #include <limits.h>
8878
8879 int
8880 main ()
8881 {
8882 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8883 bogus endian macros
8884 #endif
8885
8886 ;
8887 return 0;
8888 }
8889 _ACEOF
8890 if ac_fn_c_try_compile "$LINENO"; then :
8891 # It does; now see whether it defined to _BIG_ENDIAN or not.
8892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8893 /* end confdefs.h. */
8894 #include <limits.h>
8895
8896 int
8897 main ()
8898 {
8899 #ifndef _BIG_ENDIAN
8900 not big endian
8901 #endif
8902
8903 ;
8904 return 0;
8905 }
8906 _ACEOF
8907 if ac_fn_c_try_compile "$LINENO"; then :
8908 ac_cv_c_bigendian=yes
8909 else
8910 ac_cv_c_bigendian=no
8911 fi
8912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8913 fi
8914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8915 fi
8916 if test $ac_cv_c_bigendian = unknown; then
8917 # Compile a test program.
8918 if test "$cross_compiling" = yes; then :
8919 # Try to guess by grepping values from an object file.
8920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8921 /* end confdefs.h. */
8922 short int ascii_mm[] =
8923 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8924 short int ascii_ii[] =
8925 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8926 int use_ascii (int i) {
8927 return ascii_mm[i] + ascii_ii[i];
8928 }
8929 short int ebcdic_ii[] =
8930 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8931 short int ebcdic_mm[] =
8932 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8933 int use_ebcdic (int i) {
8934 return ebcdic_mm[i] + ebcdic_ii[i];
8935 }
8936 extern int foo;
8937
8938 int
8939 main ()
8940 {
8941 return use_ascii (foo) == use_ebcdic (foo);
8942 ;
8943 return 0;
8944 }
8945 _ACEOF
8946 if ac_fn_c_try_compile "$LINENO"; then :
8947 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8948 ac_cv_c_bigendian=yes
8949 fi
8950 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8951 if test "$ac_cv_c_bigendian" = unknown; then
8952 ac_cv_c_bigendian=no
8953 else
8954 # finding both strings is unlikely to happen, but who knows?
8955 ac_cv_c_bigendian=unknown
8956 fi
8957 fi
8958 fi
8959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8960 else
8961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8962 /* end confdefs.h. */
8963 $ac_includes_default
8964 int
8965 main ()
8966 {
8967
8968 /* Are we little or big endian? From Harbison&Steele. */
8969 union
8970 {
8971 long int l;
8972 char c[sizeof (long int)];
8973 } u;
8974 u.l = 1;
8975 return u.c[sizeof (long int) - 1] == 1;
8976
8977 ;
8978 return 0;
8979 }
8980 _ACEOF
8981 if ac_fn_c_try_run "$LINENO"; then :
8982 ac_cv_c_bigendian=no
8983 else
8984 ac_cv_c_bigendian=yes
8985 fi
8986 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8987 conftest.$ac_objext conftest.beam conftest.$ac_ext
8988 fi
8989
8990 fi
8991 fi
8992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8993 $as_echo "$ac_cv_c_bigendian" >&6; }
8994 case $ac_cv_c_bigendian in #(
8995 yes)
8996 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8997 ;; #(
8998 no)
8999 ;; #(
9000 universal)
9001
9002 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9003
9004 ;; #(
9005 *)
9006 as_fn_error "unknown endianness
9007 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9008 esac
9009
9010
9011
9012
9013 case "$host_os" in
9014 mingw*)
9015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
9016 $as_echo_n "checking for 64-bit off_t... " >&6; }
9017 if test "${gl_cv_type_off_t_64+set}" = set; then :
9018 $as_echo_n "(cached) " >&6
9019 else
9020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9021 /* end confdefs.h. */
9022 #include <sys/types.h>
9023 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
9024
9025 int
9026 main ()
9027 {
9028
9029 ;
9030 return 0;
9031 }
9032 _ACEOF
9033 if ac_fn_c_try_compile "$LINENO"; then :
9034 gl_cv_type_off_t_64=yes
9035 else
9036 gl_cv_type_off_t_64=no
9037 fi
9038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9039
9040 fi
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
9042 $as_echo "$gl_cv_type_off_t_64" >&6; }
9043 if test $gl_cv_type_off_t_64 = no; then
9044 WINDOWS_64_BIT_OFF_T=1
9045 else
9046 WINDOWS_64_BIT_OFF_T=0
9047 fi
9048 WINDOWS_64_BIT_ST_SIZE=1
9049 ;;
9050 *)
9051 WINDOWS_64_BIT_OFF_T=0
9052 WINDOWS_64_BIT_ST_SIZE=0
9053 ;;
9054 esac
9055
9056
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
9058 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
9059 if test "${am_cv_langinfo_codeset+set}" = set; then :
9060 $as_echo_n "(cached) " >&6
9061 else
9062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9063 /* end confdefs.h. */
9064 #include <langinfo.h>
9065 int
9066 main ()
9067 {
9068 char* cs = nl_langinfo(CODESET); return !cs;
9069 ;
9070 return 0;
9071 }
9072 _ACEOF
9073 if ac_fn_c_try_link "$LINENO"; then :
9074 am_cv_langinfo_codeset=yes
9075 else
9076 am_cv_langinfo_codeset=no
9077 fi
9078 rm -f core conftest.err conftest.$ac_objext \
9079 conftest$ac_exeext conftest.$ac_ext
9080
9081 fi
9082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
9083 $as_echo "$am_cv_langinfo_codeset" >&6; }
9084 if test $am_cv_langinfo_codeset = yes; then
9085
9086 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
9087
9088 fi
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
9100 $as_echo_n "checking for working fcntl.h... " >&6; }
9101 if test "${gl_cv_header_working_fcntl_h+set}" = set; then :
9102 $as_echo_n "(cached) " >&6
9103 else
9104 if test "$cross_compiling" = yes; then :
9105 gl_cv_header_working_fcntl_h=cross-compiling
9106 else
9107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9108 /* end confdefs.h. */
9109 #include <sys/types.h>
9110 #include <sys/stat.h>
9111 #if HAVE_UNISTD_H
9112 # include <unistd.h>
9113 #else /* on Windows with MSVC */
9114 # include <io.h>
9115 # include <stdlib.h>
9116 # defined sleep(n) _sleep ((n) * 1000)
9117 #endif
9118 #include <fcntl.h>
9119 #ifndef O_NOATIME
9120 #define O_NOATIME 0
9121 #endif
9122 #ifndef O_NOFOLLOW
9123 #define O_NOFOLLOW 0
9124 #endif
9125 static int const constants[] =
9126 {
9127 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
9128 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
9129 };
9130
9131 int
9132 main ()
9133 {
9134
9135 int result = !constants;
9136 #if HAVE_SYMLINK
9137 {
9138 static char const sym[] = "conftest.sym";
9139 if (symlink ("/dev/null", sym) != 0)
9140 result |= 2;
9141 else
9142 {
9143 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
9144 if (fd >= 0)
9145 {
9146 close (fd);
9147 result |= 4;
9148 }
9149 }
9150 if (unlink (sym) != 0 || symlink (".", sym) != 0)
9151 result |= 2;
9152 else
9153 {
9154 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
9155 if (fd >= 0)
9156 {
9157 close (fd);
9158 result |= 4;
9159 }
9160 }
9161 unlink (sym);
9162 }
9163 #endif
9164 {
9165 static char const file[] = "confdefs.h";
9166 int fd = open (file, O_RDONLY | O_NOATIME);
9167 if (fd < 0)
9168 result |= 8;
9169 else
9170 {
9171 struct stat st0;
9172 if (fstat (fd, &st0) != 0)
9173 result |= 16;
9174 else
9175 {
9176 char c;
9177 sleep (1);
9178 if (read (fd, &c, 1) != 1)
9179 result |= 24;
9180 else
9181 {
9182 if (close (fd) != 0)
9183 result |= 32;
9184 else
9185 {
9186 struct stat st1;
9187 if (stat (file, &st1) != 0)
9188 result |= 40;
9189 else
9190 if (st0.st_atime != st1.st_atime)
9191 result |= 64;
9192 }
9193 }
9194 }
9195 }
9196 }
9197 return result;
9198 ;
9199 return 0;
9200 }
9201 _ACEOF
9202 if ac_fn_c_try_run "$LINENO"; then :
9203 gl_cv_header_working_fcntl_h=yes
9204 else
9205 case $? in #(
9206 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
9207 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
9208 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
9209 *) gl_cv_header_working_fcntl_h='no';;
9210 esac
9211 fi
9212 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9213 conftest.$ac_objext conftest.beam conftest.$ac_ext
9214 fi
9215
9216 fi
9217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
9218 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
9219
9220 case $gl_cv_header_working_fcntl_h in #(
9221 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
9222 *) ac_val=1;;
9223 esac
9224
9225 cat >>confdefs.h <<_ACEOF
9226 #define HAVE_WORKING_O_NOATIME $ac_val
9227 _ACEOF
9228
9229
9230 case $gl_cv_header_working_fcntl_h in #(
9231 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
9232 *) ac_val=1;;
9233 esac
9234
9235 cat >>confdefs.h <<_ACEOF
9236 #define HAVE_WORKING_O_NOFOLLOW $ac_val
9237 _ACEOF
9238
9239
9240 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
9241 if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then :
9242 ac_have_decl=1
9243 else
9244 ac_have_decl=0
9245 fi
9246
9247 cat >>confdefs.h <<_ACEOF
9248 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
9249 _ACEOF
9250
9251
9252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
9253 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
9254 if test "${ac_cv_gnu_library_2_1+set}" = set; then :
9255 $as_echo_n "(cached) " >&6
9256 else
9257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9258 /* end confdefs.h. */
9259
9260 #include <features.h>
9261 #ifdef __GNU_LIBRARY__
9262 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9263 Lucky GNU user
9264 #endif
9265 #endif
9266 #ifdef __UCLIBC__
9267 Lucky user
9268 #endif
9269
9270 _ACEOF
9271 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9272 $EGREP "Lucky" >/dev/null 2>&1; then :
9273 ac_cv_gnu_library_2_1=yes
9274 else
9275 ac_cv_gnu_library_2_1=no
9276 fi
9277 rm -f conftest*
9278
9279
9280
9281 fi
9282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
9283 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
9284
9285 GLIBC21="$ac_cv_gnu_library_2_1"
9286
9287
9288
9289 GNULIB_FCHMODAT=0;
9290 GNULIB_FSTAT=0;
9291 GNULIB_FSTATAT=0;
9292 GNULIB_FUTIMENS=0;
9293 GNULIB_LCHMOD=0;
9294 GNULIB_LSTAT=0;
9295 GNULIB_MKDIRAT=0;
9296 GNULIB_MKFIFO=0;
9297 GNULIB_MKFIFOAT=0;
9298 GNULIB_MKNOD=0;
9299 GNULIB_MKNODAT=0;
9300 GNULIB_STAT=0;
9301 GNULIB_UTIMENSAT=0;
9302 HAVE_FCHMODAT=1;
9303 HAVE_FSTATAT=1;
9304 HAVE_FUTIMENS=1;
9305 HAVE_LCHMOD=1;
9306 HAVE_LSTAT=1;
9307 HAVE_MKDIRAT=1;
9308 HAVE_MKFIFO=1;
9309 HAVE_MKFIFOAT=1;
9310 HAVE_MKNOD=1;
9311 HAVE_MKNODAT=1;
9312 HAVE_UTIMENSAT=1;
9313 REPLACE_FSTAT=0;
9314 REPLACE_FSTATAT=0;
9315 REPLACE_FUTIMENS=0;
9316 REPLACE_LSTAT=0;
9317 REPLACE_MKDIR=0;
9318 REPLACE_MKFIFO=0;
9319 REPLACE_MKNOD=0;
9320 REPLACE_STAT=0;
9321 REPLACE_UTIMENSAT=0;
9322
9323
9324
9325
9326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
9327 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
9328 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
9329 $as_echo_n "(cached) " >&6
9330 else
9331 rm -f conftest.sym conftest.file
9332 echo >conftest.file
9333 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
9334 if test "$cross_compiling" = yes; then :
9335 case "$host_os" in
9336 # Guess yes on glibc systems.
9337 *-gnu*) gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
9338 # If we don't know, assume the worst.
9339 *) gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
9340 esac
9341
9342 else
9343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9344 /* end confdefs.h. */
9345 $ac_includes_default
9346 int
9347 main ()
9348 {
9349 struct stat sbuf;
9350 /* Linux will dereference the symlink and fail, as required by
9351 POSIX. That is better in the sense that it means we will not
9352 have to compile and use the lstat wrapper. */
9353 return lstat ("conftest.sym/", &sbuf) == 0;
9354
9355 ;
9356 return 0;
9357 }
9358 _ACEOF
9359 if ac_fn_c_try_run "$LINENO"; then :
9360 gl_cv_func_lstat_dereferences_slashed_symlink=yes
9361 else
9362 gl_cv_func_lstat_dereferences_slashed_symlink=no
9363 fi
9364 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9365 conftest.$ac_objext conftest.beam conftest.$ac_ext
9366 fi
9367
9368 else
9369 # If the 'ln -s' command failed, then we probably don't even
9370 # have an lstat function.
9371 gl_cv_func_lstat_dereferences_slashed_symlink="guessing no"
9372 fi
9373 rm -f conftest.sym conftest.file
9374
9375 fi
9376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
9377 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
9378 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
9379 *yes)
9380
9381 cat >>confdefs.h <<_ACEOF
9382 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
9383 _ACEOF
9384
9385 ;;
9386 esac
9387
9388
9389 for ac_header in stdlib.h
9390 do :
9391 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
9392 if test "x$ac_cv_header_stdlib_h" = x""yes; then :
9393 cat >>confdefs.h <<_ACEOF
9394 #define HAVE_STDLIB_H 1
9395 _ACEOF
9396
9397 fi
9398
9399 done
9400
9401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
9402 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
9403 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
9404 $as_echo_n "(cached) " >&6
9405 else
9406 if test "$cross_compiling" = yes; then :
9407 ac_cv_func_malloc_0_nonnull=no
9408 else
9409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9410 /* end confdefs.h. */
9411 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
9412 # include <stdlib.h>
9413 #else
9414 char *malloc ();
9415 #endif
9416
9417 int
9418 main ()
9419 {
9420 return ! malloc (0);
9421 ;
9422 return 0;
9423 }
9424 _ACEOF
9425 if ac_fn_c_try_run "$LINENO"; then :
9426 ac_cv_func_malloc_0_nonnull=yes
9427 else
9428 ac_cv_func_malloc_0_nonnull=no
9429 fi
9430 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9431 conftest.$ac_objext conftest.beam conftest.$ac_ext
9432 fi
9433
9434 fi
9435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
9436 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
9437 if test $ac_cv_func_malloc_0_nonnull = yes; then :
9438 gl_cv_func_malloc_0_nonnull=1
9439 else
9440 gl_cv_func_malloc_0_nonnull=0
9441 fi
9442
9443
9444 cat >>confdefs.h <<_ACEOF
9445 #define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
9446 _ACEOF
9447
9448
9449
9450
9451
9452 GNULIB_BTOWC=0;
9453 GNULIB_WCTOB=0;
9454 GNULIB_MBSINIT=0;
9455 GNULIB_MBRTOWC=0;
9456 GNULIB_MBRLEN=0;
9457 GNULIB_MBSRTOWCS=0;
9458 GNULIB_MBSNRTOWCS=0;
9459 GNULIB_WCRTOMB=0;
9460 GNULIB_WCSRTOMBS=0;
9461 GNULIB_WCSNRTOMBS=0;
9462 GNULIB_WCWIDTH=0;
9463 GNULIB_WMEMCHR=0;
9464 GNULIB_WMEMCMP=0;
9465 GNULIB_WMEMCPY=0;
9466 GNULIB_WMEMMOVE=0;
9467 GNULIB_WMEMSET=0;
9468 GNULIB_WCSLEN=0;
9469 GNULIB_WCSNLEN=0;
9470 GNULIB_WCSCPY=0;
9471 GNULIB_WCPCPY=0;
9472 GNULIB_WCSNCPY=0;
9473 GNULIB_WCPNCPY=0;
9474 GNULIB_WCSCAT=0;
9475 GNULIB_WCSNCAT=0;
9476 GNULIB_WCSCMP=0;
9477 GNULIB_WCSNCMP=0;
9478 GNULIB_WCSCASECMP=0;
9479 GNULIB_WCSNCASECMP=0;
9480 GNULIB_WCSCOLL=0;
9481 GNULIB_WCSXFRM=0;
9482 GNULIB_WCSDUP=0;
9483 GNULIB_WCSCHR=0;
9484 GNULIB_WCSRCHR=0;
9485 GNULIB_WCSCSPN=0;
9486 GNULIB_WCSSPN=0;
9487 GNULIB_WCSPBRK=0;
9488 GNULIB_WCSSTR=0;
9489 GNULIB_WCSTOK=0;
9490 GNULIB_WCSWIDTH=0;
9491 HAVE_BTOWC=1;
9492 HAVE_MBSINIT=1;
9493 HAVE_MBRTOWC=1;
9494 HAVE_MBRLEN=1;
9495 HAVE_MBSRTOWCS=1;
9496 HAVE_MBSNRTOWCS=1;
9497 HAVE_WCRTOMB=1;
9498 HAVE_WCSRTOMBS=1;
9499 HAVE_WCSNRTOMBS=1;
9500 HAVE_WMEMCHR=1;
9501 HAVE_WMEMCMP=1;
9502 HAVE_WMEMCPY=1;
9503 HAVE_WMEMMOVE=1;
9504 HAVE_WMEMSET=1;
9505 HAVE_WCSLEN=1;
9506 HAVE_WCSNLEN=1;
9507 HAVE_WCSCPY=1;
9508 HAVE_WCPCPY=1;
9509 HAVE_WCSNCPY=1;
9510 HAVE_WCPNCPY=1;
9511 HAVE_WCSCAT=1;
9512 HAVE_WCSNCAT=1;
9513 HAVE_WCSCMP=1;
9514 HAVE_WCSNCMP=1;
9515 HAVE_WCSCASECMP=1;
9516 HAVE_WCSNCASECMP=1;
9517 HAVE_WCSCOLL=1;
9518 HAVE_WCSXFRM=1;
9519 HAVE_WCSDUP=1;
9520 HAVE_WCSCHR=1;
9521 HAVE_WCSRCHR=1;
9522 HAVE_WCSCSPN=1;
9523 HAVE_WCSSPN=1;
9524 HAVE_WCSPBRK=1;
9525 HAVE_WCSSTR=1;
9526 HAVE_WCSTOK=1;
9527 HAVE_WCSWIDTH=1;
9528 HAVE_DECL_WCTOB=1;
9529 HAVE_DECL_WCWIDTH=1;
9530 REPLACE_MBSTATE_T=0;
9531 REPLACE_BTOWC=0;
9532 REPLACE_WCTOB=0;
9533 REPLACE_MBSINIT=0;
9534 REPLACE_MBRTOWC=0;
9535 REPLACE_MBRLEN=0;
9536 REPLACE_MBSRTOWCS=0;
9537 REPLACE_MBSNRTOWCS=0;
9538 REPLACE_WCRTOMB=0;
9539 REPLACE_WCSRTOMBS=0;
9540 REPLACE_WCSNRTOMBS=0;
9541 REPLACE_WCWIDTH=0;
9542 REPLACE_WCSWIDTH=0;
9543
9544
9545
9546
9547
9548
9549
9550
9551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
9552 $as_echo_n "checking for a traditional japanese locale... " >&6; }
9553 if test "${gt_cv_locale_ja+set}" = set; then :
9554 $as_echo_n "(cached) " >&6
9555 else
9556
9557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9558 /* end confdefs.h. */
9559
9560 #include <locale.h>
9561 #include <time.h>
9562 #if HAVE_LANGINFO_CODESET
9563 # include <langinfo.h>
9564 #endif
9565 #include <stdlib.h>
9566 #include <string.h>
9567 struct tm t;
9568 char buf[16];
9569 int main ()
9570 {
9571 const char *p;
9572 /* Check whether the given locale name is recognized by the system. */
9573 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
9574 /* On native Windows, setlocale(category, "") looks at the system settings,
9575 not at the environment variables. Also, when an encoding suffix such
9576 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
9577 category of the locale to "C". */
9578 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
9579 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
9580 return 1;
9581 #else
9582 if (setlocale (LC_ALL, "") == NULL) return 1;
9583 #endif
9584 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
9585 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
9586 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
9587 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
9588 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
9589 some unit tests fail.
9590 On MirBSD 10, when an unsupported locale is specified, setlocale()
9591 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
9592 #if HAVE_LANGINFO_CODESET
9593 {
9594 const char *cs = nl_langinfo (CODESET);
9595 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
9596 || strcmp (cs, "UTF-8") == 0)
9597 return 1;
9598 }
9599 #endif
9600 #ifdef __CYGWIN__
9601 /* On Cygwin, avoid locale names without encoding suffix, because the
9602 locale_charset() function relies on the encoding suffix. Note that
9603 LC_ALL is set on the command line. */
9604 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
9605 #endif
9606 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales
9607 on Cygwin 1.5.x. */
9608 if (MB_CUR_MAX == 1)
9609 return 1;
9610 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
9611 This excludes the UTF-8 encoding (except on MirBSD). */
9612 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
9613 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
9614 for (p = buf; *p != '\0'; p++)
9615 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
9616 return 1;
9617 return 0;
9618 }
9619
9620 _ACEOF
9621 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9622 (eval $ac_link) 2>&5
9623 ac_status=$?
9624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9625 test $ac_status = 0; } && test -s conftest$ac_exeext; then
9626 case "$host_os" in
9627 # Handle native Windows specially, because there setlocale() interprets
9628 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
9629 # "fr" or "fra" as "French" or "French_France.1252",
9630 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
9631 # "ja" as "Japanese" or "Japanese_Japan.932",
9632 # and similar.
9633 mingw*)
9634 # Note that on native Windows, the Japanese locale is
9635 # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
9636 # cannot use it here.
9637 gt_cv_locale_ja=none
9638 ;;
9639 *)
9640 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
9641 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
9642 # configure script would override the LC_ALL setting. Likewise for
9643 # LC_CTYPE, which is also set at the beginning of the configure script.
9644 # Test for the AIX locale name.
9645 if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9646 gt_cv_locale_ja=ja_JP
9647 else
9648 # Test for the locale name with explicit encoding suffix.
9649 if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9650 gt_cv_locale_ja=ja_JP.EUC-JP
9651 else
9652 # Test for the HP-UX, OSF/1, NetBSD locale name.
9653 if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9654 gt_cv_locale_ja=ja_JP.eucJP
9655 else
9656 # Test for the IRIX, FreeBSD locale name.
9657 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9658 gt_cv_locale_ja=ja_JP.EUC
9659 else
9660 # Test for the Solaris 7 locale name.
9661 if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9662 gt_cv_locale_ja=ja
9663 else
9664 # Special test for NetBSD 1.6.
9665 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
9666 gt_cv_locale_ja=ja_JP.eucJP
9667 else
9668 # None found.
9669 gt_cv_locale_ja=none
9670 fi
9671 fi
9672 fi
9673 fi
9674 fi
9675 fi
9676 ;;
9677 esac
9678 fi
9679 rm -fr conftest*
9680
9681 fi
9682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
9683 $as_echo "$gt_cv_locale_ja" >&6; }
9684 LOCALE_JA=$gt_cv_locale_ja
9685
9686
9687
9688
9689
9690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
9691 $as_echo_n "checking for a transitional chinese locale... " >&6; }
9692 if test "${gt_cv_locale_zh_CN+set}" = set; then :
9693 $as_echo_n "(cached) " >&6
9694 else
9695
9696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9697 /* end confdefs.h. */
9698
9699 #include <locale.h>
9700 #include <stdlib.h>
9701 #include <time.h>
9702 #if HAVE_LANGINFO_CODESET
9703 # include <langinfo.h>
9704 #endif
9705 #include <stdlib.h>
9706 #include <string.h>
9707 struct tm t;
9708 char buf[16];
9709 int main ()
9710 {
9711 const char *p;
9712 /* Check whether the given locale name is recognized by the system. */
9713 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
9714 /* On native Windows, setlocale(category, "") looks at the system settings,
9715 not at the environment variables. Also, when an encoding suffix such
9716 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
9717 category of the locale to "C". */
9718 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
9719 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
9720 return 1;
9721 #else
9722 if (setlocale (LC_ALL, "") == NULL) return 1;
9723 #endif
9724 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
9725 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
9726 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
9727 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
9728 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
9729 some unit tests fail.
9730 On MirBSD 10, when an unsupported locale is specified, setlocale()
9731 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
9732 #if HAVE_LANGINFO_CODESET
9733 {
9734 const char *cs = nl_langinfo (CODESET);
9735 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
9736 || strcmp (cs, "UTF-8") == 0)
9737 return 1;
9738 }
9739 #endif
9740 #ifdef __CYGWIN__
9741 /* On Cygwin, avoid locale names without encoding suffix, because the
9742 locale_charset() function relies on the encoding suffix. Note that
9743 LC_ALL is set on the command line. */
9744 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
9745 #endif
9746 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
9747 This excludes the UTF-8 encoding (except on MirBSD). */
9748 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
9749 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
9750 for (p = buf; *p != '\0'; p++)
9751 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
9752 return 1;
9753 /* Check whether a typical GB18030 multibyte sequence is recognized as a
9754 single wide character. This excludes the GB2312 and GBK encodings. */
9755 if (mblen ("\203\062\332\066", 5) != 4)
9756 return 1;
9757 return 0;
9758 }
9759
9760 _ACEOF
9761 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9762 (eval $ac_link) 2>&5
9763 ac_status=$?
9764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9765 test $ac_status = 0; } && test -s conftest$ac_exeext; then
9766 case "$host_os" in
9767 # Handle native Windows specially, because there setlocale() interprets
9768 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
9769 # "fr" or "fra" as "French" or "French_France.1252",
9770 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
9771 # "ja" as "Japanese" or "Japanese_Japan.932",
9772 # and similar.
9773 mingw*)
9774 # Test for the hypothetical native Windows locale name.
9775 if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9776 gt_cv_locale_zh_CN=Chinese_China.54936
9777 else
9778 # None found.
9779 gt_cv_locale_zh_CN=none
9780 fi
9781 ;;
9782 solaris2.8)
9783 # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
9784 # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
9785 # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
9786 gt_cv_locale_zh_CN=none
9787 ;;
9788 *)
9789 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
9790 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
9791 # configure script would override the LC_ALL setting. Likewise for
9792 # LC_CTYPE, which is also set at the beginning of the configure script.
9793 # Test for the locale name without encoding suffix.
9794 if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9795 gt_cv_locale_zh_CN=zh_CN
9796 else
9797 # Test for the locale name with explicit encoding suffix.
9798 if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9799 gt_cv_locale_zh_CN=zh_CN.GB18030
9800 else
9801 # None found.
9802 gt_cv_locale_zh_CN=none
9803 fi
9804 fi
9805 ;;
9806 esac
9807 else
9808 # If there was a link error, due to mblen(), the system is so old that
9809 # it certainly doesn't have a chinese locale.
9810 gt_cv_locale_zh_CN=none
9811 fi
9812 rm -fr conftest*
9813
9814 fi
9815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
9816 $as_echo "$gt_cv_locale_zh_CN" >&6; }
9817 LOCALE_ZH_CN=$gt_cv_locale_zh_CN
9818
9819
9820
9821
9822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
9823 $as_echo_n "checking for a french Unicode locale... " >&6; }
9824 if test "${gt_cv_locale_fr_utf8+set}" = set; then :
9825 $as_echo_n "(cached) " >&6
9826 else
9827
9828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9829 /* end confdefs.h. */
9830
9831 #include <locale.h>
9832 #include <time.h>
9833 #if HAVE_LANGINFO_CODESET
9834 # include <langinfo.h>
9835 #endif
9836 #include <stdlib.h>
9837 #include <string.h>
9838 struct tm t;
9839 char buf[16];
9840 int main () {
9841 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
9842 imitates locale dependent behaviour by looking at the environment
9843 variables, and all locales use the UTF-8 encoding. */
9844 #if !(defined __BEOS__ || defined __HAIKU__)
9845 /* Check whether the given locale name is recognized by the system. */
9846 # if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
9847 /* On native Windows, setlocale(category, "") looks at the system settings,
9848 not at the environment variables. Also, when an encoding suffix such
9849 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
9850 category of the locale to "C". */
9851 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
9852 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
9853 return 1;
9854 # else
9855 if (setlocale (LC_ALL, "") == NULL) return 1;
9856 # endif
9857 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
9858 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
9859 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
9860 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
9861 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
9862 some unit tests fail. */
9863 # if HAVE_LANGINFO_CODESET
9864 {
9865 const char *cs = nl_langinfo (CODESET);
9866 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
9867 return 1;
9868 }
9869 # endif
9870 # ifdef __CYGWIN__
9871 /* On Cygwin, avoid locale names without encoding suffix, because the
9872 locale_charset() function relies on the encoding suffix. Note that
9873 LC_ALL is set on the command line. */
9874 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
9875 # endif
9876 /* Check whether in the abbreviation of the second month, the second
9877 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
9878 two bytes long, with UTF-8 encoding. */
9879 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
9880 if (strftime (buf, sizeof (buf), "%b", &t) < 4
9881 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
9882 return 1;
9883 #endif
9884 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
9885 /* Check whether the decimal separator is a comma.
9886 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
9887 are nl_langinfo(RADIXCHAR) are both ".". */
9888 if (localeconv () ->decimal_point[0] != ',') return 1;
9889 #endif
9890 return 0;
9891 }
9892
9893 _ACEOF
9894 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9895 (eval $ac_link) 2>&5
9896 ac_status=$?
9897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9898 test $ac_status = 0; } && test -s conftest$ac_exeext; then
9899 case "$host_os" in
9900 # Handle native Windows specially, because there setlocale() interprets
9901 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
9902 # "fr" or "fra" as "French" or "French_France.1252",
9903 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
9904 # "ja" as "Japanese" or "Japanese_Japan.932",
9905 # and similar.
9906 mingw*)
9907 # Test for the hypothetical native Windows locale name.
9908 if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9909 gt_cv_locale_fr_utf8=French_France.65001
9910 else
9911 # None found.
9912 gt_cv_locale_fr_utf8=none
9913 fi
9914 ;;
9915 *)
9916 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
9917 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
9918 # configure script would override the LC_ALL setting. Likewise for
9919 # LC_CTYPE, which is also set at the beginning of the configure script.
9920 # Test for the usual locale name.
9921 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9922 gt_cv_locale_fr_utf8=fr_FR
9923 else
9924 # Test for the locale name with explicit encoding suffix.
9925 if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9926 gt_cv_locale_fr_utf8=fr_FR.UTF-8
9927 else
9928 # Test for the Solaris 7 locale name.
9929 if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9930 gt_cv_locale_fr_utf8=fr.UTF-8
9931 else
9932 # None found.
9933 gt_cv_locale_fr_utf8=none
9934 fi
9935 fi
9936 fi
9937 ;;
9938 esac
9939 fi
9940 rm -fr conftest*
9941
9942 fi
9943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
9944 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
9945 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
9946
9947
9948
9949
9950
9951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
9952 $as_echo_n "checking for a traditional french locale... " >&6; }
9953 if test "${gt_cv_locale_fr+set}" = set; then :
9954 $as_echo_n "(cached) " >&6
9955 else
9956
9957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9958 /* end confdefs.h. */
9959
9960 #include <locale.h>
9961 #include <time.h>
9962 #if HAVE_LANGINFO_CODESET
9963 # include <langinfo.h>
9964 #endif
9965 #include <stdlib.h>
9966 #include <string.h>
9967 struct tm t;
9968 char buf[16];
9969 int main () {
9970 /* Check whether the given locale name is recognized by the system. */
9971 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
9972 /* On native Windows, setlocale(category, "") looks at the system settings,
9973 not at the environment variables. Also, when an encoding suffix such
9974 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
9975 category of the locale to "C". */
9976 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
9977 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
9978 return 1;
9979 #else
9980 if (setlocale (LC_ALL, "") == NULL) return 1;
9981 #endif
9982 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
9983 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
9984 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
9985 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
9986 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
9987 some unit tests fail.
9988 On MirBSD 10, when an unsupported locale is specified, setlocale()
9989 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
9990 #if HAVE_LANGINFO_CODESET
9991 {
9992 const char *cs = nl_langinfo (CODESET);
9993 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
9994 || strcmp (cs, "UTF-8") == 0)
9995 return 1;
9996 }
9997 #endif
9998 #ifdef __CYGWIN__
9999 /* On Cygwin, avoid locale names without encoding suffix, because the
10000 locale_charset() function relies on the encoding suffix. Note that
10001 LC_ALL is set on the command line. */
10002 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
10003 #endif
10004 /* Check whether in the abbreviation of the second month, the second
10005 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
10006 one byte long. This excludes the UTF-8 encoding. */
10007 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
10008 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
10009 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
10010 /* Check whether the decimal separator is a comma.
10011 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
10012 are nl_langinfo(RADIXCHAR) are both ".". */
10013 if (localeconv () ->decimal_point[0] != ',') return 1;
10014 #endif
10015 return 0;
10016 }
10017
10018 _ACEOF
10019 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10020 (eval $ac_link) 2>&5
10021 ac_status=$?
10022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10023 test $ac_status = 0; } && test -s conftest$ac_exeext; then
10024 case "$host_os" in
10025 # Handle native Windows specially, because there setlocale() interprets
10026 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
10027 # "fr" or "fra" as "French" or "French_France.1252",
10028 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
10029 # "ja" as "Japanese" or "Japanese_Japan.932",
10030 # and similar.
10031 mingw*)
10032 # Test for the native Windows locale name.
10033 if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10034 gt_cv_locale_fr=French_France.1252
10035 else
10036 # None found.
10037 gt_cv_locale_fr=none
10038 fi
10039 ;;
10040 *)
10041 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
10042 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
10043 # configure script would override the LC_ALL setting. Likewise for
10044 # LC_CTYPE, which is also set at the beginning of the configure script.
10045 # Test for the usual locale name.
10046 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10047 gt_cv_locale_fr=fr_FR
10048 else
10049 # Test for the locale name with explicit encoding suffix.
10050 if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10051 gt_cv_locale_fr=fr_FR.ISO-8859-1
10052 else
10053 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
10054 if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10055 gt_cv_locale_fr=fr_FR.ISO8859-1
10056 else
10057 # Test for the HP-UX locale name.
10058 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10059 gt_cv_locale_fr=fr_FR.iso88591
10060 else
10061 # Test for the Solaris 7 locale name.
10062 if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10063 gt_cv_locale_fr=fr
10064 else
10065 # None found.
10066 gt_cv_locale_fr=none
10067 fi
10068 fi
10069 fi
10070 fi
10071 fi
10072 ;;
10073 esac
10074 fi
10075 rm -fr conftest*
10076
10077 fi
10078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
10079 $as_echo "$gt_cv_locale_fr" >&6; }
10080 LOCALE_FR=$gt_cv_locale_fr
10081
10082
10083
10084
10085
10086
10087
10088 GNULIB_FFSL=0;
10089 GNULIB_FFSLL=0;
10090 GNULIB_MEMCHR=0;
10091 GNULIB_MEMMEM=0;
10092 GNULIB_MEMPCPY=0;
10093 GNULIB_MEMRCHR=0;
10094 GNULIB_RAWMEMCHR=0;
10095 GNULIB_STPCPY=0;
10096 GNULIB_STPNCPY=0;
10097 GNULIB_STRCHRNUL=0;
10098 GNULIB_STRDUP=0;
10099 GNULIB_STRNCAT=0;
10100 GNULIB_STRNDUP=0;
10101 GNULIB_STRNLEN=0;
10102 GNULIB_STRPBRK=0;
10103 GNULIB_STRSEP=0;
10104 GNULIB_STRSTR=0;
10105 GNULIB_STRCASESTR=0;
10106 GNULIB_STRTOK_R=0;
10107 GNULIB_MBSLEN=0;
10108 GNULIB_MBSNLEN=0;
10109 GNULIB_MBSCHR=0;
10110 GNULIB_MBSRCHR=0;
10111 GNULIB_MBSSTR=0;
10112 GNULIB_MBSCASECMP=0;
10113 GNULIB_MBSNCASECMP=0;
10114 GNULIB_MBSPCASECMP=0;
10115 GNULIB_MBSCASESTR=0;
10116 GNULIB_MBSCSPN=0;
10117 GNULIB_MBSPBRK=0;
10118 GNULIB_MBSSPN=0;
10119 GNULIB_MBSSEP=0;
10120 GNULIB_MBSTOK_R=0;
10121 GNULIB_STRERROR=0;
10122 GNULIB_STRERROR_R=0;
10123 GNULIB_STRSIGNAL=0;
10124 GNULIB_STRVERSCMP=0;
10125 HAVE_MBSLEN=0;
10126 HAVE_FFSL=1;
10127 HAVE_FFSLL=1;
10128 HAVE_MEMCHR=1;
10129 HAVE_DECL_MEMMEM=1;
10130 HAVE_MEMPCPY=1;
10131 HAVE_DECL_MEMRCHR=1;
10132 HAVE_RAWMEMCHR=1;
10133 HAVE_STPCPY=1;
10134 HAVE_STPNCPY=1;
10135 HAVE_STRCHRNUL=1;
10136 HAVE_DECL_STRDUP=1;
10137 HAVE_DECL_STRNDUP=1;
10138 HAVE_DECL_STRNLEN=1;
10139 HAVE_STRPBRK=1;
10140 HAVE_STRSEP=1;
10141 HAVE_STRCASESTR=1;
10142 HAVE_DECL_STRTOK_R=1;
10143 HAVE_DECL_STRERROR_R=1;
10144 HAVE_DECL_STRSIGNAL=1;
10145 HAVE_STRVERSCMP=1;
10146 REPLACE_MEMCHR=0;
10147 REPLACE_MEMMEM=0;
10148 REPLACE_STPNCPY=0;
10149 REPLACE_STRDUP=0;
10150 REPLACE_STRSTR=0;
10151 REPLACE_STRCASESTR=0;
10152 REPLACE_STRCHRNUL=0;
10153 REPLACE_STRERROR=0;
10154 REPLACE_STRERROR_R=0;
10155 REPLACE_STRNCAT=0;
10156 REPLACE_STRNDUP=0;
10157 REPLACE_STRNLEN=0;
10158 REPLACE_STRSIGNAL=0;
10159 REPLACE_STRTOK_R=0;
10160 UNDEFINE_STRTOK_R=0;
10161
10162
10163
10164
10165
10166 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
10167 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
10168 # irrelevant for anonymous mappings.
10169 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
10170 if test "x$ac_cv_func_mmap" = x""yes; then :
10171 gl_have_mmap=yes
10172 else
10173 gl_have_mmap=no
10174 fi
10175
10176
10177 # Try to allow MAP_ANONYMOUS.
10178 gl_have_mmap_anonymous=no
10179 if test $gl_have_mmap = yes; then
10180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
10181 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
10182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10183 /* end confdefs.h. */
10184
10185 #include <sys/mman.h>
10186 #ifdef MAP_ANONYMOUS
10187 I cannot identify this map
10188 #endif
10189
10190 _ACEOF
10191 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10192 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
10193 gl_have_mmap_anonymous=yes
10194 fi
10195 rm -f conftest*
10196
10197 if test $gl_have_mmap_anonymous != yes; then
10198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10199 /* end confdefs.h. */
10200
10201 #include <sys/mman.h>
10202 #ifdef MAP_ANON
10203 I cannot identify this map
10204 #endif
10205
10206 _ACEOF
10207 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10208 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
10209
10210 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
10211
10212 gl_have_mmap_anonymous=yes
10213 fi
10214 rm -f conftest*
10215
10216 fi
10217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
10218 $as_echo "$gl_have_mmap_anonymous" >&6; }
10219 if test $gl_have_mmap_anonymous = yes; then
10220
10221 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
10222
10223 fi
10224 fi
10225
10226
10227
10228
10229
10230
10231 if test $HAVE_MEMCHR = 1; then
10232 # Detect platform-specific bugs in some versions of glibc:
10233 # memchr should not dereference anything with length 0
10234 # http://bugzilla.redhat.com/499689
10235 # memchr should not dereference overestimated length after a match
10236 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
10237 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
10238 # Assume that memchr works on platforms that lack mprotect.
10239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
10240 $as_echo_n "checking whether memchr works... " >&6; }
10241 if test "${gl_cv_func_memchr_works+set}" = set; then :
10242 $as_echo_n "(cached) " >&6
10243 else
10244 if test "$cross_compiling" = yes; then :
10245 gl_cv_func_memchr_works="guessing no"
10246 else
10247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10248 /* end confdefs.h. */
10249
10250 #include <string.h>
10251 #if HAVE_SYS_MMAN_H
10252 # include <fcntl.h>
10253 # include <unistd.h>
10254 # include <sys/types.h>
10255 # include <sys/mman.h>
10256 # ifndef MAP_FILE
10257 # define MAP_FILE 0
10258 # endif
10259 #endif
10260
10261 int
10262 main ()
10263 {
10264
10265 int result = 0;
10266 char *fence = NULL;
10267 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
10268 # if HAVE_MAP_ANONYMOUS
10269 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
10270 const int fd = -1;
10271 # else /* !HAVE_MAP_ANONYMOUS */
10272 const int flags = MAP_FILE | MAP_PRIVATE;
10273 int fd = open ("/dev/zero", O_RDONLY, 0666);
10274 if (fd >= 0)
10275 # endif
10276 {
10277 int pagesize = getpagesize ();
10278 char *two_pages =
10279 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
10280 flags, fd, 0);
10281 if (two_pages != (char *)(-1)
10282 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
10283 fence = two_pages + pagesize;
10284 }
10285 #endif
10286 if (fence)
10287 {
10288 if (memchr (fence, 0, 0))
10289 result |= 1;
10290 strcpy (fence - 9, "12345678");
10291 if (memchr (fence - 9, 0, 79) != fence - 1)
10292 result |= 2;
10293 if (memchr (fence - 1, 0, 3) != fence - 1)
10294 result |= 4;
10295 }
10296 return result;
10297
10298 ;
10299 return 0;
10300 }
10301 _ACEOF
10302 if ac_fn_c_try_run "$LINENO"; then :
10303 gl_cv_func_memchr_works=yes
10304 else
10305 gl_cv_func_memchr_works=no
10306 fi
10307 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10308 conftest.$ac_objext conftest.beam conftest.$ac_ext
10309 fi
10310
10311 fi
10312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
10313 $as_echo "$gl_cv_func_memchr_works" >&6; }
10314 if test "$gl_cv_func_memchr_works" != yes; then
10315 REPLACE_MEMCHR=1
10316 fi
10317 fi
10318
10319 ac_fn_c_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
10320 if test "x$ac_cv_have_decl_memmem" = x""yes; then :
10321 ac_have_decl=1
10322 else
10323 ac_have_decl=0
10324 fi
10325
10326 cat >>confdefs.h <<_ACEOF
10327 #define HAVE_DECL_MEMMEM $ac_have_decl
10328 _ACEOF
10329
10330
10331
10332
10333
10334 for ac_func in memmem
10335 do :
10336 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
10337 if test "x$ac_cv_func_memmem" = x""yes; then :
10338 cat >>confdefs.h <<_ACEOF
10339 #define HAVE_MEMMEM 1
10340 _ACEOF
10341
10342 fi
10343 done
10344
10345 if test $ac_cv_func_memmem = yes; then
10346 HAVE_MEMMEM=1
10347 else
10348 HAVE_MEMMEM=0
10349 fi
10350
10351 if test $ac_cv_have_decl_memmem = no; then
10352 HAVE_DECL_MEMMEM=0
10353 else
10354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
10355 $as_echo_n "checking whether memmem works... " >&6; }
10356 if test "${gl_cv_func_memmem_works_always+set}" = set; then :
10357 $as_echo_n "(cached) " >&6
10358 else
10359 if test "$cross_compiling" = yes; then :
10360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10361 /* end confdefs.h. */
10362
10363 #ifdef __GNU_LIBRARY__
10364 #include <features.h>
10365 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
10366 || __GLIBC_MINOR__ > 12)) \
10367 || (__GLIBC__ > 2)) \
10368 || defined __UCLIBC__
10369 Lucky user
10370 #endif
10371 #elif defined __CYGWIN__
10372 #include <cygwin/version.h>
10373 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
10374 Lucky user
10375 #endif
10376 #else
10377 Lucky user
10378 #endif
10379
10380 _ACEOF
10381 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10382 $EGREP "Lucky user" >/dev/null 2>&1; then :
10383 gl_cv_func_memmem_works_always="guessing yes"
10384 else
10385 gl_cv_func_memmem_works_always="guessing no"
10386 fi
10387 rm -f conftest*
10388
10389
10390 else
10391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10392 /* end confdefs.h. */
10393
10394 #include <string.h> /* for memmem */
10395 #define P "_EF_BF_BD"
10396 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
10397 #define NEEDLE P P P P P
10398
10399 int
10400 main ()
10401 {
10402
10403 int result = 0;
10404 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
10405 result |= 1;
10406 /* Check for empty needle behavior. */
10407 {
10408 const char *haystack = "AAA";
10409 if (memmem (haystack, 3, NULL, 0) != haystack)
10410 result |= 2;
10411 }
10412 return result;
10413
10414 ;
10415 return 0;
10416 }
10417 _ACEOF
10418 if ac_fn_c_try_run "$LINENO"; then :
10419 gl_cv_func_memmem_works_always=yes
10420 else
10421 gl_cv_func_memmem_works_always=no
10422 fi
10423 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10424 conftest.$ac_objext conftest.beam conftest.$ac_ext
10425 fi
10426
10427
10428 fi
10429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
10430 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
10431 case "$gl_cv_func_memmem_works_always" in
10432 *yes) ;;
10433 *)
10434 REPLACE_MEMMEM=1
10435 ;;
10436 esac
10437 fi
10438 :
10439
10440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
10441 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
10442 if test "${ac_cv_header_stdbool_h+set}" = set; then :
10443 $as_echo_n "(cached) " >&6
10444 else
10445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10446 /* end confdefs.h. */
10447
10448 #include <stdbool.h>
10449 #ifndef bool
10450 "error: bool is not defined"
10451 #endif
10452 #ifndef false
10453 "error: false is not defined"
10454 #endif
10455 #if false
10456 "error: false is not 0"
10457 #endif
10458 #ifndef true
10459 "error: true is not defined"
10460 #endif
10461 #if true != 1
10462 "error: true is not 1"
10463 #endif
10464 #ifndef __bool_true_false_are_defined
10465 "error: __bool_true_false_are_defined is not defined"
10466 #endif
10467
10468 struct s { _Bool s: 1; _Bool t; } s;
10469
10470 char a[true == 1 ? 1 : -1];
10471 char b[false == 0 ? 1 : -1];
10472 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
10473 char d[(bool) 0.5 == true ? 1 : -1];
10474 /* See body of main program for 'e'. */
10475 char f[(_Bool) 0.0 == false ? 1 : -1];
10476 char g[true];
10477 char h[sizeof (_Bool)];
10478 char i[sizeof s.t];
10479 enum { j = false, k = true, l = false * true, m = true * 256 };
10480 /* The following fails for
10481 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
10482 _Bool n[m];
10483 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
10484 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
10485 /* Catch a bug in an HP-UX C compiler. See
10486 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
10487 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
10488 */
10489 _Bool q = true;
10490 _Bool *pq = &q;
10491
10492 int
10493 main ()
10494 {
10495
10496 bool e = &s;
10497 *pq |= q;
10498 *pq |= ! q;
10499 /* Refer to every declared value, to avoid compiler optimizations. */
10500 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
10501 + !m + !n + !o + !p + !q + !pq);
10502
10503 ;
10504 return 0;
10505 }
10506 _ACEOF
10507 if ac_fn_c_try_compile "$LINENO"; then :
10508 ac_cv_header_stdbool_h=yes
10509 else
10510 ac_cv_header_stdbool_h=no
10511 fi
10512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10513 fi
10514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
10515 $as_echo "$ac_cv_header_stdbool_h" >&6; }
10516 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
10517 if test "x$ac_cv_type__Bool" = x""yes; then :
10518
10519 cat >>confdefs.h <<_ACEOF
10520 #define HAVE__BOOL 1
10521 _ACEOF
10522
10523
10524 fi
10525
10526
10527
10528 REPLACE_NULL=0;
10529 HAVE_WCHAR_T=1;
10530
10531
10532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
10533 $as_echo_n "checking for wchar_t... " >&6; }
10534 if test "${gt_cv_c_wchar_t+set}" = set; then :
10535 $as_echo_n "(cached) " >&6
10536 else
10537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10538 /* end confdefs.h. */
10539 #include <stddef.h>
10540 wchar_t foo = (wchar_t)'\0';
10541 int
10542 main ()
10543 {
10544
10545 ;
10546 return 0;
10547 }
10548 _ACEOF
10549 if ac_fn_c_try_compile "$LINENO"; then :
10550 gt_cv_c_wchar_t=yes
10551 else
10552 gt_cv_c_wchar_t=no
10553 fi
10554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10555 fi
10556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
10557 $as_echo "$gt_cv_c_wchar_t" >&6; }
10558 if test $gt_cv_c_wchar_t = yes; then
10559
10560 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
10561
10562 fi
10563
10564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
10565 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
10566 if test "${ac_cv_c_restrict+set}" = set; then :
10567 $as_echo_n "(cached) " >&6
10568 else
10569 ac_cv_c_restrict=no
10570 # The order here caters to the fact that C++ does not require restrict.
10571 for ac_kw in __restrict __restrict__ _Restrict restrict; do
10572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10573 /* end confdefs.h. */
10574 typedef int * int_ptr;
10575 int foo (int_ptr $ac_kw ip) {
10576 return ip[0];
10577 }
10578 int
10579 main ()
10580 {
10581 int s[1];
10582 int * $ac_kw t = s;
10583 t[0] = 0;
10584 return foo(t)
10585 ;
10586 return 0;
10587 }
10588 _ACEOF
10589 if ac_fn_c_try_compile "$LINENO"; then :
10590 ac_cv_c_restrict=$ac_kw
10591 fi
10592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10593 test "$ac_cv_c_restrict" != no && break
10594 done
10595
10596 fi
10597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
10598 $as_echo "$ac_cv_c_restrict" >&6; }
10599
10600 case $ac_cv_c_restrict in
10601 restrict) ;;
10602 no) $as_echo "#define restrict /**/" >>confdefs.h
10603 ;;
10604 *) cat >>confdefs.h <<_ACEOF
10605 #define restrict $ac_cv_c_restrict
10606 _ACEOF
10607 ;;
10608 esac
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621 if test $gl_cv_have_include_next = yes; then
10622 gl_cv_next_string_h='<'string.h'>'
10623 else
10624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
10625 $as_echo_n "checking absolute name of <string.h>... " >&6; }
10626 if test "${gl_cv_next_string_h+set}" = set; then :
10627 $as_echo_n "(cached) " >&6
10628 else
10629
10630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10631 /* end confdefs.h. */
10632 #include <string.h>
10633
10634 _ACEOF
10635 case "$host_os" in
10636 aix*) gl_absname_cpp="$ac_cpp -C" ;;
10637 *) gl_absname_cpp="$ac_cpp" ;;
10638 esac
10639
10640 case "$host_os" in
10641 mingw*)
10642 gl_dirsep_regex='[/\\]'
10643 ;;
10644 *)
10645 gl_dirsep_regex='\/'
10646 ;;
10647 esac
10648 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
10649
10650 gl_header_literal_regex=`echo 'string.h' \
10651 | sed -e "$gl_make_literal_regex_sed"`
10652 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10653 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10654 s|^/[^/]|//&|
10655 p
10656 q
10657 }'
10658 gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10659 sed -n "$gl_absolute_header_sed"`'"'
10660
10661
10662 fi
10663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
10664 $as_echo "$gl_cv_next_string_h" >&6; }
10665 fi
10666 NEXT_STRING_H=$gl_cv_next_string_h
10667
10668 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
10669 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10670 gl_next_as_first_directive='<'string.h'>'
10671 else
10672 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10673 gl_next_as_first_directive=$gl_cv_next_string_h
10674 fi
10675 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
10676
10677
10678
10679
10680
10681
10682 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
10683 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
10685 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
10686 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
10687 $as_echo_n "(cached) " >&6
10688 else
10689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10690 /* end confdefs.h. */
10691 #include <string.h>
10692
10693 int
10694 main ()
10695 {
10696 #undef $gl_func
10697 (void) $gl_func;
10698 ;
10699 return 0;
10700 }
10701 _ACEOF
10702 if ac_fn_c_try_compile "$LINENO"; then :
10703 eval "$as_gl_Symbol=yes"
10704 else
10705 eval "$as_gl_Symbol=no"
10706 fi
10707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10708 fi
10709 eval ac_res=\$$as_gl_Symbol
10710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10711 $as_echo "$ac_res" >&6; }
10712 eval as_val=\$$as_gl_Symbol
10713 if test "x$as_val" = x""yes; then :
10714 cat >>confdefs.h <<_ACEOF
10715 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
10716 _ACEOF
10717
10718 eval ac_cv_have_decl_$gl_func=yes
10719 fi
10720 done
10721
10722
10723
10724
10725
10726 if test "$gl_cv_func_memchr_works" != yes; then
10727 REPLACE_STRSTR=1
10728 else
10729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
10730 $as_echo_n "checking whether strstr works... " >&6; }
10731 if test "${gl_cv_func_strstr_works_always+set}" = set; then :
10732 $as_echo_n "(cached) " >&6
10733 else
10734 if test "$cross_compiling" = yes; then :
10735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10736 /* end confdefs.h. */
10737
10738 #ifdef __GNU_LIBRARY__
10739 #include <features.h>
10740 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
10741 || defined __UCLIBC__
10742 Lucky user
10743 #endif
10744 #elif defined __CYGWIN__
10745 #include <cygwin/version.h>
10746 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
10747 Lucky user
10748 #endif
10749 #else
10750 Lucky user
10751 #endif
10752
10753 _ACEOF
10754 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10755 $EGREP "Lucky user" >/dev/null 2>&1; then :
10756 gl_cv_func_strstr_works_always="guessing yes"
10757 else
10758 gl_cv_func_strstr_works_always="guessing no"
10759 fi
10760 rm -f conftest*
10761
10762
10763 else
10764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10765 /* end confdefs.h. */
10766
10767 #include <string.h> /* for strstr */
10768 #define P "_EF_BF_BD"
10769 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
10770 #define NEEDLE P P P P P
10771
10772 int
10773 main ()
10774 {
10775 return !!strstr (HAYSTACK, NEEDLE);
10776
10777 ;
10778 return 0;
10779 }
10780 _ACEOF
10781 if ac_fn_c_try_run "$LINENO"; then :
10782 gl_cv_func_strstr_works_always=yes
10783 else
10784 gl_cv_func_strstr_works_always=no
10785 fi
10786 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10787 conftest.$ac_objext conftest.beam conftest.$ac_ext
10788 fi
10789
10790
10791 fi
10792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
10793 $as_echo "$gl_cv_func_strstr_works_always" >&6; }
10794 case "$gl_cv_func_strstr_works_always" in
10795 *yes) ;;
10796 *)
10797 REPLACE_STRSTR=1
10798 ;;
10799 esac
10800 fi
10801
10802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
10803 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
10804 if test "${ac_cv_header_stat_broken+set}" = set; then :
10805 $as_echo_n "(cached) " >&6
10806 else
10807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10808 /* end confdefs.h. */
10809 #include <sys/types.h>
10810 #include <sys/stat.h>
10811
10812 #if defined S_ISBLK && defined S_IFDIR
10813 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
10814 #endif
10815
10816 #if defined S_ISBLK && defined S_IFCHR
10817 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
10818 #endif
10819
10820 #if defined S_ISLNK && defined S_IFREG
10821 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
10822 #endif
10823
10824 #if defined S_ISSOCK && defined S_IFREG
10825 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
10826 #endif
10827
10828 _ACEOF
10829 if ac_fn_c_try_compile "$LINENO"; then :
10830 ac_cv_header_stat_broken=no
10831 else
10832 ac_cv_header_stat_broken=yes
10833 fi
10834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10835 fi
10836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
10837 $as_echo "$ac_cv_header_stat_broken" >&6; }
10838 if test $ac_cv_header_stat_broken = yes; then
10839
10840 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
10841
10842 fi
10843
10844
10845
10846 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
10847 if test "x$ac_cv_type_mode_t" = x""yes; then :
10848
10849 else
10850
10851 cat >>confdefs.h <<_ACEOF
10852 #define mode_t int
10853 _ACEOF
10854
10855 fi
10856
10857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
10858 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
10859 if test -z "$MKDIR_P"; then
10860 if test "${ac_cv_path_mkdir+set}" = set; then :
10861 $as_echo_n "(cached) " >&6
10862 else
10863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10864 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
10865 do
10866 IFS=$as_save_IFS
10867 test -z "$as_dir" && as_dir=.
10868 for ac_prog in mkdir gmkdir; do
10869 for ac_exec_ext in '' $ac_executable_extensions; do
10870 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
10871 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
10872 'mkdir (GNU coreutils) '* | \
10873 'mkdir (coreutils) '* | \
10874 'mkdir (fileutils) '4.1*)
10875 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
10876 break 3;;
10877 esac
10878 done
10879 done
10880 done
10881 IFS=$as_save_IFS
10882
10883 fi
10884
10885 if test "${ac_cv_path_mkdir+set}" = set; then
10886 MKDIR_P="$ac_cv_path_mkdir -p"
10887 else
10888 # As a last resort, use the slow shell script. Don't cache a
10889 # value for MKDIR_P within a source directory, because that will
10890 # break other packages using the cache if that directory is
10891 # removed, or if the value is a relative name.
10892 test -d ./--version && rmdir ./--version
10893 MKDIR_P="$ac_install_sh -d"
10894 fi
10895 fi
10896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
10897 $as_echo "$MKDIR_P" >&6; }
10898
10899
10900
10901 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
10902 if test "x$ac_cv_type_pid_t" = x""yes; then :
10903
10904 else
10905
10906 cat >>confdefs.h <<_ACEOF
10907 #define pid_t int
10908 _ACEOF
10909
10910 fi
10911
10912
10913
10914
10915
10916
10917
10918
10919 GNULIB_MKTIME=0;
10920 GNULIB_NANOSLEEP=0;
10921 GNULIB_STRPTIME=0;
10922 GNULIB_TIMEGM=0;
10923 GNULIB_TIME_R=0;
10924 HAVE_DECL_LOCALTIME_R=1;
10925 HAVE_NANOSLEEP=1;
10926 HAVE_STRPTIME=1;
10927 HAVE_TIMEGM=1;
10928 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
10929 REPLACE_MKTIME=GNULIB_PORTCHECK;
10930 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
10931 REPLACE_TIMEGM=GNULIB_PORTCHECK;
10932
10933
10934
10935
10936
10937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
10938 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
10939 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
10940 $as_echo_n "(cached) " >&6
10941 else
10942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10943 /* end confdefs.h. */
10944 #include <time.h>
10945
10946 int
10947 main ()
10948 {
10949 static struct timespec x; x.tv_sec = x.tv_nsec;
10950 ;
10951 return 0;
10952 }
10953 _ACEOF
10954 if ac_fn_c_try_compile "$LINENO"; then :
10955 gl_cv_sys_struct_timespec_in_time_h=yes
10956 else
10957 gl_cv_sys_struct_timespec_in_time_h=no
10958 fi
10959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10960 fi
10961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
10962 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
10963
10964 TIME_H_DEFINES_STRUCT_TIMESPEC=0
10965 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
10966 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
10967 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
10968 TIME_H_DEFINES_STRUCT_TIMESPEC=1
10969 else
10970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
10971 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
10972 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
10973 $as_echo_n "(cached) " >&6
10974 else
10975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10976 /* end confdefs.h. */
10977 #include <sys/time.h>
10978
10979 int
10980 main ()
10981 {
10982 static struct timespec x; x.tv_sec = x.tv_nsec;
10983 ;
10984 return 0;
10985 }
10986 _ACEOF
10987 if ac_fn_c_try_compile "$LINENO"; then :
10988 gl_cv_sys_struct_timespec_in_sys_time_h=yes
10989 else
10990 gl_cv_sys_struct_timespec_in_sys_time_h=no
10991 fi
10992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10993 fi
10994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
10995 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
10996 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
10997 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
10998 else
10999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
11000 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
11001 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
11002 $as_echo_n "(cached) " >&6
11003 else
11004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11005 /* end confdefs.h. */
11006 #include <pthread.h>
11007
11008 int
11009 main ()
11010 {
11011 static struct timespec x; x.tv_sec = x.tv_nsec;
11012 ;
11013 return 0;
11014 }
11015 _ACEOF
11016 if ac_fn_c_try_compile "$LINENO"; then :
11017 gl_cv_sys_struct_timespec_in_pthread_h=yes
11018 else
11019 gl_cv_sys_struct_timespec_in_pthread_h=no
11020 fi
11021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11022 fi
11023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
11024 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
11025 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
11026 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
11027 fi
11028 fi
11029 fi
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045 if test $gl_cv_have_include_next = yes; then
11046 gl_cv_next_time_h='<'time.h'>'
11047 else
11048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
11049 $as_echo_n "checking absolute name of <time.h>... " >&6; }
11050 if test "${gl_cv_next_time_h+set}" = set; then :
11051 $as_echo_n "(cached) " >&6
11052 else
11053
11054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11055 /* end confdefs.h. */
11056 #include <time.h>
11057
11058 _ACEOF
11059 case "$host_os" in
11060 aix*) gl_absname_cpp="$ac_cpp -C" ;;
11061 *) gl_absname_cpp="$ac_cpp" ;;
11062 esac
11063
11064 case "$host_os" in
11065 mingw*)
11066 gl_dirsep_regex='[/\\]'
11067 ;;
11068 *)
11069 gl_dirsep_regex='\/'
11070 ;;
11071 esac
11072 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
11073
11074 gl_header_literal_regex=`echo 'time.h' \
11075 | sed -e "$gl_make_literal_regex_sed"`
11076 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11077 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11078 s|^/[^/]|//&|
11079 p
11080 q
11081 }'
11082 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11083 sed -n "$gl_absolute_header_sed"`'"'
11084
11085
11086 fi
11087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
11088 $as_echo "$gl_cv_next_time_h" >&6; }
11089 fi
11090 NEXT_TIME_H=$gl_cv_next_time_h
11091
11092 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11093 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11094 gl_next_as_first_directive='<'time.h'>'
11095 else
11096 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11097 gl_next_as_first_directive=$gl_cv_next_time_h
11098 fi
11099 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
11100
11101
11102
11103
11104
11105
11106
11107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
11108 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
11109 if test "${gl_cv_header_wchar_h_correct_inline+set}" = set; then :
11110 $as_echo_n "(cached) " >&6
11111 else
11112 gl_cv_header_wchar_h_correct_inline=yes
11113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11114 /* end confdefs.h. */
11115
11116 #define wcstod renamed_wcstod
11117 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11118 <wchar.h>.
11119 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11120 included before <wchar.h>. */
11121 #include <stddef.h>
11122 #include <stdio.h>
11123 #include <time.h>
11124 #include <wchar.h>
11125 extern int zero (void);
11126 int main () { return zero(); }
11127
11128 _ACEOF
11129 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11130 (eval $ac_compile) 2>&5
11131 ac_status=$?
11132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11133 test $ac_status = 0; }; then
11134 mv conftest.$ac_objext conftest1.$ac_objext
11135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11136 /* end confdefs.h. */
11137
11138 #define wcstod renamed_wcstod
11139 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11140 <wchar.h>.
11141 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11142 included before <wchar.h>. */
11143 #include <stddef.h>
11144 #include <stdio.h>
11145 #include <time.h>
11146 #include <wchar.h>
11147 int zero (void) { return 0; }
11148
11149 _ACEOF
11150 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11151 (eval $ac_compile) 2>&5
11152 ac_status=$?
11153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11154 test $ac_status = 0; }; then
11155 mv conftest.$ac_objext conftest2.$ac_objext
11156 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
11157 :
11158 else
11159 gl_cv_header_wchar_h_correct_inline=no
11160 fi
11161 fi
11162 fi
11163 rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
11164
11165 fi
11166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
11167 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
11168 if test $gl_cv_header_wchar_h_correct_inline = no; then
11169 as_fn_error "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
11170 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
11171 C99 mode. You have four options:
11172 - Add the flag -fgnu89-inline to CC and reconfigure, or
11173 - Fix your include files, using parts of
11174 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
11175 - Use a gcc version older than 4.3, or
11176 - Don't use the flags -std=c99 or -std=gnu99.
11177 Configuration aborted." "$LINENO" 5
11178 fi
11179
11180
11181
11182
11183
11184 if test $ac_cv_header_features_h = yes; then
11185 HAVE_FEATURES_H=1
11186 else
11187 HAVE_FEATURES_H=0
11188 fi
11189
11190
11191
11192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
11193 $as_echo_n "checking for wint_t... " >&6; }
11194 if test "${gt_cv_c_wint_t+set}" = set; then :
11195 $as_echo_n "(cached) " >&6
11196 else
11197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11198 /* end confdefs.h. */
11199
11200 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11201 <wchar.h>.
11202 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
11203 before <wchar.h>. */
11204 #include <stddef.h>
11205 #include <stdio.h>
11206 #include <time.h>
11207 #include <wchar.h>
11208 wint_t foo = (wchar_t)'\0';
11209 int
11210 main ()
11211 {
11212
11213 ;
11214 return 0;
11215 }
11216 _ACEOF
11217 if ac_fn_c_try_compile "$LINENO"; then :
11218 gt_cv_c_wint_t=yes
11219 else
11220 gt_cv_c_wint_t=no
11221 fi
11222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11223 fi
11224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
11225 $as_echo "$gt_cv_c_wint_t" >&6; }
11226 if test $gt_cv_c_wint_t = yes; then
11227
11228 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
11229
11230 fi
11231
11232
11233 GNULIB_ISWBLANK=0;
11234 GNULIB_WCTYPE=0;
11235 GNULIB_ISWCTYPE=0;
11236 GNULIB_WCTRANS=0;
11237 GNULIB_TOWCTRANS=0;
11238 HAVE_ISWBLANK=1;
11239 HAVE_WCTYPE_T=1;
11240 HAVE_WCTRANS_T=1;
11241 REPLACE_ISWBLANK=0;
11242
11243
11244
11245
11246 if false; then
11247 GL_COND_LIBTOOL_TRUE=
11248 GL_COND_LIBTOOL_FALSE='#'
11249 else
11250 GL_COND_LIBTOOL_TRUE='#'
11251 GL_COND_LIBTOOL_FALSE=
11252 fi
11253
11254 gl_cond_libtool=false
11255 gl_libdeps=
11256 gl_ltlibdeps=
11257 gl_m4_base='import/m4'
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267 gl_source_base='import'
11268
11269
11270 if test $ac_cv_func_alloca_works = no; then
11271 :
11272 fi
11273
11274 # Define an additional variable used in the Makefile substitution.
11275 if test $ac_cv_working_alloca_h = yes; then
11276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
11277 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
11278 if test "${gl_cv_rpl_alloca+set}" = set; then :
11279 $as_echo_n "(cached) " >&6
11280 else
11281
11282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11283 /* end confdefs.h. */
11284
11285 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
11286 Need own alloca
11287 #endif
11288
11289 _ACEOF
11290 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11291 $EGREP "Need own alloca" >/dev/null 2>&1; then :
11292 gl_cv_rpl_alloca=yes
11293 else
11294 gl_cv_rpl_alloca=no
11295 fi
11296 rm -f conftest*
11297
11298
11299 fi
11300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
11301 $as_echo "$gl_cv_rpl_alloca" >&6; }
11302 if test $gl_cv_rpl_alloca = yes; then
11303
11304 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
11305
11306 ALLOCA_H=alloca.h
11307 else
11308 ALLOCA_H=
11309 fi
11310 else
11311 ALLOCA_H=alloca.h
11312 fi
11313
11314 if test -n "$ALLOCA_H"; then
11315 GL_GENERATE_ALLOCA_H_TRUE=
11316 GL_GENERATE_ALLOCA_H_FALSE='#'
11317 else
11318 GL_GENERATE_ALLOCA_H_TRUE='#'
11319 GL_GENERATE_ALLOCA_H_FALSE=
11320 fi
11321
11322
11323
11324
11325
11326 if test $ac_cv_func_canonicalize_file_name = no; then
11327 HAVE_CANONICALIZE_FILE_NAME=0
11328 if test $ac_cv_func_realpath = no; then
11329 HAVE_REALPATH=0
11330 else
11331 case "$gl_cv_func_realpath_works" in
11332 *yes) ;;
11333 *) REPLACE_REALPATH=1 ;;
11334 esac
11335 fi
11336 else
11337 case "$gl_cv_func_realpath_works" in
11338 *yes)
11339 ;;
11340 *)
11341 REPLACE_CANONICALIZE_FILE_NAME=1
11342 REPLACE_REALPATH=1
11343 ;;
11344 esac
11345 fi
11346
11347 if test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1; then
11348
11349
11350
11351
11352
11353
11354
11355
11356 gl_LIBOBJS="$gl_LIBOBJS canonicalize-lgpl.$ac_objext"
11357
11358 fi
11359
11360
11361 cat >>confdefs.h <<_ACEOF
11362 #define GNULIB_CANONICALIZE_LGPL 1
11363 _ACEOF
11364
11365
11366
11367
11368
11369
11370
11371 GNULIB_CANONICALIZE_FILE_NAME=1
11372
11373
11374
11375
11376
11377 $as_echo "#define GNULIB_TEST_CANONICALIZE_FILE_NAME 1" >>confdefs.h
11378
11379
11380
11381
11382
11383
11384
11385
11386 GNULIB_REALPATH=1
11387
11388
11389
11390
11391
11392 $as_echo "#define GNULIB_TEST_REALPATH 1" >>confdefs.h
11393
11394
11395
11396
11397 if test "x$datarootdir" = x; then
11398 datarootdir='${datadir}'
11399
11400 fi
11401 if test "x$docdir" = x; then
11402 docdir='${datarootdir}/doc/${PACKAGE}'
11403
11404 fi
11405 if test "x$htmldir" = x; then
11406 htmldir='${docdir}'
11407
11408 fi
11409 if test "x$dvidir" = x; then
11410 dvidir='${docdir}'
11411
11412 fi
11413 if test "x$pdfdir" = x; then
11414 pdfdir='${docdir}'
11415
11416 fi
11417 if test "x$psdir" = x; then
11418 psdir='${docdir}'
11419
11420 fi
11421 if test "x$lispdir" = x; then
11422 lispdir='${datarootdir}/emacs/site-lisp'
11423
11424 fi
11425 if test "x$localedir" = x; then
11426 localedir='${datarootdir}/locale'
11427
11428 fi
11429
11430 pkglibexecdir='${libexecdir}/${PACKAGE}'
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445 if test $gl_cv_have_include_next = yes; then
11446 gl_cv_next_dirent_h='<'dirent.h'>'
11447 else
11448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <dirent.h>" >&5
11449 $as_echo_n "checking absolute name of <dirent.h>... " >&6; }
11450 if test "${gl_cv_next_dirent_h+set}" = set; then :
11451 $as_echo_n "(cached) " >&6
11452 else
11453
11454 if test $ac_cv_header_dirent_h = yes; then
11455
11456
11457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11458 /* end confdefs.h. */
11459 #include <dirent.h>
11460
11461 _ACEOF
11462 case "$host_os" in
11463 aix*) gl_absname_cpp="$ac_cpp -C" ;;
11464 *) gl_absname_cpp="$ac_cpp" ;;
11465 esac
11466
11467 case "$host_os" in
11468 mingw*)
11469 gl_dirsep_regex='[/\\]'
11470 ;;
11471 *)
11472 gl_dirsep_regex='\/'
11473 ;;
11474 esac
11475 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
11476
11477 gl_header_literal_regex=`echo 'dirent.h' \
11478 | sed -e "$gl_make_literal_regex_sed"`
11479 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11480 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11481 s|^/[^/]|//&|
11482 p
11483 q
11484 }'
11485 gl_cv_next_dirent_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11486 sed -n "$gl_absolute_header_sed"`'"'
11487 else
11488 gl_cv_next_dirent_h='<'dirent.h'>'
11489 fi
11490
11491
11492 fi
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_dirent_h" >&5
11494 $as_echo "$gl_cv_next_dirent_h" >&6; }
11495 fi
11496 NEXT_DIRENT_H=$gl_cv_next_dirent_h
11497
11498 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11499 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11500 gl_next_as_first_directive='<'dirent.h'>'
11501 else
11502 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11503 gl_next_as_first_directive=$gl_cv_next_dirent_h
11504 fi
11505 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H=$gl_next_as_first_directive
11506
11507
11508
11509
11510 if test $ac_cv_header_dirent_h = yes; then
11511 HAVE_DIRENT_H=1
11512 else
11513 HAVE_DIRENT_H=0
11514 fi
11515
11516
11517
11518 for gl_func in alphasort closedir dirfd fdopendir opendir readdir rewinddir scandir; do
11519 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
11520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
11521 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
11522 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
11523 $as_echo_n "(cached) " >&6
11524 else
11525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11526 /* end confdefs.h. */
11527 #include <dirent.h>
11528
11529 int
11530 main ()
11531 {
11532 #undef $gl_func
11533 (void) $gl_func;
11534 ;
11535 return 0;
11536 }
11537 _ACEOF
11538 if ac_fn_c_try_compile "$LINENO"; then :
11539 eval "$as_gl_Symbol=yes"
11540 else
11541 eval "$as_gl_Symbol=no"
11542 fi
11543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11544 fi
11545 eval ac_res=\$$as_gl_Symbol
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11547 $as_echo "$ac_res" >&6; }
11548 eval as_val=\$$as_gl_Symbol
11549 if test "x$as_val" = x""yes; then :
11550 cat >>confdefs.h <<_ACEOF
11551 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
11552 _ACEOF
11553
11554 eval ac_cv_have_decl_$gl_func=yes
11555 fi
11556 done
11557
11558
11559
11560
11561
11562
11563
11564 for ac_func in dirfd
11565 do :
11566 ac_fn_c_check_func "$LINENO" "dirfd" "ac_cv_func_dirfd"
11567 if test "x$ac_cv_func_dirfd" = x""yes; then :
11568 cat >>confdefs.h <<_ACEOF
11569 #define HAVE_DIRFD 1
11570 _ACEOF
11571
11572 fi
11573 done
11574
11575 ac_fn_c_check_decl "$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "#include <sys/types.h>
11576 #include <dirent.h>
11577 "
11578 if test "x$ac_cv_have_decl_dirfd" = x""yes; then :
11579 ac_have_decl=1
11580 else
11581 ac_have_decl=0
11582 fi
11583
11584 cat >>confdefs.h <<_ACEOF
11585 #define HAVE_DECL_DIRFD $ac_have_decl
11586 _ACEOF
11587
11588 if test $ac_cv_have_decl_dirfd = no; then
11589 HAVE_DECL_DIRFD=0
11590 fi
11591
11592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dirfd is a macro" >&5
11593 $as_echo_n "checking whether dirfd is a macro... " >&6; }
11594 if test "${gl_cv_func_dirfd_macro+set}" = set; then :
11595 $as_echo_n "(cached) " >&6
11596 else
11597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11598 /* end confdefs.h. */
11599
11600 #include <sys/types.h>
11601 #include <dirent.h>
11602 #ifdef dirfd
11603 dirent_header_defines_dirfd
11604 #endif
11605 _ACEOF
11606 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11607 $EGREP "dirent_header_defines_dirfd" >/dev/null 2>&1; then :
11608 gl_cv_func_dirfd_macro=yes
11609 else
11610 gl_cv_func_dirfd_macro=no
11611 fi
11612 rm -f conftest*
11613
11614 fi
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dirfd_macro" >&5
11616 $as_echo "$gl_cv_func_dirfd_macro" >&6; }
11617
11618 # Use the replacement only if we have no function or macro with that name.
11619 if test $ac_cv_func_dirfd = no && test $gl_cv_func_dirfd_macro = no; then
11620 if test $ac_cv_have_decl_dirfd = yes; then
11621 # If the system declares dirfd already, let's declare rpl_dirfd instead.
11622 REPLACE_DIRFD=1
11623 fi
11624 fi
11625
11626 if test $ac_cv_func_dirfd = no && test $gl_cv_func_dirfd_macro = no; then
11627
11628
11629
11630
11631
11632
11633
11634
11635 gl_LIBOBJS="$gl_LIBOBJS dirfd.$ac_objext"
11636
11637
11638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get the file descriptor associated with an open DIR*" >&5
11639 $as_echo_n "checking how to get the file descriptor associated with an open DIR*... " >&6; }
11640 if test "${gl_cv_sys_dir_fd_member_name+set}" = set; then :
11641 $as_echo_n "(cached) " >&6
11642 else
11643
11644 dirfd_save_CFLAGS=$CFLAGS
11645 for ac_expr in d_fd dd_fd; do
11646
11647 CFLAGS="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr"
11648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11649 /* end confdefs.h. */
11650
11651 #include <sys/types.h>
11652 #include <dirent.h>
11653 int
11654 main ()
11655 {
11656 DIR *dir_p = opendir("."); (void) dir_p->DIR_FD_MEMBER_NAME;
11657 ;
11658 return 0;
11659 }
11660 _ACEOF
11661 if ac_fn_c_try_compile "$LINENO"; then :
11662 dir_fd_found=yes
11663
11664 fi
11665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11666 CFLAGS=$dirfd_save_CFLAGS
11667 test "$dir_fd_found" = yes && break
11668 done
11669 test "$dir_fd_found" = yes || ac_expr=no_such_member
11670
11671 gl_cv_sys_dir_fd_member_name=$ac_expr
11672
11673
11674 fi
11675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_dir_fd_member_name" >&5
11676 $as_echo "$gl_cv_sys_dir_fd_member_name" >&6; }
11677 if test $gl_cv_sys_dir_fd_member_name != no_such_member; then
11678
11679 cat >>confdefs.h <<_ACEOF
11680 #define DIR_FD_MEMBER_NAME $gl_cv_sys_dir_fd_member_name
11681 _ACEOF
11682
11683 fi
11684
11685
11686 fi
11687
11688
11689
11690
11691
11692 GNULIB_DIRFD=1
11693
11694
11695
11696
11697
11698 $as_echo "#define GNULIB_TEST_DIRFD 1" >>confdefs.h
11699
11700
11701
11702
11703
11704
11705
11706
11707 FLOAT_H=
11708 REPLACE_FLOAT_LDBL=0
11709 case "$host_os" in
11710 aix* | beos* | openbsd* | mirbsd* | irix*)
11711 FLOAT_H=float.h
11712 ;;
11713 freebsd*)
11714 case "$host_cpu" in
11715 i[34567]86 )
11716 FLOAT_H=float.h
11717 ;;
11718 x86_64 )
11719 # On x86_64 systems, the C compiler may still be generating
11720 # 32-bit code.
11721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11722 /* end confdefs.h. */
11723 #if defined __LP64__ || defined __x86_64__ || defined __amd64__
11724 yes
11725 #endif
11726 _ACEOF
11727 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11728 $EGREP "yes" >/dev/null 2>&1; then :
11729
11730 else
11731 FLOAT_H=float.h
11732 fi
11733 rm -f conftest*
11734
11735 ;;
11736 esac
11737 ;;
11738 linux*)
11739 case "$host_cpu" in
11740 powerpc*)
11741 FLOAT_H=float.h
11742 ;;
11743 esac
11744 ;;
11745 esac
11746 case "$host_os" in
11747 aix* | freebsd* | linux*)
11748 if test -n "$FLOAT_H"; then
11749 REPLACE_FLOAT_LDBL=1
11750 fi
11751 ;;
11752 esac
11753
11754 REPLACE_ITOLD=0
11755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
11756 $as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
11757 if test "${gl_cv_func_itold_works+set}" = set; then :
11758 $as_echo_n "(cached) " >&6
11759 else
11760
11761 if test "$cross_compiling" = yes; then :
11762 case "$host" in
11763 sparc*-*-linux*)
11764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11765 /* end confdefs.h. */
11766 #if defined __LP64__ || defined __arch64__
11767 yes
11768 #endif
11769 _ACEOF
11770 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11771 $EGREP "yes" >/dev/null 2>&1; then :
11772 gl_cv_func_itold_works="guessing no"
11773 else
11774 gl_cv_func_itold_works="guessing yes"
11775 fi
11776 rm -f conftest*
11777
11778 ;;
11779 *) gl_cv_func_itold_works="guessing yes" ;;
11780 esac
11781
11782 else
11783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11784 /* end confdefs.h. */
11785
11786 int i = -1;
11787 volatile long double ld;
11788 int main ()
11789 {
11790 ld += i * 1.0L;
11791 if (ld > 0)
11792 return 1;
11793 return 0;
11794 }
11795 _ACEOF
11796 if ac_fn_c_try_run "$LINENO"; then :
11797 gl_cv_func_itold_works=yes
11798 else
11799 gl_cv_func_itold_works=no
11800 fi
11801 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11802 conftest.$ac_objext conftest.beam conftest.$ac_ext
11803 fi
11804
11805
11806 fi
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
11808 $as_echo "$gl_cv_func_itold_works" >&6; }
11809 case "$gl_cv_func_itold_works" in
11810 *no)
11811 REPLACE_ITOLD=1
11812 FLOAT_H=float.h
11813 ;;
11814 esac
11815
11816 if test -n "$FLOAT_H"; then
11817
11818
11819
11820
11821
11822
11823
11824
11825 if test $gl_cv_have_include_next = yes; then
11826 gl_cv_next_float_h='<'float.h'>'
11827 else
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
11829 $as_echo_n "checking absolute name of <float.h>... " >&6; }
11830 if test "${gl_cv_next_float_h+set}" = set; then :
11831 $as_echo_n "(cached) " >&6
11832 else
11833
11834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11835 /* end confdefs.h. */
11836 #include <float.h>
11837
11838 _ACEOF
11839 case "$host_os" in
11840 aix*) gl_absname_cpp="$ac_cpp -C" ;;
11841 *) gl_absname_cpp="$ac_cpp" ;;
11842 esac
11843
11844 case "$host_os" in
11845 mingw*)
11846 gl_dirsep_regex='[/\\]'
11847 ;;
11848 *)
11849 gl_dirsep_regex='\/'
11850 ;;
11851 esac
11852 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
11853
11854 gl_header_literal_regex=`echo 'float.h' \
11855 | sed -e "$gl_make_literal_regex_sed"`
11856 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11857 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11858 s|^/[^/]|//&|
11859 p
11860 q
11861 }'
11862 gl_cv_next_float_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11863 sed -n "$gl_absolute_header_sed"`'"'
11864
11865
11866 fi
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
11868 $as_echo "$gl_cv_next_float_h" >&6; }
11869 fi
11870 NEXT_FLOAT_H=$gl_cv_next_float_h
11871
11872 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11873 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11874 gl_next_as_first_directive='<'float.h'>'
11875 else
11876 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11877 gl_next_as_first_directive=$gl_cv_next_float_h
11878 fi
11879 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
11880
11881
11882
11883
11884 fi
11885
11886 if test -n "$FLOAT_H"; then
11887 GL_GENERATE_FLOAT_H_TRUE=
11888 GL_GENERATE_FLOAT_H_FALSE='#'
11889 else
11890 GL_GENERATE_FLOAT_H_TRUE='#'
11891 GL_GENERATE_FLOAT_H_FALSE=
11892 fi
11893
11894
11895
11896 if test $REPLACE_FLOAT_LDBL = 1; then
11897
11898
11899
11900
11901
11902
11903
11904
11905 gl_LIBOBJS="$gl_LIBOBJS float.$ac_objext"
11906
11907 fi
11908 if test $REPLACE_ITOLD = 1; then
11909
11910
11911
11912
11913
11914
11915
11916
11917 gl_LIBOBJS="$gl_LIBOBJS itold.$ac_objext"
11918
11919 fi
11920
11921
11922
11923
11924
11925 FNMATCH_H=
11926 gl_fnmatch_required_lowercase=`
11927 echo $gl_fnmatch_required | LC_ALL=C tr '[A-Z]' '[a-z]'
11928 `
11929 gl_fnmatch_cache_var="gl_cv_func_fnmatch_${gl_fnmatch_required_lowercase}"
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working $gl_fnmatch_required fnmatch" >&5
11931 $as_echo_n "checking for working $gl_fnmatch_required fnmatch... " >&6; }
11932 if { as_var=$gl_fnmatch_cache_var; eval "test \"\${$as_var+set}\" = set"; }; then :
11933 $as_echo_n "(cached) " >&6
11934 else
11935 if test $gl_fnmatch_required = GNU; then
11936 gl_fnmatch_gnu_start=
11937 gl_fnmatch_gnu_end=
11938 else
11939 gl_fnmatch_gnu_start='#if 0'
11940 gl_fnmatch_gnu_end='#endif'
11941 fi
11942 if test "$cross_compiling" = yes; then :
11943 eval "$gl_fnmatch_cache_var=\"guessing no\""
11944 else
11945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11946 /* end confdefs.h. */
11947 #include <fnmatch.h>
11948 static int
11949 y (char const *pattern, char const *string, int flags)
11950 {
11951 return fnmatch (pattern, string, flags) == 0;
11952 }
11953 static int
11954 n (char const *pattern, char const *string, int flags)
11955 {
11956 return fnmatch (pattern, string, flags) == FNM_NOMATCH;
11957 }
11958
11959 int
11960 main ()
11961 {
11962 char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]";
11963 char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]";
11964 static char const A_1[] = { 'A' - 1, 0 };
11965 static char const A01[] = { 'A' + 1, 0 };
11966 static char const a_1[] = { 'a' - 1, 0 };
11967 static char const a01[] = { 'a' + 1, 0 };
11968 static char const bs_1[] = { '\\\\' - 1, 0 };
11969 static char const bs01[] = { '\\\\' + 1, 0 };
11970 int result = 0;
11971 if (!n ("a*", "", 0))
11972 return 1;
11973 if (!y ("a*", "abc", 0))
11974 return 1;
11975 if (!y ("[/b", "[/b", 0)) /*"]]"*/ /* glibc Bugzilla bug 12378 */
11976 return 1;
11977 if (!n ("d*/*1", "d/s/1", FNM_PATHNAME))
11978 return 2;
11979 if (!y ("a\\\\bc", "abc", 0))
11980 return 3;
11981 if (!n ("a\\\\bc", "abc", FNM_NOESCAPE))
11982 return 3;
11983 if (!y ("*x", ".x", 0))
11984 return 4;
11985 if (!n ("*x", ".x", FNM_PERIOD))
11986 return 4;
11987 if (!y (Apat, "\\\\", 0))
11988 return 5;
11989 if (!y (Apat, "A", 0))
11990 return 5;
11991 if (!y (apat, "\\\\", 0))
11992 return 5;
11993 if (!y (apat, "a", 0))
11994 return 5;
11995 if (!(n (Apat, A_1, 0) == ('A' < '\\\\')))
11996 return 5;
11997 if (!(n (apat, a_1, 0) == ('a' < '\\\\')))
11998 return 5;
11999 if (!(y (Apat, A01, 0) == ('A' < '\\\\')))
12000 return 5;
12001 if (!(y (apat, a01, 0) == ('a' < '\\\\')))
12002 return 5;
12003 if (!(y (Apat, bs_1, 0) == ('A' < '\\\\')))
12004 return 5;
12005 if (!(y (apat, bs_1, 0) == ('a' < '\\\\')))
12006 return 5;
12007 if (!(n (Apat, bs01, 0) == ('A' < '\\\\')))
12008 return 5;
12009 if (!(n (apat, bs01, 0) == ('a' < '\\\\')))
12010 return 5;
12011 $gl_fnmatch_gnu_start
12012 if (!y ("xxXX", "xXxX", FNM_CASEFOLD))
12013 result |= 8;
12014 if (!y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH))
12015 result |= 16;
12016 if (!n ("d*/*1", "d/s/1", FNM_FILE_NAME))
12017 result |= 32;
12018 if (!y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR))
12019 result |= 64;
12020 if (!y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR))
12021 result |= 64;
12022 if (!y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR))
12023 result |= 64;
12024 $gl_fnmatch_gnu_end
12025 return result;
12026
12027 ;
12028 return 0;
12029 }
12030 _ACEOF
12031 if ac_fn_c_try_run "$LINENO"; then :
12032 eval "$gl_fnmatch_cache_var=yes"
12033 else
12034 eval "$gl_fnmatch_cache_var=no"
12035 fi
12036 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12037 conftest.$ac_objext conftest.beam conftest.$ac_ext
12038 fi
12039
12040
12041 fi
12042 eval ac_res=\$$gl_fnmatch_cache_var
12043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12044 $as_echo "$ac_res" >&6; }
12045 eval "gl_fnmatch_result=\"\$$gl_fnmatch_cache_var\""
12046 if test "$gl_fnmatch_result" = yes; then
12047 rm -f "$gl_source_base/fnmatch.h"
12048 else
12049 FNMATCH_H=fnmatch.h
12050 fi
12051
12052 if test -n "$FNMATCH_H"; then
12053 GL_GENERATE_FNMATCH_H_TRUE=
12054 GL_GENERATE_FNMATCH_H_FALSE='#'
12055 else
12056 GL_GENERATE_FNMATCH_H_TRUE='#'
12057 GL_GENERATE_FNMATCH_H_FALSE=
12058 fi
12059
12060
12061 if test -n "$FNMATCH_H"; then
12062
12063
12064
12065
12066
12067
12068
12069
12070 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
12071
12072
12073
12074 cat >>confdefs.h <<_ACEOF
12075 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
12076 _ACEOF
12077
12078
12079 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
12080 "
12081 if test "x$ac_cv_have_decl_isblank" = x""yes; then :
12082 ac_have_decl=1
12083 else
12084 ac_have_decl=0
12085 fi
12086
12087 cat >>confdefs.h <<_ACEOF
12088 #define HAVE_DECL_ISBLANK $ac_have_decl
12089 _ACEOF
12090
12091
12092
12093
12094 fi
12095
12096
12097
12098
12099
12100 if test -n "$FNMATCH_H"; then
12101
12102
12103
12104
12105
12106
12107
12108
12109 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
12110
12111
12112
12113 cat >>confdefs.h <<_ACEOF
12114 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
12115 _ACEOF
12116
12117
12118 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
12119 "
12120 if test "x$ac_cv_have_decl_isblank" = x""yes; then :
12121 ac_have_decl=1
12122 else
12123 ac_have_decl=0
12124 fi
12125
12126 cat >>confdefs.h <<_ACEOF
12127 #define HAVE_DECL_ISBLANK $ac_have_decl
12128 _ACEOF
12129
12130
12131
12132
12133 fi
12134
12135
12136
12137 FREXP_LIBM=
12138 if test $gl_cv_func_frexp_no_libm = no; then
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used with libm" >&5
12140 $as_echo_n "checking whether frexp() can be used with libm... " >&6; }
12141 if test "${gl_cv_func_frexp_in_libm+set}" = set; then :
12142 $as_echo_n "(cached) " >&6
12143 else
12144
12145 save_LIBS="$LIBS"
12146 LIBS="$LIBS -lm"
12147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12148 /* end confdefs.h. */
12149 #include <math.h>
12150 double x;
12151 int
12152 main ()
12153 {
12154 int e; return frexp (x, &e) > 0;
12155 ;
12156 return 0;
12157 }
12158 _ACEOF
12159 if ac_fn_c_try_link "$LINENO"; then :
12160 gl_cv_func_frexp_in_libm=yes
12161 else
12162 gl_cv_func_frexp_in_libm=no
12163 fi
12164 rm -f core conftest.err conftest.$ac_objext \
12165 conftest$ac_exeext conftest.$ac_ext
12166 LIBS="$save_LIBS"
12167
12168 fi
12169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_in_libm" >&5
12170 $as_echo "$gl_cv_func_frexp_in_libm" >&6; }
12171 if test $gl_cv_func_frexp_in_libm = yes; then
12172 FREXP_LIBM=-lm
12173 fi
12174 fi
12175 if test $gl_cv_func_frexp_no_libm = yes \
12176 || test $gl_cv_func_frexp_in_libm = yes; then
12177 save_LIBS="$LIBS"
12178 LIBS="$LIBS $FREXP_LIBM"
12179
12180
12181
12182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp works" >&5
12183 $as_echo_n "checking whether frexp works... " >&6; }
12184 if test "${gl_cv_func_frexp_works+set}" = set; then :
12185 $as_echo_n "(cached) " >&6
12186 else
12187
12188 if test "$cross_compiling" = yes; then :
12189 case "$host_os" in
12190 netbsd* | irix* | mingw*) gl_cv_func_frexp_works="guessing no";;
12191 *) gl_cv_func_frexp_works="guessing yes";;
12192 esac
12193
12194 else
12195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12196 /* end confdefs.h. */
12197
12198 #include <float.h>
12199 #include <math.h>
12200 #include <string.h>
12201 #if HAVE_ALARM
12202 # include <unistd.h>
12203 #endif
12204 /* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0.
12205 ICC 10.0 has a bug when optimizing the expression -zero.
12206 The expression -DBL_MIN * DBL_MIN does not work when cross-compiling
12207 to PowerPC on Mac OS X 10.5. */
12208 #if defined __hpux || defined __sgi || defined __ICC
12209 static double
12210 compute_minus_zero (void)
12211 {
12212 return -DBL_MIN * DBL_MIN;
12213 }
12214 # define minus_zero compute_minus_zero ()
12215 #else
12216 double minus_zero = -0.0;
12217 #endif
12218 int main()
12219 {
12220 int result = 0;
12221 int i;
12222 volatile double x;
12223 double zero = 0.0;
12224 #if HAVE_ALARM
12225 /* NeXTstep 3.3 frexp() runs into an endless loop when called on an infinite
12226 number. Let the test fail in this case. */
12227 alarm (5);
12228 #endif
12229 /* Test on denormalized numbers. */
12230 for (i = 1, x = 1.0; i >= DBL_MIN_EXP; i--, x *= 0.5)
12231 ;
12232 if (x > 0.0)
12233 {
12234 int exp;
12235 double y = frexp (x, &exp);
12236 /* On machines with IEEE754 arithmetic: x = 1.11254e-308, exp = -1022.
12237 On NetBSD: y = 0.75. Correct: y = 0.5. */
12238 if (y != 0.5)
12239 result |= 1;
12240 }
12241 /* Test on infinite numbers. */
12242 x = 1.0 / zero;
12243 {
12244 int exp;
12245 double y = frexp (x, &exp);
12246 if (y != x)
12247 result |= 2;
12248 }
12249 /* Test on negative zero. */
12250 x = minus_zero;
12251 {
12252 int exp;
12253 double y = frexp (x, &exp);
12254 if (memcmp (&y, &x, sizeof x))
12255 result |= 4;
12256 }
12257 return result;
12258 }
12259 _ACEOF
12260 if ac_fn_c_try_run "$LINENO"; then :
12261 gl_cv_func_frexp_works=yes
12262 else
12263 gl_cv_func_frexp_works=no
12264 fi
12265 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12266 conftest.$ac_objext conftest.beam conftest.$ac_ext
12267 fi
12268
12269
12270 fi
12271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_works" >&5
12272 $as_echo "$gl_cv_func_frexp_works" >&6; }
12273
12274 LIBS="$save_LIBS"
12275 case "$gl_cv_func_frexp_works" in
12276 *yes) gl_func_frexp=yes ;;
12277 *) gl_func_frexp=no; REPLACE_FREXP=1; FREXP_LIBM= ;;
12278 esac
12279 else
12280 gl_func_frexp=no
12281 fi
12282 if test $gl_func_frexp = yes; then
12283
12284 $as_echo "#define HAVE_FREXP 1" >>confdefs.h
12285
12286 fi
12287
12288
12289 if test $gl_func_frexp != yes; then
12290
12291
12292
12293
12294
12295
12296
12297
12298 gl_LIBOBJS="$gl_LIBOBJS frexp.$ac_objext"
12299
12300 fi
12301
12302
12303
12304
12305
12306 GNULIB_FREXP=1
12307
12308
12309
12310
12311
12312 $as_echo "#define GNULIB_TEST_FREXP 1" >>confdefs.h
12313
12314
12315
12316
12317
12318
12319
12320
12321
12322 ac_fn_c_check_decl "$LINENO" "frexpl" "ac_cv_have_decl_frexpl" "#include <math.h>
12323 "
12324 if test "x$ac_cv_have_decl_frexpl" = x""yes; then :
12325
12326 else
12327 HAVE_DECL_FREXPL=0
12328 fi
12329
12330
12331 FREXPL_LIBM=
12332 if test $HAVE_DECL_FREXPL = 1; then
12333
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used without linking with libm" >&5
12335 $as_echo_n "checking whether frexpl() can be used without linking with libm... " >&6; }
12336 if test "${gl_cv_func_frexpl_no_libm+set}" = set; then :
12337 $as_echo_n "(cached) " >&6
12338 else
12339
12340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12341 /* end confdefs.h. */
12342 #include <math.h>
12343 long double x;
12344 int
12345 main ()
12346 {
12347 int e; return frexpl (x, &e) > 0;
12348 ;
12349 return 0;
12350 }
12351 _ACEOF
12352 if ac_fn_c_try_link "$LINENO"; then :
12353 gl_cv_func_frexpl_no_libm=yes
12354 else
12355 gl_cv_func_frexpl_no_libm=no
12356 fi
12357 rm -f core conftest.err conftest.$ac_objext \
12358 conftest$ac_exeext conftest.$ac_ext
12359
12360 fi
12361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_no_libm" >&5
12362 $as_echo "$gl_cv_func_frexpl_no_libm" >&6; }
12363
12364 if test $gl_cv_func_frexpl_no_libm = no; then
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used with libm" >&5
12366 $as_echo_n "checking whether frexpl() can be used with libm... " >&6; }
12367 if test "${gl_cv_func_frexpl_in_libm+set}" = set; then :
12368 $as_echo_n "(cached) " >&6
12369 else
12370
12371 save_LIBS="$LIBS"
12372 LIBS="$LIBS -lm"
12373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12374 /* end confdefs.h. */
12375 #include <math.h>
12376 long double x;
12377 int
12378 main ()
12379 {
12380 int e; return frexpl (x, &e) > 0;
12381 ;
12382 return 0;
12383 }
12384 _ACEOF
12385 if ac_fn_c_try_link "$LINENO"; then :
12386 gl_cv_func_frexpl_in_libm=yes
12387 else
12388 gl_cv_func_frexpl_in_libm=no
12389 fi
12390 rm -f core conftest.err conftest.$ac_objext \
12391 conftest$ac_exeext conftest.$ac_ext
12392 LIBS="$save_LIBS"
12393
12394 fi
12395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_in_libm" >&5
12396 $as_echo "$gl_cv_func_frexpl_in_libm" >&6; }
12397 if test $gl_cv_func_frexpl_in_libm = yes; then
12398 FREXPL_LIBM=-lm
12399 fi
12400 fi
12401 if test $gl_cv_func_frexpl_no_libm = yes \
12402 || test $gl_cv_func_frexpl_in_libm = yes; then
12403 save_LIBS="$LIBS"
12404 LIBS="$LIBS $FREXPL_LIBM"
12405
12406
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl works" >&5
12408 $as_echo_n "checking whether frexpl works... " >&6; }
12409 if test "${gl_cv_func_frexpl_works+set}" = set; then :
12410 $as_echo_n "(cached) " >&6
12411 else
12412
12413 if test "$cross_compiling" = yes; then :
12414
12415 case "$host_os" in
12416 aix | aix[3-6]* | beos* | darwin* | irix* | mingw* | pw*)
12417 gl_cv_func_frexpl_works="guessing no";;
12418 *) gl_cv_func_frexpl_works="guessing yes";;
12419 esac
12420
12421 else
12422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12423 /* end confdefs.h. */
12424
12425 #include <float.h>
12426 #include <math.h>
12427 /* Override the values of <float.h>, like done in float.in.h. */
12428 #if defined __i386__ && (defined __BEOS__ || defined __OpenBSD__)
12429 # undef LDBL_MIN_EXP
12430 # define LDBL_MIN_EXP (-16381)
12431 #endif
12432 #if defined __i386__ && defined __FreeBSD__
12433 # undef LDBL_MIN_EXP
12434 # define LDBL_MIN_EXP (-16381)
12435 #endif
12436 #if (defined _ARCH_PPC || defined _POWER) && defined _AIX && (LDBL_MANT_DIG == 106) && defined __GNUC__
12437 # undef LDBL_MIN_EXP
12438 # define LDBL_MIN_EXP DBL_MIN_EXP
12439 #endif
12440 #if defined __sgi && (LDBL_MANT_DIG >= 106)
12441 # if defined __GNUC__
12442 # undef LDBL_MIN_EXP
12443 # define LDBL_MIN_EXP DBL_MIN_EXP
12444 # endif
12445 #endif
12446 extern
12447 #ifdef __cplusplus
12448 "C"
12449 #endif
12450 long double frexpl (long double, int *);
12451 int main()
12452 {
12453 int result = 0;
12454 volatile long double x;
12455 /* Test on finite numbers that fails on AIX 5.1. */
12456 x = 16.0L;
12457 {
12458 int exp = -9999;
12459 frexpl (x, &exp);
12460 if (exp != 5)
12461 result |= 1;
12462 }
12463 /* Test on finite numbers that fails on Mac OS X 10.4, because its frexpl
12464 function returns an invalid (incorrectly normalized) value: it returns
12465 y = { 0x3fe028f5, 0xc28f5c28, 0x3c9eb851, 0xeb851eb8 }
12466 but the correct result is
12467 0.505L = { 0x3fe028f5, 0xc28f5c29, 0xbc547ae1, 0x47ae1480 } */
12468 x = 1.01L;
12469 {
12470 int exp = -9999;
12471 long double y = frexpl (x, &exp);
12472 if (!(exp == 1 && y == 0.505L))
12473 result |= 2;
12474 }
12475 /* Test on large finite numbers. This fails on BeOS at i = 16322, while
12476 LDBL_MAX_EXP = 16384.
12477 In the loop end test, we test x against Infinity, rather than comparing
12478 i with LDBL_MAX_EXP, because BeOS <float.h> has a wrong LDBL_MAX_EXP. */
12479 {
12480 int i;
12481 for (i = 1, x = 1.0L; x != x + x; i++, x *= 2.0L)
12482 {
12483 int exp = -9999;
12484 frexpl (x, &exp);
12485 if (exp != i)
12486 {
12487 result |= 4;
12488 break;
12489 }
12490 }
12491 }
12492 /* Test on denormalized numbers. */
12493 {
12494 int i;
12495 for (i = 1, x = 1.0L; i >= LDBL_MIN_EXP; i--, x *= 0.5L)
12496 ;
12497 if (x > 0.0L)
12498 {
12499 int exp;
12500 long double y = frexpl (x, &exp);
12501 /* On machines with IEEE854 arithmetic: x = 1.68105e-4932,
12502 exp = -16382, y = 0.5. On Mac OS X 10.5: exp = -16384, y = 0.5. */
12503 if (exp != LDBL_MIN_EXP - 1)
12504 result |= 8;
12505 }
12506 }
12507 /* Test on infinite numbers. */
12508 x = 1.0L / 0.0L;
12509 {
12510 int exp;
12511 long double y = frexpl (x, &exp);
12512 if (y != x)
12513 result |= 16;
12514 }
12515 return result;
12516 }
12517 _ACEOF
12518 if ac_fn_c_try_run "$LINENO"; then :
12519 gl_cv_func_frexpl_works=yes
12520 else
12521 gl_cv_func_frexpl_works=no
12522 fi
12523 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12524 conftest.$ac_objext conftest.beam conftest.$ac_ext
12525 fi
12526
12527
12528 fi
12529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_works" >&5
12530 $as_echo "$gl_cv_func_frexpl_works" >&6; }
12531
12532 LIBS="$save_LIBS"
12533 case "$gl_cv_func_frexpl_works" in
12534 *yes) gl_func_frexpl=yes ;;
12535 *) gl_func_frexpl=no; REPLACE_FREXPL=1 ;;
12536 esac
12537 else
12538 gl_func_frexpl=no
12539 fi
12540 if test $gl_func_frexpl = yes; then
12541
12542 $as_echo "#define HAVE_FREXPL 1" >>confdefs.h
12543
12544 fi
12545 fi
12546 if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl = no; then
12547 if test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1; then
12548
12549 FREXPL_LIBM="$FREXP_LIBM"
12550 else
12551 FREXPL_LIBM=
12552 fi
12553 fi
12554
12555
12556 if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl = no; then
12557
12558
12559
12560
12561
12562
12563
12564
12565 gl_LIBOBJS="$gl_LIBOBJS frexpl.$ac_objext"
12566
12567 fi
12568
12569
12570
12571
12572
12573 GNULIB_FREXPL=1
12574
12575
12576
12577
12578
12579 $as_echo "#define GNULIB_TEST_FREXPL 1" >>confdefs.h
12580
12581
12582
12583
12584
12585
12586
12587
12588 PRIPTR_PREFIX=
12589 if test -n "$STDINT_H"; then
12590 PRIPTR_PREFIX='"l"'
12591 else
12592 for glpfx in '' l ll I64; do
12593 case $glpfx in
12594 '') gltype1='int';;
12595 l) gltype1='long int';;
12596 ll) gltype1='long long int';;
12597 I64) gltype1='__int64';;
12598 esac
12599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12600 /* end confdefs.h. */
12601 #include <stdint.h>
12602 extern intptr_t foo;
12603 extern $gltype1 foo;
12604 int
12605 main ()
12606 {
12607
12608 ;
12609 return 0;
12610 }
12611 _ACEOF
12612 if ac_fn_c_try_compile "$LINENO"; then :
12613 PRIPTR_PREFIX='"'$glpfx'"'
12614 fi
12615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12616 test -n "$PRIPTR_PREFIX" && break
12617 done
12618 fi
12619
12620
12621
12622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5
12623 $as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
12624 if test "${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+set}" = set; then :
12625 $as_echo_n "(cached) " >&6
12626 else
12627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12628 /* end confdefs.h. */
12629 /* Work also in C++ mode. */
12630 #define __STDC_LIMIT_MACROS 1
12631
12632 /* Work if build is not clean. */
12633 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
12634
12635 #include <limits.h>
12636 #if HAVE_STDINT_H
12637 #include <stdint.h>
12638 #endif
12639
12640 #if defined INT32_MAX && defined INTMAX_MAX
12641 #define CONDITION (INT32_MAX < INTMAX_MAX)
12642 #elif HAVE_LONG_LONG_INT
12643 #define CONDITION (sizeof (int) < sizeof (long long int))
12644 #else
12645 #define CONDITION 0
12646 #endif
12647 int test[CONDITION ? 1 : -1];
12648 int
12649 main ()
12650 {
12651
12652 ;
12653 return 0;
12654 }
12655 _ACEOF
12656 if ac_fn_c_try_compile "$LINENO"; then :
12657 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=yes
12658 else
12659 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=no
12660 fi
12661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12662 fi
12663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
12664 $as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
12665 if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
12666 INT32_MAX_LT_INTMAX_MAX=1;
12667 else
12668 INT32_MAX_LT_INTMAX_MAX=0;
12669 fi
12670
12671
12672 if test $APPLE_UNIVERSAL_BUILD = 0; then
12673
12674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5
12675 $as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; }
12676 if test "${gl_cv_test_INT64_MAX_EQ_LONG_MAX+set}" = set; then :
12677 $as_echo_n "(cached) " >&6
12678 else
12679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12680 /* end confdefs.h. */
12681 /* Work also in C++ mode. */
12682 #define __STDC_LIMIT_MACROS 1
12683
12684 /* Work if build is not clean. */
12685 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
12686
12687 #include <limits.h>
12688 #if HAVE_STDINT_H
12689 #include <stdint.h>
12690 #endif
12691
12692 #if defined INT64_MAX
12693 #define CONDITION (INT64_MAX == LONG_MAX)
12694 #elif HAVE_LONG_LONG_INT
12695 #define CONDITION (sizeof (long long int) == sizeof (long int))
12696 #else
12697 #define CONDITION 0
12698 #endif
12699 int test[CONDITION ? 1 : -1];
12700 int
12701 main ()
12702 {
12703
12704 ;
12705 return 0;
12706 }
12707 _ACEOF
12708 if ac_fn_c_try_compile "$LINENO"; then :
12709 gl_cv_test_INT64_MAX_EQ_LONG_MAX=yes
12710 else
12711 gl_cv_test_INT64_MAX_EQ_LONG_MAX=no
12712 fi
12713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12714 fi
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
12716 $as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
12717 if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
12718 INT64_MAX_EQ_LONG_MAX=1;
12719 else
12720 INT64_MAX_EQ_LONG_MAX=0;
12721 fi
12722
12723
12724 else
12725 INT64_MAX_EQ_LONG_MAX=-1
12726 fi
12727
12728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5
12729 $as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
12730 if test "${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+set}" = set; then :
12731 $as_echo_n "(cached) " >&6
12732 else
12733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12734 /* end confdefs.h. */
12735 /* Work also in C++ mode. */
12736 #define __STDC_LIMIT_MACROS 1
12737
12738 /* Work if build is not clean. */
12739 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
12740
12741 #include <limits.h>
12742 #if HAVE_STDINT_H
12743 #include <stdint.h>
12744 #endif
12745
12746 #if defined UINT32_MAX && defined UINTMAX_MAX
12747 #define CONDITION (UINT32_MAX < UINTMAX_MAX)
12748 #elif HAVE_LONG_LONG_INT
12749 #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
12750 #else
12751 #define CONDITION 0
12752 #endif
12753 int test[CONDITION ? 1 : -1];
12754 int
12755 main ()
12756 {
12757
12758 ;
12759 return 0;
12760 }
12761 _ACEOF
12762 if ac_fn_c_try_compile "$LINENO"; then :
12763 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=yes
12764 else
12765 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=no
12766 fi
12767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12768 fi
12769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
12770 $as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
12771 if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
12772 UINT32_MAX_LT_UINTMAX_MAX=1;
12773 else
12774 UINT32_MAX_LT_UINTMAX_MAX=0;
12775 fi
12776
12777
12778 if test $APPLE_UNIVERSAL_BUILD = 0; then
12779
12780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5
12781 $as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
12782 if test "${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+set}" = set; then :
12783 $as_echo_n "(cached) " >&6
12784 else
12785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12786 /* end confdefs.h. */
12787 /* Work also in C++ mode. */
12788 #define __STDC_LIMIT_MACROS 1
12789
12790 /* Work if build is not clean. */
12791 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
12792
12793 #include <limits.h>
12794 #if HAVE_STDINT_H
12795 #include <stdint.h>
12796 #endif
12797
12798 #if defined UINT64_MAX
12799 #define CONDITION (UINT64_MAX == ULONG_MAX)
12800 #elif HAVE_LONG_LONG_INT
12801 #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
12802 #else
12803 #define CONDITION 0
12804 #endif
12805 int test[CONDITION ? 1 : -1];
12806 int
12807 main ()
12808 {
12809
12810 ;
12811 return 0;
12812 }
12813 _ACEOF
12814 if ac_fn_c_try_compile "$LINENO"; then :
12815 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=yes
12816 else
12817 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=no
12818 fi
12819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12820 fi
12821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
12822 $as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
12823 if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
12824 UINT64_MAX_EQ_ULONG_MAX=1;
12825 else
12826 UINT64_MAX_EQ_ULONG_MAX=0;
12827 fi
12828
12829
12830 else
12831 UINT64_MAX_EQ_ULONG_MAX=-1
12832 fi
12833
12834
12835
12836
12837
12838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(double) can be used without linking with libm" >&5
12839 $as_echo_n "checking whether isnan(double) can be used without linking with libm... " >&6; }
12840 if test "${gl_cv_func_isnand_no_libm+set}" = set; then :
12841 $as_echo_n "(cached) " >&6
12842 else
12843
12844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12845 /* end confdefs.h. */
12846 #include <math.h>
12847 #if __GNUC__ >= 4
12848 # undef isnand
12849 # define isnand(x) __builtin_isnan ((double)(x))
12850 #else
12851 # undef isnand
12852 # define isnand(x) isnan ((double)(x))
12853 #endif
12854 double x;
12855 int
12856 main ()
12857 {
12858 return isnand (x);
12859 ;
12860 return 0;
12861 }
12862 _ACEOF
12863 if ac_fn_c_try_link "$LINENO"; then :
12864 gl_cv_func_isnand_no_libm=yes
12865 else
12866 gl_cv_func_isnand_no_libm=no
12867 fi
12868 rm -f core conftest.err conftest.$ac_objext \
12869 conftest$ac_exeext conftest.$ac_ext
12870
12871 fi
12872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnand_no_libm" >&5
12873 $as_echo "$gl_cv_func_isnand_no_libm" >&6; }
12874
12875 gl_func_isnand_no_libm=$gl_cv_func_isnand_no_libm
12876 if test $gl_cv_func_isnand_no_libm = yes; then
12877
12878 $as_echo "#define HAVE_ISNAND_IN_LIBC 1" >>confdefs.h
12879
12880 fi
12881
12882 if test $gl_func_isnand_no_libm != yes; then
12883
12884
12885
12886
12887
12888
12889
12890
12891 gl_LIBOBJS="$gl_LIBOBJS isnand.$ac_objext"
12892
12893
12894
12895
12896 fi
12897
12898
12899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(long double) can be used without linking with libm" >&5
12900 $as_echo_n "checking whether isnan(long double) can be used without linking with libm... " >&6; }
12901 if test "${gl_cv_func_isnanl_no_libm+set}" = set; then :
12902 $as_echo_n "(cached) " >&6
12903 else
12904
12905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12906 /* end confdefs.h. */
12907 #include <math.h>
12908 #if __GNUC__ >= 4
12909 # undef isnanl
12910 # define isnanl(x) __builtin_isnanl ((long double)(x))
12911 #elif defined isnan
12912 # undef isnanl
12913 # define isnanl(x) isnan ((long double)(x))
12914 #endif
12915 long double x;
12916 int
12917 main ()
12918 {
12919 return isnanl (x);
12920 ;
12921 return 0;
12922 }
12923 _ACEOF
12924 if ac_fn_c_try_link "$LINENO"; then :
12925 gl_cv_func_isnanl_no_libm=yes
12926 else
12927 gl_cv_func_isnanl_no_libm=no
12928 fi
12929 rm -f core conftest.err conftest.$ac_objext \
12930 conftest$ac_exeext conftest.$ac_ext
12931
12932 fi
12933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_no_libm" >&5
12934 $as_echo "$gl_cv_func_isnanl_no_libm" >&6; }
12935
12936 gl_func_isnanl_no_libm=$gl_cv_func_isnanl_no_libm
12937 if test $gl_func_isnanl_no_libm = yes; then
12938
12939
12940
12941
12942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnanl works" >&5
12943 $as_echo_n "checking whether isnanl works... " >&6; }
12944 if test "${gl_cv_func_isnanl_works+set}" = set; then :
12945 $as_echo_n "(cached) " >&6
12946 else
12947
12948 if test "$cross_compiling" = yes; then :
12949 case "$host_cpu" in
12950 # Guess no on ia64, x86_64, i386.
12951 ia64 | x86_64 | i*86) gl_cv_func_isnanl_works="guessing no";;
12952 *)
12953 case "$host_os" in
12954 netbsd*) gl_cv_func_isnanl_works="guessing no";;
12955 *) gl_cv_func_isnanl_works="guessing yes";;
12956 esac
12957 ;;
12958 esac
12959
12960 else
12961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12962 /* end confdefs.h. */
12963
12964 #include <float.h>
12965 #include <limits.h>
12966 #include <math.h>
12967 #if __GNUC__ >= 4
12968 # undef isnanl
12969 # define isnanl(x) __builtin_isnanl ((long double)(x))
12970 #elif defined isnan
12971 # undef isnanl
12972 # define isnanl(x) isnan ((long double)(x))
12973 #endif
12974 #define NWORDS \
12975 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
12976 typedef union { unsigned int word[NWORDS]; long double value; }
12977 memory_long_double;
12978 /* On Irix 6.5, gcc 3.4.3 can't compute compile-time NaN, and needs the
12979 runtime type conversion. */
12980 #ifdef __sgi
12981 static long double NaNl ()
12982 {
12983 double zero = 0.0;
12984 return zero / zero;
12985 }
12986 #else
12987 # define NaNl() (0.0L / 0.0L)
12988 #endif
12989 int main ()
12990 {
12991 int result = 0;
12992
12993 if (!isnanl (NaNl ()))
12994 result |= 1;
12995
12996 {
12997 memory_long_double m;
12998 unsigned int i;
12999
13000 /* The isnanl function should be immune against changes in the sign bit and
13001 in the mantissa bits. The xor operation twiddles a bit that can only be
13002 a sign bit or a mantissa bit (since the exponent never extends to
13003 bit 31). */
13004 m.value = NaNl ();
13005 m.word[NWORDS / 2] ^= (unsigned int) 1 << (sizeof (unsigned int) * CHAR_BIT - 1);
13006 for (i = 0; i < NWORDS; i++)
13007 m.word[i] |= 1;
13008 if (!isnanl (m.value))
13009 result |= 1;
13010 }
13011
13012 #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
13013 /* Representation of an 80-bit 'long double' as an initializer for a sequence
13014 of 'unsigned int' words. */
13015 # ifdef WORDS_BIGENDIAN
13016 # define LDBL80_WORDS(exponent,manthi,mantlo) \
13017 { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
13018 ((unsigned int) (manthi) << 16) | (unsigned int) (mantlo) >> 16), \
13019 (unsigned int) (mantlo) << 16 \
13020 }
13021 # else
13022 # define LDBL80_WORDS(exponent,manthi,mantlo) \
13023 { mantlo, manthi, exponent }
13024 # endif
13025 { /* Quiet NaN. */
13026 static memory_long_double x =
13027 { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) };
13028 if (!isnanl (x.value))
13029 result |= 2;
13030 }
13031 {
13032 /* Signalling NaN. */
13033 static memory_long_double x =
13034 { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) };
13035 if (!isnanl (x.value))
13036 result |= 2;
13037 }
13038 /* The isnanl function should recognize Pseudo-NaNs, Pseudo-Infinities,
13039 Pseudo-Zeroes, Unnormalized Numbers, and Pseudo-Denormals, as defined in
13040 Intel IA-64 Architecture Software Developer's Manual, Volume 1:
13041 Application Architecture.
13042 Table 5-2 "Floating-Point Register Encodings"
13043 Figure 5-6 "Memory to Floating-Point Register Data Translation"
13044 */
13045 { /* Pseudo-NaN. */
13046 static memory_long_double x =
13047 { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) };
13048 if (!isnanl (x.value))
13049 result |= 4;
13050 }
13051 { /* Pseudo-Infinity. */
13052 static memory_long_double x =
13053 { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) };
13054 if (!isnanl (x.value))
13055 result |= 8;
13056 }
13057 { /* Pseudo-Zero. */
13058 static memory_long_double x =
13059 { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) };
13060 if (!isnanl (x.value))
13061 result |= 16;
13062 }
13063 { /* Unnormalized number. */
13064 static memory_long_double x =
13065 { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) };
13066 if (!isnanl (x.value))
13067 result |= 32;
13068 }
13069 { /* Pseudo-Denormal. */
13070 static memory_long_double x =
13071 { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) };
13072 if (!isnanl (x.value))
13073 result |= 64;
13074 }
13075 #endif
13076
13077 return result;
13078 }
13079 _ACEOF
13080 if ac_fn_c_try_run "$LINENO"; then :
13081 gl_cv_func_isnanl_works=yes
13082 else
13083 gl_cv_func_isnanl_works=no
13084 fi
13085 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13086 conftest.$ac_objext conftest.beam conftest.$ac_ext
13087 fi
13088
13089
13090 fi
13091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_works" >&5
13092 $as_echo "$gl_cv_func_isnanl_works" >&6; }
13093
13094 case "$gl_cv_func_isnanl_works" in
13095 *yes) ;;
13096 *) gl_func_isnanl_no_libm=no ;;
13097 esac
13098 fi
13099 if test $gl_func_isnanl_no_libm = yes; then
13100
13101 $as_echo "#define HAVE_ISNANL_IN_LIBC 1" >>confdefs.h
13102
13103 fi
13104
13105 if test $gl_func_isnanl_no_libm != yes; then
13106
13107
13108
13109
13110
13111
13112
13113
13114 gl_LIBOBJS="$gl_LIBOBJS isnanl.$ac_objext"
13115
13116
13117
13118
13119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'long double'" >&5
13120 $as_echo_n "checking where to find the exponent in a 'long double'... " >&6; }
13121 if test "${gl_cv_cc_long_double_expbit0+set}" = set; then :
13122 $as_echo_n "(cached) " >&6
13123 else
13124
13125 if test "$cross_compiling" = yes; then :
13126
13127 gl_cv_cc_long_double_expbit0="unknown"
13128
13129 else
13130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13131 /* end confdefs.h. */
13132
13133 #include <float.h>
13134 #include <stddef.h>
13135 #include <stdio.h>
13136 #include <string.h>
13137 #define NWORDS \
13138 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
13139 typedef union { long double value; unsigned int word[NWORDS]; }
13140 memory_long_double;
13141 static unsigned int ored_words[NWORDS];
13142 static unsigned int anded_words[NWORDS];
13143 static void add_to_ored_words (long double x)
13144 {
13145 memory_long_double m;
13146 size_t i;
13147 /* Clear it first, in case
13148 sizeof (long double) < sizeof (memory_long_double). */
13149 memset (&m, 0, sizeof (memory_long_double));
13150 m.value = x;
13151 for (i = 0; i < NWORDS; i++)
13152 {
13153 ored_words[i] |= m.word[i];
13154 anded_words[i] &= m.word[i];
13155 }
13156 }
13157 int main ()
13158 {
13159 size_t j;
13160 FILE *fp = fopen ("conftest.out", "w");
13161 if (fp == NULL)
13162 return 1;
13163 for (j = 0; j < NWORDS; j++)
13164 anded_words[j] = ~ (unsigned int) 0;
13165 add_to_ored_words (0.25L);
13166 add_to_ored_words (0.5L);
13167 add_to_ored_words (1.0L);
13168 add_to_ored_words (2.0L);
13169 add_to_ored_words (4.0L);
13170 /* Remove bits that are common (e.g. if representation of the first mantissa
13171 bit is explicit). */
13172 for (j = 0; j < NWORDS; j++)
13173 ored_words[j] &= ~anded_words[j];
13174 /* Now find the nonzero word. */
13175 for (j = 0; j < NWORDS; j++)
13176 if (ored_words[j] != 0)
13177 break;
13178 if (j < NWORDS)
13179 {
13180 size_t i;
13181 for (i = j + 1; i < NWORDS; i++)
13182 if (ored_words[i] != 0)
13183 {
13184 fprintf (fp, "unknown");
13185 return (fclose (fp) != 0);
13186 }
13187 for (i = 0; ; i++)
13188 if ((ored_words[j] >> i) & 1)
13189 {
13190 fprintf (fp, "word %d bit %d", (int) j, (int) i);
13191 return (fclose (fp) != 0);
13192 }
13193 }
13194 fprintf (fp, "unknown");
13195 return (fclose (fp) != 0);
13196 }
13197
13198 _ACEOF
13199 if ac_fn_c_try_run "$LINENO"; then :
13200 gl_cv_cc_long_double_expbit0=`cat conftest.out`
13201 else
13202 gl_cv_cc_long_double_expbit0="unknown"
13203 fi
13204 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13205 conftest.$ac_objext conftest.beam conftest.$ac_ext
13206 fi
13207
13208 rm -f conftest.out
13209
13210 fi
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_long_double_expbit0" >&5
13212 $as_echo "$gl_cv_cc_long_double_expbit0" >&6; }
13213 case "$gl_cv_cc_long_double_expbit0" in
13214 word*bit*)
13215 word=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
13216 bit=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word.*bit //'`
13217
13218 cat >>confdefs.h <<_ACEOF
13219 #define LDBL_EXPBIT0_WORD $word
13220 _ACEOF
13221
13222
13223 cat >>confdefs.h <<_ACEOF
13224 #define LDBL_EXPBIT0_BIT $bit
13225 _ACEOF
13226
13227 ;;
13228 esac
13229
13230
13231
13232 fi
13233
13234
13235
13236
13237
13238
13239
13240
13241
13242 LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
13243
13244
13245
13246
13247 if test $ac_cv_func_lstat = yes; then
13248
13249 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
13250 *no)
13251 REPLACE_LSTAT=1
13252 ;;
13253 esac
13254 else
13255 HAVE_LSTAT=0
13256 fi
13257
13258 if test $REPLACE_LSTAT = 1; then
13259
13260
13261
13262
13263
13264
13265
13266
13267 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
13268
13269 :
13270 fi
13271
13272
13273
13274
13275
13276 GNULIB_LSTAT=1
13277
13278
13279
13280
13281
13282 $as_echo "#define GNULIB_TEST_LSTAT 1" >>confdefs.h
13283
13284
13285
13286
13287
13288
13289
13290
13291
13292
13293
13294
13295
13296
13297
13298
13299
13300
13301 if test $gl_cv_have_include_next = yes; then
13302 gl_cv_next_math_h='<'math.h'>'
13303 else
13304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <math.h>" >&5
13305 $as_echo_n "checking absolute name of <math.h>... " >&6; }
13306 if test "${gl_cv_next_math_h+set}" = set; then :
13307 $as_echo_n "(cached) " >&6
13308 else
13309
13310 if test $ac_cv_header_math_h = yes; then
13311
13312
13313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13314 /* end confdefs.h. */
13315 #include <math.h>
13316
13317 _ACEOF
13318 case "$host_os" in
13319 aix*) gl_absname_cpp="$ac_cpp -C" ;;
13320 *) gl_absname_cpp="$ac_cpp" ;;
13321 esac
13322
13323 case "$host_os" in
13324 mingw*)
13325 gl_dirsep_regex='[/\\]'
13326 ;;
13327 *)
13328 gl_dirsep_regex='\/'
13329 ;;
13330 esac
13331 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
13332
13333 gl_header_literal_regex=`echo 'math.h' \
13334 | sed -e "$gl_make_literal_regex_sed"`
13335 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
13336 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
13337 s|^/[^/]|//&|
13338 p
13339 q
13340 }'
13341 gl_cv_next_math_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13342 sed -n "$gl_absolute_header_sed"`'"'
13343 else
13344 gl_cv_next_math_h='<'math.h'>'
13345 fi
13346
13347
13348 fi
13349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_math_h" >&5
13350 $as_echo "$gl_cv_next_math_h" >&6; }
13351 fi
13352 NEXT_MATH_H=$gl_cv_next_math_h
13353
13354 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
13355 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13356 gl_next_as_first_directive='<'math.h'>'
13357 else
13358 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13359 gl_next_as_first_directive=$gl_cv_next_math_h
13360 fi
13361 NEXT_AS_FIRST_DIRECTIVE_MATH_H=$gl_next_as_first_directive
13362
13363
13364
13365
13366
13367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NAN macro works" >&5
13368 $as_echo_n "checking whether NAN macro works... " >&6; }
13369 if test "${gl_cv_header_math_nan_works+set}" = set; then :
13370 $as_echo_n "(cached) " >&6
13371 else
13372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13373 /* end confdefs.h. */
13374 #include <math.h>
13375 int
13376 main ()
13377 {
13378 /* Solaris 10 has a broken definition of NAN. Other platforms
13379 fail to provide NAN, or provide it only in C99 mode; this
13380 test only needs to fail when NAN is provided but wrong. */
13381 float f = 1.0f;
13382 #ifdef NAN
13383 f = NAN;
13384 #endif
13385 return f == 0;
13386 ;
13387 return 0;
13388 }
13389 _ACEOF
13390 if ac_fn_c_try_compile "$LINENO"; then :
13391 gl_cv_header_math_nan_works=yes
13392 else
13393 gl_cv_header_math_nan_works=no
13394 fi
13395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13396 fi
13397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_nan_works" >&5
13398 $as_echo "$gl_cv_header_math_nan_works" >&6; }
13399 if test $gl_cv_header_math_nan_works = no; then
13400 REPLACE_NAN=1
13401 fi
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether HUGE_VAL works" >&5
13403 $as_echo_n "checking whether HUGE_VAL works... " >&6; }
13404 if test "${gl_cv_header_math_huge_val_works+set}" = set; then :
13405 $as_echo_n "(cached) " >&6
13406 else
13407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13408 /* end confdefs.h. */
13409 #include <math.h>
13410 int
13411 main ()
13412 {
13413 /* Solaris 10 has a broken definition of HUGE_VAL. */
13414 double d = HUGE_VAL;
13415 return d == 0;
13416 ;
13417 return 0;
13418 }
13419 _ACEOF
13420 if ac_fn_c_try_compile "$LINENO"; then :
13421 gl_cv_header_math_huge_val_works=yes
13422 else
13423 gl_cv_header_math_huge_val_works=no
13424 fi
13425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13426 fi
13427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_huge_val_works" >&5
13428 $as_echo "$gl_cv_header_math_huge_val_works" >&6; }
13429 if test $gl_cv_header_math_huge_val_works = no; then
13430 REPLACE_HUGE_VAL=1
13431 fi
13432
13433
13434 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
13435 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
13436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
13437 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
13438 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
13439 $as_echo_n "(cached) " >&6
13440 else
13441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13442 /* end confdefs.h. */
13443 #include <math.h>
13444 int
13445 main ()
13446 {
13447 #undef $gl_func
13448 (void) $gl_func;
13449 ;
13450 return 0;
13451 }
13452 _ACEOF
13453 if ac_fn_c_try_compile "$LINENO"; then :
13454 eval "$as_gl_Symbol=yes"
13455 else
13456 eval "$as_gl_Symbol=no"
13457 fi
13458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13459 fi
13460 eval ac_res=\$$as_gl_Symbol
13461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13462 $as_echo "$ac_res" >&6; }
13463 eval as_val=\$$as_gl_Symbol
13464 if test "x$as_val" = x""yes; then :
13465 cat >>confdefs.h <<_ACEOF
13466 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
13467 _ACEOF
13468
13469 eval ac_cv_have_decl_$gl_func=yes
13470 fi
13471 done
13472
13473
13474
13475
13476
13477
13478
13479
13480
13481
13482
13483
13484 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
13485
13486
13487
13488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
13489 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
13490 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
13491 $as_echo_n "(cached) " >&6
13492 else
13493
13494 case "$host_os" in
13495 # Guess no on AIX and OSF/1.
13496 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
13497 # Guess yes otherwise.
13498 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
13499 esac
13500 if test $LOCALE_JA != none; then
13501 if test "$cross_compiling" = yes; then :
13502 :
13503 else
13504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13505 /* end confdefs.h. */
13506
13507 #include <locale.h>
13508 #include <string.h>
13509 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13510 <wchar.h>.
13511 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13512 included before <wchar.h>. */
13513 #include <stddef.h>
13514 #include <stdio.h>
13515 #include <time.h>
13516 #include <wchar.h>
13517 int main ()
13518 {
13519 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
13520 {
13521 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
13522 mbstate_t state;
13523 wchar_t wc;
13524
13525 memset (&state, '\0', sizeof (mbstate_t));
13526 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
13527 if (mbsinit (&state))
13528 return 1;
13529 }
13530 return 0;
13531 }
13532 _ACEOF
13533 if ac_fn_c_try_run "$LINENO"; then :
13534 gl_cv_func_mbrtowc_incomplete_state=yes
13535 else
13536 gl_cv_func_mbrtowc_incomplete_state=no
13537 fi
13538 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13539 conftest.$ac_objext conftest.beam conftest.$ac_ext
13540 fi
13541
13542 fi
13543
13544 fi
13545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
13546 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
13547
13548
13549
13550
13551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
13552 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
13553 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
13554 $as_echo_n "(cached) " >&6
13555 else
13556
13557 case "$host_os" in
13558 # Guess no on Solaris 8.
13559 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
13560 # Guess yes otherwise.
13561 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
13562 esac
13563 if test $LOCALE_ZH_CN != none; then
13564 if test "$cross_compiling" = yes; then :
13565 :
13566 else
13567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13568 /* end confdefs.h. */
13569
13570 #include <locale.h>
13571 #include <stdlib.h>
13572 #include <string.h>
13573 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13574 <wchar.h>.
13575 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13576 included before <wchar.h>. */
13577 #include <stddef.h>
13578 #include <stdio.h>
13579 #include <time.h>
13580 #include <wchar.h>
13581 int main ()
13582 {
13583 /* This fails on Solaris 8:
13584 mbrtowc returns 2, and sets wc to 0x00F0.
13585 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
13586 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
13587 {
13588 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
13589 mbstate_t state;
13590 wchar_t wc;
13591
13592 memset (&state, '\0', sizeof (mbstate_t));
13593 if (mbrtowc (&wc, input + 3, 6, &state) != 4
13594 && mbtowc (&wc, input + 3, 6) == 4)
13595 return 1;
13596 }
13597 return 0;
13598 }
13599 _ACEOF
13600 if ac_fn_c_try_run "$LINENO"; then :
13601 gl_cv_func_mbrtowc_sanitycheck=yes
13602 else
13603 gl_cv_func_mbrtowc_sanitycheck=no
13604 fi
13605 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13606 conftest.$ac_objext conftest.beam conftest.$ac_ext
13607 fi
13608
13609 fi
13610
13611 fi
13612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
13613 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
13614
13615 REPLACE_MBSTATE_T=0
13616 case "$gl_cv_func_mbrtowc_incomplete_state" in
13617 *yes) ;;
13618 *) REPLACE_MBSTATE_T=1 ;;
13619 esac
13620 case "$gl_cv_func_mbrtowc_sanitycheck" in
13621 *yes) ;;
13622 *) REPLACE_MBSTATE_T=1 ;;
13623 esac
13624 else
13625 REPLACE_MBSTATE_T=1
13626 fi
13627
13628
13629
13630 if test $ac_cv_func_mbrtowc = no; then
13631 HAVE_MBRTOWC=0
13632 ac_fn_c_check_decl "$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" "
13633 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13634 <wchar.h>.
13635 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13636 included before <wchar.h>. */
13637 #include <stddef.h>
13638 #include <stdio.h>
13639 #include <time.h>
13640 #include <wchar.h>
13641
13642 "
13643 if test "x$ac_cv_have_decl_mbrtowc" = x""yes; then :
13644 ac_have_decl=1
13645 else
13646 ac_have_decl=0
13647 fi
13648
13649 cat >>confdefs.h <<_ACEOF
13650 #define HAVE_DECL_MBRTOWC $ac_have_decl
13651 _ACEOF
13652
13653 if test $ac_cv_have_decl_mbrtowc = yes; then
13654 REPLACE_MBRTOWC=1
13655 fi
13656 else
13657 if test $REPLACE_MBSTATE_T = 1; then
13658 REPLACE_MBRTOWC=1
13659 else
13660
13661
13662
13663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL pwc argument" >&5
13664 $as_echo_n "checking whether mbrtowc handles a NULL pwc argument... " >&6; }
13665 if test "${gl_cv_func_mbrtowc_null_arg1+set}" = set; then :
13666 $as_echo_n "(cached) " >&6
13667 else
13668
13669 case "$host_os" in
13670 # Guess no on Solaris.
13671 solaris*) gl_cv_func_mbrtowc_null_arg1="guessing no" ;;
13672 # Guess yes otherwise.
13673 *) gl_cv_func_mbrtowc_null_arg1="guessing yes" ;;
13674 esac
13675 if test $LOCALE_FR_UTF8 != none; then
13676 if test "$cross_compiling" = yes; then :
13677 :
13678 else
13679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13680 /* end confdefs.h. */
13681
13682 #include <locale.h>
13683 #include <stdlib.h>
13684 #include <string.h>
13685 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13686 <wchar.h>.
13687 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13688 included before <wchar.h>. */
13689 #include <stddef.h>
13690 #include <stdio.h>
13691 #include <time.h>
13692 #include <wchar.h>
13693 int main ()
13694 {
13695 int result = 0;
13696
13697 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
13698 {
13699 char input[] = "\303\237er";
13700 mbstate_t state;
13701 wchar_t wc;
13702 size_t ret;
13703
13704 memset (&state, '\0', sizeof (mbstate_t));
13705 wc = (wchar_t) 0xBADFACE;
13706 ret = mbrtowc (&wc, input, 5, &state);
13707 if (ret != 2)
13708 result |= 1;
13709 if (!mbsinit (&state))
13710 result |= 2;
13711
13712 memset (&state, '\0', sizeof (mbstate_t));
13713 ret = mbrtowc (NULL, input, 5, &state);
13714 if (ret != 2) /* Solaris 7 fails here: ret is -1. */
13715 result |= 4;
13716 if (!mbsinit (&state))
13717 result |= 8;
13718 }
13719 return result;
13720 }
13721 _ACEOF
13722 if ac_fn_c_try_run "$LINENO"; then :
13723 gl_cv_func_mbrtowc_null_arg1=yes
13724 else
13725 gl_cv_func_mbrtowc_null_arg1=no
13726 fi
13727 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13728 conftest.$ac_objext conftest.beam conftest.$ac_ext
13729 fi
13730
13731 fi
13732
13733 fi
13734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg1" >&5
13735 $as_echo "$gl_cv_func_mbrtowc_null_arg1" >&6; }
13736
13737
13738
13739
13740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
13741 $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
13742 if test "${gl_cv_func_mbrtowc_null_arg2+set}" = set; then :
13743 $as_echo_n "(cached) " >&6
13744 else
13745
13746 case "$host_os" in
13747 # Guess no on OSF/1.
13748 osf*) gl_cv_func_mbrtowc_null_arg2="guessing no" ;;
13749 # Guess yes otherwise.
13750 *) gl_cv_func_mbrtowc_null_arg2="guessing yes" ;;
13751 esac
13752 if test $LOCALE_FR_UTF8 != none; then
13753 if test "$cross_compiling" = yes; then :
13754 :
13755 else
13756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13757 /* end confdefs.h. */
13758
13759 #include <locale.h>
13760 #include <string.h>
13761 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13762 <wchar.h>.
13763 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13764 included before <wchar.h>. */
13765 #include <stddef.h>
13766 #include <stdio.h>
13767 #include <time.h>
13768 #include <wchar.h>
13769 int main ()
13770 {
13771 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
13772 {
13773 mbstate_t state;
13774 wchar_t wc;
13775 int ret;
13776
13777 memset (&state, '\0', sizeof (mbstate_t));
13778 wc = (wchar_t) 0xBADFACE;
13779 mbrtowc (&wc, NULL, 5, &state);
13780 /* Check that wc was not modified. */
13781 if (wc != (wchar_t) 0xBADFACE)
13782 return 1;
13783 }
13784 return 0;
13785 }
13786 _ACEOF
13787 if ac_fn_c_try_run "$LINENO"; then :
13788 gl_cv_func_mbrtowc_null_arg2=yes
13789 else
13790 gl_cv_func_mbrtowc_null_arg2=no
13791 fi
13792 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13793 conftest.$ac_objext conftest.beam conftest.$ac_ext
13794 fi
13795
13796 fi
13797
13798 fi
13799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg2" >&5
13800 $as_echo "$gl_cv_func_mbrtowc_null_arg2" >&6; }
13801
13802
13803
13804
13805
13806
13807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
13808 $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
13809 if test "${gl_cv_func_mbrtowc_retval+set}" = set; then :
13810 $as_echo_n "(cached) " >&6
13811 else
13812
13813 case "$host_os" in
13814 # Guess no on HP-UX, Solaris, native Windows.
13815 hpux* | solaris* | mingw*) gl_cv_func_mbrtowc_retval="guessing no" ;;
13816 # Guess yes otherwise.
13817 *) gl_cv_func_mbrtowc_retval="guessing yes" ;;
13818 esac
13819 if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none \
13820 || { case "$host_os" in mingw*) true;; *) false;; esac; }; then
13821 if test "$cross_compiling" = yes; then :
13822 :
13823 else
13824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13825 /* end confdefs.h. */
13826
13827 #include <locale.h>
13828 #include <string.h>
13829 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13830 <wchar.h>.
13831 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13832 included before <wchar.h>. */
13833 #include <stddef.h>
13834 #include <stdio.h>
13835 #include <time.h>
13836 #include <wchar.h>
13837 int main ()
13838 {
13839 int result = 0;
13840 int found_some_locale = 0;
13841 /* This fails on Solaris. */
13842 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
13843 {
13844 char input[] = "B\303\274\303\237er"; /* "Büßer" */
13845 mbstate_t state;
13846 wchar_t wc;
13847
13848 memset (&state, '\0', sizeof (mbstate_t));
13849 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
13850 {
13851 input[1] = '\0';
13852 if (mbrtowc (&wc, input + 2, 5, &state) != 1)
13853 result |= 1;
13854 }
13855 found_some_locale = 1;
13856 }
13857 /* This fails on HP-UX 11.11. */
13858 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
13859 {
13860 char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
13861 mbstate_t state;
13862 wchar_t wc;
13863
13864 memset (&state, '\0', sizeof (mbstate_t));
13865 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
13866 {
13867 input[1] = '\0';
13868 if (mbrtowc (&wc, input + 2, 5, &state) != 2)
13869 result |= 2;
13870 }
13871 found_some_locale = 1;
13872 }
13873 /* This fails on native Windows. */
13874 if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
13875 {
13876 char input[] = "<\223\372\226\173\214\352>"; /* "<日本語>" */
13877 mbstate_t state;
13878 wchar_t wc;
13879
13880 memset (&state, '\0', sizeof (mbstate_t));
13881 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
13882 {
13883 input[3] = '\0';
13884 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
13885 result |= 4;
13886 }
13887 found_some_locale = 1;
13888 }
13889 if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
13890 {
13891 char input[] = "<\244\351\245\273\273\171>"; /* "<日本語>" */
13892 mbstate_t state;
13893 wchar_t wc;
13894
13895 memset (&state, '\0', sizeof (mbstate_t));
13896 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
13897 {
13898 input[3] = '\0';
13899 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
13900 result |= 8;
13901 }
13902 found_some_locale = 1;
13903 }
13904 if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
13905 {
13906 char input[] = "<\310\325\261\276\325\132>"; /* "<日本語>" */
13907 mbstate_t state;
13908 wchar_t wc;
13909
13910 memset (&state, '\0', sizeof (mbstate_t));
13911 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
13912 {
13913 input[3] = '\0';
13914 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
13915 result |= 16;
13916 }
13917 found_some_locale = 1;
13918 }
13919 return (found_some_locale ? result : 77);
13920 }
13921 _ACEOF
13922 if ac_fn_c_try_run "$LINENO"; then :
13923 gl_cv_func_mbrtowc_retval=yes
13924 else
13925 if test $? != 77; then
13926 gl_cv_func_mbrtowc_retval=no
13927 fi
13928
13929 fi
13930 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13931 conftest.$ac_objext conftest.beam conftest.$ac_ext
13932 fi
13933
13934 fi
13935
13936 fi
13937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
13938 $as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
13939
13940
13941
13942
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
13944 $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
13945 if test "${gl_cv_func_mbrtowc_nul_retval+set}" = set; then :
13946 $as_echo_n "(cached) " >&6
13947 else
13948
13949 case "$host_os" in
13950 # Guess no on Solaris 8 and 9.
13951 solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
13952 # Guess yes otherwise.
13953 *) gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
13954 esac
13955 if test $LOCALE_ZH_CN != none; then
13956 if test "$cross_compiling" = yes; then :
13957 :
13958 else
13959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13960 /* end confdefs.h. */
13961
13962 #include <locale.h>
13963 #include <string.h>
13964 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13965 <wchar.h>.
13966 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13967 included before <wchar.h>. */
13968 #include <stddef.h>
13969 #include <stdio.h>
13970 #include <time.h>
13971 #include <wchar.h>
13972 int main ()
13973 {
13974 /* This fails on Solaris 8 and 9. */
13975 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
13976 {
13977 mbstate_t state;
13978 wchar_t wc;
13979
13980 memset (&state, '\0', sizeof (mbstate_t));
13981 if (mbrtowc (&wc, "", 1, &state) != 0)
13982 return 1;
13983 }
13984 return 0;
13985 }
13986 _ACEOF
13987 if ac_fn_c_try_run "$LINENO"; then :
13988 gl_cv_func_mbrtowc_nul_retval=yes
13989 else
13990 gl_cv_func_mbrtowc_nul_retval=no
13991 fi
13992 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13993 conftest.$ac_objext conftest.beam conftest.$ac_ext
13994 fi
13995
13996 fi
13997
13998 fi
13999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
14000 $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
14001
14002 case "$gl_cv_func_mbrtowc_null_arg1" in
14003 *yes) ;;
14004 *)
14005 $as_echo "#define MBRTOWC_NULL_ARG1_BUG 1" >>confdefs.h
14006
14007 REPLACE_MBRTOWC=1
14008 ;;
14009 esac
14010 case "$gl_cv_func_mbrtowc_null_arg2" in
14011 *yes) ;;
14012 *)
14013 $as_echo "#define MBRTOWC_NULL_ARG2_BUG 1" >>confdefs.h
14014
14015 REPLACE_MBRTOWC=1
14016 ;;
14017 esac
14018 case "$gl_cv_func_mbrtowc_retval" in
14019 *yes) ;;
14020 *)
14021 $as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
14022
14023 REPLACE_MBRTOWC=1
14024 ;;
14025 esac
14026 case "$gl_cv_func_mbrtowc_nul_retval" in
14027 *yes) ;;
14028 *)
14029 $as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
14030
14031 REPLACE_MBRTOWC=1
14032 ;;
14033 esac
14034 fi
14035 fi
14036
14037 if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
14038
14039
14040
14041
14042
14043
14044
14045
14046 gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext"
14047
14048
14049 :
14050
14051 fi
14052
14053
14054
14055
14056
14057 GNULIB_MBRTOWC=1
14058
14059
14060
14061
14062
14063 $as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
14079
14080
14081
14082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
14083 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
14084 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
14085 $as_echo_n "(cached) " >&6
14086 else
14087
14088 case "$host_os" in
14089 # Guess no on AIX and OSF/1.
14090 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
14091 # Guess yes otherwise.
14092 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
14093 esac
14094 if test $LOCALE_JA != none; then
14095 if test "$cross_compiling" = yes; then :
14096 :
14097 else
14098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14099 /* end confdefs.h. */
14100
14101 #include <locale.h>
14102 #include <string.h>
14103 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14104 <wchar.h>.
14105 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14106 included before <wchar.h>. */
14107 #include <stddef.h>
14108 #include <stdio.h>
14109 #include <time.h>
14110 #include <wchar.h>
14111 int main ()
14112 {
14113 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
14114 {
14115 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
14116 mbstate_t state;
14117 wchar_t wc;
14118
14119 memset (&state, '\0', sizeof (mbstate_t));
14120 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
14121 if (mbsinit (&state))
14122 return 1;
14123 }
14124 return 0;
14125 }
14126 _ACEOF
14127 if ac_fn_c_try_run "$LINENO"; then :
14128 gl_cv_func_mbrtowc_incomplete_state=yes
14129 else
14130 gl_cv_func_mbrtowc_incomplete_state=no
14131 fi
14132 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14133 conftest.$ac_objext conftest.beam conftest.$ac_ext
14134 fi
14135
14136 fi
14137
14138 fi
14139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
14140 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
14141
14142
14143
14144
14145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
14146 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
14147 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
14148 $as_echo_n "(cached) " >&6
14149 else
14150
14151 case "$host_os" in
14152 # Guess no on Solaris 8.
14153 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
14154 # Guess yes otherwise.
14155 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
14156 esac
14157 if test $LOCALE_ZH_CN != none; then
14158 if test "$cross_compiling" = yes; then :
14159 :
14160 else
14161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14162 /* end confdefs.h. */
14163
14164 #include <locale.h>
14165 #include <stdlib.h>
14166 #include <string.h>
14167 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14168 <wchar.h>.
14169 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14170 included before <wchar.h>. */
14171 #include <stddef.h>
14172 #include <stdio.h>
14173 #include <time.h>
14174 #include <wchar.h>
14175 int main ()
14176 {
14177 /* This fails on Solaris 8:
14178 mbrtowc returns 2, and sets wc to 0x00F0.
14179 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
14180 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
14181 {
14182 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
14183 mbstate_t state;
14184 wchar_t wc;
14185
14186 memset (&state, '\0', sizeof (mbstate_t));
14187 if (mbrtowc (&wc, input + 3, 6, &state) != 4
14188 && mbtowc (&wc, input + 3, 6) == 4)
14189 return 1;
14190 }
14191 return 0;
14192 }
14193 _ACEOF
14194 if ac_fn_c_try_run "$LINENO"; then :
14195 gl_cv_func_mbrtowc_sanitycheck=yes
14196 else
14197 gl_cv_func_mbrtowc_sanitycheck=no
14198 fi
14199 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14200 conftest.$ac_objext conftest.beam conftest.$ac_ext
14201 fi
14202
14203 fi
14204
14205 fi
14206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
14207 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
14208
14209 REPLACE_MBSTATE_T=0
14210 case "$gl_cv_func_mbrtowc_incomplete_state" in
14211 *yes) ;;
14212 *) REPLACE_MBSTATE_T=1 ;;
14213 esac
14214 case "$gl_cv_func_mbrtowc_sanitycheck" in
14215 *yes) ;;
14216 *) REPLACE_MBSTATE_T=1 ;;
14217 esac
14218 else
14219 REPLACE_MBSTATE_T=1
14220 fi
14221
14222
14223
14224 if test $ac_cv_func_mbsinit = no; then
14225 HAVE_MBSINIT=0
14226 ac_fn_c_check_decl "$LINENO" "mbsinit" "ac_cv_have_decl_mbsinit" "
14227 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14228 <wchar.h>.
14229 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14230 included before <wchar.h>. */
14231 #include <stddef.h>
14232 #include <stdio.h>
14233 #include <time.h>
14234 #include <wchar.h>
14235
14236 "
14237 if test "x$ac_cv_have_decl_mbsinit" = x""yes; then :
14238 ac_have_decl=1
14239 else
14240 ac_have_decl=0
14241 fi
14242
14243 cat >>confdefs.h <<_ACEOF
14244 #define HAVE_DECL_MBSINIT $ac_have_decl
14245 _ACEOF
14246
14247 if test $ac_cv_have_decl_mbsinit = yes; then
14248 REPLACE_MBSINIT=1
14249 fi
14250 else
14251 if test $REPLACE_MBSTATE_T = 1; then
14252 REPLACE_MBSINIT=1
14253 else
14254 case "$host_os" in
14255 mingw*) REPLACE_MBSINIT=1 ;;
14256 esac
14257 fi
14258 fi
14259
14260 if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
14261
14262
14263
14264
14265
14266
14267
14268
14269 gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext"
14270
14271
14272 :
14273
14274 fi
14275
14276
14277
14278
14279
14280 GNULIB_MBSINIT=1
14281
14282
14283
14284
14285
14286 $as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
14287
14288
14289
14290
14291
14292
14293
14294
14295
14296
14297
14298
14299
14300 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
14301
14302
14303
14304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
14305 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
14306 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
14307 $as_echo_n "(cached) " >&6
14308 else
14309
14310 case "$host_os" in
14311 # Guess no on AIX and OSF/1.
14312 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
14313 # Guess yes otherwise.
14314 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
14315 esac
14316 if test $LOCALE_JA != none; then
14317 if test "$cross_compiling" = yes; then :
14318 :
14319 else
14320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14321 /* end confdefs.h. */
14322
14323 #include <locale.h>
14324 #include <string.h>
14325 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14326 <wchar.h>.
14327 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14328 included before <wchar.h>. */
14329 #include <stddef.h>
14330 #include <stdio.h>
14331 #include <time.h>
14332 #include <wchar.h>
14333 int main ()
14334 {
14335 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
14336 {
14337 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
14338 mbstate_t state;
14339 wchar_t wc;
14340
14341 memset (&state, '\0', sizeof (mbstate_t));
14342 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
14343 if (mbsinit (&state))
14344 return 1;
14345 }
14346 return 0;
14347 }
14348 _ACEOF
14349 if ac_fn_c_try_run "$LINENO"; then :
14350 gl_cv_func_mbrtowc_incomplete_state=yes
14351 else
14352 gl_cv_func_mbrtowc_incomplete_state=no
14353 fi
14354 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14355 conftest.$ac_objext conftest.beam conftest.$ac_ext
14356 fi
14357
14358 fi
14359
14360 fi
14361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
14362 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
14363
14364
14365
14366
14367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
14368 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
14369 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
14370 $as_echo_n "(cached) " >&6
14371 else
14372
14373 case "$host_os" in
14374 # Guess no on Solaris 8.
14375 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
14376 # Guess yes otherwise.
14377 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
14378 esac
14379 if test $LOCALE_ZH_CN != none; then
14380 if test "$cross_compiling" = yes; then :
14381 :
14382 else
14383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14384 /* end confdefs.h. */
14385
14386 #include <locale.h>
14387 #include <stdlib.h>
14388 #include <string.h>
14389 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14390 <wchar.h>.
14391 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14392 included before <wchar.h>. */
14393 #include <stddef.h>
14394 #include <stdio.h>
14395 #include <time.h>
14396 #include <wchar.h>
14397 int main ()
14398 {
14399 /* This fails on Solaris 8:
14400 mbrtowc returns 2, and sets wc to 0x00F0.
14401 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
14402 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
14403 {
14404 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
14405 mbstate_t state;
14406 wchar_t wc;
14407
14408 memset (&state, '\0', sizeof (mbstate_t));
14409 if (mbrtowc (&wc, input + 3, 6, &state) != 4
14410 && mbtowc (&wc, input + 3, 6) == 4)
14411 return 1;
14412 }
14413 return 0;
14414 }
14415 _ACEOF
14416 if ac_fn_c_try_run "$LINENO"; then :
14417 gl_cv_func_mbrtowc_sanitycheck=yes
14418 else
14419 gl_cv_func_mbrtowc_sanitycheck=no
14420 fi
14421 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14422 conftest.$ac_objext conftest.beam conftest.$ac_ext
14423 fi
14424
14425 fi
14426
14427 fi
14428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
14429 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
14430
14431 REPLACE_MBSTATE_T=0
14432 case "$gl_cv_func_mbrtowc_incomplete_state" in
14433 *yes) ;;
14434 *) REPLACE_MBSTATE_T=1 ;;
14435 esac
14436 case "$gl_cv_func_mbrtowc_sanitycheck" in
14437 *yes) ;;
14438 *) REPLACE_MBSTATE_T=1 ;;
14439 esac
14440 else
14441 REPLACE_MBSTATE_T=1
14442 fi
14443
14444
14445
14446 if test $ac_cv_func_mbsrtowcs = no; then
14447 HAVE_MBSRTOWCS=0
14448 ac_fn_c_check_decl "$LINENO" "mbsrtowcs" "ac_cv_have_decl_mbsrtowcs" "
14449 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14450 <wchar.h>.
14451 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14452 included before <wchar.h>. */
14453 #include <stddef.h>
14454 #include <stdio.h>
14455 #include <time.h>
14456 #include <wchar.h>
14457
14458 "
14459 if test "x$ac_cv_have_decl_mbsrtowcs" = x""yes; then :
14460 ac_have_decl=1
14461 else
14462 ac_have_decl=0
14463 fi
14464
14465 cat >>confdefs.h <<_ACEOF
14466 #define HAVE_DECL_MBSRTOWCS $ac_have_decl
14467 _ACEOF
14468
14469 if test $ac_cv_have_decl_mbsrtowcs = yes; then
14470 REPLACE_MBSRTOWCS=1
14471 fi
14472 else
14473 if test $REPLACE_MBSTATE_T = 1; then
14474 REPLACE_MBSRTOWCS=1
14475 else
14476
14477
14478
14479
14480
14481
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbsrtowcs works" >&5
14483 $as_echo_n "checking whether mbsrtowcs works... " >&6; }
14484 if test "${gl_cv_func_mbsrtowcs_works+set}" = set; then :
14485 $as_echo_n "(cached) " >&6
14486 else
14487
14488 case "$host_os" in
14489 # Guess no on HP-UX, Solaris, mingw.
14490 hpux* | solaris* | mingw*) gl_cv_func_mbsrtowcs_works="guessing no" ;;
14491 # Guess yes otherwise.
14492 *) gl_cv_func_mbsrtowcs_works="guessing yes" ;;
14493 esac
14494 if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
14495 if test "$cross_compiling" = yes; then :
14496 :
14497 else
14498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14499 /* end confdefs.h. */
14500
14501 #include <locale.h>
14502 #include <string.h>
14503 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14504 <wchar.h>.
14505 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14506 included before <wchar.h>. */
14507 #include <stddef.h>
14508 #include <stdio.h>
14509 #include <time.h>
14510 #include <wchar.h>
14511 int main ()
14512 {
14513 int result = 0;
14514 /* Test whether the function supports a NULL destination argument.
14515 This fails on native Windows. */
14516 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
14517 {
14518 const char input[] = "\337er";
14519 const char *src = input;
14520 mbstate_t state;
14521
14522 memset (&state, '\0', sizeof (mbstate_t));
14523 if (mbsrtowcs (NULL, &src, 1, &state) != 3
14524 || src != input)
14525 result |= 1;
14526 }
14527 /* Test whether the function works when started with a conversion state
14528 in non-initial state. This fails on HP-UX 11.11 and Solaris 10. */
14529 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
14530 {
14531 const char input[] = "B\303\274\303\237er";
14532 mbstate_t state;
14533
14534 memset (&state, '\0', sizeof (mbstate_t));
14535 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
14536 if (!mbsinit (&state))
14537 {
14538 const char *src = input + 2;
14539 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
14540 result |= 2;
14541 }
14542 }
14543 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
14544 {
14545 const char input[] = "<\306\374\313\334\270\354>";
14546 mbstate_t state;
14547
14548 memset (&state, '\0', sizeof (mbstate_t));
14549 if (mbrtowc (NULL, input + 3, 1, &state) == (size_t)(-2))
14550 if (!mbsinit (&state))
14551 {
14552 const char *src = input + 4;
14553 if (mbsrtowcs (NULL, &src, 10, &state) != 3)
14554 result |= 4;
14555 }
14556 }
14557 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
14558 {
14559 const char input[] = "B\250\271\201\060\211\070er";
14560 mbstate_t state;
14561
14562 memset (&state, '\0', sizeof (mbstate_t));
14563 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
14564 if (!mbsinit (&state))
14565 {
14566 const char *src = input + 2;
14567 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
14568 result |= 8;
14569 }
14570 }
14571 return result;
14572 }
14573 _ACEOF
14574 if ac_fn_c_try_run "$LINENO"; then :
14575 gl_cv_func_mbsrtowcs_works=yes
14576 else
14577 gl_cv_func_mbsrtowcs_works=no
14578 fi
14579 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14580 conftest.$ac_objext conftest.beam conftest.$ac_ext
14581 fi
14582
14583 fi
14584
14585 fi
14586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbsrtowcs_works" >&5
14587 $as_echo "$gl_cv_func_mbsrtowcs_works" >&6; }
14588
14589 case "$gl_cv_func_mbsrtowcs_works" in
14590 *yes) ;;
14591 *) REPLACE_MBSRTOWCS=1 ;;
14592 esac
14593 fi
14594 fi
14595
14596 if test $HAVE_MBSRTOWCS = 0 || test $REPLACE_MBSRTOWCS = 1; then
14597
14598
14599
14600
14601
14602
14603
14604
14605 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs.$ac_objext"
14606
14607
14608
14609
14610
14611
14612
14613
14614
14615 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs-state.$ac_objext"
14616
14617
14618 :
14619
14620 fi
14621
14622
14623
14624
14625
14626 GNULIB_MBSRTOWCS=1
14627
14628
14629
14630
14631
14632 $as_echo "#define GNULIB_TEST_MBSRTOWCS 1" >>confdefs.h
14633
14634
14635
14636
14637 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
14638
14639
14640
14641
14642
14643
14644
14645
14646 gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
14647
14648
14649 for ac_header in bp-sym.h
14650 do :
14651 ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
14652 if test "x$ac_cv_header_bp_sym_h" = x""yes; then :
14653 cat >>confdefs.h <<_ACEOF
14654 #define HAVE_BP_SYM_H 1
14655 _ACEOF
14656
14657 fi
14658
14659 done
14660
14661
14662 fi
14663
14664
14665
14666
14667
14668 GNULIB_MEMCHR=1
14669
14670
14671
14672
14673
14674 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
14675
14676
14677
14678
14679
14680 if test $HAVE_DECL_MEMMEM = 1 && test $REPLACE_MEMMEM = 0; then
14681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
14682 $as_echo_n "checking whether memmem works in linear time... " >&6; }
14683 if test "${gl_cv_func_memmem_works_fast+set}" = set; then :
14684 $as_echo_n "(cached) " >&6
14685 else
14686 if test "$cross_compiling" = yes; then :
14687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14688 /* end confdefs.h. */
14689
14690 #include <features.h>
14691 #ifdef __GNU_LIBRARY__
14692 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)) \
14693 && !defined __UCLIBC__
14694 Lucky user
14695 #endif
14696 #endif
14697 #ifdef __CYGWIN__
14698 #include <cygwin/version.h>
14699 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 0)
14700 Lucky user
14701 #endif
14702 #endif
14703
14704 _ACEOF
14705 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14706 $EGREP "Lucky user" >/dev/null 2>&1; then :
14707 gl_cv_func_memmem_works_fast="guessing yes"
14708 else
14709 gl_cv_func_memmem_works_fast="guessing no"
14710 fi
14711 rm -f conftest*
14712
14713
14714 else
14715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14716 /* end confdefs.h. */
14717
14718 #include <signal.h> /* for signal */
14719 #include <string.h> /* for memmem */
14720 #include <stdlib.h> /* for malloc */
14721 #include <unistd.h> /* for alarm */
14722 static void quit (int sig) { exit (sig + 128); }
14723
14724 int
14725 main ()
14726 {
14727
14728 int result = 0;
14729 size_t m = 1000000;
14730 char *haystack = (char *) malloc (2 * m + 1);
14731 char *needle = (char *) malloc (m + 1);
14732 /* Failure to compile this test due to missing alarm is okay,
14733 since all such platforms (mingw) also lack memmem. */
14734 signal (SIGALRM, quit);
14735 alarm (5);
14736 /* Check for quadratic performance. */
14737 if (haystack && needle)
14738 {
14739 memset (haystack, 'A', 2 * m);
14740 haystack[2 * m] = 'B';
14741 memset (needle, 'A', m);
14742 needle[m] = 'B';
14743 if (!memmem (haystack, 2 * m + 1, needle, m + 1))
14744 result |= 1;
14745 }
14746 return result;
14747
14748 ;
14749 return 0;
14750 }
14751 _ACEOF
14752 if ac_fn_c_try_run "$LINENO"; then :
14753 gl_cv_func_memmem_works_fast=yes
14754 else
14755 gl_cv_func_memmem_works_fast=no
14756 fi
14757 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14758 conftest.$ac_objext conftest.beam conftest.$ac_ext
14759 fi
14760
14761
14762 fi
14763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_fast" >&5
14764 $as_echo "$gl_cv_func_memmem_works_fast" >&6; }
14765 case "$gl_cv_func_memmem_works_fast" in
14766 *yes) ;;
14767 *)
14768 REPLACE_MEMMEM=1
14769 ;;
14770 esac
14771 fi
14772
14773 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
14774
14775
14776
14777
14778
14779
14780
14781
14782 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
14783
14784 fi
14785
14786
14787
14788
14789 for ac_func in memmem
14790 do :
14791 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
14792 if test "x$ac_cv_func_memmem" = x""yes; then :
14793 cat >>confdefs.h <<_ACEOF
14794 #define HAVE_MEMMEM 1
14795 _ACEOF
14796
14797 fi
14798 done
14799
14800 if test $ac_cv_func_memmem = yes; then
14801 HAVE_MEMMEM=1
14802 else
14803 HAVE_MEMMEM=0
14804 fi
14805
14806 if test $ac_cv_have_decl_memmem = no; then
14807 HAVE_DECL_MEMMEM=0
14808 else
14809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
14810 $as_echo_n "checking whether memmem works... " >&6; }
14811 if test "${gl_cv_func_memmem_works_always+set}" = set; then :
14812 $as_echo_n "(cached) " >&6
14813 else
14814 if test "$cross_compiling" = yes; then :
14815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14816 /* end confdefs.h. */
14817
14818 #ifdef __GNU_LIBRARY__
14819 #include <features.h>
14820 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
14821 || __GLIBC_MINOR__ > 12)) \
14822 || (__GLIBC__ > 2)) \
14823 || defined __UCLIBC__
14824 Lucky user
14825 #endif
14826 #elif defined __CYGWIN__
14827 #include <cygwin/version.h>
14828 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
14829 Lucky user
14830 #endif
14831 #else
14832 Lucky user
14833 #endif
14834
14835 _ACEOF
14836 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14837 $EGREP "Lucky user" >/dev/null 2>&1; then :
14838 gl_cv_func_memmem_works_always="guessing yes"
14839 else
14840 gl_cv_func_memmem_works_always="guessing no"
14841 fi
14842 rm -f conftest*
14843
14844
14845 else
14846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14847 /* end confdefs.h. */
14848
14849 #include <string.h> /* for memmem */
14850 #define P "_EF_BF_BD"
14851 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
14852 #define NEEDLE P P P P P
14853
14854 int
14855 main ()
14856 {
14857
14858 int result = 0;
14859 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
14860 result |= 1;
14861 /* Check for empty needle behavior. */
14862 {
14863 const char *haystack = "AAA";
14864 if (memmem (haystack, 3, NULL, 0) != haystack)
14865 result |= 2;
14866 }
14867 return result;
14868
14869 ;
14870 return 0;
14871 }
14872 _ACEOF
14873 if ac_fn_c_try_run "$LINENO"; then :
14874 gl_cv_func_memmem_works_always=yes
14875 else
14876 gl_cv_func_memmem_works_always=no
14877 fi
14878 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14879 conftest.$ac_objext conftest.beam conftest.$ac_ext
14880 fi
14881
14882
14883 fi
14884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
14885 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
14886 case "$gl_cv_func_memmem_works_always" in
14887 *yes) ;;
14888 *)
14889 REPLACE_MEMMEM=1
14890 ;;
14891 esac
14892 fi
14893 :
14894
14895 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
14896
14897
14898
14899
14900
14901
14902
14903
14904 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
14905
14906 fi
14907
14908
14909
14910
14911
14912 GNULIB_MEMMEM=1
14913
14914
14915
14916
14917
14918 $as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
14919
14920
14921
14922
14923
14924
14925
14926
14927
14928
14929 if test $ac_cv_func_readlink = no; then
14930 HAVE_READLINK=0
14931 else
14932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
14933 $as_echo_n "checking whether readlink signature is correct... " >&6; }
14934 if test "${gl_cv_decl_readlink_works+set}" = set; then :
14935 $as_echo_n "(cached) " >&6
14936 else
14937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14938 /* end confdefs.h. */
14939 #include <unistd.h>
14940 /* Cause compilation failure if original declaration has wrong type. */
14941 ssize_t readlink (const char *, char *, size_t);
14942 int
14943 main ()
14944 {
14945
14946 ;
14947 return 0;
14948 }
14949 _ACEOF
14950 if ac_fn_c_try_compile "$LINENO"; then :
14951 gl_cv_decl_readlink_works=yes
14952 else
14953 gl_cv_decl_readlink_works=no
14954 fi
14955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14956 fi
14957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
14958 $as_echo "$gl_cv_decl_readlink_works" >&6; }
14959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
14960 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
14961 if test "${gl_cv_func_readlink_works+set}" = set; then :
14962 $as_echo_n "(cached) " >&6
14963 else
14964 # We have readlink, so assume ln -s works.
14965 ln -s conftest.no-such conftest.link
14966 ln -s conftest.link conftest.lnk2
14967 if test "$cross_compiling" = yes; then :
14968 case "$host_os" in
14969 # Guess yes on glibc systems.
14970 *-gnu*) gl_cv_func_readlink_works="guessing yes" ;;
14971 # If we don't know, assume the worst.
14972 *) gl_cv_func_readlink_works="guessing no" ;;
14973 esac
14974
14975 else
14976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14977 /* end confdefs.h. */
14978 #include <unistd.h>
14979
14980 int
14981 main ()
14982 {
14983 char buf[20];
14984 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
14985 ;
14986 return 0;
14987 }
14988 _ACEOF
14989 if ac_fn_c_try_run "$LINENO"; then :
14990 gl_cv_func_readlink_works=yes
14991 else
14992 gl_cv_func_readlink_works=no
14993 fi
14994 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14995 conftest.$ac_objext conftest.beam conftest.$ac_ext
14996 fi
14997
14998 rm -f conftest.link conftest.lnk2
14999 fi
15000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
15001 $as_echo "$gl_cv_func_readlink_works" >&6; }
15002 case "$gl_cv_func_readlink_works" in
15003 *yes)
15004 if test "$gl_cv_decl_readlink_works" != yes; then
15005 REPLACE_READLINK=1
15006 fi
15007 ;;
15008 *)
15009
15010 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
15011
15012 REPLACE_READLINK=1
15013 ;;
15014 esac
15015 fi
15016
15017 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
15018
15019
15020
15021
15022
15023
15024
15025
15026 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
15027
15028
15029 :
15030
15031 fi
15032
15033
15034
15035
15036
15037 GNULIB_READLINK=1
15038
15039
15040
15041
15042
15043 $as_echo "#define GNULIB_TEST_READLINK 1" >>confdefs.h
15044
15045
15046
15047
15048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
15049 $as_echo_n "checking for ssize_t... " >&6; }
15050 if test "${gt_cv_ssize_t+set}" = set; then :
15051 $as_echo_n "(cached) " >&6
15052 else
15053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15054 /* end confdefs.h. */
15055 #include <sys/types.h>
15056 int
15057 main ()
15058 {
15059 int x = sizeof (ssize_t *) + sizeof (ssize_t);
15060 return !x;
15061 ;
15062 return 0;
15063 }
15064 _ACEOF
15065 if ac_fn_c_try_compile "$LINENO"; then :
15066 gt_cv_ssize_t=yes
15067 else
15068 gt_cv_ssize_t=no
15069 fi
15070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15071 fi
15072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
15073 $as_echo "$gt_cv_ssize_t" >&6; }
15074 if test $gt_cv_ssize_t = no; then
15075
15076 $as_echo "#define ssize_t int" >>confdefs.h
15077
15078 fi
15079
15080
15081
15082
15083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
15084 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
15085 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
15086 $as_echo_n "(cached) " >&6
15087 else
15088 if test "$cross_compiling" = yes; then :
15089 case $host_os in
15090 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
15091 *) gl_cv_func_stat_dir_slash="guessing yes";;
15092 esac
15093 else
15094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15095 /* end confdefs.h. */
15096 #include <sys/stat.h>
15097
15098 int
15099 main ()
15100 {
15101 struct stat st; return stat (".", &st) != stat ("./", &st);
15102 ;
15103 return 0;
15104 }
15105 _ACEOF
15106 if ac_fn_c_try_run "$LINENO"; then :
15107 gl_cv_func_stat_dir_slash=yes
15108 else
15109 gl_cv_func_stat_dir_slash=no
15110 fi
15111 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15112 conftest.$ac_objext conftest.beam conftest.$ac_ext
15113 fi
15114
15115 fi
15116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
15117 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
15118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
15119 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
15120 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
15121 $as_echo_n "(cached) " >&6
15122 else
15123 touch conftest.tmp
15124 # Assume that if we have lstat, we can also check symlinks.
15125 if test $ac_cv_func_lstat = yes; then
15126 ln -s conftest.tmp conftest.lnk
15127 fi
15128 if test "$cross_compiling" = yes; then :
15129 case "$host_os" in
15130 # Guess yes on glibc systems.
15131 *-gnu*) gl_cv_func_stat_file_slash="guessing yes" ;;
15132 # If we don't know, assume the worst.
15133 *) gl_cv_func_stat_file_slash="guessing no" ;;
15134 esac
15135
15136 else
15137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15138 /* end confdefs.h. */
15139 #include <sys/stat.h>
15140
15141 int
15142 main ()
15143 {
15144 int result = 0;
15145 struct stat st;
15146 if (!stat ("conftest.tmp/", &st))
15147 result |= 1;
15148 #if HAVE_LSTAT
15149 if (!stat ("conftest.lnk/", &st))
15150 result |= 2;
15151 #endif
15152 return result;
15153
15154 ;
15155 return 0;
15156 }
15157 _ACEOF
15158 if ac_fn_c_try_run "$LINENO"; then :
15159 gl_cv_func_stat_file_slash=yes
15160 else
15161 gl_cv_func_stat_file_slash=no
15162 fi
15163 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15164 conftest.$ac_objext conftest.beam conftest.$ac_ext
15165 fi
15166
15167 rm -f conftest.tmp conftest.lnk
15168 fi
15169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
15170 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
15171 case $gl_cv_func_stat_dir_slash in
15172 *no) REPLACE_STAT=1
15173
15174 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
15175 ;;
15176 esac
15177 case $gl_cv_func_stat_file_slash in
15178 *no) REPLACE_STAT=1
15179
15180 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
15181 ;;
15182 esac
15183
15184 if test $REPLACE_STAT = 1; then
15185
15186
15187
15188
15189
15190
15191
15192
15193 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
15194
15195 :
15196 fi
15197
15198
15199
15200
15201
15202 GNULIB_STAT=1
15203
15204
15205
15206
15207
15208 $as_echo "#define GNULIB_TEST_STAT 1" >>confdefs.h
15209
15210
15211
15212
15213
15214
15215 # Define two additional variables used in the Makefile substitution.
15216
15217 if test "$ac_cv_header_stdbool_h" = yes; then
15218 STDBOOL_H=''
15219 else
15220 STDBOOL_H='stdbool.h'
15221 fi
15222
15223 if test -n "$STDBOOL_H"; then
15224 GL_GENERATE_STDBOOL_H_TRUE=
15225 GL_GENERATE_STDBOOL_H_FALSE='#'
15226 else
15227 GL_GENERATE_STDBOOL_H_TRUE='#'
15228 GL_GENERATE_STDBOOL_H_FALSE=
15229 fi
15230
15231
15232 if test "$ac_cv_type__Bool" = yes; then
15233 HAVE__BOOL=1
15234 else
15235 HAVE__BOOL=0
15236 fi
15237
15238
15239
15240
15241
15242 STDDEF_H=
15243 if test $gt_cv_c_wchar_t = no; then
15244 HAVE_WCHAR_T=0
15245 STDDEF_H=stddef.h
15246 fi
15247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
15248 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
15249 if test "${gl_cv_decl_null_works+set}" = set; then :
15250 $as_echo_n "(cached) " >&6
15251 else
15252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15253 /* end confdefs.h. */
15254 #include <stddef.h>
15255 int test[2 * (sizeof NULL == sizeof (void *)) -1];
15256
15257 int
15258 main ()
15259 {
15260
15261 ;
15262 return 0;
15263 }
15264 _ACEOF
15265 if ac_fn_c_try_compile "$LINENO"; then :
15266 gl_cv_decl_null_works=yes
15267 else
15268 gl_cv_decl_null_works=no
15269 fi
15270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15271 fi
15272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
15273 $as_echo "$gl_cv_decl_null_works" >&6; }
15274 if test $gl_cv_decl_null_works = no; then
15275 REPLACE_NULL=1
15276 STDDEF_H=stddef.h
15277 fi
15278
15279 if test -n "$STDDEF_H"; then
15280 GL_GENERATE_STDDEF_H_TRUE=
15281 GL_GENERATE_STDDEF_H_FALSE='#'
15282 else
15283 GL_GENERATE_STDDEF_H_TRUE='#'
15284 GL_GENERATE_STDDEF_H_FALSE=
15285 fi
15286
15287 if test -n "$STDDEF_H"; then
15288
15289
15290
15291
15292
15293
15294
15295
15296 if test $gl_cv_have_include_next = yes; then
15297 gl_cv_next_stddef_h='<'stddef.h'>'
15298 else
15299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
15300 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
15301 if test "${gl_cv_next_stddef_h+set}" = set; then :
15302 $as_echo_n "(cached) " >&6
15303 else
15304
15305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15306 /* end confdefs.h. */
15307 #include <stddef.h>
15308
15309 _ACEOF
15310 case "$host_os" in
15311 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15312 *) gl_absname_cpp="$ac_cpp" ;;
15313 esac
15314
15315 case "$host_os" in
15316 mingw*)
15317 gl_dirsep_regex='[/\\]'
15318 ;;
15319 *)
15320 gl_dirsep_regex='\/'
15321 ;;
15322 esac
15323 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
15324
15325 gl_header_literal_regex=`echo 'stddef.h' \
15326 | sed -e "$gl_make_literal_regex_sed"`
15327 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15328 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15329 s|^/[^/]|//&|
15330 p
15331 q
15332 }'
15333 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15334 sed -n "$gl_absolute_header_sed"`'"'
15335
15336
15337 fi
15338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
15339 $as_echo "$gl_cv_next_stddef_h" >&6; }
15340 fi
15341 NEXT_STDDEF_H=$gl_cv_next_stddef_h
15342
15343 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15344 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15345 gl_next_as_first_directive='<'stddef.h'>'
15346 else
15347 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15348 gl_next_as_first_directive=$gl_cv_next_stddef_h
15349 fi
15350 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
15351
15352
15353
15354
15355 fi
15356
15357
15358
15359
15360
15361
15362
15363
15364
15365
15366
15367
15368 if test $gl_cv_have_include_next = yes; then
15369 gl_cv_next_stdlib_h='<'stdlib.h'>'
15370 else
15371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
15372 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
15373 if test "${gl_cv_next_stdlib_h+set}" = set; then :
15374 $as_echo_n "(cached) " >&6
15375 else
15376
15377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15378 /* end confdefs.h. */
15379 #include <stdlib.h>
15380
15381 _ACEOF
15382 case "$host_os" in
15383 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15384 *) gl_absname_cpp="$ac_cpp" ;;
15385 esac
15386
15387 case "$host_os" in
15388 mingw*)
15389 gl_dirsep_regex='[/\\]'
15390 ;;
15391 *)
15392 gl_dirsep_regex='\/'
15393 ;;
15394 esac
15395 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
15396
15397 gl_header_literal_regex=`echo 'stdlib.h' \
15398 | sed -e "$gl_make_literal_regex_sed"`
15399 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15400 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15401 s|^/[^/]|//&|
15402 p
15403 q
15404 }'
15405 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15406 sed -n "$gl_absolute_header_sed"`'"'
15407
15408
15409 fi
15410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
15411 $as_echo "$gl_cv_next_stdlib_h" >&6; }
15412 fi
15413 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
15414
15415 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15416 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15417 gl_next_as_first_directive='<'stdlib.h'>'
15418 else
15419 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15420 gl_next_as_first_directive=$gl_cv_next_stdlib_h
15421 fi
15422 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
15423
15424
15425
15426
15427
15428
15429 for gl_func in _Exit atoll canonicalize_file_name getloadavg getsubopt grantpt initstate initstate_r mkdtemp mkostemp mkostemps mkstemp mkstemps posix_openpt ptsname ptsname_r random random_r realpath rpmatch setenv setstate setstate_r srandom srandom_r strtod strtoll strtoull unlockpt unsetenv; do
15430 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
15431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
15432 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
15433 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
15434 $as_echo_n "(cached) " >&6
15435 else
15436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15437 /* end confdefs.h. */
15438 #include <stdlib.h>
15439 #if HAVE_SYS_LOADAVG_H
15440 # include <sys/loadavg.h>
15441 #endif
15442 #if HAVE_RANDOM_H
15443 # include <random.h>
15444 #endif
15445
15446 int
15447 main ()
15448 {
15449 #undef $gl_func
15450 (void) $gl_func;
15451 ;
15452 return 0;
15453 }
15454 _ACEOF
15455 if ac_fn_c_try_compile "$LINENO"; then :
15456 eval "$as_gl_Symbol=yes"
15457 else
15458 eval "$as_gl_Symbol=no"
15459 fi
15460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15461 fi
15462 eval ac_res=\$$as_gl_Symbol
15463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15464 $as_echo "$ac_res" >&6; }
15465 eval as_val=\$$as_gl_Symbol
15466 if test "x$as_val" = x""yes; then :
15467 cat >>confdefs.h <<_ACEOF
15468 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
15469 _ACEOF
15470
15471 eval ac_cv_have_decl_$gl_func=yes
15472 fi
15473 done
15474
15475
15476
15477
15478
15479
15480
15481 if test $REPLACE_STRSTR = 0; then
15482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works in linear time" >&5
15483 $as_echo_n "checking whether strstr works in linear time... " >&6; }
15484 if test "${gl_cv_func_strstr_linear+set}" = set; then :
15485 $as_echo_n "(cached) " >&6
15486 else
15487 if test "$cross_compiling" = yes; then :
15488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15489 /* end confdefs.h. */
15490
15491 #include <features.h>
15492 #ifdef __GNU_LIBRARY__
15493 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
15494 && !(defined __i386__ || defined __x86_64__) \
15495 && !defined __UCLIBC__
15496 Lucky user
15497 #endif
15498 #endif
15499 #ifdef __CYGWIN__
15500 #include <cygwin/version.h>
15501 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
15502 Lucky user
15503 #endif
15504 #endif
15505
15506 _ACEOF
15507 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15508 $EGREP "Lucky user" >/dev/null 2>&1; then :
15509 gl_cv_func_strstr_linear="guessing yes"
15510 else
15511 gl_cv_func_strstr_linear="guessing no"
15512 fi
15513 rm -f conftest*
15514
15515
15516 else
15517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15518 /* end confdefs.h. */
15519
15520 #include <signal.h> /* for signal */
15521 #include <string.h> /* for strstr */
15522 #include <stdlib.h> /* for malloc */
15523 #include <unistd.h> /* for alarm */
15524 static void quit (int sig) { exit (sig + 128); }
15525
15526 int
15527 main ()
15528 {
15529
15530 int result = 0;
15531 size_t m = 1000000;
15532 char *haystack = (char *) malloc (2 * m + 2);
15533 char *needle = (char *) malloc (m + 2);
15534 /* Failure to compile this test due to missing alarm is okay,
15535 since all such platforms (mingw) also have quadratic strstr. */
15536 signal (SIGALRM, quit);
15537 alarm (5);
15538 /* Check for quadratic performance. */
15539 if (haystack && needle)
15540 {
15541 memset (haystack, 'A', 2 * m);
15542 haystack[2 * m] = 'B';
15543 haystack[2 * m + 1] = 0;
15544 memset (needle, 'A', m);
15545 needle[m] = 'B';
15546 needle[m + 1] = 0;
15547 if (!strstr (haystack, needle))
15548 result |= 1;
15549 }
15550 return result;
15551
15552 ;
15553 return 0;
15554 }
15555 _ACEOF
15556 if ac_fn_c_try_run "$LINENO"; then :
15557 gl_cv_func_strstr_linear=yes
15558 else
15559 gl_cv_func_strstr_linear=no
15560 fi
15561 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15562 conftest.$ac_objext conftest.beam conftest.$ac_ext
15563 fi
15564
15565
15566 fi
15567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_linear" >&5
15568 $as_echo "$gl_cv_func_strstr_linear" >&6; }
15569 case "$gl_cv_func_strstr_linear" in
15570 *yes) ;;
15571 *)
15572 REPLACE_STRSTR=1
15573 ;;
15574 esac
15575 fi
15576
15577 if test $REPLACE_STRSTR = 1; then
15578
15579
15580
15581
15582
15583
15584
15585
15586 gl_LIBOBJS="$gl_LIBOBJS strstr.$ac_objext"
15587
15588 fi
15589
15590
15591
15592 if test "$gl_cv_func_memchr_works" != yes; then
15593 REPLACE_STRSTR=1
15594 else
15595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
15596 $as_echo_n "checking whether strstr works... " >&6; }
15597 if test "${gl_cv_func_strstr_works_always+set}" = set; then :
15598 $as_echo_n "(cached) " >&6
15599 else
15600 if test "$cross_compiling" = yes; then :
15601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15602 /* end confdefs.h. */
15603
15604 #ifdef __GNU_LIBRARY__
15605 #include <features.h>
15606 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
15607 || defined __UCLIBC__
15608 Lucky user
15609 #endif
15610 #elif defined __CYGWIN__
15611 #include <cygwin/version.h>
15612 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
15613 Lucky user
15614 #endif
15615 #else
15616 Lucky user
15617 #endif
15618
15619 _ACEOF
15620 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15621 $EGREP "Lucky user" >/dev/null 2>&1; then :
15622 gl_cv_func_strstr_works_always="guessing yes"
15623 else
15624 gl_cv_func_strstr_works_always="guessing no"
15625 fi
15626 rm -f conftest*
15627
15628
15629 else
15630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15631 /* end confdefs.h. */
15632
15633 #include <string.h> /* for strstr */
15634 #define P "_EF_BF_BD"
15635 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
15636 #define NEEDLE P P P P P
15637
15638 int
15639 main ()
15640 {
15641 return !!strstr (HAYSTACK, NEEDLE);
15642
15643 ;
15644 return 0;
15645 }
15646 _ACEOF
15647 if ac_fn_c_try_run "$LINENO"; then :
15648 gl_cv_func_strstr_works_always=yes
15649 else
15650 gl_cv_func_strstr_works_always=no
15651 fi
15652 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15653 conftest.$ac_objext conftest.beam conftest.$ac_ext
15654 fi
15655
15656
15657 fi
15658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
15659 $as_echo "$gl_cv_func_strstr_works_always" >&6; }
15660 case "$gl_cv_func_strstr_works_always" in
15661 *yes) ;;
15662 *)
15663 REPLACE_STRSTR=1
15664 ;;
15665 esac
15666 fi
15667
15668 if test $REPLACE_STRSTR = 1; then
15669
15670
15671
15672
15673
15674
15675
15676
15677 gl_LIBOBJS="$gl_LIBOBJS strstr.$ac_objext"
15678
15679 fi
15680
15681
15682
15683
15684
15685 GNULIB_STRSTR=1
15686
15687
15688
15689
15690
15691 $as_echo "#define GNULIB_TEST_STRSTR 1" >>confdefs.h
15692
15693
15694
15695
15696
15697
15698
15699
15700
15701
15702
15703
15704
15705
15706
15707
15708
15709 if test $gl_cv_have_include_next = yes; then
15710 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
15711 else
15712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
15713 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
15714 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
15715 $as_echo_n "(cached) " >&6
15716 else
15717
15718 if test $ac_cv_header_sys_stat_h = yes; then
15719
15720
15721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15722 /* end confdefs.h. */
15723 #include <sys/stat.h>
15724
15725 _ACEOF
15726 case "$host_os" in
15727 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15728 *) gl_absname_cpp="$ac_cpp" ;;
15729 esac
15730
15731 case "$host_os" in
15732 mingw*)
15733 gl_dirsep_regex='[/\\]'
15734 ;;
15735 *)
15736 gl_dirsep_regex='\/'
15737 ;;
15738 esac
15739 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
15740
15741 gl_header_literal_regex=`echo 'sys/stat.h' \
15742 | sed -e "$gl_make_literal_regex_sed"`
15743 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15744 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15745 s|^/[^/]|//&|
15746 p
15747 q
15748 }'
15749 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15750 sed -n "$gl_absolute_header_sed"`'"'
15751 else
15752 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
15753 fi
15754
15755
15756 fi
15757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
15758 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
15759 fi
15760 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
15761
15762 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15763 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15764 gl_next_as_first_directive='<'sys/stat.h'>'
15765 else
15766 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15767 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
15768 fi
15769 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
15770
15771
15772
15773
15774
15775
15776
15777
15778
15779
15780
15781 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
15782
15783 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
15784
15785 fi
15786
15787 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
15788 #include <sys/stat.h>
15789 "
15790 if test "x$ac_cv_type_nlink_t" = x""yes; then :
15791
15792 else
15793
15794 $as_echo "#define nlink_t int" >>confdefs.h
15795
15796 fi
15797
15798
15799
15800 for gl_func in fchmodat fstat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat mknod mknodat stat utimensat; do
15801 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
15802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
15803 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
15804 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
15805 $as_echo_n "(cached) " >&6
15806 else
15807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15808 /* end confdefs.h. */
15809 #include <sys/stat.h>
15810
15811 int
15812 main ()
15813 {
15814 #undef $gl_func
15815 (void) $gl_func;
15816 ;
15817 return 0;
15818 }
15819 _ACEOF
15820 if ac_fn_c_try_compile "$LINENO"; then :
15821 eval "$as_gl_Symbol=yes"
15822 else
15823 eval "$as_gl_Symbol=no"
15824 fi
15825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15826 fi
15827 eval ac_res=\$$as_gl_Symbol
15828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15829 $as_echo "$ac_res" >&6; }
15830 eval as_val=\$$as_gl_Symbol
15831 if test "x$as_val" = x""yes; then :
15832 cat >>confdefs.h <<_ACEOF
15833 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
15834 _ACEOF
15835
15836 eval ac_cv_have_decl_$gl_func=yes
15837 fi
15838 done
15839
15840
15841
15842
15843
15844
15845
15846
15847
15848
15849
15850
15851
15852
15853 if test $gl_cv_have_include_next = yes; then
15854 gl_cv_next_sys_types_h='<'sys/types.h'>'
15855 else
15856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
15857 $as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
15858 if test "${gl_cv_next_sys_types_h+set}" = set; then :
15859 $as_echo_n "(cached) " >&6
15860 else
15861
15862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15863 /* end confdefs.h. */
15864 #include <sys/types.h>
15865
15866 _ACEOF
15867 case "$host_os" in
15868 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15869 *) gl_absname_cpp="$ac_cpp" ;;
15870 esac
15871
15872 case "$host_os" in
15873 mingw*)
15874 gl_dirsep_regex='[/\\]'
15875 ;;
15876 *)
15877 gl_dirsep_regex='\/'
15878 ;;
15879 esac
15880 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
15881
15882 gl_header_literal_regex=`echo 'sys/types.h' \
15883 | sed -e "$gl_make_literal_regex_sed"`
15884 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15885 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15886 s|^/[^/]|//&|
15887 p
15888 q
15889 }'
15890 gl_cv_next_sys_types_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15891 sed -n "$gl_absolute_header_sed"`'"'
15892
15893
15894 fi
15895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
15896 $as_echo "$gl_cv_next_sys_types_h" >&6; }
15897 fi
15898 NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
15899
15900 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15901 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15902 gl_next_as_first_directive='<'sys/types.h'>'
15903 else
15904 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15905 gl_next_as_first_directive=$gl_cv_next_sys_types_h
15906 fi
15907 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
15908
15909
15910
15911
15912
15913
15914
15915
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929
15930
15931
15932
15933
15934
15935 if test $gl_cv_have_include_next = yes; then
15936 gl_cv_next_unistd_h='<'unistd.h'>'
15937 else
15938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
15939 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
15940 if test "${gl_cv_next_unistd_h+set}" = set; then :
15941 $as_echo_n "(cached) " >&6
15942 else
15943
15944 if test $ac_cv_header_unistd_h = yes; then
15945
15946
15947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15948 /* end confdefs.h. */
15949 #include <unistd.h>
15950
15951 _ACEOF
15952 case "$host_os" in
15953 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15954 *) gl_absname_cpp="$ac_cpp" ;;
15955 esac
15956
15957 case "$host_os" in
15958 mingw*)
15959 gl_dirsep_regex='[/\\]'
15960 ;;
15961 *)
15962 gl_dirsep_regex='\/'
15963 ;;
15964 esac
15965 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
15966
15967 gl_header_literal_regex=`echo 'unistd.h' \
15968 | sed -e "$gl_make_literal_regex_sed"`
15969 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15970 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15971 s|^/[^/]|//&|
15972 p
15973 q
15974 }'
15975 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15976 sed -n "$gl_absolute_header_sed"`'"'
15977 else
15978 gl_cv_next_unistd_h='<'unistd.h'>'
15979 fi
15980
15981
15982 fi
15983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
15984 $as_echo "$gl_cv_next_unistd_h" >&6; }
15985 fi
15986 NEXT_UNISTD_H=$gl_cv_next_unistd_h
15987
15988 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15989 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15990 gl_next_as_first_directive='<'unistd.h'>'
15991 else
15992 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15993 gl_next_as_first_directive=$gl_cv_next_unistd_h
15994 fi
15995 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
15996
15997
15998
15999
16000 if test $ac_cv_header_unistd_h = yes; then
16001 HAVE_UNISTD_H=1
16002 else
16003 HAVE_UNISTD_H=0
16004 fi
16005
16006
16007
16008
16009
16010
16011
16012 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
16013 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
16014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
16015 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
16016 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
16017 $as_echo_n "(cached) " >&6
16018 else
16019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16020 /* end confdefs.h. */
16021
16022 #if HAVE_UNISTD_H
16023 # include <unistd.h>
16024 #endif
16025 /* Some systems declare various items in the wrong headers. */
16026 #if !(defined __GLIBC__ && !defined __UCLIBC__)
16027 # include <fcntl.h>
16028 # include <stdio.h>
16029 # include <stdlib.h>
16030 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
16031 # include <io.h>
16032 # endif
16033 #endif
16034
16035 int
16036 main ()
16037 {
16038 #undef $gl_func
16039 (void) $gl_func;
16040 ;
16041 return 0;
16042 }
16043 _ACEOF
16044 if ac_fn_c_try_compile "$LINENO"; then :
16045 eval "$as_gl_Symbol=yes"
16046 else
16047 eval "$as_gl_Symbol=no"
16048 fi
16049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16050 fi
16051 eval ac_res=\$$as_gl_Symbol
16052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16053 $as_echo "$ac_res" >&6; }
16054 eval as_val=\$$as_gl_Symbol
16055 if test "x$as_val" = x""yes; then :
16056 cat >>confdefs.h <<_ACEOF
16057 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
16058 _ACEOF
16059
16060 eval ac_cv_have_decl_$gl_func=yes
16061 fi
16062 done
16063
16064
16065
16066
16067
16068
16069
16070
16071
16072
16073
16074
16075
16076
16077 if test $gl_cv_have_include_next = yes; then
16078 gl_cv_next_wchar_h='<'wchar.h'>'
16079 else
16080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
16081 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
16082 if test "${gl_cv_next_wchar_h+set}" = set; then :
16083 $as_echo_n "(cached) " >&6
16084 else
16085
16086 if test $ac_cv_header_wchar_h = yes; then
16087
16088
16089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16090 /* end confdefs.h. */
16091 #include <wchar.h>
16092
16093 _ACEOF
16094 case "$host_os" in
16095 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16096 *) gl_absname_cpp="$ac_cpp" ;;
16097 esac
16098
16099 case "$host_os" in
16100 mingw*)
16101 gl_dirsep_regex='[/\\]'
16102 ;;
16103 *)
16104 gl_dirsep_regex='\/'
16105 ;;
16106 esac
16107 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
16108
16109 gl_header_literal_regex=`echo 'wchar.h' \
16110 | sed -e "$gl_make_literal_regex_sed"`
16111 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16112 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16113 s|^/[^/]|//&|
16114 p
16115 q
16116 }'
16117 gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16118 sed -n "$gl_absolute_header_sed"`'"'
16119 else
16120 gl_cv_next_wchar_h='<'wchar.h'>'
16121 fi
16122
16123
16124 fi
16125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
16126 $as_echo "$gl_cv_next_wchar_h" >&6; }
16127 fi
16128 NEXT_WCHAR_H=$gl_cv_next_wchar_h
16129
16130 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16131 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16132 gl_next_as_first_directive='<'wchar.h'>'
16133 else
16134 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16135 gl_next_as_first_directive=$gl_cv_next_wchar_h
16136 fi
16137 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
16138
16139
16140
16141
16142 if test $ac_cv_header_wchar_h = yes; then
16143 HAVE_WCHAR_H=1
16144 else
16145 HAVE_WCHAR_H=0
16146 fi
16147
16148
16149
16150
16151
16152 if test $gt_cv_c_wint_t = yes; then
16153 HAVE_WINT_T=1
16154 else
16155 HAVE_WINT_T=0
16156 fi
16157
16158
16159
16160 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
16161 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
16162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
16163 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
16164 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
16165 $as_echo_n "(cached) " >&6
16166 else
16167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16168 /* end confdefs.h. */
16169
16170 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
16171 <wchar.h>.
16172 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16173 included before <wchar.h>. */
16174 #if !(defined __GLIBC__ && !defined __UCLIBC__)
16175 # include <stddef.h>
16176 # include <stdio.h>
16177 # include <time.h>
16178 #endif
16179 #include <wchar.h>
16180
16181 int
16182 main ()
16183 {
16184 #undef $gl_func
16185 (void) $gl_func;
16186 ;
16187 return 0;
16188 }
16189 _ACEOF
16190 if ac_fn_c_try_compile "$LINENO"; then :
16191 eval "$as_gl_Symbol=yes"
16192 else
16193 eval "$as_gl_Symbol=no"
16194 fi
16195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16196 fi
16197 eval ac_res=\$$as_gl_Symbol
16198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16199 $as_echo "$ac_res" >&6; }
16200 eval as_val=\$$as_gl_Symbol
16201 if test "x$as_val" = x""yes; then :
16202 cat >>confdefs.h <<_ACEOF
16203 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
16204 _ACEOF
16205
16206 eval ac_cv_have_decl_$gl_func=yes
16207 fi
16208 done
16209
16210
16211
16212
16213
16214
16215
16216 if test $ac_cv_func_iswcntrl = yes; then
16217 HAVE_ISWCNTRL=1
16218 else
16219 HAVE_ISWCNTRL=0
16220 fi
16221
16222
16223
16224 if test $gt_cv_c_wint_t = yes; then
16225 HAVE_WINT_T=1
16226 else
16227 HAVE_WINT_T=0
16228 fi
16229
16230
16231
16232
16233
16234
16235
16236
16237
16238
16239
16240 if test $gl_cv_have_include_next = yes; then
16241 gl_cv_next_wctype_h='<'wctype.h'>'
16242 else
16243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
16244 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
16245 if test "${gl_cv_next_wctype_h+set}" = set; then :
16246 $as_echo_n "(cached) " >&6
16247 else
16248
16249 if test $ac_cv_header_wctype_h = yes; then
16250
16251
16252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16253 /* end confdefs.h. */
16254 #include <wctype.h>
16255
16256 _ACEOF
16257 case "$host_os" in
16258 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16259 *) gl_absname_cpp="$ac_cpp" ;;
16260 esac
16261
16262 case "$host_os" in
16263 mingw*)
16264 gl_dirsep_regex='[/\\]'
16265 ;;
16266 *)
16267 gl_dirsep_regex='\/'
16268 ;;
16269 esac
16270 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
16271
16272 gl_header_literal_regex=`echo 'wctype.h' \
16273 | sed -e "$gl_make_literal_regex_sed"`
16274 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16275 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16276 s|^/[^/]|//&|
16277 p
16278 q
16279 }'
16280 gl_cv_next_wctype_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16281 sed -n "$gl_absolute_header_sed"`'"'
16282 else
16283 gl_cv_next_wctype_h='<'wctype.h'>'
16284 fi
16285
16286
16287 fi
16288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
16289 $as_echo "$gl_cv_next_wctype_h" >&6; }
16290 fi
16291 NEXT_WCTYPE_H=$gl_cv_next_wctype_h
16292
16293 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16294 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16295 gl_next_as_first_directive='<'wctype.h'>'
16296 else
16297 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16298 gl_next_as_first_directive=$gl_cv_next_wctype_h
16299 fi
16300 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
16301
16302
16303
16304
16305 if test $ac_cv_header_wctype_h = yes; then
16306 if test $ac_cv_func_iswcntrl = yes; then
16307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
16308 $as_echo_n "checking whether iswcntrl works... " >&6; }
16309 if test "${gl_cv_func_iswcntrl_works+set}" = set; then :
16310 $as_echo_n "(cached) " >&6
16311 else
16312
16313 if test "$cross_compiling" = yes; then :
16314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16315 /* end confdefs.h. */
16316 #include <stdlib.h>
16317 #if __GNU_LIBRARY__ == 1
16318 Linux libc5 i18n is broken.
16319 #endif
16320 int
16321 main ()
16322 {
16323
16324 ;
16325 return 0;
16326 }
16327 _ACEOF
16328 if ac_fn_c_try_compile "$LINENO"; then :
16329 gl_cv_func_iswcntrl_works="guessing yes"
16330 else
16331 gl_cv_func_iswcntrl_works="guessing no"
16332 fi
16333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16334
16335 else
16336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16337 /* end confdefs.h. */
16338
16339 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
16340 included before <wchar.h>.
16341 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
16342 must be included before <wchar.h>. */
16343 #include <stddef.h>
16344 #include <stdio.h>
16345 #include <time.h>
16346 #include <wchar.h>
16347 #include <wctype.h>
16348 int main () { return iswprint ('x') == 0; }
16349
16350 _ACEOF
16351 if ac_fn_c_try_run "$LINENO"; then :
16352 gl_cv_func_iswcntrl_works=yes
16353 else
16354 gl_cv_func_iswcntrl_works=no
16355 fi
16356 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16357 conftest.$ac_objext conftest.beam conftest.$ac_ext
16358 fi
16359
16360
16361 fi
16362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
16363 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
16364 fi
16365 HAVE_WCTYPE_H=1
16366 else
16367 HAVE_WCTYPE_H=0
16368 fi
16369
16370
16371 case "$gl_cv_func_iswcntrl_works" in
16372 *yes) REPLACE_ISWCNTRL=0 ;;
16373 *) REPLACE_ISWCNTRL=1 ;;
16374 esac
16375
16376
16377 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
16378 :
16379 fi
16380
16381 if test $REPLACE_ISWCNTRL = 1; then
16382 REPLACE_TOWLOWER=1
16383 else
16384 for ac_func in towlower
16385 do :
16386 ac_fn_c_check_func "$LINENO" "towlower" "ac_cv_func_towlower"
16387 if test "x$ac_cv_func_towlower" = x""yes; then :
16388 cat >>confdefs.h <<_ACEOF
16389 #define HAVE_TOWLOWER 1
16390 _ACEOF
16391
16392 fi
16393 done
16394
16395 if test $ac_cv_func_towlower = yes; then
16396 REPLACE_TOWLOWER=0
16397 else
16398 ac_fn_c_check_decl "$LINENO" "towlower" "ac_cv_have_decl_towlower" "/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
16399 included before <wchar.h>.
16400 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
16401 must be included before <wchar.h>. */
16402 #include <stddef.h>
16403 #include <stdio.h>
16404 #include <time.h>
16405 #include <wchar.h>
16406 #if HAVE_WCTYPE_H
16407 # include <wctype.h>
16408 #endif
16409
16410 "
16411 if test "x$ac_cv_have_decl_towlower" = x""yes; then :
16412 ac_have_decl=1
16413 else
16414 ac_have_decl=0
16415 fi
16416
16417 cat >>confdefs.h <<_ACEOF
16418 #define HAVE_DECL_TOWLOWER $ac_have_decl
16419 _ACEOF
16420
16421 if test $ac_cv_have_decl_towlower = yes; then
16422 REPLACE_TOWLOWER=1
16423 else
16424 REPLACE_TOWLOWER=0
16425 fi
16426 fi
16427 fi
16428
16429
16430 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_TOWLOWER = 1; then
16431 :
16432 fi
16433
16434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
16435 $as_echo_n "checking for wctype_t... " >&6; }
16436 if test "${gl_cv_type_wctype_t+set}" = set; then :
16437 $as_echo_n "(cached) " >&6
16438 else
16439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16440 /* end confdefs.h. */
16441 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
16442 included before <wchar.h>.
16443 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
16444 must be included before <wchar.h>. */
16445 #include <stddef.h>
16446 #include <stdio.h>
16447 #include <time.h>
16448 #include <wchar.h>
16449 #if HAVE_WCTYPE_H
16450 # include <wctype.h>
16451 #endif
16452 wctype_t a;
16453
16454 int
16455 main ()
16456 {
16457
16458 ;
16459 return 0;
16460 }
16461 _ACEOF
16462 if ac_fn_c_try_compile "$LINENO"; then :
16463 gl_cv_type_wctype_t=yes
16464 else
16465 gl_cv_type_wctype_t=no
16466 fi
16467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16468
16469 fi
16470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
16471 $as_echo "$gl_cv_type_wctype_t" >&6; }
16472 if test $gl_cv_type_wctype_t = no; then
16473 HAVE_WCTYPE_T=0
16474 fi
16475
16476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
16477 $as_echo_n "checking for wctrans_t... " >&6; }
16478 if test "${gl_cv_type_wctrans_t+set}" = set; then :
16479 $as_echo_n "(cached) " >&6
16480 else
16481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16482 /* end confdefs.h. */
16483 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
16484 included before <wchar.h>.
16485 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
16486 must be included before <wchar.h>. */
16487 #include <stddef.h>
16488 #include <stdio.h>
16489 #include <time.h>
16490 #include <wchar.h>
16491 #include <wctype.h>
16492 wctrans_t a;
16493
16494 int
16495 main ()
16496 {
16497
16498 ;
16499 return 0;
16500 }
16501 _ACEOF
16502 if ac_fn_c_try_compile "$LINENO"; then :
16503 gl_cv_type_wctrans_t=yes
16504 else
16505 gl_cv_type_wctrans_t=no
16506 fi
16507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16508
16509 fi
16510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
16511 $as_echo "$gl_cv_type_wctrans_t" >&6; }
16512 if test $gl_cv_type_wctrans_t = no; then
16513 HAVE_WCTRANS_T=0
16514 fi
16515
16516
16517 for gl_func in wctype iswctype wctrans towctrans ; do
16518 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
16519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
16520 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
16521 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
16522 $as_echo_n "(cached) " >&6
16523 else
16524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16525 /* end confdefs.h. */
16526
16527 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
16528 <wchar.h>.
16529 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16530 included before <wchar.h>. */
16531 #if !(defined __GLIBC__ && !defined __UCLIBC__)
16532 # include <stddef.h>
16533 # include <stdio.h>
16534 # include <time.h>
16535 # include <wchar.h>
16536 #endif
16537 #include <wctype.h>
16538
16539 int
16540 main ()
16541 {
16542 #undef $gl_func
16543 (void) $gl_func;
16544 ;
16545 return 0;
16546 }
16547 _ACEOF
16548 if ac_fn_c_try_compile "$LINENO"; then :
16549 eval "$as_gl_Symbol=yes"
16550 else
16551 eval "$as_gl_Symbol=no"
16552 fi
16553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16554 fi
16555 eval ac_res=\$$as_gl_Symbol
16556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16557 $as_echo "$ac_res" >&6; }
16558 eval as_val=\$$as_gl_Symbol
16559 if test "x$as_val" = x""yes; then :
16560 cat >>confdefs.h <<_ACEOF
16561 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
16562 _ACEOF
16563
16564 eval ac_cv_have_decl_$gl_func=yes
16565 fi
16566 done
16567
16568
16569 # End of code from modules
16570
16571
16572
16573
16574
16575
16576
16577
16578
16579 gltests_libdeps=
16580 gltests_ltlibdeps=
16581
16582
16583
16584
16585
16586
16587
16588
16589
16590 gl_source_base='tests'
16591 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
16592
16593 gl_module_indicator_condition=$gltests_WITNESS
16594
16595
16596
16597
16598
16599
16600
16601
16602
16603 LIBGNU_LIBDEPS="$gl_libdeps"
16604
16605 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
16606
16607
16608
16609 # We don't use automake, but gnulib does. This line lets us generate
16610 # its Makefile.in.
16611 am__api_version='1.11'
16612
16613 # Find a good install program. We prefer a C program (faster),
16614 # so one script is as good as another. But avoid the broken or
16615 # incompatible versions:
16616 # SysV /etc/install, /usr/sbin/install
16617 # SunOS /usr/etc/install
16618 # IRIX /sbin/install
16619 # AIX /bin/install
16620 # AmigaOS /C/install, which installs bootblocks on floppy discs
16621 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
16622 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
16623 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
16624 # OS/2's system install, which has a completely different semantic
16625 # ./install, which can be erroneously created by make from ./install.sh.
16626 # Reject install programs that cannot install multiple files.
16627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
16628 $as_echo_n "checking for a BSD-compatible install... " >&6; }
16629 if test -z "$INSTALL"; then
16630 if test "${ac_cv_path_install+set}" = set; then :
16631 $as_echo_n "(cached) " >&6
16632 else
16633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16634 for as_dir in $PATH
16635 do
16636 IFS=$as_save_IFS
16637 test -z "$as_dir" && as_dir=.
16638 # Account for people who put trailing slashes in PATH elements.
16639 case $as_dir/ in #((
16640 ./ | .// | /[cC]/* | \
16641 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
16642 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
16643 /usr/ucb/* ) ;;
16644 *)
16645 # OSF1 and SCO ODT 3.0 have their own names for install.
16646 # Don't use installbsd from OSF since it installs stuff as root
16647 # by default.
16648 for ac_prog in ginstall scoinst install; do
16649 for ac_exec_ext in '' $ac_executable_extensions; do
16650 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
16651 if test $ac_prog = install &&
16652 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
16653 # AIX install. It has an incompatible calling convention.
16654 :
16655 elif test $ac_prog = install &&
16656 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
16657 # program-specific install script used by HP pwplus--don't use.
16658 :
16659 else
16660 rm -rf conftest.one conftest.two conftest.dir
16661 echo one > conftest.one
16662 echo two > conftest.two
16663 mkdir conftest.dir
16664 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
16665 test -s conftest.one && test -s conftest.two &&
16666 test -s conftest.dir/conftest.one &&
16667 test -s conftest.dir/conftest.two
16668 then
16669 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
16670 break 3
16671 fi
16672 fi
16673 fi
16674 done
16675 done
16676 ;;
16677 esac
16678
16679 done
16680 IFS=$as_save_IFS
16681
16682 rm -rf conftest.one conftest.two conftest.dir
16683
16684 fi
16685 if test "${ac_cv_path_install+set}" = set; then
16686 INSTALL=$ac_cv_path_install
16687 else
16688 # As a last resort, use the slow shell script. Don't cache a
16689 # value for INSTALL within a source directory, because that will
16690 # break other packages using the cache if that directory is
16691 # removed, or if the value is a relative name.
16692 INSTALL=$ac_install_sh
16693 fi
16694 fi
16695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
16696 $as_echo "$INSTALL" >&6; }
16697
16698 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
16699 # It thinks the first close brace ends the variable substitution.
16700 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
16701
16702 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
16703
16704 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
16705
16706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
16707 $as_echo_n "checking whether build environment is sane... " >&6; }
16708 # Just in case
16709 sleep 1
16710 echo timestamp > conftest.file
16711 # Reject unsafe characters in $srcdir or the absolute working directory
16712 # name. Accept space and tab only in the latter.
16713 am_lf='
16714 '
16715 case `pwd` in
16716 *[\\\"\#\$\&\'\`$am_lf]*)
16717 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
16718 esac
16719 case $srcdir in
16720 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
16721 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
16722 esac
16723
16724 # Do `set' in a subshell so we don't clobber the current shell's
16725 # arguments. Must try -L first in case configure is actually a
16726 # symlink; some systems play weird games with the mod time of symlinks
16727 # (eg FreeBSD returns the mod time of the symlink's containing
16728 # directory).
16729 if (
16730 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
16731 if test "$*" = "X"; then
16732 # -L didn't work.
16733 set X `ls -t "$srcdir/configure" conftest.file`
16734 fi
16735 rm -f conftest.file
16736 if test "$*" != "X $srcdir/configure conftest.file" \
16737 && test "$*" != "X conftest.file $srcdir/configure"; then
16738
16739 # If neither matched, then we have a broken ls. This can happen
16740 # if, for instance, CONFIG_SHELL is bash and it inherits a
16741 # broken ls alias from the environment. This has actually
16742 # happened. Such a system could not be considered "sane".
16743 as_fn_error "ls -t appears to fail. Make sure there is not a broken
16744 alias in your environment" "$LINENO" 5
16745 fi
16746
16747 test "$2" = conftest.file
16748 )
16749 then
16750 # Ok.
16751 :
16752 else
16753 as_fn_error "newly created file is older than distributed files!
16754 Check your system clock" "$LINENO" 5
16755 fi
16756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16757 $as_echo "yes" >&6; }
16758 test "$program_prefix" != NONE &&
16759 program_transform_name="s&^&$program_prefix&;$program_transform_name"
16760 # Use a double $ so make ignores it.
16761 test "$program_suffix" != NONE &&
16762 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
16763 # Double any \ or $.
16764 # By default was `s,x,x', remove it if useless.
16765 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
16766 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
16767
16768 # expand $ac_aux_dir to an absolute path
16769 am_aux_dir=`cd $ac_aux_dir && pwd`
16770
16771 if test x"${MISSING+set}" != xset; then
16772 case $am_aux_dir in
16773 *\ * | *\ *)
16774 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
16775 *)
16776 MISSING="\${SHELL} $am_aux_dir/missing" ;;
16777 esac
16778 fi
16779 # Use eval to expand $SHELL
16780 if eval "$MISSING --run true"; then
16781 am_missing_run="$MISSING --run "
16782 else
16783 am_missing_run=
16784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
16785 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
16786 fi
16787
16788 if test x"${install_sh}" != xset; then
16789 case $am_aux_dir in
16790 *\ * | *\ *)
16791 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
16792 *)
16793 install_sh="\${SHELL} $am_aux_dir/install-sh"
16794 esac
16795 fi
16796
16797 # Installed binaries are usually stripped using `strip' when the user
16798 # run `make install-strip'. However `strip' might not be the right
16799 # tool to use in cross-compilation environments, therefore Automake
16800 # will honor the `STRIP' environment variable to overrule this program.
16801 if test "$cross_compiling" != no; then
16802 if test -n "$ac_tool_prefix"; then
16803 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
16804 set dummy ${ac_tool_prefix}strip; ac_word=$2
16805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16806 $as_echo_n "checking for $ac_word... " >&6; }
16807 if test "${ac_cv_prog_STRIP+set}" = set; then :
16808 $as_echo_n "(cached) " >&6
16809 else
16810 if test -n "$STRIP"; then
16811 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
16812 else
16813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16814 for as_dir in $PATH
16815 do
16816 IFS=$as_save_IFS
16817 test -z "$as_dir" && as_dir=.
16818 for ac_exec_ext in '' $ac_executable_extensions; do
16819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16820 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
16821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16822 break 2
16823 fi
16824 done
16825 done
16826 IFS=$as_save_IFS
16827
16828 fi
16829 fi
16830 STRIP=$ac_cv_prog_STRIP
16831 if test -n "$STRIP"; then
16832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
16833 $as_echo "$STRIP" >&6; }
16834 else
16835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16836 $as_echo "no" >&6; }
16837 fi
16838
16839
16840 fi
16841 if test -z "$ac_cv_prog_STRIP"; then
16842 ac_ct_STRIP=$STRIP
16843 # Extract the first word of "strip", so it can be a program name with args.
16844 set dummy strip; ac_word=$2
16845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16846 $as_echo_n "checking for $ac_word... " >&6; }
16847 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
16848 $as_echo_n "(cached) " >&6
16849 else
16850 if test -n "$ac_ct_STRIP"; then
16851 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
16852 else
16853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16854 for as_dir in $PATH
16855 do
16856 IFS=$as_save_IFS
16857 test -z "$as_dir" && as_dir=.
16858 for ac_exec_ext in '' $ac_executable_extensions; do
16859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16860 ac_cv_prog_ac_ct_STRIP="strip"
16861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16862 break 2
16863 fi
16864 done
16865 done
16866 IFS=$as_save_IFS
16867
16868 fi
16869 fi
16870 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
16871 if test -n "$ac_ct_STRIP"; then
16872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
16873 $as_echo "$ac_ct_STRIP" >&6; }
16874 else
16875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16876 $as_echo "no" >&6; }
16877 fi
16878
16879 if test "x$ac_ct_STRIP" = x; then
16880 STRIP=":"
16881 else
16882 case $cross_compiling:$ac_tool_warned in
16883 yes:)
16884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16885 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16886 ac_tool_warned=yes ;;
16887 esac
16888 STRIP=$ac_ct_STRIP
16889 fi
16890 else
16891 STRIP="$ac_cv_prog_STRIP"
16892 fi
16893
16894 fi
16895 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
16896
16897 mkdir_p="$MKDIR_P"
16898 case $mkdir_p in
16899 [\\/$]* | ?:[\\/]*) ;;
16900 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
16901 esac
16902
16903 for ac_prog in gawk mawk nawk awk
16904 do
16905 # Extract the first word of "$ac_prog", so it can be a program name with args.
16906 set dummy $ac_prog; ac_word=$2
16907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16908 $as_echo_n "checking for $ac_word... " >&6; }
16909 if test "${ac_cv_prog_AWK+set}" = set; then :
16910 $as_echo_n "(cached) " >&6
16911 else
16912 if test -n "$AWK"; then
16913 ac_cv_prog_AWK="$AWK" # Let the user override the test.
16914 else
16915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16916 for as_dir in $PATH
16917 do
16918 IFS=$as_save_IFS
16919 test -z "$as_dir" && as_dir=.
16920 for ac_exec_ext in '' $ac_executable_extensions; do
16921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16922 ac_cv_prog_AWK="$ac_prog"
16923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16924 break 2
16925 fi
16926 done
16927 done
16928 IFS=$as_save_IFS
16929
16930 fi
16931 fi
16932 AWK=$ac_cv_prog_AWK
16933 if test -n "$AWK"; then
16934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
16935 $as_echo "$AWK" >&6; }
16936 else
16937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16938 $as_echo "no" >&6; }
16939 fi
16940
16941
16942 test -n "$AWK" && break
16943 done
16944
16945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
16946 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
16947 set x ${MAKE-make}
16948 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16949 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
16950 $as_echo_n "(cached) " >&6
16951 else
16952 cat >conftest.make <<\_ACEOF
16953 SHELL = /bin/sh
16954 all:
16955 @echo '@@@%%%=$(MAKE)=@@@%%%'
16956 _ACEOF
16957 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
16958 case `${MAKE-make} -f conftest.make 2>/dev/null` in
16959 *@@@%%%=?*=@@@%%%*)
16960 eval ac_cv_prog_make_${ac_make}_set=yes;;
16961 *)
16962 eval ac_cv_prog_make_${ac_make}_set=no;;
16963 esac
16964 rm -f conftest.make
16965 fi
16966 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16968 $as_echo "yes" >&6; }
16969 SET_MAKE=
16970 else
16971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16972 $as_echo "no" >&6; }
16973 SET_MAKE="MAKE=${MAKE-make}"
16974 fi
16975
16976 rm -rf .tst 2>/dev/null
16977 mkdir .tst 2>/dev/null
16978 if test -d .tst; then
16979 am__leading_dot=.
16980 else
16981 am__leading_dot=_
16982 fi
16983 rmdir .tst 2>/dev/null
16984
16985 DEPDIR="${am__leading_dot}deps"
16986
16987 ac_config_commands="$ac_config_commands depfiles"
16988
16989
16990 am_make=${MAKE-make}
16991 cat > confinc << 'END'
16992 am__doit:
16993 @echo this is the am__doit target
16994 .PHONY: am__doit
16995 END
16996 # If we don't find an include directive, just comment out the code.
16997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
16998 $as_echo_n "checking for style of include used by $am_make... " >&6; }
16999 am__include="#"
17000 am__quote=
17001 _am_result=none
17002 # First try GNU make style include.
17003 echo "include confinc" > confmf
17004 # Ignore all kinds of additional output from `make'.
17005 case `$am_make -s -f confmf 2> /dev/null` in #(
17006 *the\ am__doit\ target*)
17007 am__include=include
17008 am__quote=
17009 _am_result=GNU
17010 ;;
17011 esac
17012 # Now try BSD make style include.
17013 if test "$am__include" = "#"; then
17014 echo '.include "confinc"' > confmf
17015 case `$am_make -s -f confmf 2> /dev/null` in #(
17016 *the\ am__doit\ target*)
17017 am__include=.include
17018 am__quote="\""
17019 _am_result=BSD
17020 ;;
17021 esac
17022 fi
17023
17024
17025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
17026 $as_echo "$_am_result" >&6; }
17027 rm -f confinc confmf
17028
17029 # Check whether --enable-dependency-tracking was given.
17030 if test "${enable_dependency_tracking+set}" = set; then :
17031 enableval=$enable_dependency_tracking;
17032 fi
17033
17034 if test "x$enable_dependency_tracking" != xno; then
17035 am_depcomp="$ac_aux_dir/depcomp"
17036 AMDEPBACKSLASH='\'
17037 fi
17038 if test "x$enable_dependency_tracking" != xno; then
17039 AMDEP_TRUE=
17040 AMDEP_FALSE='#'
17041 else
17042 AMDEP_TRUE='#'
17043 AMDEP_FALSE=
17044 fi
17045
17046
17047 if test "`cd $srcdir && pwd`" != "`pwd`"; then
17048 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
17049 # is not polluted with repeated "-I."
17050 am__isrc=' -I$(srcdir)'
17051 # test to see if srcdir already configured
17052 if test -f $srcdir/config.status; then
17053 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
17054 fi
17055 fi
17056
17057 # test whether we have cygpath
17058 if test -z "$CYGPATH_W"; then
17059 if (cygpath --version) >/dev/null 2>/dev/null; then
17060 CYGPATH_W='cygpath -w'
17061 else
17062 CYGPATH_W=echo
17063 fi
17064 fi
17065
17066
17067 # Define the identity of the package.
17068 PACKAGE=libgnu
17069 VERSION=UNUSED-VERSION
17070
17071
17072 # Some tools Automake needs.
17073
17074 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
17075
17076
17077 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
17078
17079
17080 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
17081
17082
17083 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
17084
17085
17086 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
17087
17088 # We need awk for the "check" target. The system "awk" is bad on
17089 # some platforms.
17090 # Always define AMTAR for backward compatibility.
17091
17092 AMTAR=${AMTAR-"${am_missing_run}tar"}
17093
17094 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
17095
17096
17097
17098
17099 depcc="$CC" am_compiler_list=
17100
17101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
17102 $as_echo_n "checking dependency style of $depcc... " >&6; }
17103 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
17104 $as_echo_n "(cached) " >&6
17105 else
17106 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
17107 # We make a subdir and do the tests there. Otherwise we can end up
17108 # making bogus files that we don't know about and never remove. For
17109 # instance it was reported that on HP-UX the gcc test will end up
17110 # making a dummy file named `D' -- because `-MD' means `put the output
17111 # in D'.
17112 mkdir conftest.dir
17113 # Copy depcomp to subdir because otherwise we won't find it if we're
17114 # using a relative directory.
17115 cp "$am_depcomp" conftest.dir
17116 cd conftest.dir
17117 # We will build objects and dependencies in a subdirectory because
17118 # it helps to detect inapplicable dependency modes. For instance
17119 # both Tru64's cc and ICC support -MD to output dependencies as a
17120 # side effect of compilation, but ICC will put the dependencies in
17121 # the current directory while Tru64 will put them in the object
17122 # directory.
17123 mkdir sub
17124
17125 am_cv_CC_dependencies_compiler_type=none
17126 if test "$am_compiler_list" = ""; then
17127 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
17128 fi
17129 am__universal=false
17130 case " $depcc " in #(
17131 *\ -arch\ *\ -arch\ *) am__universal=true ;;
17132 esac
17133
17134 for depmode in $am_compiler_list; do
17135 # Setup a source with many dependencies, because some compilers
17136 # like to wrap large dependency lists on column 80 (with \), and
17137 # we should not choose a depcomp mode which is confused by this.
17138 #
17139 # We need to recreate these files for each test, as the compiler may
17140 # overwrite some of them when testing with obscure command lines.
17141 # This happens at least with the AIX C compiler.
17142 : > sub/conftest.c
17143 for i in 1 2 3 4 5 6; do
17144 echo '#include "conftst'$i'.h"' >> sub/conftest.c
17145 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
17146 # Solaris 8's {/usr,}/bin/sh.
17147 touch sub/conftst$i.h
17148 done
17149 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
17150
17151 # We check with `-c' and `-o' for the sake of the "dashmstdout"
17152 # mode. It turns out that the SunPro C++ compiler does not properly
17153 # handle `-M -o', and we need to detect this. Also, some Intel
17154 # versions had trouble with output in subdirs
17155 am__obj=sub/conftest.${OBJEXT-o}
17156 am__minus_obj="-o $am__obj"
17157 case $depmode in
17158 gcc)
17159 # This depmode causes a compiler race in universal mode.
17160 test "$am__universal" = false || continue
17161 ;;
17162 nosideeffect)
17163 # after this tag, mechanisms are not by side-effect, so they'll
17164 # only be used when explicitly requested
17165 if test "x$enable_dependency_tracking" = xyes; then
17166 continue
17167 else
17168 break
17169 fi
17170 ;;
17171 msvisualcpp | msvcmsys)
17172 # This compiler won't grok `-c -o', but also, the minuso test has
17173 # not run yet. These depmodes are late enough in the game, and
17174 # so weak that their functioning should not be impacted.
17175 am__obj=conftest.${OBJEXT-o}
17176 am__minus_obj=
17177 ;;
17178 none) break ;;
17179 esac
17180 if depmode=$depmode \
17181 source=sub/conftest.c object=$am__obj \
17182 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
17183 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
17184 >/dev/null 2>conftest.err &&
17185 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
17186 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
17187 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
17188 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
17189 # icc doesn't choke on unknown options, it will just issue warnings
17190 # or remarks (even with -Werror). So we grep stderr for any message
17191 # that says an option was ignored or not supported.
17192 # When given -MP, icc 7.0 and 7.1 complain thusly:
17193 # icc: Command line warning: ignoring option '-M'; no argument required
17194 # The diagnosis changed in icc 8.0:
17195 # icc: Command line remark: option '-MP' not supported
17196 if (grep 'ignoring option' conftest.err ||
17197 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
17198 am_cv_CC_dependencies_compiler_type=$depmode
17199 break
17200 fi
17201 fi
17202 done
17203
17204 cd ..
17205 rm -rf conftest.dir
17206 else
17207 am_cv_CC_dependencies_compiler_type=none
17208 fi
17209
17210 fi
17211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
17212 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
17213 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
17214
17215 if
17216 test "x$enable_dependency_tracking" != xno \
17217 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
17218 am__fastdepCC_TRUE=
17219 am__fastdepCC_FALSE='#'
17220 else
17221 am__fastdepCC_TRUE='#'
17222 am__fastdepCC_FALSE=
17223 fi
17224
17225
17226
17227
17228 # --------------------- #
17229 # Checks for programs. #
17230 # --------------------- #
17231
17232
17233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
17234 $as_echo_n "checking whether ln -s works... " >&6; }
17235 LN_S=$as_ln_s
17236 if test "$LN_S" = "ln -s"; then
17237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17238 $as_echo "yes" >&6; }
17239 else
17240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
17241 $as_echo "no, using $LN_S" >&6; }
17242 fi
17243
17244 if test -n "$ac_tool_prefix"; then
17245 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
17246 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
17247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17248 $as_echo_n "checking for $ac_word... " >&6; }
17249 if test "${ac_cv_prog_RANLIB+set}" = set; then :
17250 $as_echo_n "(cached) " >&6
17251 else
17252 if test -n "$RANLIB"; then
17253 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
17254 else
17255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17256 for as_dir in $PATH
17257 do
17258 IFS=$as_save_IFS
17259 test -z "$as_dir" && as_dir=.
17260 for ac_exec_ext in '' $ac_executable_extensions; do
17261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17262 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
17263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17264 break 2
17265 fi
17266 done
17267 done
17268 IFS=$as_save_IFS
17269
17270 fi
17271 fi
17272 RANLIB=$ac_cv_prog_RANLIB
17273 if test -n "$RANLIB"; then
17274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
17275 $as_echo "$RANLIB" >&6; }
17276 else
17277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17278 $as_echo "no" >&6; }
17279 fi
17280
17281
17282 fi
17283 if test -z "$ac_cv_prog_RANLIB"; then
17284 ac_ct_RANLIB=$RANLIB
17285 # Extract the first word of "ranlib", so it can be a program name with args.
17286 set dummy ranlib; ac_word=$2
17287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17288 $as_echo_n "checking for $ac_word... " >&6; }
17289 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
17290 $as_echo_n "(cached) " >&6
17291 else
17292 if test -n "$ac_ct_RANLIB"; then
17293 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
17294 else
17295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17296 for as_dir in $PATH
17297 do
17298 IFS=$as_save_IFS
17299 test -z "$as_dir" && as_dir=.
17300 for ac_exec_ext in '' $ac_executable_extensions; do
17301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17302 ac_cv_prog_ac_ct_RANLIB="ranlib"
17303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17304 break 2
17305 fi
17306 done
17307 done
17308 IFS=$as_save_IFS
17309
17310 fi
17311 fi
17312 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
17313 if test -n "$ac_ct_RANLIB"; then
17314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
17315 $as_echo "$ac_ct_RANLIB" >&6; }
17316 else
17317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17318 $as_echo "no" >&6; }
17319 fi
17320
17321 if test "x$ac_ct_RANLIB" = x; then
17322 RANLIB=":"
17323 else
17324 case $cross_compiling:$ac_tool_warned in
17325 yes:)
17326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17327 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17328 ac_tool_warned=yes ;;
17329 esac
17330 RANLIB=$ac_ct_RANLIB
17331 fi
17332 else
17333 RANLIB="$ac_cv_prog_RANLIB"
17334 fi
17335
17336
17337 if test -n "$ac_tool_prefix"; then
17338 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
17339 set dummy ${ac_tool_prefix}ar; ac_word=$2
17340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17341 $as_echo_n "checking for $ac_word... " >&6; }
17342 if test "${ac_cv_prog_AR+set}" = set; then :
17343 $as_echo_n "(cached) " >&6
17344 else
17345 if test -n "$AR"; then
17346 ac_cv_prog_AR="$AR" # Let the user override the test.
17347 else
17348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17349 for as_dir in $PATH
17350 do
17351 IFS=$as_save_IFS
17352 test -z "$as_dir" && as_dir=.
17353 for ac_exec_ext in '' $ac_executable_extensions; do
17354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17355 ac_cv_prog_AR="${ac_tool_prefix}ar"
17356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17357 break 2
17358 fi
17359 done
17360 done
17361 IFS=$as_save_IFS
17362
17363 fi
17364 fi
17365 AR=$ac_cv_prog_AR
17366 if test -n "$AR"; then
17367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
17368 $as_echo "$AR" >&6; }
17369 else
17370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17371 $as_echo "no" >&6; }
17372 fi
17373
17374
17375 fi
17376 if test -z "$ac_cv_prog_AR"; then
17377 ac_ct_AR=$AR
17378 # Extract the first word of "ar", so it can be a program name with args.
17379 set dummy ar; ac_word=$2
17380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17381 $as_echo_n "checking for $ac_word... " >&6; }
17382 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
17383 $as_echo_n "(cached) " >&6
17384 else
17385 if test -n "$ac_ct_AR"; then
17386 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
17387 else
17388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17389 for as_dir in $PATH
17390 do
17391 IFS=$as_save_IFS
17392 test -z "$as_dir" && as_dir=.
17393 for ac_exec_ext in '' $ac_executable_extensions; do
17394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17395 ac_cv_prog_ac_ct_AR="ar"
17396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17397 break 2
17398 fi
17399 done
17400 done
17401 IFS=$as_save_IFS
17402
17403 fi
17404 fi
17405 ac_ct_AR=$ac_cv_prog_ac_ct_AR
17406 if test -n "$ac_ct_AR"; then
17407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
17408 $as_echo "$ac_ct_AR" >&6; }
17409 else
17410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17411 $as_echo "no" >&6; }
17412 fi
17413
17414 if test "x$ac_ct_AR" = x; then
17415 AR=""
17416 else
17417 case $cross_compiling:$ac_tool_warned in
17418 yes:)
17419 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17420 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17421 ac_tool_warned=yes ;;
17422 esac
17423 AR=$ac_ct_AR
17424 fi
17425 else
17426 AR="$ac_cv_prog_AR"
17427 fi
17428
17429
17430 # ---------------------- #
17431 # Checks for libraries. #
17432 # ---------------------- #
17433
17434 ac_config_files="$ac_config_files Makefile import/Makefile"
17435
17436 ac_config_commands="$ac_config_commands default"
17437
17438 cat >confcache <<\_ACEOF
17439 # This file is a shell script that caches the results of configure
17440 # tests run on this system so they can be shared between configure
17441 # scripts and configure runs, see configure's option --config-cache.
17442 # It is not useful on other systems. If it contains results you don't
17443 # want to keep, you may remove or edit it.
17444 #
17445 # config.status only pays attention to the cache file if you give it
17446 # the --recheck option to rerun configure.
17447 #
17448 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17449 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17450 # following values.
17451
17452 _ACEOF
17453
17454 # The following way of writing the cache mishandles newlines in values,
17455 # but we know of no workaround that is simple, portable, and efficient.
17456 # So, we kill variables containing newlines.
17457 # Ultrix sh set writes to stderr and can't be redirected directly,
17458 # and sets the high bit in the cache file unless we assign to the vars.
17459 (
17460 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17461 eval ac_val=\$$ac_var
17462 case $ac_val in #(
17463 *${as_nl}*)
17464 case $ac_var in #(
17465 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17466 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17467 esac
17468 case $ac_var in #(
17469 _ | IFS | as_nl) ;; #(
17470 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17471 *) { eval $ac_var=; unset $ac_var;} ;;
17472 esac ;;
17473 esac
17474 done
17475
17476 (set) 2>&1 |
17477 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17478 *${as_nl}ac_space=\ *)
17479 # `set' does not quote correctly, so add quotes: double-quote
17480 # substitution turns \\\\ into \\, and sed turns \\ into \.
17481 sed -n \
17482 "s/'/'\\\\''/g;
17483 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17484 ;; #(
17485 *)
17486 # `set' quotes correctly as required by POSIX, so do not add quotes.
17487 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17488 ;;
17489 esac |
17490 sort
17491 ) |
17492 sed '
17493 /^ac_cv_env_/b end
17494 t clear
17495 :clear
17496 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17497 t end
17498 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17499 :end' >>confcache
17500 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17501 if test -w "$cache_file"; then
17502 test "x$cache_file" != "x/dev/null" &&
17503 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17504 $as_echo "$as_me: updating cache $cache_file" >&6;}
17505 cat confcache >$cache_file
17506 else
17507 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17508 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17509 fi
17510 fi
17511 rm -f confcache
17512
17513 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17514 # Let make expand exec_prefix.
17515 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17516
17517 DEFS=-DHAVE_CONFIG_H
17518
17519 ac_libobjs=
17520 ac_ltlibobjs=
17521 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17522 # 1. Remove the extension, and $U if already installed.
17523 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17524 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17525 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17526 # will be set to the directory where LIBOBJS objects are built.
17527 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17528 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17529 done
17530 LIBOBJS=$ac_libobjs
17531
17532 LTLIBOBJS=$ac_ltlibobjs
17533
17534
17535 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17536 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
17537 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17538 fi
17539 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
17540 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
17541 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17542 fi
17543 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
17544 as_fn_error "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
17545 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17546 fi
17547 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
17548 as_fn_error "conditional \"GL_GENERATE_ERRNO_H\" was never defined.
17549 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17550 fi
17551 if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
17552 as_fn_error "conditional \"GL_GENERATE_FLOAT_H\" was never defined.
17553 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17554 fi
17555 if test -z "${GL_GENERATE_FNMATCH_H_TRUE}" && test -z "${GL_GENERATE_FNMATCH_H_FALSE}"; then
17556 as_fn_error "conditional \"GL_GENERATE_FNMATCH_H\" was never defined.
17557 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17558 fi
17559 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
17560 as_fn_error "conditional \"GL_GENERATE_STDINT_H\" was never defined.
17561 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17562 fi
17563
17564
17565 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
17566 as_fn_error "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
17567 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17568 fi
17569 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
17570 as_fn_error "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
17571 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17572 fi
17573
17574 gl_libobjs=
17575 gl_ltlibobjs=
17576 if test -n "$gl_LIBOBJS"; then
17577 # Remove the extension.
17578 sed_drop_objext='s/\.o$//;s/\.obj$//'
17579 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
17580 gl_libobjs="$gl_libobjs $i.$ac_objext"
17581 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
17582 done
17583 fi
17584 gl_LIBOBJS=$gl_libobjs
17585
17586 gl_LTLIBOBJS=$gl_ltlibobjs
17587
17588
17589
17590 gltests_libobjs=
17591 gltests_ltlibobjs=
17592 if test -n "$gltests_LIBOBJS"; then
17593 # Remove the extension.
17594 sed_drop_objext='s/\.o$//;s/\.obj$//'
17595 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
17596 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
17597 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
17598 done
17599 fi
17600 gltests_LIBOBJS=$gltests_libobjs
17601
17602 gltests_LTLIBOBJS=$gltests_ltlibobjs
17603
17604
17605 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17606 as_fn_error "conditional \"AMDEP\" was never defined.
17607 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17608 fi
17609 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17610 as_fn_error "conditional \"am__fastdepCC\" was never defined.
17611 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17612 fi
17613 if test -n "$EXEEXT"; then
17614 am__EXEEXT_TRUE=
17615 am__EXEEXT_FALSE='#'
17616 else
17617 am__EXEEXT_TRUE='#'
17618 am__EXEEXT_FALSE=
17619 fi
17620
17621
17622 : ${CONFIG_STATUS=./config.status}
17623 ac_write_fail=0
17624 ac_clean_files_save=$ac_clean_files
17625 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17626 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17627 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17628 as_write_fail=0
17629 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17630 #! $SHELL
17631 # Generated by $as_me.
17632 # Run this file to recreate the current configuration.
17633 # Compiler output produced by configure, useful for debugging
17634 # configure, is in config.log if it exists.
17635
17636 debug=false
17637 ac_cs_recheck=false
17638 ac_cs_silent=false
17639
17640 SHELL=\${CONFIG_SHELL-$SHELL}
17641 export SHELL
17642 _ASEOF
17643 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17644 ## -------------------- ##
17645 ## M4sh Initialization. ##
17646 ## -------------------- ##
17647
17648 # Be more Bourne compatible
17649 DUALCASE=1; export DUALCASE # for MKS sh
17650 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17651 emulate sh
17652 NULLCMD=:
17653 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17654 # is contrary to our usage. Disable this feature.
17655 alias -g '${1+"$@"}'='"$@"'
17656 setopt NO_GLOB_SUBST
17657 else
17658 case `(set -o) 2>/dev/null` in #(
17659 *posix*) :
17660 set -o posix ;; #(
17661 *) :
17662 ;;
17663 esac
17664 fi
17665
17666
17667 as_nl='
17668 '
17669 export as_nl
17670 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17671 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17672 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17673 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17674 # Prefer a ksh shell builtin over an external printf program on Solaris,
17675 # but without wasting forks for bash or zsh.
17676 if test -z "$BASH_VERSION$ZSH_VERSION" \
17677 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17678 as_echo='print -r --'
17679 as_echo_n='print -rn --'
17680 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17681 as_echo='printf %s\n'
17682 as_echo_n='printf %s'
17683 else
17684 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17685 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17686 as_echo_n='/usr/ucb/echo -n'
17687 else
17688 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17689 as_echo_n_body='eval
17690 arg=$1;
17691 case $arg in #(
17692 *"$as_nl"*)
17693 expr "X$arg" : "X\\(.*\\)$as_nl";
17694 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17695 esac;
17696 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17697 '
17698 export as_echo_n_body
17699 as_echo_n='sh -c $as_echo_n_body as_echo'
17700 fi
17701 export as_echo_body
17702 as_echo='sh -c $as_echo_body as_echo'
17703 fi
17704
17705 # The user is always right.
17706 if test "${PATH_SEPARATOR+set}" != set; then
17707 PATH_SEPARATOR=:
17708 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17709 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17710 PATH_SEPARATOR=';'
17711 }
17712 fi
17713
17714
17715 # IFS
17716 # We need space, tab and new line, in precisely that order. Quoting is
17717 # there to prevent editors from complaining about space-tab.
17718 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17719 # splitting by setting IFS to empty value.)
17720 IFS=" "" $as_nl"
17721
17722 # Find who we are. Look in the path if we contain no directory separator.
17723 case $0 in #((
17724 *[\\/]* ) as_myself=$0 ;;
17725 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17726 for as_dir in $PATH
17727 do
17728 IFS=$as_save_IFS
17729 test -z "$as_dir" && as_dir=.
17730 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17731 done
17732 IFS=$as_save_IFS
17733
17734 ;;
17735 esac
17736 # We did not find ourselves, most probably we were run as `sh COMMAND'
17737 # in which case we are not to be found in the path.
17738 if test "x$as_myself" = x; then
17739 as_myself=$0
17740 fi
17741 if test ! -f "$as_myself"; then
17742 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17743 exit 1
17744 fi
17745
17746 # Unset variables that we do not need and which cause bugs (e.g. in
17747 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17748 # suppresses any "Segmentation fault" message there. '((' could
17749 # trigger a bug in pdksh 5.2.14.
17750 for as_var in BASH_ENV ENV MAIL MAILPATH
17751 do eval test x\${$as_var+set} = xset \
17752 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17753 done
17754 PS1='$ '
17755 PS2='> '
17756 PS4='+ '
17757
17758 # NLS nuisances.
17759 LC_ALL=C
17760 export LC_ALL
17761 LANGUAGE=C
17762 export LANGUAGE
17763
17764 # CDPATH.
17765 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17766
17767
17768 # as_fn_error ERROR [LINENO LOG_FD]
17769 # ---------------------------------
17770 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17771 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17772 # script with status $?, using 1 if that was 0.
17773 as_fn_error ()
17774 {
17775 as_status=$?; test $as_status -eq 0 && as_status=1
17776 if test "$3"; then
17777 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17778 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
17779 fi
17780 $as_echo "$as_me: error: $1" >&2
17781 as_fn_exit $as_status
17782 } # as_fn_error
17783
17784
17785 # as_fn_set_status STATUS
17786 # -----------------------
17787 # Set $? to STATUS, without forking.
17788 as_fn_set_status ()
17789 {
17790 return $1
17791 } # as_fn_set_status
17792
17793 # as_fn_exit STATUS
17794 # -----------------
17795 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17796 as_fn_exit ()
17797 {
17798 set +e
17799 as_fn_set_status $1
17800 exit $1
17801 } # as_fn_exit
17802
17803 # as_fn_unset VAR
17804 # ---------------
17805 # Portably unset VAR.
17806 as_fn_unset ()
17807 {
17808 { eval $1=; unset $1;}
17809 }
17810 as_unset=as_fn_unset
17811 # as_fn_append VAR VALUE
17812 # ----------------------
17813 # Append the text in VALUE to the end of the definition contained in VAR. Take
17814 # advantage of any shell optimizations that allow amortized linear growth over
17815 # repeated appends, instead of the typical quadratic growth present in naive
17816 # implementations.
17817 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17818 eval 'as_fn_append ()
17819 {
17820 eval $1+=\$2
17821 }'
17822 else
17823 as_fn_append ()
17824 {
17825 eval $1=\$$1\$2
17826 }
17827 fi # as_fn_append
17828
17829 # as_fn_arith ARG...
17830 # ------------------
17831 # Perform arithmetic evaluation on the ARGs, and store the result in the
17832 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17833 # must be portable across $(()) and expr.
17834 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17835 eval 'as_fn_arith ()
17836 {
17837 as_val=$(( $* ))
17838 }'
17839 else
17840 as_fn_arith ()
17841 {
17842 as_val=`expr "$@" || test $? -eq 1`
17843 }
17844 fi # as_fn_arith
17845
17846
17847 if expr a : '\(a\)' >/dev/null 2>&1 &&
17848 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17849 as_expr=expr
17850 else
17851 as_expr=false
17852 fi
17853
17854 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17855 as_basename=basename
17856 else
17857 as_basename=false
17858 fi
17859
17860 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17861 as_dirname=dirname
17862 else
17863 as_dirname=false
17864 fi
17865
17866 as_me=`$as_basename -- "$0" ||
17867 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17868 X"$0" : 'X\(//\)$' \| \
17869 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17870 $as_echo X/"$0" |
17871 sed '/^.*\/\([^/][^/]*\)\/*$/{
17872 s//\1/
17873 q
17874 }
17875 /^X\/\(\/\/\)$/{
17876 s//\1/
17877 q
17878 }
17879 /^X\/\(\/\).*/{
17880 s//\1/
17881 q
17882 }
17883 s/.*/./; q'`
17884
17885 # Avoid depending upon Character Ranges.
17886 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17887 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17888 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17889 as_cr_digits='0123456789'
17890 as_cr_alnum=$as_cr_Letters$as_cr_digits
17891
17892 ECHO_C= ECHO_N= ECHO_T=
17893 case `echo -n x` in #(((((
17894 -n*)
17895 case `echo 'xy\c'` in
17896 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17897 xy) ECHO_C='\c';;
17898 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17899 ECHO_T=' ';;
17900 esac;;
17901 *)
17902 ECHO_N='-n';;
17903 esac
17904
17905 rm -f conf$$ conf$$.exe conf$$.file
17906 if test -d conf$$.dir; then
17907 rm -f conf$$.dir/conf$$.file
17908 else
17909 rm -f conf$$.dir
17910 mkdir conf$$.dir 2>/dev/null
17911 fi
17912 if (echo >conf$$.file) 2>/dev/null; then
17913 if ln -s conf$$.file conf$$ 2>/dev/null; then
17914 as_ln_s='ln -s'
17915 # ... but there are two gotchas:
17916 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17917 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17918 # In both cases, we have to default to `cp -p'.
17919 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17920 as_ln_s='cp -p'
17921 elif ln conf$$.file conf$$ 2>/dev/null; then
17922 as_ln_s=ln
17923 else
17924 as_ln_s='cp -p'
17925 fi
17926 else
17927 as_ln_s='cp -p'
17928 fi
17929 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17930 rmdir conf$$.dir 2>/dev/null
17931
17932
17933 # as_fn_mkdir_p
17934 # -------------
17935 # Create "$as_dir" as a directory, including parents if necessary.
17936 as_fn_mkdir_p ()
17937 {
17938
17939 case $as_dir in #(
17940 -*) as_dir=./$as_dir;;
17941 esac
17942 test -d "$as_dir" || eval $as_mkdir_p || {
17943 as_dirs=
17944 while :; do
17945 case $as_dir in #(
17946 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17947 *) as_qdir=$as_dir;;
17948 esac
17949 as_dirs="'$as_qdir' $as_dirs"
17950 as_dir=`$as_dirname -- "$as_dir" ||
17951 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17952 X"$as_dir" : 'X\(//\)[^/]' \| \
17953 X"$as_dir" : 'X\(//\)$' \| \
17954 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17955 $as_echo X"$as_dir" |
17956 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17957 s//\1/
17958 q
17959 }
17960 /^X\(\/\/\)[^/].*/{
17961 s//\1/
17962 q
17963 }
17964 /^X\(\/\/\)$/{
17965 s//\1/
17966 q
17967 }
17968 /^X\(\/\).*/{
17969 s//\1/
17970 q
17971 }
17972 s/.*/./; q'`
17973 test -d "$as_dir" && break
17974 done
17975 test -z "$as_dirs" || eval "mkdir $as_dirs"
17976 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
17977
17978
17979 } # as_fn_mkdir_p
17980 if mkdir -p . 2>/dev/null; then
17981 as_mkdir_p='mkdir -p "$as_dir"'
17982 else
17983 test -d ./-p && rmdir ./-p
17984 as_mkdir_p=false
17985 fi
17986
17987 if test -x / >/dev/null 2>&1; then
17988 as_test_x='test -x'
17989 else
17990 if ls -dL / >/dev/null 2>&1; then
17991 as_ls_L_option=L
17992 else
17993 as_ls_L_option=
17994 fi
17995 as_test_x='
17996 eval sh -c '\''
17997 if test -d "$1"; then
17998 test -d "$1/.";
17999 else
18000 case $1 in #(
18001 -*)set "./$1";;
18002 esac;
18003 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
18004 ???[sx]*):;;*)false;;esac;fi
18005 '\'' sh
18006 '
18007 fi
18008 as_executable_p=$as_test_x
18009
18010 # Sed expression to map a string onto a valid CPP name.
18011 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18012
18013 # Sed expression to map a string onto a valid variable name.
18014 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18015
18016
18017 exec 6>&1
18018 ## ----------------------------------- ##
18019 ## Main body of $CONFIG_STATUS script. ##
18020 ## ----------------------------------- ##
18021 _ASEOF
18022 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18023
18024 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18025 # Save the log message, to keep $0 and so on meaningful, and to
18026 # report actual input values of CONFIG_FILES etc. instead of their
18027 # values after options handling.
18028 ac_log="
18029 This file was extended by $as_me, which was
18030 generated by GNU Autoconf 2.64. Invocation command line was
18031
18032 CONFIG_FILES = $CONFIG_FILES
18033 CONFIG_HEADERS = $CONFIG_HEADERS
18034 CONFIG_LINKS = $CONFIG_LINKS
18035 CONFIG_COMMANDS = $CONFIG_COMMANDS
18036 $ $0 $@
18037
18038 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18039 "
18040
18041 _ACEOF
18042
18043 case $ac_config_files in *"
18044 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18045 esac
18046
18047 case $ac_config_headers in *"
18048 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18049 esac
18050
18051
18052 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18053 # Files that config.status was made for.
18054 config_files="$ac_config_files"
18055 config_headers="$ac_config_headers"
18056 config_commands="$ac_config_commands"
18057
18058 _ACEOF
18059
18060 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18061 ac_cs_usage="\
18062 \`$as_me' instantiates files and other configuration actions
18063 from templates according to the current configuration. Unless the files
18064 and actions are specified as TAGs, all are instantiated by default.
18065
18066 Usage: $0 [OPTION]... [TAG]...
18067
18068 -h, --help print this help, then exit
18069 -V, --version print version number and configuration settings, then exit
18070 -q, --quiet, --silent
18071 do not print progress messages
18072 -d, --debug don't remove temporary files
18073 --recheck update $as_me by reconfiguring in the same conditions
18074 --file=FILE[:TEMPLATE]
18075 instantiate the configuration file FILE
18076 --header=FILE[:TEMPLATE]
18077 instantiate the configuration header FILE
18078
18079 Configuration files:
18080 $config_files
18081
18082 Configuration headers:
18083 $config_headers
18084
18085 Configuration commands:
18086 $config_commands
18087
18088 Report bugs to the package provider."
18089
18090 _ACEOF
18091 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18092 ac_cs_version="\\
18093 config.status
18094 configured by $0, generated by GNU Autoconf 2.64,
18095 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
18096
18097 Copyright (C) 2009 Free Software Foundation, Inc.
18098 This config.status script is free software; the Free Software Foundation
18099 gives unlimited permission to copy, distribute and modify it."
18100
18101 ac_pwd='$ac_pwd'
18102 srcdir='$srcdir'
18103 INSTALL='$INSTALL'
18104 MKDIR_P='$MKDIR_P'
18105 AWK='$AWK'
18106 test -n "\$AWK" || AWK=awk
18107 _ACEOF
18108
18109 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18110 # The default lists apply if the user does not specify any file.
18111 ac_need_defaults=:
18112 while test $# != 0
18113 do
18114 case $1 in
18115 --*=*)
18116 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18117 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18118 ac_shift=:
18119 ;;
18120 *)
18121 ac_option=$1
18122 ac_optarg=$2
18123 ac_shift=shift
18124 ;;
18125 esac
18126
18127 case $ac_option in
18128 # Handling of the options.
18129 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18130 ac_cs_recheck=: ;;
18131 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18132 $as_echo "$ac_cs_version"; exit ;;
18133 --debug | --debu | --deb | --de | --d | -d )
18134 debug=: ;;
18135 --file | --fil | --fi | --f )
18136 $ac_shift
18137 case $ac_optarg in
18138 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18139 esac
18140 as_fn_append CONFIG_FILES " '$ac_optarg'"
18141 ac_need_defaults=false;;
18142 --header | --heade | --head | --hea )
18143 $ac_shift
18144 case $ac_optarg in
18145 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18146 esac
18147 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18148 ac_need_defaults=false;;
18149 --he | --h)
18150 # Conflict between --help and --header
18151 as_fn_error "ambiguous option: \`$1'
18152 Try \`$0 --help' for more information.";;
18153 --help | --hel | -h )
18154 $as_echo "$ac_cs_usage"; exit ;;
18155 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18156 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18157 ac_cs_silent=: ;;
18158
18159 # This is an error.
18160 -*) as_fn_error "unrecognized option: \`$1'
18161 Try \`$0 --help' for more information." ;;
18162
18163 *) as_fn_append ac_config_targets " $1"
18164 ac_need_defaults=false ;;
18165
18166 esac
18167 shift
18168 done
18169
18170 ac_configure_extra_args=
18171
18172 if $ac_cs_silent; then
18173 exec 6>/dev/null
18174 ac_configure_extra_args="$ac_configure_extra_args --silent"
18175 fi
18176
18177 _ACEOF
18178 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18179 if \$ac_cs_recheck; then
18180 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18181 shift
18182 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18183 CONFIG_SHELL='$SHELL'
18184 export CONFIG_SHELL
18185 exec "\$@"
18186 fi
18187
18188 _ACEOF
18189 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18190 exec 5>>config.log
18191 {
18192 echo
18193 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18194 ## Running $as_me. ##
18195 _ASBOX
18196 $as_echo "$ac_log"
18197 } >&5
18198
18199 _ACEOF
18200 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18201 #
18202 # INIT-COMMANDS
18203 #
18204 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18205
18206 _ACEOF
18207
18208 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18209
18210 # Handling of arguments.
18211 for ac_config_target in $ac_config_targets
18212 do
18213 case $ac_config_target in
18214 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
18215 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18216 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18217 "import/Makefile") CONFIG_FILES="$CONFIG_FILES import/Makefile" ;;
18218 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
18219
18220 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18221 esac
18222 done
18223
18224
18225 # If the user did not use the arguments to specify the items to instantiate,
18226 # then the envvar interface is used. Set only those that are not.
18227 # We use the long form for the default assignment because of an extremely
18228 # bizarre bug on SunOS 4.1.3.
18229 if $ac_need_defaults; then
18230 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18231 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18232 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18233 fi
18234
18235 # Have a temporary directory for convenience. Make it in the build tree
18236 # simply because there is no reason against having it here, and in addition,
18237 # creating and moving files from /tmp can sometimes cause problems.
18238 # Hook for its removal unless debugging.
18239 # Note that there is a small window in which the directory will not be cleaned:
18240 # after its creation but before its name has been assigned to `$tmp'.
18241 $debug ||
18242 {
18243 tmp=
18244 trap 'exit_status=$?
18245 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18246 ' 0
18247 trap 'as_fn_exit 1' 1 2 13 15
18248 }
18249 # Create a (secure) tmp directory for tmp files.
18250
18251 {
18252 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18253 test -n "$tmp" && test -d "$tmp"
18254 } ||
18255 {
18256 tmp=./conf$$-$RANDOM
18257 (umask 077 && mkdir "$tmp")
18258 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
18259
18260 # Set up the scripts for CONFIG_FILES section.
18261 # No need to generate them if there are no CONFIG_FILES.
18262 # This happens for instance with `./config.status config.h'.
18263 if test -n "$CONFIG_FILES"; then
18264
18265
18266 ac_cr=`echo X | tr X '\015'`
18267 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18268 # But we know of no other shell where ac_cr would be empty at this
18269 # point, so we can use a bashism as a fallback.
18270 if test "x$ac_cr" = x; then
18271 eval ac_cr=\$\'\\r\'
18272 fi
18273 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18274 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18275 ac_cs_awk_cr='\r'
18276 else
18277 ac_cs_awk_cr=$ac_cr
18278 fi
18279
18280 echo 'BEGIN {' >"$tmp/subs1.awk" &&
18281 _ACEOF
18282
18283
18284 {
18285 echo "cat >conf$$subs.awk <<_ACEOF" &&
18286 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18287 echo "_ACEOF"
18288 } >conf$$subs.sh ||
18289 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18290 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
18291 ac_delim='%!_!# '
18292 for ac_last_try in false false false false false :; do
18293 . ./conf$$subs.sh ||
18294 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18295
18296 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18297 if test $ac_delim_n = $ac_delim_num; then
18298 break
18299 elif $ac_last_try; then
18300 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18301 else
18302 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18303 fi
18304 done
18305 rm -f conf$$subs.sh
18306
18307 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18308 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
18309 _ACEOF
18310 sed -n '
18311 h
18312 s/^/S["/; s/!.*/"]=/
18313 p
18314 g
18315 s/^[^!]*!//
18316 :repl
18317 t repl
18318 s/'"$ac_delim"'$//
18319 t delim
18320 :nl
18321 h
18322 s/\(.\{148\}\).*/\1/
18323 t more1
18324 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18325 p
18326 n
18327 b repl
18328 :more1
18329 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18330 p
18331 g
18332 s/.\{148\}//
18333 t nl
18334 :delim
18335 h
18336 s/\(.\{148\}\).*/\1/
18337 t more2
18338 s/["\\]/\\&/g; s/^/"/; s/$/"/
18339 p
18340 b
18341 :more2
18342 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18343 p
18344 g
18345 s/.\{148\}//
18346 t delim
18347 ' <conf$$subs.awk | sed '
18348 /^[^""]/{
18349 N
18350 s/\n//
18351 }
18352 ' >>$CONFIG_STATUS || ac_write_fail=1
18353 rm -f conf$$subs.awk
18354 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18355 _ACAWK
18356 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
18357 for (key in S) S_is_set[key] = 1
18358 FS = "\a"
18359
18360 }
18361 {
18362 line = $ 0
18363 nfields = split(line, field, "@")
18364 substed = 0
18365 len = length(field[1])
18366 for (i = 2; i < nfields; i++) {
18367 key = field[i]
18368 keylen = length(key)
18369 if (S_is_set[key]) {
18370 value = S[key]
18371 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18372 len += length(value) + length(field[++i])
18373 substed = 1
18374 } else
18375 len += 1 + keylen
18376 }
18377
18378 print line
18379 }
18380
18381 _ACAWK
18382 _ACEOF
18383 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18384 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18385 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18386 else
18387 cat
18388 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
18389 || as_fn_error "could not setup config files machinery" "$LINENO" 5
18390 _ACEOF
18391
18392 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18393 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18394 # trailing colons and then remove the whole line if VPATH becomes empty
18395 # (actually we leave an empty line to preserve line numbers).
18396 if test "x$srcdir" = x.; then
18397 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18398 s/:*\$(srcdir):*/:/
18399 s/:*\${srcdir}:*/:/
18400 s/:*@srcdir@:*/:/
18401 s/^\([^=]*=[ ]*\):*/\1/
18402 s/:*$//
18403 s/^[^=]*=[ ]*$//
18404 }'
18405 fi
18406
18407 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18408 fi # test -n "$CONFIG_FILES"
18409
18410 # Set up the scripts for CONFIG_HEADERS section.
18411 # No need to generate them if there are no CONFIG_HEADERS.
18412 # This happens for instance with `./config.status Makefile'.
18413 if test -n "$CONFIG_HEADERS"; then
18414 cat >"$tmp/defines.awk" <<\_ACAWK ||
18415 BEGIN {
18416 _ACEOF
18417
18418 # Transform confdefs.h into an awk script `defines.awk', embedded as
18419 # here-document in config.status, that substitutes the proper values into
18420 # config.h.in to produce config.h.
18421
18422 # Create a delimiter string that does not exist in confdefs.h, to ease
18423 # handling of long lines.
18424 ac_delim='%!_!# '
18425 for ac_last_try in false false :; do
18426 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
18427 if test -z "$ac_t"; then
18428 break
18429 elif $ac_last_try; then
18430 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
18431 else
18432 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18433 fi
18434 done
18435
18436 # For the awk script, D is an array of macro values keyed by name,
18437 # likewise P contains macro parameters if any. Preserve backslash
18438 # newline sequences.
18439
18440 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18441 sed -n '
18442 s/.\{148\}/&'"$ac_delim"'/g
18443 t rset
18444 :rset
18445 s/^[ ]*#[ ]*define[ ][ ]*/ /
18446 t def
18447 d
18448 :def
18449 s/\\$//
18450 t bsnl
18451 s/["\\]/\\&/g
18452 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18453 D["\1"]=" \3"/p
18454 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18455 d
18456 :bsnl
18457 s/["\\]/\\&/g
18458 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18459 D["\1"]=" \3\\\\\\n"\\/p
18460 t cont
18461 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18462 t cont
18463 d
18464 :cont
18465 n
18466 s/.\{148\}/&'"$ac_delim"'/g
18467 t clear
18468 :clear
18469 s/\\$//
18470 t bsnlc
18471 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18472 d
18473 :bsnlc
18474 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18475 b cont
18476 ' <confdefs.h | sed '
18477 s/'"$ac_delim"'/"\\\
18478 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18479
18480 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18481 for (key in D) D_is_set[key] = 1
18482 FS = "\a"
18483 }
18484 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18485 line = \$ 0
18486 split(line, arg, " ")
18487 if (arg[1] == "#") {
18488 defundef = arg[2]
18489 mac1 = arg[3]
18490 } else {
18491 defundef = substr(arg[1], 2)
18492 mac1 = arg[2]
18493 }
18494 split(mac1, mac2, "(") #)
18495 macro = mac2[1]
18496 prefix = substr(line, 1, index(line, defundef) - 1)
18497 if (D_is_set[macro]) {
18498 # Preserve the white space surrounding the "#".
18499 print prefix "define", macro P[macro] D[macro]
18500 next
18501 } else {
18502 # Replace #undef with comments. This is necessary, for example,
18503 # in the case of _POSIX_SOURCE, which is predefined and required
18504 # on some systems where configure will not decide to define it.
18505 if (defundef == "undef") {
18506 print "/*", prefix defundef, macro, "*/"
18507 next
18508 }
18509 }
18510 }
18511 { print }
18512 _ACAWK
18513 _ACEOF
18514 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18515 as_fn_error "could not setup config headers machinery" "$LINENO" 5
18516 fi # test -n "$CONFIG_HEADERS"
18517
18518
18519 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18520 shift
18521 for ac_tag
18522 do
18523 case $ac_tag in
18524 :[FHLC]) ac_mode=$ac_tag; continue;;
18525 esac
18526 case $ac_mode$ac_tag in
18527 :[FHL]*:*);;
18528 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
18529 :[FH]-) ac_tag=-:-;;
18530 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18531 esac
18532 ac_save_IFS=$IFS
18533 IFS=:
18534 set x $ac_tag
18535 IFS=$ac_save_IFS
18536 shift
18537 ac_file=$1
18538 shift
18539
18540 case $ac_mode in
18541 :L) ac_source=$1;;
18542 :[FH])
18543 ac_file_inputs=
18544 for ac_f
18545 do
18546 case $ac_f in
18547 -) ac_f="$tmp/stdin";;
18548 *) # Look for the file first in the build tree, then in the source tree
18549 # (if the path is not absolute). The absolute path cannot be DOS-style,
18550 # because $ac_f cannot contain `:'.
18551 test -f "$ac_f" ||
18552 case $ac_f in
18553 [\\/$]*) false;;
18554 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18555 esac ||
18556 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18557 esac
18558 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18559 as_fn_append ac_file_inputs " '$ac_f'"
18560 done
18561
18562 # Let's still pretend it is `configure' which instantiates (i.e., don't
18563 # use $as_me), people would be surprised to read:
18564 # /* config.h. Generated by config.status. */
18565 configure_input='Generated from '`
18566 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18567 `' by configure.'
18568 if test x"$ac_file" != x-; then
18569 configure_input="$ac_file. $configure_input"
18570 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18571 $as_echo "$as_me: creating $ac_file" >&6;}
18572 fi
18573 # Neutralize special characters interpreted by sed in replacement strings.
18574 case $configure_input in #(
18575 *\&* | *\|* | *\\* )
18576 ac_sed_conf_input=`$as_echo "$configure_input" |
18577 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18578 *) ac_sed_conf_input=$configure_input;;
18579 esac
18580
18581 case $ac_tag in
18582 *:-:* | *:-) cat >"$tmp/stdin" \
18583 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
18584 esac
18585 ;;
18586 esac
18587
18588 ac_dir=`$as_dirname -- "$ac_file" ||
18589 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18590 X"$ac_file" : 'X\(//\)[^/]' \| \
18591 X"$ac_file" : 'X\(//\)$' \| \
18592 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18593 $as_echo X"$ac_file" |
18594 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18595 s//\1/
18596 q
18597 }
18598 /^X\(\/\/\)[^/].*/{
18599 s//\1/
18600 q
18601 }
18602 /^X\(\/\/\)$/{
18603 s//\1/
18604 q
18605 }
18606 /^X\(\/\).*/{
18607 s//\1/
18608 q
18609 }
18610 s/.*/./; q'`
18611 as_dir="$ac_dir"; as_fn_mkdir_p
18612 ac_builddir=.
18613
18614 case "$ac_dir" in
18615 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18616 *)
18617 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18618 # A ".." for each directory in $ac_dir_suffix.
18619 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18620 case $ac_top_builddir_sub in
18621 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18622 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18623 esac ;;
18624 esac
18625 ac_abs_top_builddir=$ac_pwd
18626 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18627 # for backward compatibility:
18628 ac_top_builddir=$ac_top_build_prefix
18629
18630 case $srcdir in
18631 .) # We are building in place.
18632 ac_srcdir=.
18633 ac_top_srcdir=$ac_top_builddir_sub
18634 ac_abs_top_srcdir=$ac_pwd ;;
18635 [\\/]* | ?:[\\/]* ) # Absolute name.
18636 ac_srcdir=$srcdir$ac_dir_suffix;
18637 ac_top_srcdir=$srcdir
18638 ac_abs_top_srcdir=$srcdir ;;
18639 *) # Relative name.
18640 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18641 ac_top_srcdir=$ac_top_build_prefix$srcdir
18642 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18643 esac
18644 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18645
18646
18647 case $ac_mode in
18648 :F)
18649 #
18650 # CONFIG_FILE
18651 #
18652
18653 case $INSTALL in
18654 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18655 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18656 esac
18657 ac_MKDIR_P=$MKDIR_P
18658 case $MKDIR_P in
18659 [\\/$]* | ?:[\\/]* ) ;;
18660 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18661 esac
18662 _ACEOF
18663
18664 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18665 # If the template does not know about datarootdir, expand it.
18666 # FIXME: This hack should be removed a few years after 2.60.
18667 ac_datarootdir_hack=; ac_datarootdir_seen=
18668 ac_sed_dataroot='
18669 /datarootdir/ {
18670 p
18671 q
18672 }
18673 /@datadir@/p
18674 /@docdir@/p
18675 /@infodir@/p
18676 /@localedir@/p
18677 /@mandir@/p'
18678 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18679 *datarootdir*) ac_datarootdir_seen=yes;;
18680 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18682 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18683 _ACEOF
18684 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18685 ac_datarootdir_hack='
18686 s&@datadir@&$datadir&g
18687 s&@docdir@&$docdir&g
18688 s&@infodir@&$infodir&g
18689 s&@localedir@&$localedir&g
18690 s&@mandir@&$mandir&g
18691 s&\\\${datarootdir}&$datarootdir&g' ;;
18692 esac
18693 _ACEOF
18694
18695 # Neutralize VPATH when `$srcdir' = `.'.
18696 # Shell code in configure.ac might set extrasub.
18697 # FIXME: do we really want to maintain this feature?
18698 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18699 ac_sed_extra="$ac_vpsub
18700 $extrasub
18701 _ACEOF
18702 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18703 :t
18704 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18705 s|@configure_input@|$ac_sed_conf_input|;t t
18706 s&@top_builddir@&$ac_top_builddir_sub&;t t
18707 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18708 s&@srcdir@&$ac_srcdir&;t t
18709 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18710 s&@top_srcdir@&$ac_top_srcdir&;t t
18711 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18712 s&@builddir@&$ac_builddir&;t t
18713 s&@abs_builddir@&$ac_abs_builddir&;t t
18714 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18715 s&@INSTALL@&$ac_INSTALL&;t t
18716 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18717 $ac_datarootdir_hack
18718 "
18719 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
18720 || as_fn_error "could not create $ac_file" "$LINENO" 5
18721
18722 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18723 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18724 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18726 which seems to be undefined. Please make sure it is defined." >&5
18727 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18728 which seems to be undefined. Please make sure it is defined." >&2;}
18729
18730 rm -f "$tmp/stdin"
18731 case $ac_file in
18732 -) cat "$tmp/out" && rm -f "$tmp/out";;
18733 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18734 esac \
18735 || as_fn_error "could not create $ac_file" "$LINENO" 5
18736 ;;
18737 :H)
18738 #
18739 # CONFIG_HEADER
18740 #
18741 if test x"$ac_file" != x-; then
18742 {
18743 $as_echo "/* $configure_input */" \
18744 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18745 } >"$tmp/config.h" \
18746 || as_fn_error "could not create $ac_file" "$LINENO" 5
18747 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18748 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18749 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18750 else
18751 rm -f "$ac_file"
18752 mv "$tmp/config.h" "$ac_file" \
18753 || as_fn_error "could not create $ac_file" "$LINENO" 5
18754 fi
18755 else
18756 $as_echo "/* $configure_input */" \
18757 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18758 || as_fn_error "could not create -" "$LINENO" 5
18759 fi
18760 # Compute "$ac_file"'s index in $config_headers.
18761 _am_arg="$ac_file"
18762 _am_stamp_count=1
18763 for _am_header in $config_headers :; do
18764 case $_am_header in
18765 $_am_arg | $_am_arg:* )
18766 break ;;
18767 * )
18768 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18769 esac
18770 done
18771 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18772 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18773 X"$_am_arg" : 'X\(//\)[^/]' \| \
18774 X"$_am_arg" : 'X\(//\)$' \| \
18775 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18776 $as_echo X"$_am_arg" |
18777 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18778 s//\1/
18779 q
18780 }
18781 /^X\(\/\/\)[^/].*/{
18782 s//\1/
18783 q
18784 }
18785 /^X\(\/\/\)$/{
18786 s//\1/
18787 q
18788 }
18789 /^X\(\/\).*/{
18790 s//\1/
18791 q
18792 }
18793 s/.*/./; q'`/stamp-h$_am_stamp_count
18794 ;;
18795
18796 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18797 $as_echo "$as_me: executing $ac_file commands" >&6;}
18798 ;;
18799 esac
18800
18801
18802 case $ac_file$ac_mode in
18803 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18804 # Autoconf 2.62 quotes --file arguments for eval, but not when files
18805 # are listed without --file. Let's play safe and only enable the eval
18806 # if we detect the quoting.
18807 case $CONFIG_FILES in
18808 *\'*) eval set x "$CONFIG_FILES" ;;
18809 *) set x $CONFIG_FILES ;;
18810 esac
18811 shift
18812 for mf
18813 do
18814 # Strip MF so we end up with the name of the file.
18815 mf=`echo "$mf" | sed -e 's/:.*$//'`
18816 # Check whether this is an Automake generated Makefile or not.
18817 # We used to match only the files named `Makefile.in', but
18818 # some people rename them; so instead we look at the file content.
18819 # Grep'ing the first line is not enough: some people post-process
18820 # each Makefile.in and add a new line on top of each file to say so.
18821 # Grep'ing the whole file is not good either: AIX grep has a line
18822 # limit of 2048, but all sed's we know have understand at least 4000.
18823 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18824 dirpart=`$as_dirname -- "$mf" ||
18825 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18826 X"$mf" : 'X\(//\)[^/]' \| \
18827 X"$mf" : 'X\(//\)$' \| \
18828 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18829 $as_echo X"$mf" |
18830 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18831 s//\1/
18832 q
18833 }
18834 /^X\(\/\/\)[^/].*/{
18835 s//\1/
18836 q
18837 }
18838 /^X\(\/\/\)$/{
18839 s//\1/
18840 q
18841 }
18842 /^X\(\/\).*/{
18843 s//\1/
18844 q
18845 }
18846 s/.*/./; q'`
18847 else
18848 continue
18849 fi
18850 # Extract the definition of DEPDIR, am__include, and am__quote
18851 # from the Makefile without running `make'.
18852 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18853 test -z "$DEPDIR" && continue
18854 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18855 test -z "am__include" && continue
18856 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18857 # When using ansi2knr, U may be empty or an underscore; expand it
18858 U=`sed -n 's/^U = //p' < "$mf"`
18859 # Find all dependency output files, they are included files with
18860 # $(DEPDIR) in their names. We invoke sed twice because it is the
18861 # simplest approach to changing $(DEPDIR) to its actual value in the
18862 # expansion.
18863 for file in `sed -n "
18864 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18865 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18866 # Make sure the directory exists.
18867 test -f "$dirpart/$file" && continue
18868 fdir=`$as_dirname -- "$file" ||
18869 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18870 X"$file" : 'X\(//\)[^/]' \| \
18871 X"$file" : 'X\(//\)$' \| \
18872 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18873 $as_echo X"$file" |
18874 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18875 s//\1/
18876 q
18877 }
18878 /^X\(\/\/\)[^/].*/{
18879 s//\1/
18880 q
18881 }
18882 /^X\(\/\/\)$/{
18883 s//\1/
18884 q
18885 }
18886 /^X\(\/\).*/{
18887 s//\1/
18888 q
18889 }
18890 s/.*/./; q'`
18891 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18892 # echo "creating $dirpart/$file"
18893 echo '# dummy' > "$dirpart/$file"
18894 done
18895 done
18896 }
18897 ;;
18898 "default":C)
18899 case x$CONFIG_HEADERS in
18900 xconfig.h:config.in)
18901 echo > stamp-h ;;
18902 esac
18903 ;;
18904
18905 esac
18906 done # for ac_tag
18907
18908
18909 as_fn_exit 0
18910 _ACEOF
18911 ac_clean_files=$ac_clean_files_save
18912
18913 test $ac_write_fail = 0 ||
18914 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
18915
18916
18917 # configure is writing to config.log, and then calls config.status.
18918 # config.status does its own redirection, appending to config.log.
18919 # Unfortunately, on DOS this fails, as config.log is still kept open
18920 # by configure, so config.status won't be able to write to it; its
18921 # output is simply discarded. So we exec the FD to /dev/null,
18922 # effectively closing config.log, so it can be properly (re)opened and
18923 # appended to by config.status. When coming back to configure, we
18924 # need to make the FD available again.
18925 if test "$no_create" != yes; then
18926 ac_cs_success=:
18927 ac_config_status_args=
18928 test "$silent" = yes &&
18929 ac_config_status_args="$ac_config_status_args --quiet"
18930 exec 5>/dev/null
18931 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18932 exec 5>>config.log
18933 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18934 # would make configure fail if this is the last instruction.
18935 $ac_cs_success || as_fn_exit $?
18936 fi
18937 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18939 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18940 fi
18941
18942
18943 exit 0
This page took 0.42898 seconds and 4 git commands to generate.