2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
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 ## -------------------- ##
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 :
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+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
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
46 as_echo_n='print
-rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
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'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
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.)
89 # Find who we are. Look in the path if we contain no directory separator.
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
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
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
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 ||
:
132 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
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 :
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+\"\$@\"}'='\"\$@\"'
143 case \`(set -o) 2>/dev/null\` in #(
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; }
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 :
165 exitcode=1; echo positional parameters were not saved.
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 :
178 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
181 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
183 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
186 test -z "$as_dir" && as_dir
=.
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 :
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
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.
217 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
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."
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."
238 SHELL
=${CONFIG_SHELL-/bin/sh}
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE
= GREP_OPTIONS
=
242 unset CLICOLOR_FORCE GREP_OPTIONS
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
249 # Portably unset VAR.
252 { eval $1=; unset $1;}
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
276 # Create "$as_dir" as a directory, including parents if necessary.
281 -*) as_dir
=.
/$as_dir;;
283 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
287 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
314 test -d "$as_dir" && break
316 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
317 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
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
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
328 eval 'as_fn_append ()
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 :
352 as_val
=`expr "$@" || test $? -eq 1`
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.
364 as_status
=$?
; test $as_status -eq 0 && as_status
=1
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
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit
$as_status
373 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
380 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
392 as_me
=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
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
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. :-)
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
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; }
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).
446 # Exit status is that of the last command.
450 ECHO_C
= ECHO_N
= ECHO_T
=
451 case `echo -n x` in #(((((
453 case `echo 'xy\c'` in
454 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
463 rm -f conf$$ conf$$.exe conf$$.
file
464 if test -d conf$$.dir
; then
465 rm -f conf$$.dir
/conf$$.
file
468 mkdir conf$$.dir
2>/dev
/null
470 if (echo >conf$$.
file) 2>/dev
/null
; then
471 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
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 ||
479 elif ln conf$$.
file conf$$
2>/dev
/null
; then
487 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
488 rmdir conf$$.dir
2>/dev
/null
490 if mkdir
-p .
2>/dev
/null
; then
491 as_mkdir_p
='mkdir -p "$as_dir"'
493 test -d .
/-p && rmdir .
/-p
497 if test -x / >/dev
/null
2>&1; then
500 if ls -dL / >/dev
/null
2>&1; then
507 if test -d "$1"; then
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
518 as_executable_p
=$as_test_x
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'"
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'"
527 exec 7<&0 </dev
/null
6>&1
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`
537 ac_default_prefix
=/usr
/local
539 ac_config_libobj_dir
=.
546 # Identity of this package.
554 ac_unique_file
="import/memmem.c"
555 # Factoring default headers for most tests.
556 ac_includes_default
="\
558 #ifdef HAVE_SYS_TYPES_H
559 # include <sys/types.h>
561 #ifdef HAVE_SYS_STAT_H
562 # include <sys/stat.h>
568 # ifdef HAVE_STDLIB_H
573 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
578 #ifdef HAVE_STRINGS_H
579 # include <strings.h>
581 #ifdef HAVE_INTTYPES_H
582 # include <inttypes.h>
591 gl_fnmatch_required
=POSIX
594 ac_subst_vars
='am__EXEEXT_FALSE
619 INSTALL_STRIP_PROGRAM
640 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
654 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
657 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
659 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
660 UNISTD_H_HAVE_WINSOCK2_H
681 REPLACE_GETDOMAINNAME
692 HAVE_DECL_SETHOSTNAME
693 HAVE_DECL_GETUSERSHELL
694 HAVE_DECL_GETPAGESIZE
696 HAVE_DECL_GETDOMAINNAME
735 GNULIB_UNISTD_H_SIGPIPE
736 GNULIB_UNISTD_H_NONBLOCKING
781 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
783 NEXT_AS_FIRST_DIRECTIVE_STRING_H
785 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
787 GL_GENERATE_STDDEF_H_FALSE
788 GL_GENERATE_STDDEF_H_TRUE
793 GL_GENERATE_STDBOOL_H_FALSE
794 GL_GENERATE_STDBOOL_H_TRUE
964 NEXT_AS_FIRST_DIRECTIVE_MATH_H
966 LOCALCHARSET_TESTS_ENVIRONMENT
968 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
970 UINT64_MAX_EQ_ULONG_MAX
971 UINT32_MAX_LT_UINTMAX_MAX
974 INT64_MAX_EQ_LONG_MAX
975 INT32_MAX_LT_INTMAX_MAX
985 GL_GENERATE_STDINT_H_FALSE
986 GL_GENERATE_STDINT_H_TRUE
995 HAVE_SIGNED_SIG_ATOMIC_T
998 BITSIZEOF_SIG_ATOMIC_T
1001 APPLE_UNIVERSAL_BUILD
1005 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
1010 HAVE_UNSIGNED_LONG_LONG_INT
1013 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
1019 REPLACE_SIGNBIT_USING_GCC
1088 HAVE_DECL_REMAINDERL
1269 GL_GENERATE_FNMATCH_H_FALSE
1270 GL_GENERATE_FNMATCH_H_TRUE
1273 GL_GENERATE_FLOAT_H_FALSE
1274 GL_GENERATE_FLOAT_H_TRUE
1276 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1279 PRAGMA_SYSTEM_HEADER
1280 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1284 GL_GENERATE_ALLOCA_H_FALSE
1285 GL_GENERATE_ALLOCA_H_TRUE
1288 GL_COND_LIBTOOL_FALSE
1289 GL_COND_LIBTOOL_TRUE
1316 MAINTAINER_MODE_FALSE
1317 MAINTAINER_MODE_TRUE
1345 program_transform_name
1358 enable_option_checking
1359 enable_maintainer_mode
1360 enable_dependency_tracking
1362 ac_precious_vars
='build_alias
1373 # Initialize some variables set by options.
1375 ac_init_version
=false
1376 ac_unrecognized_opts
=
1377 ac_unrecognized_sep
=
1378 # The variables have the same names as the options, with
1379 # dashes changed to underlines.
1380 cache_file
=/dev
/null
1387 program_transform_name
=s
,x
,x
,
1395 # Installation directory options.
1396 # These are left unexpanded so users can "make install exec_prefix=/foo"
1397 # and all the variables that are supposed to be based on exec_prefix
1398 # by default will actually change.
1399 # Use braces instead of parens because sh, perl, etc. also accept them.
1400 # (The list follows the same order as the GNU Coding Standards.)
1401 bindir
='${exec_prefix}/bin'
1402 sbindir
='${exec_prefix}/sbin'
1403 libexecdir
='${exec_prefix}/libexec'
1404 datarootdir
='${prefix}/share'
1405 datadir
='${datarootdir}'
1406 sysconfdir
='${prefix}/etc'
1407 sharedstatedir
='${prefix}/com'
1408 localstatedir
='${prefix}/var'
1409 includedir
='${prefix}/include'
1410 oldincludedir
='/usr/include'
1411 docdir
='${datarootdir}/doc/${PACKAGE}'
1412 infodir
='${datarootdir}/info'
1417 libdir
='${exec_prefix}/lib'
1418 localedir
='${datarootdir}/locale'
1419 mandir
='${datarootdir}/man'
1425 # If the previous option needs an argument, assign it.
1426 if test -n "$ac_prev"; then
1427 eval $ac_prev=\
$ac_option
1433 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1437 # Accept the important Cygnus configure options, so we can diagnose typos.
1439 case $ac_dashdash$ac_option in
1443 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1445 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1446 bindir
=$ac_optarg ;;
1448 -build |
--build |
--buil |
--bui |
--bu)
1449 ac_prev
=build_alias
;;
1450 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1451 build_alias
=$ac_optarg ;;
1453 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1454 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1455 ac_prev
=cache_file
;;
1456 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1457 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1458 cache_file
=$ac_optarg ;;
1460 --config-cache |
-C)
1461 cache_file
=config.cache
;;
1463 -datadir |
--datadir |
--datadi |
--datad)
1465 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1466 datadir
=$ac_optarg ;;
1468 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1469 |
--dataroo |
--dataro |
--datar)
1470 ac_prev
=datarootdir
;;
1471 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1472 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1473 datarootdir
=$ac_optarg ;;
1475 -disable-* |
--disable-*)
1476 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1477 # Reject names that are not valid shell variable names.
1478 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1479 as_fn_error
"invalid feature name: $ac_useropt"
1480 ac_useropt_orig
=$ac_useropt
1481 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1482 case $ac_user_opts in
1484 "enable_
$ac_useropt"
1486 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1487 ac_unrecognized_sep
=', ';;
1489 eval enable_
$ac_useropt=no
;;
1491 -docdir |
--docdir |
--docdi |
--doc |
--do)
1493 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1494 docdir
=$ac_optarg ;;
1496 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1498 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1499 dvidir
=$ac_optarg ;;
1501 -enable-* |
--enable-*)
1502 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1503 # Reject names that are not valid shell variable names.
1504 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1505 as_fn_error
"invalid feature name: $ac_useropt"
1506 ac_useropt_orig
=$ac_useropt
1507 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1508 case $ac_user_opts in
1510 "enable_
$ac_useropt"
1512 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1513 ac_unrecognized_sep
=', ';;
1515 eval enable_
$ac_useropt=\
$ac_optarg ;;
1517 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1518 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1519 |
--exec |
--exe |
--ex)
1520 ac_prev
=exec_prefix
;;
1521 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1522 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1523 |
--exec=* |
--exe=* |
--ex=*)
1524 exec_prefix
=$ac_optarg ;;
1526 -gas |
--gas |
--ga |
--g)
1527 # Obsolete; use --with-gas.
1530 -help |
--help |
--hel |
--he |
-h)
1531 ac_init_help
=long
;;
1532 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1533 ac_init_help
=recursive
;;
1534 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1535 ac_init_help
=short
;;
1537 -host |
--host |
--hos |
--ho)
1538 ac_prev
=host_alias
;;
1539 -host=* |
--host=* |
--hos=* |
--ho=*)
1540 host_alias
=$ac_optarg ;;
1542 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1544 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1546 htmldir
=$ac_optarg ;;
1548 -includedir |
--includedir |
--includedi |
--included |
--include \
1549 |
--includ |
--inclu |
--incl |
--inc)
1550 ac_prev
=includedir
;;
1551 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1552 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1553 includedir
=$ac_optarg ;;
1555 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1557 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1558 infodir
=$ac_optarg ;;
1560 -libdir |
--libdir |
--libdi |
--libd)
1562 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1563 libdir
=$ac_optarg ;;
1565 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1566 |
--libexe |
--libex |
--libe)
1567 ac_prev
=libexecdir
;;
1568 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1569 |
--libexe=* |
--libex=* |
--libe=*)
1570 libexecdir
=$ac_optarg ;;
1572 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1573 ac_prev
=localedir
;;
1574 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1575 localedir
=$ac_optarg ;;
1577 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1578 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1579 ac_prev
=localstatedir
;;
1580 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1581 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1582 localstatedir
=$ac_optarg ;;
1584 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1586 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1587 mandir
=$ac_optarg ;;
1589 -nfp |
--nfp |
--nf)
1590 # Obsolete; use --without-fp.
1593 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1594 |
--no-cr |
--no-c |
-n)
1597 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1598 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1601 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1602 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1603 |
--oldin |
--oldi |
--old |
--ol |
--o)
1604 ac_prev
=oldincludedir
;;
1605 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1606 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1607 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1608 oldincludedir
=$ac_optarg ;;
1610 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1612 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1613 prefix
=$ac_optarg ;;
1615 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1616 |
--program-pre |
--program-pr |
--program-p)
1617 ac_prev
=program_prefix
;;
1618 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1619 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1620 program_prefix
=$ac_optarg ;;
1622 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1623 |
--program-suf |
--program-su |
--program-s)
1624 ac_prev
=program_suffix
;;
1625 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1626 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1627 program_suffix
=$ac_optarg ;;
1629 -program-transform-name |
--program-transform-name \
1630 |
--program-transform-nam |
--program-transform-na \
1631 |
--program-transform-n |
--program-transform- \
1632 |
--program-transform |
--program-transfor \
1633 |
--program-transfo |
--program-transf \
1634 |
--program-trans |
--program-tran \
1635 |
--progr-tra |
--program-tr |
--program-t)
1636 ac_prev
=program_transform_name
;;
1637 -program-transform-name=* |
--program-transform-name=* \
1638 |
--program-transform-nam=* |
--program-transform-na=* \
1639 |
--program-transform-n=* |
--program-transform-=* \
1640 |
--program-transform=* |
--program-transfor=* \
1641 |
--program-transfo=* |
--program-transf=* \
1642 |
--program-trans=* |
--program-tran=* \
1643 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1644 program_transform_name
=$ac_optarg ;;
1646 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1648 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1649 pdfdir
=$ac_optarg ;;
1651 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1653 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1656 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1657 |
-silent |
--silent |
--silen |
--sile |
--sil)
1660 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1662 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1664 sbindir
=$ac_optarg ;;
1666 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1667 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1668 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1670 ac_prev
=sharedstatedir
;;
1671 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1672 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1673 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1675 sharedstatedir
=$ac_optarg ;;
1677 -site |
--site |
--sit)
1679 -site=* |
--site=* |
--sit=*)
1682 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1684 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1685 srcdir
=$ac_optarg ;;
1687 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1688 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1689 ac_prev
=sysconfdir
;;
1690 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1691 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1692 sysconfdir
=$ac_optarg ;;
1694 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1695 ac_prev
=target_alias
;;
1696 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1697 target_alias
=$ac_optarg ;;
1699 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1702 -version |
--version |
--versio |
--versi |
--vers |
-V)
1703 ac_init_version
=: ;;
1706 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1707 # Reject names that are not valid shell variable names.
1708 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1709 as_fn_error
"invalid package name: $ac_useropt"
1710 ac_useropt_orig
=$ac_useropt
1711 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1712 case $ac_user_opts in
1716 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1717 ac_unrecognized_sep
=', ';;
1719 eval with_
$ac_useropt=\
$ac_optarg ;;
1721 -without-* |
--without-*)
1722 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1723 # Reject names that are not valid shell variable names.
1724 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1725 as_fn_error
"invalid package name: $ac_useropt"
1726 ac_useropt_orig
=$ac_useropt
1727 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1728 case $ac_user_opts in
1732 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1733 ac_unrecognized_sep
=', ';;
1735 eval with_
$ac_useropt=no
;;
1738 # Obsolete; use --with-x.
1741 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1742 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1743 ac_prev
=x_includes
;;
1744 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1745 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1746 x_includes
=$ac_optarg ;;
1748 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1749 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1750 ac_prev
=x_libraries
;;
1751 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1752 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1753 x_libraries
=$ac_optarg ;;
1755 -*) as_fn_error
"unrecognized option: \`$ac_option'
1756 Try \`$0 --help' for more information."
1760 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1761 # Reject names that are not valid shell variable names.
1762 case $ac_envvar in #(
1763 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1764 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1766 eval $ac_envvar=\
$ac_optarg
1767 export $ac_envvar ;;
1770 # FIXME: should be removed in autoconf 3.0.
1771 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1772 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1773 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1774 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1780 if test -n "$ac_prev"; then
1781 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1782 as_fn_error
"missing argument to $ac_option"
1785 if test -n "$ac_unrecognized_opts"; then
1786 case $enable_option_checking in
1788 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1789 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1793 # Check all directory arguments for consistency.
1794 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1795 datadir sysconfdir sharedstatedir localstatedir includedir \
1796 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1797 libdir localedir mandir
1799 eval ac_val
=\$
$ac_var
1800 # Remove trailing slashes.
1803 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1804 eval $ac_var=\
$ac_val;;
1806 # Be sure to have absolute directory names.
1808 [\\/$
]* | ?
:[\\/]* ) continue;;
1809 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1811 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1814 # There might be people who depend on the old broken behavior: `$host'
1815 # used to hold the argument of --host etc.
1816 # FIXME: To remove some day.
1819 target
=$target_alias
1821 # FIXME: To remove some day.
1822 if test "x$host_alias" != x
; then
1823 if test "x$build_alias" = x
; then
1824 cross_compiling
=maybe
1825 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1826 If a cross compiler is detected then cross compile mode will be used." >&2
1827 elif test "x$build_alias" != "x$host_alias"; then
1833 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1835 test "$silent" = yes && exec 6>/dev
/null
1838 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1839 ac_ls_di
=`ls -di .` &&
1840 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1841 as_fn_error
"working directory cannot be determined"
1842 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1843 as_fn_error
"pwd does not report name of working directory"
1846 # Find the source files, if location was not specified.
1847 if test -z "$srcdir"; then
1848 ac_srcdir_defaulted
=yes
1849 # Try the directory containing this script, then the parent directory.
1850 ac_confdir
=`$as_dirname -- "$as_myself" ||
1851 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1852 X"$as_myself" : 'X\(//\)[^/]' \| \
1853 X"$as_myself" : 'X\(//\)$' \| \
1854 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1855 $as_echo X"$as_myself" |
1856 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1874 if test ! -r "$srcdir/$ac_unique_file"; then
1878 ac_srcdir_defaulted
=no
1880 if test ! -r "$srcdir/$ac_unique_file"; then
1881 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1882 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1884 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1886 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1888 # When building in place, set srcdir=.
1889 if test "$ac_abs_confdir" = "$ac_pwd"; then
1892 # Remove unnecessary trailing slashes from srcdir.
1893 # Double slashes in file names in object file debugging info
1894 # mess up M-x gdb in Emacs.
1896 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1898 for ac_var
in $ac_precious_vars; do
1899 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1900 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1901 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1902 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1906 # Report the --help message.
1908 if test "$ac_init_help" = "long"; then
1909 # Omit some internal or obsolete options to make the list less imposing.
1910 # This message is too long to be a string in the A/UX 3.1 sh.
1912 \`configure' configures this package to adapt to many kinds of systems.
1914 Usage: $0 [OPTION]... [VAR=VALUE]...
1916 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1917 VAR=VALUE. See below for descriptions of some of the useful variables.
1919 Defaults for the options are specified in brackets.
1922 -h, --help display this help and exit
1923 --help=short display options specific to this package
1924 --help=recursive display the short help of all the included packages
1925 -V, --version display version information and exit
1926 -q, --quiet, --silent do not print \`checking...' messages
1927 --cache-file=FILE cache test results in FILE [disabled]
1928 -C, --config-cache alias for \`--cache-file=config.cache'
1929 -n, --no-create do not create output files
1930 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1932 Installation directories:
1933 --prefix=PREFIX install architecture-independent files in PREFIX
1934 [$ac_default_prefix]
1935 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1938 By default, \`make install' will install all the files in
1939 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1940 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1941 for instance \`--prefix=\$HOME'.
1943 For better control, use the options below.
1945 Fine tuning of the installation directories:
1946 --bindir=DIR user executables [EPREFIX/bin]
1947 --sbindir=DIR system admin executables [EPREFIX/sbin]
1948 --libexecdir=DIR program executables [EPREFIX/libexec]
1949 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1950 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1951 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1952 --libdir=DIR object code libraries [EPREFIX/lib]
1953 --includedir=DIR C header files [PREFIX/include]
1954 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1955 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1956 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1957 --infodir=DIR info documentation [DATAROOTDIR/info]
1958 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1959 --mandir=DIR man documentation [DATAROOTDIR/man]
1960 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1961 --htmldir=DIR html documentation [DOCDIR]
1962 --dvidir=DIR dvi documentation [DOCDIR]
1963 --pdfdir=DIR pdf documentation [DOCDIR]
1964 --psdir=DIR ps documentation [DOCDIR]
1970 --program-prefix=PREFIX prepend PREFIX to installed program names
1971 --program-suffix=SUFFIX append SUFFIX to installed program names
1972 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1975 --build=BUILD configure
for building on BUILD
[guessed
]
1976 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1977 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1981 if test -n "$ac_init_help"; then
1986 --disable-option-checking ignore unrecognized
--enable/--with options
1987 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1988 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1989 --enable-maintainer-mode enable make rules and dependencies not useful
1990 (and sometimes confusing
) to the casual installer
1991 --disable-dependency-tracking speeds up one-time build
1992 --enable-dependency-tracking do not reject slow dependency extractors
1994 Some influential environment variables
:
1995 CC C compiler
command
1996 CFLAGS C compiler flags
1997 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1998 nonstandard directory
<lib dir
>
1999 LIBS libraries to pass to the linker
, e.g.
-l<library
>
2000 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
2001 you have headers
in a nonstandard directory
<include dir
>
2004 Use these variables to override the choices made by
`configure' or to help
2005 it to find libraries and programs with nonstandard names/locations.
2007 Report bugs to the package provider.
2012 if test "$ac_init_help" = "recursive"; then
2013 # If there are subdirs, report their specific --help.
2014 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2015 test -d "$ac_dir" ||
2016 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2021 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2023 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
2024 # A ".." for each directory in $ac_dir_suffix.
2025 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
2026 case $ac_top_builddir_sub in
2027 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2028 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2031 ac_abs_top_builddir=$ac_pwd
2032 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2033 # for backward compatibility:
2034 ac_top_builddir=$ac_top_build_prefix
2037 .) # We are building in place.
2039 ac_top_srcdir=$ac_top_builddir_sub
2040 ac_abs_top_srcdir=$ac_pwd ;;
2041 [\\/]* | ?:[\\/]* ) # Absolute name.
2042 ac_srcdir=$srcdir$ac_dir_suffix;
2043 ac_top_srcdir=$srcdir
2044 ac_abs_top_srcdir=$srcdir ;;
2046 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2047 ac_top_srcdir=$ac_top_build_prefix$srcdir
2048 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2050 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2052 cd "$ac_dir" || { ac_status=$?; continue; }
2053 # Check for guested configure.
2054 if test -f "$ac_srcdir/configure.gnu"; then
2056 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2057 elif test -f "$ac_srcdir/configure"; then
2059 $SHELL "$ac_srcdir/configure" --help=recursive
2061 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2063 cd "$ac_pwd" || { ac_status=$?; break; }
2067 test -n "$ac_init_help" && exit $ac_status
2068 if $ac_init_version; then
2071 generated by GNU Autoconf 2.64
2073 Copyright (C) 2009 Free Software Foundation, Inc.
2074 This configure script is free software; the Free Software Foundation
2075 gives unlimited permission to copy, distribute and modify it.
2080 ## ------------------------ ##
2081 ## Autoconf initialization. ##
2082 ## ------------------------ ##
2084 # ac_fn_c_try_compile LINENO
2085 # --------------------------
2086 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2087 ac_fn_c_try_compile ()
2089 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2090 rm -f conftest.$ac_objext
2091 if { { ac_try="$ac_compile"
2093 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2094 *) ac_try_echo
=$ac_try;;
2096 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2097 $as_echo "$ac_try_echo"; } >&5
2098 (eval "$ac_compile") 2>conftest.err
2100 if test -s conftest.err
; then
2101 grep -v '^ *+' conftest.err
>conftest.er1
2102 cat conftest.er1
>&5
2103 mv -f conftest.er1 conftest.err
2105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2106 test $ac_status = 0; } && {
2107 test -z "$ac_c_werror_flag" ||
2108 test ! -s conftest.err
2109 } && test -s conftest.
$ac_objext; then :
2112 $as_echo "$as_me: failed program was:" >&5
2113 sed 's/^/| /' conftest.
$ac_ext >&5
2117 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2120 } # ac_fn_c_try_compile
2122 # ac_fn_c_try_cpp LINENO
2123 # ----------------------
2124 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2127 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2128 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2130 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2131 *) ac_try_echo=$ac_try;;
2133 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2134 $as_echo "$ac_try_echo"; } >&5
2135 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2137 if test -s conftest.err; then
2138 grep -v '^ *+' conftest.err >conftest.er1
2139 cat conftest.er1 >&5
2140 mv -f conftest.er1 conftest.err
2142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2143 test $ac_status = 0; } >/dev/null && {
2144 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2145 test ! -s conftest.err
2149 $as_echo "$as_me: failed program was:" >&5
2150 sed 's/^/| /' conftest.$ac_ext >&5
2154 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2159 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2160 # -------------------------------------------------------
2161 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2162 # the include files in INCLUDES and setting the cache variable VAR
2164 ac_fn_c_check_header_mongrel ()
2166 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2167 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2169 $as_echo_n "checking for $2... " >&6; }
2170 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2171 $as_echo_n "(cached) " >&6
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2175 $as_echo "$ac_res" >&6; }
2177 # Is the header compilable?
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2179 $as_echo_n "checking $2 usability... " >&6; }
2180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2181 /* end confdefs.h. */
2185 if ac_fn_c_try_compile "$LINENO"; then :
2186 ac_header_compiler=yes
2188 ac_header_compiler=no
2190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2192 $as_echo "$ac_header_compiler" >&6; }
2194 # Is the header present?
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2196 $as_echo_n "checking $2 presence... " >&6; }
2197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2198 /* end confdefs.h. */
2201 if ac_fn_c_try_cpp "$LINENO"; then :
2202 ac_header_preproc=yes
2204 ac_header_preproc=no
2206 rm -f conftest.err conftest.$ac_ext
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2208 $as_echo "$ac_header_preproc" >&6; }
2210 # So? What about this header?
2211 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2214 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2216 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2220 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2222 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2224 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2226 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2228 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2232 $as_echo_n "checking for $2... " >&6; }
2233 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2234 $as_echo_n "(cached) " >&6
2236 eval "$3=\$ac_header_compiler"
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2240 $as_echo "$ac_res" >&6; }
2242 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2244 } # ac_fn_c_check_header_mongrel
2246 # ac_fn_c_try_run LINENO
2247 # ----------------------
2248 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2249 # that executables *can* be run.
2252 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2253 if { { ac_try="$ac_link"
2255 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2256 *) ac_try_echo
=$ac_try;;
2258 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2259 $as_echo "$ac_try_echo"; } >&5
2260 (eval "$ac_link") 2>&5
2262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2263 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2264 { { case "(($ac_try" in
2265 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2266 *) ac_try_echo=$ac_try;;
2268 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2269 $as_echo "$ac_try_echo"; } >&5
2270 (eval "$ac_try") 2>&5
2272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2273 test $ac_status = 0; }; }; then :
2276 $as_echo "$as_me: program exited with status $ac_status" >&5
2277 $as_echo "$as_me: failed program was:" >&5
2278 sed 's/^/| /' conftest.$ac_ext >&5
2280 ac_retval=$ac_status
2282 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2283 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2288 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2289 # -------------------------------------------------------
2290 # Tests whether HEADER exists and can be compiled using the include files in
2291 # INCLUDES, setting the cache variable VAR accordingly.
2292 ac_fn_c_check_header_compile ()
2294 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2296 $as_echo_n "checking for $2... " >&6; }
2297 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2298 $as_echo_n "(cached) " >&6
2300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2301 /* end confdefs.h. */
2305 if ac_fn_c_try_compile "$LINENO"; then :
2310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2314 $as_echo "$ac_res" >&6; }
2315 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2317 } # ac_fn_c_check_header_compile
2319 # ac_fn_c_try_link LINENO
2320 # -----------------------
2321 # Try to link conftest.$ac_ext, and return whether this succeeded.
2324 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2325 rm -f conftest.$ac_objext conftest$ac_exeext
2326 if { { ac_try="$ac_link"
2328 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2329 *) ac_try_echo
=$ac_try;;
2331 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2332 $as_echo "$ac_try_echo"; } >&5
2333 (eval "$ac_link") 2>conftest.err
2335 if test -s conftest.err
; then
2336 grep -v '^ *+' conftest.err
>conftest.er1
2337 cat conftest.er1
>&5
2338 mv -f conftest.er1 conftest.err
2340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2341 test $ac_status = 0; } && {
2342 test -z "$ac_c_werror_flag" ||
2343 test ! -s conftest.err
2344 } && test -s conftest
$ac_exeext && {
2345 test "$cross_compiling" = yes ||
2346 $as_test_x conftest
$ac_exeext
2350 $as_echo "$as_me: failed program was:" >&5
2351 sed 's/^/| /' conftest.
$ac_ext >&5
2355 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2356 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2357 # interfere with the next link command; also delete a directory that is
2358 # left behind by Apple's compiler. We do this before executing the actions.
2359 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2360 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2363 } # ac_fn_c_try_link
2365 # ac_fn_c_check_func LINENO FUNC VAR
2366 # ----------------------------------
2367 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2368 ac_fn_c_check_func
()
2370 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2372 $as_echo_n "checking for $2... " >&6; }
2373 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2374 $as_echo_n "(cached) " >&6
2376 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2377 /* end confdefs.h. */
2378 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2379 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2380 #define $2 innocuous_$2
2382 /* System header to define __stub macros and hopefully few prototypes,
2383 which can conflict with char $2 (); below.
2384 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2385 <limits.h> exists even on freestanding compilers. */
2388 # include <limits.h>
2390 # include <assert.h>
2395 /* Override any GCC internal prototype to avoid an error.
2396 Use char because int might match the return type of a GCC
2397 builtin and then its argument prototype would still apply. */
2402 /* The GNU C library defines this for functions which it implements
2403 to always fail with ENOSYS. Some functions are actually named
2404 something starting with __ and the normal name is an alias. */
2405 #if defined __stub_$2 || defined __stub___$2
2417 if ac_fn_c_try_link
"$LINENO"; then :
2422 rm -f core conftest.err conftest.
$ac_objext \
2423 conftest
$ac_exeext conftest.
$ac_ext
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2427 $as_echo "$ac_res" >&6; }
2428 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2430 } # ac_fn_c_check_func
2432 # ac_fn_c_check_decl LINENO SYMBOL VAR
2433 # ------------------------------------
2434 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2435 ac_fn_c_check_decl
()
2437 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2439 $as_echo_n "checking whether $2 is declared... " >&6; }
2440 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2441 $as_echo_n "(cached) " >&6
2443 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2444 /* end confdefs.h. */
2457 if ac_fn_c_try_compile
"$LINENO"; then :
2462 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2466 $as_echo "$ac_res" >&6; }
2467 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2469 } # ac_fn_c_check_decl
2471 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2472 # --------------------------------------------
2473 # Tries to find the compile-time value of EXPR in a program that includes
2474 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2476 ac_fn_c_compute_int
()
2478 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2479 if test "$cross_compiling" = yes; then
2480 # Depending upon the size, compute the lo and hi bounds.
2481 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2482 /* end confdefs.h. */
2487 static int test_array [1 - 2 * !(($2) >= 0)];
2494 if ac_fn_c_try_compile
"$LINENO"; then :
2497 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2498 /* end confdefs.h. */
2503 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2510 if ac_fn_c_try_compile
"$LINENO"; then :
2511 ac_hi
=$ac_mid; break
2513 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2514 if test $ac_lo -le $ac_mid; then
2518 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2520 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2523 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2524 /* end confdefs.h. */
2529 static int test_array [1 - 2 * !(($2) < 0)];
2536 if ac_fn_c_try_compile
"$LINENO"; then :
2539 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2540 /* end confdefs.h. */
2545 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2552 if ac_fn_c_try_compile
"$LINENO"; then :
2553 ac_lo
=$ac_mid; break
2555 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2556 if test $ac_mid -le $ac_hi; then
2560 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2562 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2567 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2569 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2570 # Binary search between lo and hi bounds.
2571 while test "x$ac_lo" != "x$ac_hi"; do
2572 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2573 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2574 /* end confdefs.h. */
2579 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2586 if ac_fn_c_try_compile
"$LINENO"; then :
2589 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2591 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2594 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2598 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2599 /* end confdefs.h. */
2601 static long int longval () { return $2; }
2602 static unsigned long int ulongval () { return $2; }
2609 FILE *f = fopen ("conftest.val", "w");
2614 long int i = longval ();
2617 fprintf (f, "%ld", i);
2621 unsigned long int i = ulongval ();
2624 fprintf (f, "%lu", i);
2626 /* Do not output a trailing newline, as this causes \r\n confusion
2627 on some platforms. */
2628 return ferror (f) || fclose (f) != 0;
2634 if ac_fn_c_try_run
"$LINENO"; then :
2635 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2639 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2640 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2644 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2647 } # ac_fn_c_compute_int
2649 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2650 # -------------------------------------------
2651 # Tests whether TYPE exists after having included INCLUDES, setting cache
2652 # variable VAR accordingly.
2653 ac_fn_c_check_type
()
2655 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2657 $as_echo_n "checking for $2... " >&6; }
2658 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2659 $as_echo_n "(cached) " >&6
2662 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2663 /* end confdefs.h. */
2674 if ac_fn_c_try_compile
"$LINENO"; then :
2675 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2676 /* end confdefs.h. */
2687 if ac_fn_c_try_compile
"$LINENO"; then :
2692 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2694 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2698 $as_echo "$ac_res" >&6; }
2699 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2701 } # ac_fn_c_check_type
2702 cat >config.log
<<_ACEOF
2703 This file contains any messages produced by compilers while
2704 running configure, to aid debugging if configure makes a mistake.
2706 It was created by $as_me, which was
2707 generated by GNU Autoconf 2.64. Invocation command line was
2719 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2720 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2721 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2722 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2723 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2725 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2726 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2728 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2729 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2730 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2731 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2732 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2733 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2734 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2738 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2742 test -z "$as_dir" && as_dir
=.
2743 $as_echo "PATH: $as_dir"
2759 # Keep a trace of the command line.
2760 # Strip out --no-create and --no-recursion so they do not pile up.
2761 # Strip out --silent because we don't want to record it for future runs.
2762 # Also quote any args containing shell meta-characters.
2763 # Make two passes to allow for proper duplicate-argument suppression.
2767 ac_must_keep_next
=false
2773 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2774 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2775 |
-silent |
--silent |
--silen |
--sile |
--sil)
2778 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2781 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2783 as_fn_append ac_configure_args1
" '$ac_arg'"
2784 if test $ac_must_keep_next = true
; then
2785 ac_must_keep_next
=false
# Got value, back to normal.
2788 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2789 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2790 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2791 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2792 case "$ac_configure_args0 " in
2793 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2796 -* ) ac_must_keep_next
=true
;;
2799 as_fn_append ac_configure_args
" '$ac_arg'"
2804 { ac_configure_args0
=; unset ac_configure_args0
;}
2805 { ac_configure_args1
=; unset ac_configure_args1
;}
2807 # When interrupted or exit'd, cleanup temporary files, and complete
2808 # config.log. We remove comments because anyway the quotes in there
2809 # would cause problems or look ugly.
2810 # WARNING: Use '\'' to represent an apostrophe within the trap.
2811 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2812 trap 'exit_status=$?
2813 # Save into config.log some information that might help in debugging.
2818 ## ---------------- ##
2819 ## Cache variables. ##
2820 ## ---------------- ##
2823 # The following way of writing the cache mishandles newlines in values,
2825 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2826 eval ac_val=\$$ac_var
2830 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2831 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2834 _ | IFS | as_nl) ;; #(
2835 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2836 *) { eval $ac_var=; unset $ac_var;} ;;
2841 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2842 *${as_nl}ac_space=\ *)
2844 "s/'\''/'\''\\\\'\'''\''/g;
2845 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2848 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2856 ## ----------------- ##
2857 ## Output variables. ##
2858 ## ----------------- ##
2861 for ac_var in $ac_subst_vars
2863 eval ac_val=\$$ac_var
2865 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2867 $as_echo "$ac_var='\''$ac_val'\''"
2871 if test -n "$ac_subst_files"; then
2873 ## ------------------- ##
2874 ## File substitutions. ##
2875 ## ------------------- ##
2878 for ac_var
in $ac_subst_files
2880 eval ac_val
=\$
$ac_var
2882 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2884 $as_echo "$ac_var='\''$ac_val'\''"
2889 if test -s confdefs.h; then
2899 test "$ac_signal" != 0 &&
2900 $as_echo "$as_me: caught signal $ac_signal"
2901 $as_echo "$as_me: exit $exit_status"
2903 rm -f core *.core core.conftest.* &&
2904 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2907 for ac_signal
in 1 2 13 15; do
2908 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2912 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2913 rm -f -r conftest
* confdefs.h
2915 $as_echo "/* confdefs.h */" > confdefs.h
2917 # Predefined preprocessor variables.
2919 cat >>confdefs.h
<<_ACEOF
2920 #define PACKAGE_NAME "$PACKAGE_NAME"
2923 cat >>confdefs.h
<<_ACEOF
2924 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2927 cat >>confdefs.h
<<_ACEOF
2928 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2931 cat >>confdefs.h
<<_ACEOF
2932 #define PACKAGE_STRING "$PACKAGE_STRING"
2935 cat >>confdefs.h
<<_ACEOF
2936 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2939 cat >>confdefs.h
<<_ACEOF
2940 #define PACKAGE_URL "$PACKAGE_URL"
2944 # Let the site file select an alternate cache file if it wants to.
2945 # Prefer an explicitly selected file to automatically selected ones.
2948 if test -n "$CONFIG_SITE"; then
2949 ac_site_file1
=$CONFIG_SITE
2950 elif test "x$prefix" != xNONE
; then
2951 ac_site_file1
=$prefix/share
/config.site
2952 ac_site_file2
=$prefix/etc
/config.site
2954 ac_site_file1
=$ac_default_prefix/share
/config.site
2955 ac_site_file2
=$ac_default_prefix/etc
/config.site
2957 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2959 test "x$ac_site_file" = xNONE
&& continue
2960 if test -r "$ac_site_file"; then
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2962 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2963 sed 's/^/| /' "$ac_site_file" >&5
2968 if test -r "$cache_file"; then
2969 # Some versions of bash will fail to source /dev/null (special
2970 # files actually), so we avoid doing that.
2971 if test -f "$cache_file"; then
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2973 $as_echo "$as_me: loading cache $cache_file" >&6;}
2975 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2976 *) .
"./$cache_file";;
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2981 $as_echo "$as_me: creating cache $cache_file" >&6;}
2985 as_fn_append ac_func_list
" btowc"
2986 as_fn_append ac_func_list
" isblank"
2987 as_fn_append ac_func_list
" iswctype"
2988 as_fn_append ac_func_list
" mbsrtowcs"
2989 as_fn_append ac_func_list
" mempcpy"
2990 as_fn_append ac_func_list
" wmemchr"
2991 as_fn_append ac_func_list
" wmemcpy"
2992 as_fn_append ac_func_list
" wmempcpy"
2993 as_fn_append ac_header_list
" wctype.h"
2994 gl_fnmatch_required
=GNU
2995 as_fn_append ac_func_list
" alarm"
2996 as_fn_append ac_header_list
" wchar.h"
2997 as_fn_append ac_header_list
" stdint.h"
2998 as_fn_append ac_header_list
" inttypes.h"
2999 as_fn_append ac_header_list
" unistd.h"
3000 as_fn_append ac_func_list
" symlink"
3001 as_fn_append ac_header_list
" math.h"
3002 as_fn_append ac_func_list
" mbsinit"
3003 as_fn_append ac_func_list
" mbrtowc"
3004 as_fn_append ac_header_list
" sys/mman.h"
3005 as_fn_append ac_func_list
" mprotect"
3006 as_fn_append ac_header_list
" sys/param.h"
3007 as_fn_append ac_header_list
" features.h"
3008 as_fn_append ac_func_list
" iswcntrl"
3009 # Check that the precious variables saved in the cache have kept the same
3011 ac_cache_corrupted
=false
3012 for ac_var
in $ac_precious_vars; do
3013 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
3014 eval ac_new_set
=\
$ac_env_${ac_var}_set
3015 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
3016 eval ac_new_val
=\
$ac_env_${ac_var}_value
3017 case $ac_old_set,$ac_new_set in
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3020 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3021 ac_cache_corrupted
=: ;;
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3024 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3025 ac_cache_corrupted
=: ;;
3028 if test "x$ac_old_val" != "x$ac_new_val"; then
3029 # differences in whitespace do not lead to failure.
3030 ac_old_val_w
=`echo x $ac_old_val`
3031 ac_new_val_w
=`echo x $ac_new_val`
3032 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3034 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3035 ac_cache_corrupted
=:
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3038 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3039 eval $ac_var=\
$ac_old_val
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3042 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3044 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3047 # Pass precious variables to config.status.
3048 if test "$ac_new_set" = set; then
3050 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3051 *) ac_arg
=$ac_var=$ac_new_val ;;
3053 case " $ac_configure_args " in
3054 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3055 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
3059 if $ac_cache_corrupted; then
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3061 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3063 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3064 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3066 ## -------------------- ##
3067 ## Main body of script. ##
3068 ## -------------------- ##
3071 ac_cpp
='$CPP $CPPFLAGS'
3072 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3073 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3074 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3077 ac_config_headers
="$ac_config_headers config.h:config.in"
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3081 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3082 # Check whether --enable-maintainer-mode was given.
3083 if test "${enable_maintainer_mode+set}" = set; then :
3084 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
3086 USE_MAINTAINER_MODE
=no
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3090 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3091 if test $USE_MAINTAINER_MODE = yes; then
3092 MAINTAINER_MODE_TRUE
=
3093 MAINTAINER_MODE_FALSE
='#'
3095 MAINTAINER_MODE_TRUE
='#'
3096 MAINTAINER_MODE_FALSE
=
3099 MAINT
=$MAINTAINER_MODE_TRUE
3104 ac_cpp
='$CPP $CPPFLAGS'
3105 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3106 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3107 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3108 if test -n "$ac_tool_prefix"; then
3109 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3110 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3112 $as_echo_n "checking for $ac_word... " >&6; }
3113 if test "${ac_cv_prog_CC+set}" = set; then :
3114 $as_echo_n "(cached) " >&6
3116 if test -n "$CC"; then
3117 ac_cv_prog_CC
="$CC" # Let the user override the test.
3119 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3123 test -z "$as_dir" && as_dir
=.
3124 for ac_exec_ext
in '' $ac_executable_extensions; do
3125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3126 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3137 if test -n "$CC"; then
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3139 $as_echo "$CC" >&6; }
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3142 $as_echo "no" >&6; }
3147 if test -z "$ac_cv_prog_CC"; then
3149 # Extract the first word of "gcc", so it can be a program name with args.
3150 set dummy gcc
; ac_word
=$2
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3152 $as_echo_n "checking for $ac_word... " >&6; }
3153 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3154 $as_echo_n "(cached) " >&6
3156 if test -n "$ac_ct_CC"; then
3157 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3159 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3163 test -z "$as_dir" && as_dir
=.
3164 for ac_exec_ext
in '' $ac_executable_extensions; do
3165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3166 ac_cv_prog_ac_ct_CC
="gcc"
3167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3176 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3177 if test -n "$ac_ct_CC"; then
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3179 $as_echo "$ac_ct_CC" >&6; }
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3182 $as_echo "no" >&6; }
3185 if test "x$ac_ct_CC" = x
; then
3188 case $cross_compiling:$ac_tool_warned in
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3191 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3192 ac_tool_warned
=yes ;;
3200 if test -z "$CC"; then
3201 if test -n "$ac_tool_prefix"; then
3202 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3203 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3205 $as_echo_n "checking for $ac_word... " >&6; }
3206 if test "${ac_cv_prog_CC+set}" = set; then :
3207 $as_echo_n "(cached) " >&6
3209 if test -n "$CC"; then
3210 ac_cv_prog_CC
="$CC" # Let the user override the test.
3212 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3216 test -z "$as_dir" && as_dir
=.
3217 for ac_exec_ext
in '' $ac_executable_extensions; do
3218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3219 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3230 if test -n "$CC"; then
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3232 $as_echo "$CC" >&6; }
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3235 $as_echo "no" >&6; }
3241 if test -z "$CC"; then
3242 # Extract the first word of "cc", so it can be a program name with args.
3243 set dummy cc
; ac_word
=$2
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3245 $as_echo_n "checking for $ac_word... " >&6; }
3246 if test "${ac_cv_prog_CC+set}" = set; then :
3247 $as_echo_n "(cached) " >&6
3249 if test -n "$CC"; then
3250 ac_cv_prog_CC
="$CC" # Let the user override the test.
3253 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3257 test -z "$as_dir" && as_dir
=.
3258 for ac_exec_ext
in '' $ac_executable_extensions; do
3259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3260 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3261 ac_prog_rejected
=yes
3265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3272 if test $ac_prog_rejected = yes; then
3273 # We found a bogon in the path, so make sure we never use it.
3274 set dummy
$ac_cv_prog_CC
3276 if test $# != 0; then
3277 # We chose a different compiler from the bogus one.
3278 # However, it has the same basename, so the bogon will be chosen
3279 # first if we set CC to just the basename; use the full file name.
3281 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3287 if test -n "$CC"; then
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3289 $as_echo "$CC" >&6; }
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3292 $as_echo "no" >&6; }
3297 if test -z "$CC"; then
3298 if test -n "$ac_tool_prefix"; then
3299 for ac_prog
in cl.exe
3301 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3302 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3304 $as_echo_n "checking for $ac_word... " >&6; }
3305 if test "${ac_cv_prog_CC+set}" = set; then :
3306 $as_echo_n "(cached) " >&6
3308 if test -n "$CC"; then
3309 ac_cv_prog_CC
="$CC" # Let the user override the test.
3311 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3315 test -z "$as_dir" && as_dir
=.
3316 for ac_exec_ext
in '' $ac_executable_extensions; do
3317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3318 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3329 if test -n "$CC"; then
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3331 $as_echo "$CC" >&6; }
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3334 $as_echo "no" >&6; }
3338 test -n "$CC" && break
3341 if test -z "$CC"; then
3343 for ac_prog
in cl.exe
3345 # Extract the first word of "$ac_prog", so it can be a program name with args.
3346 set dummy
$ac_prog; ac_word
=$2
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3348 $as_echo_n "checking for $ac_word... " >&6; }
3349 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3350 $as_echo_n "(cached) " >&6
3352 if test -n "$ac_ct_CC"; then
3353 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3355 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3359 test -z "$as_dir" && as_dir
=.
3360 for ac_exec_ext
in '' $ac_executable_extensions; do
3361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3362 ac_cv_prog_ac_ct_CC
="$ac_prog"
3363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3372 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3373 if test -n "$ac_ct_CC"; then
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3375 $as_echo "$ac_ct_CC" >&6; }
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3378 $as_echo "no" >&6; }
3382 test -n "$ac_ct_CC" && break
3385 if test "x$ac_ct_CC" = x
; then
3388 case $cross_compiling:$ac_tool_warned in
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3391 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3392 ac_tool_warned
=yes ;;
3401 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3402 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3403 as_fn_error
"no acceptable C compiler found in \$PATH
3404 See \`config.log' for more details." "$LINENO" 5; }
3406 # Provide some information about the compiler.
3407 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3410 for ac_option
in --version -v -V -qversion; do
3411 { { ac_try
="$ac_compiler $ac_option >&5"
3413 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3414 *) ac_try_echo=$ac_try;;
3416 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3417 $as_echo "$ac_try_echo"; } >&5
3418 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3420 if test -s conftest.err; then
3422 ... rest of stderr output deleted ...
3423 10q' conftest.err >conftest.er1
3424 cat conftest.er1 >&5
3425 rm -f conftest.er1 conftest.err
3427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3428 test $ac_status = 0; }
3431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3432 /* end confdefs.h. */
3437 FILE *f = fopen ("conftest.out", "w");
3438 return ferror (f) || fclose (f) != 0;
3444 ac_clean_files_save=$ac_clean_files
3445 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3446 # Try to create an executable without -o first, disregard a.out.
3447 # It will help us diagnose broken compilers, and finding out an intuition
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3450 $as_echo_n "checking for C compiler default output file name... " >&6; }
3451 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3453 # The possible output files:
3454 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3457 for ac_file in $ac_files
3460 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3461 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3466 if { { ac_try="$ac_link_default"
3468 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3469 *) ac_try_echo
=$ac_try;;
3471 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3472 $as_echo "$ac_try_echo"; } >&5
3473 (eval "$ac_link_default") 2>&5
3475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3476 test $ac_status = 0; }; then :
3477 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3478 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3479 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3480 # so that the user can short-circuit this test for compilers unknown to
3482 for ac_file
in $ac_files ''
3484 test -f "$ac_file" ||
continue
3486 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3489 # We found the default executable, but exeext='' is most
3493 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3495 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3497 # We set ac_cv_exeext here because the later test for it is not
3498 # safe: cross compilers may not add the suffix if given an `-o'
3499 # argument, so we may need to know it at that point already.
3500 # Even if this section looks crufty: it has the advantage of
3507 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3513 $as_echo "$ac_file" >&6; }
3514 if test -z "$ac_file"; then :
3515 $as_echo "$as_me: failed program was:" >&5
3516 sed 's/^/| /' conftest.
$ac_ext >&5
3518 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3519 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3520 { as_fn_set_status
77
3521 as_fn_error
"C compiler cannot create executables
3522 See \`config.log' for more details." "$LINENO" 5; }; }
3524 ac_exeext
=$ac_cv_exeext
3526 # Check that the compiler produces executables we can run. If not, either
3527 # the compiler is broken, or we cross compile.
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3529 $as_echo_n "checking whether the C compiler works... " >&6; }
3530 # If not cross compiling, check that we can run a simple program.
3531 if test "$cross_compiling" != yes; then
3532 if { ac_try
='./$ac_file'
3533 { { case "(($ac_try" in
3534 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3535 *) ac_try_echo=$ac_try;;
3537 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3538 $as_echo "$ac_try_echo"; } >&5
3539 (eval "$ac_try") 2>&5
3541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3542 test $ac_status = 0; }; }; then
3545 if test "$cross_compiling" = maybe; then
3548 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3549 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3550 as_fn_error "cannot run C compiled programs.
3551 If you meant to cross compile
, use \
`--host'.
3552 See \`config.log
' for more details." "$LINENO" 5; }
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3557 $as_echo "yes" >&6; }
3559 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3560 ac_clean_files=$ac_clean_files_save
3561 # Check that the compiler produces executables we can run. If not, either
3562 # the compiler is broken, or we cross compile.
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3564 $as_echo_n "checking whether we are cross compiling... " >&6; }
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3566 $as_echo "$cross_compiling" >&6; }
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3569 $as_echo_n "checking for suffix of executables... " >&6; }
3570 if { { ac_try="$ac_link"
3572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3573 *) ac_try_echo=$ac_try;;
3575 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3576 $as_echo "$ac_try_echo"; } >&5
3577 (eval "$ac_link") 2>&5
3579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3580 test $ac_status = 0; }; then :
3581 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3582 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3583 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3585 for ac_file
in conftest.exe conftest conftest.
*; do
3586 test -f "$ac_file" ||
continue
3588 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3589 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3595 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3596 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3597 as_fn_error
"cannot compute suffix of executables: cannot compile and link
3598 See \`config.log' for more details." "$LINENO" 5; }
3600 rm -f conftest
$ac_cv_exeext
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3602 $as_echo "$ac_cv_exeext" >&6; }
3604 rm -f conftest.
$ac_ext
3605 EXEEXT
=$ac_cv_exeext
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3608 $as_echo_n "checking for suffix of object files... " >&6; }
3609 if test "${ac_cv_objext+set}" = set; then :
3610 $as_echo_n "(cached) " >&6
3612 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3613 /* end confdefs.h. */
3623 rm -f conftest.o conftest.obj
3624 if { { ac_try
="$ac_compile"
3626 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3627 *) ac_try_echo=$ac_try;;
3629 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3630 $as_echo "$ac_try_echo"; } >&5
3631 (eval "$ac_compile") 2>&5
3633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3634 test $ac_status = 0; }; then :
3635 for ac_file in conftest.o conftest.obj conftest.*; do
3636 test -f "$ac_file" || continue;
3638 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3639 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3644 $as_echo "$as_me: failed program was:" >&5
3645 sed 's/^/| /' conftest.$ac_ext >&5
3647 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3648 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3649 as_fn_error "cannot compute suffix of object files
: cannot compile
3650 See \
`config.log' for more details." "$LINENO" 5; }
3652 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3655 $as_echo "$ac_cv_objext" >&6; }
3656 OBJEXT=$ac_cv_objext
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3659 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3660 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3661 $as_echo_n "(cached) " >&6
3663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3664 /* end confdefs.h. */
3677 if ac_fn_c_try_compile "$LINENO"; then :
3682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3683 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3687 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3688 if test $ac_compiler_gnu = yes; then
3693 ac_test_CFLAGS=${CFLAGS+set}
3694 ac_save_CFLAGS=$CFLAGS
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3696 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3697 if test "${ac_cv_prog_cc_g+set}" = set; then :
3698 $as_echo_n "(cached) " >&6
3700 ac_save_c_werror_flag=$ac_c_werror_flag
3701 ac_c_werror_flag=yes
3704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3705 /* end confdefs.h. */
3715 if ac_fn_c_try_compile "$LINENO"; then :
3719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3720 /* end confdefs.h. */
3730 if ac_fn_c_try_compile "$LINENO"; then :
3733 ac_c_werror_flag=$ac_save_c_werror_flag
3735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3736 /* end confdefs.h. */
3746 if ac_fn_c_try_compile "$LINENO"; then :
3749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3754 ac_c_werror_flag=$ac_save_c_werror_flag
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3757 $as_echo "$ac_cv_prog_cc_g" >&6; }
3758 if test "$ac_test_CFLAGS" = set; then
3759 CFLAGS=$ac_save_CFLAGS
3760 elif test $ac_cv_prog_cc_g = yes; then
3761 if test "$GCC" = yes; then
3767 if test "$GCC" = yes; then
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3774 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3775 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3776 $as_echo_n "(cached) " >&6
3778 ac_cv_prog_cc_c89=no
3780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3781 /* end confdefs.h. */
3784 #include <sys/types.h>
3785 #include <sys/stat.h>
3786 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3787 struct buf { int x; };
3788 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3789 static char *e (p, i)
3795 static char *f (char * (*g) (char **, int), char **p, ...)
3800 s = g (p, va_arg (v,int));
3805 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3806 function prototypes and stuff, but not '\xHH' hex character constants.
3807 These don't provoke an error unfortunately, instead are silently treated
3808 as 'x'. The following induces an error, until -std is added to get
3809 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3810 array size at least. It's necessary to write '\x00'==0 to get something
3811 that's true only with -std. */
3812 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3814 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3815 inside strings and character constants. */
3817 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3819 int test (int i, double x);
3820 struct s1 {int (*f) (int a);};
3821 struct s2 {int (*f) (double a);};
3822 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3828 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3833 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3834 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3836 CC="$ac_save_CC $ac_arg"
3837 if ac_fn_c_try_compile "$LINENO"; then :
3838 ac_cv_prog_cc_c89=$ac_arg
3840 rm -f core conftest.err conftest.$ac_objext
3841 test "x$ac_cv_prog_cc_c89" != "xno" && break
3843 rm -f conftest.$ac_ext
3848 case "x$ac_cv_prog_cc_c89" in
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3851 $as_echo "none needed" >&6; } ;;
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3854 $as_echo "unsupported" >&6; } ;;
3856 CC="$CC $ac_cv_prog_cc_c89"
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3858 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3860 if test "x$ac_cv_prog_cc_c89" != xno; then :
3865 ac_cpp='$CPP $CPPFLAGS'
3866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3871 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3872 for ac_t in install-sh install.sh shtool; do
3873 if test -f "$ac_dir/$ac_t"; then
3875 ac_install_sh="$ac_aux_dir/$ac_t -c"
3880 if test -z "$ac_aux_dir"; then
3881 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3884 # These three variables are undocumented and unsupported,
3885 # and are intended to be withdrawn in a future Autoconf release.
3886 # They can cause serious problems if a builder's source tree is in a directory
3887 # whose full name contains unusual characters.
3888 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3889 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3890 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3893 # Make sure we can run config.sub.
3894 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3895 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3898 $as_echo_n "checking build system type... " >&6; }
3899 if test "${ac_cv_build+set}" = set; then :
3900 $as_echo_n "(cached) " >&6
3902 ac_build_alias=$build_alias
3903 test "x$ac_build_alias" = x &&
3904 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3905 test "x$ac_build_alias" = x &&
3906 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3907 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3908 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3912 $as_echo "$ac_cv_build" >&6; }
3913 case $ac_cv_build in
3915 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3918 ac_save_IFS=$IFS; IFS='-'
3924 # Remember, the first character of IFS is used to create $*,
3925 # except with old shells:
3928 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3932 $as_echo_n "checking host system type... " >&6; }
3933 if test "${ac_cv_host+set}" = set; then :
3934 $as_echo_n "(cached) " >&6
3936 if test "x$host_alias" = x; then
3937 ac_cv_host=$ac_cv_build
3939 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3940 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3945 $as_echo "$ac_cv_host" >&6; }
3948 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3951 ac_save_IFS=$IFS; IFS='-'
3957 # Remember, the first character of IFS is used to create $*,
3958 # except with old shells:
3961 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
3966 ac_cpp='$CPP $CPPFLAGS'
3967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3971 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3972 # On Suns, sometimes $CPP names a directory.
3973 if test -n "$CPP" && test -d "$CPP"; then
3976 if test -z "$CPP"; then
3977 if test "${ac_cv_prog_CPP+set}" = set; then :
3978 $as_echo_n "(cached) " >&6
3980 # Double quotes because CPP needs to be expanded
3981 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3984 for ac_c_preproc_warn_flag in '' yes
3986 # Use a header file that comes with gcc, so configuring glibc
3987 # with a fresh cross-compiler works.
3988 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3989 # <limits.h> exists even on freestanding compilers.
3990 # On the NeXT, cc -E runs the code through the compiler's parser,
3991 # not just through cpp. "Syntax error" is here to catch this case.
3992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3993 /* end confdefs.h. */
3995 # include <limits.h>
3997 # include <assert.h>
4001 if ac_fn_c_try_cpp "$LINENO"; then :
4004 # Broken: fails on valid input.
4007 rm -f conftest.err conftest.$ac_ext
4009 # OK, works on sane cases. Now check whether nonexistent headers
4010 # can be detected and how.
4011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4012 /* end confdefs.h. */
4013 #include <ac_nonexistent.h>
4015 if ac_fn_c_try_cpp "$LINENO"; then :
4016 # Broken: success on invalid input.
4019 # Passes both tests.
4023 rm -f conftest.err conftest.$ac_ext
4026 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4027 rm -f conftest.err conftest.
$ac_ext
4028 if $ac_preproc_ok; then :
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4041 $as_echo "$CPP" >&6; }
4043 for ac_c_preproc_warn_flag
in '' yes
4045 # Use a header file that comes with gcc, so configuring glibc
4046 # with a fresh cross-compiler works.
4047 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4048 # <limits.h> exists even on freestanding compilers.
4049 # On the NeXT, cc -E runs the code through the compiler's parser,
4050 # not just through cpp. "Syntax error" is here to catch this case.
4051 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4052 /* end confdefs.h. */
4054 # include <limits.h>
4056 # include <assert.h>
4060 if ac_fn_c_try_cpp
"$LINENO"; then :
4063 # Broken: fails on valid input.
4066 rm -f conftest.err conftest.
$ac_ext
4068 # OK, works on sane cases. Now check whether nonexistent headers
4069 # can be detected and how.
4070 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4071 /* end confdefs.h. */
4072 #include <ac_nonexistent.h>
4074 if ac_fn_c_try_cpp
"$LINENO"; then :
4075 # Broken: success on invalid input.
4078 # Passes both tests.
4082 rm -f conftest.err conftest.
$ac_ext
4085 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4086 rm -f conftest.err conftest.
$ac_ext
4087 if $ac_preproc_ok; then :
4090 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4091 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4092 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
4093 See \`config.log' for more details." "$LINENO" 5; }
4097 ac_cpp
='$CPP $CPPFLAGS'
4098 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4099 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4100 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4104 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4105 if test "${ac_cv_path_GREP+set}" = set; then :
4106 $as_echo_n "(cached) " >&6
4108 if test -z "$GREP"; then
4109 ac_path_GREP_found
=false
4110 # Loop through the user's path and test for each of PROGNAME-LIST
4111 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4112 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4115 test -z "$as_dir" && as_dir
=.
4116 for ac_prog
in grep ggrep
; do
4117 for ac_exec_ext
in '' $ac_executable_extensions; do
4118 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4119 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4120 # Check for GNU ac_path_GREP and select it if it is found.
4121 # Check for GNU $ac_path_GREP
4122 case `"$ac_path_GREP" --version 2>&1` in
4124 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4127 $as_echo_n 0123456789 >"conftest.in"
4130 cat "conftest.in" "conftest.in" >"conftest.tmp"
4131 mv "conftest.tmp" "conftest.in"
4132 cp "conftest.in" "conftest.nl"
4133 $as_echo 'GREP' >> "conftest.nl"
4134 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4135 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4136 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4137 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4138 # Best one so far, save it but keep looking for a better one
4139 ac_cv_path_GREP
="$ac_path_GREP"
4140 ac_path_GREP_max
=$ac_count
4142 # 10*(2^10) chars as input seems more than enough
4143 test $ac_count -gt 10 && break
4145 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4148 $ac_path_GREP_found && break 3
4153 if test -z "$ac_cv_path_GREP"; then
4154 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4157 ac_cv_path_GREP
=$GREP
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4162 $as_echo "$ac_cv_path_GREP" >&6; }
4163 GREP
="$ac_cv_path_GREP"
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4167 $as_echo_n "checking for egrep... " >&6; }
4168 if test "${ac_cv_path_EGREP+set}" = set; then :
4169 $as_echo_n "(cached) " >&6
4171 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4172 then ac_cv_path_EGREP
="$GREP -E"
4174 if test -z "$EGREP"; then
4175 ac_path_EGREP_found
=false
4176 # Loop through the user's path and test for each of PROGNAME-LIST
4177 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4178 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4181 test -z "$as_dir" && as_dir
=.
4182 for ac_prog
in egrep; do
4183 for ac_exec_ext
in '' $ac_executable_extensions; do
4184 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4185 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4186 # Check for GNU ac_path_EGREP and select it if it is found.
4187 # Check for GNU $ac_path_EGREP
4188 case `"$ac_path_EGREP" --version 2>&1` in
4190 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4193 $as_echo_n 0123456789 >"conftest.in"
4196 cat "conftest.in" "conftest.in" >"conftest.tmp"
4197 mv "conftest.tmp" "conftest.in"
4198 cp "conftest.in" "conftest.nl"
4199 $as_echo 'EGREP' >> "conftest.nl"
4200 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4201 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4202 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4203 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4204 # Best one so far, save it but keep looking for a better one
4205 ac_cv_path_EGREP
="$ac_path_EGREP"
4206 ac_path_EGREP_max
=$ac_count
4208 # 10*(2^10) chars as input seems more than enough
4209 test $ac_count -gt 10 && break
4211 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4214 $ac_path_EGREP_found && break 3
4219 if test -z "$ac_cv_path_EGREP"; then
4220 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4223 ac_cv_path_EGREP
=$EGREP
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4229 $as_echo "$ac_cv_path_EGREP" >&6; }
4230 EGREP
="$ac_cv_path_EGREP"
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4234 $as_echo_n "checking for ANSI C header files... " >&6; }
4235 if test "${ac_cv_header_stdc+set}" = set; then :
4236 $as_echo_n "(cached) " >&6
4238 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4239 /* end confdefs.h. */
4253 if ac_fn_c_try_compile
"$LINENO"; then :
4254 ac_cv_header_stdc
=yes
4256 ac_cv_header_stdc
=no
4258 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4260 if test $ac_cv_header_stdc = yes; then
4261 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4262 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4263 /* end confdefs.h. */
4267 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4268 $EGREP "memchr" >/dev
/null
2>&1; then :
4271 ac_cv_header_stdc
=no
4277 if test $ac_cv_header_stdc = yes; then
4278 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4279 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4280 /* end confdefs.h. */
4284 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4285 $EGREP "free" >/dev
/null
2>&1; then :
4288 ac_cv_header_stdc
=no
4294 if test $ac_cv_header_stdc = yes; then
4295 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4296 if test "$cross_compiling" = yes; then :
4299 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4300 /* end confdefs.h. */
4303 #if ((' ' & 0x0FF) == 0x020)
4304 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4305 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4307 # define ISLOWER(c) \
4308 (('a' <= (c) && (c) <= 'i') \
4309 || ('j' <= (c) && (c) <= 'r') \
4310 || ('s' <= (c) && (c) <= 'z'))
4311 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4314 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4319 for (i = 0; i < 256; i++)
4320 if (XOR (islower (i), ISLOWER (i))
4321 || toupper (i) != TOUPPER (i))
4326 if ac_fn_c_try_run
"$LINENO"; then :
4329 ac_cv_header_stdc
=no
4331 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4332 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4338 $as_echo "$ac_cv_header_stdc" >&6; }
4339 if test $ac_cv_header_stdc = yes; then
4341 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4345 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4346 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4347 inttypes.h stdint.h unistd.h
4349 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4350 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4352 eval as_val
=\$
$as_ac_Header
4353 if test "x$as_val" = x
""yes; then :
4354 cat >>confdefs.h
<<_ACEOF
4355 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4366 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4367 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
4374 if test "$MINIX" = yes; then
4376 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4379 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4382 $as_echo "#define _MINIX 1" >>confdefs.h
4389 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4396 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4397 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4398 $as_echo_n "(cached) " >&6
4400 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4401 /* end confdefs.h. */
4403 # define __EXTENSIONS__ 1
4404 $ac_includes_default
4413 if ac_fn_c_try_compile
"$LINENO"; then :
4414 ac_cv_safe_to_define___extensions__
=yes
4416 ac_cv_safe_to_define___extensions__
=no
4418 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4421 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4422 test $ac_cv_safe_to_define___extensions__ = yes &&
4423 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4425 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4427 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4429 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4431 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4433 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
4439 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
4440 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
4441 $as_echo_n "(cached) " >&6
4444 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4445 /* end confdefs.h. */
4452 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4453 $EGREP "Amsterdam" >/dev
/null
2>&1; then :
4454 gl_cv_c_amsterdam_compiler
=yes
4456 gl_cv_c_amsterdam_compiler
=no
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
4463 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
4464 if test -z "$AR"; then
4465 if test $gl_cv_c_amsterdam_compiler = yes; then
4467 if test -z "$ARFLAGS"; then
4471 if test -n "$ac_tool_prefix"; then
4472 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4473 set dummy
${ac_tool_prefix}ar; ac_word
=$2
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4475 $as_echo_n "checking for $ac_word... " >&6; }
4476 if test "${ac_cv_prog_AR+set}" = set; then :
4477 $as_echo_n "(cached) " >&6
4479 if test -n "$AR"; then
4480 ac_cv_prog_AR
="$AR" # Let the user override the test.
4482 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4486 test -z "$as_dir" && as_dir
=.
4487 for ac_exec_ext
in '' $ac_executable_extensions; do
4488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4489 ac_cv_prog_AR
="${ac_tool_prefix}ar"
4490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4500 if test -n "$AR"; then
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4502 $as_echo "$AR" >&6; }
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4505 $as_echo "no" >&6; }
4510 if test -z "$ac_cv_prog_AR"; then
4512 # Extract the first word of "ar", so it can be a program name with args.
4513 set dummy
ar; ac_word
=$2
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4515 $as_echo_n "checking for $ac_word... " >&6; }
4516 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4517 $as_echo_n "(cached) " >&6
4519 if test -n "$ac_ct_AR"; then
4520 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
4522 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4526 test -z "$as_dir" && as_dir
=.
4527 for ac_exec_ext
in '' $ac_executable_extensions; do
4528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4529 ac_cv_prog_ac_ct_AR
="ar"
4530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4539 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
4540 if test -n "$ac_ct_AR"; then
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4542 $as_echo "$ac_ct_AR" >&6; }
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4545 $as_echo "no" >&6; }
4548 if test "x$ac_ct_AR" = x
; then
4551 case $cross_compiling:$ac_tool_warned in
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4554 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4555 ac_tool_warned
=yes ;;
4563 if test -z "$ARFLAGS"; then
4568 if test -z "$ARFLAGS"; then
4574 if test -z "$RANLIB"; then
4575 if test $gl_cv_c_amsterdam_compiler = yes; then
4578 if test -n "$ac_tool_prefix"; then
4579 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4580 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4582 $as_echo_n "checking for $ac_word... " >&6; }
4583 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4584 $as_echo_n "(cached) " >&6
4586 if test -n "$RANLIB"; then
4587 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4589 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4593 test -z "$as_dir" && as_dir
=.
4594 for ac_exec_ext
in '' $ac_executable_extensions; do
4595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4596 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4606 RANLIB
=$ac_cv_prog_RANLIB
4607 if test -n "$RANLIB"; then
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4609 $as_echo "$RANLIB" >&6; }
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4612 $as_echo "no" >&6; }
4617 if test -z "$ac_cv_prog_RANLIB"; then
4618 ac_ct_RANLIB
=$RANLIB
4619 # Extract the first word of "ranlib", so it can be a program name with args.
4620 set dummy ranlib
; ac_word
=$2
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4622 $as_echo_n "checking for $ac_word... " >&6; }
4623 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4624 $as_echo_n "(cached) " >&6
4626 if test -n "$ac_ct_RANLIB"; then
4627 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4629 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4633 test -z "$as_dir" && as_dir
=.
4634 for ac_exec_ext
in '' $ac_executable_extensions; do
4635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4636 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4646 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4647 if test -n "$ac_ct_RANLIB"; then
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4649 $as_echo "$ac_ct_RANLIB" >&6; }
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4652 $as_echo "no" >&6; }
4655 if test "x$ac_ct_RANLIB" = x
; then
4658 case $cross_compiling:$ac_tool_warned in
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4661 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4662 ac_tool_warned
=yes ;;
4664 RANLIB
=$ac_ct_RANLIB
4667 RANLIB
="$ac_cv_prog_RANLIB"
4683 # IEEE behaviour is the default on all CPUs except Alpha and SH
4684 # (according to the test results of Bruno Haible's ieeefp/fenv_default.m4
4685 # and the GCC 4.1.2 manual).
4688 # On Alpha systems, a compiler option provides the behaviour.
4689 # See the ieee(3) manual page, also available at
4690 # <http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V51B_HTML/MAN/MAN3/0600____.HTM>
4691 if test -n "$GCC"; then
4692 # GCC has the option -mieee.
4693 # For full IEEE compliance (rarely needed), use option -mieee-with-inexact.
4694 CPPFLAGS
="$CPPFLAGS -mieee"
4696 # Compaq (ex-DEC) C has the option -ieee, equivalent to -ieee_with_no_inexact.
4697 # For full IEEE compliance (rarely needed), use option -ieee_with_inexact.
4698 CPPFLAGS
="$CPPFLAGS -ieee"
4702 if test -n "$GCC"; then
4703 # GCC has the option -mieee.
4704 CPPFLAGS
="$CPPFLAGS -mieee"
4711 # Code from module alloca:
4712 # Code from module alloca-opt:
4713 # Code from module configmake:
4714 # Code from module extensions:
4716 # Code from module extern-inline:
4717 # Code from module float:
4718 # Code from module fnmatch:
4719 # Code from module fnmatch-gnu:
4720 # Code from module fpieee:
4722 # Code from module fpucw:
4723 # Code from module frexp:
4724 # Code from module frexpl:
4725 # Code from module include_next:
4726 # Code from module inttypes:
4727 # Code from module inttypes-incomplete:
4728 # Code from module isnand-nolibm:
4729 # Code from module isnanl-nolibm:
4730 # Code from module localcharset:
4731 # Code from module math:
4732 # Code from module mbrtowc:
4733 # Code from module mbsinit:
4734 # Code from module mbsrtowcs:
4735 # Code from module memchr:
4736 # Code from module memmem:
4737 # Code from module memmem-simple:
4738 # Code from module multiarch:
4739 # Code from module pathmax:
4740 # Code from module snippet/arg-nonnull:
4741 # Code from module snippet/c++defs:
4742 # Code from module snippet/warn-on-use:
4743 # Code from module ssize_t:
4744 # Code from module stdbool:
4745 # Code from module stddef:
4746 # Code from module stdint:
4747 # Code from module streq:
4748 # Code from module string:
4749 # Code from module strnlen1:
4750 # Code from module sys_types:
4751 # Code from module unistd:
4752 # Code from module update-copyright:
4753 # Code from module verify:
4754 # Code from module wchar:
4755 # Code from module wctype-h:
4758 ac_cpp
='$CPP $CPPFLAGS'
4759 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4760 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4761 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4762 if test -n "$ac_tool_prefix"; then
4763 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4764 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4766 $as_echo_n "checking for $ac_word... " >&6; }
4767 if test "${ac_cv_prog_CC+set}" = set; then :
4768 $as_echo_n "(cached) " >&6
4770 if test -n "$CC"; then
4771 ac_cv_prog_CC
="$CC" # Let the user override the test.
4773 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4777 test -z "$as_dir" && as_dir
=.
4778 for ac_exec_ext
in '' $ac_executable_extensions; do
4779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4780 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4791 if test -n "$CC"; then
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4793 $as_echo "$CC" >&6; }
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4796 $as_echo "no" >&6; }
4801 if test -z "$ac_cv_prog_CC"; then
4803 # Extract the first word of "gcc", so it can be a program name with args.
4804 set dummy gcc
; ac_word
=$2
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4806 $as_echo_n "checking for $ac_word... " >&6; }
4807 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4808 $as_echo_n "(cached) " >&6
4810 if test -n "$ac_ct_CC"; then
4811 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4813 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4817 test -z "$as_dir" && as_dir
=.
4818 for ac_exec_ext
in '' $ac_executable_extensions; do
4819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4820 ac_cv_prog_ac_ct_CC
="gcc"
4821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4830 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4831 if test -n "$ac_ct_CC"; then
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4833 $as_echo "$ac_ct_CC" >&6; }
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4836 $as_echo "no" >&6; }
4839 if test "x$ac_ct_CC" = x
; then
4842 case $cross_compiling:$ac_tool_warned in
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4845 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4846 ac_tool_warned
=yes ;;
4854 if test -z "$CC"; then
4855 if test -n "$ac_tool_prefix"; then
4856 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4857 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4859 $as_echo_n "checking for $ac_word... " >&6; }
4860 if test "${ac_cv_prog_CC+set}" = set; then :
4861 $as_echo_n "(cached) " >&6
4863 if test -n "$CC"; then
4864 ac_cv_prog_CC
="$CC" # Let the user override the test.
4866 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4870 test -z "$as_dir" && as_dir
=.
4871 for ac_exec_ext
in '' $ac_executable_extensions; do
4872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4873 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4884 if test -n "$CC"; then
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4886 $as_echo "$CC" >&6; }
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4889 $as_echo "no" >&6; }
4895 if test -z "$CC"; then
4896 # Extract the first word of "cc", so it can be a program name with args.
4897 set dummy cc
; ac_word
=$2
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4899 $as_echo_n "checking for $ac_word... " >&6; }
4900 if test "${ac_cv_prog_CC+set}" = set; then :
4901 $as_echo_n "(cached) " >&6
4903 if test -n "$CC"; then
4904 ac_cv_prog_CC
="$CC" # Let the user override the test.
4907 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4911 test -z "$as_dir" && as_dir
=.
4912 for ac_exec_ext
in '' $ac_executable_extensions; do
4913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4914 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4915 ac_prog_rejected
=yes
4919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4926 if test $ac_prog_rejected = yes; then
4927 # We found a bogon in the path, so make sure we never use it.
4928 set dummy
$ac_cv_prog_CC
4930 if test $# != 0; then
4931 # We chose a different compiler from the bogus one.
4932 # However, it has the same basename, so the bogon will be chosen
4933 # first if we set CC to just the basename; use the full file name.
4935 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4941 if test -n "$CC"; then
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4943 $as_echo "$CC" >&6; }
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4946 $as_echo "no" >&6; }
4951 if test -z "$CC"; then
4952 if test -n "$ac_tool_prefix"; then
4953 for ac_prog
in cl.exe
4955 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4956 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4958 $as_echo_n "checking for $ac_word... " >&6; }
4959 if test "${ac_cv_prog_CC+set}" = set; then :
4960 $as_echo_n "(cached) " >&6
4962 if test -n "$CC"; then
4963 ac_cv_prog_CC
="$CC" # Let the user override the test.
4965 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4969 test -z "$as_dir" && as_dir
=.
4970 for ac_exec_ext
in '' $ac_executable_extensions; do
4971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4972 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4983 if test -n "$CC"; then
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4985 $as_echo "$CC" >&6; }
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4988 $as_echo "no" >&6; }
4992 test -n "$CC" && break
4995 if test -z "$CC"; then
4997 for ac_prog
in cl.exe
4999 # Extract the first word of "$ac_prog", so it can be a program name with args.
5000 set dummy
$ac_prog; ac_word
=$2
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5002 $as_echo_n "checking for $ac_word... " >&6; }
5003 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5004 $as_echo_n "(cached) " >&6
5006 if test -n "$ac_ct_CC"; then
5007 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
5009 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5013 test -z "$as_dir" && as_dir
=.
5014 for ac_exec_ext
in '' $ac_executable_extensions; do
5015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5016 ac_cv_prog_ac_ct_CC
="$ac_prog"
5017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5026 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
5027 if test -n "$ac_ct_CC"; then
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5029 $as_echo "$ac_ct_CC" >&6; }
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5032 $as_echo "no" >&6; }
5036 test -n "$ac_ct_CC" && break
5039 if test "x$ac_ct_CC" = x
; then
5042 case $cross_compiling:$ac_tool_warned in
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5045 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5046 ac_tool_warned
=yes ;;
5055 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5056 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5057 as_fn_error
"no acceptable C compiler found in \$PATH
5058 See \`config.log' for more details." "$LINENO" 5; }
5060 # Provide some information about the compiler.
5061 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5064 for ac_option
in --version -v -V -qversion; do
5065 { { ac_try
="$ac_compiler $ac_option >&5"
5067 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5068 *) ac_try_echo=$ac_try;;
5070 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5071 $as_echo "$ac_try_echo"; } >&5
5072 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5074 if test -s conftest.err; then
5076 ... rest of stderr output deleted ...
5077 10q' conftest.err >conftest.er1
5078 cat conftest.er1 >&5
5079 rm -f conftest.er1 conftest.err
5081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5082 test $ac_status = 0; }
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5086 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5087 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5088 $as_echo_n "(cached) " >&6
5090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5091 /* end confdefs.h. */
5104 if ac_fn_c_try_compile "$LINENO"; then :
5109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5110 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5114 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5115 if test $ac_compiler_gnu = yes; then
5120 ac_test_CFLAGS=${CFLAGS+set}
5121 ac_save_CFLAGS=$CFLAGS
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5123 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5124 if test "${ac_cv_prog_cc_g+set}" = set; then :
5125 $as_echo_n "(cached) " >&6
5127 ac_save_c_werror_flag=$ac_c_werror_flag
5128 ac_c_werror_flag=yes
5131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5132 /* end confdefs.h. */
5142 if ac_fn_c_try_compile "$LINENO"; then :
5146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5147 /* end confdefs.h. */
5157 if ac_fn_c_try_compile "$LINENO"; then :
5160 ac_c_werror_flag=$ac_save_c_werror_flag
5162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5163 /* end confdefs.h. */
5173 if ac_fn_c_try_compile "$LINENO"; then :
5176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5181 ac_c_werror_flag=$ac_save_c_werror_flag
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5184 $as_echo "$ac_cv_prog_cc_g" >&6; }
5185 if test "$ac_test_CFLAGS" = set; then
5186 CFLAGS=$ac_save_CFLAGS
5187 elif test $ac_cv_prog_cc_g = yes; then
5188 if test "$GCC" = yes; then
5194 if test "$GCC" = yes; then
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5201 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5202 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5203 $as_echo_n "(cached) " >&6
5205 ac_cv_prog_cc_c89=no
5207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5208 /* end confdefs.h. */
5211 #include <sys/types.h>
5212 #include <sys/stat.h>
5213 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5214 struct buf { int x; };
5215 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5216 static char *e (p, i)
5222 static char *f (char * (*g) (char **, int), char **p, ...)
5227 s = g (p, va_arg (v,int));
5232 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5233 function prototypes and stuff, but not '\xHH' hex character constants.
5234 These don't provoke an error unfortunately, instead are silently treated
5235 as 'x'. The following induces an error, until -std is added to get
5236 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5237 array size at least. It's necessary to write '\x00'==0 to get something
5238 that's true only with -std. */
5239 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5241 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5242 inside strings and character constants. */
5244 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5246 int test (int i, double x);
5247 struct s1 {int (*f) (int a);};
5248 struct s2 {int (*f) (double a);};
5249 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5255 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5260 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5261 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5263 CC="$ac_save_CC $ac_arg"
5264 if ac_fn_c_try_compile "$LINENO"; then :
5265 ac_cv_prog_cc_c89=$ac_arg
5267 rm -f core conftest.err conftest.$ac_objext
5268 test "x$ac_cv_prog_cc_c89" != "xno" && break
5270 rm -f conftest.$ac_ext
5275 case "x$ac_cv_prog_cc_c89" in
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5278 $as_echo "none needed" >&6; } ;;
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5281 $as_echo "unsupported" >&6; } ;;
5283 CC="$CC $ac_cv_prog_cc_c89"
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5285 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5287 if test "x$ac_cv_prog_cc_c89" != xno; then :
5292 ac_cpp='$CPP $CPPFLAGS'
5293 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5294 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5295 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5298 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5302 for ac_dir in ../.. "$srcdir"/../..; do
5303 for ac_t in install-sh install.sh shtool; do
5304 if test -f "$ac_dir/$ac_t"; then
5306 ac_install_sh="$ac_aux_dir/$ac_t -c"
5311 if test -z "$ac_aux_dir"; then
5312 as_fn_error "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5
5315 # These three variables are undocumented and unsupported,
5316 # and are intended to be withdrawn in a future Autoconf release.
5317 # They can cause serious problems if a builder's source tree is in a directory
5318 # whose full name contains unusual characters.
5319 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5320 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5321 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
5325 $as_echo_n "checking target system type... " >&6; }
5326 if test "${ac_cv_target+set}" = set; then :
5327 $as_echo_n "(cached) " >&6
5329 if test "x$target_alias" = x; then
5330 ac_cv_target=$ac_cv_host
5332 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
5333 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
5338 $as_echo "$ac_cv_target" >&6; }
5339 case $ac_cv_target in
5341 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
5343 target=$ac_cv_target
5344 ac_save_IFS=$IFS; IFS='-'
5350 # Remember, the first character of IFS is used to create $*,
5351 # except with old shells:
5354 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
5357 # The aliases save the names the user supplied, while $host etc.
5358 # will get canonicalized.
5359 test -n "$target_alias" &&
5360 test "$program_prefix$program_suffix$program_transform_name" = \
5362 program_prefix=${target_alias}-
5370 LIBC_FATAL_STDERR_=1
5371 export LIBC_FATAL_STDERR_
5373 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5374 # for constant arguments. Useless!
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5376 $as_echo_n "checking for working alloca.h... " >&6; }
5377 if test "${ac_cv_working_alloca_h+set}" = set; then :
5378 $as_echo_n "(cached) " >&6
5380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5381 /* end confdefs.h. */
5386 char *p = (char *) alloca (2 * sizeof (int));
5392 if ac_fn_c_try_link "$LINENO"; then :
5393 ac_cv_working_alloca_h=yes
5395 ac_cv_working_alloca_h=no
5397 rm -f core conftest.err conftest.$ac_objext \
5398 conftest$ac_exeext conftest.$ac_ext
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5401 $as_echo "$ac_cv_working_alloca_h" >&6; }
5402 if test $ac_cv_working_alloca_h = yes; then
5404 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5409 $as_echo_n "checking for alloca... " >&6; }
5410 if test "${ac_cv_func_alloca_works+set}" = set; then :
5411 $as_echo_n "(cached) " >&6
5413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5414 /* end confdefs.h. */
5416 # define alloca __builtin_alloca
5419 # include <malloc.h>
5420 # define alloca _alloca
5422 # ifdef HAVE_ALLOCA_H
5423 # include <alloca.h>
5428 # ifndef alloca /* predefined by HP cc +Olibcalls */
5439 char *p = (char *) alloca (1);
5445 if ac_fn_c_try_link "$LINENO"; then :
5446 ac_cv_func_alloca_works=yes
5448 ac_cv_func_alloca_works=no
5450 rm -f core conftest.err conftest.$ac_objext \
5451 conftest$ac_exeext conftest.$ac_ext
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5454 $as_echo "$ac_cv_func_alloca_works" >&6; }
5456 if test $ac_cv_func_alloca_works = yes; then
5458 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
5461 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5462 # that cause trouble. Some versions do not even contain alloca or
5463 # contain a buggy version. If you still want to use their alloca,
5464 # use ar to extract alloca.o from them instead of compiling alloca.c.
5470 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
5472 $as_echo "#define C_ALLOCA 1" >>confdefs.h
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
5476 $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
5477 if test "${ac_cv_os_cray+set}" = set; then :
5478 $as_echo_n "(cached) " >&6
5480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5481 /* end confdefs.h. */
5482 #if defined CRAY && ! defined CRAY2
5489 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5490 $EGREP "webecray" >/dev/null 2>&1; then :
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5499 $as_echo "$ac_cv_os_cray" >&6; }
5500 if test $ac_cv_os_cray = yes; then
5501 for ac_func in _getb67 GETB67 getb67; do
5502 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5503 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5504 eval as_val=\$$as_ac_var
5505 if test "x$as_val" = x""yes; then :
5507 cat >>confdefs.h <<_ACEOF
5508 #define CRAY_STACKSEG_END $ac_func
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5518 $as_echo_n "checking stack direction for C alloca... " >&6; }
5519 if test "${ac_cv_c_stack_direction+set}" = set; then :
5520 $as_echo_n "(cached) " >&6
5522 if test "$cross_compiling" = yes; then :
5523 ac_cv_c_stack_direction=0
5525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5526 /* end confdefs.h. */
5527 $ac_includes_default
5529 find_stack_direction (int *addr, int depth)
5534 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
5535 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
5540 main (int argc, char **argv)
5542 return find_stack_direction (0, argc + !argv + 20) < 0;
5545 if ac_fn_c_try_run "$LINENO"; then :
5546 ac_cv_c_stack_direction=1
5548 ac_cv_c_stack_direction=-1
5550 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5551 conftest.$ac_objext conftest.beam conftest.$ac_ext
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5556 $as_echo "$ac_cv_c_stack_direction" >&6; }
5557 cat >>confdefs.h <<_ACEOF
5558 #define STACK_DIRECTION $ac_cv_c_stack_direction
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
5570 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
5571 if test "${gl_cv_have_include_next+set}" = set; then :
5572 $as_echo_n "(cached) " >&6
5574 rm -rf conftestd1a conftestd1b conftestd2
5575 mkdir conftestd1a conftestd1b conftestd2
5576 cat <<EOF > conftestd1a/conftest.h
5577 #define DEFINED_IN_CONFTESTD1
5578 #include_next <conftest.h>
5579 #ifdef DEFINED_IN_CONFTESTD2
5582 #error "include_next doesn't work"
5585 cat <<EOF > conftestd1b/conftest.h
5586 #define DEFINED_IN_CONFTESTD1
5588 #include_next <conftest.h>
5589 #ifdef DEFINED_IN_CONFTESTD2
5592 #error "include_next doesn't work"
5595 cat <<EOF > conftestd2/conftest.h
5596 #ifndef DEFINED_IN_CONFTESTD1
5597 #error "include_next test doesn't work"
5599 #define DEFINED_IN_CONFTESTD2
5601 gl_save_CPPFLAGS="$CPPFLAGS"
5602 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
5603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5604 /* end confdefs.h. */
5605 #include <conftest.h>
5607 if ac_fn_c_try_compile "$LINENO"; then :
5608 gl_cv_have_include_next=yes
5610 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
5611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5612 /* end confdefs.h. */
5613 #include <conftest.h>
5615 if ac_fn_c_try_compile "$LINENO"; then :
5616 gl_cv_have_include_next=buggy
5618 gl_cv_have_include_next=no
5620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5624 CPPFLAGS="$gl_save_CPPFLAGS"
5625 rm -rf conftestd1a conftestd1b conftestd2
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
5629 $as_echo "$gl_cv_have_include_next" >&6; }
5630 PRAGMA_SYSTEM_HEADER=
5631 if test $gl_cv_have_include_next = yes; then
5632 INCLUDE_NEXT=include_next
5633 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
5634 if test -n "$GCC"; then
5635 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
5638 if test $gl_cv_have_include_next = buggy; then
5639 INCLUDE_NEXT=include
5640 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
5642 INCLUDE_NEXT=include
5643 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
5650 $as_echo_n "checking whether system header files limit the line length... " >&6; }
5651 if test "${gl_cv_pragma_columns+set}" = set; then :
5652 $as_echo_n "(cached) " >&6
5654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5655 /* end confdefs.h. */
5662 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5663 $EGREP "choke me" >/dev/null 2>&1; then :
5664 gl_cv_pragma_columns=yes
5666 gl_cv_pragma_columns=no
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
5673 $as_echo "$gl_cv_pragma_columns" >&6; }
5674 if test $gl_cv_pragma_columns = yes; then
5675 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
5684 $as_echo_n "checking for mbstate_t... " >&6; }
5685 if test "${ac_cv_type_mbstate_t+set}" = set; then :
5686 $as_echo_n "(cached) " >&6
5688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5689 /* end confdefs.h. */
5690 $ac_includes_default
5691 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
5693 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5694 included before <wchar.h>. */
5702 mbstate_t x; return sizeof x;
5707 if ac_fn_c_try_compile "$LINENO"; then :
5708 ac_cv_type_mbstate_t=yes
5710 ac_cv_type_mbstate_t=no
5712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
5715 $as_echo "$ac_cv_type_mbstate_t" >&6; }
5716 if test $ac_cv_type_mbstate_t = yes; then
5718 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
5722 $as_echo "#define mbstate_t int" >>confdefs.h
5729 for ac_func in $ac_func_list
5731 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5732 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5733 eval as_val=\$$as_ac_var
5734 if test "x$as_val" = x""yes; then :
5735 cat >>confdefs.h <<_ACEOF
5736 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5761 for ac_header in $ac_header_list
5763 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
5764 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5766 eval as_val=\$$as_ac_Header
5767 if test "x$as_val" = x""yes; then :
5768 cat >>confdefs.h <<_ACEOF
5769 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5854 GNULIB_REMAINDERF=0;
5855 GNULIB_REMAINDERL=0;
5941 HAVE_DECL_COPYSIGNF=1;
5958 HAVE_DECL_REMAINDER=1;
5959 HAVE_DECL_REMAINDERL=1;
6021 REPLACE_REMAINDER=0;
6022 REPLACE_REMAINDERF=0;
6023 REPLACE_REMAINDERL=0;
6028 REPLACE_SIGNBIT_USING_GCC=0;
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used without linking with libm" >&5
6036 $as_echo_n "checking whether frexp() can be used without linking with libm... " >&6; }
6037 if test "${gl_cv_func_frexp_no_libm+set}" = set; then :
6038 $as_echo_n "(cached) " >&6
6041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6042 /* end confdefs.h. */
6048 int e; return frexp (x, &e) > 0;
6053 if ac_fn_c_try_link "$LINENO"; then :
6054 gl_cv_func_frexp_no_libm=yes
6056 gl_cv_func_frexp_no_libm=no
6058 rm -f core conftest.err conftest.$ac_objext \
6059 conftest$ac_exeext conftest.$ac_ext
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_no_libm" >&5
6063 $as_echo "$gl_cv_func_frexp_no_libm" >&6; }
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long double and double are the same" >&5
6069 $as_echo_n "checking whether long double and double are the same... " >&6; }
6070 if test "${gl_cv_long_double_equals_double+set}" = set; then :
6071 $as_echo_n "(cached) " >&6
6073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6074 /* end confdefs.h. */
6079 typedef int check[sizeof (long double) == sizeof (double)
6080 && LDBL_MANT_DIG == DBL_MANT_DIG
6081 && LDBL_MAX_EXP == DBL_MAX_EXP
6082 && LDBL_MIN_EXP == DBL_MIN_EXP
6089 if ac_fn_c_try_compile "$LINENO"; then :
6090 gl_cv_long_double_equals_double=yes
6092 gl_cv_long_double_equals_double=no
6094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_long_double_equals_double" >&5
6098 $as_echo "$gl_cv_long_double_equals_double" >&6; }
6099 if test $gl_cv_long_double_equals_double = yes; then
6101 $as_echo "#define HAVE_SAME_LONG_DOUBLE_AS_DOUBLE 1" >>confdefs.h
6103 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=1
6105 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=0
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6111 $as_echo_n "checking for unsigned long long int... " >&6; }
6112 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6113 $as_echo_n "(cached) " >&6
6115 ac_cv_type_unsigned_long_long_int=yes
6116 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6118 /* end confdefs.h. */
6120 /* For now, do not test the preprocessor; as of 2007 there are too many
6121 implementations with broken preprocessors. Perhaps this can
6122 be revisited in 2012. In the meantime, code should not expect
6123 #if to work with literals wider than 32 bits. */
6124 /* Test literals. */
6125 long long int ll = 9223372036854775807ll;
6126 long long int nll = -9223372036854775807LL;
6127 unsigned long long int ull = 18446744073709551615ULL;
6128 /* Test constant expressions. */
6129 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6131 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6137 /* Test availability of runtime routines for shift and division. */
6138 long long int llmax = 9223372036854775807ll;
6139 unsigned long long int ullmax = 18446744073709551615ull;
6140 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6141 | (llmax / ll) | (llmax % ll)
6142 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6143 | (ullmax / ull) | (ullmax % ull));
6149 if ac_fn_c_try_link "$LINENO"; then :
6152 ac_cv_type_unsigned_long_long_int=no
6154 rm -f core conftest.err conftest.$ac_objext \
6155 conftest$ac_exeext conftest.$ac_ext
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6159 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6160 if test $ac_cv_type_unsigned_long_long_int = yes; then
6162 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6169 $as_echo_n "checking for long long int... " >&6; }
6170 if test "${ac_cv_type_long_long_int+set}" = set; then :
6171 $as_echo_n "(cached) " >&6
6173 ac_cv_type_long_long_int=yes
6174 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6175 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
6176 if test $ac_cv_type_long_long_int = yes; then
6177 if test "$cross_compiling" = yes; then :
6180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6181 /* end confdefs.h. */
6185 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6186 # define LLONG_MAX (HALF - 1 + HALF)
6191 long long int n = 1;
6195 long long int m = n << i;
6198 if (LLONG_MAX / 2 < m)
6206 if ac_fn_c_try_run "$LINENO"; then :
6209 ac_cv_type_long_long_int=no
6211 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6212 conftest.$ac_objext conftest.beam conftest.$ac_ext
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6219 $as_echo "$ac_cv_type_long_long_int" >&6; }
6220 if test $ac_cv_type_long_long_int = yes; then
6222 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6231 gl_cv_c_multiarch=no
6232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6233 /* end confdefs.h. */
6234 #ifndef __APPLE_CC__
6235 not a universal capable compiler
6240 if ac_fn_c_try_compile "$LINENO"; then :
6244 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
6245 if test -n "$prev"; then
6247 i?86 | x86_64 | ppc | ppc64)
6248 if test -z "$arch" || test "$arch" = "$word"; then
6251 gl_cv_c_multiarch=yes
6257 if test "x$word" = "x-arch"; then
6264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6265 if test $gl_cv_c_multiarch = yes; then
6266 APPLE_UNIVERSAL_BUILD=1
6268 APPLE_UNIVERSAL_BUILD=0
6275 if test $ac_cv_type_long_long_int = yes; then
6276 HAVE_LONG_LONG_INT=1
6278 HAVE_LONG_LONG_INT=0
6282 if test $ac_cv_type_unsigned_long_long_int = yes; then
6283 HAVE_UNSIGNED_LONG_LONG_INT=1
6285 HAVE_UNSIGNED_LONG_LONG_INT=0
6290 if test $ac_cv_header_wchar_h = yes; then
6297 if test $ac_cv_header_inttypes_h = yes; then
6304 if test $ac_cv_header_sys_types_h = yes; then
6320 if test $gl_cv_have_include_next = yes; then
6321 gl_cv_next_stdint_h='<'stdint.h'>'
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
6324 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
6325 if test "${gl_cv_next_stdint_h+set}" = set; then :
6326 $as_echo_n "(cached) " >&6
6329 if test $ac_cv_header_stdint_h = yes; then
6332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6333 /* end confdefs.h. */
6338 aix*) gl_absname_cpp="$ac_cpp -C" ;;
6339 *) gl_absname_cpp="$ac_cpp" ;;
6344 gl_dirsep_regex='[/\\]'
6347 gl_dirsep_regex='\/'
6350 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
6352 gl_header_literal_regex=`echo 'stdint.h' \
6353 |
sed -e "$gl_make_literal_regex_sed"`
6354 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
6355 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
6360 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6361 sed -n "$gl_absolute_header_sed"`'"'
6363 gl_cv_next_stdint_h='<'stdint.h'>'
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
6369 $as_echo "$gl_cv_next_stdint_h" >&6; }
6371 NEXT_STDINT_H=$gl_cv_next_stdint_h
6373 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
6374 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6375 gl_next_as_first_directive='<'stdint.h'>'
6377 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6378 gl_next_as_first_directive=$gl_cv_next_stdint_h
6380 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
6385 if test $ac_cv_header_stdint_h = yes; then
6392 if test $ac_cv_header_stdint_h = yes; then
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
6394 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
6395 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
6396 $as_echo_n "(cached) " >&6
6398 gl_cv_header_working_stdint_h=no
6399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6400 /* end confdefs.h. */
6403 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
6405 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
6406 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
6407 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
6411 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6412 included before <wchar.h>. */
6423 int8_t a1 = INT8_MAX;
6424 int8_t a1min = INT8_MIN;
6427 int16_t a2 = INT16_MAX;
6428 int16_t a2min = INT16_MIN;
6431 int32_t a3 = INT32_MAX;
6432 int32_t a3min = INT32_MIN;
6435 int64_t a4 = INT64_MAX;
6436 int64_t a4min = INT64_MIN;
6439 uint8_t b1 = UINT8_MAX;
6441 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
6444 uint16_t b2 = UINT16_MAX;
6447 uint32_t b3 = UINT32_MAX;
6450 uint64_t b4 = UINT64_MAX;
6452 int_least8_t c1 = INT8_C (0x7f);
6453 int_least8_t c1max = INT_LEAST8_MAX;
6454 int_least8_t c1min = INT_LEAST8_MIN;
6455 int_least16_t c2 = INT16_C (0x7fff);
6456 int_least16_t c2max = INT_LEAST16_MAX;
6457 int_least16_t c2min = INT_LEAST16_MIN;
6458 int_least32_t c3 = INT32_C (0x7fffffff);
6459 int_least32_t c3max = INT_LEAST32_MAX;
6460 int_least32_t c3min = INT_LEAST32_MIN;
6461 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
6462 int_least64_t c4max = INT_LEAST64_MAX;
6463 int_least64_t c4min = INT_LEAST64_MIN;
6464 uint_least8_t d1 = UINT8_C (0xff);
6465 uint_least8_t d1max = UINT_LEAST8_MAX;
6466 uint_least16_t d2 = UINT16_C (0xffff);
6467 uint_least16_t d2max = UINT_LEAST16_MAX;
6468 uint_least32_t d3 = UINT32_C (0xffffffff);
6469 uint_least32_t d3max = UINT_LEAST32_MAX;
6470 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
6471 uint_least64_t d4max = UINT_LEAST64_MAX;
6472 int_fast8_t e1 = INT_FAST8_MAX;
6473 int_fast8_t e1min = INT_FAST8_MIN;
6474 int_fast16_t e2 = INT_FAST16_MAX;
6475 int_fast16_t e2min = INT_FAST16_MIN;
6476 int_fast32_t e3 = INT_FAST32_MAX;
6477 int_fast32_t e3min = INT_FAST32_MIN;
6478 int_fast64_t e4 = INT_FAST64_MAX;
6479 int_fast64_t e4min = INT_FAST64_MIN;
6480 uint_fast8_t f1 = UINT_FAST8_MAX;
6481 uint_fast16_t f2 = UINT_FAST16_MAX;
6482 uint_fast32_t f3 = UINT_FAST32_MAX;
6483 uint_fast64_t f4 = UINT_FAST64_MAX;
6485 intptr_t g = INTPTR_MAX;
6486 intptr_t gmin = INTPTR_MIN;
6489 uintptr_t h = UINTPTR_MAX;
6491 intmax_t i = INTMAX_MAX;
6492 uintmax_t j = UINTMAX_MAX;
6494 #include <limits.h> /* for CHAR_BIT */
6495 #define TYPE_MINIMUM(t) \
6496 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
6497 #define TYPE_MAXIMUM(t) \
6498 ((t) ((t) 0 < (t) -1 \
6500 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
6503 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
6504 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
6506 /* Detect bug in FreeBSD 6.0 / ia64. */
6507 int check_SIG_ATOMIC:
6508 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
6509 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
6511 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
6513 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
6514 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
6516 /* Detect bug in mingw. */
6518 WINT_MIN == TYPE_MINIMUM (wint_t)
6519 && WINT_MAX == TYPE_MAXIMUM (wint_t)
6522 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
6524 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
6526 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
6528 /* Detect bugs in OpenBSD 3.9 stdint.h. */
6530 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
6533 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
6536 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
6539 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
6541 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
6542 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
6543 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
6544 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
6545 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
6546 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
6547 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
6548 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
6549 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
6550 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
6551 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
6562 if ac_fn_c_try_compile "$LINENO"; then :
6563 if test "$cross_compiling" = yes; then :
6564 gl_cv_header_working_stdint_h=yes
6567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6568 /* end confdefs.h. */
6571 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
6575 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6576 included before <wchar.h>. */
6588 #define MVAL(macro) MVAL1(macro)
6589 #define MVAL1(expression) #expression
6590 static const char *macro_values[] =
6624 for (mv = macro_values; *mv != NULL; mv++)
6626 const char *value = *mv;
6627 /* Test whether it looks like a cast expression. */
6628 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
6629 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
6630 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
6631 || strncmp (value, "((int)"/*)*/, 6) == 0
6632 || strncmp (value, "((signed short)"/*)*/, 15) == 0
6633 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
6634 return mv - macro_values + 1;
6642 if ac_fn_c_try_run "$LINENO"; then :
6643 gl_cv_header_working_stdint_h=yes
6645 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6646 conftest.$ac_objext conftest.beam conftest.$ac_ext
6651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
6655 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
6657 if test "$gl_cv_header_working_stdint_h" = yes; then
6660 for ac_header in sys/inttypes.h sys/bitypes.h
6662 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6663 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6664 eval as_val=\$$as_ac_Header
6665 if test "x$as_val" = x""yes; then :
6666 cat >>confdefs.h <<_ACEOF
6667 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6674 if test $ac_cv_header_sys_inttypes_h = yes; then
6675 HAVE_SYS_INTTYPES_H=1
6677 HAVE_SYS_INTTYPES_H=0
6680 if test $ac_cv_header_sys_bitypes_h = yes; then
6681 HAVE_SYS_BITYPES_H=1
6683 HAVE_SYS_BITYPES_H=0
6689 if test $APPLE_UNIVERSAL_BUILD = 0; then
6692 for gltype in ptrdiff_t size_t ; do
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
6694 $as_echo_n "checking for bit size of $gltype... " >&6; }
6695 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
6696 $as_echo_n "(cached) " >&6
6698 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
6699 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6700 included before <wchar.h>. */
6709 #include <limits.h>"; then :
6715 eval gl_cv_bitsizeof_${gltype}=\$result
6718 eval ac_res=\$gl_cv_bitsizeof_${gltype}
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6720 $as_echo "$ac_res" >&6; }
6721 eval result=\$gl_cv_bitsizeof_${gltype}
6722 if test $result = unknown; then
6725 GLTYPE=`echo "$gltype" |
tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6726 cat >>confdefs.h <<_ACEOF
6727 #define BITSIZEOF_${GLTYPE} $result
6730 eval BITSIZEOF_${GLTYPE}=\$result
6737 for gltype in sig_atomic_t wchar_t wint_t ; do
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
6739 $as_echo_n "checking for bit size of $gltype... " >&6; }
6740 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
6741 $as_echo_n "(cached) " >&6
6743 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
6744 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6745 included before <wchar.h>. */
6754 #include <limits.h>"; then :
6760 eval gl_cv_bitsizeof_${gltype}=\$result
6763 eval ac_res=\$gl_cv_bitsizeof_${gltype}
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6765 $as_echo "$ac_res" >&6; }
6766 eval result=\$gl_cv_bitsizeof_${gltype}
6767 if test $result = unknown; then
6770 GLTYPE=`echo "$gltype" |
tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6771 cat >>confdefs.h <<_ACEOF
6772 #define BITSIZEOF_${GLTYPE} $result
6775 eval BITSIZEOF_${GLTYPE}=\$result
6781 for gltype in sig_atomic_t wchar_t wint_t ; do
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
6783 $as_echo_n "checking whether $gltype is signed... " >&6; }
6784 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
6785 $as_echo_n "(cached) " >&6
6787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6788 /* end confdefs.h. */
6790 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6791 included before <wchar.h>. */
6800 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
6809 if ac_fn_c_try_compile "$LINENO"; then :
6814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6815 eval gl_cv_type_${gltype}_signed=\$result
6818 eval ac_res=\$gl_cv_type_${gltype}_signed
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6820 $as_echo "$ac_res" >&6; }
6821 eval result=\$gl_cv_type_${gltype}_signed
6822 GLTYPE=`echo $gltype |
tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6823 if test "$result" = yes; then
6824 cat >>confdefs.h <<_ACEOF
6825 #define HAVE_SIGNED_${GLTYPE} 1
6828 eval HAVE_SIGNED_${GLTYPE}=1
6830 eval HAVE_SIGNED_${GLTYPE}=0
6835 gl_cv_type_ptrdiff_t_signed=yes
6836 gl_cv_type_size_t_signed=no
6837 if test $APPLE_UNIVERSAL_BUILD = 0; then
6840 for gltype in ptrdiff_t size_t ; do
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
6842 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
6843 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
6844 $as_echo_n "(cached) " >&6
6846 eval gl_cv_type_${gltype}_suffix=no
6847 eval result=\$gl_cv_type_${gltype}_signed
6848 if test "$result" = yes; then
6853 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
6856 l) gltype1='long int';;
6857 ll) gltype1='long long int';;
6858 i64) gltype1='__int64';;
6859 u) gltype1='unsigned int';;
6860 ul) gltype1='unsigned long int';;
6861 ull) gltype1='unsigned long long int';;
6862 ui64)gltype1='unsigned __int64';;
6864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6865 /* end confdefs.h. */
6867 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6868 included before <wchar.h>. */
6878 extern $gltype1 foo;
6887 if ac_fn_c_try_compile "$LINENO"; then :
6888 eval gl_cv_type_${gltype}_suffix=\$glsuf
6890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6891 eval result=\$gl_cv_type_${gltype}_suffix
6892 test "$result" != no && break
6895 eval ac_res=\$gl_cv_type_${gltype}_suffix
6896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6897 $as_echo "$ac_res" >&6; }
6898 GLTYPE=`echo $gltype |
tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6899 eval result=\$gl_cv_type_${gltype}_suffix
6900 test "$result" = no && result=
6901 eval ${GLTYPE}_SUFFIX=\$result
6902 cat >>confdefs.h <<_ACEOF
6903 #define ${GLTYPE}_SUFFIX $result
6912 for gltype in sig_atomic_t wchar_t wint_t ; do
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
6914 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
6915 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
6916 $as_echo_n "(cached) " >&6
6918 eval gl_cv_type_${gltype}_suffix=no
6919 eval result=\$gl_cv_type_${gltype}_signed
6920 if test "$result" = yes; then
6925 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
6928 l) gltype1='long int';;
6929 ll) gltype1='long long int';;
6930 i64) gltype1='__int64';;
6931 u) gltype1='unsigned int';;
6932 ul) gltype1='unsigned long int';;
6933 ull) gltype1='unsigned long long int';;
6934 ui64)gltype1='unsigned __int64';;
6936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6937 /* end confdefs.h. */
6939 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6940 included before <wchar.h>. */
6950 extern $gltype1 foo;
6959 if ac_fn_c_try_compile "$LINENO"; then :
6960 eval gl_cv_type_${gltype}_suffix=\$glsuf
6962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6963 eval result=\$gl_cv_type_${gltype}_suffix
6964 test "$result" != no && break
6967 eval ac_res=\$gl_cv_type_${gltype}_suffix
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6969 $as_echo "$ac_res" >&6; }
6970 GLTYPE=`echo $gltype |
tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6971 eval result=\$gl_cv_type_${gltype}_suffix
6972 test "$result" = no && result=
6973 eval ${GLTYPE}_SUFFIX=\$result
6974 cat >>confdefs.h <<_ACEOF
6975 #define ${GLTYPE}_SUFFIX $result
6982 if test $BITSIZEOF_WINT_T -lt 32; then
6989 if test -n "$STDINT_H"; then
6990 GL_GENERATE_STDINT_H_TRUE=
6991 GL_GENERATE_STDINT_H_FALSE='#'
6993 GL_GENERATE_STDINT_H_TRUE='#'
6994 GL_GENERATE_STDINT_H_FALSE=
7005 HAVE_DECL_IMAXABS=1;
7006 HAVE_DECL_IMAXDIV=1;
7007 HAVE_DECL_STRTOIMAX=1;
7008 HAVE_DECL_STRTOUMAX=1;
7009 REPLACE_STRTOIMAX=0;
7010 INT32_MAX_LT_INTMAX_MAX=1;
7011 INT64_MAX_EQ_LONG_MAX='defined _LP64';
7012 PRI_MACROS_BROKEN=0;
7013 PRIPTR_PREFIX=__PRIPTR_PREFIX;
7014 UINT32_MAX_LT_UINTMAX_MAX=1;
7015 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
7031 if test $gl_cv_have_include_next = yes; then
7032 gl_cv_next_inttypes_h='<'inttypes.h'>'
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
7035 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
7036 if test "${gl_cv_next_inttypes_h+set}" = set; then :
7037 $as_echo_n "(cached) " >&6
7040 if test $ac_cv_header_inttypes_h = yes; then
7043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7044 /* end confdefs.h. */
7045 #include <inttypes.h>
7049 aix*) gl_absname_cpp="$ac_cpp -C" ;;
7050 *) gl_absname_cpp="$ac_cpp" ;;
7055 gl_dirsep_regex='[/\\]'
7058 gl_dirsep_regex='\/'
7061 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
7063 gl_header_literal_regex=`echo 'inttypes.h' \
7064 |
sed -e "$gl_make_literal_regex_sed"`
7065 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
7066 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
7071 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7072 sed -n "$gl_absolute_header_sed"`'"'
7074 gl_cv_next_inttypes_h='<'inttypes.h'>'
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
7080 $as_echo "$gl_cv_next_inttypes_h" >&6; }
7082 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
7084 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
7085 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7086 gl_next_as_first_directive='<'inttypes.h'>'
7088 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7089 gl_next_as_first_directive=$gl_cv_next_inttypes_h
7091 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
7100 for gl_func in imaxabs imaxdiv strtoimax strtoumax; do
7101 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
7103 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
7104 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
7105 $as_echo_n "(cached) " >&6
7107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7108 /* end confdefs.h. */
7109 #include <inttypes.h>
7120 if ac_fn_c_try_compile "$LINENO"; then :
7121 eval "$as_gl_Symbol=yes"
7123 eval "$as_gl_Symbol=no"
7125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7127 eval ac_res=\$$as_gl_Symbol
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7129 $as_echo "$ac_res" >&6; }
7130 eval as_val=\$$as_gl_Symbol
7131 if test "x$as_val" = x""yes; then :
7132 cat >>confdefs.h <<_ACEOF
7133 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
7136 eval ac_cv_have_decl_$gl_func=yes
7142 for ac_header in inttypes.h
7144 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
7145 if test "x$ac_cv_header_inttypes_h" = x""yes; then :
7146 cat >>confdefs.h <<_ACEOF
7147 #define HAVE_INTTYPES_H 1
7154 if test $ac_cv_header_inttypes_h = yes; then
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
7156 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7157 if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
7158 $as_echo_n "(cached) " >&6
7161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7162 /* end confdefs.h. */
7164 #include <inttypes.h>
7177 if ac_fn_c_try_compile "$LINENO"; then :
7178 gt_cv_inttypes_pri_broken=no
7180 gt_cv_inttypes_pri_broken=yes
7182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
7186 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7188 if test "$gt_cv_inttypes_pri_broken" = yes; then
7190 cat >>confdefs.h <<_ACEOF
7191 #define PRI_MACROS_BROKEN 1
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
7202 $as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
7203 if test "${gl_cv_cc_double_expbit0+set}" = set; then :
7204 $as_echo_n "(cached) " >&6
7207 if test "$cross_compiling" = yes; then :
7209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7210 /* end confdefs.h. */
7212 #if defined arm || defined __arm || defined __arm__
7217 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7218 $EGREP "mixed_endianness" >/dev/null 2>&1; then :
7219 gl_cv_cc_double_expbit0="unknown"
7223 if test "${ac_cv_c_bigendian+set}" = set; then :
7224 $as_echo_n "(cached) " >&6
7226 ac_cv_c_bigendian=unknown
7227 # See if we're dealing with a universal compiler.
7228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7229 /* end confdefs.h. */
7230 #ifndef __APPLE_CC__
7231 not a universal capable compiler
7236 if ac_fn_c_try_compile "$LINENO"; then :
7238 # Check for potential -arch flags. It is not universal unless
7239 # there are at least two -arch flags with different values.
7242 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7243 if test -n "$ac_prev"; then
7245 i?86 | x86_64 | ppc | ppc64)
7246 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
7249 ac_cv_c_bigendian=universal
7255 elif test "x$ac_word" = "x-arch"; then
7260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7261 if test $ac_cv_c_bigendian = unknown; then
7262 # See if sys/param.h defines the BYTE_ORDER macro.
7263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7264 /* end confdefs.h. */
7265 #include <sys/types.h>
7266 #include <sys/param.h>
7271 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
7272 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
7281 if ac_fn_c_try_compile "$LINENO"; then :
7282 # It does; now see whether it defined to BIG_ENDIAN or not.
7283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7284 /* end confdefs.h. */
7285 #include <sys/types.h>
7286 #include <sys/param.h>
7291 #if BYTE_ORDER != BIG_ENDIAN
7299 if ac_fn_c_try_compile "$LINENO"; then :
7300 ac_cv_c_bigendian=yes
7302 ac_cv_c_bigendian=no
7304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7308 if test $ac_cv_c_bigendian = unknown; then
7309 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
7310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7311 /* end confdefs.h. */
7317 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
7325 if ac_fn_c_try_compile "$LINENO"; then :
7326 # It does; now see whether it defined to _BIG_ENDIAN or not.
7327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7328 /* end confdefs.h. */
7342 if ac_fn_c_try_compile "$LINENO"; then :
7343 ac_cv_c_bigendian=yes
7345 ac_cv_c_bigendian=no
7347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7351 if test $ac_cv_c_bigendian = unknown; then
7352 # Compile a test program.
7353 if test "$cross_compiling" = yes; then :
7354 # Try to guess by grepping values from an object file.
7355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7356 /* end confdefs.h. */
7357 short int ascii_mm[] =
7358 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7359 short int ascii_ii[] =
7360 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7361 int use_ascii (int i) {
7362 return ascii_mm[i] + ascii_ii[i];
7364 short int ebcdic_ii[] =
7365 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7366 short int ebcdic_mm[] =
7367 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7368 int use_ebcdic (int i) {
7369 return ebcdic_mm[i] + ebcdic_ii[i];
7376 return use_ascii (foo) == use_ebcdic (foo);
7381 if ac_fn_c_try_compile "$LINENO"; then :
7382 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
7383 ac_cv_c_bigendian=yes
7385 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7386 if test "$ac_cv_c_bigendian" = unknown; then
7387 ac_cv_c_bigendian=no
7389 # finding both strings is unlikely to happen, but who knows?
7390 ac_cv_c_bigendian=unknown
7394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7397 /* end confdefs.h. */
7398 $ac_includes_default
7403 /* Are we little or big endian? From Harbison&Steele. */
7407 char c[sizeof (long int)];
7410 return u.c[sizeof (long int) - 1] == 1;
7416 if ac_fn_c_try_run "$LINENO"; then :
7417 ac_cv_c_bigendian=no
7419 ac_cv_c_bigendian=yes
7421 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7422 conftest.$ac_objext conftest.beam conftest.$ac_ext
7428 case $ac_cv_c_bigendian in #(
7430 gl_cv_cc_double_expbit0="word 0 bit 20";; #(
7432 gl_cv_cc_double_expbit0="word 1 bit 20" ;; #(
7435 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
7439 gl_cv_cc_double_expbit0="unknown" ;;
7448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7449 /* end confdefs.h. */
7456 ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
7457 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
7458 static unsigned int ored_words[NWORDS];
7459 static unsigned int anded_words[NWORDS];
7460 static void add_to_ored_words (double x)
7464 /* Clear it first, in case sizeof (double) < sizeof (memory_double). */
7465 memset (&m, 0, sizeof (memory_double));
7467 for (i = 0; i < NWORDS; i++)
7469 ored_words[i] |= m.word[i];
7470 anded_words[i] &= m.word[i];
7476 FILE *fp = fopen ("conftest.out", "w");
7479 for (j = 0; j < NWORDS; j++)
7480 anded_words[j] = ~ (unsigned int) 0;
7481 add_to_ored_words (0.25);
7482 add_to_ored_words (0.5);
7483 add_to_ored_words (1.0);
7484 add_to_ored_words (2.0);
7485 add_to_ored_words (4.0);
7486 /* Remove bits that are common (e.g. if representation of the first mantissa
7487 bit is explicit). */
7488 for (j = 0; j < NWORDS; j++)
7489 ored_words[j] &= ~anded_words[j];
7490 /* Now find the nonzero word. */
7491 for (j = 0; j < NWORDS; j++)
7492 if (ored_words[j] != 0)
7497 for (i = j + 1; i < NWORDS; i++)
7498 if (ored_words[i] != 0)
7500 fprintf (fp, "unknown");
7501 return (fclose (fp) != 0);
7504 if ((ored_words[j] >> i) & 1)
7506 fprintf (fp, "word %d bit %d", (int) j, (int) i);
7507 return (fclose (fp) != 0);
7510 fprintf (fp, "unknown");
7511 return (fclose (fp) != 0);
7515 if ac_fn_c_try_run "$LINENO"; then :
7516 gl_cv_cc_double_expbit0=`cat conftest.out
`
7518 gl_cv_cc_double_expbit0="unknown"
7520 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7521 conftest.$ac_objext conftest.beam conftest.$ac_ext
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
7528 $as_echo "$gl_cv_cc_double_expbit0" >&6; }
7529 case "$gl_cv_cc_double_expbit0" in
7531 word=`echo "$gl_cv_cc_double_expbit0" |
sed -e 's/word //' -e 's/ bit.*//'`
7532 bit=`echo "$gl_cv_cc_double_expbit0" |
sed -e 's/word.*bit //'`
7534 cat >>confdefs.h <<_ACEOF
7535 #define DBL_EXPBIT0_WORD $word
7539 cat >>confdefs.h <<_ACEOF
7540 #define DBL_EXPBIT0_BIT $bit
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
7548 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
7549 if test "${ac_cv_c_bigendian+set}" = set; then :
7550 $as_echo_n "(cached) " >&6
7552 ac_cv_c_bigendian=unknown
7553 # See if we're dealing with a universal compiler.
7554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7555 /* end confdefs.h. */
7556 #ifndef __APPLE_CC__
7557 not a universal capable compiler
7562 if ac_fn_c_try_compile "$LINENO"; then :
7564 # Check for potential -arch flags. It is not universal unless
7565 # there are at least two -arch flags with different values.
7568 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7569 if test -n "$ac_prev"; then
7571 i?86 | x86_64 | ppc | ppc64)
7572 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
7575 ac_cv_c_bigendian=universal
7581 elif test "x$ac_word" = "x-arch"; then
7586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7587 if test $ac_cv_c_bigendian = unknown; then
7588 # See if sys/param.h defines the BYTE_ORDER macro.
7589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7590 /* end confdefs.h. */
7591 #include <sys/types.h>
7592 #include <sys/param.h>
7597 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
7598 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
7607 if ac_fn_c_try_compile "$LINENO"; then :
7608 # It does; now see whether it defined to BIG_ENDIAN or not.
7609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7610 /* end confdefs.h. */
7611 #include <sys/types.h>
7612 #include <sys/param.h>
7617 #if BYTE_ORDER != BIG_ENDIAN
7625 if ac_fn_c_try_compile "$LINENO"; then :
7626 ac_cv_c_bigendian=yes
7628 ac_cv_c_bigendian=no
7630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7634 if test $ac_cv_c_bigendian = unknown; then
7635 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
7636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7637 /* end confdefs.h. */
7643 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
7651 if ac_fn_c_try_compile "$LINENO"; then :
7652 # It does; now see whether it defined to _BIG_ENDIAN or not.
7653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7654 /* end confdefs.h. */
7668 if ac_fn_c_try_compile "$LINENO"; then :
7669 ac_cv_c_bigendian=yes
7671 ac_cv_c_bigendian=no
7673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7677 if test $ac_cv_c_bigendian = unknown; then
7678 # Compile a test program.
7679 if test "$cross_compiling" = yes; then :
7680 # Try to guess by grepping values from an object file.
7681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7682 /* end confdefs.h. */
7683 short int ascii_mm[] =
7684 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7685 short int ascii_ii[] =
7686 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7687 int use_ascii (int i) {
7688 return ascii_mm[i] + ascii_ii[i];
7690 short int ebcdic_ii[] =
7691 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7692 short int ebcdic_mm[] =
7693 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7694 int use_ebcdic (int i) {
7695 return ebcdic_mm[i] + ebcdic_ii[i];
7702 return use_ascii (foo) == use_ebcdic (foo);
7707 if ac_fn_c_try_compile "$LINENO"; then :
7708 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
7709 ac_cv_c_bigendian=yes
7711 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7712 if test "$ac_cv_c_bigendian" = unknown; then
7713 ac_cv_c_bigendian=no
7715 # finding both strings is unlikely to happen, but who knows?
7716 ac_cv_c_bigendian=unknown
7720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7723 /* end confdefs.h. */
7724 $ac_includes_default
7729 /* Are we little or big endian? From Harbison&Steele. */
7733 char c[sizeof (long int)];
7736 return u.c[sizeof (long int) - 1] == 1;
7742 if ac_fn_c_try_run "$LINENO"; then :
7743 ac_cv_c_bigendian=no
7745 ac_cv_c_bigendian=yes
7747 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7748 conftest.$ac_objext conftest.beam conftest.$ac_ext
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
7754 $as_echo "$ac_cv_c_bigendian" >&6; }
7755 case $ac_cv_c_bigendian in #(
7757 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
7763 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
7767 as_fn_error "unknown endianness
7768 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
7774 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
7775 if test "${am_cv_langinfo_codeset+set}" = set; then :
7776 $as_echo_n "(cached) " >&6
7778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7779 /* end confdefs.h. */
7780 #include <langinfo.h>
7784 char* cs = nl_langinfo(CODESET); return !cs;
7789 if ac_fn_c_try_link "$LINENO"; then :
7790 am_cv_langinfo_codeset=yes
7792 am_cv_langinfo_codeset=no
7794 rm -f core conftest.err conftest.$ac_objext \
7795 conftest$ac_exeext conftest.$ac_ext
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
7799 $as_echo "$am_cv_langinfo_codeset" >&6; }
7800 if test $am_cv_langinfo_codeset = yes; then
7802 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
7816 $as_echo_n "checking for working fcntl.h... " >&6; }
7817 if test "${gl_cv_header_working_fcntl_h+set}" = set; then :
7818 $as_echo_n "(cached) " >&6
7820 if test "$cross_compiling" = yes; then :
7821 gl_cv_header_working_fcntl_h=cross-compiling
7823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7824 /* end confdefs.h. */
7825 #include <sys/types.h>
7826 #include <sys/stat.h>
7828 # include <unistd.h>
7829 #else /* on Windows with MSVC */
7831 # include <stdlib.h>
7832 # defined sleep(n) _sleep ((n) * 1000)
7839 #define O_NOFOLLOW 0
7841 static int const constants[] =
7843 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
7844 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
7851 int result = !constants;
7854 static char const sym[] = "conftest.sym";
7855 if (symlink ("/dev/null", sym) != 0)
7859 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
7866 if (unlink (sym) != 0 || symlink (".", sym) != 0)
7870 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
7881 static char const file[] = "confdefs.h";
7882 int fd = open (file, O_RDONLY | O_NOATIME);
7888 if (fstat (fd, &st0) != 0)
7894 if (read (fd, &c, 1) != 1)
7898 if (close (fd) != 0)
7903 if (stat (file, &st1) != 0)
7906 if (st0.st_atime != st1.st_atime)
7918 if ac_fn_c_try_run "$LINENO"; then :
7919 gl_cv_header_working_fcntl_h=yes
7922 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
7923 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
7924 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
7925 *) gl_cv_header_working_fcntl_h='no';;
7928 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7929 conftest.$ac_objext conftest.beam conftest.$ac_ext
7933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
7934 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
7936 case $gl_cv_header_working_fcntl_h in #(
7937 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
7941 cat >>confdefs.h <<_ACEOF
7942 #define HAVE_WORKING_O_NOATIME $ac_val
7946 case $gl_cv_header_working_fcntl_h in #(
7947 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
7951 cat >>confdefs.h <<_ACEOF
7952 #define HAVE_WORKING_O_NOFOLLOW $ac_val
7956 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
7957 if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then :
7963 cat >>confdefs.h <<_ACEOF
7964 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
7969 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
7970 if test "${ac_cv_gnu_library_2_1+set}" = set; then :
7971 $as_echo_n "(cached) " >&6
7973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7974 /* end confdefs.h. */
7976 #include <features.h>
7977 #ifdef __GNU_LIBRARY__
7978 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7987 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7988 $EGREP "Lucky" >/dev/null 2>&1; then :
7989 ac_cv_gnu_library_2_1=yes
7991 ac_cv_gnu_library_2_1=no
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
7999 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
8001 GLIBC21="$ac_cv_gnu_library_2_1"
8013 GNULIB_MBSNRTOWCS=0;
8016 GNULIB_WCSNRTOMBS=0;
8033 GNULIB_WCSCASECMP=0;
8034 GNULIB_WCSNCASECMP=0;
8084 HAVE_DECL_WCWIDTH=1;
8085 REPLACE_MBSTATE_T=0;
8091 REPLACE_MBSRTOWCS=0;
8092 REPLACE_MBSNRTOWCS=0;
8094 REPLACE_WCSRTOMBS=0;
8095 REPLACE_WCSNRTOMBS=0;
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
8107 $as_echo_n "checking for a traditional japanese locale... " >&6; }
8108 if test "${gt_cv_locale_ja+set}" = set; then :
8109 $as_echo_n "(cached) " >&6
8112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8113 /* end confdefs.h. */
8117 #if HAVE_LANGINFO_CODESET
8118 # include <langinfo.h>
8127 /* Check whether the given locale name is recognized by the system. */
8128 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
8129 /* On native Windows, setlocale(category, "") looks at the system settings,
8130 not at the environment variables. Also, when an encoding suffix such
8131 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
8132 category of the locale to "C". */
8133 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
8134 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
8137 if (setlocale (LC_ALL, "") == NULL) return 1;
8139 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
8140 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
8141 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
8142 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
8143 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
8144 some unit tests fail.
8145 On MirBSD 10, when an unsupported locale is specified, setlocale()
8146 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
8147 #if HAVE_LANGINFO_CODESET
8149 const char *cs = nl_langinfo (CODESET);
8150 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
8151 || strcmp (cs, "UTF-8") == 0)
8156 /* On Cygwin, avoid locale names without encoding suffix, because the
8157 locale_charset() function relies on the encoding suffix. Note that
8158 LC_ALL is set on the command line. */
8159 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
8161 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales
8163 if (MB_CUR_MAX == 1)
8165 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
8166 This excludes the UTF-8 encoding (except on MirBSD). */
8167 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
8168 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
8169 for (p = buf; *p != '\0'; p++)
8170 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
8176 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8177 (eval $ac_link) 2>&5
8179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8180 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8182 # Handle native Windows specially, because there setlocale() interprets
8183 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
8184 # "fr" or "fra" as "French" or "French_France.1252",
8185 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
8186 # "ja" as "Japanese" or "Japanese_Japan.932",
8189 # Note that on native Windows, the Japanese locale is
8190 # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
8191 # cannot use it here.
8192 gt_cv_locale_ja=none
8195 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
8196 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
8197 # configure script would override the LC_ALL setting. Likewise for
8198 # LC_CTYPE, which is also set at the beginning of the configure script.
8199 # Test for the AIX locale name.
8200 if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8201 gt_cv_locale_ja=ja_JP
8203 # Test for the locale name with explicit encoding suffix.
8204 if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8205 gt_cv_locale_ja=ja_JP.EUC-JP
8207 # Test for the HP-UX, OSF/1, NetBSD locale name.
8208 if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8209 gt_cv_locale_ja=ja_JP.eucJP
8211 # Test for the IRIX, FreeBSD locale name.
8212 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8213 gt_cv_locale_ja=ja_JP.EUC
8215 # Test for the Solaris 7 locale name.
8216 if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8219 # Special test for NetBSD 1.6.
8220 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
8221 gt_cv_locale_ja=ja_JP.eucJP
8224 gt_cv_locale_ja=none
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
8238 $as_echo "$gt_cv_locale_ja" >&6; }
8239 LOCALE_JA=$gt_cv_locale_ja
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
8246 $as_echo_n "checking for a transitional chinese locale... " >&6; }
8247 if test "${gt_cv_locale_zh_CN+set}" = set; then :
8248 $as_echo_n "(cached) " >&6
8251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8252 /* end confdefs.h. */
8257 #if HAVE_LANGINFO_CODESET
8258 # include <langinfo.h>
8267 /* Check whether the given locale name is recognized by the system. */
8268 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
8269 /* On native Windows, setlocale(category, "") looks at the system settings,
8270 not at the environment variables. Also, when an encoding suffix such
8271 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
8272 category of the locale to "C". */
8273 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
8274 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
8277 if (setlocale (LC_ALL, "") == NULL) return 1;
8279 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
8280 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
8281 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
8282 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
8283 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
8284 some unit tests fail.
8285 On MirBSD 10, when an unsupported locale is specified, setlocale()
8286 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
8287 #if HAVE_LANGINFO_CODESET
8289 const char *cs = nl_langinfo (CODESET);
8290 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
8291 || strcmp (cs, "UTF-8") == 0)
8296 /* On Cygwin, avoid locale names without encoding suffix, because the
8297 locale_charset() function relies on the encoding suffix. Note that
8298 LC_ALL is set on the command line. */
8299 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
8301 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
8302 This excludes the UTF-8 encoding (except on MirBSD). */
8303 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
8304 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
8305 for (p = buf; *p != '\0'; p++)
8306 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
8308 /* Check whether a typical GB18030 multibyte sequence is recognized as a
8309 single wide character. This excludes the GB2312 and GBK encodings. */
8310 if (mblen ("\203\062\332\066", 5) != 4)
8316 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8317 (eval $ac_link) 2>&5
8319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8320 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8322 # Handle native Windows specially, because there setlocale() interprets
8323 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
8324 # "fr" or "fra" as "French" or "French_France.1252",
8325 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
8326 # "ja" as "Japanese" or "Japanese_Japan.932",
8329 # Test for the hypothetical native Windows locale name.
8330 if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8331 gt_cv_locale_zh_CN=Chinese_China.54936
8334 gt_cv_locale_zh_CN=none
8338 # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
8339 # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
8340 # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
8341 gt_cv_locale_zh_CN=none
8344 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
8345 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
8346 # configure script would override the LC_ALL setting. Likewise for
8347 # LC_CTYPE, which is also set at the beginning of the configure script.
8348 # Test for the locale name without encoding suffix.
8349 if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8350 gt_cv_locale_zh_CN=zh_CN
8352 # Test for the locale name with explicit encoding suffix.
8353 if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8354 gt_cv_locale_zh_CN=zh_CN.GB18030
8357 gt_cv_locale_zh_CN=none
8363 # If there was a link error, due to mblen(), the system is so old that
8364 # it certainly doesn't have a chinese locale.
8365 gt_cv_locale_zh_CN=none
8370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
8371 $as_echo "$gt_cv_locale_zh_CN" >&6; }
8372 LOCALE_ZH_CN=$gt_cv_locale_zh_CN
8377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
8378 $as_echo_n "checking for a french Unicode locale... " >&6; }
8379 if test "${gt_cv_locale_fr_utf8+set}" = set; then :
8380 $as_echo_n "(cached) " >&6
8383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8384 /* end confdefs.h. */
8388 #if HAVE_LANGINFO_CODESET
8389 # include <langinfo.h>
8396 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
8397 imitates locale dependent behaviour by looking at the environment
8398 variables, and all locales use the UTF-8 encoding. */
8399 #if !(defined __BEOS__ || defined __HAIKU__)
8400 /* Check whether the given locale name is recognized by the system. */
8401 # if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
8402 /* On native Windows, setlocale(category, "") looks at the system settings,
8403 not at the environment variables. Also, when an encoding suffix such
8404 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
8405 category of the locale to "C". */
8406 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
8407 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
8410 if (setlocale (LC_ALL, "") == NULL) return 1;
8412 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
8413 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
8414 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
8415 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
8416 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
8417 some unit tests fail. */
8418 # if HAVE_LANGINFO_CODESET
8420 const char *cs = nl_langinfo (CODESET);
8421 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
8426 /* On Cygwin, avoid locale names without encoding suffix, because the
8427 locale_charset() function relies on the encoding suffix. Note that
8428 LC_ALL is set on the command line. */
8429 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
8431 /* Check whether in the abbreviation of the second month, the second
8432 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
8433 two bytes long, with UTF-8 encoding. */
8434 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
8435 if (strftime (buf, sizeof (buf), "%b", &t) < 4
8436 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
8439 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
8440 /* Check whether the decimal separator is a comma.
8441 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
8442 are nl_langinfo(RADIXCHAR) are both ".". */
8443 if (localeconv () ->decimal_point[0] != ',') return 1;
8449 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8450 (eval $ac_link) 2>&5
8452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8453 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8455 # Handle native Windows specially, because there setlocale() interprets
8456 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
8457 # "fr" or "fra" as "French" or "French_France.1252",
8458 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
8459 # "ja" as "Japanese" or "Japanese_Japan.932",
8462 # Test for the hypothetical native Windows locale name.
8463 if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8464 gt_cv_locale_fr_utf8=French_France.65001
8467 gt_cv_locale_fr_utf8=none
8471 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
8472 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
8473 # configure script would override the LC_ALL setting. Likewise for
8474 # LC_CTYPE, which is also set at the beginning of the configure script.
8475 # Test for the usual locale name.
8476 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8477 gt_cv_locale_fr_utf8=fr_FR
8479 # Test for the locale name with explicit encoding suffix.
8480 if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8481 gt_cv_locale_fr_utf8=fr_FR.UTF-8
8483 # Test for the Solaris 7 locale name.
8484 if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8485 gt_cv_locale_fr_utf8=fr.UTF-8
8488 gt_cv_locale_fr_utf8=none
8498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
8499 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
8500 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
8507 $as_echo_n "checking for a traditional french locale... " >&6; }
8508 if test "${gt_cv_locale_fr+set}" = set; then :
8509 $as_echo_n "(cached) " >&6
8512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8513 /* end confdefs.h. */
8517 #if HAVE_LANGINFO_CODESET
8518 # include <langinfo.h>
8525 /* Check whether the given locale name is recognized by the system. */
8526 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
8527 /* On native Windows, setlocale(category, "") looks at the system settings,
8528 not at the environment variables. Also, when an encoding suffix such
8529 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
8530 category of the locale to "C". */
8531 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
8532 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
8535 if (setlocale (LC_ALL, "") == NULL) return 1;
8537 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
8538 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
8539 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
8540 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
8541 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
8542 some unit tests fail.
8543 On MirBSD 10, when an unsupported locale is specified, setlocale()
8544 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
8545 #if HAVE_LANGINFO_CODESET
8547 const char *cs = nl_langinfo (CODESET);
8548 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
8549 || strcmp (cs, "UTF-8") == 0)
8554 /* On Cygwin, avoid locale names without encoding suffix, because the
8555 locale_charset() function relies on the encoding suffix. Note that
8556 LC_ALL is set on the command line. */
8557 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
8559 /* Check whether in the abbreviation of the second month, the second
8560 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
8561 one byte long. This excludes the UTF-8 encoding. */
8562 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
8563 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
8564 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
8565 /* Check whether the decimal separator is a comma.
8566 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
8567 are nl_langinfo(RADIXCHAR) are both ".". */
8568 if (localeconv () ->decimal_point[0] != ',') return 1;
8574 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8575 (eval $ac_link) 2>&5
8577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8578 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8580 # Handle native Windows specially, because there setlocale() interprets
8581 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
8582 # "fr" or "fra" as "French" or "French_France.1252",
8583 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
8584 # "ja" as "Japanese" or "Japanese_Japan.932",
8587 # Test for the native Windows locale name.
8588 if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8589 gt_cv_locale_fr=French_France.1252
8592 gt_cv_locale_fr=none
8596 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
8597 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
8598 # configure script would override the LC_ALL setting. Likewise for
8599 # LC_CTYPE, which is also set at the beginning of the configure script.
8600 # Test for the usual locale name.
8601 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8602 gt_cv_locale_fr=fr_FR
8604 # Test for the locale name with explicit encoding suffix.
8605 if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8606 gt_cv_locale_fr=fr_FR.ISO-8859-1
8608 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
8609 if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8610 gt_cv_locale_fr=fr_FR.ISO8859-1
8612 # Test for the HP-UX locale name.
8613 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8614 gt_cv_locale_fr=fr_FR.iso88591
8616 # Test for the Solaris 7 locale name.
8617 if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8621 gt_cv_locale_fr=none
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
8634 $as_echo "$gt_cv_locale_fr" >&6; }
8635 LOCALE_FR=$gt_cv_locale_fr
8660 GNULIB_STRCASESTR=0;
8667 GNULIB_MBSCASECMP=0;
8668 GNULIB_MBSNCASECMP=0;
8669 GNULIB_MBSPCASECMP=0;
8670 GNULIB_MBSCASESTR=0;
8677 GNULIB_STRERROR_R=0;
8679 GNULIB_STRVERSCMP=0;
8686 HAVE_DECL_MEMRCHR=1;
8692 HAVE_DECL_STRNDUP=1;
8693 HAVE_DECL_STRNLEN=1;
8697 HAVE_DECL_STRTOK_R=1;
8698 HAVE_DECL_STRERROR_R=1;
8699 HAVE_DECL_STRSIGNAL=1;
8706 REPLACE_STRCASESTR=0;
8707 REPLACE_STRCHRNUL=0;
8709 REPLACE_STRERROR_R=0;
8713 REPLACE_STRSIGNAL=0;
8715 UNDEFINE_STRTOK_R=0;
8721 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
8722 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
8723 # irrelevant for anonymous mappings.
8724 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
8725 if test "x$ac_cv_func_mmap" = x""yes; then :
8732 # Try to allow MAP_ANONYMOUS.
8733 gl_have_mmap_anonymous=no
8734 if test $gl_have_mmap = yes; then
8735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
8736 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
8737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8738 /* end confdefs.h. */
8740 #include <sys/mman.h>
8741 #ifdef MAP_ANONYMOUS
8742 I cannot identify this map
8746 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8747 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
8748 gl_have_mmap_anonymous=yes
8752 if test $gl_have_mmap_anonymous != yes; then
8753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8754 /* end confdefs.h. */
8756 #include <sys/mman.h>
8758 I cannot identify this map
8762 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8763 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
8765 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
8767 gl_have_mmap_anonymous=yes
8772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
8773 $as_echo "$gl_have_mmap_anonymous" >&6; }
8774 if test $gl_have_mmap_anonymous = yes; then
8776 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
8786 if test $HAVE_MEMCHR = 1; then
8787 # Detect platform-specific bugs in some versions of glibc:
8788 # memchr should not dereference anything with length 0
8789 # http://bugzilla.redhat.com/499689
8790 # memchr should not dereference overestimated length after a match
8791 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
8792 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
8793 # Assume that memchr works on platforms that lack mprotect.
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
8795 $as_echo_n "checking whether memchr works... " >&6; }
8796 if test "${gl_cv_func_memchr_works+set}" = set; then :
8797 $as_echo_n "(cached) " >&6
8799 if test "$cross_compiling" = yes; then :
8800 gl_cv_func_memchr_works="guessing no"
8802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8803 /* end confdefs.h. */
8808 # include <unistd.h>
8809 # include <sys/types.h>
8810 # include <sys/mman.h>
8822 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
8823 # if HAVE_MAP_ANONYMOUS
8824 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
8826 # else /* !HAVE_MAP_ANONYMOUS */
8827 const int flags = MAP_FILE | MAP_PRIVATE;
8828 int fd = open ("/dev/zero", O_RDONLY, 0666);
8832 int pagesize = getpagesize ();
8834 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
8836 if (two_pages != (char *)(-1)
8837 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
8838 fence = two_pages + pagesize;
8843 if (memchr (fence, 0, 0))
8845 strcpy (fence - 9, "12345678");
8846 if (memchr (fence - 9, 0, 79) != fence - 1)
8848 if (memchr (fence - 1, 0, 3) != fence - 1)
8857 if ac_fn_c_try_run "$LINENO"; then :
8858 gl_cv_func_memchr_works=yes
8860 gl_cv_func_memchr_works=no
8862 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8863 conftest.$ac_objext conftest.beam conftest.$ac_ext
8867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
8868 $as_echo "$gl_cv_func_memchr_works" >&6; }
8869 if test "$gl_cv_func_memchr_works" != yes; then
8874 ac_fn_c_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
8875 if test "x$ac_cv_have_decl_memmem" = x""yes; then :
8881 cat >>confdefs.h <<_ACEOF
8882 #define HAVE_DECL_MEMMEM $ac_have_decl
8889 for ac_func in memmem
8891 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
8892 if test "x$ac_cv_func_memmem" = x""yes; then :
8893 cat >>confdefs.h <<_ACEOF
8894 #define HAVE_MEMMEM 1
8900 if test $ac_cv_func_memmem = yes; then
8906 if test $ac_cv_have_decl_memmem = no; then
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
8910 $as_echo_n "checking whether memmem works... " >&6; }
8911 if test "${gl_cv_func_memmem_works_always+set}" = set; then :
8912 $as_echo_n "(cached) " >&6
8914 if test "$cross_compiling" = yes; then :
8915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8916 /* end confdefs.h. */
8918 #ifdef __GNU_LIBRARY__
8919 #include <features.h>
8920 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
8921 || __GLIBC_MINOR__ > 12)) \
8922 || (__GLIBC__ > 2)) \
8923 || defined __UCLIBC__
8926 #elif defined __CYGWIN__
8927 #include <cygwin/version.h>
8928 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
8936 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8937 $EGREP "Lucky user" >/dev/null 2>&1; then :
8938 gl_cv_func_memmem_works_always="guessing yes"
8940 gl_cv_func_memmem_works_always="guessing no"
8946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8947 /* end confdefs.h. */
8949 #include <string.h> /* for memmem */
8950 #define P "_EF_BF_BD"
8951 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
8952 #define NEEDLE P P P P P
8959 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
8961 /* Check for empty needle behavior. */
8963 const char *haystack = "AAA";
8964 if (memmem (haystack, 3, NULL, 0) != haystack)
8973 if ac_fn_c_try_run "$LINENO"; then :
8974 gl_cv_func_memmem_works_always=yes
8976 gl_cv_func_memmem_works_always=no
8978 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8979 conftest.$ac_objext conftest.beam conftest.$ac_ext
8984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
8985 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
8986 case "$gl_cv_func_memmem_works_always" in
8997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
8998 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
8999 if test "${ac_cv_header_stdbool_h+set}" = set; then :
9000 $as_echo_n "(cached) " >&6
9002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9003 /* end confdefs.h. */
9005 #include <stdbool.h>
9007 "error: bool is not defined"
9010 "error: false is not defined"
9013 "error: false is not 0"
9016 "error: true is not defined"
9019 "error: true is not 1"
9021 #ifndef __bool_true_false_are_defined
9022 "error: __bool_true_false_are_defined is not defined"
9025 struct s { _Bool s: 1; _Bool t; } s;
9027 char a[true == 1 ? 1 : -1];
9028 char b[false == 0 ? 1 : -1];
9029 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
9030 char d[(bool) 0.5 == true ? 1 : -1];
9031 /* See body of main program for 'e'. */
9032 char f[(_Bool) 0.0 == false ? 1 : -1];
9034 char h[sizeof (_Bool)];
9036 enum { j = false, k = true, l = false * true, m = true * 256 };
9037 /* The following fails for
9038 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
9040 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
9041 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
9042 /* Catch a bug in an HP-UX C compiler. See
9043 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
9044 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
9056 /* Refer to every declared value, to avoid compiler optimizations. */
9057 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
9058 + !m + !n + !o + !p + !q + !pq);
9064 if ac_fn_c_try_compile "$LINENO"; then :
9065 ac_cv_header_stdbool_h=yes
9067 ac_cv_header_stdbool_h=no
9069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
9072 $as_echo "$ac_cv_header_stdbool_h" >&6; }
9073 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
9074 if test "x$ac_cv_type__Bool" = x""yes; then :
9076 cat >>confdefs.h <<_ACEOF
9077 #define HAVE__BOOL 1
9089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
9090 $as_echo_n "checking for wchar_t... " >&6; }
9091 if test "${gt_cv_c_wchar_t+set}" = set; then :
9092 $as_echo_n "(cached) " >&6
9094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9095 /* end confdefs.h. */
9097 wchar_t foo = (wchar_t)'\0';
9106 if ac_fn_c_try_compile "$LINENO"; then :
9111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
9114 $as_echo "$gt_cv_c_wchar_t" >&6; }
9115 if test $gt_cv_c_wchar_t = yes; then
9117 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
9121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
9122 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
9123 if test "${ac_cv_c_restrict+set}" = set; then :
9124 $as_echo_n "(cached) " >&6
9127 # The order here caters to the fact that C++ does not require restrict.
9128 for ac_kw in __restrict __restrict__ _Restrict restrict; do
9129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9130 /* end confdefs.h. */
9131 typedef int * int_ptr;
9132 int foo (int_ptr $ac_kw ip) {
9146 if ac_fn_c_try_compile "$LINENO"; then :
9147 ac_cv_c_restrict=$ac_kw
9149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9150 test "$ac_cv_c_restrict" != no && break
9154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
9155 $as_echo "$ac_cv_c_restrict" >&6; }
9157 case $ac_cv_c_restrict in
9159 no) $as_echo "#define restrict /**/" >>confdefs.h
9161 *) cat >>confdefs.h <<_ACEOF
9162 #define restrict $ac_cv_c_restrict
9178 if test $gl_cv_have_include_next = yes; then
9179 gl_cv_next_string_h='<'string.h'>'
9181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
9182 $as_echo_n "checking absolute name of <string.h>... " >&6; }
9183 if test "${gl_cv_next_string_h+set}" = set; then :
9184 $as_echo_n "(cached) " >&6
9187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9188 /* end confdefs.h. */
9193 aix*) gl_absname_cpp="$ac_cpp -C" ;;
9194 *) gl_absname_cpp="$ac_cpp" ;;
9199 gl_dirsep_regex='[/\\]'
9202 gl_dirsep_regex='\/'
9205 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
9207 gl_header_literal_regex=`echo 'string.h' \
9208 |
sed -e "$gl_make_literal_regex_sed"`
9209 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9210 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9215 gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9216 sed -n "$gl_absolute_header_sed"`'"'
9220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
9221 $as_echo "$gl_cv_next_string_h" >&6; }
9223 NEXT_STRING_H=$gl_cv_next_string_h
9225 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
9226 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9227 gl_next_as_first_directive='<'string.h'>'
9229 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9230 gl_next_as_first_directive=$gl_cv_next_string_h
9232 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
9239 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
9240 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
9241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
9242 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
9243 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
9244 $as_echo_n "(cached) " >&6
9246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9247 /* end confdefs.h. */
9259 if ac_fn_c_try_compile "$LINENO"; then :
9260 eval "$as_gl_Symbol=yes"
9262 eval "$as_gl_Symbol=no"
9264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9266 eval ac_res=\$$as_gl_Symbol
9267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9268 $as_echo "$ac_res" >&6; }
9269 eval as_val=\$$as_gl_Symbol
9270 if test "x$as_val" = x""yes; then :
9271 cat >>confdefs.h <<_ACEOF
9272 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
9275 eval ac_cv_have_decl_$gl_func=yes
9282 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9283 if test "x$ac_cv_type_pid_t" = x""yes; then :
9287 cat >>confdefs.h <<_ACEOF
9293 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
9294 if test "x$ac_cv_type_mode_t" = x""yes; then :
9298 cat >>confdefs.h <<_ACEOF
9306 WINDOWS_64_BIT_OFF_T=0
9310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
9311 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
9312 if test -z "$MKDIR_P"; then
9313 if test "${ac_cv_path_mkdir+set}" = set; then :
9314 $as_echo_n "(cached) " >&6
9316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9317 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
9320 test -z "$as_dir" && as_dir=.
9321 for ac_prog in mkdir gmkdir; do
9322 for ac_exec_ext in '' $ac_executable_extensions; do
9323 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
9324 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
9325 'mkdir (GNU coreutils) '* | \
9326 'mkdir (coreutils) '* | \
9327 'mkdir (fileutils) '4.1*)
9328 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
9338 if test "${ac_cv_path_mkdir+set}" = set; then
9339 MKDIR_P="$ac_cv_path_mkdir -p"
9341 # As a last resort, use the slow shell script. Don't cache a
9342 # value for MKDIR_P within a source directory, because that will
9343 # break other packages using the cache if that directory is
9344 # removed, or if the value is a relative name.
9345 test -d ./--version && rmdir ./--version
9346 MKDIR_P="$ac_install_sh -d"
9349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
9350 $as_echo "$MKDIR_P" >&6; }
9360 GNULIB_EUIDACCESS=0;
9368 GNULIB_GETDOMAINNAME=0;
9369 GNULIB_GETDTABLESIZE=0;
9371 GNULIB_GETHOSTNAME=0;
9373 GNULIB_GETLOGIN_R=0;
9374 GNULIB_GETPAGESIZE=0;
9375 GNULIB_GETUSERSHELL=0;
9376 GNULIB_GROUP_MEMBER=0;
9388 GNULIB_READLINKAT=0;
9390 GNULIB_SETHOSTNAME=0;
9395 GNULIB_UNISTD_H_NONBLOCKING=0;
9396 GNULIB_UNISTD_H_SIGPIPE=0;
9411 HAVE_GETDTABLESIZE=1;
9416 HAVE_GROUP_MEMBER=1;
9432 HAVE_DECL_ENVIRON=1;
9434 HAVE_DECL_FDATASYNC=1;
9435 HAVE_DECL_GETDOMAINNAME=1;
9436 HAVE_DECL_GETLOGIN_R=1;
9437 HAVE_DECL_GETPAGESIZE=1;
9438 HAVE_DECL_GETUSERSHELL=1;
9439 HAVE_DECL_SETHOSTNAME=1;
9440 HAVE_DECL_TTYNAME_R=1;
9448 REPLACE_FTRUNCATE=0;
9450 REPLACE_GETDOMAINNAME=0;
9451 REPLACE_GETLOGIN_R=0;
9452 REPLACE_GETGROUPS=0;
9453 REPLACE_GETPAGESIZE=0;
9466 REPLACE_TTYNAME_R=0;
9471 UNISTD_H_HAVE_WINSOCK2_H=0;
9472 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
9476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
9477 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
9478 if test "${gl_cv_header_wchar_h_correct_inline+set}" = set; then :
9479 $as_echo_n "(cached) " >&6
9481 gl_cv_header_wchar_h_correct_inline=yes
9482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9483 /* end confdefs.h. */
9485 #define wcstod renamed_wcstod
9486 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9488 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9489 included before <wchar.h>. */
9494 extern int zero (void);
9495 int main () { return zero(); }
9498 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9499 (eval $ac_compile) 2>&5
9501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9502 test $ac_status = 0; }; then
9503 mv conftest.$ac_objext conftest1.$ac_objext
9504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9505 /* end confdefs.h. */
9507 #define wcstod renamed_wcstod
9508 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9510 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9511 included before <wchar.h>. */
9516 int zero (void) { return 0; }
9519 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9520 (eval $ac_compile) 2>&5
9522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9523 test $ac_status = 0; }; then
9524 mv conftest.$ac_objext conftest2.$ac_objext
9525 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
9528 gl_cv_header_wchar_h_correct_inline=no
9532 rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
9535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
9536 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
9537 if test $gl_cv_header_wchar_h_correct_inline = no; then
9538 as_fn_error "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
9539 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
9540 C99 mode. You have four options:
9541 - Add the flag -fgnu89-inline to CC and reconfigure, or
9542 - Fix your include files, using parts of
9543 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
9544 - Use a gcc version older than 4.3, or
9545 - Don't use the flags -std=c99 or -std=gnu99.
9546 Configuration aborted." "$LINENO" 5
9553 if test $ac_cv_header_features_h = yes; then
9561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
9562 $as_echo_n "checking for wint_t... " >&6; }
9563 if test "${gt_cv_c_wint_t+set}" = set; then :
9564 $as_echo_n "(cached) " >&6
9566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9567 /* end confdefs.h. */
9569 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9571 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
9572 before <wchar.h>. */
9577 wint_t foo = (wchar_t)'\0';
9586 if ac_fn_c_try_compile "$LINENO"; then :
9591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
9594 $as_echo "$gt_cv_c_wint_t" >&6; }
9595 if test $gt_cv_c_wint_t = yes; then
9597 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
9616 GL_COND_LIBTOOL_TRUE=
9617 GL_COND_LIBTOOL_FALSE='#'
9619 GL_COND_LIBTOOL_TRUE='#'
9620 GL_COND_LIBTOOL_FALSE=
9623 gl_cond_libtool=false
9626 gl_m4_base='import/m4'
9636 gl_source_base='import'
9639 if test $ac_cv_func_alloca_works = no; then
9643 # Define an additional variable used in the Makefile substitution.
9644 if test $ac_cv_working_alloca_h = yes; then
9645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
9646 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
9647 if test "${gl_cv_rpl_alloca+set}" = set; then :
9648 $as_echo_n "(cached) " >&6
9651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9652 /* end confdefs.h. */
9654 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
9659 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9660 $EGREP "Need own alloca" >/dev/null 2>&1; then :
9661 gl_cv_rpl_alloca=yes
9669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
9670 $as_echo "$gl_cv_rpl_alloca" >&6; }
9671 if test $gl_cv_rpl_alloca = yes; then
9673 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
9683 if test -n "$ALLOCA_H"; then
9684 GL_GENERATE_ALLOCA_H_TRUE=
9685 GL_GENERATE_ALLOCA_H_FALSE='#'
9687 GL_GENERATE_ALLOCA_H_TRUE='#'
9688 GL_GENERATE_ALLOCA_H_FALSE=
9693 if test "x$datarootdir" = x; then
9694 datarootdir='${datadir}'
9697 if test "x$docdir" = x; then
9698 docdir='${datarootdir}/doc/${PACKAGE}'
9701 if test "x$htmldir" = x; then
9705 if test "x$dvidir" = x; then
9709 if test "x$pdfdir" = x; then
9713 if test "x$psdir" = x; then
9717 if test "x$lispdir" = x; then
9718 lispdir='${datarootdir}/emacs/site-lisp'
9721 if test "x$localedir" = x; then
9722 localedir='${datarootdir}/locale'
9726 pkglibexecdir='${libexecdir}/${PACKAGE}'
9734 REPLACE_FLOAT_LDBL=0
9736 aix* | beos* | openbsd* | mirbsd* | irix*)
9745 # On x86_64 systems, the C compiler may still be generating
9747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9748 /* end confdefs.h. */
9749 #if defined __LP64__ || defined __x86_64__ || defined __amd64__
9753 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9754 $EGREP "yes" >/dev/null 2>&1; then :
9773 aix* | freebsd* | linux*)
9774 if test -n "$FLOAT_H"; then
9775 REPLACE_FLOAT_LDBL=1
9781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
9782 $as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
9783 if test "${gl_cv_func_itold_works+set}" = set; then :
9784 $as_echo_n "(cached) " >&6
9787 if test "$cross_compiling" = yes; then :
9790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9791 /* end confdefs.h. */
9792 #if defined __LP64__ || defined __arch64__
9796 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9797 $EGREP "yes" >/dev/null 2>&1; then :
9798 gl_cv_func_itold_works="guessing no"
9800 gl_cv_func_itold_works="guessing yes"
9805 *) gl_cv_func_itold_works="guessing yes" ;;
9809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9810 /* end confdefs.h. */
9813 volatile long double ld;
9822 if ac_fn_c_try_run "$LINENO"; then :
9823 gl_cv_func_itold_works=yes
9825 gl_cv_func_itold_works=no
9827 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9828 conftest.$ac_objext conftest.beam conftest.$ac_ext
9833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
9834 $as_echo "$gl_cv_func_itold_works" >&6; }
9835 case "$gl_cv_func_itold_works" in
9842 if test -n "$FLOAT_H"; then
9851 if test $gl_cv_have_include_next = yes; then
9852 gl_cv_next_float_h='<'float.h'>'
9854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
9855 $as_echo_n "checking absolute name of <float.h>... " >&6; }
9856 if test "${gl_cv_next_float_h+set}" = set; then :
9857 $as_echo_n "(cached) " >&6
9860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9861 /* end confdefs.h. */
9866 aix*) gl_absname_cpp="$ac_cpp -C" ;;
9867 *) gl_absname_cpp="$ac_cpp" ;;
9872 gl_dirsep_regex='[/\\]'
9875 gl_dirsep_regex='\/'
9878 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
9880 gl_header_literal_regex=`echo 'float.h' \
9881 |
sed -e "$gl_make_literal_regex_sed"`
9882 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9883 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9888 gl_cv_next_float_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9889 sed -n "$gl_absolute_header_sed"`'"'
9893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
9894 $as_echo "$gl_cv_next_float_h" >&6; }
9896 NEXT_FLOAT_H=$gl_cv_next_float_h
9898 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
9899 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9900 gl_next_as_first_directive='<'float.h'>'
9902 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9903 gl_next_as_first_directive=$gl_cv_next_float_h
9905 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
9912 if test -n "$FLOAT_H"; then
9913 GL_GENERATE_FLOAT_H_TRUE=
9914 GL_GENERATE_FLOAT_H_FALSE='#'
9916 GL_GENERATE_FLOAT_H_TRUE='#'
9917 GL_GENERATE_FLOAT_H_FALSE=
9922 if test $REPLACE_FLOAT_LDBL = 1; then
9931 gl_LIBOBJS="$gl_LIBOBJS float.$ac_objext"
9934 if test $REPLACE_ITOLD = 1; then
9943 gl_LIBOBJS="$gl_LIBOBJS itold.$ac_objext"
9952 gl_fnmatch_required_lowercase=`
9953 echo $gl_fnmatch_required | LC_ALL
=C
tr '[A-Z]' '[a-z]'
9955 gl_fnmatch_cache_var="gl_cv_func_fnmatch_${gl_fnmatch_required_lowercase}"
9956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working $gl_fnmatch_required fnmatch" >&5
9957 $as_echo_n "checking for working $gl_fnmatch_required fnmatch... " >&6; }
9958 if { as_var=$gl_fnmatch_cache_var; eval "test \"\${$as_var+set}\" = set"; }; then :
9959 $as_echo_n "(cached) " >&6
9961 if test $gl_fnmatch_required = GNU; then
9962 gl_fnmatch_gnu_start=
9965 gl_fnmatch_gnu_start='#if 0'
9966 gl_fnmatch_gnu_end='#endif'
9968 if test "$cross_compiling" = yes; then :
9969 eval "$gl_fnmatch_cache_var=\"guessing no\""
9971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9972 /* end confdefs.h. */
9973 #include <fnmatch.h>
9975 y (char const *pattern, char const *string, int flags)
9977 return fnmatch (pattern, string, flags) == 0;
9980 n (char const *pattern, char const *string, int flags)
9982 return fnmatch (pattern, string, flags) == FNM_NOMATCH;
9988 char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]";
9989 char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]";
9990 static char const A_1[] = { 'A' - 1, 0 };
9991 static char const A01[] = { 'A' + 1, 0 };
9992 static char const a_1[] = { 'a' - 1, 0 };
9993 static char const a01[] = { 'a' + 1, 0 };
9994 static char const bs_1[] = { '\\\\' - 1, 0 };
9995 static char const bs01[] = { '\\\\' + 1, 0 };
9997 if (!n ("a*", "", 0))
9999 if (!y ("a*", "abc", 0))
10001 if (!y ("[/b", "[/b", 0)) /*"]]"*/ /* glibc Bugzilla bug 12378 */
10003 if (!n ("d*/*1", "d/s/1", FNM_PATHNAME))
10005 if (!y ("a\\\\bc", "abc", 0))
10007 if (!n ("a\\\\bc", "abc", FNM_NOESCAPE))
10009 if (!y ("*x", ".x", 0))
10011 if (!n ("*x", ".x", FNM_PERIOD))
10013 if (!y (Apat, "\\\\", 0))
10015 if (!y (Apat, "A", 0))
10017 if (!y (apat, "\\\\", 0))
10019 if (!y (apat, "a", 0))
10021 if (!(n (Apat, A_1, 0) == ('A' < '\\\\')))
10023 if (!(n (apat, a_1, 0) == ('a' < '\\\\')))
10025 if (!(y (Apat, A01, 0) == ('A' < '\\\\')))
10027 if (!(y (apat, a01, 0) == ('a' < '\\\\')))
10029 if (!(y (Apat, bs_1, 0) == ('A' < '\\\\')))
10031 if (!(y (apat, bs_1, 0) == ('a' < '\\\\')))
10033 if (!(n (Apat, bs01, 0) == ('A' < '\\\\')))
10035 if (!(n (apat, bs01, 0) == ('a' < '\\\\')))
10037 $gl_fnmatch_gnu_start
10038 if (!y ("xxXX", "xXxX", FNM_CASEFOLD))
10040 if (!y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH))
10042 if (!n ("d*/*1", "d/s/1", FNM_FILE_NAME))
10044 if (!y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR))
10046 if (!y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR))
10048 if (!y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR))
10050 $gl_fnmatch_gnu_end
10057 if ac_fn_c_try_run "$LINENO"; then :
10058 eval "$gl_fnmatch_cache_var=yes"
10060 eval "$gl_fnmatch_cache_var=no"
10062 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10063 conftest.$ac_objext conftest.beam conftest.$ac_ext
10068 eval ac_res=\$$gl_fnmatch_cache_var
10069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10070 $as_echo "$ac_res" >&6; }
10071 eval "gl_fnmatch_result=\"\$$gl_fnmatch_cache_var\""
10072 if test "$gl_fnmatch_result" = yes; then
10073 rm -f "$gl_source_base/fnmatch.h"
10075 FNMATCH_H=fnmatch.h
10078 if test -n "$FNMATCH_H"; then
10079 GL_GENERATE_FNMATCH_H_TRUE=
10080 GL_GENERATE_FNMATCH_H_FALSE='#'
10082 GL_GENERATE_FNMATCH_H_TRUE='#'
10083 GL_GENERATE_FNMATCH_H_FALSE=
10087 if test -n "$FNMATCH_H"; then
10096 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
10100 cat >>confdefs.h <<_ACEOF
10101 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
10105 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
10107 if test "x$ac_cv_have_decl_isblank" = x""yes; then :
10113 cat >>confdefs.h <<_ACEOF
10114 #define HAVE_DECL_ISBLANK $ac_have_decl
10126 if test -n "$FNMATCH_H"; then
10135 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
10139 cat >>confdefs.h <<_ACEOF
10140 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
10144 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
10146 if test "x$ac_cv_have_decl_isblank" = x""yes; then :
10152 cat >>confdefs.h <<_ACEOF
10153 #define HAVE_DECL_ISBLANK $ac_have_decl
10164 if test $gl_cv_func_frexp_no_libm = no; then
10165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used with libm" >&5
10166 $as_echo_n "checking whether frexp() can be used with libm... " >&6; }
10167 if test "${gl_cv_func_frexp_in_libm+set}" = set; then :
10168 $as_echo_n "(cached) " >&6
10173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10174 /* end confdefs.h. */
10180 int e; return frexp (x, &e) > 0;
10185 if ac_fn_c_try_link "$LINENO"; then :
10186 gl_cv_func_frexp_in_libm=yes
10188 gl_cv_func_frexp_in_libm=no
10190 rm -f core conftest.err conftest.$ac_objext \
10191 conftest$ac_exeext conftest.$ac_ext
10195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_in_libm" >&5
10196 $as_echo "$gl_cv_func_frexp_in_libm" >&6; }
10197 if test $gl_cv_func_frexp_in_libm = yes; then
10201 if test $gl_cv_func_frexp_no_libm = yes \
10202 || test $gl_cv_func_frexp_in_libm = yes; then
10204 LIBS="$LIBS $FREXP_LIBM"
10208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp works" >&5
10209 $as_echo_n "checking whether frexp works... " >&6; }
10210 if test "${gl_cv_func_frexp_works+set}" = set; then :
10211 $as_echo_n "(cached) " >&6
10214 if test "$cross_compiling" = yes; then :
10216 netbsd* | irix* | mingw*) gl_cv_func_frexp_works="guessing no";;
10217 *) gl_cv_func_frexp_works="guessing yes";;
10221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10222 /* end confdefs.h. */
10226 #include <string.h>
10228 # include <unistd.h>
10230 /* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0.
10231 ICC 10.0 has a bug when optimizing the expression -zero.
10232 The expression -DBL_MIN * DBL_MIN does not work when cross-compiling
10233 to PowerPC on Mac OS X 10.5. */
10234 #if defined __hpux || defined __sgi || defined __ICC
10236 compute_minus_zero (void)
10238 return -DBL_MIN * DBL_MIN;
10240 # define minus_zero compute_minus_zero ()
10242 double minus_zero = -0.0;
10251 /* NeXTstep 3.3 frexp() runs into an endless loop when called on an infinite
10252 number. Let the test fail in this case. */
10255 /* Test on denormalized numbers. */
10256 for (i = 1, x = 1.0; i >= DBL_MIN_EXP; i--, x *= 0.5)
10261 double y = frexp (x, &exp);
10262 /* On machines with IEEE754 arithmetic: x = 1.11254e-308, exp = -1022.
10263 On NetBSD: y = 0.75. Correct: y = 0.5. */
10267 /* Test on infinite numbers. */
10271 double y = frexp (x, &exp);
10275 /* Test on negative zero. */
10279 double y = frexp (x, &exp);
10280 if (memcmp (&y, &x, sizeof x))
10286 if ac_fn_c_try_run "$LINENO"; then :
10287 gl_cv_func_frexp_works=yes
10289 gl_cv_func_frexp_works=no
10291 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10292 conftest.$ac_objext conftest.beam conftest.$ac_ext
10297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_works" >&5
10298 $as_echo "$gl_cv_func_frexp_works" >&6; }
10301 case "$gl_cv_func_frexp_works" in
10302 *yes) gl_func_frexp=yes ;;
10303 *) gl_func_frexp=no; REPLACE_FREXP=1; FREXP_LIBM= ;;
10308 if test $gl_func_frexp = yes; then
10310 $as_echo "#define HAVE_FREXP 1" >>confdefs.h
10315 if test $gl_func_frexp != yes; then
10324 gl_LIBOBJS="$gl_LIBOBJS frexp.$ac_objext"
10338 $as_echo "#define GNULIB_TEST_FREXP 1" >>confdefs.h
10348 ac_fn_c_check_decl "$LINENO" "frexpl" "ac_cv_have_decl_frexpl" "#include <math.h>
10350 if test "x$ac_cv_have_decl_frexpl" = x""yes; then :
10358 if test $HAVE_DECL_FREXPL = 1; then
10360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used without linking with libm" >&5
10361 $as_echo_n "checking whether frexpl() can be used without linking with libm... " >&6; }
10362 if test "${gl_cv_func_frexpl_no_libm+set}" = set; then :
10363 $as_echo_n "(cached) " >&6
10366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10367 /* end confdefs.h. */
10373 int e; return frexpl (x, &e) > 0;
10378 if ac_fn_c_try_link "$LINENO"; then :
10379 gl_cv_func_frexpl_no_libm=yes
10381 gl_cv_func_frexpl_no_libm=no
10383 rm -f core conftest.err conftest.$ac_objext \
10384 conftest$ac_exeext conftest.$ac_ext
10387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_no_libm" >&5
10388 $as_echo "$gl_cv_func_frexpl_no_libm" >&6; }
10390 if test $gl_cv_func_frexpl_no_libm = no; then
10391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used with libm" >&5
10392 $as_echo_n "checking whether frexpl() can be used with libm... " >&6; }
10393 if test "${gl_cv_func_frexpl_in_libm+set}" = set; then :
10394 $as_echo_n "(cached) " >&6
10399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10400 /* end confdefs.h. */
10406 int e; return frexpl (x, &e) > 0;
10411 if ac_fn_c_try_link "$LINENO"; then :
10412 gl_cv_func_frexpl_in_libm=yes
10414 gl_cv_func_frexpl_in_libm=no
10416 rm -f core conftest.err conftest.$ac_objext \
10417 conftest$ac_exeext conftest.$ac_ext
10421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_in_libm" >&5
10422 $as_echo "$gl_cv_func_frexpl_in_libm" >&6; }
10423 if test $gl_cv_func_frexpl_in_libm = yes; then
10427 if test $gl_cv_func_frexpl_no_libm = yes \
10428 || test $gl_cv_func_frexpl_in_libm = yes; then
10430 LIBS="$LIBS $FREXPL_LIBM"
10433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl works" >&5
10434 $as_echo_n "checking whether frexpl works... " >&6; }
10435 if test "${gl_cv_func_frexpl_works+set}" = set; then :
10436 $as_echo_n "(cached) " >&6
10439 if test "$cross_compiling" = yes; then :
10442 aix | aix[3-6]* | beos* | darwin* | irix* | mingw* | pw*)
10443 gl_cv_func_frexpl_works="guessing no";;
10444 *) gl_cv_func_frexpl_works="guessing yes";;
10448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10449 /* end confdefs.h. */
10453 /* Override the values of <float.h>, like done in float.in.h. */
10454 #if defined __i386__ && (defined __BEOS__ || defined __OpenBSD__)
10455 # undef LDBL_MIN_EXP
10456 # define LDBL_MIN_EXP (-16381)
10458 #if defined __i386__ && defined __FreeBSD__
10459 # undef LDBL_MIN_EXP
10460 # define LDBL_MIN_EXP (-16381)
10462 #if (defined _ARCH_PPC || defined _POWER) && defined _AIX && (LDBL_MANT_DIG == 106) && defined __GNUC__
10463 # undef LDBL_MIN_EXP
10464 # define LDBL_MIN_EXP DBL_MIN_EXP
10466 #if defined __sgi && (LDBL_MANT_DIG >= 106)
10467 # if defined __GNUC__
10468 # undef LDBL_MIN_EXP
10469 # define LDBL_MIN_EXP DBL_MIN_EXP
10476 long double frexpl (long double, int *);
10480 volatile long double x;
10481 /* Test on finite numbers that fails on AIX 5.1. */
10489 /* Test on finite numbers that fails on Mac OS X 10.4, because its frexpl
10490 function returns an invalid (incorrectly normalized) value: it returns
10491 y = { 0x3fe028f5, 0xc28f5c28, 0x3c9eb851, 0xeb851eb8 }
10492 but the correct result is
10493 0.505L = { 0x3fe028f5, 0xc28f5c29, 0xbc547ae1, 0x47ae1480 } */
10497 long double y = frexpl (x, &exp);
10498 if (!(exp == 1 && y == 0.505L))
10501 /* Test on large finite numbers. This fails on BeOS at i = 16322, while
10502 LDBL_MAX_EXP = 16384.
10503 In the loop end test, we test x against Infinity, rather than comparing
10504 i with LDBL_MAX_EXP, because BeOS <float.h> has a wrong LDBL_MAX_EXP. */
10507 for (i = 1, x = 1.0L; x != x + x; i++, x *= 2.0L)
10518 /* Test on denormalized numbers. */
10521 for (i = 1, x = 1.0L; i >= LDBL_MIN_EXP; i--, x *= 0.5L)
10526 long double y = frexpl (x, &exp);
10527 /* On machines with IEEE854 arithmetic: x = 1.68105e-4932,
10528 exp = -16382, y = 0.5. On Mac OS X 10.5: exp = -16384, y = 0.5. */
10529 if (exp != LDBL_MIN_EXP - 1)
10533 /* Test on infinite numbers. */
10537 long double y = frexpl (x, &exp);
10544 if ac_fn_c_try_run "$LINENO"; then :
10545 gl_cv_func_frexpl_works=yes
10547 gl_cv_func_frexpl_works=no
10549 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10550 conftest.$ac_objext conftest.beam conftest.$ac_ext
10555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_works" >&5
10556 $as_echo "$gl_cv_func_frexpl_works" >&6; }
10559 case "$gl_cv_func_frexpl_works" in
10560 *yes) gl_func_frexpl=yes ;;
10561 *) gl_func_frexpl=no; REPLACE_FREXPL=1 ;;
10566 if test $gl_func_frexpl = yes; then
10568 $as_echo "#define HAVE_FREXPL 1" >>confdefs.h
10572 if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl = no; then
10573 if test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1; then
10575 FREXPL_LIBM="$FREXP_LIBM"
10582 if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl = no; then
10591 gl_LIBOBJS="$gl_LIBOBJS frexpl.$ac_objext"
10605 $as_echo "#define GNULIB_TEST_FREXPL 1" >>confdefs.h
10615 if test -n "$STDINT_H"; then
10616 PRIPTR_PREFIX='"l"'
10618 for glpfx in '' l ll I64; do
10620 '') gltype1='int';;
10621 l) gltype1='long int';;
10622 ll) gltype1='long long int';;
10623 I64) gltype1='__int64';;
10625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10626 /* end confdefs.h. */
10627 #include <stdint.h>
10628 extern intptr_t foo;
10629 extern $gltype1 foo;
10638 if ac_fn_c_try_compile "$LINENO"; then :
10639 PRIPTR_PREFIX='"'$glpfx'"'
10641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10642 test -n "$PRIPTR_PREFIX" && break
10648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5
10649 $as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
10650 if test "${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+set}" = set; then :
10651 $as_echo_n "(cached) " >&6
10653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10654 /* end confdefs.h. */
10655 /* Work also in C++ mode. */
10656 #define __STDC_LIMIT_MACROS 1
10658 /* Work if build is not clean. */
10659 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
10661 #include <limits.h>
10663 #include <stdint.h>
10666 #if defined INT32_MAX && defined INTMAX_MAX
10667 #define CONDITION (INT32_MAX < INTMAX_MAX)
10668 #elif HAVE_LONG_LONG_INT
10669 #define CONDITION (sizeof (int) < sizeof (long long int))
10671 #define CONDITION 0
10673 int test[CONDITION ? 1 : -1];
10682 if ac_fn_c_try_compile "$LINENO"; then :
10683 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=yes
10685 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=no
10687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
10690 $as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
10691 if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
10692 INT32_MAX_LT_INTMAX_MAX=1;
10694 INT32_MAX_LT_INTMAX_MAX=0;
10698 if test $APPLE_UNIVERSAL_BUILD = 0; then
10700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5
10701 $as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; }
10702 if test "${gl_cv_test_INT64_MAX_EQ_LONG_MAX+set}" = set; then :
10703 $as_echo_n "(cached) " >&6
10705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10706 /* end confdefs.h. */
10707 /* Work also in C++ mode. */
10708 #define __STDC_LIMIT_MACROS 1
10710 /* Work if build is not clean. */
10711 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
10713 #include <limits.h>
10715 #include <stdint.h>
10718 #if defined INT64_MAX
10719 #define CONDITION (INT64_MAX == LONG_MAX)
10720 #elif HAVE_LONG_LONG_INT
10721 #define CONDITION (sizeof (long long int) == sizeof (long int))
10723 #define CONDITION 0
10725 int test[CONDITION ? 1 : -1];
10734 if ac_fn_c_try_compile "$LINENO"; then :
10735 gl_cv_test_INT64_MAX_EQ_LONG_MAX=yes
10737 gl_cv_test_INT64_MAX_EQ_LONG_MAX=no
10739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
10742 $as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
10743 if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
10744 INT64_MAX_EQ_LONG_MAX=1;
10746 INT64_MAX_EQ_LONG_MAX=0;
10751 INT64_MAX_EQ_LONG_MAX=-1
10754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5
10755 $as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
10756 if test "${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+set}" = set; then :
10757 $as_echo_n "(cached) " >&6
10759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10760 /* end confdefs.h. */
10761 /* Work also in C++ mode. */
10762 #define __STDC_LIMIT_MACROS 1
10764 /* Work if build is not clean. */
10765 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
10767 #include <limits.h>
10769 #include <stdint.h>
10772 #if defined UINT32_MAX && defined UINTMAX_MAX
10773 #define CONDITION (UINT32_MAX < UINTMAX_MAX)
10774 #elif HAVE_LONG_LONG_INT
10775 #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
10777 #define CONDITION 0
10779 int test[CONDITION ? 1 : -1];
10788 if ac_fn_c_try_compile "$LINENO"; then :
10789 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=yes
10791 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=no
10793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
10796 $as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
10797 if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
10798 UINT32_MAX_LT_UINTMAX_MAX=1;
10800 UINT32_MAX_LT_UINTMAX_MAX=0;
10804 if test $APPLE_UNIVERSAL_BUILD = 0; then
10806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5
10807 $as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
10808 if test "${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+set}" = set; then :
10809 $as_echo_n "(cached) " >&6
10811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10812 /* end confdefs.h. */
10813 /* Work also in C++ mode. */
10814 #define __STDC_LIMIT_MACROS 1
10816 /* Work if build is not clean. */
10817 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
10819 #include <limits.h>
10821 #include <stdint.h>
10824 #if defined UINT64_MAX
10825 #define CONDITION (UINT64_MAX == ULONG_MAX)
10826 #elif HAVE_LONG_LONG_INT
10827 #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
10829 #define CONDITION 0
10831 int test[CONDITION ? 1 : -1];
10840 if ac_fn_c_try_compile "$LINENO"; then :
10841 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=yes
10843 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=no
10845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
10848 $as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
10849 if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
10850 UINT64_MAX_EQ_ULONG_MAX=1;
10852 UINT64_MAX_EQ_ULONG_MAX=0;
10857 UINT64_MAX_EQ_ULONG_MAX=-1
10864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(double) can be used without linking with libm" >&5
10865 $as_echo_n "checking whether isnan(double) can be used without linking with libm... " >&6; }
10866 if test "${gl_cv_func_isnand_no_libm+set}" = set; then :
10867 $as_echo_n "(cached) " >&6
10870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10871 /* end confdefs.h. */
10875 # define isnand(x) __builtin_isnan ((double)(x))
10878 # define isnand(x) isnan ((double)(x))
10889 if ac_fn_c_try_link "$LINENO"; then :
10890 gl_cv_func_isnand_no_libm=yes
10892 gl_cv_func_isnand_no_libm=no
10894 rm -f core conftest.err conftest.$ac_objext \
10895 conftest$ac_exeext conftest.$ac_ext
10898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnand_no_libm" >&5
10899 $as_echo "$gl_cv_func_isnand_no_libm" >&6; }
10901 gl_func_isnand_no_libm=$gl_cv_func_isnand_no_libm
10902 if test $gl_cv_func_isnand_no_libm = yes; then
10904 $as_echo "#define HAVE_ISNAND_IN_LIBC 1" >>confdefs.h
10908 if test $gl_func_isnand_no_libm != yes; then
10917 gl_LIBOBJS="$gl_LIBOBJS isnand.$ac_objext"
10925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(long double) can be used without linking with libm" >&5
10926 $as_echo_n "checking whether isnan(long double) can be used without linking with libm... " >&6; }
10927 if test "${gl_cv_func_isnanl_no_libm+set}" = set; then :
10928 $as_echo_n "(cached) " >&6
10931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10932 /* end confdefs.h. */
10936 # define isnanl(x) __builtin_isnanl ((long double)(x))
10937 #elif defined isnan
10939 # define isnanl(x) isnan ((long double)(x))
10950 if ac_fn_c_try_link "$LINENO"; then :
10951 gl_cv_func_isnanl_no_libm=yes
10953 gl_cv_func_isnanl_no_libm=no
10955 rm -f core conftest.err conftest.$ac_objext \
10956 conftest$ac_exeext conftest.$ac_ext
10959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_no_libm" >&5
10960 $as_echo "$gl_cv_func_isnanl_no_libm" >&6; }
10962 gl_func_isnanl_no_libm=$gl_cv_func_isnanl_no_libm
10963 if test $gl_func_isnanl_no_libm = yes; then
10968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnanl works" >&5
10969 $as_echo_n "checking whether isnanl works... " >&6; }
10970 if test "${gl_cv_func_isnanl_works+set}" = set; then :
10971 $as_echo_n "(cached) " >&6
10974 if test "$cross_compiling" = yes; then :
10975 case "$host_cpu" in
10976 # Guess no on ia64, x86_64, i386.
10977 ia64 | x86_64 | i*86) gl_cv_func_isnanl_works="guessing no";;
10980 netbsd*) gl_cv_func_isnanl_works="guessing no";;
10981 *) gl_cv_func_isnanl_works="guessing yes";;
10987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10988 /* end confdefs.h. */
10991 #include <limits.h>
10995 # define isnanl(x) __builtin_isnanl ((long double)(x))
10996 #elif defined isnan
10998 # define isnanl(x) isnan ((long double)(x))
11001 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
11002 typedef union { unsigned int word[NWORDS]; long double value; }
11003 memory_long_double;
11004 /* On Irix 6.5, gcc 3.4.3 can't compute compile-time NaN, and needs the
11005 runtime type conversion. */
11007 static long double NaNl ()
11010 return zero / zero;
11013 # define NaNl() (0.0L / 0.0L)
11019 if (!isnanl (NaNl ()))
11023 memory_long_double m;
11026 /* The isnanl function should be immune against changes in the sign bit and
11027 in the mantissa bits. The xor operation twiddles a bit that can only be
11028 a sign bit or a mantissa bit (since the exponent never extends to
11031 m.word[NWORDS / 2] ^= (unsigned int) 1 << (sizeof (unsigned int) * CHAR_BIT - 1);
11032 for (i = 0; i < NWORDS; i++)
11034 if (!isnanl (m.value))
11038 #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
11039 /* Representation of an 80-bit 'long double' as an initializer for a sequence
11040 of 'unsigned int' words. */
11041 # ifdef WORDS_BIGENDIAN
11042 # define LDBL80_WORDS(exponent,manthi,mantlo) \
11043 { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
11044 ((unsigned int) (manthi) << 16) | (unsigned int) (mantlo) >> 16), \
11045 (unsigned int) (mantlo) << 16 \
11048 # define LDBL80_WORDS(exponent,manthi,mantlo) \
11049 { mantlo, manthi, exponent }
11052 static memory_long_double x =
11053 { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) };
11054 if (!isnanl (x.value))
11058 /* Signalling NaN. */
11059 static memory_long_double x =
11060 { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) };
11061 if (!isnanl (x.value))
11064 /* The isnanl function should recognize Pseudo-NaNs, Pseudo-Infinities,
11065 Pseudo-Zeroes, Unnormalized Numbers, and Pseudo-Denormals, as defined in
11066 Intel IA-64 Architecture Software Developer's Manual, Volume 1:
11067 Application Architecture.
11068 Table 5-2 "Floating-Point Register Encodings"
11069 Figure 5-6 "Memory to Floating-Point Register Data Translation"
11071 { /* Pseudo-NaN. */
11072 static memory_long_double x =
11073 { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) };
11074 if (!isnanl (x.value))
11077 { /* Pseudo-Infinity. */
11078 static memory_long_double x =
11079 { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) };
11080 if (!isnanl (x.value))
11083 { /* Pseudo-Zero. */
11084 static memory_long_double x =
11085 { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) };
11086 if (!isnanl (x.value))
11089 { /* Unnormalized number. */
11090 static memory_long_double x =
11091 { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) };
11092 if (!isnanl (x.value))
11095 { /* Pseudo-Denormal. */
11096 static memory_long_double x =
11097 { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) };
11098 if (!isnanl (x.value))
11106 if ac_fn_c_try_run "$LINENO"; then :
11107 gl_cv_func_isnanl_works=yes
11109 gl_cv_func_isnanl_works=no
11111 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11112 conftest.$ac_objext conftest.beam conftest.$ac_ext
11117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_works" >&5
11118 $as_echo "$gl_cv_func_isnanl_works" >&6; }
11120 case "$gl_cv_func_isnanl_works" in
11122 *) gl_func_isnanl_no_libm=no ;;
11125 if test $gl_func_isnanl_no_libm = yes; then
11127 $as_echo "#define HAVE_ISNANL_IN_LIBC 1" >>confdefs.h
11131 if test $gl_func_isnanl_no_libm != yes; then
11140 gl_LIBOBJS="$gl_LIBOBJS isnanl.$ac_objext"
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'long double'" >&5
11146 $as_echo_n "checking where to find the exponent in a 'long double'... " >&6; }
11147 if test "${gl_cv_cc_long_double_expbit0+set}" = set; then :
11148 $as_echo_n "(cached) " >&6
11151 if test "$cross_compiling" = yes; then :
11153 gl_cv_cc_long_double_expbit0="unknown"
11156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11157 /* end confdefs.h. */
11160 #include <stddef.h>
11162 #include <string.h>
11164 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
11165 typedef union { long double value; unsigned int word[NWORDS]; }
11166 memory_long_double;
11167 static unsigned int ored_words[NWORDS];
11168 static unsigned int anded_words[NWORDS];
11169 static void add_to_ored_words (long double x)
11171 memory_long_double m;
11173 /* Clear it first, in case
11174 sizeof (long double) < sizeof (memory_long_double). */
11175 memset (&m, 0, sizeof (memory_long_double));
11177 for (i = 0; i < NWORDS; i++)
11179 ored_words[i] |= m.word[i];
11180 anded_words[i] &= m.word[i];
11186 FILE *fp = fopen ("conftest.out", "w");
11189 for (j = 0; j < NWORDS; j++)
11190 anded_words[j] = ~ (unsigned int) 0;
11191 add_to_ored_words (0.25L);
11192 add_to_ored_words (0.5L);
11193 add_to_ored_words (1.0L);
11194 add_to_ored_words (2.0L);
11195 add_to_ored_words (4.0L);
11196 /* Remove bits that are common (e.g. if representation of the first mantissa
11197 bit is explicit). */
11198 for (j = 0; j < NWORDS; j++)
11199 ored_words[j] &= ~anded_words[j];
11200 /* Now find the nonzero word. */
11201 for (j = 0; j < NWORDS; j++)
11202 if (ored_words[j] != 0)
11207 for (i = j + 1; i < NWORDS; i++)
11208 if (ored_words[i] != 0)
11210 fprintf (fp, "unknown");
11211 return (fclose (fp) != 0);
11214 if ((ored_words[j] >> i) & 1)
11216 fprintf (fp, "word %d bit %d", (int) j, (int) i);
11217 return (fclose (fp) != 0);
11220 fprintf (fp, "unknown");
11221 return (fclose (fp) != 0);
11225 if ac_fn_c_try_run "$LINENO"; then :
11226 gl_cv_cc_long_double_expbit0=`cat conftest.out
`
11228 gl_cv_cc_long_double_expbit0="unknown"
11230 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11231 conftest.$ac_objext conftest.beam conftest.$ac_ext
11237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_long_double_expbit0" >&5
11238 $as_echo "$gl_cv_cc_long_double_expbit0" >&6; }
11239 case "$gl_cv_cc_long_double_expbit0" in
11241 word=`echo "$gl_cv_cc_long_double_expbit0" |
sed -e 's/word //' -e 's/ bit.*//'`
11242 bit=`echo "$gl_cv_cc_long_double_expbit0" |
sed -e 's/word.*bit //'`
11244 cat >>confdefs.h <<_ACEOF
11245 #define LDBL_EXPBIT0_WORD $word
11249 cat >>confdefs.h <<_ACEOF
11250 #define LDBL_EXPBIT0_BIT $bit
11267 LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
11280 if test $gl_cv_have_include_next = yes; then
11281 gl_cv_next_math_h='<'math.h'>'
11283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <math.h>" >&5
11284 $as_echo_n "checking absolute name of <math.h>... " >&6; }
11285 if test "${gl_cv_next_math_h+set}" = set; then :
11286 $as_echo_n "(cached) " >&6
11289 if test $ac_cv_header_math_h = yes; then
11292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11293 /* end confdefs.h. */
11298 aix*) gl_absname_cpp="$ac_cpp -C" ;;
11299 *) gl_absname_cpp="$ac_cpp" ;;
11304 gl_dirsep_regex='[/\\]'
11307 gl_dirsep_regex='\/'
11310 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
11312 gl_header_literal_regex=`echo 'math.h' \
11313 |
sed -e "$gl_make_literal_regex_sed"`
11314 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11315 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11320 gl_cv_next_math_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11321 sed -n "$gl_absolute_header_sed"`'"'
11323 gl_cv_next_math_h='<'math.h'>'
11328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_math_h" >&5
11329 $as_echo "$gl_cv_next_math_h" >&6; }
11331 NEXT_MATH_H=$gl_cv_next_math_h
11333 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11334 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11335 gl_next_as_first_directive='<'math.h'>'
11337 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11338 gl_next_as_first_directive=$gl_cv_next_math_h
11340 NEXT_AS_FIRST_DIRECTIVE_MATH_H=$gl_next_as_first_directive
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NAN macro works" >&5
11347 $as_echo_n "checking whether NAN macro works... " >&6; }
11348 if test "${gl_cv_header_math_nan_works+set}" = set; then :
11349 $as_echo_n "(cached) " >&6
11351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11352 /* end confdefs.h. */
11357 /* Solaris 10 has a broken definition of NAN. Other platforms
11358 fail to provide NAN, or provide it only in C99 mode; this
11359 test only needs to fail when NAN is provided but wrong. */
11369 if ac_fn_c_try_compile "$LINENO"; then :
11370 gl_cv_header_math_nan_works=yes
11372 gl_cv_header_math_nan_works=no
11374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_nan_works" >&5
11377 $as_echo "$gl_cv_header_math_nan_works" >&6; }
11378 if test $gl_cv_header_math_nan_works = no; then
11381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether HUGE_VAL works" >&5
11382 $as_echo_n "checking whether HUGE_VAL works... " >&6; }
11383 if test "${gl_cv_header_math_huge_val_works+set}" = set; then :
11384 $as_echo_n "(cached) " >&6
11386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11387 /* end confdefs.h. */
11392 /* Solaris 10 has a broken definition of HUGE_VAL. */
11393 double d = HUGE_VAL;
11399 if ac_fn_c_try_compile "$LINENO"; then :
11400 gl_cv_header_math_huge_val_works=yes
11402 gl_cv_header_math_huge_val_works=no
11404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_huge_val_works" >&5
11407 $as_echo "$gl_cv_header_math_huge_val_works" >&6; }
11408 if test $gl_cv_header_math_huge_val_works = no; then
11413 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
11414 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
11416 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
11417 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
11418 $as_echo_n "(cached) " >&6
11420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11421 /* end confdefs.h. */
11432 if ac_fn_c_try_compile "$LINENO"; then :
11433 eval "$as_gl_Symbol=yes"
11435 eval "$as_gl_Symbol=no"
11437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11439 eval ac_res=\$$as_gl_Symbol
11440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11441 $as_echo "$ac_res" >&6; }
11442 eval as_val=\$$as_gl_Symbol
11443 if test "x$as_val" = x""yes; then :
11444 cat >>confdefs.h <<_ACEOF
11445 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
11448 eval ac_cv_have_decl_$gl_func=yes
11463 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
11467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
11468 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
11469 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
11470 $as_echo_n "(cached) " >&6
11474 # Guess no on AIX and OSF/1.
11475 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
11476 # Guess yes otherwise.
11477 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
11479 if test $LOCALE_JA != none; then
11480 if test "$cross_compiling" = yes; then :
11483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11484 /* end confdefs.h. */
11486 #include <locale.h>
11487 #include <string.h>
11488 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11490 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11491 included before <wchar.h>. */
11492 #include <stddef.h>
11498 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
11500 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
11504 memset (&state, '\0', sizeof (mbstate_t));
11505 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
11506 if (mbsinit (&state))
11512 if ac_fn_c_try_run "$LINENO"; then :
11513 gl_cv_func_mbrtowc_incomplete_state=yes
11515 gl_cv_func_mbrtowc_incomplete_state=no
11517 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11518 conftest.$ac_objext conftest.beam conftest.$ac_ext
11524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
11525 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
11530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
11531 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
11532 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
11533 $as_echo_n "(cached) " >&6
11537 # Guess no on Solaris 8.
11538 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
11539 # Guess yes otherwise.
11540 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
11542 if test $LOCALE_ZH_CN != none; then
11543 if test "$cross_compiling" = yes; then :
11546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11547 /* end confdefs.h. */
11549 #include <locale.h>
11550 #include <stdlib.h>
11551 #include <string.h>
11552 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11554 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11555 included before <wchar.h>. */
11556 #include <stddef.h>
11562 /* This fails on Solaris 8:
11563 mbrtowc returns 2, and sets wc to 0x00F0.
11564 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
11565 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
11567 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
11571 memset (&state, '\0', sizeof (mbstate_t));
11572 if (mbrtowc (&wc, input + 3, 6, &state) != 4
11573 && mbtowc (&wc, input + 3, 6) == 4)
11579 if ac_fn_c_try_run "$LINENO"; then :
11580 gl_cv_func_mbrtowc_sanitycheck=yes
11582 gl_cv_func_mbrtowc_sanitycheck=no
11584 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11585 conftest.$ac_objext conftest.beam conftest.$ac_ext
11591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
11592 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
11594 REPLACE_MBSTATE_T=0
11595 case "$gl_cv_func_mbrtowc_incomplete_state" in
11597 *) REPLACE_MBSTATE_T=1 ;;
11599 case "$gl_cv_func_mbrtowc_sanitycheck" in
11601 *) REPLACE_MBSTATE_T=1 ;;
11604 REPLACE_MBSTATE_T=1
11609 if test $ac_cv_func_mbrtowc = no; then
11611 ac_fn_c_check_decl "$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" "
11612 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11614 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11615 included before <wchar.h>. */
11616 #include <stddef.h>
11622 if test "x$ac_cv_have_decl_mbrtowc" = x""yes; then :
11628 cat >>confdefs.h <<_ACEOF
11629 #define HAVE_DECL_MBRTOWC $ac_have_decl
11632 if test $ac_cv_have_decl_mbrtowc = yes; then
11636 if test $REPLACE_MBSTATE_T = 1; then
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL pwc argument" >&5
11643 $as_echo_n "checking whether mbrtowc handles a NULL pwc argument... " >&6; }
11644 if test "${gl_cv_func_mbrtowc_null_arg1+set}" = set; then :
11645 $as_echo_n "(cached) " >&6
11649 # Guess no on Solaris.
11650 solaris*) gl_cv_func_mbrtowc_null_arg1="guessing no" ;;
11651 # Guess yes otherwise.
11652 *) gl_cv_func_mbrtowc_null_arg1="guessing yes" ;;
11654 if test $LOCALE_FR_UTF8 != none; then
11655 if test "$cross_compiling" = yes; then :
11658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11659 /* end confdefs.h. */
11661 #include <locale.h>
11662 #include <stdlib.h>
11663 #include <string.h>
11664 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11666 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11667 included before <wchar.h>. */
11668 #include <stddef.h>
11676 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
11678 char input[] = "\303\237er";
11683 memset (&state, '\0', sizeof (mbstate_t));
11684 wc = (wchar_t) 0xBADFACE;
11685 ret = mbrtowc (&wc, input, 5, &state);
11688 if (!mbsinit (&state))
11691 memset (&state, '\0', sizeof (mbstate_t));
11692 ret = mbrtowc (NULL, input, 5, &state);
11693 if (ret != 2) /* Solaris 7 fails here: ret is -1. */
11695 if (!mbsinit (&state))
11701 if ac_fn_c_try_run "$LINENO"; then :
11702 gl_cv_func_mbrtowc_null_arg1=yes
11704 gl_cv_func_mbrtowc_null_arg1=no
11706 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11707 conftest.$ac_objext conftest.beam conftest.$ac_ext
11713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg1" >&5
11714 $as_echo "$gl_cv_func_mbrtowc_null_arg1" >&6; }
11719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
11720 $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
11721 if test "${gl_cv_func_mbrtowc_null_arg2+set}" = set; then :
11722 $as_echo_n "(cached) " >&6
11726 # Guess no on OSF/1.
11727 osf*) gl_cv_func_mbrtowc_null_arg2="guessing no" ;;
11728 # Guess yes otherwise.
11729 *) gl_cv_func_mbrtowc_null_arg2="guessing yes" ;;
11731 if test $LOCALE_FR_UTF8 != none; then
11732 if test "$cross_compiling" = yes; then :
11735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11736 /* end confdefs.h. */
11738 #include <locale.h>
11739 #include <string.h>
11740 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11742 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11743 included before <wchar.h>. */
11744 #include <stddef.h>
11750 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
11756 memset (&state, '\0', sizeof (mbstate_t));
11757 wc = (wchar_t) 0xBADFACE;
11758 mbrtowc (&wc, NULL, 5, &state);
11759 /* Check that wc was not modified. */
11760 if (wc != (wchar_t) 0xBADFACE)
11766 if ac_fn_c_try_run "$LINENO"; then :
11767 gl_cv_func_mbrtowc_null_arg2=yes
11769 gl_cv_func_mbrtowc_null_arg2=no
11771 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11772 conftest.$ac_objext conftest.beam conftest.$ac_ext
11778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg2" >&5
11779 $as_echo "$gl_cv_func_mbrtowc_null_arg2" >&6; }
11786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
11787 $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
11788 if test "${gl_cv_func_mbrtowc_retval+set}" = set; then :
11789 $as_echo_n "(cached) " >&6
11793 # Guess no on HP-UX, Solaris, native Windows.
11794 hpux* | solaris* | mingw*) gl_cv_func_mbrtowc_retval="guessing no" ;;
11795 # Guess yes otherwise.
11796 *) gl_cv_func_mbrtowc_retval="guessing yes" ;;
11798 if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none \
11799 || { case "$host_os" in mingw*) true;; *) false;; esac; }; then
11800 if test "$cross_compiling" = yes; then :
11803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11804 /* end confdefs.h. */
11806 #include <locale.h>
11807 #include <string.h>
11808 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11810 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11811 included before <wchar.h>. */
11812 #include <stddef.h>
11819 int found_some_locale = 0;
11820 /* This fails on Solaris. */
11821 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
11823 char input[] = "B\303\274\303\237er"; /* "Büßer" */
11827 memset (&state, '\0', sizeof (mbstate_t));
11828 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
11831 if (mbrtowc (&wc, input + 2, 5, &state) != 1)
11834 found_some_locale = 1;
11836 /* This fails on HP-UX 11.11. */
11837 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
11839 char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
11843 memset (&state, '\0', sizeof (mbstate_t));
11844 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
11847 if (mbrtowc (&wc, input + 2, 5, &state) != 2)
11850 found_some_locale = 1;
11852 /* This fails on native Windows. */
11853 if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
11855 char input[] = "<\223\372\226\173\214\352>"; /* "<日本語>" */
11859 memset (&state, '\0', sizeof (mbstate_t));
11860 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
11863 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
11866 found_some_locale = 1;
11868 if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
11870 char input[] = "<\244\351\245\273\273\171>"; /* "<日本語>" */
11874 memset (&state, '\0', sizeof (mbstate_t));
11875 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
11878 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
11881 found_some_locale = 1;
11883 if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
11885 char input[] = "<\310\325\261\276\325\132>"; /* "<日本語>" */
11889 memset (&state, '\0', sizeof (mbstate_t));
11890 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
11893 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
11896 found_some_locale = 1;
11898 return (found_some_locale ? result : 77);
11901 if ac_fn_c_try_run "$LINENO"; then :
11902 gl_cv_func_mbrtowc_retval=yes
11904 if test $? != 77; then
11905 gl_cv_func_mbrtowc_retval=no
11909 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11910 conftest.$ac_objext conftest.beam conftest.$ac_ext
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
11917 $as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
11922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
11923 $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
11924 if test "${gl_cv_func_mbrtowc_nul_retval+set}" = set; then :
11925 $as_echo_n "(cached) " >&6
11929 # Guess no on Solaris 8 and 9.
11930 solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
11931 # Guess yes otherwise.
11932 *) gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
11934 if test $LOCALE_ZH_CN != none; then
11935 if test "$cross_compiling" = yes; then :
11938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11939 /* end confdefs.h. */
11941 #include <locale.h>
11942 #include <string.h>
11943 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11945 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11946 included before <wchar.h>. */
11947 #include <stddef.h>
11953 /* This fails on Solaris 8 and 9. */
11954 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
11959 memset (&state, '\0', sizeof (mbstate_t));
11960 if (mbrtowc (&wc, "", 1, &state) != 0)
11966 if ac_fn_c_try_run "$LINENO"; then :
11967 gl_cv_func_mbrtowc_nul_retval=yes
11969 gl_cv_func_mbrtowc_nul_retval=no
11971 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11972 conftest.$ac_objext conftest.beam conftest.$ac_ext
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
11979 $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
11981 case "$gl_cv_func_mbrtowc_null_arg1" in
11984 $as_echo "#define MBRTOWC_NULL_ARG1_BUG 1" >>confdefs.h
11989 case "$gl_cv_func_mbrtowc_null_arg2" in
11992 $as_echo "#define MBRTOWC_NULL_ARG2_BUG 1" >>confdefs.h
11997 case "$gl_cv_func_mbrtowc_retval" in
12000 $as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
12005 case "$gl_cv_func_mbrtowc_nul_retval" in
12008 $as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
12016 if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
12025 gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext"
12042 $as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
12057 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
12061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
12062 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
12063 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
12064 $as_echo_n "(cached) " >&6
12068 # Guess no on AIX and OSF/1.
12069 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
12070 # Guess yes otherwise.
12071 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
12073 if test $LOCALE_JA != none; then
12074 if test "$cross_compiling" = yes; then :
12077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12078 /* end confdefs.h. */
12080 #include <locale.h>
12081 #include <string.h>
12082 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12084 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12085 included before <wchar.h>. */
12086 #include <stddef.h>
12092 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
12094 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
12098 memset (&state, '\0', sizeof (mbstate_t));
12099 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
12100 if (mbsinit (&state))
12106 if ac_fn_c_try_run "$LINENO"; then :
12107 gl_cv_func_mbrtowc_incomplete_state=yes
12109 gl_cv_func_mbrtowc_incomplete_state=no
12111 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12112 conftest.$ac_objext conftest.beam conftest.$ac_ext
12118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
12119 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
12124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
12125 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
12126 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
12127 $as_echo_n "(cached) " >&6
12131 # Guess no on Solaris 8.
12132 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
12133 # Guess yes otherwise.
12134 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
12136 if test $LOCALE_ZH_CN != none; then
12137 if test "$cross_compiling" = yes; then :
12140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12141 /* end confdefs.h. */
12143 #include <locale.h>
12144 #include <stdlib.h>
12145 #include <string.h>
12146 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12148 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12149 included before <wchar.h>. */
12150 #include <stddef.h>
12156 /* This fails on Solaris 8:
12157 mbrtowc returns 2, and sets wc to 0x00F0.
12158 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
12159 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
12161 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
12165 memset (&state, '\0', sizeof (mbstate_t));
12166 if (mbrtowc (&wc, input + 3, 6, &state) != 4
12167 && mbtowc (&wc, input + 3, 6) == 4)
12173 if ac_fn_c_try_run "$LINENO"; then :
12174 gl_cv_func_mbrtowc_sanitycheck=yes
12176 gl_cv_func_mbrtowc_sanitycheck=no
12178 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12179 conftest.$ac_objext conftest.beam conftest.$ac_ext
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
12186 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
12188 REPLACE_MBSTATE_T=0
12189 case "$gl_cv_func_mbrtowc_incomplete_state" in
12191 *) REPLACE_MBSTATE_T=1 ;;
12193 case "$gl_cv_func_mbrtowc_sanitycheck" in
12195 *) REPLACE_MBSTATE_T=1 ;;
12198 REPLACE_MBSTATE_T=1
12203 if test $ac_cv_func_mbsinit = no; then
12205 ac_fn_c_check_decl "$LINENO" "mbsinit" "ac_cv_have_decl_mbsinit" "
12206 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12208 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12209 included before <wchar.h>. */
12210 #include <stddef.h>
12216 if test "x$ac_cv_have_decl_mbsinit" = x""yes; then :
12222 cat >>confdefs.h <<_ACEOF
12223 #define HAVE_DECL_MBSINIT $ac_have_decl
12226 if test $ac_cv_have_decl_mbsinit = yes; then
12230 if test $REPLACE_MBSTATE_T = 1; then
12234 mingw*) REPLACE_MBSINIT=1 ;;
12239 if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
12248 gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext"
12265 $as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
12279 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
12284 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
12285 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
12286 $as_echo_n "(cached) " >&6
12290 # Guess no on AIX and OSF/1.
12291 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
12292 # Guess yes otherwise.
12293 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
12295 if test $LOCALE_JA != none; then
12296 if test "$cross_compiling" = yes; then :
12299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12300 /* end confdefs.h. */
12302 #include <locale.h>
12303 #include <string.h>
12304 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12306 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12307 included before <wchar.h>. */
12308 #include <stddef.h>
12314 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
12316 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
12320 memset (&state, '\0', sizeof (mbstate_t));
12321 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
12322 if (mbsinit (&state))
12328 if ac_fn_c_try_run "$LINENO"; then :
12329 gl_cv_func_mbrtowc_incomplete_state=yes
12331 gl_cv_func_mbrtowc_incomplete_state=no
12333 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12334 conftest.$ac_objext conftest.beam conftest.$ac_ext
12340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
12341 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
12346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
12347 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
12348 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
12349 $as_echo_n "(cached) " >&6
12353 # Guess no on Solaris 8.
12354 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
12355 # Guess yes otherwise.
12356 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
12358 if test $LOCALE_ZH_CN != none; then
12359 if test "$cross_compiling" = yes; then :
12362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12363 /* end confdefs.h. */
12365 #include <locale.h>
12366 #include <stdlib.h>
12367 #include <string.h>
12368 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12370 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12371 included before <wchar.h>. */
12372 #include <stddef.h>
12378 /* This fails on Solaris 8:
12379 mbrtowc returns 2, and sets wc to 0x00F0.
12380 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
12381 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
12383 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
12387 memset (&state, '\0', sizeof (mbstate_t));
12388 if (mbrtowc (&wc, input + 3, 6, &state) != 4
12389 && mbtowc (&wc, input + 3, 6) == 4)
12395 if ac_fn_c_try_run "$LINENO"; then :
12396 gl_cv_func_mbrtowc_sanitycheck=yes
12398 gl_cv_func_mbrtowc_sanitycheck=no
12400 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12401 conftest.$ac_objext conftest.beam conftest.$ac_ext
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
12408 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
12410 REPLACE_MBSTATE_T=0
12411 case "$gl_cv_func_mbrtowc_incomplete_state" in
12413 *) REPLACE_MBSTATE_T=1 ;;
12415 case "$gl_cv_func_mbrtowc_sanitycheck" in
12417 *) REPLACE_MBSTATE_T=1 ;;
12420 REPLACE_MBSTATE_T=1
12425 if test $ac_cv_func_mbsrtowcs = no; then
12427 ac_fn_c_check_decl "$LINENO" "mbsrtowcs" "ac_cv_have_decl_mbsrtowcs" "
12428 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12430 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12431 included before <wchar.h>. */
12432 #include <stddef.h>
12438 if test "x$ac_cv_have_decl_mbsrtowcs" = x""yes; then :
12444 cat >>confdefs.h <<_ACEOF
12445 #define HAVE_DECL_MBSRTOWCS $ac_have_decl
12448 if test $ac_cv_have_decl_mbsrtowcs = yes; then
12449 REPLACE_MBSRTOWCS=1
12452 if test $REPLACE_MBSTATE_T = 1; then
12453 REPLACE_MBSRTOWCS=1
12461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbsrtowcs works" >&5
12462 $as_echo_n "checking whether mbsrtowcs works... " >&6; }
12463 if test "${gl_cv_func_mbsrtowcs_works+set}" = set; then :
12464 $as_echo_n "(cached) " >&6
12468 # Guess no on HP-UX, Solaris, mingw.
12469 hpux* | solaris* | mingw*) gl_cv_func_mbsrtowcs_works="guessing no" ;;
12470 # Guess yes otherwise.
12471 *) gl_cv_func_mbsrtowcs_works="guessing yes" ;;
12473 if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
12474 if test "$cross_compiling" = yes; then :
12477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12478 /* end confdefs.h. */
12480 #include <locale.h>
12481 #include <string.h>
12482 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12484 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12485 included before <wchar.h>. */
12486 #include <stddef.h>
12493 /* Test whether the function supports a NULL destination argument.
12494 This fails on native Windows. */
12495 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
12497 const char input[] = "\337er";
12498 const char *src = input;
12501 memset (&state, '\0', sizeof (mbstate_t));
12502 if (mbsrtowcs (NULL, &src, 1, &state) != 3
12506 /* Test whether the function works when started with a conversion state
12507 in non-initial state. This fails on HP-UX 11.11 and Solaris 10. */
12508 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
12510 const char input[] = "B\303\274\303\237er";
12513 memset (&state, '\0', sizeof (mbstate_t));
12514 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
12515 if (!mbsinit (&state))
12517 const char *src = input + 2;
12518 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
12522 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
12524 const char input[] = "<\306\374\313\334\270\354>";
12527 memset (&state, '\0', sizeof (mbstate_t));
12528 if (mbrtowc (NULL, input + 3, 1, &state) == (size_t)(-2))
12529 if (!mbsinit (&state))
12531 const char *src = input + 4;
12532 if (mbsrtowcs (NULL, &src, 10, &state) != 3)
12536 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
12538 const char input[] = "B\250\271\201\060\211\070er";
12541 memset (&state, '\0', sizeof (mbstate_t));
12542 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
12543 if (!mbsinit (&state))
12545 const char *src = input + 2;
12546 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
12553 if ac_fn_c_try_run "$LINENO"; then :
12554 gl_cv_func_mbsrtowcs_works=yes
12556 gl_cv_func_mbsrtowcs_works=no
12558 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12559 conftest.$ac_objext conftest.beam conftest.$ac_ext
12565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbsrtowcs_works" >&5
12566 $as_echo "$gl_cv_func_mbsrtowcs_works" >&6; }
12568 case "$gl_cv_func_mbsrtowcs_works" in
12570 *) REPLACE_MBSRTOWCS=1 ;;
12575 if test $HAVE_MBSRTOWCS = 0 || test $REPLACE_MBSRTOWCS = 1; then
12584 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs.$ac_objext"
12594 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs-state.$ac_objext"
12611 $as_echo "#define GNULIB_TEST_MBSRTOWCS 1" >>confdefs.h
12616 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
12625 gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
12628 for ac_header in bp-sym.h
12630 ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
12631 if test "x$ac_cv_header_bp_sym_h" = x""yes; then :
12632 cat >>confdefs.h <<_ACEOF
12633 #define HAVE_BP_SYM_H 1
12653 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
12659 if test $HAVE_DECL_MEMMEM = 1 && test $REPLACE_MEMMEM = 0; then
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
12661 $as_echo_n "checking whether memmem works in linear time... " >&6; }
12662 if test "${gl_cv_func_memmem_works_fast+set}" = set; then :
12663 $as_echo_n "(cached) " >&6
12665 if test "$cross_compiling" = yes; then :
12666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12667 /* end confdefs.h. */
12669 #include <features.h>
12670 #ifdef __GNU_LIBRARY__
12671 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)) \
12672 && !defined __UCLIBC__
12677 #include <cygwin/version.h>
12678 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 0)
12684 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12685 $EGREP "Lucky user" >/dev/null 2>&1; then :
12686 gl_cv_func_memmem_works_fast="guessing yes"
12688 gl_cv_func_memmem_works_fast="guessing no"
12694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12695 /* end confdefs.h. */
12697 #include <signal.h> /* for signal */
12698 #include <string.h> /* for memmem */
12699 #include <stdlib.h> /* for malloc */
12700 #include <unistd.h> /* for alarm */
12701 static void quit (int sig) { exit (sig + 128); }
12708 size_t m = 1000000;
12709 char *haystack = (char *) malloc (2 * m + 1);
12710 char *needle = (char *) malloc (m + 1);
12711 /* Failure to compile this test due to missing alarm is okay,
12712 since all such platforms (mingw) also lack memmem. */
12713 signal (SIGALRM, quit);
12715 /* Check for quadratic performance. */
12716 if (haystack && needle)
12718 memset (haystack, 'A', 2 * m);
12719 haystack[2 * m] = 'B';
12720 memset (needle, 'A', m);
12722 if (!memmem (haystack, 2 * m + 1, needle, m + 1))
12731 if ac_fn_c_try_run "$LINENO"; then :
12732 gl_cv_func_memmem_works_fast=yes
12734 gl_cv_func_memmem_works_fast=no
12736 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12737 conftest.$ac_objext conftest.beam conftest.$ac_ext
12742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_fast" >&5
12743 $as_echo "$gl_cv_func_memmem_works_fast" >&6; }
12744 case "$gl_cv_func_memmem_works_fast" in
12752 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
12761 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
12768 for ac_func in memmem
12770 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
12771 if test "x$ac_cv_func_memmem" = x""yes; then :
12772 cat >>confdefs.h <<_ACEOF
12773 #define HAVE_MEMMEM 1
12779 if test $ac_cv_func_memmem = yes; then
12785 if test $ac_cv_have_decl_memmem = no; then
12788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
12789 $as_echo_n "checking whether memmem works... " >&6; }
12790 if test "${gl_cv_func_memmem_works_always+set}" = set; then :
12791 $as_echo_n "(cached) " >&6
12793 if test "$cross_compiling" = yes; then :
12794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12795 /* end confdefs.h. */
12797 #ifdef __GNU_LIBRARY__
12798 #include <features.h>
12799 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
12800 || __GLIBC_MINOR__ > 12)) \
12801 || (__GLIBC__ > 2)) \
12802 || defined __UCLIBC__
12805 #elif defined __CYGWIN__
12806 #include <cygwin/version.h>
12807 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
12815 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12816 $EGREP "Lucky user" >/dev/null 2>&1; then :
12817 gl_cv_func_memmem_works_always="guessing yes"
12819 gl_cv_func_memmem_works_always="guessing no"
12825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12826 /* end confdefs.h. */
12828 #include <string.h> /* for memmem */
12829 #define P "_EF_BF_BD"
12830 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
12831 #define NEEDLE P P P P P
12838 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
12840 /* Check for empty needle behavior. */
12842 const char *haystack = "AAA";
12843 if (memmem (haystack, 3, NULL, 0) != haystack)
12852 if ac_fn_c_try_run "$LINENO"; then :
12853 gl_cv_func_memmem_works_always=yes
12855 gl_cv_func_memmem_works_always=no
12857 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12858 conftest.$ac_objext conftest.beam conftest.$ac_ext
12863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
12864 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
12865 case "$gl_cv_func_memmem_works_always" in
12874 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
12883 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
12897 $as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
12906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
12907 $as_echo_n "checking for ssize_t... " >&6; }
12908 if test "${gt_cv_ssize_t+set}" = set; then :
12909 $as_echo_n "(cached) " >&6
12911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12912 /* end confdefs.h. */
12913 #include <sys/types.h>
12917 int x = sizeof (ssize_t *) + sizeof (ssize_t);
12923 if ac_fn_c_try_compile "$LINENO"; then :
12928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
12931 $as_echo "$gt_cv_ssize_t" >&6; }
12932 if test $gt_cv_ssize_t = no; then
12934 $as_echo "#define ssize_t int" >>confdefs.h
12941 # Define two additional variables used in the Makefile substitution.
12943 if test "$ac_cv_header_stdbool_h" = yes; then
12946 STDBOOL_H='stdbool.h'
12949 if test -n "$STDBOOL_H"; then
12950 GL_GENERATE_STDBOOL_H_TRUE=
12951 GL_GENERATE_STDBOOL_H_FALSE='#'
12953 GL_GENERATE_STDBOOL_H_TRUE='#'
12954 GL_GENERATE_STDBOOL_H_FALSE=
12958 if test "$ac_cv_type__Bool" = yes; then
12969 if test $gt_cv_c_wchar_t = no; then
12973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
12974 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
12975 if test "${gl_cv_decl_null_works+set}" = set; then :
12976 $as_echo_n "(cached) " >&6
12978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12979 /* end confdefs.h. */
12980 #include <stddef.h>
12981 int test[2 * (sizeof NULL == sizeof (void *)) -1];
12991 if ac_fn_c_try_compile "$LINENO"; then :
12992 gl_cv_decl_null_works=yes
12994 gl_cv_decl_null_works=no
12996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
12999 $as_echo "$gl_cv_decl_null_works" >&6; }
13000 if test $gl_cv_decl_null_works = no; then
13005 if test -n "$STDDEF_H"; then
13006 GL_GENERATE_STDDEF_H_TRUE=
13007 GL_GENERATE_STDDEF_H_FALSE='#'
13009 GL_GENERATE_STDDEF_H_TRUE='#'
13010 GL_GENERATE_STDDEF_H_FALSE=
13013 if test -n "$STDDEF_H"; then
13022 if test $gl_cv_have_include_next = yes; then
13023 gl_cv_next_stddef_h='<'stddef.h'>'
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
13026 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
13027 if test "${gl_cv_next_stddef_h+set}" = set; then :
13028 $as_echo_n "(cached) " >&6
13031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13032 /* end confdefs.h. */
13033 #include <stddef.h>
13037 aix*) gl_absname_cpp="$ac_cpp -C" ;;
13038 *) gl_absname_cpp="$ac_cpp" ;;
13043 gl_dirsep_regex='[/\\]'
13046 gl_dirsep_regex='\/'
13049 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
13051 gl_header_literal_regex=`echo 'stddef.h' \
13052 |
sed -e "$gl_make_literal_regex_sed"`
13053 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
13054 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
13059 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13060 sed -n "$gl_absolute_header_sed"`'"'
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
13065 $as_echo "$gl_cv_next_stddef_h" >&6; }
13067 NEXT_STDDEF_H=$gl_cv_next_stddef_h
13069 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
13070 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13071 gl_next_as_first_directive='<'stddef.h'>'
13073 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13074 gl_next_as_first_directive=$gl_cv_next_stddef_h
13076 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
13097 if test $gl_cv_have_include_next = yes; then
13098 gl_cv_next_sys_types_h='<'sys/types.h'>'
13100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
13101 $as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
13102 if test "${gl_cv_next_sys_types_h+set}" = set; then :
13103 $as_echo_n "(cached) " >&6
13106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13107 /* end confdefs.h. */
13108 #include <sys/types.h>
13112 aix*) gl_absname_cpp="$ac_cpp -C" ;;
13113 *) gl_absname_cpp="$ac_cpp" ;;
13118 gl_dirsep_regex='[/\\]'
13121 gl_dirsep_regex='\/'
13124 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
13126 gl_header_literal_regex=`echo 'sys/types.h' \
13127 |
sed -e "$gl_make_literal_regex_sed"`
13128 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
13129 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
13134 gl_cv_next_sys_types_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13135 sed -n "$gl_absolute_header_sed"`'"'
13139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
13140 $as_echo "$gl_cv_next_sys_types_h" >&6; }
13142 NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
13144 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
13145 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13146 gl_next_as_first_directive='<'sys/types.h'>'
13148 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13149 gl_next_as_first_directive=$gl_cv_next_sys_types_h
13151 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
13177 if test $gl_cv_have_include_next = yes; then
13178 gl_cv_next_unistd_h='<'unistd.h'>'
13180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
13181 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
13182 if test "${gl_cv_next_unistd_h+set}" = set; then :
13183 $as_echo_n "(cached) " >&6
13186 if test $ac_cv_header_unistd_h = yes; then
13189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13190 /* end confdefs.h. */
13191 #include <unistd.h>
13195 aix*) gl_absname_cpp="$ac_cpp -C" ;;
13196 *) gl_absname_cpp="$ac_cpp" ;;
13201 gl_dirsep_regex='[/\\]'
13204 gl_dirsep_regex='\/'
13207 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
13209 gl_header_literal_regex=`echo 'unistd.h' \
13210 |
sed -e "$gl_make_literal_regex_sed"`
13211 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
13212 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
13217 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13218 sed -n "$gl_absolute_header_sed"`'"'
13220 gl_cv_next_unistd_h='<'unistd.h'>'
13225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
13226 $as_echo "$gl_cv_next_unistd_h" >&6; }
13228 NEXT_UNISTD_H=$gl_cv_next_unistd_h
13230 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
13231 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13232 gl_next_as_first_directive='<'unistd.h'>'
13234 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13235 gl_next_as_first_directive=$gl_cv_next_unistd_h
13237 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
13242 if test $ac_cv_header_unistd_h = yes; then
13254 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
13255 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
13257 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
13258 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
13259 $as_echo_n "(cached) " >&6
13261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13262 /* end confdefs.h. */
13265 # include <unistd.h>
13267 /* Some systems declare various items in the wrong headers. */
13268 #if !(defined __GLIBC__ && !defined __UCLIBC__)
13269 # include <fcntl.h>
13270 # include <stdio.h>
13271 # include <stdlib.h>
13272 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
13286 if ac_fn_c_try_compile "$LINENO"; then :
13287 eval "$as_gl_Symbol=yes"
13289 eval "$as_gl_Symbol=no"
13291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13293 eval ac_res=\$$as_gl_Symbol
13294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13295 $as_echo "$ac_res" >&6; }
13296 eval as_val=\$$as_gl_Symbol
13297 if test "x$as_val" = x""yes; then :
13298 cat >>confdefs.h <<_ACEOF
13299 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
13302 eval ac_cv_have_decl_$gl_func=yes
13319 if test $gl_cv_have_include_next = yes; then
13320 gl_cv_next_wchar_h='<'wchar.h'>'
13322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
13323 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
13324 if test "${gl_cv_next_wchar_h+set}" = set; then :
13325 $as_echo_n "(cached) " >&6
13328 if test $ac_cv_header_wchar_h = yes; then
13331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13332 /* end confdefs.h. */
13337 aix*) gl_absname_cpp="$ac_cpp -C" ;;
13338 *) gl_absname_cpp="$ac_cpp" ;;
13343 gl_dirsep_regex='[/\\]'
13346 gl_dirsep_regex='\/'
13349 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
13351 gl_header_literal_regex=`echo 'wchar.h' \
13352 |
sed -e "$gl_make_literal_regex_sed"`
13353 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
13354 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
13359 gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13360 sed -n "$gl_absolute_header_sed"`'"'
13362 gl_cv_next_wchar_h='<'wchar.h'>'
13367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
13368 $as_echo "$gl_cv_next_wchar_h" >&6; }
13370 NEXT_WCHAR_H=$gl_cv_next_wchar_h
13372 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
13373 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13374 gl_next_as_first_directive='<'wchar.h'>'
13376 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13377 gl_next_as_first_directive=$gl_cv_next_wchar_h
13379 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
13384 if test $ac_cv_header_wchar_h = yes; then
13394 if test $gt_cv_c_wint_t = yes; then
13402 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
13403 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
13405 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
13406 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
13407 $as_echo_n "(cached) " >&6
13409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13410 /* end confdefs.h. */
13412 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13414 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13415 included before <wchar.h>. */
13416 #if !(defined __GLIBC__ && !defined __UCLIBC__)
13417 # include <stddef.h>
13418 # include <stdio.h>
13432 if ac_fn_c_try_compile "$LINENO"; then :
13433 eval "$as_gl_Symbol=yes"
13435 eval "$as_gl_Symbol=no"
13437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13439 eval ac_res=\$$as_gl_Symbol
13440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13441 $as_echo "$ac_res" >&6; }
13442 eval as_val=\$$as_gl_Symbol
13443 if test "x$as_val" = x""yes; then :
13444 cat >>confdefs.h <<_ACEOF
13445 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
13448 eval ac_cv_have_decl_$gl_func=yes
13458 if test $ac_cv_func_iswcntrl = yes; then
13466 if test $gt_cv_c_wint_t = yes; then
13482 if test $gl_cv_have_include_next = yes; then
13483 gl_cv_next_wctype_h='<'wctype.h'>'
13485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
13486 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
13487 if test "${gl_cv_next_wctype_h+set}" = set; then :
13488 $as_echo_n "(cached) " >&6
13491 if test $ac_cv_header_wctype_h = yes; then
13494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13495 /* end confdefs.h. */
13496 #include <wctype.h>
13500 aix*) gl_absname_cpp="$ac_cpp -C" ;;
13501 *) gl_absname_cpp="$ac_cpp" ;;
13506 gl_dirsep_regex='[/\\]'
13509 gl_dirsep_regex='\/'
13512 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
13514 gl_header_literal_regex=`echo 'wctype.h' \
13515 |
sed -e "$gl_make_literal_regex_sed"`
13516 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
13517 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
13522 gl_cv_next_wctype_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13523 sed -n "$gl_absolute_header_sed"`'"'
13525 gl_cv_next_wctype_h='<'wctype.h'>'
13530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
13531 $as_echo "$gl_cv_next_wctype_h" >&6; }
13533 NEXT_WCTYPE_H=$gl_cv_next_wctype_h
13535 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
13536 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13537 gl_next_as_first_directive='<'wctype.h'>'
13539 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13540 gl_next_as_first_directive=$gl_cv_next_wctype_h
13542 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
13547 if test $ac_cv_header_wctype_h = yes; then
13548 if test $ac_cv_func_iswcntrl = yes; then
13549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
13550 $as_echo_n "checking whether iswcntrl works... " >&6; }
13551 if test "${gl_cv_func_iswcntrl_works+set}" = set; then :
13552 $as_echo_n "(cached) " >&6
13555 if test "$cross_compiling" = yes; then :
13556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13557 /* end confdefs.h. */
13558 #include <stdlib.h>
13559 #if __GNU_LIBRARY__ == 1
13560 Linux libc5 i18n is broken.
13570 if ac_fn_c_try_compile "$LINENO"; then :
13571 gl_cv_func_iswcntrl_works="guessing yes"
13573 gl_cv_func_iswcntrl_works="guessing no"
13575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13579 /* end confdefs.h. */
13581 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
13582 included before <wchar.h>.
13583 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
13584 must be included before <wchar.h>. */
13585 #include <stddef.h>
13589 #include <wctype.h>
13590 int main () { return iswprint ('x') == 0; }
13593 if ac_fn_c_try_run "$LINENO"; then :
13594 gl_cv_func_iswcntrl_works=yes
13596 gl_cv_func_iswcntrl_works=no
13598 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13599 conftest.$ac_objext conftest.beam conftest.$ac_ext
13604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
13605 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
13613 case "$gl_cv_func_iswcntrl_works" in
13614 *yes) REPLACE_ISWCNTRL=0 ;;
13615 *) REPLACE_ISWCNTRL=1 ;;
13619 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
13623 if test $REPLACE_ISWCNTRL = 1; then
13626 for ac_func in towlower
13628 ac_fn_c_check_func "$LINENO" "towlower" "ac_cv_func_towlower"
13629 if test "x$ac_cv_func_towlower" = x""yes; then :
13630 cat >>confdefs.h <<_ACEOF
13631 #define HAVE_TOWLOWER 1
13637 if test $ac_cv_func_towlower = yes; then
13640 ac_fn_c_check_decl "$LINENO" "towlower" "ac_cv_have_decl_towlower" "/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
13641 included before <wchar.h>.
13642 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
13643 must be included before <wchar.h>. */
13644 #include <stddef.h>
13649 # include <wctype.h>
13653 if test "x$ac_cv_have_decl_towlower" = x""yes; then :
13659 cat >>confdefs.h <<_ACEOF
13660 #define HAVE_DECL_TOWLOWER $ac_have_decl
13663 if test $ac_cv_have_decl_towlower = yes; then
13672 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_TOWLOWER = 1; then
13676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
13677 $as_echo_n "checking for wctype_t... " >&6; }
13678 if test "${gl_cv_type_wctype_t+set}" = set; then :
13679 $as_echo_n "(cached) " >&6
13681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13682 /* end confdefs.h. */
13683 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
13684 included before <wchar.h>.
13685 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
13686 must be included before <wchar.h>. */
13687 #include <stddef.h>
13692 # include <wctype.h>
13704 if ac_fn_c_try_compile "$LINENO"; then :
13705 gl_cv_type_wctype_t=yes
13707 gl_cv_type_wctype_t=no
13709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
13713 $as_echo "$gl_cv_type_wctype_t" >&6; }
13714 if test $gl_cv_type_wctype_t = no; then
13718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
13719 $as_echo_n "checking for wctrans_t... " >&6; }
13720 if test "${gl_cv_type_wctrans_t+set}" = set; then :
13721 $as_echo_n "(cached) " >&6
13723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13724 /* end confdefs.h. */
13725 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
13726 included before <wchar.h>.
13727 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
13728 must be included before <wchar.h>. */
13729 #include <stddef.h>
13733 #include <wctype.h>
13744 if ac_fn_c_try_compile "$LINENO"; then :
13745 gl_cv_type_wctrans_t=yes
13747 gl_cv_type_wctrans_t=no
13749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
13753 $as_echo "$gl_cv_type_wctrans_t" >&6; }
13754 if test $gl_cv_type_wctrans_t = no; then
13759 for gl_func in wctype iswctype wctrans towctrans ; do
13760 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
13761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
13762 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
13763 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
13764 $as_echo_n "(cached) " >&6
13766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13767 /* end confdefs.h. */
13769 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13771 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13772 included before <wchar.h>. */
13773 #if !(defined __GLIBC__ && !defined __UCLIBC__)
13774 # include <stddef.h>
13775 # include <stdio.h>
13777 # include <wchar.h>
13779 #include <wctype.h>
13790 if ac_fn_c_try_compile "$LINENO"; then :
13791 eval "$as_gl_Symbol=yes"
13793 eval "$as_gl_Symbol=no"
13795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13797 eval ac_res=\$$as_gl_Symbol
13798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13799 $as_echo "$ac_res" >&6; }
13800 eval as_val=\$$as_gl_Symbol
13801 if test "x$as_val" = x""yes; then :
13802 cat >>confdefs.h <<_ACEOF
13803 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
13806 eval ac_cv_have_decl_$gl_func=yes
13811 # End of code from modules
13832 gl_source_base='tests'
13833 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
13835 gl_module_indicator_condition=$gltests_WITNESS
13845 LIBGNU_LIBDEPS="$gl_libdeps"
13847 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
13851 # We don't use automake, but gnulib does. This line lets us generate
13853 am__api_version='1.11'
13855 # Find a good install program. We prefer a C program (faster),
13856 # so one script is as good as another. But avoid the broken or
13857 # incompatible versions:
13858 # SysV /etc/install, /usr/sbin/install
13859 # SunOS /usr/etc/install
13860 # IRIX /sbin/install
13862 # AmigaOS /C/install, which installs bootblocks on floppy discs
13863 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
13864 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
13865 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
13866 # OS/2's system install, which has a completely different semantic
13867 # ./install, which can be erroneously created by make from ./install.sh.
13868 # Reject install programs that cannot install multiple files.
13869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
13870 $as_echo_n "checking for a BSD-compatible install... " >&6; }
13871 if test -z "$INSTALL"; then
13872 if test "${ac_cv_path_install+set}" = set; then :
13873 $as_echo_n "(cached) " >&6
13875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13876 for as_dir in $PATH
13879 test -z "$as_dir" && as_dir=.
13880 # Account for people who put trailing slashes in PATH elements.
13881 case $as_dir/ in #((
13882 ./ | .// | /[cC]/* | \
13883 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
13884 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
13887 # OSF1 and SCO ODT 3.0 have their own names for install.
13888 # Don't use installbsd from OSF since it installs stuff as root
13890 for ac_prog in ginstall scoinst install; do
13891 for ac_exec_ext in '' $ac_executable_extensions; do
13892 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
13893 if test $ac_prog = install &&
13894 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13895 # AIX install. It has an incompatible calling convention.
13897 elif test $ac_prog = install &&
13898 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13899 # program-specific install script used by HP pwplus--don't use.
13902 rm -rf conftest.one conftest.two conftest.dir
13903 echo one > conftest.one
13904 echo two > conftest.two
13906 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
13907 test -s conftest.one && test -s conftest.two &&
13908 test -s conftest.dir/conftest.one &&
13909 test -s conftest.dir/conftest.two
13911 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
13924 rm -rf conftest.one conftest.two conftest.dir
13927 if test "${ac_cv_path_install+set}" = set; then
13928 INSTALL=$ac_cv_path_install
13930 # As a last resort, use the slow shell script. Don't cache a
13931 # value for INSTALL within a source directory, because that will
13932 # break other packages using the cache if that directory is
13933 # removed, or if the value is a relative name.
13934 INSTALL=$ac_install_sh
13937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
13938 $as_echo "$INSTALL" >&6; }
13940 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
13941 # It thinks the first close brace ends the variable substitution.
13942 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
13944 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
13946 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
13948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
13949 $as_echo_n "checking whether build environment is sane... " >&6; }
13952 echo timestamp > conftest.file
13953 # Reject unsafe characters in $srcdir or the absolute working directory
13954 # name. Accept space and tab only in the latter.
13958 *[\\\"\#\$\&\'\`$am_lf]*)
13959 as_fn_error
"unsafe absolute working directory name" "$LINENO" 5;;
13962 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
13963 as_fn_error
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
13966 # Do `set' in a subshell so we don't clobber the current shell's
13967 # arguments. Must try -L first in case configure is actually a
13968 # symlink; some systems play weird games with the mod time of symlinks
13969 # (eg FreeBSD returns the mod time of the symlink's containing
13972 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
13973 if test "$*" = "X"; then
13975 set X
`ls -t "$srcdir/configure" conftest.file`
13977 rm -f conftest.
file
13978 if test "$*" != "X $srcdir/configure conftest.file" \
13979 && test "$*" != "X conftest.file $srcdir/configure"; then
13981 # If neither matched, then we have a broken ls. This can happen
13982 # if, for instance, CONFIG_SHELL is bash and it inherits a
13983 # broken ls alias from the environment. This has actually
13984 # happened. Such a system could not be considered "sane".
13985 as_fn_error
"ls -t appears to fail. Make sure there is not a broken
13986 alias in your environment" "$LINENO" 5
13989 test "$2" = conftest.
file
13995 as_fn_error
"newly created file is older than distributed files!
13996 Check your system clock" "$LINENO" 5
13998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13999 $as_echo "yes" >&6; }
14000 test "$program_prefix" != NONE
&&
14001 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
14002 # Use a double $ so make ignores it.
14003 test "$program_suffix" != NONE
&&
14004 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
14005 # Double any \ or $.
14006 # By default was `s,x,x', remove it if useless.
14007 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
14008 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
14010 # expand $ac_aux_dir to an absolute path
14011 am_aux_dir
=`cd $ac_aux_dir && pwd`
14013 if test x
"${MISSING+set}" != xset
; then
14014 case $am_aux_dir in
14016 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
14018 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
14021 # Use eval to expand $SHELL
14022 if eval "$MISSING --run true"; then
14023 am_missing_run
="$MISSING --run "
14026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
14027 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
14030 if test x
"${install_sh}" != xset
; then
14031 case $am_aux_dir in
14033 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
14035 install_sh
="\${SHELL} $am_aux_dir/install-sh"
14039 # Installed binaries are usually stripped using `strip' when the user
14040 # run `make install-strip'. However `strip' might not be the right
14041 # tool to use in cross-compilation environments, therefore Automake
14042 # will honor the `STRIP' environment variable to overrule this program.
14043 if test "$cross_compiling" != no
; then
14044 if test -n "$ac_tool_prefix"; then
14045 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14046 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
14047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14048 $as_echo_n "checking for $ac_word... " >&6; }
14049 if test "${ac_cv_prog_STRIP+set}" = set; then :
14050 $as_echo_n "(cached) " >&6
14052 if test -n "$STRIP"; then
14053 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
14055 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14056 for as_dir
in $PATH
14059 test -z "$as_dir" && as_dir
=.
14060 for ac_exec_ext
in '' $ac_executable_extensions; do
14061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14062 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
14063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14072 STRIP
=$ac_cv_prog_STRIP
14073 if test -n "$STRIP"; then
14074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
14075 $as_echo "$STRIP" >&6; }
14077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14078 $as_echo "no" >&6; }
14083 if test -z "$ac_cv_prog_STRIP"; then
14085 # Extract the first word of "strip", so it can be a program name with args.
14086 set dummy strip
; ac_word
=$2
14087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14088 $as_echo_n "checking for $ac_word... " >&6; }
14089 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
14090 $as_echo_n "(cached) " >&6
14092 if test -n "$ac_ct_STRIP"; then
14093 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
14095 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14096 for as_dir
in $PATH
14099 test -z "$as_dir" && as_dir
=.
14100 for ac_exec_ext
in '' $ac_executable_extensions; do
14101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14102 ac_cv_prog_ac_ct_STRIP
="strip"
14103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14112 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
14113 if test -n "$ac_ct_STRIP"; then
14114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
14115 $as_echo "$ac_ct_STRIP" >&6; }
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14118 $as_echo "no" >&6; }
14121 if test "x$ac_ct_STRIP" = x
; then
14124 case $cross_compiling:$ac_tool_warned in
14126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14127 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14128 ac_tool_warned
=yes ;;
14133 STRIP
="$ac_cv_prog_STRIP"
14137 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
14141 [\\/$
]* | ?
:[\\/]*) ;;
14142 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
14145 for ac_prog
in gawk mawk nawk
awk
14147 # Extract the first word of "$ac_prog", so it can be a program name with args.
14148 set dummy
$ac_prog; ac_word
=$2
14149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14150 $as_echo_n "checking for $ac_word... " >&6; }
14151 if test "${ac_cv_prog_AWK+set}" = set; then :
14152 $as_echo_n "(cached) " >&6
14154 if test -n "$AWK"; then
14155 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
14157 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14158 for as_dir
in $PATH
14161 test -z "$as_dir" && as_dir
=.
14162 for ac_exec_ext
in '' $ac_executable_extensions; do
14163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14164 ac_cv_prog_AWK
="$ac_prog"
14165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14174 AWK
=$ac_cv_prog_AWK
14175 if test -n "$AWK"; then
14176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
14177 $as_echo "$AWK" >&6; }
14179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14180 $as_echo "no" >&6; }
14184 test -n "$AWK" && break
14187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
14188 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
14190 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
14191 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
14192 $as_echo_n "(cached) " >&6
14194 cat >conftest.
make <<\_ACEOF
14197 @
echo '@@@%%%=$(MAKE)=@@@%%%'
14199 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
14200 case `${MAKE-make} -f conftest.make 2>/dev/null` in
14201 *@@@
%%%=?
*=@@@
%%%*)
14202 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
14204 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
14206 rm -f conftest.
make
14208 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
14209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14210 $as_echo "yes" >&6; }
14213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14214 $as_echo "no" >&6; }
14215 SET_MAKE
="MAKE=${MAKE-make}"
14218 rm -rf .tst
2>/dev
/null
14219 mkdir .tst
2>/dev
/null
14220 if test -d .tst
; then
14225 rmdir .tst
2>/dev
/null
14227 DEPDIR
="${am__leading_dot}deps"
14229 ac_config_commands
="$ac_config_commands depfiles"
14232 am_make
=${MAKE-make}
14233 cat > confinc
<< 'END'
14235 @
echo this is the am__doit target
14238 # If we don't find an include directive, just comment out the code.
14239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
14240 $as_echo_n "checking for style of include used by $am_make... " >&6; }
14244 # First try GNU make style include.
14245 echo "include confinc" > confmf
14246 # Ignore all kinds of additional output from `make'.
14247 case `$am_make -s -f confmf 2> /dev/null` in #(
14248 *the\ am__doit\ target
*)
14249 am__include
=include
14254 # Now try BSD make style include.
14255 if test "$am__include" = "#"; then
14256 echo '.include "confinc"' > confmf
14257 case `$am_make -s -f confmf 2> /dev/null` in #(
14258 *the\ am__doit\ target
*)
14259 am__include
=.include
14267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
14268 $as_echo "$_am_result" >&6; }
14269 rm -f confinc confmf
14271 # Check whether --enable-dependency-tracking was given.
14272 if test "${enable_dependency_tracking+set}" = set; then :
14273 enableval
=$enable_dependency_tracking;
14276 if test "x$enable_dependency_tracking" != xno
; then
14277 am_depcomp
="$ac_aux_dir/depcomp"
14280 if test "x$enable_dependency_tracking" != xno; then
14289 if test "`cd $srcdir && pwd`" != "`pwd`"; then
14290 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
14291 # is not polluted with repeated "-I."
14292 am__isrc
=' -I$(srcdir)'
14293 # test to see if srcdir already configured
14294 if test -f $srcdir/config.status
; then
14295 as_fn_error
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
14299 # test whether we have cygpath
14300 if test -z "$CYGPATH_W"; then
14301 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
14302 CYGPATH_W
='cygpath -w'
14309 # Define the identity of the package.
14311 VERSION
=UNUSED-VERSION
14314 # Some tools Automake needs.
14316 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
14319 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
14322 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
14325 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
14328 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
14330 # We need awk for the "check" target. The system "awk" is bad on
14332 # Always define AMTAR for backward compatibility.
14334 AMTAR
=${AMTAR-"${am_missing_run}tar"}
14336 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
14341 depcc
="$CC" am_compiler_list
=
14343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
14344 $as_echo_n "checking dependency style of $depcc... " >&6; }
14345 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
14346 $as_echo_n "(cached) " >&6
14348 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
14349 # We make a subdir and do the tests there. Otherwise we can end up
14350 # making bogus files that we don't know about and never remove. For
14351 # instance it was reported that on HP-UX the gcc test will end up
14352 # making a dummy file named `D' -- because `-MD' means `put the output
14355 # Copy depcomp to subdir because otherwise we won't find it if we're
14356 # using a relative directory.
14357 cp "$am_depcomp" conftest.dir
14359 # We will build objects and dependencies in a subdirectory because
14360 # it helps to detect inapplicable dependency modes. For instance
14361 # both Tru64's cc and ICC support -MD to output dependencies as a
14362 # side effect of compilation, but ICC will put the dependencies in
14363 # the current directory while Tru64 will put them in the object
14367 am_cv_CC_dependencies_compiler_type
=none
14368 if test "$am_compiler_list" = ""; then
14369 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
14371 am__universal
=false
14372 case " $depcc " in #(
14373 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
14376 for depmode
in $am_compiler_list; do
14377 # Setup a source with many dependencies, because some compilers
14378 # like to wrap large dependency lists on column 80 (with \), and
14379 # we should not choose a depcomp mode which is confused by this.
14381 # We need to recreate these files for each test, as the compiler may
14382 # overwrite some of them when testing with obscure command lines.
14383 # This happens at least with the AIX C compiler.
14385 for i
in 1 2 3 4 5 6; do
14386 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
14387 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
14388 # Solaris 8's {/usr,}/bin/sh.
14389 touch sub
/conftst
$i.h
14391 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
14393 # We check with `-c' and `-o' for the sake of the "dashmstdout"
14394 # mode. It turns out that the SunPro C++ compiler does not properly
14395 # handle `-M -o', and we need to detect this. Also, some Intel
14396 # versions had trouble with output in subdirs
14397 am__obj
=sub
/conftest.
${OBJEXT-o}
14398 am__minus_obj
="-o $am__obj"
14401 # This depmode causes a compiler race in universal mode.
14402 test "$am__universal" = false ||
continue
14405 # after this tag, mechanisms are not by side-effect, so they'll
14406 # only be used when explicitly requested
14407 if test "x$enable_dependency_tracking" = xyes
; then
14413 msvisualcpp | msvcmsys
)
14414 # This compiler won't grok `-c -o', but also, the minuso test has
14415 # not run yet. These depmodes are late enough in the game, and
14416 # so weak that their functioning should not be impacted.
14417 am__obj
=conftest.
${OBJEXT-o}
14422 if depmode
=$depmode \
14423 source=sub
/conftest.c object
=$am__obj \
14424 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
14425 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
14426 >/dev
/null
2>conftest.err
&&
14427 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
14428 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
14429 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
14430 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
14431 # icc doesn't choke on unknown options, it will just issue warnings
14432 # or remarks (even with -Werror). So we grep stderr for any message
14433 # that says an option was ignored or not supported.
14434 # When given -MP, icc 7.0 and 7.1 complain thusly:
14435 # icc: Command line warning: ignoring option '-M'; no argument required
14436 # The diagnosis changed in icc 8.0:
14437 # icc: Command line remark: option '-MP' not supported
14438 if (grep 'ignoring option' conftest.err ||
14439 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
14440 am_cv_CC_dependencies_compiler_type
=$depmode
14447 rm -rf conftest.dir
14449 am_cv_CC_dependencies_compiler_type
=none
14453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
14454 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
14455 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
14458 test "x$enable_dependency_tracking" != xno \
14459 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
14460 am__fastdepCC_TRUE
=
14461 am__fastdepCC_FALSE
='#'
14463 am__fastdepCC_TRUE
='#'
14464 am__fastdepCC_FALSE
=
14470 # --------------------- #
14471 # Checks for programs. #
14472 # --------------------- #
14475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
14476 $as_echo_n "checking whether ln -s works... " >&6; }
14478 if test "$LN_S" = "ln -s"; then
14479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14480 $as_echo "yes" >&6; }
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
14483 $as_echo "no, using $LN_S" >&6; }
14486 if test -n "$ac_tool_prefix"; then
14487 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14488 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
14489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14490 $as_echo_n "checking for $ac_word... " >&6; }
14491 if test "${ac_cv_prog_RANLIB+set}" = set; then :
14492 $as_echo_n "(cached) " >&6
14494 if test -n "$RANLIB"; then
14495 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
14497 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14498 for as_dir
in $PATH
14501 test -z "$as_dir" && as_dir
=.
14502 for ac_exec_ext
in '' $ac_executable_extensions; do
14503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14504 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
14505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14514 RANLIB
=$ac_cv_prog_RANLIB
14515 if test -n "$RANLIB"; then
14516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
14517 $as_echo "$RANLIB" >&6; }
14519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14520 $as_echo "no" >&6; }
14525 if test -z "$ac_cv_prog_RANLIB"; then
14526 ac_ct_RANLIB
=$RANLIB
14527 # Extract the first word of "ranlib", so it can be a program name with args.
14528 set dummy ranlib
; ac_word
=$2
14529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14530 $as_echo_n "checking for $ac_word... " >&6; }
14531 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
14532 $as_echo_n "(cached) " >&6
14534 if test -n "$ac_ct_RANLIB"; then
14535 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
14537 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14538 for as_dir
in $PATH
14541 test -z "$as_dir" && as_dir
=.
14542 for ac_exec_ext
in '' $ac_executable_extensions; do
14543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14544 ac_cv_prog_ac_ct_RANLIB
="ranlib"
14545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14554 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
14555 if test -n "$ac_ct_RANLIB"; then
14556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
14557 $as_echo "$ac_ct_RANLIB" >&6; }
14559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14560 $as_echo "no" >&6; }
14563 if test "x$ac_ct_RANLIB" = x
; then
14566 case $cross_compiling:$ac_tool_warned in
14568 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14569 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14570 ac_tool_warned
=yes ;;
14572 RANLIB
=$ac_ct_RANLIB
14575 RANLIB
="$ac_cv_prog_RANLIB"
14579 if test -n "$ac_tool_prefix"; then
14580 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14581 set dummy
${ac_tool_prefix}ar; ac_word
=$2
14582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14583 $as_echo_n "checking for $ac_word... " >&6; }
14584 if test "${ac_cv_prog_AR+set}" = set; then :
14585 $as_echo_n "(cached) " >&6
14587 if test -n "$AR"; then
14588 ac_cv_prog_AR
="$AR" # Let the user override the test.
14590 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14591 for as_dir
in $PATH
14594 test -z "$as_dir" && as_dir
=.
14595 for ac_exec_ext
in '' $ac_executable_extensions; do
14596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14597 ac_cv_prog_AR
="${ac_tool_prefix}ar"
14598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14608 if test -n "$AR"; then
14609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
14610 $as_echo "$AR" >&6; }
14612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14613 $as_echo "no" >&6; }
14618 if test -z "$ac_cv_prog_AR"; then
14620 # Extract the first word of "ar", so it can be a program name with args.
14621 set dummy
ar; ac_word
=$2
14622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14623 $as_echo_n "checking for $ac_word... " >&6; }
14624 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
14625 $as_echo_n "(cached) " >&6
14627 if test -n "$ac_ct_AR"; then
14628 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
14630 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14631 for as_dir
in $PATH
14634 test -z "$as_dir" && as_dir
=.
14635 for ac_exec_ext
in '' $ac_executable_extensions; do
14636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14637 ac_cv_prog_ac_ct_AR
="ar"
14638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14647 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
14648 if test -n "$ac_ct_AR"; then
14649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
14650 $as_echo "$ac_ct_AR" >&6; }
14652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14653 $as_echo "no" >&6; }
14656 if test "x$ac_ct_AR" = x
; then
14659 case $cross_compiling:$ac_tool_warned in
14661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14662 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14663 ac_tool_warned
=yes ;;
14668 AR
="$ac_cv_prog_AR"
14672 # ---------------------- #
14673 # Checks for libraries. #
14674 # ---------------------- #
14676 ac_config_files
="$ac_config_files Makefile import/Makefile"
14678 ac_config_commands
="$ac_config_commands default"
14680 cat >confcache
<<\_ACEOF
14681 # This file is a shell script that caches the results of configure
14682 # tests run on this system so they can be shared between configure
14683 # scripts and configure runs, see configure's option --config-cache.
14684 # It is not useful on other systems. If it contains results you don't
14685 # want to keep, you may remove or edit it.
14687 # config.status only pays attention to the cache file if you give it
14688 # the --recheck option to rerun configure.
14690 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14691 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14692 # following values.
14696 # The following way of writing the cache mishandles newlines in values,
14697 # but we know of no workaround that is simple, portable, and efficient.
14698 # So, we kill variables containing newlines.
14699 # Ultrix sh set writes to stderr and can't be redirected directly,
14700 # and sets the high bit in the cache file unless we assign to the vars.
14702 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14703 eval ac_val
=\$
$ac_var
14707 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14708 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14711 _ | IFS | as_nl
) ;; #(
14712 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
14713 *) { eval $ac_var=; unset $ac_var;} ;;
14719 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14720 *${as_nl}ac_space
=\
*)
14721 # `set' does not quote correctly, so add quotes: double-quote
14722 # substitution turns \\\\ into \\, and sed turns \\ into \.
14725 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14728 # `set' quotes correctly as required by POSIX, so do not add quotes.
14729 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14738 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14740 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14742 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
14743 if test -w "$cache_file"; then
14744 test "x$cache_file" != "x/dev/null" &&
14745 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14746 $as_echo "$as_me: updating cache $cache_file" >&6;}
14747 cat confcache
>$cache_file
14749 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14750 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14755 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
14756 # Let make expand exec_prefix.
14757 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
14759 DEFS
=-DHAVE_CONFIG_H
14763 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
14764 # 1. Remove the extension, and $U if already installed.
14765 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
14766 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
14767 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14768 # will be set to the directory where LIBOBJS objects are built.
14769 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14770 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
14772 LIBOBJS
=$ac_libobjs
14774 LTLIBOBJS
=$ac_ltlibobjs
14777 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14778 as_fn_error
"conditional \"MAINTAINER_MODE\" was never defined.
14779 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14781 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
14782 as_fn_error
"conditional \"GL_COND_LIBTOOL\" was never defined.
14783 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14785 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
14786 as_fn_error
"conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
14787 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14789 if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
14790 as_fn_error
"conditional \"GL_GENERATE_FLOAT_H\" was never defined.
14791 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14793 if test -z "${GL_GENERATE_FNMATCH_H_TRUE}" && test -z "${GL_GENERATE_FNMATCH_H_FALSE}"; then
14794 as_fn_error
"conditional \"GL_GENERATE_FNMATCH_H\" was never defined.
14795 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14797 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
14798 as_fn_error
"conditional \"GL_GENERATE_STDINT_H\" was never defined.
14799 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14803 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
14804 as_fn_error
"conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
14805 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14807 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
14808 as_fn_error
"conditional \"GL_GENERATE_STDDEF_H\" was never defined.
14809 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14814 if test -n "$gl_LIBOBJS"; then
14815 # Remove the extension.
14816 sed_drop_objext
='s/\.o$//;s/\.obj$//'
14817 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
14818 gl_libobjs
="$gl_libobjs $i.$ac_objext"
14819 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
14822 gl_LIBOBJS
=$gl_libobjs
14824 gl_LTLIBOBJS
=$gl_ltlibobjs
14830 if test -n "$gltests_LIBOBJS"; then
14831 # Remove the extension.
14832 sed_drop_objext
='s/\.o$//;s/\.obj$//'
14833 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
14834 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
14835 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
14838 gltests_LIBOBJS
=$gltests_libobjs
14840 gltests_LTLIBOBJS
=$gltests_ltlibobjs
14843 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14844 as_fn_error
"conditional \"AMDEP\" was never defined.
14845 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14847 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14848 as_fn_error
"conditional \"am__fastdepCC\" was never defined.
14849 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14851 if test -n "$EXEEXT"; then
14853 am__EXEEXT_FALSE
='#'
14855 am__EXEEXT_TRUE
='#'
14860 : ${CONFIG_STATUS=./config.status}
14862 ac_clean_files_save
=$ac_clean_files
14863 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
14864 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14865 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14867 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14869 # Generated by $as_me.
14870 # Run this file to recreate the current configuration.
14871 # Compiler output produced by configure, useful for debugging
14872 # configure, is in config.log if it exists.
14875 ac_cs_recheck=false
14878 SHELL=\${CONFIG_SHELL-$SHELL}
14881 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
14882 ## -------------------- ##
14883 ## M4sh Initialization. ##
14884 ## -------------------- ##
14886 # Be more Bourne compatible
14887 DUALCASE
=1; export DUALCASE
# for MKS sh
14888 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
14891 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14892 # is contrary to our usage. Disable this feature.
14893 alias -g '${1+"$@"}'='"$@"'
14894 setopt NO_GLOB_SUBST
14896 case `(set -o) 2>/dev/null` in #(
14908 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14909 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14910 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14911 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14912 # Prefer a ksh shell builtin over an external printf program on Solaris,
14913 # but without wasting forks for bash or zsh.
14914 if test -z "$BASH_VERSION$ZSH_VERSION" \
14915 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14916 as_echo='print
-r --'
14917 as_echo_n='print
-rn --'
14918 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14919 as_echo='printf %s
\n'
14920 as_echo_n='printf %s
'
14922 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14923 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
14924 as_echo_n='/usr
/ucb
/echo -n'
14926 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14927 as_echo_n_body='eval
14931 expr "X$arg" : "X\\(.*\\)$as_nl";
14932 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14934 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
14936 export as_echo_n_body
14937 as_echo_n='sh
-c $as_echo_n_body as_echo
'
14939 export as_echo_body
14940 as_echo='sh
-c $as_echo_body as_echo
'
14943 # The user is always right.
14944 if test "${PATH_SEPARATOR+set}" != set; then
14946 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14947 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14954 # We need space, tab and new line, in precisely that order. Quoting is
14955 # there to prevent editors from complaining about space-tab.
14956 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14957 # splitting by setting IFS to empty value.)
14960 # Find who we are. Look in the path if we contain no directory separator.
14962 *[\\/]* ) as_myself=$0 ;;
14963 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14964 for as_dir in $PATH
14967 test -z "$as_dir" && as_dir=.
14968 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14974 # We did not find ourselves, most probably we were run as `sh COMMAND'
14975 # in which case we are not to be found in the path.
14976 if test "x$as_myself" = x
; then
14979 if test ! -f "$as_myself"; then
14980 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14984 # Unset variables that we do not need and which cause bugs (e.g. in
14985 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14986 # suppresses any "Segmentation fault" message there. '((' could
14987 # trigger a bug in pdksh 5.2.14.
14988 for as_var
in BASH_ENV ENV MAIL MAILPATH
14989 do eval test x\
${$as_var+set} = xset \
14990 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
15003 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
15006 # as_fn_error ERROR [LINENO LOG_FD]
15007 # ---------------------------------
15008 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15009 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15010 # script with status $?, using 1 if that was 0.
15013 as_status
=$?
; test $as_status -eq 0 && as_status
=1
15015 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
15016 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15018 $as_echo "$as_me: error: $1" >&2
15019 as_fn_exit
$as_status
15023 # as_fn_set_status STATUS
15024 # -----------------------
15025 # Set $? to STATUS, without forking.
15026 as_fn_set_status
()
15029 } # as_fn_set_status
15031 # as_fn_exit STATUS
15032 # -----------------
15033 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15037 as_fn_set_status
$1
15043 # Portably unset VAR.
15046 { eval $1=; unset $1;}
15048 as_unset
=as_fn_unset
15049 # as_fn_append VAR VALUE
15050 # ----------------------
15051 # Append the text in VALUE to the end of the definition contained in VAR. Take
15052 # advantage of any shell optimizations that allow amortized linear growth over
15053 # repeated appends, instead of the typical quadratic growth present in naive
15055 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
15056 eval 'as_fn_append ()
15067 # as_fn_arith ARG...
15068 # ------------------
15069 # Perform arithmetic evaluation on the ARGs, and store the result in the
15070 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15071 # must be portable across $(()) and expr.
15072 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
15073 eval 'as_fn_arith ()
15080 as_val
=`expr "$@" || test $? -eq 1`
15085 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
15086 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
15092 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15093 as_basename
=basename
15098 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
15104 as_me
=`$as_basename -- "$0" ||
15105 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15106 X"$0" : 'X\(//\)$' \| \
15107 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15109 sed '/^.*\/\([^/][^/]*\)\/*$/{
15123 # Avoid depending upon Character Ranges.
15124 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
15125 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15126 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
15127 as_cr_digits
='0123456789'
15128 as_cr_alnum
=$as_cr_Letters$as_cr_digits
15130 ECHO_C
= ECHO_N
= ECHO_T
=
15131 case `echo -n x` in #(((((
15133 case `echo 'xy\c'` in
15134 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
15136 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
15143 rm -f conf$$ conf$$.exe conf$$.
file
15144 if test -d conf$$.dir
; then
15145 rm -f conf$$.dir
/conf$$.
file
15148 mkdir conf$$.dir
2>/dev
/null
15150 if (echo >conf$$.
file) 2>/dev
/null
; then
15151 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
15153 # ... but there are two gotchas:
15154 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15155 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15156 # In both cases, we have to default to `cp -p'.
15157 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
15159 elif ln conf$$.
file conf$$
2>/dev
/null
; then
15167 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
15168 rmdir conf$$.dir
2>/dev
/null
15173 # Create "$as_dir" as a directory, including parents if necessary.
15178 -*) as_dir
=.
/$as_dir;;
15180 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
15184 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15185 *) as_qdir
=$as_dir;;
15187 as_dirs
="'$as_qdir' $as_dirs"
15188 as_dir
=`$as_dirname -- "$as_dir" ||
15189 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15190 X"$as_dir" : 'X\(//\)[^/]' \| \
15191 X"$as_dir" : 'X\(//\)$' \| \
15192 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15193 $as_echo X"$as_dir" |
15194 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15198 /^X\(\/\/\)[^/].*/{
15211 test -d "$as_dir" && break
15213 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
15214 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
15218 if mkdir
-p .
2>/dev
/null
; then
15219 as_mkdir_p
='mkdir -p "$as_dir"'
15221 test -d .
/-p && rmdir .
/-p
15225 if test -x / >/dev
/null
2>&1; then
15226 as_test_x
='test -x'
15228 if ls -dL / >/dev
/null
2>&1; then
15235 if test -d "$1"; then
15241 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15242 ???[sx]*):;;*)false;;esac;fi
15246 as_executable_p
=$as_test_x
15248 # Sed expression to map a string onto a valid CPP name.
15249 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15251 # Sed expression to map a string onto a valid variable name.
15252 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15256 ## ----------------------------------- ##
15257 ## Main body of $CONFIG_STATUS script. ##
15258 ## ----------------------------------- ##
15260 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
15262 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15263 # Save the log message, to keep $0 and so on meaningful, and to
15264 # report actual input values of CONFIG_FILES etc. instead of their
15265 # values after options handling.
15267 This file was extended by $as_me, which was
15268 generated by GNU Autoconf 2.64. Invocation command line was
15270 CONFIG_FILES = $CONFIG_FILES
15271 CONFIG_HEADERS = $CONFIG_HEADERS
15272 CONFIG_LINKS = $CONFIG_LINKS
15273 CONFIG_COMMANDS = $CONFIG_COMMANDS
15276 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15281 case $ac_config_files in *"
15282 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
15285 case $ac_config_headers in *"
15286 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
15290 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15291 # Files that config.status was made for.
15292 config_files="$ac_config_files"
15293 config_headers="$ac_config_headers"
15294 config_commands="$ac_config_commands"
15298 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15300 \`$as_me' instantiates files and other configuration actions
15301 from templates according to the current configuration. Unless the files
15302 and actions are specified as TAGs, all are instantiated by default.
15304 Usage: $0 [OPTION]... [TAG]...
15306 -h, --help print this help, then exit
15307 -V, --version print version number and configuration settings, then exit
15308 -q, --quiet, --silent
15309 do not print progress messages
15310 -d, --debug don't remove temporary files
15311 --recheck update $as_me by reconfiguring in the same conditions
15312 --file=FILE[:TEMPLATE]
15313 instantiate the configuration file FILE
15314 --header=FILE[:TEMPLATE]
15315 instantiate the configuration header FILE
15317 Configuration files:
15320 Configuration headers:
15323 Configuration commands:
15326 Report bugs to the package provider."
15329 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15332 configured by $0, generated by GNU Autoconf 2.64,
15333 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15335 Copyright (C) 2009 Free Software Foundation, Inc.
15336 This config.status script is free software; the Free Software Foundation
15337 gives unlimited permission to copy, distribute and modify it."
15344 test -n "\$AWK" || AWK=awk
15347 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15348 # The default lists apply if the user does not specify any file.
15354 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
15355 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
15366 # Handling of the options.
15367 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
15369 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
15370 $as_echo "$ac_cs_version"; exit ;;
15371 --debug |
--debu |
--deb |
--de |
--d |
-d )
15373 --file |
--fil |
--fi |
--f )
15376 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15378 as_fn_append CONFIG_FILES
" '$ac_optarg'"
15379 ac_need_defaults
=false
;;
15380 --header |
--heade |
--head |
--hea )
15383 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15385 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
15386 ac_need_defaults
=false
;;
15388 # Conflict between --help and --header
15389 as_fn_error
"ambiguous option: \`$1'
15390 Try \`$0 --help' for more information.";;
15391 --help |
--hel |
-h )
15392 $as_echo "$ac_cs_usage"; exit ;;
15393 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
15394 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
15397 # This is an error.
15398 -*) as_fn_error
"unrecognized option: \`$1'
15399 Try \`$0 --help' for more information." ;;
15401 *) as_fn_append ac_config_targets
" $1"
15402 ac_need_defaults
=false
;;
15408 ac_configure_extra_args
=
15410 if $ac_cs_silent; then
15412 ac_configure_extra_args
="$ac_configure_extra_args --silent"
15416 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15417 if \$ac_cs_recheck; then
15418 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15420 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15421 CONFIG_SHELL='$SHELL'
15422 export CONFIG_SHELL
15427 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15431 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15432 ## Running $as_me. ##
15438 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15442 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15446 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15448 # Handling of arguments.
15449 for ac_config_target
in $ac_config_targets
15451 case $ac_config_target in
15452 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
15453 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
15454 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
15455 "import/Makefile") CONFIG_FILES
="$CONFIG_FILES import/Makefile" ;;
15456 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
15458 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15463 # If the user did not use the arguments to specify the items to instantiate,
15464 # then the envvar interface is used. Set only those that are not.
15465 # We use the long form for the default assignment because of an extremely
15466 # bizarre bug on SunOS 4.1.3.
15467 if $ac_need_defaults; then
15468 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
15469 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
15470 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
15473 # Have a temporary directory for convenience. Make it in the build tree
15474 # simply because there is no reason against having it here, and in addition,
15475 # creating and moving files from /tmp can sometimes cause problems.
15476 # Hook for its removal unless debugging.
15477 # Note that there is a small window in which the directory will not be cleaned:
15478 # after its creation but before its name has been assigned to `$tmp'.
15482 trap 'exit_status=$?
15483 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15485 trap 'as_fn_exit 1' 1 2 13 15
15487 # Create a (secure) tmp directory for tmp files.
15490 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15491 test -n "$tmp" && test -d "$tmp"
15494 tmp
=.
/conf$$
-$RANDOM
15495 (umask 077 && mkdir
"$tmp")
15496 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
15498 # Set up the scripts for CONFIG_FILES section.
15499 # No need to generate them if there are no CONFIG_FILES.
15500 # This happens for instance with `./config.status config.h'.
15501 if test -n "$CONFIG_FILES"; then
15504 ac_cr
=`echo X | tr X '\015'`
15505 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15506 # But we know of no other shell where ac_cr would be empty at this
15507 # point, so we can use a bashism as a fallback.
15508 if test "x$ac_cr" = x
; then
15509 eval ac_cr
=\$
\'\\r
\'
15511 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15512 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15515 ac_cs_awk_cr
=$ac_cr
15518 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15523 echo "cat >conf$$subs.awk <<_ACEOF" &&
15524 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15526 } >conf$$subs.sh ||
15527 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
15528 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15530 for ac_last_try in false false false false false :; do
15531 . ./conf$$subs.sh ||
15532 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
15534 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
15535 if test $ac_delim_n = $ac_delim_num; then
15537 elif $ac_last_try; then
15538 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
15540 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
15543 rm -f conf$$subs.sh
15545 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15546 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
15550 s/^/S["/; s
/!.
*/"]=/
15560 s/\(.\{148\}\).*/\1/
15562 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
15567 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
15574 s/\(.\{148\}\).*/\1/
15576 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
15580 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
15585 ' <conf$$subs.awk | sed '
15590 ' >>$CONFIG_STATUS || ac_write_fail=1
15591 rm -f conf$$subs.awk
15592 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15594 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
15595 for (key in S) S_is_set[key] = 1
15601 nfields = split(line, field, "@
")
15603 len = length(field[1])
15604 for (i = 2; i < nfields; i++) {
15606 keylen = length(key)
15607 if (S_is_set[key]) {
15609 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15610 len += length(value) + length(field[++i])
15621 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15622 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15623 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
15626 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
15627 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
15630 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15631 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
15632 # trailing colons and then remove the whole line if VPATH becomes empty
15633 # (actually we leave an empty line to preserve line numbers).
15634 if test "x
$srcdir" = x.; then
15635 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15636 s/:*\$(srcdir):*/:/
15637 s/:*\${srcdir}:*/:/
15639 s/^\([^=]*=[ ]*\):*/\1/
15645 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15646 fi # test -n "$CONFIG_FILES"
15648 # Set up the scripts for CONFIG_HEADERS section.
15649 # No need to generate them if there are no CONFIG_HEADERS.
15650 # This happens for instance with `./config.status Makefile'.
15651 if test -n "$CONFIG_HEADERS"; then
15652 cat >"$tmp/defines.
awk" <<\_ACAWK ||
15656 # Transform confdefs.h into an awk script `defines.awk', embedded as
15657 # here-document in config.status, that substitutes the proper values into
15658 # config.h.in to produce config.h.
15660 # Create a delimiter string that does not exist in confdefs.h, to ease
15661 # handling of long lines.
15663 for ac_last_try in false false :; do
15664 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
15665 if test -z "$ac_t"; then
15667 elif $ac_last_try; then
15668 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
15670 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
15674 # For the awk script, D is an array of macro values keyed by name,
15675 # likewise P contains macro parameters if any. Preserve backslash
15676 # newline sequences.
15678 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15680 s/.\{148\}/&'"$ac_delim"'/g
15683 s/^[ ]*#[ ]*define[ ][ ]*/ /
15690 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
15692 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
15696 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
15697 D["\
1"]=" \
3\\\\\\n
"\\/p
15699 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
15704 s/.\{148\}/&'"$ac_delim"'/g
15709 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
15712 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
15714 ' <confdefs.h | sed '
15715 s/'"$ac_delim"'/"\\\
15716 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15718 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15719 for (key in D) D_is_set[key] = 1
15722 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15724 split(line, arg, " ")
15725 if (arg[1] == "#") {
15729 defundef
= substr
(arg
[1], 2)
15732 split(mac1
, mac2
, "(") #)
15734 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
15735 if (D_is_set
[macro
]) {
15736 # Preserve the white space surrounding the "#".
15737 print prefix
"define", macro P
[macro
] D
[macro
]
15740 # Replace #undef with comments. This is necessary, for example,
15741 # in the case of _POSIX_SOURCE, which is predefined and required
15742 # on some systems where configure will not decide to define it.
15743 if (defundef
== "undef") {
15744 print
"/*", prefix defundef
, macro
, "*/"
15752 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15753 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
15754 fi # test -n "$CONFIG_HEADERS"
15757 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15762 :[FHLC
]) ac_mode
=$ac_tag; continue;;
15764 case $ac_mode$ac_tag in
15766 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
15767 :[FH
]-) ac_tag
=-:-;;
15768 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
15785 -) ac_f
="$tmp/stdin";;
15786 *) # Look for the file first in the build tree, then in the source tree
15787 # (if the path is not absolute). The absolute path cannot be DOS-style,
15788 # because $ac_f cannot contain `:'.
15792 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
15794 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
15796 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15797 as_fn_append ac_file_inputs
" '$ac_f'"
15800 # Let's still pretend it is `configure' which instantiates (i.e., don't
15801 # use $as_me), people would be surprised to read:
15802 # /* config.h. Generated by config.status. */
15803 configure_input
='Generated from '`
15804 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15806 if test x
"$ac_file" != x-
; then
15807 configure_input
="$ac_file. $configure_input"
15808 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15809 $as_echo "$as_me: creating $ac_file" >&6;}
15811 # Neutralize special characters interpreted by sed in replacement strings.
15812 case $configure_input in #(
15813 *\
&* |
*\|
* |
*\\* )
15814 ac_sed_conf_input
=`$as_echo "$configure_input" |
15815 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15816 *) ac_sed_conf_input
=$configure_input;;
15820 *:-:* |
*:-) cat >"$tmp/stdin" \
15821 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
15826 ac_dir
=`$as_dirname -- "$ac_file" ||
15827 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15828 X"$ac_file" : 'X\(//\)[^/]' \| \
15829 X"$ac_file" : 'X\(//\)$' \| \
15830 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15831 $as_echo X"$ac_file" |
15832 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15836 /^X\(\/\/\)[^/].*/{
15849 as_dir
="$ac_dir"; as_fn_mkdir_p
15853 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
15855 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15856 # A ".." for each directory in $ac_dir_suffix.
15857 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15858 case $ac_top_builddir_sub in
15859 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
15860 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
15863 ac_abs_top_builddir
=$ac_pwd
15864 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
15865 # for backward compatibility:
15866 ac_top_builddir
=$ac_top_build_prefix
15869 .
) # We are building in place.
15871 ac_top_srcdir
=$ac_top_builddir_sub
15872 ac_abs_top_srcdir
=$ac_pwd ;;
15873 [\\/]* | ?
:[\\/]* ) # Absolute name.
15874 ac_srcdir
=$srcdir$ac_dir_suffix;
15875 ac_top_srcdir
=$srcdir
15876 ac_abs_top_srcdir
=$srcdir ;;
15877 *) # Relative name.
15878 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
15879 ac_top_srcdir
=$ac_top_build_prefix$srcdir
15880 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
15882 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
15892 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
15893 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
15895 ac_MKDIR_P
=$MKDIR_P
15897 [\\/$
]* | ?
:[\\/]* ) ;;
15898 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
15902 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15903 # If the template does not know about datarootdir, expand it.
15904 # FIXME: This hack should be removed a few years after 2.60.
15905 ac_datarootdir_hack
=; ac_datarootdir_seen
=
15916 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15917 *datarootdir
*) ac_datarootdir_seen
=yes;;
15918 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
15919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15920 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15922 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15923 ac_datarootdir_hack='
15924 s&@datadir@&$datadir&g
15925 s&@docdir@&$docdir&g
15926 s&@infodir@&$infodir&g
15927 s&@localedir@&$localedir&g
15928 s&@mandir@&$mandir&g
15929 s&\\\${datarootdir}&$datarootdir&g' ;;
15933 # Neutralize VPATH when `$srcdir' = `.'.
15934 # Shell code in configure.ac might set extrasub.
15935 # FIXME: do we really want to maintain this feature?
15936 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15937 ac_sed_extra="$ac_vpsub
15940 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15942 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
15943 s|@configure_input@|
$ac_sed_conf_input|
;t t
15944 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
15945 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
15946 s
&@srcdir@
&$ac_srcdir&;t t
15947 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
15948 s
&@top_srcdir@
&$ac_top_srcdir&;t t
15949 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
15950 s
&@builddir@
&$ac_builddir&;t t
15951 s
&@abs_builddir@
&$ac_abs_builddir&;t t
15952 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
15953 s
&@INSTALL@
&$ac_INSTALL&;t t
15954 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
15955 $ac_datarootdir_hack
15957 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
15958 || as_fn_error "could not create
$ac_file" "$LINENO" 5
15960 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15961 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
15962 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
15963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
15964 which seems to be undefined. Please make sure it is defined." >&5
15965 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
15966 which seems to be undefined. Please make sure it is defined." >&2;}
15970 -) cat "$tmp/out" && rm -f "$tmp/out";;
15971 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15973 || as_fn_error "could not create $ac_file" "$LINENO" 5
15979 if test x"$ac_file" != x-; then
15981 $as_echo "/* $configure_input */" \
15982 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15983 } >"$tmp/config.h" \
15984 || as_fn_error "could not create $ac_file" "$LINENO" 5
15985 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15986 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15987 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15990 mv "$tmp/config.h" "$ac_file" \
15991 || as_fn_error "could not create $ac_file" "$LINENO" 5
15994 $as_echo "/* $configure_input */" \
15995 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15996 || as_fn_error "could not create -" "$LINENO" 5
15998 # Compute "$ac_file"'s index
in $config_headers.
16001 for _am_header
in $config_headers :; do
16002 case $_am_header in
16003 $_am_arg |
$_am_arg:* )
16006 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
16009 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16010 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16011 X"$_am_arg" : 'X\(//\)[^/]' \| \
16012 X"$_am_arg" : 'X\(//\)$' \| \
16013 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16014 $as_echo X"$_am_arg" |
16015 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16019 /^X\(\/\/\)[^/].*/{
16031 s/.*/./; q'`/stamp-h
$_am_stamp_count
16034 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16035 $as_echo "$as_me: executing $ac_file commands" >&6;}
16040 case $ac_file$ac_mode in
16041 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
16042 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16043 # are listed without --file. Let's play safe and only enable the eval
16044 # if we detect the quoting.
16045 case $CONFIG_FILES in
16046 *\'*) eval set x
"$CONFIG_FILES" ;;
16047 *) set x
$CONFIG_FILES ;;
16052 # Strip MF so we end up with the name of the file.
16053 mf
=`echo "$mf" | sed -e 's/:.*$//'`
16054 # Check whether this is an Automake generated Makefile or not.
16055 # We used to match only the files named `Makefile.in', but
16056 # some people rename them; so instead we look at the file content.
16057 # Grep'ing the first line is not enough: some people post-process
16058 # each Makefile.in and add a new line on top of each file to say so.
16059 # Grep'ing the whole file is not good either: AIX grep has a line
16060 # limit of 2048, but all sed's we know have understand at least 4000.
16061 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
16062 dirpart
=`$as_dirname -- "$mf" ||
16063 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16064 X"$mf" : 'X\(//\)[^/]' \| \
16065 X"$mf" : 'X\(//\)$' \| \
16066 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16068 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16072 /^X\(\/\/\)[^/].*/{
16088 # Extract the definition of DEPDIR, am__include, and am__quote
16089 # from the Makefile without running `make'.
16090 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
16091 test -z "$DEPDIR" && continue
16092 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
16093 test -z "am__include" && continue
16094 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
16095 # When using ansi2knr, U may be empty or an underscore; expand it
16096 U
=`sed -n 's/^U = //p' < "$mf"`
16097 # Find all dependency output files, they are included files with
16098 # $(DEPDIR) in their names. We invoke sed twice because it is the
16099 # simplest approach to changing $(DEPDIR) to its actual value in the
16101 for file in `sed -n "
16102 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16103 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16104 # Make sure the directory exists.
16105 test -f "$dirpart/$file" && continue
16106 fdir
=`$as_dirname -- "$file" ||
16107 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16108 X"$file" : 'X\(//\)[^/]' \| \
16109 X"$file" : 'X\(//\)$' \| \
16110 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16111 $as_echo X"$file" |
16112 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16116 /^X\(\/\/\)[^/].*/{
16129 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
16130 # echo "creating $dirpart/$file"
16131 echo '# dummy' > "$dirpart/$file"
16137 case x
$CONFIG_HEADERS in
16138 xconfig.h
:config.
in)
16149 ac_clean_files
=$ac_clean_files_save
16151 test $ac_write_fail = 0 ||
16152 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
16155 # configure is writing to config.log, and then calls config.status.
16156 # config.status does its own redirection, appending to config.log.
16157 # Unfortunately, on DOS this fails, as config.log is still kept open
16158 # by configure, so config.status won't be able to write to it; its
16159 # output is simply discarded. So we exec the FD to /dev/null,
16160 # effectively closing config.log, so it can be properly (re)opened and
16161 # appended to by config.status. When coming back to configure, we
16162 # need to make the FD available again.
16163 if test "$no_create" != yes; then
16165 ac_config_status_args
=
16166 test "$silent" = yes &&
16167 ac_config_status_args
="$ac_config_status_args --quiet"
16169 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
16171 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16172 # would make configure fail if this is the last instruction.
16173 $ac_cs_success || as_fn_exit $?
16175 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
16176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16177 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}