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
661 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
663 NEXT_AS_FIRST_DIRECTIVE_STRING_H
666 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
667 UNISTD_H_HAVE_WINSOCK2_H
688 REPLACE_GETDOMAINNAME
699 HAVE_DECL_SETHOSTNAME
700 HAVE_DECL_GETUSERSHELL
701 HAVE_DECL_GETPAGESIZE
703 HAVE_DECL_GETDOMAINNAME
742 GNULIB_UNISTD_H_SIGPIPE
743 GNULIB_UNISTD_H_NONBLOCKING
786 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
788 GL_GENERATE_STDDEF_H_FALSE
789 GL_GENERATE_STDDEF_H_TRUE
794 GL_GENERATE_STDBOOL_H_FALSE
795 GL_GENERATE_STDBOOL_H_TRUE
965 NEXT_AS_FIRST_DIRECTIVE_MATH_H
967 LOCALCHARSET_TESTS_ENVIRONMENT
969 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
971 UINT64_MAX_EQ_ULONG_MAX
972 UINT32_MAX_LT_UINTMAX_MAX
975 INT64_MAX_EQ_LONG_MAX
976 INT32_MAX_LT_INTMAX_MAX
986 GL_GENERATE_STDINT_H_FALSE
987 GL_GENERATE_STDINT_H_TRUE
996 HAVE_SIGNED_SIG_ATOMIC_T
999 BITSIZEOF_SIG_ATOMIC_T
1002 APPLE_UNIVERSAL_BUILD
1006 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
1011 HAVE_UNSIGNED_LONG_LONG_INT
1014 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
1020 REPLACE_SIGNBIT_USING_GCC
1089 HAVE_DECL_REMAINDERL
1270 GL_GENERATE_FNMATCH_H_FALSE
1271 GL_GENERATE_FNMATCH_H_TRUE
1274 GL_GENERATE_FLOAT_H_FALSE
1275 GL_GENERATE_FLOAT_H_TRUE
1277 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1285 GL_GENERATE_ERRNO_H_FALSE
1286 GL_GENERATE_ERRNO_H_TRUE
1288 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1291 PRAGMA_SYSTEM_HEADER
1292 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1296 GL_GENERATE_ALLOCA_H_FALSE
1297 GL_GENERATE_ALLOCA_H_TRUE
1300 GL_COND_LIBTOOL_FALSE
1301 GL_COND_LIBTOOL_TRUE
1328 MAINTAINER_MODE_FALSE
1329 MAINTAINER_MODE_TRUE
1357 program_transform_name
1370 enable_option_checking
1371 enable_maintainer_mode
1372 enable_dependency_tracking
1374 ac_precious_vars='build_alias
1385 # Initialize some variables set by options.
1387 ac_init_version=false
1388 ac_unrecognized_opts=
1389 ac_unrecognized_sep=
1390 # The variables have the same names as the options, with
1391 # dashes changed to underlines.
1392 cache_file=/dev/null
1399 program_transform_name=s,x,x,
1407 # Installation directory options.
1408 # These are left unexpanded so users can "make install exec_prefix=/foo"
1409 # and all the variables that are supposed to be based on exec_prefix
1410 # by default will actually change.
1411 # Use braces instead of parens because sh, perl, etc. also accept them.
1412 # (The list follows the same order as the GNU Coding Standards.)
1413 bindir='${exec_prefix}/bin'
1414 sbindir='${exec_prefix}/sbin'
1415 libexecdir='${exec_prefix}/libexec'
1416 datarootdir='${prefix}/share'
1417 datadir='${datarootdir}'
1418 sysconfdir='${prefix}/etc'
1419 sharedstatedir='${prefix}/com'
1420 localstatedir='${prefix}/var'
1421 includedir='${prefix}/include'
1422 oldincludedir='/usr/include'
1423 docdir='${datarootdir}/doc/${PACKAGE}'
1424 infodir='${datarootdir}/info'
1429 libdir='${exec_prefix}/lib'
1430 localedir='${datarootdir}/locale'
1431 mandir='${datarootdir}/man'
1437 # If the previous option needs an argument, assign it.
1438 if test -n "$ac_prev"; then
1439 eval $ac_prev=\$ac_option
1445 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1449 # Accept the important Cygnus configure options, so we can diagnose typos.
1451 case $ac_dashdash$ac_option in
1455 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1457 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1458 bindir=$ac_optarg ;;
1460 -build | --build | --buil | --bui | --bu)
1461 ac_prev=build_alias ;;
1462 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1463 build_alias=$ac_optarg ;;
1465 -cache-file | --cache-file | --cache-fil | --cache-fi \
1466 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1467 ac_prev=cache_file ;;
1468 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1469 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1470 cache_file=$ac_optarg ;;
1472 --config-cache | -C)
1473 cache_file=config.cache ;;
1475 -datadir | --datadir | --datadi | --datad)
1477 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1478 datadir=$ac_optarg ;;
1480 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1481 | --dataroo | --dataro | --datar)
1482 ac_prev=datarootdir ;;
1483 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1484 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1485 datarootdir=$ac_optarg ;;
1487 -disable-* | --disable-*)
1488 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1489 # Reject names that are not valid shell variable names.
1490 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1491 as_fn_error "invalid feature name: $ac_useropt"
1492 ac_useropt_orig=$ac_useropt
1493 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1494 case $ac_user_opts in
1496 "enable_$ac_useropt"
1498 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1499 ac_unrecognized_sep=', ';;
1501 eval enable_$ac_useropt=no ;;
1503 -docdir | --docdir | --docdi | --doc | --do)
1505 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1506 docdir=$ac_optarg ;;
1508 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1510 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1511 dvidir=$ac_optarg ;;
1513 -enable-* | --enable-*)
1514 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1515 # Reject names that are not valid shell variable names.
1516 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1517 as_fn_error "invalid feature name: $ac_useropt"
1518 ac_useropt_orig=$ac_useropt
1519 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1520 case $ac_user_opts in
1522 "enable_$ac_useropt"
1524 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1525 ac_unrecognized_sep=', ';;
1527 eval enable_$ac_useropt=\$ac_optarg ;;
1529 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1530 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1531 | --exec | --exe | --ex)
1532 ac_prev=exec_prefix ;;
1533 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1534 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1535 | --exec=* | --exe=* | --ex=*)
1536 exec_prefix=$ac_optarg ;;
1538 -gas | --gas | --ga | --g)
1539 # Obsolete; use --with-gas.
1542 -help | --help | --hel | --he | -h)
1543 ac_init_help=long ;;
1544 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1545 ac_init_help=recursive ;;
1546 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1547 ac_init_help=short ;;
1549 -host | --host | --hos | --ho)
1550 ac_prev=host_alias ;;
1551 -host=* | --host=* | --hos=* | --ho=*)
1552 host_alias=$ac_optarg ;;
1554 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1556 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1558 htmldir=$ac_optarg ;;
1560 -includedir | --includedir | --includedi | --included | --include \
1561 | --includ | --inclu | --incl | --inc)
1562 ac_prev=includedir ;;
1563 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1564 | --includ=* | --inclu=* | --incl=* | --inc=*)
1565 includedir=$ac_optarg ;;
1567 -infodir | --infodir | --infodi | --infod | --info | --inf)
1569 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1570 infodir=$ac_optarg ;;
1572 -libdir | --libdir | --libdi | --libd)
1574 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1575 libdir=$ac_optarg ;;
1577 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1578 | --libexe | --libex | --libe)
1579 ac_prev=libexecdir ;;
1580 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1581 | --libexe=* | --libex=* | --libe=*)
1582 libexecdir=$ac_optarg ;;
1584 -localedir | --localedir | --localedi | --localed | --locale)
1585 ac_prev=localedir ;;
1586 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1587 localedir=$ac_optarg ;;
1589 -localstatedir | --localstatedir | --localstatedi | --localstated \
1590 | --localstate | --localstat | --localsta | --localst | --locals)
1591 ac_prev=localstatedir ;;
1592 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1593 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1594 localstatedir=$ac_optarg ;;
1596 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1598 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1599 mandir=$ac_optarg ;;
1601 -nfp | --nfp | --nf)
1602 # Obsolete; use --without-fp.
1605 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1606 | --no-cr | --no-c | -n)
1609 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1610 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1613 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1614 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1615 | --oldin | --oldi | --old | --ol | --o)
1616 ac_prev=oldincludedir ;;
1617 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1618 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1619 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1620 oldincludedir=$ac_optarg ;;
1622 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1624 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1625 prefix=$ac_optarg ;;
1627 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1628 | --program-pre | --program-pr | --program-p)
1629 ac_prev=program_prefix ;;
1630 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1631 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1632 program_prefix=$ac_optarg ;;
1634 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1635 | --program-suf | --program-su | --program-s)
1636 ac_prev=program_suffix ;;
1637 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1638 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1639 program_suffix=$ac_optarg ;;
1641 -program-transform-name | --program-transform-name \
1642 | --program-transform-nam | --program-transform-na \
1643 | --program-transform-n | --program-transform- \
1644 | --program-transform | --program-transfor \
1645 | --program-transfo | --program-transf \
1646 | --program-trans | --program-tran \
1647 | --progr-tra | --program-tr | --program-t)
1648 ac_prev=program_transform_name ;;
1649 -program-transform-name=* | --program-transform-name=* \
1650 | --program-transform-nam=* | --program-transform-na=* \
1651 | --program-transform-n=* | --program-transform-=* \
1652 | --program-transform=* | --program-transfor=* \
1653 | --program-transfo=* | --program-transf=* \
1654 | --program-trans=* | --program-tran=* \
1655 | --progr-tra=* | --program-tr=* | --program-t=*)
1656 program_transform_name=$ac_optarg ;;
1658 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1660 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1661 pdfdir=$ac_optarg ;;
1663 -psdir | --psdir | --psdi | --psd | --ps)
1665 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1668 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1669 | -silent | --silent | --silen | --sile | --sil)
1672 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1674 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1676 sbindir=$ac_optarg ;;
1678 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1679 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1680 | --sharedst | --shareds | --shared | --share | --shar \
1682 ac_prev=sharedstatedir ;;
1683 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1684 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1685 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1687 sharedstatedir=$ac_optarg ;;
1689 -site | --site | --sit)
1691 -site=* | --site=* | --sit=*)
1694 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1696 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1697 srcdir=$ac_optarg ;;
1699 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1700 | --syscon | --sysco | --sysc | --sys | --sy)
1701 ac_prev=sysconfdir ;;
1702 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1703 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1704 sysconfdir=$ac_optarg ;;
1706 -target | --target | --targe | --targ | --tar | --ta | --t)
1707 ac_prev=target_alias ;;
1708 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1709 target_alias=$ac_optarg ;;
1711 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1714 -version | --version | --versio | --versi | --vers | -V)
1715 ac_init_version=: ;;
1718 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1719 # Reject names that are not valid shell variable names.
1720 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1721 as_fn_error "invalid package name: $ac_useropt"
1722 ac_useropt_orig=$ac_useropt
1723 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1724 case $ac_user_opts in
1728 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1729 ac_unrecognized_sep=', ';;
1731 eval with_$ac_useropt=\$ac_optarg ;;
1733 -without-* | --without-*)
1734 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1735 # Reject names that are not valid shell variable names.
1736 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1737 as_fn_error "invalid package name: $ac_useropt"
1738 ac_useropt_orig=$ac_useropt
1739 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1740 case $ac_user_opts in
1744 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1745 ac_unrecognized_sep=', ';;
1747 eval with_$ac_useropt=no ;;
1750 # Obsolete; use --with-x.
1753 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1754 | --x-incl | --x-inc | --x-in | --x-i)
1755 ac_prev=x_includes ;;
1756 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1757 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1758 x_includes=$ac_optarg ;;
1760 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1761 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1762 ac_prev=x_libraries ;;
1763 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1764 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1765 x_libraries=$ac_optarg ;;
1767 -*) as_fn_error "unrecognized option: \`$ac_option'
1768 Try \`$0 --help' for more information."
1772 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1773 # Reject names that are not valid shell variable names.
1774 case $ac_envvar in #(
1775 '' | [0-9]* | *[!_$as_cr_alnum]* )
1776 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1778 eval $ac_envvar=\$ac_optarg
1779 export $ac_envvar ;;
1782 # FIXME: should be removed in autoconf 3.0.
1783 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1784 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1785 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1786 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1792 if test -n "$ac_prev"; then
1793 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1794 as_fn_error "missing argument to $ac_option"
1797 if test -n "$ac_unrecognized_opts"; then
1798 case $enable_option_checking in
1800 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1801 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1805 # Check all directory arguments for consistency.
1806 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1807 datadir sysconfdir sharedstatedir localstatedir includedir \
1808 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1809 libdir localedir mandir
1811 eval ac_val=\$$ac_var
1812 # Remove trailing slashes.
1815 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1816 eval $ac_var=\$ac_val;;
1818 # Be sure to have absolute directory names.
1820 [\\/$]* | ?:[\\/]* ) continue;;
1821 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1823 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1826 # There might be people who depend on the old broken behavior: `$host'
1827 # used to hold the argument of --host etc.
1828 # FIXME: To remove some day.
1831 target=$target_alias
1833 # FIXME: To remove some day.
1834 if test "x$host_alias" != x; then
1835 if test "x$build_alias" = x; then
1836 cross_compiling=maybe
1837 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1838 If a cross compiler is detected then cross compile mode will be used." >&2
1839 elif test "x$build_alias" != "x$host_alias"; then
1845 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1847 test "$silent" = yes && exec 6>/dev/null
1850 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1851 ac_ls_di=`ls -di .` &&
1852 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1853 as_fn_error "working directory cannot be determined"
1854 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1855 as_fn_error "pwd does not report name of working directory"
1858 # Find the source files, if location was not specified.
1859 if test -z "$srcdir"; then
1860 ac_srcdir_defaulted=yes
1861 # Try the directory containing this script, then the parent directory.
1862 ac_confdir=`$as_dirname -- "$as_myself" ||
1863 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1864 X"$as_myself" : 'X\(//\)[^/]' \| \
1865 X"$as_myself" : 'X\(//\)$' \| \
1866 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1867 $as_echo X"$as_myself" |
1868 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1886 if test ! -r "$srcdir/$ac_unique_file"; then
1890 ac_srcdir_defaulted=no
1892 if test ! -r "$srcdir/$ac_unique_file"; then
1893 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1894 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1896 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1898 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1900 # When building in place, set srcdir=.
1901 if test "$ac_abs_confdir" = "$ac_pwd"; then
1904 # Remove unnecessary trailing slashes from srcdir.
1905 # Double slashes in file names in object file debugging info
1906 # mess up M-x gdb in Emacs.
1908 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1910 for ac_var in $ac_precious_vars; do
1911 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1912 eval ac_env_${ac_var}_value=\$${ac_var}
1913 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1914 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1918 # Report the --help message.
1920 if test "$ac_init_help" = "long"; then
1921 # Omit some internal or obsolete options to make the list less imposing.
1922 # This message is too long to be a string in the A/UX 3.1 sh.
1924 \`configure' configures this package to adapt to many kinds of systems.
1926 Usage: $0 [OPTION]... [VAR=VALUE]...
1928 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1929 VAR=VALUE. See below for descriptions of some of the useful variables.
1931 Defaults for the options are specified in brackets.
1934 -h, --help display this help and exit
1935 --help=short display options specific to this package
1936 --help=recursive display the short help of all the included packages
1937 -V, --version display version information and exit
1938 -q, --quiet, --silent do not print \`checking...' messages
1939 --cache-file=FILE cache test results in FILE [disabled]
1940 -C, --config-cache alias for \`--cache-file=config.cache'
1941 -n, --no-create do not create output files
1942 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1944 Installation directories:
1945 --prefix=PREFIX install architecture-independent files in PREFIX
1946 [$ac_default_prefix]
1947 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1950 By default, \`make install' will install all the files in
1951 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1952 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1953 for instance \`--prefix=\$HOME'.
1955 For better control, use the options below.
1957 Fine tuning of the installation directories:
1958 --bindir=DIR user executables [EPREFIX/bin]
1959 --sbindir=DIR system admin executables [EPREFIX/sbin]
1960 --libexecdir=DIR program executables [EPREFIX/libexec]
1961 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1962 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1963 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1964 --libdir=DIR object code libraries [EPREFIX/lib]
1965 --includedir=DIR C header files [PREFIX/include]
1966 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1967 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1968 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1969 --infodir=DIR info documentation [DATAROOTDIR/info]
1970 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1971 --mandir=DIR man documentation [DATAROOTDIR/man]
1972 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1973 --htmldir=DIR html documentation [DOCDIR]
1974 --dvidir=DIR dvi documentation [DOCDIR]
1975 --pdfdir=DIR pdf documentation [DOCDIR]
1976 --psdir=DIR ps documentation [DOCDIR]
1982 --program-prefix=PREFIX prepend PREFIX to installed program names
1983 --program-suffix=SUFFIX append SUFFIX to installed program names
1984 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1987 --build=BUILD configure for building on BUILD [guessed]
1988 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1989 --target=TARGET configure for building compilers for TARGET [HOST]
1993 if test -n "$ac_init_help"; then
1998 --disable-option-checking ignore unrecognized --enable/--with options
1999 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2000 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2001 --enable-maintainer-mode enable make rules and dependencies not useful
2002 (and sometimes confusing) to the casual installer
2003 --disable-dependency-tracking speeds up one-time build
2004 --enable-dependency-tracking do not reject slow dependency extractors
2006 Some influential environment variables:
2007 CC C compiler command
2008 CFLAGS C compiler flags
2009 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2010 nonstandard directory <lib dir>
2011 LIBS libraries to pass to the linker, e.g. -l<library>
2012 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
2013 you have headers in a nonstandard directory <include dir>
2016 Use these variables to override the choices made by `configure' or to help
2017 it to find libraries and programs with nonstandard names/locations.
2019 Report bugs to the package provider.
2024 if test "$ac_init_help" = "recursive"; then
2025 # If there are subdirs, report their specific --help.
2026 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2027 test -d "$ac_dir" ||
2028 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2033 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2035 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2036 # A ".." for each directory in $ac_dir_suffix.
2037 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2038 case $ac_top_builddir_sub in
2039 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2040 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2043 ac_abs_top_builddir=$ac_pwd
2044 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2045 # for backward compatibility:
2046 ac_top_builddir=$ac_top_build_prefix
2049 .) # We are building in place.
2051 ac_top_srcdir=$ac_top_builddir_sub
2052 ac_abs_top_srcdir=$ac_pwd ;;
2053 [\\/]* | ?:[\\/]* ) # Absolute name.
2054 ac_srcdir=$srcdir$ac_dir_suffix;
2055 ac_top_srcdir=$srcdir
2056 ac_abs_top_srcdir=$srcdir ;;
2058 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2059 ac_top_srcdir=$ac_top_build_prefix$srcdir
2060 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2062 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2064 cd "$ac_dir" || { ac_status=$?; continue; }
2065 # Check for guested configure.
2066 if test -f "$ac_srcdir/configure.gnu"; then
2068 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2069 elif test -f "$ac_srcdir/configure"; then
2071 $SHELL "$ac_srcdir/configure" --help=recursive
2073 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2075 cd "$ac_pwd" || { ac_status=$?; break; }
2079 test -n "$ac_init_help" && exit $ac_status
2080 if $ac_init_version; then
2083 generated by GNU Autoconf 2.64
2085 Copyright (C) 2009 Free Software Foundation, Inc.
2086 This configure script is free software; the Free Software Foundation
2087 gives unlimited permission to copy, distribute and modify it.
2092 ## ------------------------ ##
2093 ## Autoconf initialization. ##
2094 ## ------------------------ ##
2096 # ac_fn_c_try_compile LINENO
2097 # --------------------------
2098 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2099 ac_fn_c_try_compile ()
2101 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2102 rm -f conftest.$ac_objext
2103 if { { ac_try="$ac_compile"
2105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2106 *) ac_try_echo=$ac_try;;
2108 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2109 $as_echo "$ac_try_echo"; } >&5
2110 (eval "$ac_compile") 2>conftest.err
2112 if test -s conftest.err; then
2113 grep -v '^ *+' conftest.err >conftest.er1
2114 cat conftest.er1 >&5
2115 mv -f conftest.er1 conftest.err
2117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2118 test $ac_status = 0; } && {
2119 test -z "$ac_c_werror_flag" ||
2120 test ! -s conftest.err
2121 } && test -s conftest.$ac_objext; then :
2124 $as_echo "$as_me: failed program was:" >&5
2125 sed 's/^/| /' conftest.$ac_ext >&5
2129 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2132 } # ac_fn_c_try_compile
2134 # ac_fn_c_try_cpp LINENO
2135 # ----------------------
2136 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2139 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2140 if { { ac_try="$ac_cpp conftest.$ac_ext"
2142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2143 *) ac_try_echo=$ac_try;;
2145 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2146 $as_echo "$ac_try_echo"; } >&5
2147 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2149 if test -s conftest.err; then
2150 grep -v '^ *+' conftest.err >conftest.er1
2151 cat conftest.er1 >&5
2152 mv -f conftest.er1 conftest.err
2154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2155 test $ac_status = 0; } >/dev/null && {
2156 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2157 test ! -s conftest.err
2161 $as_echo "$as_me: failed program was:" >&5
2162 sed 's/^/| /' conftest.$ac_ext >&5
2166 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2171 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2172 # -------------------------------------------------------
2173 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2174 # the include files in INCLUDES and setting the cache variable VAR
2176 ac_fn_c_check_header_mongrel ()
2178 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2179 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2181 $as_echo_n "checking for $2... " >&6; }
2182 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2183 $as_echo_n "(cached) " >&6
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2187 $as_echo "$ac_res" >&6; }
2189 # Is the header compilable?
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2191 $as_echo_n "checking $2 usability... " >&6; }
2192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2193 /* end confdefs.h. */
2197 if ac_fn_c_try_compile "$LINENO"; then :
2198 ac_header_compiler=yes
2200 ac_header_compiler=no
2202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2204 $as_echo "$ac_header_compiler" >&6; }
2206 # Is the header present?
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2208 $as_echo_n "checking $2 presence... " >&6; }
2209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2210 /* end confdefs.h. */
2213 if ac_fn_c_try_cpp "$LINENO"; then :
2214 ac_header_preproc=yes
2216 ac_header_preproc=no
2218 rm -f conftest.err conftest.$ac_ext
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2220 $as_echo "$ac_header_preproc" >&6; }
2222 # So? What about this header?
2223 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2226 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&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}: WARNING: $2: present but cannot be compiled" >&5
2232 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2234 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2236 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2238 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2240 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2244 $as_echo_n "checking for $2... " >&6; }
2245 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2246 $as_echo_n "(cached) " >&6
2248 eval "$3=\$ac_header_compiler"
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2252 $as_echo "$ac_res" >&6; }
2254 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2256 } # ac_fn_c_check_header_mongrel
2258 # ac_fn_c_try_run LINENO
2259 # ----------------------
2260 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2261 # that executables *can* be run.
2264 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2265 if { { ac_try="$ac_link"
2267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2268 *) ac_try_echo=$ac_try;;
2270 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2271 $as_echo "$ac_try_echo"; } >&5
2272 (eval "$ac_link") 2>&5
2274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2275 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2276 { { case "(($ac_try" in
2277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2278 *) ac_try_echo=$ac_try;;
2280 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2281 $as_echo "$ac_try_echo"; } >&5
2282 (eval "$ac_try") 2>&5
2284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2285 test $ac_status = 0; }; }; then :
2288 $as_echo "$as_me: program exited with status $ac_status" >&5
2289 $as_echo "$as_me: failed program was:" >&5
2290 sed 's/^/| /' conftest.$ac_ext >&5
2292 ac_retval=$ac_status
2294 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2295 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2300 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2301 # -------------------------------------------------------
2302 # Tests whether HEADER exists and can be compiled using the include files in
2303 # INCLUDES, setting the cache variable VAR accordingly.
2304 ac_fn_c_check_header_compile ()
2306 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2308 $as_echo_n "checking for $2... " >&6; }
2309 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2310 $as_echo_n "(cached) " >&6
2312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2313 /* end confdefs.h. */
2317 if ac_fn_c_try_compile "$LINENO"; then :
2322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2326 $as_echo "$ac_res" >&6; }
2327 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2329 } # ac_fn_c_check_header_compile
2331 # ac_fn_c_try_link LINENO
2332 # -----------------------
2333 # Try to link conftest.$ac_ext, and return whether this succeeded.
2336 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2337 rm -f conftest.$ac_objext conftest$ac_exeext
2338 if { { ac_try="$ac_link"
2340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2341 *) ac_try_echo=$ac_try;;
2343 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2344 $as_echo "$ac_try_echo"; } >&5
2345 (eval "$ac_link") 2>conftest.err
2347 if test -s conftest.err; then
2348 grep -v '^ *+' conftest.err >conftest.er1
2349 cat conftest.er1 >&5
2350 mv -f conftest.er1 conftest.err
2352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2353 test $ac_status = 0; } && {
2354 test -z "$ac_c_werror_flag" ||
2355 test ! -s conftest.err
2356 } && test -s conftest$ac_exeext && {
2357 test "$cross_compiling" = yes ||
2358 $as_test_x conftest$ac_exeext
2362 $as_echo "$as_me: failed program was:" >&5
2363 sed 's/^/| /' conftest.$ac_ext >&5
2367 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2368 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2369 # interfere with the next link command; also delete a directory that is
2370 # left behind by Apple's compiler. We do this before executing the actions.
2371 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2372 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2375 } # ac_fn_c_try_link
2377 # ac_fn_c_check_func LINENO FUNC VAR
2378 # ----------------------------------
2379 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2380 ac_fn_c_check_func ()
2382 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2384 $as_echo_n "checking for $2... " >&6; }
2385 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2386 $as_echo_n "(cached) " >&6
2388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2389 /* end confdefs.h. */
2390 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2391 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2392 #define $2 innocuous_$2
2394 /* System header to define __stub macros and hopefully few prototypes,
2395 which can conflict with char $2 (); below.
2396 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2397 <limits.h> exists even on freestanding compilers. */
2400 # include <limits.h>
2402 # include <assert.h>
2407 /* Override any GCC internal prototype to avoid an error.
2408 Use char because int might match the return type of a GCC
2409 builtin and then its argument prototype would still apply. */
2414 /* The GNU C library defines this for functions which it implements
2415 to always fail with ENOSYS. Some functions are actually named
2416 something starting with __ and the normal name is an alias. */
2417 #if defined __stub_$2 || defined __stub___$2
2429 if ac_fn_c_try_link "$LINENO"; then :
2434 rm -f core conftest.err conftest.$ac_objext \
2435 conftest$ac_exeext conftest.$ac_ext
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2439 $as_echo "$ac_res" >&6; }
2440 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2442 } # ac_fn_c_check_func
2444 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2445 # --------------------------------------------
2446 # Tries to find the compile-time value of EXPR in a program that includes
2447 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2449 ac_fn_c_compute_int ()
2451 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2452 if test "$cross_compiling" = yes; then
2453 # Depending upon the size, compute the lo and hi bounds.
2454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2455 /* end confdefs.h. */
2460 static int test_array [1 - 2 * !(($2) >= 0)];
2467 if ac_fn_c_try_compile "$LINENO"; then :
2470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2471 /* end confdefs.h. */
2476 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2483 if ac_fn_c_try_compile "$LINENO"; then :
2484 ac_hi=$ac_mid; break
2486 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2487 if test $ac_lo -le $ac_mid; then
2491 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2497 /* end confdefs.h. */
2502 static int test_array [1 - 2 * !(($2) < 0)];
2509 if ac_fn_c_try_compile "$LINENO"; then :
2512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2513 /* end confdefs.h. */
2518 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2525 if ac_fn_c_try_compile "$LINENO"; then :
2526 ac_lo=$ac_mid; break
2528 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2529 if test $ac_mid -le $ac_hi; then
2533 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2543 # Binary search between lo and hi bounds.
2544 while test "x$ac_lo" != "x$ac_hi"; do
2545 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2547 /* end confdefs.h. */
2552 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2559 if ac_fn_c_try_compile "$LINENO"; then :
2562 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2567 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2572 /* end confdefs.h. */
2574 static long int longval () { return $2; }
2575 static unsigned long int ulongval () { return $2; }
2582 FILE *f = fopen ("conftest.val", "w");
2587 long int i = longval ();
2590 fprintf (f, "%ld", i);
2594 unsigned long int i = ulongval ();
2597 fprintf (f, "%lu", i);
2599 /* Do not output a trailing newline, as this causes \r\n confusion
2600 on some platforms. */
2601 return ferror (f) || fclose (f) != 0;
2607 if ac_fn_c_try_run "$LINENO"; then :
2608 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2612 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2613 conftest.$ac_objext conftest.beam conftest.$ac_ext
2617 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2620 } # ac_fn_c_compute_int
2622 # ac_fn_c_check_decl LINENO SYMBOL VAR
2623 # ------------------------------------
2624 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2625 ac_fn_c_check_decl ()
2627 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2629 $as_echo_n "checking whether $2 is declared... " >&6; }
2630 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2631 $as_echo_n "(cached) " >&6
2633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2634 /* end confdefs.h. */
2647 if ac_fn_c_try_compile "$LINENO"; then :
2652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2656 $as_echo "$ac_res" >&6; }
2657 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2659 } # ac_fn_c_check_decl
2661 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2662 # -------------------------------------------
2663 # Tests whether TYPE exists after having included INCLUDES, setting cache
2664 # variable VAR accordingly.
2665 ac_fn_c_check_type ()
2667 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2669 $as_echo_n "checking for $2... " >&6; }
2670 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2671 $as_echo_n "(cached) " >&6
2674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2675 /* end confdefs.h. */
2686 if ac_fn_c_try_compile "$LINENO"; then :
2687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2688 /* end confdefs.h. */
2699 if ac_fn_c_try_compile "$LINENO"; then :
2704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2710 $as_echo "$ac_res" >&6; }
2711 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2713 } # ac_fn_c_check_type
2714 cat >config.log <<_ACEOF
2715 This file contains any messages produced by compilers while
2716 running configure, to aid debugging if configure makes a mistake.
2718 It was created by $as_me, which was
2719 generated by GNU Autoconf 2.64. Invocation command line was
2731 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2732 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2733 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2734 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2735 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2737 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2738 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2740 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2741 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2742 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2743 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2744 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2745 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2746 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2754 test -z "$as_dir" && as_dir=.
2755 $as_echo "PATH: $as_dir"
2771 # Keep a trace of the command line.
2772 # Strip out --no-create and --no-recursion so they do not pile up.
2773 # Strip out --silent because we don't want to record it for future runs.
2774 # Also quote any args containing shell meta-characters.
2775 # Make two passes to allow for proper duplicate-argument suppression.
2779 ac_must_keep_next=false
2785 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2786 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2787 | -silent | --silent | --silen | --sile | --sil)
2790 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2793 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2795 as_fn_append ac_configure_args1 " '$ac_arg'"
2796 if test $ac_must_keep_next = true; then
2797 ac_must_keep_next=false # Got value, back to normal.
2800 *=* | --config-cache | -C | -disable-* | --disable-* \
2801 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2802 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2803 | -with-* | --with-* | -without-* | --without-* | --x)
2804 case "$ac_configure_args0 " in
2805 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2808 -* ) ac_must_keep_next=true ;;
2811 as_fn_append ac_configure_args " '$ac_arg'"
2816 { ac_configure_args0=; unset ac_configure_args0;}
2817 { ac_configure_args1=; unset ac_configure_args1;}
2819 # When interrupted or exit'd, cleanup temporary files, and complete
2820 # config.log. We remove comments because anyway the quotes in there
2821 # would cause problems or look ugly.
2822 # WARNING: Use '\'' to represent an apostrophe within the trap.
2823 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2824 trap 'exit_status=$?
2825 # Save into config.log some information that might help in debugging.
2830 ## ---------------- ##
2831 ## Cache variables. ##
2832 ## ---------------- ##
2835 # The following way of writing the cache mishandles newlines in values,
2837 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2838 eval ac_val=\$$ac_var
2842 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2843 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2846 _ | IFS | as_nl) ;; #(
2847 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2848 *) { eval $ac_var=; unset $ac_var;} ;;
2853 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2854 *${as_nl}ac_space=\ *)
2856 "s/'\''/'\''\\\\'\'''\''/g;
2857 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2860 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2868 ## ----------------- ##
2869 ## Output variables. ##
2870 ## ----------------- ##
2873 for ac_var in $ac_subst_vars
2875 eval ac_val=\$$ac_var
2877 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2879 $as_echo "$ac_var='\''$ac_val'\''"
2883 if test -n "$ac_subst_files"; then
2885 ## ------------------- ##
2886 ## File substitutions. ##
2887 ## ------------------- ##
2890 for ac_var in $ac_subst_files
2892 eval ac_val=\$$ac_var
2894 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2896 $as_echo "$ac_var='\''$ac_val'\''"
2901 if test -s confdefs.h; then
2911 test "$ac_signal" != 0 &&
2912 $as_echo "$as_me: caught signal $ac_signal"
2913 $as_echo "$as_me: exit $exit_status"
2915 rm -f core *.core core.conftest.* &&
2916 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2919 for ac_signal in 1 2 13 15; do
2920 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2924 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2925 rm -f -r conftest* confdefs.h
2927 $as_echo "/* confdefs.h */" > confdefs.h
2929 # Predefined preprocessor variables.
2931 cat >>confdefs.h <<_ACEOF
2932 #define PACKAGE_NAME "$PACKAGE_NAME"
2935 cat >>confdefs.h <<_ACEOF
2936 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2939 cat >>confdefs.h <<_ACEOF
2940 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2943 cat >>confdefs.h <<_ACEOF
2944 #define PACKAGE_STRING "$PACKAGE_STRING"
2947 cat >>confdefs.h <<_ACEOF
2948 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2951 cat >>confdefs.h <<_ACEOF
2952 #define PACKAGE_URL "$PACKAGE_URL"
2956 # Let the site file select an alternate cache file if it wants to.
2957 # Prefer an explicitly selected file to automatically selected ones.
2960 if test -n "$CONFIG_SITE"; then
2961 ac_site_file1=$CONFIG_SITE
2962 elif test "x$prefix" != xNONE; then
2963 ac_site_file1=$prefix/share/config.site
2964 ac_site_file2=$prefix/etc/config.site
2966 ac_site_file1=$ac_default_prefix/share/config.site
2967 ac_site_file2=$ac_default_prefix/etc/config.site
2969 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2971 test "x$ac_site_file" = xNONE && continue
2972 if test -r "$ac_site_file"; then
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2974 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2975 sed 's/^/| /' "$ac_site_file" >&5
2980 if test -r "$cache_file"; then
2981 # Some versions of bash will fail to source /dev/null (special
2982 # files actually), so we avoid doing that.
2983 if test -f "$cache_file"; then
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2985 $as_echo "$as_me: loading cache $cache_file" >&6;}
2987 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2988 *) . "./$cache_file";;
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2993 $as_echo "$as_me: creating cache $cache_file" >&6;}
2997 as_fn_append ac_func_list " btowc"
2998 as_fn_append ac_func_list " isblank"
2999 as_fn_append ac_func_list " iswctype"
3000 as_fn_append ac_func_list " mbsrtowcs"
3001 as_fn_append ac_func_list " mempcpy"
3002 as_fn_append ac_func_list " wmemchr"
3003 as_fn_append ac_func_list " wmemcpy"
3004 as_fn_append ac_func_list " wmempcpy"
3005 as_fn_append ac_header_list " wctype.h"
3006 gl_fnmatch_required=GNU
3007 as_fn_append ac_func_list " alarm"
3008 as_fn_append ac_header_list " wchar.h"
3009 as_fn_append ac_header_list " stdint.h"
3010 as_fn_append ac_header_list " inttypes.h"
3011 as_fn_append ac_header_list " unistd.h"
3012 as_fn_append ac_func_list " symlink"
3013 as_fn_append ac_header_list " math.h"
3014 as_fn_append ac_func_list " mbsinit"
3015 as_fn_append ac_func_list " mbrtowc"
3016 as_fn_append ac_header_list " sys/mman.h"
3017 as_fn_append ac_func_list " mprotect"
3018 as_fn_append ac_header_list " sys/param.h"
3019 as_fn_append ac_header_list " sys/socket.h"
3020 as_fn_append ac_header_list " features.h"
3021 as_fn_append ac_func_list " iswcntrl"
3022 # Check that the precious variables saved in the cache have kept the same
3024 ac_cache_corrupted=false
3025 for ac_var in $ac_precious_vars; do
3026 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3027 eval ac_new_set=\$ac_env_${ac_var}_set
3028 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3029 eval ac_new_val=\$ac_env_${ac_var}_value
3030 case $ac_old_set,$ac_new_set in
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3033 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3034 ac_cache_corrupted=: ;;
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3037 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3038 ac_cache_corrupted=: ;;
3041 if test "x$ac_old_val" != "x$ac_new_val"; then
3042 # differences in whitespace do not lead to failure.
3043 ac_old_val_w=`echo x $ac_old_val`
3044 ac_new_val_w=`echo x $ac_new_val`
3045 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3047 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3048 ac_cache_corrupted=:
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3051 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3052 eval $ac_var=\$ac_old_val
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3055 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3057 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3060 # Pass precious variables to config.status.
3061 if test "$ac_new_set" = set; then
3063 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3064 *) ac_arg=$ac_var=$ac_new_val ;;
3066 case " $ac_configure_args " in
3067 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3068 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3072 if $ac_cache_corrupted; then
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3074 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3076 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3077 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3079 ## -------------------- ##
3080 ## Main body of script. ##
3081 ## -------------------- ##
3084 ac_cpp='$CPP $CPPFLAGS'
3085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3090 ac_config_headers="$ac_config_headers config.h:config.in"
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3094 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3095 # Check whether --enable-maintainer-mode was given.
3096 if test "${enable_maintainer_mode+set}" = set; then :
3097 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3099 USE_MAINTAINER_MODE=no
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3103 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3104 if test $USE_MAINTAINER_MODE = yes; then
3105 MAINTAINER_MODE_TRUE=
3106 MAINTAINER_MODE_FALSE='#'
3108 MAINTAINER_MODE_TRUE='#'
3109 MAINTAINER_MODE_FALSE=
3112 MAINT=$MAINTAINER_MODE_TRUE
3117 ac_cpp='$CPP $CPPFLAGS'
3118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3121 if test -n "$ac_tool_prefix"; then
3122 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3123 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3125 $as_echo_n "checking for $ac_word... " >&6; }
3126 if test "${ac_cv_prog_CC+set}" = set; then :
3127 $as_echo_n "(cached) " >&6
3129 if test -n "$CC"; then
3130 ac_cv_prog_CC="$CC" # Let the user override the test.
3132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3136 test -z "$as_dir" && as_dir=.
3137 for ac_exec_ext in '' $ac_executable_extensions; do
3138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3139 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3150 if test -n "$CC"; then
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3152 $as_echo "$CC" >&6; }
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3155 $as_echo "no" >&6; }
3160 if test -z "$ac_cv_prog_CC"; then
3162 # Extract the first word of "gcc", so it can be a program name with args.
3163 set dummy gcc; ac_word=$2
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3165 $as_echo_n "checking for $ac_word... " >&6; }
3166 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3167 $as_echo_n "(cached) " >&6
3169 if test -n "$ac_ct_CC"; then
3170 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3176 test -z "$as_dir" && as_dir=.
3177 for ac_exec_ext in '' $ac_executable_extensions; do
3178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3179 ac_cv_prog_ac_ct_CC="gcc"
3180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3189 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3190 if test -n "$ac_ct_CC"; then
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3192 $as_echo "$ac_ct_CC" >&6; }
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3195 $as_echo "no" >&6; }
3198 if test "x$ac_ct_CC" = x; then
3201 case $cross_compiling:$ac_tool_warned in
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3204 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3205 ac_tool_warned=yes ;;
3213 if test -z "$CC"; then
3214 if test -n "$ac_tool_prefix"; then
3215 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3216 set dummy ${ac_tool_prefix}cc; ac_word=$2
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3218 $as_echo_n "checking for $ac_word... " >&6; }
3219 if test "${ac_cv_prog_CC+set}" = set; then :
3220 $as_echo_n "(cached) " >&6
3222 if test -n "$CC"; then
3223 ac_cv_prog_CC="$CC" # Let the user override the test.
3225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3229 test -z "$as_dir" && as_dir=.
3230 for ac_exec_ext in '' $ac_executable_extensions; do
3231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3232 ac_cv_prog_CC="${ac_tool_prefix}cc"
3233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3243 if test -n "$CC"; then
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3245 $as_echo "$CC" >&6; }
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3248 $as_echo "no" >&6; }
3254 if test -z "$CC"; then
3255 # Extract the first word of "cc", so it can be a program name with args.
3256 set dummy cc; ac_word=$2
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3258 $as_echo_n "checking for $ac_word... " >&6; }
3259 if test "${ac_cv_prog_CC+set}" = set; then :
3260 $as_echo_n "(cached) " >&6
3262 if test -n "$CC"; then
3263 ac_cv_prog_CC="$CC" # Let the user override the test.
3266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3270 test -z "$as_dir" && as_dir=.
3271 for ac_exec_ext in '' $ac_executable_extensions; do
3272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3273 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3274 ac_prog_rejected=yes
3278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3285 if test $ac_prog_rejected = yes; then
3286 # We found a bogon in the path, so make sure we never use it.
3287 set dummy $ac_cv_prog_CC
3289 if test $# != 0; then
3290 # We chose a different compiler from the bogus one.
3291 # However, it has the same basename, so the bogon will be chosen
3292 # first if we set CC to just the basename; use the full file name.
3294 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3300 if test -n "$CC"; then
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3302 $as_echo "$CC" >&6; }
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3305 $as_echo "no" >&6; }
3310 if test -z "$CC"; then
3311 if test -n "$ac_tool_prefix"; then
3312 for ac_prog in cl.exe
3314 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3315 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3317 $as_echo_n "checking for $ac_word... " >&6; }
3318 if test "${ac_cv_prog_CC+set}" = set; then :
3319 $as_echo_n "(cached) " >&6
3321 if test -n "$CC"; then
3322 ac_cv_prog_CC="$CC" # Let the user override the test.
3324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3328 test -z "$as_dir" && as_dir=.
3329 for ac_exec_ext in '' $ac_executable_extensions; do
3330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3331 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3342 if test -n "$CC"; then
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3344 $as_echo "$CC" >&6; }
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3347 $as_echo "no" >&6; }
3351 test -n "$CC" && break
3354 if test -z "$CC"; then
3356 for ac_prog in cl.exe
3358 # Extract the first word of "$ac_prog", so it can be a program name with args.
3359 set dummy $ac_prog; ac_word=$2
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3361 $as_echo_n "checking for $ac_word... " >&6; }
3362 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3363 $as_echo_n "(cached) " >&6
3365 if test -n "$ac_ct_CC"; then
3366 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3372 test -z "$as_dir" && as_dir=.
3373 for ac_exec_ext in '' $ac_executable_extensions; do
3374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3375 ac_cv_prog_ac_ct_CC="$ac_prog"
3376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3385 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3386 if test -n "$ac_ct_CC"; then
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3388 $as_echo "$ac_ct_CC" >&6; }
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3391 $as_echo "no" >&6; }
3395 test -n "$ac_ct_CC" && break
3398 if test "x$ac_ct_CC" = x; then
3401 case $cross_compiling:$ac_tool_warned in
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3404 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3405 ac_tool_warned=yes ;;
3414 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3415 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3416 as_fn_error "no acceptable C compiler found in \$PATH
3417 See \`config.log' for more details." "$LINENO" 5; }
3419 # Provide some information about the compiler.
3420 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3423 for ac_option in --version -v -V -qversion; do
3424 { { ac_try="$ac_compiler $ac_option >&5"
3426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3427 *) ac_try_echo=$ac_try;;
3429 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3430 $as_echo "$ac_try_echo"; } >&5
3431 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3433 if test -s conftest.err; then
3435 ... rest of stderr output deleted ...
3436 10q' conftest.err >conftest.er1
3437 cat conftest.er1 >&5
3438 rm -f conftest.er1 conftest.err
3440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3441 test $ac_status = 0; }
3444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3445 /* end confdefs.h. */
3450 FILE *f = fopen ("conftest.out", "w");
3451 return ferror (f) || fclose (f) != 0;
3457 ac_clean_files_save=$ac_clean_files
3458 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3459 # Try to create an executable without -o first, disregard a.out.
3460 # It will help us diagnose broken compilers, and finding out an intuition
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3463 $as_echo_n "checking for C compiler default output file name... " >&6; }
3464 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3466 # The possible output files:
3467 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3470 for ac_file in $ac_files
3473 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3474 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3479 if { { ac_try="$ac_link_default"
3481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3482 *) ac_try_echo=$ac_try;;
3484 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3485 $as_echo "$ac_try_echo"; } >&5
3486 (eval "$ac_link_default") 2>&5
3488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3489 test $ac_status = 0; }; then :
3490 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3491 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3492 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3493 # so that the user can short-circuit this test for compilers unknown to
3495 for ac_file in $ac_files ''
3497 test -f "$ac_file" || continue
3499 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3502 # We found the default executable, but exeext='' is most
3506 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3508 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3510 # We set ac_cv_exeext here because the later test for it is not
3511 # safe: cross compilers may not add the suffix if given an `-o'
3512 # argument, so we may need to know it at that point already.
3513 # Even if this section looks crufty: it has the advantage of
3520 test "$ac_cv_exeext" = no && ac_cv_exeext=
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3526 $as_echo "$ac_file" >&6; }
3527 if test -z "$ac_file"; then :
3528 $as_echo "$as_me: failed program was:" >&5
3529 sed 's/^/| /' conftest.$ac_ext >&5
3531 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3532 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3533 { as_fn_set_status 77
3534 as_fn_error "C compiler cannot create executables
3535 See \`config.log' for more details." "$LINENO" 5; }; }
3537 ac_exeext=$ac_cv_exeext
3539 # Check that the compiler produces executables we can run. If not, either
3540 # the compiler is broken, or we cross compile.
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3542 $as_echo_n "checking whether the C compiler works... " >&6; }
3543 # If not cross compiling, check that we can run a simple program.
3544 if test "$cross_compiling" != yes; then
3545 if { ac_try='./$ac_file'
3546 { { case "(($ac_try" in
3547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3548 *) ac_try_echo=$ac_try;;
3550 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3551 $as_echo "$ac_try_echo"; } >&5
3552 (eval "$ac_try") 2>&5
3554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3555 test $ac_status = 0; }; }; then
3558 if test "$cross_compiling" = maybe; then
3561 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3562 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3563 as_fn_error "cannot run C compiled programs.
3564 If you meant to cross compile, use \`--host'.
3565 See \`config.log' for more details." "$LINENO" 5; }
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3570 $as_echo "yes" >&6; }
3572 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3573 ac_clean_files=$ac_clean_files_save
3574 # Check that the compiler produces executables we can run. If not, either
3575 # the compiler is broken, or we cross compile.
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3577 $as_echo_n "checking whether we are cross compiling... " >&6; }
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3579 $as_echo "$cross_compiling" >&6; }
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3582 $as_echo_n "checking for suffix of executables... " >&6; }
3583 if { { ac_try="$ac_link"
3585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3586 *) ac_try_echo=$ac_try;;
3588 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3589 $as_echo "$ac_try_echo"; } >&5
3590 (eval "$ac_link") 2>&5
3592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3593 test $ac_status = 0; }; then :
3594 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3595 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3596 # work properly (i.e., refer to `conftest.exe'), while it won't with
3598 for ac_file in conftest.exe conftest conftest.*; do
3599 test -f "$ac_file" || continue
3601 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3602 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3608 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3609 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3610 as_fn_error "cannot compute suffix of executables: cannot compile and link
3611 See \`config.log' for more details." "$LINENO" 5; }
3613 rm -f conftest$ac_cv_exeext
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3615 $as_echo "$ac_cv_exeext" >&6; }
3617 rm -f conftest.$ac_ext
3618 EXEEXT=$ac_cv_exeext
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3621 $as_echo_n "checking for suffix of object files... " >&6; }
3622 if test "${ac_cv_objext+set}" = set; then :
3623 $as_echo_n "(cached) " >&6
3625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3626 /* end confdefs.h. */
3636 rm -f conftest.o conftest.obj
3637 if { { ac_try="$ac_compile"
3639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3640 *) ac_try_echo=$ac_try;;
3642 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3643 $as_echo "$ac_try_echo"; } >&5
3644 (eval "$ac_compile") 2>&5
3646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3647 test $ac_status = 0; }; then :
3648 for ac_file in conftest.o conftest.obj conftest.*; do
3649 test -f "$ac_file" || continue;
3651 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3652 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3657 $as_echo "$as_me: failed program was:" >&5
3658 sed 's/^/| /' conftest.$ac_ext >&5
3660 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3661 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3662 as_fn_error "cannot compute suffix of object files: cannot compile
3663 See \`config.log' for more details." "$LINENO" 5; }
3665 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3668 $as_echo "$ac_cv_objext" >&6; }
3669 OBJEXT=$ac_cv_objext
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3672 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3673 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3674 $as_echo_n "(cached) " >&6
3676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3677 /* end confdefs.h. */
3690 if ac_fn_c_try_compile "$LINENO"; then :
3695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3696 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3700 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3701 if test $ac_compiler_gnu = yes; then
3706 ac_test_CFLAGS=${CFLAGS+set}
3707 ac_save_CFLAGS=$CFLAGS
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3709 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3710 if test "${ac_cv_prog_cc_g+set}" = set; then :
3711 $as_echo_n "(cached) " >&6
3713 ac_save_c_werror_flag=$ac_c_werror_flag
3714 ac_c_werror_flag=yes
3717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3718 /* end confdefs.h. */
3728 if ac_fn_c_try_compile "$LINENO"; then :
3732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3733 /* end confdefs.h. */
3743 if ac_fn_c_try_compile "$LINENO"; then :
3746 ac_c_werror_flag=$ac_save_c_werror_flag
3748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3749 /* end confdefs.h. */
3759 if ac_fn_c_try_compile "$LINENO"; then :
3762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3767 ac_c_werror_flag=$ac_save_c_werror_flag
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3770 $as_echo "$ac_cv_prog_cc_g" >&6; }
3771 if test "$ac_test_CFLAGS" = set; then
3772 CFLAGS=$ac_save_CFLAGS
3773 elif test $ac_cv_prog_cc_g = yes; then
3774 if test "$GCC" = yes; then
3780 if test "$GCC" = yes; then
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3787 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3788 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3789 $as_echo_n "(cached) " >&6
3791 ac_cv_prog_cc_c89=no
3793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3794 /* end confdefs.h. */
3797 #include <sys/types.h>
3798 #include <sys/stat.h>
3799 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3800 struct buf { int x; };
3801 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3802 static char *e (p, i)
3808 static char *f (char * (*g) (char **, int), char **p, ...)
3813 s = g (p, va_arg (v,int));
3818 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3819 function prototypes and stuff, but not '\xHH' hex character constants.
3820 These don't provoke an error unfortunately, instead are silently treated
3821 as 'x'. The following induces an error, until -std is added to get
3822 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3823 array size at least. It's necessary to write '\x00'==0 to get something
3824 that's true only with -std. */
3825 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3827 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3828 inside strings and character constants. */
3830 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3832 int test (int i, double x);
3833 struct s1 {int (*f) (int a);};
3834 struct s2 {int (*f) (double a);};
3835 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3841 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3846 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3847 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3849 CC="$ac_save_CC $ac_arg"
3850 if ac_fn_c_try_compile "$LINENO"; then :
3851 ac_cv_prog_cc_c89=$ac_arg
3853 rm -f core conftest.err conftest.$ac_objext
3854 test "x$ac_cv_prog_cc_c89" != "xno" && break
3856 rm -f conftest.$ac_ext
3861 case "x$ac_cv_prog_cc_c89" in
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3864 $as_echo "none needed" >&6; } ;;
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3867 $as_echo "unsupported" >&6; } ;;
3869 CC="$CC $ac_cv_prog_cc_c89"
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3871 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3873 if test "x$ac_cv_prog_cc_c89" != xno; then :
3878 ac_cpp='$CPP $CPPFLAGS'
3879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3884 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3885 for ac_t in install-sh install.sh shtool; do
3886 if test -f "$ac_dir/$ac_t"; then
3888 ac_install_sh="$ac_aux_dir/$ac_t -c"
3893 if test -z "$ac_aux_dir"; then
3894 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3897 # These three variables are undocumented and unsupported,
3898 # and are intended to be withdrawn in a future Autoconf release.
3899 # They can cause serious problems if a builder's source tree is in a directory
3900 # whose full name contains unusual characters.
3901 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3902 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3903 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3906 # Make sure we can run config.sub.
3907 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3908 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3911 $as_echo_n "checking build system type... " >&6; }
3912 if test "${ac_cv_build+set}" = set; then :
3913 $as_echo_n "(cached) " >&6
3915 ac_build_alias=$build_alias
3916 test "x$ac_build_alias" = x &&
3917 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3918 test "x$ac_build_alias" = x &&
3919 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3920 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3921 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3925 $as_echo "$ac_cv_build" >&6; }
3926 case $ac_cv_build in
3928 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3931 ac_save_IFS=$IFS; IFS='-'
3937 # Remember, the first character of IFS is used to create $*,
3938 # except with old shells:
3941 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3945 $as_echo_n "checking host system type... " >&6; }
3946 if test "${ac_cv_host+set}" = set; then :
3947 $as_echo_n "(cached) " >&6
3949 if test "x$host_alias" = x; then
3950 ac_cv_host=$ac_cv_build
3952 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3953 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3958 $as_echo "$ac_cv_host" >&6; }
3961 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3964 ac_save_IFS=$IFS; IFS='-'
3970 # Remember, the first character of IFS is used to create $*,
3971 # except with old shells:
3974 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3979 ac_cpp='$CPP $CPPFLAGS'
3980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3984 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3985 # On Suns, sometimes $CPP names a directory.
3986 if test -n "$CPP" && test -d "$CPP"; then
3989 if test -z "$CPP"; then
3990 if test "${ac_cv_prog_CPP+set}" = set; then :
3991 $as_echo_n "(cached) " >&6
3993 # Double quotes because CPP needs to be expanded
3994 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3997 for ac_c_preproc_warn_flag in '' yes
3999 # Use a header file that comes with gcc, so configuring glibc
4000 # with a fresh cross-compiler works.
4001 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4002 # <limits.h> exists even on freestanding compilers.
4003 # On the NeXT, cc -E runs the code through the compiler's parser,
4004 # not just through cpp. "Syntax error" is here to catch this case.
4005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4006 /* end confdefs.h. */
4008 # include <limits.h>
4010 # include <assert.h>
4014 if ac_fn_c_try_cpp "$LINENO"; then :
4017 # Broken: fails on valid input.
4020 rm -f conftest.err conftest.$ac_ext
4022 # OK, works on sane cases. Now check whether nonexistent headers
4023 # can be detected and how.
4024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4025 /* end confdefs.h. */
4026 #include <ac_nonexistent.h>
4028 if ac_fn_c_try_cpp "$LINENO"; then :
4029 # Broken: success on invalid input.
4032 # Passes both tests.
4036 rm -f conftest.err conftest.$ac_ext
4039 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4040 rm -f conftest.err conftest.$ac_ext
4041 if $ac_preproc_ok; then :
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4054 $as_echo "$CPP" >&6; }
4056 for ac_c_preproc_warn_flag in '' yes
4058 # Use a header file that comes with gcc, so configuring glibc
4059 # with a fresh cross-compiler works.
4060 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4061 # <limits.h> exists even on freestanding compilers.
4062 # On the NeXT, cc -E runs the code through the compiler's parser,
4063 # not just through cpp. "Syntax error" is here to catch this case.
4064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4065 /* end confdefs.h. */
4067 # include <limits.h>
4069 # include <assert.h>
4073 if ac_fn_c_try_cpp "$LINENO"; then :
4076 # Broken: fails on valid input.
4079 rm -f conftest.err conftest.$ac_ext
4081 # OK, works on sane cases. Now check whether nonexistent headers
4082 # can be detected and how.
4083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4084 /* end confdefs.h. */
4085 #include <ac_nonexistent.h>
4087 if ac_fn_c_try_cpp "$LINENO"; then :
4088 # Broken: success on invalid input.
4091 # Passes both tests.
4095 rm -f conftest.err conftest.$ac_ext
4098 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4099 rm -f conftest.err conftest.$ac_ext
4100 if $ac_preproc_ok; then :
4103 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4104 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4105 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4106 See \`config.log' for more details." "$LINENO" 5; }
4110 ac_cpp='$CPP $CPPFLAGS'
4111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4117 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4118 if test "${ac_cv_path_GREP+set}" = set; then :
4119 $as_echo_n "(cached) " >&6
4121 if test -z "$GREP"; then
4122 ac_path_GREP_found=false
4123 # Loop through the user's path and test for each of PROGNAME-LIST
4124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4125 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4128 test -z "$as_dir" && as_dir=.
4129 for ac_prog in grep ggrep; do
4130 for ac_exec_ext in '' $ac_executable_extensions; do
4131 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4132 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4133 # Check for GNU ac_path_GREP and select it if it is found.
4134 # Check for GNU $ac_path_GREP
4135 case `"$ac_path_GREP" --version 2>&1` in
4137 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4140 $as_echo_n 0123456789 >"conftest.in"
4143 cat "conftest.in" "conftest.in" >"conftest.tmp"
4144 mv "conftest.tmp" "conftest.in"
4145 cp "conftest.in" "conftest.nl"
4146 $as_echo 'GREP' >> "conftest.nl"
4147 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4148 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4149 as_fn_arith $ac_count + 1 && ac_count=$as_val
4150 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4151 # Best one so far, save it but keep looking for a better one
4152 ac_cv_path_GREP="$ac_path_GREP"
4153 ac_path_GREP_max=$ac_count
4155 # 10*(2^10) chars as input seems more than enough
4156 test $ac_count -gt 10 && break
4158 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4161 $ac_path_GREP_found && break 3
4166 if test -z "$ac_cv_path_GREP"; then
4167 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4170 ac_cv_path_GREP=$GREP
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4175 $as_echo "$ac_cv_path_GREP" >&6; }
4176 GREP="$ac_cv_path_GREP"
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4180 $as_echo_n "checking for egrep... " >&6; }
4181 if test "${ac_cv_path_EGREP+set}" = set; then :
4182 $as_echo_n "(cached) " >&6
4184 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4185 then ac_cv_path_EGREP="$GREP -E"
4187 if test -z "$EGREP"; then
4188 ac_path_EGREP_found=false
4189 # Loop through the user's path and test for each of PROGNAME-LIST
4190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4191 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4194 test -z "$as_dir" && as_dir=.
4195 for ac_prog in egrep; do
4196 for ac_exec_ext in '' $ac_executable_extensions; do
4197 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4198 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4199 # Check for GNU ac_path_EGREP and select it if it is found.
4200 # Check for GNU $ac_path_EGREP
4201 case `"$ac_path_EGREP" --version 2>&1` in
4203 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4206 $as_echo_n 0123456789 >"conftest.in"
4209 cat "conftest.in" "conftest.in" >"conftest.tmp"
4210 mv "conftest.tmp" "conftest.in"
4211 cp "conftest.in" "conftest.nl"
4212 $as_echo 'EGREP' >> "conftest.nl"
4213 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4214 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4215 as_fn_arith $ac_count + 1 && ac_count=$as_val
4216 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4217 # Best one so far, save it but keep looking for a better one
4218 ac_cv_path_EGREP="$ac_path_EGREP"
4219 ac_path_EGREP_max=$ac_count
4221 # 10*(2^10) chars as input seems more than enough
4222 test $ac_count -gt 10 && break
4224 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4227 $ac_path_EGREP_found && break 3
4232 if test -z "$ac_cv_path_EGREP"; then
4233 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4236 ac_cv_path_EGREP=$EGREP
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4242 $as_echo "$ac_cv_path_EGREP" >&6; }
4243 EGREP="$ac_cv_path_EGREP"
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4247 $as_echo_n "checking for ANSI C header files... " >&6; }
4248 if test "${ac_cv_header_stdc+set}" = set; then :
4249 $as_echo_n "(cached) " >&6
4251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4252 /* end confdefs.h. */
4266 if ac_fn_c_try_compile "$LINENO"; then :
4267 ac_cv_header_stdc=yes
4269 ac_cv_header_stdc=no
4271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4273 if test $ac_cv_header_stdc = yes; then
4274 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4276 /* end confdefs.h. */
4280 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4281 $EGREP "memchr" >/dev/null 2>&1; then :
4284 ac_cv_header_stdc=no
4290 if test $ac_cv_header_stdc = yes; then
4291 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4293 /* end confdefs.h. */
4297 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4298 $EGREP "free" >/dev/null 2>&1; then :
4301 ac_cv_header_stdc=no
4307 if test $ac_cv_header_stdc = yes; then
4308 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4309 if test "$cross_compiling" = yes; then :
4312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4313 /* end confdefs.h. */
4316 #if ((' ' & 0x0FF) == 0x020)
4317 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4318 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4320 # define ISLOWER(c) \
4321 (('a' <= (c) && (c) <= 'i') \
4322 || ('j' <= (c) && (c) <= 'r') \
4323 || ('s' <= (c) && (c) <= 'z'))
4324 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4327 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4332 for (i = 0; i < 256; i++)
4333 if (XOR (islower (i), ISLOWER (i))
4334 || toupper (i) != TOUPPER (i))
4339 if ac_fn_c_try_run "$LINENO"; then :
4342 ac_cv_header_stdc=no
4344 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4345 conftest.$ac_objext conftest.beam conftest.$ac_ext
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4351 $as_echo "$ac_cv_header_stdc" >&6; }
4352 if test $ac_cv_header_stdc = yes; then
4354 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4358 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4359 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4360 inttypes.h stdint.h unistd.h
4362 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4363 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4365 eval as_val=\$$as_ac_Header
4366 if test "x$as_val" = x""yes; then :
4367 cat >>confdefs.h <<_ACEOF
4368 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4379 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4380 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4387 if test "$MINIX" = yes; then
4389 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4392 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4395 $as_echo "#define _MINIX 1" >>confdefs.h
4402 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4409 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4410 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4411 $as_echo_n "(cached) " >&6
4413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4414 /* end confdefs.h. */
4416 # define __EXTENSIONS__ 1
4417 $ac_includes_default
4426 if ac_fn_c_try_compile "$LINENO"; then :
4427 ac_cv_safe_to_define___extensions__=yes
4429 ac_cv_safe_to_define___extensions__=no
4431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4434 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4435 test $ac_cv_safe_to_define___extensions__ = yes &&
4436 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4438 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4440 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4442 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4444 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4446 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
4452 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
4453 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
4454 $as_echo_n "(cached) " >&6
4457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4458 /* end confdefs.h. */
4465 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4466 $EGREP "Amsterdam" >/dev/null 2>&1; then :
4467 gl_cv_c_amsterdam_compiler=yes
4469 gl_cv_c_amsterdam_compiler=no
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
4476 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
4477 if test -z "$AR"; then
4478 if test $gl_cv_c_amsterdam_compiler = yes; then
4480 if test -z "$ARFLAGS"; then
4484 if test -n "$ac_tool_prefix"; then
4485 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4486 set dummy ${ac_tool_prefix}ar; ac_word=$2
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4488 $as_echo_n "checking for $ac_word... " >&6; }
4489 if test "${ac_cv_prog_AR+set}" = set; then :
4490 $as_echo_n "(cached) " >&6
4492 if test -n "$AR"; then
4493 ac_cv_prog_AR="$AR" # Let the user override the test.
4495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4499 test -z "$as_dir" && as_dir=.
4500 for ac_exec_ext in '' $ac_executable_extensions; do
4501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4502 ac_cv_prog_AR="${ac_tool_prefix}ar"
4503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4513 if test -n "$AR"; then
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4515 $as_echo "$AR" >&6; }
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4518 $as_echo "no" >&6; }
4523 if test -z "$ac_cv_prog_AR"; then
4525 # Extract the first word of "ar", so it can be a program name with args.
4526 set dummy ar; ac_word=$2
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4528 $as_echo_n "checking for $ac_word... " >&6; }
4529 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4530 $as_echo_n "(cached) " >&6
4532 if test -n "$ac_ct_AR"; then
4533 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4539 test -z "$as_dir" && as_dir=.
4540 for ac_exec_ext in '' $ac_executable_extensions; do
4541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4542 ac_cv_prog_ac_ct_AR="ar"
4543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4552 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4553 if test -n "$ac_ct_AR"; then
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4555 $as_echo "$ac_ct_AR" >&6; }
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4558 $as_echo "no" >&6; }
4561 if test "x$ac_ct_AR" = x; then
4564 case $cross_compiling:$ac_tool_warned in
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4567 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4568 ac_tool_warned=yes ;;
4576 if test -z "$ARFLAGS"; then
4581 if test -z "$ARFLAGS"; then
4587 if test -z "$RANLIB"; then
4588 if test $gl_cv_c_amsterdam_compiler = yes; then
4591 if test -n "$ac_tool_prefix"; then
4592 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4593 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4595 $as_echo_n "checking for $ac_word... " >&6; }
4596 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4597 $as_echo_n "(cached) " >&6
4599 if test -n "$RANLIB"; then
4600 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4606 test -z "$as_dir" && as_dir=.
4607 for ac_exec_ext in '' $ac_executable_extensions; do
4608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4609 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4619 RANLIB=$ac_cv_prog_RANLIB
4620 if test -n "$RANLIB"; then
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4622 $as_echo "$RANLIB" >&6; }
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4625 $as_echo "no" >&6; }
4630 if test -z "$ac_cv_prog_RANLIB"; then
4631 ac_ct_RANLIB=$RANLIB
4632 # Extract the first word of "ranlib", so it can be a program name with args.
4633 set dummy ranlib; ac_word=$2
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4635 $as_echo_n "checking for $ac_word... " >&6; }
4636 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4637 $as_echo_n "(cached) " >&6
4639 if test -n "$ac_ct_RANLIB"; then
4640 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4646 test -z "$as_dir" && as_dir=.
4647 for ac_exec_ext in '' $ac_executable_extensions; do
4648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4649 ac_cv_prog_ac_ct_RANLIB="ranlib"
4650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4659 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4660 if test -n "$ac_ct_RANLIB"; then
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4662 $as_echo "$ac_ct_RANLIB" >&6; }
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4665 $as_echo "no" >&6; }
4668 if test "x$ac_ct_RANLIB" = x; then
4671 case $cross_compiling:$ac_tool_warned in
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4674 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4675 ac_tool_warned=yes ;;
4677 RANLIB=$ac_ct_RANLIB
4680 RANLIB="$ac_cv_prog_RANLIB"
4696 # IEEE behaviour is the default on all CPUs except Alpha and SH
4697 # (according to the test results of Bruno Haible's ieeefp/fenv_default.m4
4698 # and the GCC 4.1.2 manual).
4701 # On Alpha systems, a compiler option provides the behaviour.
4702 # See the ieee(3) manual page, also available at
4703 # <http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V51B_HTML/MAN/MAN3/0600____.HTM>
4704 if test -n "$GCC"; then
4705 # GCC has the option -mieee.
4706 # For full IEEE compliance (rarely needed), use option -mieee-with-inexact.
4707 CPPFLAGS="$CPPFLAGS -mieee"
4709 # Compaq (ex-DEC) C has the option -ieee, equivalent to -ieee_with_no_inexact.
4710 # For full IEEE compliance (rarely needed), use option -ieee_with_inexact.
4711 CPPFLAGS="$CPPFLAGS -ieee"
4715 if test -n "$GCC"; then
4716 # GCC has the option -mieee.
4717 CPPFLAGS="$CPPFLAGS -mieee"
4724 # Code from module alloca:
4725 # Code from module alloca-opt:
4726 # Code from module configmake:
4727 # Code from module errno:
4728 # Code from module extensions:
4730 # Code from module extern-inline:
4731 # Code from module float:
4732 # Code from module fnmatch:
4733 # Code from module fnmatch-gnu:
4734 # Code from module fpieee:
4736 # Code from module fpucw:
4737 # Code from module frexp:
4738 # Code from module frexpl:
4739 # Code from module include_next:
4740 # Code from module intprops:
4741 # Code from module inttypes:
4742 # Code from module inttypes-incomplete:
4743 # Code from module isnand-nolibm:
4744 # Code from module isnanl-nolibm:
4745 # Code from module localcharset:
4746 # Code from module math:
4747 # Code from module mbrtowc:
4748 # Code from module mbsinit:
4749 # Code from module mbsrtowcs:
4750 # Code from module memchr:
4751 # Code from module memmem:
4752 # Code from module memmem-simple:
4753 # Code from module multiarch:
4754 # Code from module pathmax:
4755 # Code from module snippet/arg-nonnull:
4756 # Code from module snippet/c++defs:
4757 # Code from module snippet/warn-on-use:
4758 # Code from module ssize_t:
4759 # Code from module stdbool:
4760 # Code from module stddef:
4761 # Code from module stdint:
4762 # Code from module streq:
4763 # Code from module strerror:
4764 # Code from module strerror-override:
4765 # Code from module string:
4766 # Code from module strnlen1:
4767 # Code from module strstr:
4768 # Code from module strstr-simple:
4769 # Code from module sys_types:
4770 # Code from module unistd:
4771 # Code from module update-copyright:
4772 # Code from module verify:
4773 # Code from module wchar:
4774 # Code from module wctype-h:
4777 ac_cpp='$CPP $CPPFLAGS'
4778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4781 if test -n "$ac_tool_prefix"; then
4782 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4783 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4785 $as_echo_n "checking for $ac_word... " >&6; }
4786 if test "${ac_cv_prog_CC+set}" = set; then :
4787 $as_echo_n "(cached) " >&6
4789 if test -n "$CC"; then
4790 ac_cv_prog_CC="$CC" # Let the user override the test.
4792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4796 test -z "$as_dir" && as_dir=.
4797 for ac_exec_ext in '' $ac_executable_extensions; do
4798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4799 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4810 if test -n "$CC"; then
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4812 $as_echo "$CC" >&6; }
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4815 $as_echo "no" >&6; }
4820 if test -z "$ac_cv_prog_CC"; then
4822 # Extract the first word of "gcc", so it can be a program name with args.
4823 set dummy gcc; ac_word=$2
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4825 $as_echo_n "checking for $ac_word... " >&6; }
4826 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4827 $as_echo_n "(cached) " >&6
4829 if test -n "$ac_ct_CC"; then
4830 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4836 test -z "$as_dir" && as_dir=.
4837 for ac_exec_ext in '' $ac_executable_extensions; do
4838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4839 ac_cv_prog_ac_ct_CC="gcc"
4840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4849 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4850 if test -n "$ac_ct_CC"; then
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4852 $as_echo "$ac_ct_CC" >&6; }
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4855 $as_echo "no" >&6; }
4858 if test "x$ac_ct_CC" = x; then
4861 case $cross_compiling:$ac_tool_warned in
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4864 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4865 ac_tool_warned=yes ;;
4873 if test -z "$CC"; then
4874 if test -n "$ac_tool_prefix"; then
4875 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4876 set dummy ${ac_tool_prefix}cc; ac_word=$2
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4878 $as_echo_n "checking for $ac_word... " >&6; }
4879 if test "${ac_cv_prog_CC+set}" = set; then :
4880 $as_echo_n "(cached) " >&6
4882 if test -n "$CC"; then
4883 ac_cv_prog_CC="$CC" # Let the user override the test.
4885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4889 test -z "$as_dir" && as_dir=.
4890 for ac_exec_ext in '' $ac_executable_extensions; do
4891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4892 ac_cv_prog_CC="${ac_tool_prefix}cc"
4893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4903 if test -n "$CC"; then
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4905 $as_echo "$CC" >&6; }
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4908 $as_echo "no" >&6; }
4914 if test -z "$CC"; then
4915 # Extract the first word of "cc", so it can be a program name with args.
4916 set dummy cc; ac_word=$2
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4918 $as_echo_n "checking for $ac_word... " >&6; }
4919 if test "${ac_cv_prog_CC+set}" = set; then :
4920 $as_echo_n "(cached) " >&6
4922 if test -n "$CC"; then
4923 ac_cv_prog_CC="$CC" # Let the user override the test.
4926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4930 test -z "$as_dir" && as_dir=.
4931 for ac_exec_ext in '' $ac_executable_extensions; do
4932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4933 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4934 ac_prog_rejected=yes
4938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4945 if test $ac_prog_rejected = yes; then
4946 # We found a bogon in the path, so make sure we never use it.
4947 set dummy $ac_cv_prog_CC
4949 if test $# != 0; then
4950 # We chose a different compiler from the bogus one.
4951 # However, it has the same basename, so the bogon will be chosen
4952 # first if we set CC to just the basename; use the full file name.
4954 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4960 if test -n "$CC"; then
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4962 $as_echo "$CC" >&6; }
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4965 $as_echo "no" >&6; }
4970 if test -z "$CC"; then
4971 if test -n "$ac_tool_prefix"; then
4972 for ac_prog in cl.exe
4974 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4975 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4977 $as_echo_n "checking for $ac_word... " >&6; }
4978 if test "${ac_cv_prog_CC+set}" = set; then :
4979 $as_echo_n "(cached) " >&6
4981 if test -n "$CC"; then
4982 ac_cv_prog_CC="$CC" # Let the user override the test.
4984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4988 test -z "$as_dir" && as_dir=.
4989 for ac_exec_ext in '' $ac_executable_extensions; do
4990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4991 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5002 if test -n "$CC"; then
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5004 $as_echo "$CC" >&6; }
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5007 $as_echo "no" >&6; }
5011 test -n "$CC" && break
5014 if test -z "$CC"; then
5016 for ac_prog in cl.exe
5018 # Extract the first word of "$ac_prog", so it can be a program name with args.
5019 set dummy $ac_prog; ac_word=$2
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5021 $as_echo_n "checking for $ac_word... " >&6; }
5022 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5023 $as_echo_n "(cached) " >&6
5025 if test -n "$ac_ct_CC"; then
5026 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5032 test -z "$as_dir" && as_dir=.
5033 for ac_exec_ext in '' $ac_executable_extensions; do
5034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5035 ac_cv_prog_ac_ct_CC="$ac_prog"
5036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5045 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5046 if test -n "$ac_ct_CC"; then
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5048 $as_echo "$ac_ct_CC" >&6; }
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5051 $as_echo "no" >&6; }
5055 test -n "$ac_ct_CC" && break
5058 if test "x$ac_ct_CC" = x; then
5061 case $cross_compiling:$ac_tool_warned in
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5064 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5065 ac_tool_warned=yes ;;
5074 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5075 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5076 as_fn_error "no acceptable C compiler found in \$PATH
5077 See \`config.log' for more details." "$LINENO" 5; }
5079 # Provide some information about the compiler.
5080 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5083 for ac_option in --version -v -V -qversion; do
5084 { { ac_try="$ac_compiler $ac_option >&5"
5086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5087 *) ac_try_echo=$ac_try;;
5089 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5090 $as_echo "$ac_try_echo"; } >&5
5091 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5093 if test -s conftest.err; then
5095 ... rest of stderr output deleted ...
5096 10q' conftest.err >conftest.er1
5097 cat conftest.er1 >&5
5098 rm -f conftest.er1 conftest.err
5100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5101 test $ac_status = 0; }
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5105 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5106 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5107 $as_echo_n "(cached) " >&6
5109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5110 /* end confdefs.h. */
5123 if ac_fn_c_try_compile "$LINENO"; then :
5128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5129 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5133 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5134 if test $ac_compiler_gnu = yes; then
5139 ac_test_CFLAGS=${CFLAGS+set}
5140 ac_save_CFLAGS=$CFLAGS
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5142 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5143 if test "${ac_cv_prog_cc_g+set}" = set; then :
5144 $as_echo_n "(cached) " >&6
5146 ac_save_c_werror_flag=$ac_c_werror_flag
5147 ac_c_werror_flag=yes
5150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5151 /* end confdefs.h. */
5161 if ac_fn_c_try_compile "$LINENO"; then :
5165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5166 /* end confdefs.h. */
5176 if ac_fn_c_try_compile "$LINENO"; then :
5179 ac_c_werror_flag=$ac_save_c_werror_flag
5181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5182 /* end confdefs.h. */
5192 if ac_fn_c_try_compile "$LINENO"; then :
5195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5200 ac_c_werror_flag=$ac_save_c_werror_flag
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5203 $as_echo "$ac_cv_prog_cc_g" >&6; }
5204 if test "$ac_test_CFLAGS" = set; then
5205 CFLAGS=$ac_save_CFLAGS
5206 elif test $ac_cv_prog_cc_g = yes; then
5207 if test "$GCC" = yes; then
5213 if test "$GCC" = yes; then
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5220 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5221 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5222 $as_echo_n "(cached) " >&6
5224 ac_cv_prog_cc_c89=no
5226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5227 /* end confdefs.h. */
5230 #include <sys/types.h>
5231 #include <sys/stat.h>
5232 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5233 struct buf { int x; };
5234 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5235 static char *e (p, i)
5241 static char *f (char * (*g) (char **, int), char **p, ...)
5246 s = g (p, va_arg (v,int));
5251 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5252 function prototypes and stuff, but not '\xHH' hex character constants.
5253 These don't provoke an error unfortunately, instead are silently treated
5254 as 'x'. The following induces an error, until -std is added to get
5255 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5256 array size at least. It's necessary to write '\x00'==0 to get something
5257 that's true only with -std. */
5258 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5260 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5261 inside strings and character constants. */
5263 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5265 int test (int i, double x);
5266 struct s1 {int (*f) (int a);};
5267 struct s2 {int (*f) (double a);};
5268 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5274 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5279 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5280 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5282 CC="$ac_save_CC $ac_arg"
5283 if ac_fn_c_try_compile "$LINENO"; then :
5284 ac_cv_prog_cc_c89=$ac_arg
5286 rm -f core conftest.err conftest.$ac_objext
5287 test "x$ac_cv_prog_cc_c89" != "xno" && break
5289 rm -f conftest.$ac_ext
5294 case "x$ac_cv_prog_cc_c89" in
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5297 $as_echo "none needed" >&6; } ;;
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5300 $as_echo "unsupported" >&6; } ;;
5302 CC="$CC $ac_cv_prog_cc_c89"
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5304 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5306 if test "x$ac_cv_prog_cc_c89" != xno; then :
5311 ac_cpp='$CPP $CPPFLAGS'
5312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5317 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5321 for ac_dir in ../.. "$srcdir"/../..; do
5322 for ac_t in install-sh install.sh shtool; do
5323 if test -f "$ac_dir/$ac_t"; then
5325 ac_install_sh="$ac_aux_dir/$ac_t -c"
5330 if test -z "$ac_aux_dir"; then
5331 as_fn_error "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5
5334 # These three variables are undocumented and unsupported,
5335 # and are intended to be withdrawn in a future Autoconf release.
5336 # They can cause serious problems if a builder's source tree is in a directory
5337 # whose full name contains unusual characters.
5338 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5339 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5340 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
5344 $as_echo_n "checking target system type... " >&6; }
5345 if test "${ac_cv_target+set}" = set; then :
5346 $as_echo_n "(cached) " >&6
5348 if test "x$target_alias" = x; then
5349 ac_cv_target=$ac_cv_host
5351 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
5352 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
5357 $as_echo "$ac_cv_target" >&6; }
5358 case $ac_cv_target in
5360 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
5362 target=$ac_cv_target
5363 ac_save_IFS=$IFS; IFS='-'
5369 # Remember, the first character of IFS is used to create $*,
5370 # except with old shells:
5373 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
5376 # The aliases save the names the user supplied, while $host etc.
5377 # will get canonicalized.
5378 test -n "$target_alias" &&
5379 test "$program_prefix$program_suffix$program_transform_name" = \
5381 program_prefix=${target_alias}-
5389 LIBC_FATAL_STDERR_=1
5390 export LIBC_FATAL_STDERR_
5392 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5393 # for constant arguments. Useless!
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5395 $as_echo_n "checking for working alloca.h... " >&6; }
5396 if test "${ac_cv_working_alloca_h+set}" = set; then :
5397 $as_echo_n "(cached) " >&6
5399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5400 /* end confdefs.h. */
5405 char *p = (char *) alloca (2 * sizeof (int));
5411 if ac_fn_c_try_link "$LINENO"; then :
5412 ac_cv_working_alloca_h=yes
5414 ac_cv_working_alloca_h=no
5416 rm -f core conftest.err conftest.$ac_objext \
5417 conftest$ac_exeext conftest.$ac_ext
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5420 $as_echo "$ac_cv_working_alloca_h" >&6; }
5421 if test $ac_cv_working_alloca_h = yes; then
5423 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5428 $as_echo_n "checking for alloca... " >&6; }
5429 if test "${ac_cv_func_alloca_works+set}" = set; then :
5430 $as_echo_n "(cached) " >&6
5432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5433 /* end confdefs.h. */
5435 # define alloca __builtin_alloca
5438 # include <malloc.h>
5439 # define alloca _alloca
5441 # ifdef HAVE_ALLOCA_H
5442 # include <alloca.h>
5447 # ifndef alloca /* predefined by HP cc +Olibcalls */
5458 char *p = (char *) alloca (1);
5464 if ac_fn_c_try_link "$LINENO"; then :
5465 ac_cv_func_alloca_works=yes
5467 ac_cv_func_alloca_works=no
5469 rm -f core conftest.err conftest.$ac_objext \
5470 conftest$ac_exeext conftest.$ac_ext
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5473 $as_echo "$ac_cv_func_alloca_works" >&6; }
5475 if test $ac_cv_func_alloca_works = yes; then
5477 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
5480 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5481 # that cause trouble. Some versions do not even contain alloca or
5482 # contain a buggy version. If you still want to use their alloca,
5483 # use ar to extract alloca.o from them instead of compiling alloca.c.
5489 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
5491 $as_echo "#define C_ALLOCA 1" >>confdefs.h
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
5495 $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
5496 if test "${ac_cv_os_cray+set}" = set; then :
5497 $as_echo_n "(cached) " >&6
5499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5500 /* end confdefs.h. */
5501 #if defined CRAY && ! defined CRAY2
5508 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5509 $EGREP "webecray" >/dev/null 2>&1; then :
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5518 $as_echo "$ac_cv_os_cray" >&6; }
5519 if test $ac_cv_os_cray = yes; then
5520 for ac_func in _getb67 GETB67 getb67; do
5521 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5522 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5523 eval as_val=\$$as_ac_var
5524 if test "x$as_val" = x""yes; then :
5526 cat >>confdefs.h <<_ACEOF
5527 #define CRAY_STACKSEG_END $ac_func
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5537 $as_echo_n "checking stack direction for C alloca... " >&6; }
5538 if test "${ac_cv_c_stack_direction+set}" = set; then :
5539 $as_echo_n "(cached) " >&6
5541 if test "$cross_compiling" = yes; then :
5542 ac_cv_c_stack_direction=0
5544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5545 /* end confdefs.h. */
5546 $ac_includes_default
5548 find_stack_direction (int *addr, int depth)
5553 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
5554 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
5559 main (int argc, char **argv)
5561 return find_stack_direction (0, argc + !argv + 20) < 0;
5564 if ac_fn_c_try_run "$LINENO"; then :
5565 ac_cv_c_stack_direction=1
5567 ac_cv_c_stack_direction=-1
5569 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5570 conftest.$ac_objext conftest.beam conftest.$ac_ext
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5575 $as_echo "$ac_cv_c_stack_direction" >&6; }
5576 cat >>confdefs.h <<_ACEOF
5577 #define STACK_DIRECTION $ac_cv_c_stack_direction
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
5586 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
5587 if test "${gl_cv_have_include_next+set}" = set; then :
5588 $as_echo_n "(cached) " >&6
5590 rm -rf conftestd1a conftestd1b conftestd2
5591 mkdir conftestd1a conftestd1b conftestd2
5592 cat <<EOF > conftestd1a/conftest.h
5593 #define DEFINED_IN_CONFTESTD1
5594 #include_next <conftest.h>
5595 #ifdef DEFINED_IN_CONFTESTD2
5598 #error "include_next doesn't work"
5601 cat <<EOF > conftestd1b/conftest.h
5602 #define DEFINED_IN_CONFTESTD1
5604 #include_next <conftest.h>
5605 #ifdef DEFINED_IN_CONFTESTD2
5608 #error "include_next doesn't work"
5611 cat <<EOF > conftestd2/conftest.h
5612 #ifndef DEFINED_IN_CONFTESTD1
5613 #error "include_next test doesn't work"
5615 #define DEFINED_IN_CONFTESTD2
5617 gl_save_CPPFLAGS="$CPPFLAGS"
5618 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
5619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5620 /* end confdefs.h. */
5621 #include <conftest.h>
5623 if ac_fn_c_try_compile "$LINENO"; then :
5624 gl_cv_have_include_next=yes
5626 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
5627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5628 /* end confdefs.h. */
5629 #include <conftest.h>
5631 if ac_fn_c_try_compile "$LINENO"; then :
5632 gl_cv_have_include_next=buggy
5634 gl_cv_have_include_next=no
5636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5640 CPPFLAGS="$gl_save_CPPFLAGS"
5641 rm -rf conftestd1a conftestd1b conftestd2
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
5645 $as_echo "$gl_cv_have_include_next" >&6; }
5646 PRAGMA_SYSTEM_HEADER=
5647 if test $gl_cv_have_include_next = yes; then
5648 INCLUDE_NEXT=include_next
5649 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
5650 if test -n "$GCC"; then
5651 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
5654 if test $gl_cv_have_include_next = buggy; then
5655 INCLUDE_NEXT=include
5656 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
5658 INCLUDE_NEXT=include
5659 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
5666 $as_echo_n "checking whether system header files limit the line length... " >&6; }
5667 if test "${gl_cv_pragma_columns+set}" = set; then :
5668 $as_echo_n "(cached) " >&6
5670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5671 /* end confdefs.h. */
5678 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5679 $EGREP "choke me" >/dev/null 2>&1; then :
5680 gl_cv_pragma_columns=yes
5682 gl_cv_pragma_columns=no
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
5689 $as_echo "$gl_cv_pragma_columns" >&6; }
5690 if test $gl_cv_pragma_columns = yes; then
5691 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
5700 $as_echo_n "checking for complete errno.h... " >&6; }
5701 if test "${gl_cv_header_errno_h_complete+set}" = set; then :
5702 $as_echo_n "(cached) " >&6
5705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5706 /* end confdefs.h. */
5709 #if !defined ETXTBSY
5718 #if !defined ENOLINK
5724 #if !defined EMULTIHOP
5727 #if !defined EBADMSG
5730 #if !defined EOVERFLOW
5733 #if !defined ENOTSUP
5736 #if !defined ENETRESET
5739 #if !defined ECONNABORTED
5748 #if !defined ECANCELED
5751 #if !defined EOWNERDEAD
5754 #if !defined ENOTRECOVERABLE
5762 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5763 $EGREP "booboo" >/dev/null 2>&1; then :
5764 gl_cv_header_errno_h_complete=no
5766 gl_cv_header_errno_h_complete=yes
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
5773 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
5774 if test $gl_cv_header_errno_h_complete = yes; then
5785 if test $gl_cv_have_include_next = yes; then
5786 gl_cv_next_errno_h='<'errno.h'>'
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
5789 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
5790 if test "${gl_cv_next_errno_h+set}" = set; then :
5791 $as_echo_n "(cached) " >&6
5794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5795 /* end confdefs.h. */
5800 aix*) gl_absname_cpp="$ac_cpp -C" ;;
5801 *) gl_absname_cpp="$ac_cpp" ;;
5806 gl_dirsep_regex='[/\\]'
5809 gl_dirsep_regex='\/'
5812 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
5814 gl_header_literal_regex=`echo 'errno.h' \
5815 | sed -e "$gl_make_literal_regex_sed"`
5816 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
5817 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
5822 gl_cv_next_errno_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
5823 sed -n "$gl_absolute_header_sed"`'"'
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
5828 $as_echo "$gl_cv_next_errno_h" >&6; }
5830 NEXT_ERRNO_H=$gl_cv_next_errno_h
5832 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
5833 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
5834 gl_next_as_first_directive='<'errno.h'>'
5836 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
5837 gl_next_as_first_directive=$gl_cv_next_errno_h
5839 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
5847 if test -n "$ERRNO_H"; then
5848 GL_GENERATE_ERRNO_H_TRUE=
5849 GL_GENERATE_ERRNO_H_FALSE='#'
5851 GL_GENERATE_ERRNO_H_TRUE='#'
5852 GL_GENERATE_ERRNO_H_FALSE=
5856 if test -n "$ERRNO_H"; then
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
5858 $as_echo_n "checking for EMULTIHOP value... " >&6; }
5859 if test "${gl_cv_header_errno_h_EMULTIHOP+set}" = set; then :
5860 $as_echo_n "(cached) " >&6
5863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5864 /* end confdefs.h. */
5872 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5873 $EGREP "yes" >/dev/null 2>&1; then :
5874 gl_cv_header_errno_h_EMULTIHOP=yes
5876 gl_cv_header_errno_h_EMULTIHOP=no
5880 if test $gl_cv_header_errno_h_EMULTIHOP = no; then
5881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5882 /* end confdefs.h. */
5884 #define _XOPEN_SOURCE_EXTENDED 1
5891 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5892 $EGREP "yes" >/dev/null 2>&1; then :
5893 gl_cv_header_errno_h_EMULTIHOP=hidden
5897 if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
5898 if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
5899 #define _XOPEN_SOURCE_EXTENDED 1
5901 /* The following two lines are a workaround against an autoconf-2.52 bug. */
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
5913 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
5914 case $gl_cv_header_errno_h_EMULTIHOP in
5916 EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
5919 EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
5927 if test -n "$ERRNO_H"; then
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
5929 $as_echo_n "checking for ENOLINK value... " >&6; }
5930 if test "${gl_cv_header_errno_h_ENOLINK+set}" = set; then :
5931 $as_echo_n "(cached) " >&6
5934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5935 /* end confdefs.h. */
5943 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5944 $EGREP "yes" >/dev/null 2>&1; then :
5945 gl_cv_header_errno_h_ENOLINK=yes
5947 gl_cv_header_errno_h_ENOLINK=no
5951 if test $gl_cv_header_errno_h_ENOLINK = no; then
5952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5953 /* end confdefs.h. */
5955 #define _XOPEN_SOURCE_EXTENDED 1
5962 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5963 $EGREP "yes" >/dev/null 2>&1; then :
5964 gl_cv_header_errno_h_ENOLINK=hidden
5968 if test $gl_cv_header_errno_h_ENOLINK = hidden; then
5969 if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
5970 #define _XOPEN_SOURCE_EXTENDED 1
5972 /* The following two lines are a workaround against an autoconf-2.52 bug. */
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
5984 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
5985 case $gl_cv_header_errno_h_ENOLINK in
5987 ENOLINK_HIDDEN=0; ENOLINK_VALUE=
5990 ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
5998 if test -n "$ERRNO_H"; then
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
6000 $as_echo_n "checking for EOVERFLOW value... " >&6; }
6001 if test "${gl_cv_header_errno_h_EOVERFLOW+set}" = set; then :
6002 $as_echo_n "(cached) " >&6
6005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6006 /* end confdefs.h. */
6014 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6015 $EGREP "yes" >/dev/null 2>&1; then :
6016 gl_cv_header_errno_h_EOVERFLOW=yes
6018 gl_cv_header_errno_h_EOVERFLOW=no
6022 if test $gl_cv_header_errno_h_EOVERFLOW = no; then
6023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6024 /* end confdefs.h. */
6026 #define _XOPEN_SOURCE_EXTENDED 1
6033 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6034 $EGREP "yes" >/dev/null 2>&1; then :
6035 gl_cv_header_errno_h_EOVERFLOW=hidden
6039 if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
6040 if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
6041 #define _XOPEN_SOURCE_EXTENDED 1
6043 /* The following two lines are a workaround against an autoconf-2.52 bug. */
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
6055 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
6056 case $gl_cv_header_errno_h_EOVERFLOW in
6058 EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
6061 EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
6075 $as_echo_n "checking for mbstate_t... " >&6; }
6076 if test "${ac_cv_type_mbstate_t+set}" = set; then :
6077 $as_echo_n "(cached) " >&6
6079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6080 /* end confdefs.h. */
6081 $ac_includes_default
6082 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
6084 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6085 included before <wchar.h>. */
6093 mbstate_t x; return sizeof x;
6098 if ac_fn_c_try_compile "$LINENO"; then :
6099 ac_cv_type_mbstate_t=yes
6101 ac_cv_type_mbstate_t=no
6103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
6106 $as_echo "$ac_cv_type_mbstate_t" >&6; }
6107 if test $ac_cv_type_mbstate_t = yes; then
6109 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
6113 $as_echo "#define mbstate_t int" >>confdefs.h
6120 for ac_func in $ac_func_list
6122 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6123 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6124 eval as_val=\$$as_ac_var
6125 if test "x$as_val" = x""yes; then :
6126 cat >>confdefs.h <<_ACEOF
6127 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6152 for ac_header in $ac_header_list
6154 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6155 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6157 eval as_val=\$$as_ac_Header
6158 if test "x$as_val" = x""yes; then :
6159 cat >>confdefs.h <<_ACEOF
6160 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6245 GNULIB_REMAINDERF=0;
6246 GNULIB_REMAINDERL=0;
6332 HAVE_DECL_COPYSIGNF=1;
6349 HAVE_DECL_REMAINDER=1;
6350 HAVE_DECL_REMAINDERL=1;
6412 REPLACE_REMAINDER=0;
6413 REPLACE_REMAINDERF=0;
6414 REPLACE_REMAINDERL=0;
6419 REPLACE_SIGNBIT_USING_GCC=0;
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used without linking with libm" >&5
6427 $as_echo_n "checking whether frexp() can be used without linking with libm... " >&6; }
6428 if test "${gl_cv_func_frexp_no_libm+set}" = set; then :
6429 $as_echo_n "(cached) " >&6
6432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6433 /* end confdefs.h. */
6439 int e; return frexp (x, &e) > 0;
6444 if ac_fn_c_try_link "$LINENO"; then :
6445 gl_cv_func_frexp_no_libm=yes
6447 gl_cv_func_frexp_no_libm=no
6449 rm -f core conftest.err conftest.$ac_objext \
6450 conftest$ac_exeext conftest.$ac_ext
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_no_libm" >&5
6454 $as_echo "$gl_cv_func_frexp_no_libm" >&6; }
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long double and double are the same" >&5
6460 $as_echo_n "checking whether long double and double are the same... " >&6; }
6461 if test "${gl_cv_long_double_equals_double+set}" = set; then :
6462 $as_echo_n "(cached) " >&6
6464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6465 /* end confdefs.h. */
6470 typedef int check[sizeof (long double) == sizeof (double)
6471 && LDBL_MANT_DIG == DBL_MANT_DIG
6472 && LDBL_MAX_EXP == DBL_MAX_EXP
6473 && LDBL_MIN_EXP == DBL_MIN_EXP
6480 if ac_fn_c_try_compile "$LINENO"; then :
6481 gl_cv_long_double_equals_double=yes
6483 gl_cv_long_double_equals_double=no
6485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_long_double_equals_double" >&5
6489 $as_echo "$gl_cv_long_double_equals_double" >&6; }
6490 if test $gl_cv_long_double_equals_double = yes; then
6492 $as_echo "#define HAVE_SAME_LONG_DOUBLE_AS_DOUBLE 1" >>confdefs.h
6494 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=1
6496 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=0
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6502 $as_echo_n "checking for unsigned long long int... " >&6; }
6503 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6504 $as_echo_n "(cached) " >&6
6506 ac_cv_type_unsigned_long_long_int=yes
6507 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6509 /* end confdefs.h. */
6511 /* For now, do not test the preprocessor; as of 2007 there are too many
6512 implementations with broken preprocessors. Perhaps this can
6513 be revisited in 2012. In the meantime, code should not expect
6514 #if to work with literals wider than 32 bits. */
6515 /* Test literals. */
6516 long long int ll = 9223372036854775807ll;
6517 long long int nll = -9223372036854775807LL;
6518 unsigned long long int ull = 18446744073709551615ULL;
6519 /* Test constant expressions. */
6520 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6522 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6528 /* Test availability of runtime routines for shift and division. */
6529 long long int llmax = 9223372036854775807ll;
6530 unsigned long long int ullmax = 18446744073709551615ull;
6531 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6532 | (llmax / ll) | (llmax % ll)
6533 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6534 | (ullmax / ull) | (ullmax % ull));
6540 if ac_fn_c_try_link "$LINENO"; then :
6543 ac_cv_type_unsigned_long_long_int=no
6545 rm -f core conftest.err conftest.$ac_objext \
6546 conftest$ac_exeext conftest.$ac_ext
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6550 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6551 if test $ac_cv_type_unsigned_long_long_int = yes; then
6553 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6560 $as_echo_n "checking for long long int... " >&6; }
6561 if test "${ac_cv_type_long_long_int+set}" = set; then :
6562 $as_echo_n "(cached) " >&6
6564 ac_cv_type_long_long_int=yes
6565 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6566 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
6567 if test $ac_cv_type_long_long_int = yes; then
6568 if test "$cross_compiling" = yes; then :
6571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6572 /* end confdefs.h. */
6576 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6577 # define LLONG_MAX (HALF - 1 + HALF)
6582 long long int n = 1;
6586 long long int m = n << i;
6589 if (LLONG_MAX / 2 < m)
6597 if ac_fn_c_try_run "$LINENO"; then :
6600 ac_cv_type_long_long_int=no
6602 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6603 conftest.$ac_objext conftest.beam conftest.$ac_ext
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6610 $as_echo "$ac_cv_type_long_long_int" >&6; }
6611 if test $ac_cv_type_long_long_int = yes; then
6613 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6622 gl_cv_c_multiarch=no
6623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6624 /* end confdefs.h. */
6625 #ifndef __APPLE_CC__
6626 not a universal capable compiler
6631 if ac_fn_c_try_compile "$LINENO"; then :
6635 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
6636 if test -n "$prev"; then
6638 i?86 | x86_64 | ppc | ppc64)
6639 if test -z "$arch" || test "$arch" = "$word"; then
6642 gl_cv_c_multiarch=yes
6648 if test "x$word" = "x-arch"; then
6655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6656 if test $gl_cv_c_multiarch = yes; then
6657 APPLE_UNIVERSAL_BUILD=1
6659 APPLE_UNIVERSAL_BUILD=0
6666 if test $ac_cv_type_long_long_int = yes; then
6667 HAVE_LONG_LONG_INT=1
6669 HAVE_LONG_LONG_INT=0
6673 if test $ac_cv_type_unsigned_long_long_int = yes; then
6674 HAVE_UNSIGNED_LONG_LONG_INT=1
6676 HAVE_UNSIGNED_LONG_LONG_INT=0
6681 if test $ac_cv_header_wchar_h = yes; then
6688 if test $ac_cv_header_inttypes_h = yes; then
6695 if test $ac_cv_header_sys_types_h = yes; then
6711 if test $gl_cv_have_include_next = yes; then
6712 gl_cv_next_stdint_h='<'stdint.h'>'
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
6715 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
6716 if test "${gl_cv_next_stdint_h+set}" = set; then :
6717 $as_echo_n "(cached) " >&6
6720 if test $ac_cv_header_stdint_h = yes; then
6723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6724 /* end confdefs.h. */
6729 aix*) gl_absname_cpp="$ac_cpp -C" ;;
6730 *) gl_absname_cpp="$ac_cpp" ;;
6735 gl_dirsep_regex='[/\\]'
6738 gl_dirsep_regex='\/'
6741 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
6743 gl_header_literal_regex=`echo 'stdint.h' \
6744 | sed -e "$gl_make_literal_regex_sed"`
6745 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
6746 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
6751 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6752 sed -n "$gl_absolute_header_sed"`'"'
6754 gl_cv_next_stdint_h='<'stdint.h'>'
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
6760 $as_echo "$gl_cv_next_stdint_h" >&6; }
6762 NEXT_STDINT_H=$gl_cv_next_stdint_h
6764 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
6765 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6766 gl_next_as_first_directive='<'stdint.h'>'
6768 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6769 gl_next_as_first_directive=$gl_cv_next_stdint_h
6771 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
6776 if test $ac_cv_header_stdint_h = yes; then
6783 if test $ac_cv_header_stdint_h = yes; then
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
6785 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
6786 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
6787 $as_echo_n "(cached) " >&6
6789 gl_cv_header_working_stdint_h=no
6790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6791 /* end confdefs.h. */
6794 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
6796 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
6797 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
6798 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
6802 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6803 included before <wchar.h>. */
6814 int8_t a1 = INT8_MAX;
6815 int8_t a1min = INT8_MIN;
6818 int16_t a2 = INT16_MAX;
6819 int16_t a2min = INT16_MIN;
6822 int32_t a3 = INT32_MAX;
6823 int32_t a3min = INT32_MIN;
6826 int64_t a4 = INT64_MAX;
6827 int64_t a4min = INT64_MIN;
6830 uint8_t b1 = UINT8_MAX;
6832 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
6835 uint16_t b2 = UINT16_MAX;
6838 uint32_t b3 = UINT32_MAX;
6841 uint64_t b4 = UINT64_MAX;
6843 int_least8_t c1 = INT8_C (0x7f);
6844 int_least8_t c1max = INT_LEAST8_MAX;
6845 int_least8_t c1min = INT_LEAST8_MIN;
6846 int_least16_t c2 = INT16_C (0x7fff);
6847 int_least16_t c2max = INT_LEAST16_MAX;
6848 int_least16_t c2min = INT_LEAST16_MIN;
6849 int_least32_t c3 = INT32_C (0x7fffffff);
6850 int_least32_t c3max = INT_LEAST32_MAX;
6851 int_least32_t c3min = INT_LEAST32_MIN;
6852 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
6853 int_least64_t c4max = INT_LEAST64_MAX;
6854 int_least64_t c4min = INT_LEAST64_MIN;
6855 uint_least8_t d1 = UINT8_C (0xff);
6856 uint_least8_t d1max = UINT_LEAST8_MAX;
6857 uint_least16_t d2 = UINT16_C (0xffff);
6858 uint_least16_t d2max = UINT_LEAST16_MAX;
6859 uint_least32_t d3 = UINT32_C (0xffffffff);
6860 uint_least32_t d3max = UINT_LEAST32_MAX;
6861 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
6862 uint_least64_t d4max = UINT_LEAST64_MAX;
6863 int_fast8_t e1 = INT_FAST8_MAX;
6864 int_fast8_t e1min = INT_FAST8_MIN;
6865 int_fast16_t e2 = INT_FAST16_MAX;
6866 int_fast16_t e2min = INT_FAST16_MIN;
6867 int_fast32_t e3 = INT_FAST32_MAX;
6868 int_fast32_t e3min = INT_FAST32_MIN;
6869 int_fast64_t e4 = INT_FAST64_MAX;
6870 int_fast64_t e4min = INT_FAST64_MIN;
6871 uint_fast8_t f1 = UINT_FAST8_MAX;
6872 uint_fast16_t f2 = UINT_FAST16_MAX;
6873 uint_fast32_t f3 = UINT_FAST32_MAX;
6874 uint_fast64_t f4 = UINT_FAST64_MAX;
6876 intptr_t g = INTPTR_MAX;
6877 intptr_t gmin = INTPTR_MIN;
6880 uintptr_t h = UINTPTR_MAX;
6882 intmax_t i = INTMAX_MAX;
6883 uintmax_t j = UINTMAX_MAX;
6885 #include <limits.h> /* for CHAR_BIT */
6886 #define TYPE_MINIMUM(t) \
6887 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
6888 #define TYPE_MAXIMUM(t) \
6889 ((t) ((t) 0 < (t) -1 \
6891 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
6894 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
6895 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
6897 /* Detect bug in FreeBSD 6.0 / ia64. */
6898 int check_SIG_ATOMIC:
6899 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
6900 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
6902 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
6904 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
6905 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
6907 /* Detect bug in mingw. */
6909 WINT_MIN == TYPE_MINIMUM (wint_t)
6910 && WINT_MAX == TYPE_MAXIMUM (wint_t)
6913 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
6915 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
6917 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
6919 /* Detect bugs in OpenBSD 3.9 stdint.h. */
6921 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
6924 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
6927 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
6930 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
6932 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
6933 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
6934 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
6935 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
6936 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
6937 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
6938 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
6939 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
6940 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
6941 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
6942 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
6953 if ac_fn_c_try_compile "$LINENO"; then :
6954 if test "$cross_compiling" = yes; then :
6955 gl_cv_header_working_stdint_h=yes
6958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6959 /* end confdefs.h. */
6962 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
6966 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6967 included before <wchar.h>. */
6979 #define MVAL(macro) MVAL1(macro)
6980 #define MVAL1(expression) #expression
6981 static const char *macro_values[] =
7015 for (mv = macro_values; *mv != NULL; mv++)
7017 const char *value = *mv;
7018 /* Test whether it looks like a cast expression. */
7019 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
7020 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
7021 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
7022 || strncmp (value, "((int)"/*)*/, 6) == 0
7023 || strncmp (value, "((signed short)"/*)*/, 15) == 0
7024 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
7025 return mv - macro_values + 1;
7033 if ac_fn_c_try_run "$LINENO"; then :
7034 gl_cv_header_working_stdint_h=yes
7036 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7037 conftest.$ac_objext conftest.beam conftest.$ac_ext
7042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
7046 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
7048 if test "$gl_cv_header_working_stdint_h" = yes; then
7051 for ac_header in sys/inttypes.h sys/bitypes.h
7053 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7054 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7055 eval as_val=\$$as_ac_Header
7056 if test "x$as_val" = x""yes; then :
7057 cat >>confdefs.h <<_ACEOF
7058 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7065 if test $ac_cv_header_sys_inttypes_h = yes; then
7066 HAVE_SYS_INTTYPES_H=1
7068 HAVE_SYS_INTTYPES_H=0
7071 if test $ac_cv_header_sys_bitypes_h = yes; then
7072 HAVE_SYS_BITYPES_H=1
7074 HAVE_SYS_BITYPES_H=0
7080 if test $APPLE_UNIVERSAL_BUILD = 0; then
7083 for gltype in ptrdiff_t size_t ; do
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
7085 $as_echo_n "checking for bit size of $gltype... " >&6; }
7086 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
7087 $as_echo_n "(cached) " >&6
7089 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
7090 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7091 included before <wchar.h>. */
7100 #include <limits.h>"; then :
7106 eval gl_cv_bitsizeof_${gltype}=\$result
7109 eval ac_res=\$gl_cv_bitsizeof_${gltype}
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7111 $as_echo "$ac_res" >&6; }
7112 eval result=\$gl_cv_bitsizeof_${gltype}
7113 if test $result = unknown; then
7116 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
7117 cat >>confdefs.h <<_ACEOF
7118 #define BITSIZEOF_${GLTYPE} $result
7121 eval BITSIZEOF_${GLTYPE}=\$result
7128 for gltype in sig_atomic_t wchar_t wint_t ; do
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
7130 $as_echo_n "checking for bit size of $gltype... " >&6; }
7131 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
7132 $as_echo_n "(cached) " >&6
7134 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
7135 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7136 included before <wchar.h>. */
7145 #include <limits.h>"; then :
7151 eval gl_cv_bitsizeof_${gltype}=\$result
7154 eval ac_res=\$gl_cv_bitsizeof_${gltype}
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7156 $as_echo "$ac_res" >&6; }
7157 eval result=\$gl_cv_bitsizeof_${gltype}
7158 if test $result = unknown; then
7161 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
7162 cat >>confdefs.h <<_ACEOF
7163 #define BITSIZEOF_${GLTYPE} $result
7166 eval BITSIZEOF_${GLTYPE}=\$result
7172 for gltype in sig_atomic_t wchar_t wint_t ; do
7173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
7174 $as_echo_n "checking whether $gltype is signed... " >&6; }
7175 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
7176 $as_echo_n "(cached) " >&6
7178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7179 /* end confdefs.h. */
7181 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7182 included before <wchar.h>. */
7191 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
7200 if ac_fn_c_try_compile "$LINENO"; then :
7205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7206 eval gl_cv_type_${gltype}_signed=\$result
7209 eval ac_res=\$gl_cv_type_${gltype}_signed
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7211 $as_echo "$ac_res" >&6; }
7212 eval result=\$gl_cv_type_${gltype}_signed
7213 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
7214 if test "$result" = yes; then
7215 cat >>confdefs.h <<_ACEOF
7216 #define HAVE_SIGNED_${GLTYPE} 1
7219 eval HAVE_SIGNED_${GLTYPE}=1
7221 eval HAVE_SIGNED_${GLTYPE}=0
7226 gl_cv_type_ptrdiff_t_signed=yes
7227 gl_cv_type_size_t_signed=no
7228 if test $APPLE_UNIVERSAL_BUILD = 0; then
7231 for gltype in ptrdiff_t size_t ; do
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
7233 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
7234 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
7235 $as_echo_n "(cached) " >&6
7237 eval gl_cv_type_${gltype}_suffix=no
7238 eval result=\$gl_cv_type_${gltype}_signed
7239 if test "$result" = yes; then
7244 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
7247 l) gltype1='long int';;
7248 ll) gltype1='long long int';;
7249 i64) gltype1='__int64';;
7250 u) gltype1='unsigned int';;
7251 ul) gltype1='unsigned long int';;
7252 ull) gltype1='unsigned long long int';;
7253 ui64)gltype1='unsigned __int64';;
7255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7256 /* end confdefs.h. */
7258 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7259 included before <wchar.h>. */
7269 extern $gltype1 foo;
7278 if ac_fn_c_try_compile "$LINENO"; then :
7279 eval gl_cv_type_${gltype}_suffix=\$glsuf
7281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7282 eval result=\$gl_cv_type_${gltype}_suffix
7283 test "$result" != no && break
7286 eval ac_res=\$gl_cv_type_${gltype}_suffix
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7288 $as_echo "$ac_res" >&6; }
7289 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
7290 eval result=\$gl_cv_type_${gltype}_suffix
7291 test "$result" = no && result=
7292 eval ${GLTYPE}_SUFFIX=\$result
7293 cat >>confdefs.h <<_ACEOF
7294 #define ${GLTYPE}_SUFFIX $result
7303 for gltype in sig_atomic_t wchar_t wint_t ; do
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
7305 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
7306 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
7307 $as_echo_n "(cached) " >&6
7309 eval gl_cv_type_${gltype}_suffix=no
7310 eval result=\$gl_cv_type_${gltype}_signed
7311 if test "$result" = yes; then
7316 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
7319 l) gltype1='long int';;
7320 ll) gltype1='long long int';;
7321 i64) gltype1='__int64';;
7322 u) gltype1='unsigned int';;
7323 ul) gltype1='unsigned long int';;
7324 ull) gltype1='unsigned long long int';;
7325 ui64)gltype1='unsigned __int64';;
7327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7328 /* end confdefs.h. */
7330 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7331 included before <wchar.h>. */
7341 extern $gltype1 foo;
7350 if ac_fn_c_try_compile "$LINENO"; then :
7351 eval gl_cv_type_${gltype}_suffix=\$glsuf
7353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7354 eval result=\$gl_cv_type_${gltype}_suffix
7355 test "$result" != no && break
7358 eval ac_res=\$gl_cv_type_${gltype}_suffix
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7360 $as_echo "$ac_res" >&6; }
7361 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
7362 eval result=\$gl_cv_type_${gltype}_suffix
7363 test "$result" = no && result=
7364 eval ${GLTYPE}_SUFFIX=\$result
7365 cat >>confdefs.h <<_ACEOF
7366 #define ${GLTYPE}_SUFFIX $result
7373 if test $BITSIZEOF_WINT_T -lt 32; then
7380 if test -n "$STDINT_H"; then
7381 GL_GENERATE_STDINT_H_TRUE=
7382 GL_GENERATE_STDINT_H_FALSE='#'
7384 GL_GENERATE_STDINT_H_TRUE='#'
7385 GL_GENERATE_STDINT_H_FALSE=
7396 HAVE_DECL_IMAXABS=1;
7397 HAVE_DECL_IMAXDIV=1;
7398 HAVE_DECL_STRTOIMAX=1;
7399 HAVE_DECL_STRTOUMAX=1;
7400 REPLACE_STRTOIMAX=0;
7401 INT32_MAX_LT_INTMAX_MAX=1;
7402 INT64_MAX_EQ_LONG_MAX='defined _LP64';
7403 PRI_MACROS_BROKEN=0;
7404 PRIPTR_PREFIX=__PRIPTR_PREFIX;
7405 UINT32_MAX_LT_UINTMAX_MAX=1;
7406 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
7422 if test $gl_cv_have_include_next = yes; then
7423 gl_cv_next_inttypes_h='<'inttypes.h'>'
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
7426 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
7427 if test "${gl_cv_next_inttypes_h+set}" = set; then :
7428 $as_echo_n "(cached) " >&6
7431 if test $ac_cv_header_inttypes_h = yes; then
7434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7435 /* end confdefs.h. */
7436 #include <inttypes.h>
7440 aix*) gl_absname_cpp="$ac_cpp -C" ;;
7441 *) gl_absname_cpp="$ac_cpp" ;;
7446 gl_dirsep_regex='[/\\]'
7449 gl_dirsep_regex='\/'
7452 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
7454 gl_header_literal_regex=`echo 'inttypes.h' \
7455 | sed -e "$gl_make_literal_regex_sed"`
7456 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
7457 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
7462 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7463 sed -n "$gl_absolute_header_sed"`'"'
7465 gl_cv_next_inttypes_h='<'inttypes.h'>'
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
7471 $as_echo "$gl_cv_next_inttypes_h" >&6; }
7473 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
7475 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
7476 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7477 gl_next_as_first_directive='<'inttypes.h'>'
7479 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7480 gl_next_as_first_directive=$gl_cv_next_inttypes_h
7482 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
7491 for gl_func in imaxabs imaxdiv strtoimax strtoumax; do
7492 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
7494 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
7495 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
7496 $as_echo_n "(cached) " >&6
7498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7499 /* end confdefs.h. */
7500 #include <inttypes.h>
7511 if ac_fn_c_try_compile "$LINENO"; then :
7512 eval "$as_gl_Symbol=yes"
7514 eval "$as_gl_Symbol=no"
7516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7518 eval ac_res=\$$as_gl_Symbol
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7520 $as_echo "$ac_res" >&6; }
7521 eval as_val=\$$as_gl_Symbol
7522 if test "x$as_val" = x""yes; then :
7523 cat >>confdefs.h <<_ACEOF
7524 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
7527 eval ac_cv_have_decl_$gl_func=yes
7533 for ac_header in inttypes.h
7535 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
7536 if test "x$ac_cv_header_inttypes_h" = x""yes; then :
7537 cat >>confdefs.h <<_ACEOF
7538 #define HAVE_INTTYPES_H 1
7545 if test $ac_cv_header_inttypes_h = yes; then
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
7547 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7548 if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
7549 $as_echo_n "(cached) " >&6
7552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7553 /* end confdefs.h. */
7555 #include <inttypes.h>
7568 if ac_fn_c_try_compile "$LINENO"; then :
7569 gt_cv_inttypes_pri_broken=no
7571 gt_cv_inttypes_pri_broken=yes
7573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
7577 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7579 if test "$gt_cv_inttypes_pri_broken" = yes; then
7581 cat >>confdefs.h <<_ACEOF
7582 #define PRI_MACROS_BROKEN 1
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
7593 $as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
7594 if test "${gl_cv_cc_double_expbit0+set}" = set; then :
7595 $as_echo_n "(cached) " >&6
7598 if test "$cross_compiling" = yes; then :
7600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7601 /* end confdefs.h. */
7603 #if defined arm || defined __arm || defined __arm__
7608 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7609 $EGREP "mixed_endianness" >/dev/null 2>&1; then :
7610 gl_cv_cc_double_expbit0="unknown"
7614 if test "${ac_cv_c_bigendian+set}" = set; then :
7615 $as_echo_n "(cached) " >&6
7617 ac_cv_c_bigendian=unknown
7618 # See if we're dealing with a universal compiler.
7619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7620 /* end confdefs.h. */
7621 #ifndef __APPLE_CC__
7622 not a universal capable compiler
7627 if ac_fn_c_try_compile "$LINENO"; then :
7629 # Check for potential -arch flags. It is not universal unless
7630 # there are at least two -arch flags with different values.
7633 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7634 if test -n "$ac_prev"; then
7636 i?86 | x86_64 | ppc | ppc64)
7637 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
7640 ac_cv_c_bigendian=universal
7646 elif test "x$ac_word" = "x-arch"; then
7651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7652 if test $ac_cv_c_bigendian = unknown; then
7653 # See if sys/param.h defines the BYTE_ORDER macro.
7654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7655 /* end confdefs.h. */
7656 #include <sys/types.h>
7657 #include <sys/param.h>
7662 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
7663 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
7672 if ac_fn_c_try_compile "$LINENO"; then :
7673 # It does; now see whether it defined to BIG_ENDIAN or not.
7674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7675 /* end confdefs.h. */
7676 #include <sys/types.h>
7677 #include <sys/param.h>
7682 #if BYTE_ORDER != BIG_ENDIAN
7690 if ac_fn_c_try_compile "$LINENO"; then :
7691 ac_cv_c_bigendian=yes
7693 ac_cv_c_bigendian=no
7695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7699 if test $ac_cv_c_bigendian = unknown; then
7700 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
7701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7702 /* end confdefs.h. */
7708 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
7716 if ac_fn_c_try_compile "$LINENO"; then :
7717 # It does; now see whether it defined to _BIG_ENDIAN or not.
7718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7719 /* end confdefs.h. */
7733 if ac_fn_c_try_compile "$LINENO"; then :
7734 ac_cv_c_bigendian=yes
7736 ac_cv_c_bigendian=no
7738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7742 if test $ac_cv_c_bigendian = unknown; then
7743 # Compile a test program.
7744 if test "$cross_compiling" = yes; then :
7745 # Try to guess by grepping values from an object file.
7746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7747 /* end confdefs.h. */
7748 short int ascii_mm[] =
7749 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7750 short int ascii_ii[] =
7751 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7752 int use_ascii (int i) {
7753 return ascii_mm[i] + ascii_ii[i];
7755 short int ebcdic_ii[] =
7756 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7757 short int ebcdic_mm[] =
7758 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7759 int use_ebcdic (int i) {
7760 return ebcdic_mm[i] + ebcdic_ii[i];
7767 return use_ascii (foo) == use_ebcdic (foo);
7772 if ac_fn_c_try_compile "$LINENO"; then :
7773 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
7774 ac_cv_c_bigendian=yes
7776 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7777 if test "$ac_cv_c_bigendian" = unknown; then
7778 ac_cv_c_bigendian=no
7780 # finding both strings is unlikely to happen, but who knows?
7781 ac_cv_c_bigendian=unknown
7785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7788 /* end confdefs.h. */
7789 $ac_includes_default
7794 /* Are we little or big endian? From Harbison&Steele. */
7798 char c[sizeof (long int)];
7801 return u.c[sizeof (long int) - 1] == 1;
7807 if ac_fn_c_try_run "$LINENO"; then :
7808 ac_cv_c_bigendian=no
7810 ac_cv_c_bigendian=yes
7812 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7813 conftest.$ac_objext conftest.beam conftest.$ac_ext
7819 case $ac_cv_c_bigendian in #(
7821 gl_cv_cc_double_expbit0="word 0 bit 20";; #(
7823 gl_cv_cc_double_expbit0="word 1 bit 20" ;; #(
7826 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
7830 gl_cv_cc_double_expbit0="unknown" ;;
7839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7840 /* end confdefs.h. */
7847 ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
7848 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
7849 static unsigned int ored_words[NWORDS];
7850 static unsigned int anded_words[NWORDS];
7851 static void add_to_ored_words (double x)
7855 /* Clear it first, in case sizeof (double) < sizeof (memory_double). */
7856 memset (&m, 0, sizeof (memory_double));
7858 for (i = 0; i < NWORDS; i++)
7860 ored_words[i] |= m.word[i];
7861 anded_words[i] &= m.word[i];
7867 FILE *fp = fopen ("conftest.out", "w");
7870 for (j = 0; j < NWORDS; j++)
7871 anded_words[j] = ~ (unsigned int) 0;
7872 add_to_ored_words (0.25);
7873 add_to_ored_words (0.5);
7874 add_to_ored_words (1.0);
7875 add_to_ored_words (2.0);
7876 add_to_ored_words (4.0);
7877 /* Remove bits that are common (e.g. if representation of the first mantissa
7878 bit is explicit). */
7879 for (j = 0; j < NWORDS; j++)
7880 ored_words[j] &= ~anded_words[j];
7881 /* Now find the nonzero word. */
7882 for (j = 0; j < NWORDS; j++)
7883 if (ored_words[j] != 0)
7888 for (i = j + 1; i < NWORDS; i++)
7889 if (ored_words[i] != 0)
7891 fprintf (fp, "unknown");
7892 return (fclose (fp) != 0);
7895 if ((ored_words[j] >> i) & 1)
7897 fprintf (fp, "word %d bit %d", (int) j, (int) i);
7898 return (fclose (fp) != 0);
7901 fprintf (fp, "unknown");
7902 return (fclose (fp) != 0);
7906 if ac_fn_c_try_run "$LINENO"; then :
7907 gl_cv_cc_double_expbit0=`cat conftest.out`
7909 gl_cv_cc_double_expbit0="unknown"
7911 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7912 conftest.$ac_objext conftest.beam conftest.$ac_ext
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
7919 $as_echo "$gl_cv_cc_double_expbit0" >&6; }
7920 case "$gl_cv_cc_double_expbit0" in
7922 word=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
7923 bit=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
7925 cat >>confdefs.h <<_ACEOF
7926 #define DBL_EXPBIT0_WORD $word
7930 cat >>confdefs.h <<_ACEOF
7931 #define DBL_EXPBIT0_BIT $bit
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
7939 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
7940 if test "${ac_cv_c_bigendian+set}" = set; then :
7941 $as_echo_n "(cached) " >&6
7943 ac_cv_c_bigendian=unknown
7944 # See if we're dealing with a universal compiler.
7945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7946 /* end confdefs.h. */
7947 #ifndef __APPLE_CC__
7948 not a universal capable compiler
7953 if ac_fn_c_try_compile "$LINENO"; then :
7955 # Check for potential -arch flags. It is not universal unless
7956 # there are at least two -arch flags with different values.
7959 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7960 if test -n "$ac_prev"; then
7962 i?86 | x86_64 | ppc | ppc64)
7963 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
7966 ac_cv_c_bigendian=universal
7972 elif test "x$ac_word" = "x-arch"; then
7977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7978 if test $ac_cv_c_bigendian = unknown; then
7979 # See if sys/param.h defines the BYTE_ORDER macro.
7980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7981 /* end confdefs.h. */
7982 #include <sys/types.h>
7983 #include <sys/param.h>
7988 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
7989 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
7998 if ac_fn_c_try_compile "$LINENO"; then :
7999 # It does; now see whether it defined to BIG_ENDIAN or not.
8000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8001 /* end confdefs.h. */
8002 #include <sys/types.h>
8003 #include <sys/param.h>
8008 #if BYTE_ORDER != BIG_ENDIAN
8016 if ac_fn_c_try_compile "$LINENO"; then :
8017 ac_cv_c_bigendian=yes
8019 ac_cv_c_bigendian=no
8021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8025 if test $ac_cv_c_bigendian = unknown; then
8026 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8028 /* end confdefs.h. */
8034 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8042 if ac_fn_c_try_compile "$LINENO"; then :
8043 # It does; now see whether it defined to _BIG_ENDIAN or not.
8044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8045 /* end confdefs.h. */
8059 if ac_fn_c_try_compile "$LINENO"; then :
8060 ac_cv_c_bigendian=yes
8062 ac_cv_c_bigendian=no
8064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8068 if test $ac_cv_c_bigendian = unknown; then
8069 # Compile a test program.
8070 if test "$cross_compiling" = yes; then :
8071 # Try to guess by grepping values from an object file.
8072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8073 /* end confdefs.h. */
8074 short int ascii_mm[] =
8075 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8076 short int ascii_ii[] =
8077 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8078 int use_ascii (int i) {
8079 return ascii_mm[i] + ascii_ii[i];
8081 short int ebcdic_ii[] =
8082 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8083 short int ebcdic_mm[] =
8084 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8085 int use_ebcdic (int i) {
8086 return ebcdic_mm[i] + ebcdic_ii[i];
8093 return use_ascii (foo) == use_ebcdic (foo);
8098 if ac_fn_c_try_compile "$LINENO"; then :
8099 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8100 ac_cv_c_bigendian=yes
8102 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8103 if test "$ac_cv_c_bigendian" = unknown; then
8104 ac_cv_c_bigendian=no
8106 # finding both strings is unlikely to happen, but who knows?
8107 ac_cv_c_bigendian=unknown
8111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8114 /* end confdefs.h. */
8115 $ac_includes_default
8120 /* Are we little or big endian? From Harbison&Steele. */
8124 char c[sizeof (long int)];
8127 return u.c[sizeof (long int) - 1] == 1;
8133 if ac_fn_c_try_run "$LINENO"; then :
8134 ac_cv_c_bigendian=no
8136 ac_cv_c_bigendian=yes
8138 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8139 conftest.$ac_objext conftest.beam conftest.$ac_ext
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8145 $as_echo "$ac_cv_c_bigendian" >&6; }
8146 case $ac_cv_c_bigendian in #(
8148 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8154 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8158 as_fn_error "unknown endianness
8159 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
8165 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
8166 if test "${am_cv_langinfo_codeset+set}" = set; then :
8167 $as_echo_n "(cached) " >&6
8169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8170 /* end confdefs.h. */
8171 #include <langinfo.h>
8175 char* cs = nl_langinfo(CODESET); return !cs;
8180 if ac_fn_c_try_link "$LINENO"; then :
8181 am_cv_langinfo_codeset=yes
8183 am_cv_langinfo_codeset=no
8185 rm -f core conftest.err conftest.$ac_objext \
8186 conftest$ac_exeext conftest.$ac_ext
8189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
8190 $as_echo "$am_cv_langinfo_codeset" >&6; }
8191 if test $am_cv_langinfo_codeset = yes; then
8193 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
8207 $as_echo_n "checking for working fcntl.h... " >&6; }
8208 if test "${gl_cv_header_working_fcntl_h+set}" = set; then :
8209 $as_echo_n "(cached) " >&6
8211 if test "$cross_compiling" = yes; then :
8212 gl_cv_header_working_fcntl_h=cross-compiling
8214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8215 /* end confdefs.h. */
8216 #include <sys/types.h>
8217 #include <sys/stat.h>
8219 # include <unistd.h>
8220 #else /* on Windows with MSVC */
8222 # include <stdlib.h>
8223 # defined sleep(n) _sleep ((n) * 1000)
8230 #define O_NOFOLLOW 0
8232 static int const constants[] =
8234 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
8235 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
8242 int result = !constants;
8245 static char const sym[] = "conftest.sym";
8246 if (symlink ("/dev/null", sym) != 0)
8250 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
8257 if (unlink (sym) != 0 || symlink (".", sym) != 0)
8261 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
8272 static char const file[] = "confdefs.h";
8273 int fd = open (file, O_RDONLY | O_NOATIME);
8279 if (fstat (fd, &st0) != 0)
8285 if (read (fd, &c, 1) != 1)
8289 if (close (fd) != 0)
8294 if (stat (file, &st1) != 0)
8297 if (st0.st_atime != st1.st_atime)
8309 if ac_fn_c_try_run "$LINENO"; then :
8310 gl_cv_header_working_fcntl_h=yes
8313 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
8314 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
8315 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
8316 *) gl_cv_header_working_fcntl_h='no';;
8319 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8320 conftest.$ac_objext conftest.beam conftest.$ac_ext
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
8325 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
8327 case $gl_cv_header_working_fcntl_h in #(
8328 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
8332 cat >>confdefs.h <<_ACEOF
8333 #define HAVE_WORKING_O_NOATIME $ac_val
8337 case $gl_cv_header_working_fcntl_h in #(
8338 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
8342 cat >>confdefs.h <<_ACEOF
8343 #define HAVE_WORKING_O_NOFOLLOW $ac_val
8347 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
8348 if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then :
8354 cat >>confdefs.h <<_ACEOF
8355 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
8359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
8360 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
8361 if test "${ac_cv_gnu_library_2_1+set}" = set; then :
8362 $as_echo_n "(cached) " >&6
8364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8365 /* end confdefs.h. */
8367 #include <features.h>
8368 #ifdef __GNU_LIBRARY__
8369 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
8378 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8379 $EGREP "Lucky" >/dev/null 2>&1; then :
8380 ac_cv_gnu_library_2_1=yes
8382 ac_cv_gnu_library_2_1=no
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
8390 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
8392 GLIBC21="$ac_cv_gnu_library_2_1"
8404 GNULIB_MBSNRTOWCS=0;
8407 GNULIB_WCSNRTOMBS=0;
8424 GNULIB_WCSCASECMP=0;
8425 GNULIB_WCSNCASECMP=0;
8475 HAVE_DECL_WCWIDTH=1;
8476 REPLACE_MBSTATE_T=0;
8482 REPLACE_MBSRTOWCS=0;
8483 REPLACE_MBSNRTOWCS=0;
8485 REPLACE_WCSRTOMBS=0;
8486 REPLACE_WCSNRTOMBS=0;
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
8498 $as_echo_n "checking for a traditional japanese locale... " >&6; }
8499 if test "${gt_cv_locale_ja+set}" = set; then :
8500 $as_echo_n "(cached) " >&6
8503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8504 /* end confdefs.h. */
8508 #if HAVE_LANGINFO_CODESET
8509 # include <langinfo.h>
8518 /* Check whether the given locale name is recognized by the system. */
8519 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
8520 /* On native Windows, setlocale(category, "") looks at the system settings,
8521 not at the environment variables. Also, when an encoding suffix such
8522 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
8523 category of the locale to "C". */
8524 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
8525 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
8528 if (setlocale (LC_ALL, "") == NULL) return 1;
8530 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
8531 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
8532 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
8533 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
8534 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
8535 some unit tests fail.
8536 On MirBSD 10, when an unsupported locale is specified, setlocale()
8537 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
8538 #if HAVE_LANGINFO_CODESET
8540 const char *cs = nl_langinfo (CODESET);
8541 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
8542 || strcmp (cs, "UTF-8") == 0)
8547 /* On Cygwin, avoid locale names without encoding suffix, because the
8548 locale_charset() function relies on the encoding suffix. Note that
8549 LC_ALL is set on the command line. */
8550 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
8552 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales
8554 if (MB_CUR_MAX == 1)
8556 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
8557 This excludes the UTF-8 encoding (except on MirBSD). */
8558 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
8559 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
8560 for (p = buf; *p != '\0'; p++)
8561 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
8567 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8568 (eval $ac_link) 2>&5
8570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8571 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8573 # Handle native Windows specially, because there setlocale() interprets
8574 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
8575 # "fr" or "fra" as "French" or "French_France.1252",
8576 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
8577 # "ja" as "Japanese" or "Japanese_Japan.932",
8580 # Note that on native Windows, the Japanese locale is
8581 # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
8582 # cannot use it here.
8583 gt_cv_locale_ja=none
8586 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
8587 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
8588 # configure script would override the LC_ALL setting. Likewise for
8589 # LC_CTYPE, which is also set at the beginning of the configure script.
8590 # Test for the AIX locale name.
8591 if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8592 gt_cv_locale_ja=ja_JP
8594 # Test for the locale name with explicit encoding suffix.
8595 if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8596 gt_cv_locale_ja=ja_JP.EUC-JP
8598 # Test for the HP-UX, OSF/1, NetBSD locale name.
8599 if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8600 gt_cv_locale_ja=ja_JP.eucJP
8602 # Test for the IRIX, FreeBSD locale name.
8603 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8604 gt_cv_locale_ja=ja_JP.EUC
8606 # Test for the Solaris 7 locale name.
8607 if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8610 # Special test for NetBSD 1.6.
8611 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
8612 gt_cv_locale_ja=ja_JP.eucJP
8615 gt_cv_locale_ja=none
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
8629 $as_echo "$gt_cv_locale_ja" >&6; }
8630 LOCALE_JA=$gt_cv_locale_ja
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
8637 $as_echo_n "checking for a transitional chinese locale... " >&6; }
8638 if test "${gt_cv_locale_zh_CN+set}" = set; then :
8639 $as_echo_n "(cached) " >&6
8642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8643 /* end confdefs.h. */
8648 #if HAVE_LANGINFO_CODESET
8649 # include <langinfo.h>
8658 /* Check whether the given locale name is recognized by the system. */
8659 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
8660 /* On native Windows, setlocale(category, "") looks at the system settings,
8661 not at the environment variables. Also, when an encoding suffix such
8662 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
8663 category of the locale to "C". */
8664 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
8665 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
8668 if (setlocale (LC_ALL, "") == NULL) return 1;
8670 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
8671 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
8672 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
8673 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
8674 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
8675 some unit tests fail.
8676 On MirBSD 10, when an unsupported locale is specified, setlocale()
8677 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
8678 #if HAVE_LANGINFO_CODESET
8680 const char *cs = nl_langinfo (CODESET);
8681 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
8682 || strcmp (cs, "UTF-8") == 0)
8687 /* On Cygwin, avoid locale names without encoding suffix, because the
8688 locale_charset() function relies on the encoding suffix. Note that
8689 LC_ALL is set on the command line. */
8690 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
8692 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
8693 This excludes the UTF-8 encoding (except on MirBSD). */
8694 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
8695 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
8696 for (p = buf; *p != '\0'; p++)
8697 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
8699 /* Check whether a typical GB18030 multibyte sequence is recognized as a
8700 single wide character. This excludes the GB2312 and GBK encodings. */
8701 if (mblen ("\203\062\332\066", 5) != 4)
8707 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8708 (eval $ac_link) 2>&5
8710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8711 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8713 # Handle native Windows specially, because there setlocale() interprets
8714 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
8715 # "fr" or "fra" as "French" or "French_France.1252",
8716 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
8717 # "ja" as "Japanese" or "Japanese_Japan.932",
8720 # Test for the hypothetical native Windows locale name.
8721 if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8722 gt_cv_locale_zh_CN=Chinese_China.54936
8725 gt_cv_locale_zh_CN=none
8729 # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
8730 # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
8731 # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
8732 gt_cv_locale_zh_CN=none
8735 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
8736 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
8737 # configure script would override the LC_ALL setting. Likewise for
8738 # LC_CTYPE, which is also set at the beginning of the configure script.
8739 # Test for the locale name without encoding suffix.
8740 if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8741 gt_cv_locale_zh_CN=zh_CN
8743 # Test for the locale name with explicit encoding suffix.
8744 if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8745 gt_cv_locale_zh_CN=zh_CN.GB18030
8748 gt_cv_locale_zh_CN=none
8754 # If there was a link error, due to mblen(), the system is so old that
8755 # it certainly doesn't have a chinese locale.
8756 gt_cv_locale_zh_CN=none
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
8762 $as_echo "$gt_cv_locale_zh_CN" >&6; }
8763 LOCALE_ZH_CN=$gt_cv_locale_zh_CN
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
8769 $as_echo_n "checking for a french Unicode locale... " >&6; }
8770 if test "${gt_cv_locale_fr_utf8+set}" = set; then :
8771 $as_echo_n "(cached) " >&6
8774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8775 /* end confdefs.h. */
8779 #if HAVE_LANGINFO_CODESET
8780 # include <langinfo.h>
8787 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
8788 imitates locale dependent behaviour by looking at the environment
8789 variables, and all locales use the UTF-8 encoding. */
8790 #if !(defined __BEOS__ || defined __HAIKU__)
8791 /* Check whether the given locale name is recognized by the system. */
8792 # if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
8793 /* On native Windows, setlocale(category, "") looks at the system settings,
8794 not at the environment variables. Also, when an encoding suffix such
8795 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
8796 category of the locale to "C". */
8797 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
8798 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
8801 if (setlocale (LC_ALL, "") == NULL) return 1;
8803 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
8804 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
8805 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
8806 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
8807 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
8808 some unit tests fail. */
8809 # if HAVE_LANGINFO_CODESET
8811 const char *cs = nl_langinfo (CODESET);
8812 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
8817 /* On Cygwin, avoid locale names without encoding suffix, because the
8818 locale_charset() function relies on the encoding suffix. Note that
8819 LC_ALL is set on the command line. */
8820 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
8822 /* Check whether in the abbreviation of the second month, the second
8823 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
8824 two bytes long, with UTF-8 encoding. */
8825 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
8826 if (strftime (buf, sizeof (buf), "%b", &t) < 4
8827 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
8830 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
8831 /* Check whether the decimal separator is a comma.
8832 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
8833 are nl_langinfo(RADIXCHAR) are both ".". */
8834 if (localeconv () ->decimal_point[0] != ',') return 1;
8840 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8841 (eval $ac_link) 2>&5
8843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8844 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8846 # Handle native Windows specially, because there setlocale() interprets
8847 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
8848 # "fr" or "fra" as "French" or "French_France.1252",
8849 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
8850 # "ja" as "Japanese" or "Japanese_Japan.932",
8853 # Test for the hypothetical native Windows locale name.
8854 if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8855 gt_cv_locale_fr_utf8=French_France.65001
8858 gt_cv_locale_fr_utf8=none
8862 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
8863 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
8864 # configure script would override the LC_ALL setting. Likewise for
8865 # LC_CTYPE, which is also set at the beginning of the configure script.
8866 # Test for the usual locale name.
8867 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8868 gt_cv_locale_fr_utf8=fr_FR
8870 # Test for the locale name with explicit encoding suffix.
8871 if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8872 gt_cv_locale_fr_utf8=fr_FR.UTF-8
8874 # Test for the Solaris 7 locale name.
8875 if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8876 gt_cv_locale_fr_utf8=fr.UTF-8
8879 gt_cv_locale_fr_utf8=none
8889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
8890 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
8891 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
8898 $as_echo_n "checking for a traditional french locale... " >&6; }
8899 if test "${gt_cv_locale_fr+set}" = set; then :
8900 $as_echo_n "(cached) " >&6
8903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8904 /* end confdefs.h. */
8908 #if HAVE_LANGINFO_CODESET
8909 # include <langinfo.h>
8916 /* Check whether the given locale name is recognized by the system. */
8917 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
8918 /* On native Windows, setlocale(category, "") looks at the system settings,
8919 not at the environment variables. Also, when an encoding suffix such
8920 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
8921 category of the locale to "C". */
8922 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
8923 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
8926 if (setlocale (LC_ALL, "") == NULL) return 1;
8928 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
8929 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
8930 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
8931 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
8932 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
8933 some unit tests fail.
8934 On MirBSD 10, when an unsupported locale is specified, setlocale()
8935 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
8936 #if HAVE_LANGINFO_CODESET
8938 const char *cs = nl_langinfo (CODESET);
8939 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
8940 || strcmp (cs, "UTF-8") == 0)
8945 /* On Cygwin, avoid locale names without encoding suffix, because the
8946 locale_charset() function relies on the encoding suffix. Note that
8947 LC_ALL is set on the command line. */
8948 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
8950 /* Check whether in the abbreviation of the second month, the second
8951 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
8952 one byte long. This excludes the UTF-8 encoding. */
8953 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
8954 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
8955 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
8956 /* Check whether the decimal separator is a comma.
8957 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
8958 are nl_langinfo(RADIXCHAR) are both ".". */
8959 if (localeconv () ->decimal_point[0] != ',') return 1;
8965 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8966 (eval $ac_link) 2>&5
8968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8969 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8971 # Handle native Windows specially, because there setlocale() interprets
8972 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
8973 # "fr" or "fra" as "French" or "French_France.1252",
8974 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
8975 # "ja" as "Japanese" or "Japanese_Japan.932",
8978 # Test for the native Windows locale name.
8979 if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8980 gt_cv_locale_fr=French_France.1252
8983 gt_cv_locale_fr=none
8987 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
8988 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
8989 # configure script would override the LC_ALL setting. Likewise for
8990 # LC_CTYPE, which is also set at the beginning of the configure script.
8991 # Test for the usual locale name.
8992 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8993 gt_cv_locale_fr=fr_FR
8995 # Test for the locale name with explicit encoding suffix.
8996 if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8997 gt_cv_locale_fr=fr_FR.ISO-8859-1
8999 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
9000 if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9001 gt_cv_locale_fr=fr_FR.ISO8859-1
9003 # Test for the HP-UX locale name.
9004 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9005 gt_cv_locale_fr=fr_FR.iso88591
9007 # Test for the Solaris 7 locale name.
9008 if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9012 gt_cv_locale_fr=none
9024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
9025 $as_echo "$gt_cv_locale_fr" >&6; }
9026 LOCALE_FR=$gt_cv_locale_fr
9051 GNULIB_STRCASESTR=0;
9058 GNULIB_MBSCASECMP=0;
9059 GNULIB_MBSNCASECMP=0;
9060 GNULIB_MBSPCASECMP=0;
9061 GNULIB_MBSCASESTR=0;
9068 GNULIB_STRERROR_R=0;
9070 GNULIB_STRVERSCMP=0;
9077 HAVE_DECL_MEMRCHR=1;
9083 HAVE_DECL_STRNDUP=1;
9084 HAVE_DECL_STRNLEN=1;
9088 HAVE_DECL_STRTOK_R=1;
9089 HAVE_DECL_STRERROR_R=1;
9090 HAVE_DECL_STRSIGNAL=1;
9097 REPLACE_STRCASESTR=0;
9098 REPLACE_STRCHRNUL=0;
9100 REPLACE_STRERROR_R=0;
9104 REPLACE_STRSIGNAL=0;
9106 UNDEFINE_STRTOK_R=0;
9112 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
9113 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
9114 # irrelevant for anonymous mappings.
9115 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9116 if test "x$ac_cv_func_mmap" = x""yes; then :
9123 # Try to allow MAP_ANONYMOUS.
9124 gl_have_mmap_anonymous=no
9125 if test $gl_have_mmap = yes; then
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
9127 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
9128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9129 /* end confdefs.h. */
9131 #include <sys/mman.h>
9132 #ifdef MAP_ANONYMOUS
9133 I cannot identify this map
9137 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9138 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
9139 gl_have_mmap_anonymous=yes
9143 if test $gl_have_mmap_anonymous != yes; then
9144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9145 /* end confdefs.h. */
9147 #include <sys/mman.h>
9149 I cannot identify this map
9153 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9154 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
9156 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
9158 gl_have_mmap_anonymous=yes
9163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
9164 $as_echo "$gl_have_mmap_anonymous" >&6; }
9165 if test $gl_have_mmap_anonymous = yes; then
9167 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
9177 if test $HAVE_MEMCHR = 1; then
9178 # Detect platform-specific bugs in some versions of glibc:
9179 # memchr should not dereference anything with length 0
9180 # http://bugzilla.redhat.com/499689
9181 # memchr should not dereference overestimated length after a match
9182 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
9183 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
9184 # Assume that memchr works on platforms that lack mprotect.
9185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
9186 $as_echo_n "checking whether memchr works... " >&6; }
9187 if test "${gl_cv_func_memchr_works+set}" = set; then :
9188 $as_echo_n "(cached) " >&6
9190 if test "$cross_compiling" = yes; then :
9191 gl_cv_func_memchr_works="guessing no"
9193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9194 /* end confdefs.h. */
9199 # include <unistd.h>
9200 # include <sys/types.h>
9201 # include <sys/mman.h>
9213 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
9214 # if HAVE_MAP_ANONYMOUS
9215 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
9217 # else /* !HAVE_MAP_ANONYMOUS */
9218 const int flags = MAP_FILE | MAP_PRIVATE;
9219 int fd = open ("/dev/zero", O_RDONLY, 0666);
9223 int pagesize = getpagesize ();
9225 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
9227 if (two_pages != (char *)(-1)
9228 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
9229 fence = two_pages + pagesize;
9234 if (memchr (fence, 0, 0))
9236 strcpy (fence - 9, "12345678");
9237 if (memchr (fence - 9, 0, 79) != fence - 1)
9239 if (memchr (fence - 1, 0, 3) != fence - 1)
9248 if ac_fn_c_try_run "$LINENO"; then :
9249 gl_cv_func_memchr_works=yes
9251 gl_cv_func_memchr_works=no
9253 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9254 conftest.$ac_objext conftest.beam conftest.$ac_ext
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
9259 $as_echo "$gl_cv_func_memchr_works" >&6; }
9260 if test "$gl_cv_func_memchr_works" != yes; then
9265 ac_fn_c_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
9266 if test "x$ac_cv_have_decl_memmem" = x""yes; then :
9272 cat >>confdefs.h <<_ACEOF
9273 #define HAVE_DECL_MEMMEM $ac_have_decl
9280 for ac_func in memmem
9282 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
9283 if test "x$ac_cv_func_memmem" = x""yes; then :
9284 cat >>confdefs.h <<_ACEOF
9285 #define HAVE_MEMMEM 1
9291 if test $ac_cv_func_memmem = yes; then
9297 if test $ac_cv_have_decl_memmem = no; then
9300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
9301 $as_echo_n "checking whether memmem works... " >&6; }
9302 if test "${gl_cv_func_memmem_works_always+set}" = set; then :
9303 $as_echo_n "(cached) " >&6
9305 if test "$cross_compiling" = yes; then :
9306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9307 /* end confdefs.h. */
9309 #ifdef __GNU_LIBRARY__
9310 #include <features.h>
9311 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
9312 || __GLIBC_MINOR__ > 12)) \
9313 || (__GLIBC__ > 2)) \
9314 || defined __UCLIBC__
9317 #elif defined __CYGWIN__
9318 #include <cygwin/version.h>
9319 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
9327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9328 $EGREP "Lucky user" >/dev/null 2>&1; then :
9329 gl_cv_func_memmem_works_always="guessing yes"
9331 gl_cv_func_memmem_works_always="guessing no"
9337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9338 /* end confdefs.h. */
9340 #include <string.h> /* for memmem */
9341 #define P "_EF_BF_BD"
9342 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
9343 #define NEEDLE P P P P P
9350 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
9352 /* Check for empty needle behavior. */
9354 const char *haystack = "AAA";
9355 if (memmem (haystack, 3, NULL, 0) != haystack)
9364 if ac_fn_c_try_run "$LINENO"; then :
9365 gl_cv_func_memmem_works_always=yes
9367 gl_cv_func_memmem_works_always=no
9369 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9370 conftest.$ac_objext conftest.beam conftest.$ac_ext
9375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
9376 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
9377 case "$gl_cv_func_memmem_works_always" in
9388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
9389 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
9390 if test "${ac_cv_header_stdbool_h+set}" = set; then :
9391 $as_echo_n "(cached) " >&6
9393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9394 /* end confdefs.h. */
9396 #include <stdbool.h>
9398 "error: bool is not defined"
9401 "error: false is not defined"
9404 "error: false is not 0"
9407 "error: true is not defined"
9410 "error: true is not 1"
9412 #ifndef __bool_true_false_are_defined
9413 "error: __bool_true_false_are_defined is not defined"
9416 struct s { _Bool s: 1; _Bool t; } s;
9418 char a[true == 1 ? 1 : -1];
9419 char b[false == 0 ? 1 : -1];
9420 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
9421 char d[(bool) 0.5 == true ? 1 : -1];
9422 /* See body of main program for 'e'. */
9423 char f[(_Bool) 0.0 == false ? 1 : -1];
9425 char h[sizeof (_Bool)];
9427 enum { j = false, k = true, l = false * true, m = true * 256 };
9428 /* The following fails for
9429 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
9431 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
9432 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
9433 /* Catch a bug in an HP-UX C compiler. See
9434 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
9435 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
9447 /* Refer to every declared value, to avoid compiler optimizations. */
9448 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
9449 + !m + !n + !o + !p + !q + !pq);
9455 if ac_fn_c_try_compile "$LINENO"; then :
9456 ac_cv_header_stdbool_h=yes
9458 ac_cv_header_stdbool_h=no
9460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
9463 $as_echo "$ac_cv_header_stdbool_h" >&6; }
9464 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
9465 if test "x$ac_cv_type__Bool" = x""yes; then :
9467 cat >>confdefs.h <<_ACEOF
9468 #define HAVE__BOOL 1
9480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
9481 $as_echo_n "checking for wchar_t... " >&6; }
9482 if test "${gt_cv_c_wchar_t+set}" = set; then :
9483 $as_echo_n "(cached) " >&6
9485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9486 /* end confdefs.h. */
9488 wchar_t foo = (wchar_t)'\0';
9497 if ac_fn_c_try_compile "$LINENO"; then :
9502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
9505 $as_echo "$gt_cv_c_wchar_t" >&6; }
9506 if test $gt_cv_c_wchar_t = yes; then
9508 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
9513 REPLACE_STRERROR_0=0
9514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror(0) succeeds" >&5
9515 $as_echo_n "checking whether strerror(0) succeeds... " >&6; }
9516 if test "${gl_cv_func_strerror_0_works+set}" = set; then :
9517 $as_echo_n "(cached) " >&6
9519 if test "$cross_compiling" = yes; then :
9521 # Guess yes on glibc systems.
9522 *-gnu*) gl_cv_func_strerror_0_works="guessing yes" ;;
9523 # If we don't know, assume the worst.
9524 *) gl_cv_func_strerror_0_works="guessing no" ;;
9528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9529 /* end confdefs.h. */
9540 if (!*str) result |= 1;
9541 if (errno) result |= 2;
9542 if (strstr (str, "nknown") || strstr (str, "ndefined"))
9549 if ac_fn_c_try_run "$LINENO"; then :
9550 gl_cv_func_strerror_0_works=yes
9552 gl_cv_func_strerror_0_works=no
9554 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9555 conftest.$ac_objext conftest.beam conftest.$ac_ext
9560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_0_works" >&5
9561 $as_echo "$gl_cv_func_strerror_0_works" >&6; }
9562 case "$gl_cv_func_strerror_0_works" in
9565 REPLACE_STRERROR_0=1
9567 $as_echo "#define REPLACE_STRERROR_0 1" >>confdefs.h
9580 GNULIB_EUIDACCESS=0;
9588 GNULIB_GETDOMAINNAME=0;
9589 GNULIB_GETDTABLESIZE=0;
9591 GNULIB_GETHOSTNAME=0;
9593 GNULIB_GETLOGIN_R=0;
9594 GNULIB_GETPAGESIZE=0;
9595 GNULIB_GETUSERSHELL=0;
9596 GNULIB_GROUP_MEMBER=0;
9608 GNULIB_READLINKAT=0;
9610 GNULIB_SETHOSTNAME=0;
9615 GNULIB_UNISTD_H_NONBLOCKING=0;
9616 GNULIB_UNISTD_H_SIGPIPE=0;
9631 HAVE_GETDTABLESIZE=1;
9636 HAVE_GROUP_MEMBER=1;
9652 HAVE_DECL_ENVIRON=1;
9654 HAVE_DECL_FDATASYNC=1;
9655 HAVE_DECL_GETDOMAINNAME=1;
9656 HAVE_DECL_GETLOGIN_R=1;
9657 HAVE_DECL_GETPAGESIZE=1;
9658 HAVE_DECL_GETUSERSHELL=1;
9659 HAVE_DECL_SETHOSTNAME=1;
9660 HAVE_DECL_TTYNAME_R=1;
9668 REPLACE_FTRUNCATE=0;
9670 REPLACE_GETDOMAINNAME=0;
9671 REPLACE_GETLOGIN_R=0;
9672 REPLACE_GETGROUPS=0;
9673 REPLACE_GETPAGESIZE=0;
9686 REPLACE_TTYNAME_R=0;
9691 UNISTD_H_HAVE_WINSOCK2_H=0;
9692 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
9697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
9698 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
9699 if test "${ac_cv_c_restrict+set}" = set; then :
9700 $as_echo_n "(cached) " >&6
9703 # The order here caters to the fact that C++ does not require restrict.
9704 for ac_kw in __restrict __restrict__ _Restrict restrict; do
9705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9706 /* end confdefs.h. */
9707 typedef int * int_ptr;
9708 int foo (int_ptr $ac_kw ip) {
9722 if ac_fn_c_try_compile "$LINENO"; then :
9723 ac_cv_c_restrict=$ac_kw
9725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9726 test "$ac_cv_c_restrict" != no && break
9730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
9731 $as_echo "$ac_cv_c_restrict" >&6; }
9733 case $ac_cv_c_restrict in
9735 no) $as_echo "#define restrict /**/" >>confdefs.h
9737 *) cat >>confdefs.h <<_ACEOF
9738 #define restrict $ac_cv_c_restrict
9754 if test $gl_cv_have_include_next = yes; then
9755 gl_cv_next_string_h='<'string.h'>'
9757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
9758 $as_echo_n "checking absolute name of <string.h>... " >&6; }
9759 if test "${gl_cv_next_string_h+set}" = set; then :
9760 $as_echo_n "(cached) " >&6
9763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9764 /* end confdefs.h. */
9769 aix*) gl_absname_cpp="$ac_cpp -C" ;;
9770 *) gl_absname_cpp="$ac_cpp" ;;
9775 gl_dirsep_regex='[/\\]'
9778 gl_dirsep_regex='\/'
9781 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
9783 gl_header_literal_regex=`echo 'string.h' \
9784 | sed -e "$gl_make_literal_regex_sed"`
9785 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9786 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9791 gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9792 sed -n "$gl_absolute_header_sed"`'"'
9796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
9797 $as_echo "$gl_cv_next_string_h" >&6; }
9799 NEXT_STRING_H=$gl_cv_next_string_h
9801 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
9802 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9803 gl_next_as_first_directive='<'string.h'>'
9805 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9806 gl_next_as_first_directive=$gl_cv_next_string_h
9808 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
9815 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
9816 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
9817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
9818 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
9819 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
9820 $as_echo_n "(cached) " >&6
9822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9823 /* end confdefs.h. */
9835 if ac_fn_c_try_compile "$LINENO"; then :
9836 eval "$as_gl_Symbol=yes"
9838 eval "$as_gl_Symbol=no"
9840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9842 eval ac_res=\$$as_gl_Symbol
9843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9844 $as_echo "$ac_res" >&6; }
9845 eval as_val=\$$as_gl_Symbol
9846 if test "x$as_val" = x""yes; then :
9847 cat >>confdefs.h <<_ACEOF
9848 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
9851 eval ac_cv_have_decl_$gl_func=yes
9859 if test "$gl_cv_func_memchr_works" != yes; then
9862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
9863 $as_echo_n "checking whether strstr works... " >&6; }
9864 if test "${gl_cv_func_strstr_works_always+set}" = set; then :
9865 $as_echo_n "(cached) " >&6
9867 if test "$cross_compiling" = yes; then :
9868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9869 /* end confdefs.h. */
9871 #ifdef __GNU_LIBRARY__
9872 #include <features.h>
9873 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
9874 || defined __UCLIBC__
9877 #elif defined __CYGWIN__
9878 #include <cygwin/version.h>
9879 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
9887 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9888 $EGREP "Lucky user" >/dev/null 2>&1; then :
9889 gl_cv_func_strstr_works_always="guessing yes"
9891 gl_cv_func_strstr_works_always="guessing no"
9897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9898 /* end confdefs.h. */
9900 #include <string.h> /* for strstr */
9901 #define P "_EF_BF_BD"
9902 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
9903 #define NEEDLE P P P P P
9908 return !!strstr (HAYSTACK, NEEDLE);
9914 if ac_fn_c_try_run "$LINENO"; then :
9915 gl_cv_func_strstr_works_always=yes
9917 gl_cv_func_strstr_works_always=no
9919 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9920 conftest.$ac_objext conftest.beam conftest.$ac_ext
9925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
9926 $as_echo "$gl_cv_func_strstr_works_always" >&6; }
9927 case "$gl_cv_func_strstr_works_always" in
9937 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9938 if test "x$ac_cv_type_pid_t" = x""yes; then :
9942 cat >>confdefs.h <<_ACEOF
9948 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
9949 if test "x$ac_cv_type_mode_t" = x""yes; then :
9953 cat >>confdefs.h <<_ACEOF
9961 WINDOWS_64_BIT_OFF_T=0
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
9966 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
9967 if test -z "$MKDIR_P"; then
9968 if test "${ac_cv_path_mkdir+set}" = set; then :
9969 $as_echo_n "(cached) " >&6
9971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9972 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
9975 test -z "$as_dir" && as_dir=.
9976 for ac_prog in mkdir gmkdir; do
9977 for ac_exec_ext in '' $ac_executable_extensions; do
9978 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
9979 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
9980 'mkdir (GNU coreutils) '* | \
9981 'mkdir (coreutils) '* | \
9982 'mkdir (fileutils) '4.1*)
9983 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
9993 if test "${ac_cv_path_mkdir+set}" = set; then
9994 MKDIR_P="$ac_cv_path_mkdir -p"
9996 # As a last resort, use the slow shell script. Don't cache a
9997 # value for MKDIR_P within a source directory, because that will
9998 # break other packages using the cache if that directory is
9999 # removed, or if the value is a relative name.
10000 test -d ./--version && rmdir ./--version
10001 MKDIR_P="$ac_install_sh -d"
10004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
10005 $as_echo "$MKDIR_P" >&6; }
10008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
10009 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
10010 if test "${gl_cv_header_wchar_h_correct_inline+set}" = set; then :
10011 $as_echo_n "(cached) " >&6
10013 gl_cv_header_wchar_h_correct_inline=yes
10014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10015 /* end confdefs.h. */
10017 #define wcstod renamed_wcstod
10018 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
10020 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10021 included before <wchar.h>. */
10022 #include <stddef.h>
10026 extern int zero (void);
10027 int main () { return zero(); }
10030 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10031 (eval $ac_compile) 2>&5
10033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10034 test $ac_status = 0; }; then
10035 mv conftest.$ac_objext conftest1.$ac_objext
10036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10037 /* end confdefs.h. */
10039 #define wcstod renamed_wcstod
10040 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
10042 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10043 included before <wchar.h>. */
10044 #include <stddef.h>
10048 int zero (void) { return 0; }
10051 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10052 (eval $ac_compile) 2>&5
10054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10055 test $ac_status = 0; }; then
10056 mv conftest.$ac_objext conftest2.$ac_objext
10057 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
10060 gl_cv_header_wchar_h_correct_inline=no
10064 rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
10067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
10068 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
10069 if test $gl_cv_header_wchar_h_correct_inline = no; then
10070 as_fn_error "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
10071 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
10072 C99 mode. You have four options:
10073 - Add the flag -fgnu89-inline to CC and reconfigure, or
10074 - Fix your include files, using parts of
10075 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
10076 - Use a gcc version older than 4.3, or
10077 - Don't use the flags -std=c99 or -std=gnu99.
10078 Configuration aborted." "$LINENO" 5
10085 if test $ac_cv_header_features_h = yes; then
10093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
10094 $as_echo_n "checking for wint_t... " >&6; }
10095 if test "${gt_cv_c_wint_t+set}" = set; then :
10096 $as_echo_n "(cached) " >&6
10098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10099 /* end confdefs.h. */
10101 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
10103 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
10104 before <wchar.h>. */
10105 #include <stddef.h>
10109 wint_t foo = (wchar_t)'\0';
10118 if ac_fn_c_try_compile "$LINENO"; then :
10123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
10126 $as_echo "$gt_cv_c_wint_t" >&6; }
10127 if test $gt_cv_c_wint_t = yes; then
10129 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
10138 GNULIB_TOWCTRANS=0;
10142 REPLACE_ISWBLANK=0;
10148 GL_COND_LIBTOOL_TRUE=
10149 GL_COND_LIBTOOL_FALSE='#'
10151 GL_COND_LIBTOOL_TRUE='#'
10152 GL_COND_LIBTOOL_FALSE=
10155 gl_cond_libtool=false
10158 gl_m4_base='import/m4'
10168 gl_source_base='import'
10171 if test $ac_cv_func_alloca_works = no; then
10175 # Define an additional variable used in the Makefile substitution.
10176 if test $ac_cv_working_alloca_h = yes; then
10177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
10178 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
10179 if test "${gl_cv_rpl_alloca+set}" = set; then :
10180 $as_echo_n "(cached) " >&6
10183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10184 /* end confdefs.h. */
10186 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
10191 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10192 $EGREP "Need own alloca" >/dev/null 2>&1; then :
10193 gl_cv_rpl_alloca=yes
10195 gl_cv_rpl_alloca=no
10201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
10202 $as_echo "$gl_cv_rpl_alloca" >&6; }
10203 if test $gl_cv_rpl_alloca = yes; then
10205 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
10215 if test -n "$ALLOCA_H"; then
10216 GL_GENERATE_ALLOCA_H_TRUE=
10217 GL_GENERATE_ALLOCA_H_FALSE='#'
10219 GL_GENERATE_ALLOCA_H_TRUE='#'
10220 GL_GENERATE_ALLOCA_H_FALSE=
10225 if test "x$datarootdir" = x; then
10226 datarootdir='${datadir}'
10229 if test "x$docdir" = x; then
10230 docdir='${datarootdir}/doc/${PACKAGE}'
10233 if test "x$htmldir" = x; then
10234 htmldir='${docdir}'
10237 if test "x$dvidir" = x; then
10241 if test "x$pdfdir" = x; then
10245 if test "x$psdir" = x; then
10249 if test "x$lispdir" = x; then
10250 lispdir='${datarootdir}/emacs/site-lisp'
10253 if test "x$localedir" = x; then
10254 localedir='${datarootdir}/locale'
10258 pkglibexecdir='${libexecdir}/${PACKAGE}'
10267 REPLACE_FLOAT_LDBL=0
10269 aix* | beos* | openbsd* | mirbsd* | irix*)
10273 case "$host_cpu" in
10278 # On x86_64 systems, the C compiler may still be generating
10280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10281 /* end confdefs.h. */
10282 #if defined __LP64__ || defined __x86_64__ || defined __amd64__
10286 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10287 $EGREP "yes" >/dev/null 2>&1; then :
10298 case "$host_cpu" in
10306 aix* | freebsd* | linux*)
10307 if test -n "$FLOAT_H"; then
10308 REPLACE_FLOAT_LDBL=1
10314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
10315 $as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
10316 if test "${gl_cv_func_itold_works+set}" = set; then :
10317 $as_echo_n "(cached) " >&6
10320 if test "$cross_compiling" = yes; then :
10323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10324 /* end confdefs.h. */
10325 #if defined __LP64__ || defined __arch64__
10329 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10330 $EGREP "yes" >/dev/null 2>&1; then :
10331 gl_cv_func_itold_works="guessing no"
10333 gl_cv_func_itold_works="guessing yes"
10338 *) gl_cv_func_itold_works="guessing yes" ;;
10342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10343 /* end confdefs.h. */
10346 volatile long double ld;
10355 if ac_fn_c_try_run "$LINENO"; then :
10356 gl_cv_func_itold_works=yes
10358 gl_cv_func_itold_works=no
10360 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10361 conftest.$ac_objext conftest.beam conftest.$ac_ext
10366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
10367 $as_echo "$gl_cv_func_itold_works" >&6; }
10368 case "$gl_cv_func_itold_works" in
10375 if test -n "$FLOAT_H"; then
10384 if test $gl_cv_have_include_next = yes; then
10385 gl_cv_next_float_h='<'float.h'>'
10387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
10388 $as_echo_n "checking absolute name of <float.h>... " >&6; }
10389 if test "${gl_cv_next_float_h+set}" = set; then :
10390 $as_echo_n "(cached) " >&6
10393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10394 /* end confdefs.h. */
10399 aix*) gl_absname_cpp="$ac_cpp -C" ;;
10400 *) gl_absname_cpp="$ac_cpp" ;;
10405 gl_dirsep_regex='[/\\]'
10408 gl_dirsep_regex='\/'
10411 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
10413 gl_header_literal_regex=`echo 'float.h' \
10414 | sed -e "$gl_make_literal_regex_sed"`
10415 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10416 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10421 gl_cv_next_float_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10422 sed -n "$gl_absolute_header_sed"`'"'
10426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
10427 $as_echo "$gl_cv_next_float_h" >&6; }
10429 NEXT_FLOAT_H=$gl_cv_next_float_h
10431 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
10432 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10433 gl_next_as_first_directive='<'float.h'>'
10435 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10436 gl_next_as_first_directive=$gl_cv_next_float_h
10438 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
10445 if test -n "$FLOAT_H"; then
10446 GL_GENERATE_FLOAT_H_TRUE=
10447 GL_GENERATE_FLOAT_H_FALSE='#'
10449 GL_GENERATE_FLOAT_H_TRUE='#'
10450 GL_GENERATE_FLOAT_H_FALSE=
10455 if test $REPLACE_FLOAT_LDBL = 1; then
10464 gl_LIBOBJS="$gl_LIBOBJS float.$ac_objext"
10467 if test $REPLACE_ITOLD = 1; then
10476 gl_LIBOBJS="$gl_LIBOBJS itold.$ac_objext"
10485 gl_fnmatch_required_lowercase=`
10486 echo $gl_fnmatch_required | LC_ALL=C tr '[A-Z]' '[a-z]'
10488 gl_fnmatch_cache_var="gl_cv_func_fnmatch_${gl_fnmatch_required_lowercase}"
10489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working $gl_fnmatch_required fnmatch" >&5
10490 $as_echo_n "checking for working $gl_fnmatch_required fnmatch... " >&6; }
10491 if { as_var=$gl_fnmatch_cache_var; eval "test \"\${$as_var+set}\" = set"; }; then :
10492 $as_echo_n "(cached) " >&6
10494 if test $gl_fnmatch_required = GNU; then
10495 gl_fnmatch_gnu_start=
10496 gl_fnmatch_gnu_end=
10498 gl_fnmatch_gnu_start='#if 0'
10499 gl_fnmatch_gnu_end='#endif'
10501 if test "$cross_compiling" = yes; then :
10502 eval "$gl_fnmatch_cache_var=\"guessing no\""
10504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10505 /* end confdefs.h. */
10506 #include <fnmatch.h>
10508 y (char const *pattern, char const *string, int flags)
10510 return fnmatch (pattern, string, flags) == 0;
10513 n (char const *pattern, char const *string, int flags)
10515 return fnmatch (pattern, string, flags) == FNM_NOMATCH;
10521 char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]";
10522 char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]";
10523 static char const A_1[] = { 'A' - 1, 0 };
10524 static char const A01[] = { 'A' + 1, 0 };
10525 static char const a_1[] = { 'a' - 1, 0 };
10526 static char const a01[] = { 'a' + 1, 0 };
10527 static char const bs_1[] = { '\\\\' - 1, 0 };
10528 static char const bs01[] = { '\\\\' + 1, 0 };
10530 if (!n ("a*", "", 0))
10532 if (!y ("a*", "abc", 0))
10534 if (!y ("[/b", "[/b", 0)) /*"]]"*/ /* glibc Bugzilla bug 12378 */
10536 if (!n ("d*/*1", "d/s/1", FNM_PATHNAME))
10538 if (!y ("a\\\\bc", "abc", 0))
10540 if (!n ("a\\\\bc", "abc", FNM_NOESCAPE))
10542 if (!y ("*x", ".x", 0))
10544 if (!n ("*x", ".x", FNM_PERIOD))
10546 if (!y (Apat, "\\\\", 0))
10548 if (!y (Apat, "A", 0))
10550 if (!y (apat, "\\\\", 0))
10552 if (!y (apat, "a", 0))
10554 if (!(n (Apat, A_1, 0) == ('A' < '\\\\')))
10556 if (!(n (apat, a_1, 0) == ('a' < '\\\\')))
10558 if (!(y (Apat, A01, 0) == ('A' < '\\\\')))
10560 if (!(y (apat, a01, 0) == ('a' < '\\\\')))
10562 if (!(y (Apat, bs_1, 0) == ('A' < '\\\\')))
10564 if (!(y (apat, bs_1, 0) == ('a' < '\\\\')))
10566 if (!(n (Apat, bs01, 0) == ('A' < '\\\\')))
10568 if (!(n (apat, bs01, 0) == ('a' < '\\\\')))
10570 $gl_fnmatch_gnu_start
10571 if (!y ("xxXX", "xXxX", FNM_CASEFOLD))
10573 if (!y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH))
10575 if (!n ("d*/*1", "d/s/1", FNM_FILE_NAME))
10577 if (!y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR))
10579 if (!y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR))
10581 if (!y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR))
10583 $gl_fnmatch_gnu_end
10590 if ac_fn_c_try_run "$LINENO"; then :
10591 eval "$gl_fnmatch_cache_var=yes"
10593 eval "$gl_fnmatch_cache_var=no"
10595 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10596 conftest.$ac_objext conftest.beam conftest.$ac_ext
10601 eval ac_res=\$$gl_fnmatch_cache_var
10602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10603 $as_echo "$ac_res" >&6; }
10604 eval "gl_fnmatch_result=\"\$$gl_fnmatch_cache_var\""
10605 if test "$gl_fnmatch_result" = yes; then
10606 rm -f "$gl_source_base/fnmatch.h"
10608 FNMATCH_H=fnmatch.h
10611 if test -n "$FNMATCH_H"; then
10612 GL_GENERATE_FNMATCH_H_TRUE=
10613 GL_GENERATE_FNMATCH_H_FALSE='#'
10615 GL_GENERATE_FNMATCH_H_TRUE='#'
10616 GL_GENERATE_FNMATCH_H_FALSE=
10620 if test -n "$FNMATCH_H"; then
10629 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
10633 cat >>confdefs.h <<_ACEOF
10634 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
10638 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
10640 if test "x$ac_cv_have_decl_isblank" = x""yes; then :
10646 cat >>confdefs.h <<_ACEOF
10647 #define HAVE_DECL_ISBLANK $ac_have_decl
10659 if test -n "$FNMATCH_H"; then
10668 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
10672 cat >>confdefs.h <<_ACEOF
10673 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
10677 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
10679 if test "x$ac_cv_have_decl_isblank" = x""yes; then :
10685 cat >>confdefs.h <<_ACEOF
10686 #define HAVE_DECL_ISBLANK $ac_have_decl
10697 if test $gl_cv_func_frexp_no_libm = no; then
10698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used with libm" >&5
10699 $as_echo_n "checking whether frexp() can be used with libm... " >&6; }
10700 if test "${gl_cv_func_frexp_in_libm+set}" = set; then :
10701 $as_echo_n "(cached) " >&6
10706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10707 /* end confdefs.h. */
10713 int e; return frexp (x, &e) > 0;
10718 if ac_fn_c_try_link "$LINENO"; then :
10719 gl_cv_func_frexp_in_libm=yes
10721 gl_cv_func_frexp_in_libm=no
10723 rm -f core conftest.err conftest.$ac_objext \
10724 conftest$ac_exeext conftest.$ac_ext
10728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_in_libm" >&5
10729 $as_echo "$gl_cv_func_frexp_in_libm" >&6; }
10730 if test $gl_cv_func_frexp_in_libm = yes; then
10734 if test $gl_cv_func_frexp_no_libm = yes \
10735 || test $gl_cv_func_frexp_in_libm = yes; then
10737 LIBS="$LIBS $FREXP_LIBM"
10741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp works" >&5
10742 $as_echo_n "checking whether frexp works... " >&6; }
10743 if test "${gl_cv_func_frexp_works+set}" = set; then :
10744 $as_echo_n "(cached) " >&6
10747 if test "$cross_compiling" = yes; then :
10749 netbsd* | irix* | mingw*) gl_cv_func_frexp_works="guessing no";;
10750 *) gl_cv_func_frexp_works="guessing yes";;
10754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10755 /* end confdefs.h. */
10759 #include <string.h>
10761 # include <unistd.h>
10763 /* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0.
10764 ICC 10.0 has a bug when optimizing the expression -zero.
10765 The expression -DBL_MIN * DBL_MIN does not work when cross-compiling
10766 to PowerPC on Mac OS X 10.5. */
10767 #if defined __hpux || defined __sgi || defined __ICC
10769 compute_minus_zero (void)
10771 return -DBL_MIN * DBL_MIN;
10773 # define minus_zero compute_minus_zero ()
10775 double minus_zero = -0.0;
10784 /* NeXTstep 3.3 frexp() runs into an endless loop when called on an infinite
10785 number. Let the test fail in this case. */
10788 /* Test on denormalized numbers. */
10789 for (i = 1, x = 1.0; i >= DBL_MIN_EXP; i--, x *= 0.5)
10794 double y = frexp (x, &exp);
10795 /* On machines with IEEE754 arithmetic: x = 1.11254e-308, exp = -1022.
10796 On NetBSD: y = 0.75. Correct: y = 0.5. */
10800 /* Test on infinite numbers. */
10804 double y = frexp (x, &exp);
10808 /* Test on negative zero. */
10812 double y = frexp (x, &exp);
10813 if (memcmp (&y, &x, sizeof x))
10819 if ac_fn_c_try_run "$LINENO"; then :
10820 gl_cv_func_frexp_works=yes
10822 gl_cv_func_frexp_works=no
10824 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10825 conftest.$ac_objext conftest.beam conftest.$ac_ext
10830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_works" >&5
10831 $as_echo "$gl_cv_func_frexp_works" >&6; }
10834 case "$gl_cv_func_frexp_works" in
10835 *yes) gl_func_frexp=yes ;;
10836 *) gl_func_frexp=no; REPLACE_FREXP=1; FREXP_LIBM= ;;
10841 if test $gl_func_frexp = yes; then
10843 $as_echo "#define HAVE_FREXP 1" >>confdefs.h
10848 if test $gl_func_frexp != yes; then
10857 gl_LIBOBJS="$gl_LIBOBJS frexp.$ac_objext"
10871 $as_echo "#define GNULIB_TEST_FREXP 1" >>confdefs.h
10881 ac_fn_c_check_decl "$LINENO" "frexpl" "ac_cv_have_decl_frexpl" "#include <math.h>
10883 if test "x$ac_cv_have_decl_frexpl" = x""yes; then :
10891 if test $HAVE_DECL_FREXPL = 1; then
10893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used without linking with libm" >&5
10894 $as_echo_n "checking whether frexpl() can be used without linking with libm... " >&6; }
10895 if test "${gl_cv_func_frexpl_no_libm+set}" = set; then :
10896 $as_echo_n "(cached) " >&6
10899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10900 /* end confdefs.h. */
10906 int e; return frexpl (x, &e) > 0;
10911 if ac_fn_c_try_link "$LINENO"; then :
10912 gl_cv_func_frexpl_no_libm=yes
10914 gl_cv_func_frexpl_no_libm=no
10916 rm -f core conftest.err conftest.$ac_objext \
10917 conftest$ac_exeext conftest.$ac_ext
10920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_no_libm" >&5
10921 $as_echo "$gl_cv_func_frexpl_no_libm" >&6; }
10923 if test $gl_cv_func_frexpl_no_libm = no; then
10924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used with libm" >&5
10925 $as_echo_n "checking whether frexpl() can be used with libm... " >&6; }
10926 if test "${gl_cv_func_frexpl_in_libm+set}" = set; then :
10927 $as_echo_n "(cached) " >&6
10932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10933 /* end confdefs.h. */
10939 int e; return frexpl (x, &e) > 0;
10944 if ac_fn_c_try_link "$LINENO"; then :
10945 gl_cv_func_frexpl_in_libm=yes
10947 gl_cv_func_frexpl_in_libm=no
10949 rm -f core conftest.err conftest.$ac_objext \
10950 conftest$ac_exeext conftest.$ac_ext
10954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_in_libm" >&5
10955 $as_echo "$gl_cv_func_frexpl_in_libm" >&6; }
10956 if test $gl_cv_func_frexpl_in_libm = yes; then
10960 if test $gl_cv_func_frexpl_no_libm = yes \
10961 || test $gl_cv_func_frexpl_in_libm = yes; then
10963 LIBS="$LIBS $FREXPL_LIBM"
10966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl works" >&5
10967 $as_echo_n "checking whether frexpl works... " >&6; }
10968 if test "${gl_cv_func_frexpl_works+set}" = set; then :
10969 $as_echo_n "(cached) " >&6
10972 if test "$cross_compiling" = yes; then :
10975 aix | aix[3-6]* | beos* | darwin* | irix* | mingw* | pw*)
10976 gl_cv_func_frexpl_works="guessing no";;
10977 *) gl_cv_func_frexpl_works="guessing yes";;
10981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10982 /* end confdefs.h. */
10986 /* Override the values of <float.h>, like done in float.in.h. */
10987 #if defined __i386__ && (defined __BEOS__ || defined __OpenBSD__)
10988 # undef LDBL_MIN_EXP
10989 # define LDBL_MIN_EXP (-16381)
10991 #if defined __i386__ && defined __FreeBSD__
10992 # undef LDBL_MIN_EXP
10993 # define LDBL_MIN_EXP (-16381)
10995 #if (defined _ARCH_PPC || defined _POWER) && defined _AIX && (LDBL_MANT_DIG == 106) && defined __GNUC__
10996 # undef LDBL_MIN_EXP
10997 # define LDBL_MIN_EXP DBL_MIN_EXP
10999 #if defined __sgi && (LDBL_MANT_DIG >= 106)
11000 # if defined __GNUC__
11001 # undef LDBL_MIN_EXP
11002 # define LDBL_MIN_EXP DBL_MIN_EXP
11009 long double frexpl (long double, int *);
11013 volatile long double x;
11014 /* Test on finite numbers that fails on AIX 5.1. */
11022 /* Test on finite numbers that fails on Mac OS X 10.4, because its frexpl
11023 function returns an invalid (incorrectly normalized) value: it returns
11024 y = { 0x3fe028f5, 0xc28f5c28, 0x3c9eb851, 0xeb851eb8 }
11025 but the correct result is
11026 0.505L = { 0x3fe028f5, 0xc28f5c29, 0xbc547ae1, 0x47ae1480 } */
11030 long double y = frexpl (x, &exp);
11031 if (!(exp == 1 && y == 0.505L))
11034 /* Test on large finite numbers. This fails on BeOS at i = 16322, while
11035 LDBL_MAX_EXP = 16384.
11036 In the loop end test, we test x against Infinity, rather than comparing
11037 i with LDBL_MAX_EXP, because BeOS <float.h> has a wrong LDBL_MAX_EXP. */
11040 for (i = 1, x = 1.0L; x != x + x; i++, x *= 2.0L)
11051 /* Test on denormalized numbers. */
11054 for (i = 1, x = 1.0L; i >= LDBL_MIN_EXP; i--, x *= 0.5L)
11059 long double y = frexpl (x, &exp);
11060 /* On machines with IEEE854 arithmetic: x = 1.68105e-4932,
11061 exp = -16382, y = 0.5. On Mac OS X 10.5: exp = -16384, y = 0.5. */
11062 if (exp != LDBL_MIN_EXP - 1)
11066 /* Test on infinite numbers. */
11070 long double y = frexpl (x, &exp);
11077 if ac_fn_c_try_run "$LINENO"; then :
11078 gl_cv_func_frexpl_works=yes
11080 gl_cv_func_frexpl_works=no
11082 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11083 conftest.$ac_objext conftest.beam conftest.$ac_ext
11088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_works" >&5
11089 $as_echo "$gl_cv_func_frexpl_works" >&6; }
11092 case "$gl_cv_func_frexpl_works" in
11093 *yes) gl_func_frexpl=yes ;;
11094 *) gl_func_frexpl=no; REPLACE_FREXPL=1 ;;
11099 if test $gl_func_frexpl = yes; then
11101 $as_echo "#define HAVE_FREXPL 1" >>confdefs.h
11105 if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl = no; then
11106 if test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1; then
11108 FREXPL_LIBM="$FREXP_LIBM"
11115 if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl = no; then
11124 gl_LIBOBJS="$gl_LIBOBJS frexpl.$ac_objext"
11138 $as_echo "#define GNULIB_TEST_FREXPL 1" >>confdefs.h
11148 if test -n "$STDINT_H"; then
11149 PRIPTR_PREFIX='"l"'
11151 for glpfx in '' l ll I64; do
11153 '') gltype1='int';;
11154 l) gltype1='long int';;
11155 ll) gltype1='long long int';;
11156 I64) gltype1='__int64';;
11158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11159 /* end confdefs.h. */
11160 #include <stdint.h>
11161 extern intptr_t foo;
11162 extern $gltype1 foo;
11171 if ac_fn_c_try_compile "$LINENO"; then :
11172 PRIPTR_PREFIX='"'$glpfx'"'
11174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11175 test -n "$PRIPTR_PREFIX" && break
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5
11182 $as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
11183 if test "${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+set}" = set; then :
11184 $as_echo_n "(cached) " >&6
11186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11187 /* end confdefs.h. */
11188 /* Work also in C++ mode. */
11189 #define __STDC_LIMIT_MACROS 1
11191 /* Work if build is not clean. */
11192 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
11194 #include <limits.h>
11196 #include <stdint.h>
11199 #if defined INT32_MAX && defined INTMAX_MAX
11200 #define CONDITION (INT32_MAX < INTMAX_MAX)
11201 #elif HAVE_LONG_LONG_INT
11202 #define CONDITION (sizeof (int) < sizeof (long long int))
11204 #define CONDITION 0
11206 int test[CONDITION ? 1 : -1];
11215 if ac_fn_c_try_compile "$LINENO"; then :
11216 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=yes
11218 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=no
11220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
11223 $as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
11224 if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
11225 INT32_MAX_LT_INTMAX_MAX=1;
11227 INT32_MAX_LT_INTMAX_MAX=0;
11231 if test $APPLE_UNIVERSAL_BUILD = 0; then
11233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5
11234 $as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; }
11235 if test "${gl_cv_test_INT64_MAX_EQ_LONG_MAX+set}" = set; then :
11236 $as_echo_n "(cached) " >&6
11238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11239 /* end confdefs.h. */
11240 /* Work also in C++ mode. */
11241 #define __STDC_LIMIT_MACROS 1
11243 /* Work if build is not clean. */
11244 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
11246 #include <limits.h>
11248 #include <stdint.h>
11251 #if defined INT64_MAX
11252 #define CONDITION (INT64_MAX == LONG_MAX)
11253 #elif HAVE_LONG_LONG_INT
11254 #define CONDITION (sizeof (long long int) == sizeof (long int))
11256 #define CONDITION 0
11258 int test[CONDITION ? 1 : -1];
11267 if ac_fn_c_try_compile "$LINENO"; then :
11268 gl_cv_test_INT64_MAX_EQ_LONG_MAX=yes
11270 gl_cv_test_INT64_MAX_EQ_LONG_MAX=no
11272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
11275 $as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
11276 if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
11277 INT64_MAX_EQ_LONG_MAX=1;
11279 INT64_MAX_EQ_LONG_MAX=0;
11284 INT64_MAX_EQ_LONG_MAX=-1
11287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5
11288 $as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
11289 if test "${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+set}" = set; then :
11290 $as_echo_n "(cached) " >&6
11292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11293 /* end confdefs.h. */
11294 /* Work also in C++ mode. */
11295 #define __STDC_LIMIT_MACROS 1
11297 /* Work if build is not clean. */
11298 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
11300 #include <limits.h>
11302 #include <stdint.h>
11305 #if defined UINT32_MAX && defined UINTMAX_MAX
11306 #define CONDITION (UINT32_MAX < UINTMAX_MAX)
11307 #elif HAVE_LONG_LONG_INT
11308 #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
11310 #define CONDITION 0
11312 int test[CONDITION ? 1 : -1];
11321 if ac_fn_c_try_compile "$LINENO"; then :
11322 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=yes
11324 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=no
11326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
11329 $as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
11330 if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
11331 UINT32_MAX_LT_UINTMAX_MAX=1;
11333 UINT32_MAX_LT_UINTMAX_MAX=0;
11337 if test $APPLE_UNIVERSAL_BUILD = 0; then
11339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5
11340 $as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
11341 if test "${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+set}" = set; then :
11342 $as_echo_n "(cached) " >&6
11344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11345 /* end confdefs.h. */
11346 /* Work also in C++ mode. */
11347 #define __STDC_LIMIT_MACROS 1
11349 /* Work if build is not clean. */
11350 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
11352 #include <limits.h>
11354 #include <stdint.h>
11357 #if defined UINT64_MAX
11358 #define CONDITION (UINT64_MAX == ULONG_MAX)
11359 #elif HAVE_LONG_LONG_INT
11360 #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
11362 #define CONDITION 0
11364 int test[CONDITION ? 1 : -1];
11373 if ac_fn_c_try_compile "$LINENO"; then :
11374 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=yes
11376 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=no
11378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
11381 $as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
11382 if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
11383 UINT64_MAX_EQ_ULONG_MAX=1;
11385 UINT64_MAX_EQ_ULONG_MAX=0;
11390 UINT64_MAX_EQ_ULONG_MAX=-1
11397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(double) can be used without linking with libm" >&5
11398 $as_echo_n "checking whether isnan(double) can be used without linking with libm... " >&6; }
11399 if test "${gl_cv_func_isnand_no_libm+set}" = set; then :
11400 $as_echo_n "(cached) " >&6
11403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11404 /* end confdefs.h. */
11408 # define isnand(x) __builtin_isnan ((double)(x))
11411 # define isnand(x) isnan ((double)(x))
11422 if ac_fn_c_try_link "$LINENO"; then :
11423 gl_cv_func_isnand_no_libm=yes
11425 gl_cv_func_isnand_no_libm=no
11427 rm -f core conftest.err conftest.$ac_objext \
11428 conftest$ac_exeext conftest.$ac_ext
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnand_no_libm" >&5
11432 $as_echo "$gl_cv_func_isnand_no_libm" >&6; }
11434 gl_func_isnand_no_libm=$gl_cv_func_isnand_no_libm
11435 if test $gl_cv_func_isnand_no_libm = yes; then
11437 $as_echo "#define HAVE_ISNAND_IN_LIBC 1" >>confdefs.h
11441 if test $gl_func_isnand_no_libm != yes; then
11450 gl_LIBOBJS="$gl_LIBOBJS isnand.$ac_objext"
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(long double) can be used without linking with libm" >&5
11459 $as_echo_n "checking whether isnan(long double) can be used without linking with libm... " >&6; }
11460 if test "${gl_cv_func_isnanl_no_libm+set}" = set; then :
11461 $as_echo_n "(cached) " >&6
11464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11465 /* end confdefs.h. */
11469 # define isnanl(x) __builtin_isnanl ((long double)(x))
11470 #elif defined isnan
11472 # define isnanl(x) isnan ((long double)(x))
11483 if ac_fn_c_try_link "$LINENO"; then :
11484 gl_cv_func_isnanl_no_libm=yes
11486 gl_cv_func_isnanl_no_libm=no
11488 rm -f core conftest.err conftest.$ac_objext \
11489 conftest$ac_exeext conftest.$ac_ext
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_no_libm" >&5
11493 $as_echo "$gl_cv_func_isnanl_no_libm" >&6; }
11495 gl_func_isnanl_no_libm=$gl_cv_func_isnanl_no_libm
11496 if test $gl_func_isnanl_no_libm = yes; then
11501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnanl works" >&5
11502 $as_echo_n "checking whether isnanl works... " >&6; }
11503 if test "${gl_cv_func_isnanl_works+set}" = set; then :
11504 $as_echo_n "(cached) " >&6
11507 if test "$cross_compiling" = yes; then :
11508 case "$host_cpu" in
11509 # Guess no on ia64, x86_64, i386.
11510 ia64 | x86_64 | i*86) gl_cv_func_isnanl_works="guessing no";;
11513 netbsd*) gl_cv_func_isnanl_works="guessing no";;
11514 *) gl_cv_func_isnanl_works="guessing yes";;
11520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11521 /* end confdefs.h. */
11524 #include <limits.h>
11528 # define isnanl(x) __builtin_isnanl ((long double)(x))
11529 #elif defined isnan
11531 # define isnanl(x) isnan ((long double)(x))
11534 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
11535 typedef union { unsigned int word[NWORDS]; long double value; }
11536 memory_long_double;
11537 /* On Irix 6.5, gcc 3.4.3 can't compute compile-time NaN, and needs the
11538 runtime type conversion. */
11540 static long double NaNl ()
11543 return zero / zero;
11546 # define NaNl() (0.0L / 0.0L)
11552 if (!isnanl (NaNl ()))
11556 memory_long_double m;
11559 /* The isnanl function should be immune against changes in the sign bit and
11560 in the mantissa bits. The xor operation twiddles a bit that can only be
11561 a sign bit or a mantissa bit (since the exponent never extends to
11564 m.word[NWORDS / 2] ^= (unsigned int) 1 << (sizeof (unsigned int) * CHAR_BIT - 1);
11565 for (i = 0; i < NWORDS; i++)
11567 if (!isnanl (m.value))
11571 #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
11572 /* Representation of an 80-bit 'long double' as an initializer for a sequence
11573 of 'unsigned int' words. */
11574 # ifdef WORDS_BIGENDIAN
11575 # define LDBL80_WORDS(exponent,manthi,mantlo) \
11576 { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
11577 ((unsigned int) (manthi) << 16) | (unsigned int) (mantlo) >> 16), \
11578 (unsigned int) (mantlo) << 16 \
11581 # define LDBL80_WORDS(exponent,manthi,mantlo) \
11582 { mantlo, manthi, exponent }
11585 static memory_long_double x =
11586 { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) };
11587 if (!isnanl (x.value))
11591 /* Signalling NaN. */
11592 static memory_long_double x =
11593 { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) };
11594 if (!isnanl (x.value))
11597 /* The isnanl function should recognize Pseudo-NaNs, Pseudo-Infinities,
11598 Pseudo-Zeroes, Unnormalized Numbers, and Pseudo-Denormals, as defined in
11599 Intel IA-64 Architecture Software Developer's Manual, Volume 1:
11600 Application Architecture.
11601 Table 5-2 "Floating-Point Register Encodings"
11602 Figure 5-6 "Memory to Floating-Point Register Data Translation"
11604 { /* Pseudo-NaN. */
11605 static memory_long_double x =
11606 { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) };
11607 if (!isnanl (x.value))
11610 { /* Pseudo-Infinity. */
11611 static memory_long_double x =
11612 { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) };
11613 if (!isnanl (x.value))
11616 { /* Pseudo-Zero. */
11617 static memory_long_double x =
11618 { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) };
11619 if (!isnanl (x.value))
11622 { /* Unnormalized number. */
11623 static memory_long_double x =
11624 { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) };
11625 if (!isnanl (x.value))
11628 { /* Pseudo-Denormal. */
11629 static memory_long_double x =
11630 { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) };
11631 if (!isnanl (x.value))
11639 if ac_fn_c_try_run "$LINENO"; then :
11640 gl_cv_func_isnanl_works=yes
11642 gl_cv_func_isnanl_works=no
11644 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11645 conftest.$ac_objext conftest.beam conftest.$ac_ext
11650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_works" >&5
11651 $as_echo "$gl_cv_func_isnanl_works" >&6; }
11653 case "$gl_cv_func_isnanl_works" in
11655 *) gl_func_isnanl_no_libm=no ;;
11658 if test $gl_func_isnanl_no_libm = yes; then
11660 $as_echo "#define HAVE_ISNANL_IN_LIBC 1" >>confdefs.h
11664 if test $gl_func_isnanl_no_libm != yes; then
11673 gl_LIBOBJS="$gl_LIBOBJS isnanl.$ac_objext"
11678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'long double'" >&5
11679 $as_echo_n "checking where to find the exponent in a 'long double'... " >&6; }
11680 if test "${gl_cv_cc_long_double_expbit0+set}" = set; then :
11681 $as_echo_n "(cached) " >&6
11684 if test "$cross_compiling" = yes; then :
11686 gl_cv_cc_long_double_expbit0="unknown"
11689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11690 /* end confdefs.h. */
11693 #include <stddef.h>
11695 #include <string.h>
11697 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
11698 typedef union { long double value; unsigned int word[NWORDS]; }
11699 memory_long_double;
11700 static unsigned int ored_words[NWORDS];
11701 static unsigned int anded_words[NWORDS];
11702 static void add_to_ored_words (long double x)
11704 memory_long_double m;
11706 /* Clear it first, in case
11707 sizeof (long double) < sizeof (memory_long_double). */
11708 memset (&m, 0, sizeof (memory_long_double));
11710 for (i = 0; i < NWORDS; i++)
11712 ored_words[i] |= m.word[i];
11713 anded_words[i] &= m.word[i];
11719 FILE *fp = fopen ("conftest.out", "w");
11722 for (j = 0; j < NWORDS; j++)
11723 anded_words[j] = ~ (unsigned int) 0;
11724 add_to_ored_words (0.25L);
11725 add_to_ored_words (0.5L);
11726 add_to_ored_words (1.0L);
11727 add_to_ored_words (2.0L);
11728 add_to_ored_words (4.0L);
11729 /* Remove bits that are common (e.g. if representation of the first mantissa
11730 bit is explicit). */
11731 for (j = 0; j < NWORDS; j++)
11732 ored_words[j] &= ~anded_words[j];
11733 /* Now find the nonzero word. */
11734 for (j = 0; j < NWORDS; j++)
11735 if (ored_words[j] != 0)
11740 for (i = j + 1; i < NWORDS; i++)
11741 if (ored_words[i] != 0)
11743 fprintf (fp, "unknown");
11744 return (fclose (fp) != 0);
11747 if ((ored_words[j] >> i) & 1)
11749 fprintf (fp, "word %d bit %d", (int) j, (int) i);
11750 return (fclose (fp) != 0);
11753 fprintf (fp, "unknown");
11754 return (fclose (fp) != 0);
11758 if ac_fn_c_try_run "$LINENO"; then :
11759 gl_cv_cc_long_double_expbit0=`cat conftest.out`
11761 gl_cv_cc_long_double_expbit0="unknown"
11763 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11764 conftest.$ac_objext conftest.beam conftest.$ac_ext
11770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_long_double_expbit0" >&5
11771 $as_echo "$gl_cv_cc_long_double_expbit0" >&6; }
11772 case "$gl_cv_cc_long_double_expbit0" in
11774 word=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
11775 bit=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word.*bit //'`
11777 cat >>confdefs.h <<_ACEOF
11778 #define LDBL_EXPBIT0_WORD $word
11782 cat >>confdefs.h <<_ACEOF
11783 #define LDBL_EXPBIT0_BIT $bit
11800 LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
11813 if test $gl_cv_have_include_next = yes; then
11814 gl_cv_next_math_h='<'math.h'>'
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <math.h>" >&5
11817 $as_echo_n "checking absolute name of <math.h>... " >&6; }
11818 if test "${gl_cv_next_math_h+set}" = set; then :
11819 $as_echo_n "(cached) " >&6
11822 if test $ac_cv_header_math_h = yes; then
11825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11826 /* end confdefs.h. */
11831 aix*) gl_absname_cpp="$ac_cpp -C" ;;
11832 *) gl_absname_cpp="$ac_cpp" ;;
11837 gl_dirsep_regex='[/\\]'
11840 gl_dirsep_regex='\/'
11843 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
11845 gl_header_literal_regex=`echo 'math.h' \
11846 | sed -e "$gl_make_literal_regex_sed"`
11847 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11848 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11853 gl_cv_next_math_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11854 sed -n "$gl_absolute_header_sed"`'"'
11856 gl_cv_next_math_h='<'math.h'>'
11861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_math_h" >&5
11862 $as_echo "$gl_cv_next_math_h" >&6; }
11864 NEXT_MATH_H=$gl_cv_next_math_h
11866 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11867 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11868 gl_next_as_first_directive='<'math.h'>'
11870 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11871 gl_next_as_first_directive=$gl_cv_next_math_h
11873 NEXT_AS_FIRST_DIRECTIVE_MATH_H=$gl_next_as_first_directive
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NAN macro works" >&5
11880 $as_echo_n "checking whether NAN macro works... " >&6; }
11881 if test "${gl_cv_header_math_nan_works+set}" = set; then :
11882 $as_echo_n "(cached) " >&6
11884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11885 /* end confdefs.h. */
11890 /* Solaris 10 has a broken definition of NAN. Other platforms
11891 fail to provide NAN, or provide it only in C99 mode; this
11892 test only needs to fail when NAN is provided but wrong. */
11902 if ac_fn_c_try_compile "$LINENO"; then :
11903 gl_cv_header_math_nan_works=yes
11905 gl_cv_header_math_nan_works=no
11907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_nan_works" >&5
11910 $as_echo "$gl_cv_header_math_nan_works" >&6; }
11911 if test $gl_cv_header_math_nan_works = no; then
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether HUGE_VAL works" >&5
11915 $as_echo_n "checking whether HUGE_VAL works... " >&6; }
11916 if test "${gl_cv_header_math_huge_val_works+set}" = set; then :
11917 $as_echo_n "(cached) " >&6
11919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11920 /* end confdefs.h. */
11925 /* Solaris 10 has a broken definition of HUGE_VAL. */
11926 double d = HUGE_VAL;
11932 if ac_fn_c_try_compile "$LINENO"; then :
11933 gl_cv_header_math_huge_val_works=yes
11935 gl_cv_header_math_huge_val_works=no
11937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_huge_val_works" >&5
11940 $as_echo "$gl_cv_header_math_huge_val_works" >&6; }
11941 if test $gl_cv_header_math_huge_val_works = no; then
11946 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
11947 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
11949 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
11950 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
11951 $as_echo_n "(cached) " >&6
11953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11954 /* end confdefs.h. */
11965 if ac_fn_c_try_compile "$LINENO"; then :
11966 eval "$as_gl_Symbol=yes"
11968 eval "$as_gl_Symbol=no"
11970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11972 eval ac_res=\$$as_gl_Symbol
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11974 $as_echo "$ac_res" >&6; }
11975 eval as_val=\$$as_gl_Symbol
11976 if test "x$as_val" = x""yes; then :
11977 cat >>confdefs.h <<_ACEOF
11978 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
11981 eval ac_cv_have_decl_$gl_func=yes
11996 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
12001 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
12002 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
12003 $as_echo_n "(cached) " >&6
12007 # Guess no on AIX and OSF/1.
12008 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
12009 # Guess yes otherwise.
12010 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
12012 if test $LOCALE_JA != none; then
12013 if test "$cross_compiling" = yes; then :
12016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12017 /* end confdefs.h. */
12019 #include <locale.h>
12020 #include <string.h>
12021 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12023 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12024 included before <wchar.h>. */
12025 #include <stddef.h>
12031 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
12033 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
12037 memset (&state, '\0', sizeof (mbstate_t));
12038 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
12039 if (mbsinit (&state))
12045 if ac_fn_c_try_run "$LINENO"; then :
12046 gl_cv_func_mbrtowc_incomplete_state=yes
12048 gl_cv_func_mbrtowc_incomplete_state=no
12050 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12051 conftest.$ac_objext conftest.beam conftest.$ac_ext
12057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
12058 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
12063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
12064 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
12065 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
12066 $as_echo_n "(cached) " >&6
12070 # Guess no on Solaris 8.
12071 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
12072 # Guess yes otherwise.
12073 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
12075 if test $LOCALE_ZH_CN != none; then
12076 if test "$cross_compiling" = yes; then :
12079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12080 /* end confdefs.h. */
12082 #include <locale.h>
12083 #include <stdlib.h>
12084 #include <string.h>
12085 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12087 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12088 included before <wchar.h>. */
12089 #include <stddef.h>
12095 /* This fails on Solaris 8:
12096 mbrtowc returns 2, and sets wc to 0x00F0.
12097 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
12098 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
12100 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
12104 memset (&state, '\0', sizeof (mbstate_t));
12105 if (mbrtowc (&wc, input + 3, 6, &state) != 4
12106 && mbtowc (&wc, input + 3, 6) == 4)
12112 if ac_fn_c_try_run "$LINENO"; then :
12113 gl_cv_func_mbrtowc_sanitycheck=yes
12115 gl_cv_func_mbrtowc_sanitycheck=no
12117 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12118 conftest.$ac_objext conftest.beam conftest.$ac_ext
12124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
12125 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
12127 REPLACE_MBSTATE_T=0
12128 case "$gl_cv_func_mbrtowc_incomplete_state" in
12130 *) REPLACE_MBSTATE_T=1 ;;
12132 case "$gl_cv_func_mbrtowc_sanitycheck" in
12134 *) REPLACE_MBSTATE_T=1 ;;
12137 REPLACE_MBSTATE_T=1
12142 if test $ac_cv_func_mbrtowc = no; then
12144 ac_fn_c_check_decl "$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" "
12145 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12147 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12148 included before <wchar.h>. */
12149 #include <stddef.h>
12155 if test "x$ac_cv_have_decl_mbrtowc" = x""yes; then :
12161 cat >>confdefs.h <<_ACEOF
12162 #define HAVE_DECL_MBRTOWC $ac_have_decl
12165 if test $ac_cv_have_decl_mbrtowc = yes; then
12169 if test $REPLACE_MBSTATE_T = 1; then
12175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL pwc argument" >&5
12176 $as_echo_n "checking whether mbrtowc handles a NULL pwc argument... " >&6; }
12177 if test "${gl_cv_func_mbrtowc_null_arg1+set}" = set; then :
12178 $as_echo_n "(cached) " >&6
12182 # Guess no on Solaris.
12183 solaris*) gl_cv_func_mbrtowc_null_arg1="guessing no" ;;
12184 # Guess yes otherwise.
12185 *) gl_cv_func_mbrtowc_null_arg1="guessing yes" ;;
12187 if test $LOCALE_FR_UTF8 != none; then
12188 if test "$cross_compiling" = yes; then :
12191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12192 /* end confdefs.h. */
12194 #include <locale.h>
12195 #include <stdlib.h>
12196 #include <string.h>
12197 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12199 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12200 included before <wchar.h>. */
12201 #include <stddef.h>
12209 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
12211 char input[] = "\303\237er";
12216 memset (&state, '\0', sizeof (mbstate_t));
12217 wc = (wchar_t) 0xBADFACE;
12218 ret = mbrtowc (&wc, input, 5, &state);
12221 if (!mbsinit (&state))
12224 memset (&state, '\0', sizeof (mbstate_t));
12225 ret = mbrtowc (NULL, input, 5, &state);
12226 if (ret != 2) /* Solaris 7 fails here: ret is -1. */
12228 if (!mbsinit (&state))
12234 if ac_fn_c_try_run "$LINENO"; then :
12235 gl_cv_func_mbrtowc_null_arg1=yes
12237 gl_cv_func_mbrtowc_null_arg1=no
12239 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12240 conftest.$ac_objext conftest.beam conftest.$ac_ext
12246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg1" >&5
12247 $as_echo "$gl_cv_func_mbrtowc_null_arg1" >&6; }
12252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
12253 $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
12254 if test "${gl_cv_func_mbrtowc_null_arg2+set}" = set; then :
12255 $as_echo_n "(cached) " >&6
12259 # Guess no on OSF/1.
12260 osf*) gl_cv_func_mbrtowc_null_arg2="guessing no" ;;
12261 # Guess yes otherwise.
12262 *) gl_cv_func_mbrtowc_null_arg2="guessing yes" ;;
12264 if test $LOCALE_FR_UTF8 != none; then
12265 if test "$cross_compiling" = yes; then :
12268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12269 /* end confdefs.h. */
12271 #include <locale.h>
12272 #include <string.h>
12273 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12275 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12276 included before <wchar.h>. */
12277 #include <stddef.h>
12283 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
12289 memset (&state, '\0', sizeof (mbstate_t));
12290 wc = (wchar_t) 0xBADFACE;
12291 mbrtowc (&wc, NULL, 5, &state);
12292 /* Check that wc was not modified. */
12293 if (wc != (wchar_t) 0xBADFACE)
12299 if ac_fn_c_try_run "$LINENO"; then :
12300 gl_cv_func_mbrtowc_null_arg2=yes
12302 gl_cv_func_mbrtowc_null_arg2=no
12304 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12305 conftest.$ac_objext conftest.beam conftest.$ac_ext
12311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg2" >&5
12312 $as_echo "$gl_cv_func_mbrtowc_null_arg2" >&6; }
12319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
12320 $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
12321 if test "${gl_cv_func_mbrtowc_retval+set}" = set; then :
12322 $as_echo_n "(cached) " >&6
12326 # Guess no on HP-UX, Solaris, native Windows.
12327 hpux* | solaris* | mingw*) gl_cv_func_mbrtowc_retval="guessing no" ;;
12328 # Guess yes otherwise.
12329 *) gl_cv_func_mbrtowc_retval="guessing yes" ;;
12331 if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none \
12332 || { case "$host_os" in mingw*) true;; *) false;; esac; }; then
12333 if test "$cross_compiling" = yes; then :
12336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12337 /* end confdefs.h. */
12339 #include <locale.h>
12340 #include <string.h>
12341 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12343 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12344 included before <wchar.h>. */
12345 #include <stddef.h>
12352 int found_some_locale = 0;
12353 /* This fails on Solaris. */
12354 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
12356 char input[] = "B\303\274\303\237er"; /* "Büßer" */
12360 memset (&state, '\0', sizeof (mbstate_t));
12361 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
12364 if (mbrtowc (&wc, input + 2, 5, &state) != 1)
12367 found_some_locale = 1;
12369 /* This fails on HP-UX 11.11. */
12370 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
12372 char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
12376 memset (&state, '\0', sizeof (mbstate_t));
12377 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
12380 if (mbrtowc (&wc, input + 2, 5, &state) != 2)
12383 found_some_locale = 1;
12385 /* This fails on native Windows. */
12386 if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
12388 char input[] = "<\223\372\226\173\214\352>"; /* "<日本語>" */
12392 memset (&state, '\0', sizeof (mbstate_t));
12393 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
12396 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
12399 found_some_locale = 1;
12401 if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
12403 char input[] = "<\244\351\245\273\273\171>"; /* "<日本語>" */
12407 memset (&state, '\0', sizeof (mbstate_t));
12408 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
12411 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
12414 found_some_locale = 1;
12416 if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
12418 char input[] = "<\310\325\261\276\325\132>"; /* "<日本語>" */
12422 memset (&state, '\0', sizeof (mbstate_t));
12423 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
12426 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
12429 found_some_locale = 1;
12431 return (found_some_locale ? result : 77);
12434 if ac_fn_c_try_run "$LINENO"; then :
12435 gl_cv_func_mbrtowc_retval=yes
12437 if test $? != 77; then
12438 gl_cv_func_mbrtowc_retval=no
12442 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12443 conftest.$ac_objext conftest.beam conftest.$ac_ext
12449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
12450 $as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
12456 $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
12457 if test "${gl_cv_func_mbrtowc_nul_retval+set}" = set; then :
12458 $as_echo_n "(cached) " >&6
12462 # Guess no on Solaris 8 and 9.
12463 solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
12464 # Guess yes otherwise.
12465 *) gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
12467 if test $LOCALE_ZH_CN != none; then
12468 if test "$cross_compiling" = yes; then :
12471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12472 /* end confdefs.h. */
12474 #include <locale.h>
12475 #include <string.h>
12476 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12478 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12479 included before <wchar.h>. */
12480 #include <stddef.h>
12486 /* This fails on Solaris 8 and 9. */
12487 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
12492 memset (&state, '\0', sizeof (mbstate_t));
12493 if (mbrtowc (&wc, "", 1, &state) != 0)
12499 if ac_fn_c_try_run "$LINENO"; then :
12500 gl_cv_func_mbrtowc_nul_retval=yes
12502 gl_cv_func_mbrtowc_nul_retval=no
12504 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12505 conftest.$ac_objext conftest.beam conftest.$ac_ext
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
12512 $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
12514 case "$gl_cv_func_mbrtowc_null_arg1" in
12517 $as_echo "#define MBRTOWC_NULL_ARG1_BUG 1" >>confdefs.h
12522 case "$gl_cv_func_mbrtowc_null_arg2" in
12525 $as_echo "#define MBRTOWC_NULL_ARG2_BUG 1" >>confdefs.h
12530 case "$gl_cv_func_mbrtowc_retval" in
12533 $as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
12538 case "$gl_cv_func_mbrtowc_nul_retval" in
12541 $as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
12549 if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
12558 gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext"
12575 $as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
12590 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
12594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
12595 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
12596 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
12597 $as_echo_n "(cached) " >&6
12601 # Guess no on AIX and OSF/1.
12602 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
12603 # Guess yes otherwise.
12604 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
12606 if test $LOCALE_JA != none; then
12607 if test "$cross_compiling" = yes; then :
12610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12611 /* end confdefs.h. */
12613 #include <locale.h>
12614 #include <string.h>
12615 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12617 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12618 included before <wchar.h>. */
12619 #include <stddef.h>
12625 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
12627 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
12631 memset (&state, '\0', sizeof (mbstate_t));
12632 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
12633 if (mbsinit (&state))
12639 if ac_fn_c_try_run "$LINENO"; then :
12640 gl_cv_func_mbrtowc_incomplete_state=yes
12642 gl_cv_func_mbrtowc_incomplete_state=no
12644 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12645 conftest.$ac_objext conftest.beam conftest.$ac_ext
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
12652 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
12657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
12658 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
12659 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
12660 $as_echo_n "(cached) " >&6
12664 # Guess no on Solaris 8.
12665 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
12666 # Guess yes otherwise.
12667 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
12669 if test $LOCALE_ZH_CN != none; then
12670 if test "$cross_compiling" = yes; then :
12673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12674 /* end confdefs.h. */
12676 #include <locale.h>
12677 #include <stdlib.h>
12678 #include <string.h>
12679 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12681 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12682 included before <wchar.h>. */
12683 #include <stddef.h>
12689 /* This fails on Solaris 8:
12690 mbrtowc returns 2, and sets wc to 0x00F0.
12691 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
12692 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
12694 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
12698 memset (&state, '\0', sizeof (mbstate_t));
12699 if (mbrtowc (&wc, input + 3, 6, &state) != 4
12700 && mbtowc (&wc, input + 3, 6) == 4)
12706 if ac_fn_c_try_run "$LINENO"; then :
12707 gl_cv_func_mbrtowc_sanitycheck=yes
12709 gl_cv_func_mbrtowc_sanitycheck=no
12711 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12712 conftest.$ac_objext conftest.beam conftest.$ac_ext
12718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
12719 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
12721 REPLACE_MBSTATE_T=0
12722 case "$gl_cv_func_mbrtowc_incomplete_state" in
12724 *) REPLACE_MBSTATE_T=1 ;;
12726 case "$gl_cv_func_mbrtowc_sanitycheck" in
12728 *) REPLACE_MBSTATE_T=1 ;;
12731 REPLACE_MBSTATE_T=1
12736 if test $ac_cv_func_mbsinit = no; then
12738 ac_fn_c_check_decl "$LINENO" "mbsinit" "ac_cv_have_decl_mbsinit" "
12739 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12741 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12742 included before <wchar.h>. */
12743 #include <stddef.h>
12749 if test "x$ac_cv_have_decl_mbsinit" = x""yes; then :
12755 cat >>confdefs.h <<_ACEOF
12756 #define HAVE_DECL_MBSINIT $ac_have_decl
12759 if test $ac_cv_have_decl_mbsinit = yes; then
12763 if test $REPLACE_MBSTATE_T = 1; then
12767 mingw*) REPLACE_MBSINIT=1 ;;
12772 if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
12781 gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext"
12798 $as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
12812 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
12816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
12817 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
12818 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
12819 $as_echo_n "(cached) " >&6
12823 # Guess no on AIX and OSF/1.
12824 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
12825 # Guess yes otherwise.
12826 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
12828 if test $LOCALE_JA != none; then
12829 if test "$cross_compiling" = yes; then :
12832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12833 /* end confdefs.h. */
12835 #include <locale.h>
12836 #include <string.h>
12837 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12839 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12840 included before <wchar.h>. */
12841 #include <stddef.h>
12847 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
12849 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
12853 memset (&state, '\0', sizeof (mbstate_t));
12854 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
12855 if (mbsinit (&state))
12861 if ac_fn_c_try_run "$LINENO"; then :
12862 gl_cv_func_mbrtowc_incomplete_state=yes
12864 gl_cv_func_mbrtowc_incomplete_state=no
12866 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12867 conftest.$ac_objext conftest.beam conftest.$ac_ext
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
12874 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
12879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
12880 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
12881 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
12882 $as_echo_n "(cached) " >&6
12886 # Guess no on Solaris 8.
12887 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
12888 # Guess yes otherwise.
12889 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
12891 if test $LOCALE_ZH_CN != none; then
12892 if test "$cross_compiling" = yes; then :
12895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12896 /* end confdefs.h. */
12898 #include <locale.h>
12899 #include <stdlib.h>
12900 #include <string.h>
12901 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12903 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12904 included before <wchar.h>. */
12905 #include <stddef.h>
12911 /* This fails on Solaris 8:
12912 mbrtowc returns 2, and sets wc to 0x00F0.
12913 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
12914 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
12916 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
12920 memset (&state, '\0', sizeof (mbstate_t));
12921 if (mbrtowc (&wc, input + 3, 6, &state) != 4
12922 && mbtowc (&wc, input + 3, 6) == 4)
12928 if ac_fn_c_try_run "$LINENO"; then :
12929 gl_cv_func_mbrtowc_sanitycheck=yes
12931 gl_cv_func_mbrtowc_sanitycheck=no
12933 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12934 conftest.$ac_objext conftest.beam conftest.$ac_ext
12940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
12941 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
12943 REPLACE_MBSTATE_T=0
12944 case "$gl_cv_func_mbrtowc_incomplete_state" in
12946 *) REPLACE_MBSTATE_T=1 ;;
12948 case "$gl_cv_func_mbrtowc_sanitycheck" in
12950 *) REPLACE_MBSTATE_T=1 ;;
12953 REPLACE_MBSTATE_T=1
12958 if test $ac_cv_func_mbsrtowcs = no; then
12960 ac_fn_c_check_decl "$LINENO" "mbsrtowcs" "ac_cv_have_decl_mbsrtowcs" "
12961 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12963 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12964 included before <wchar.h>. */
12965 #include <stddef.h>
12971 if test "x$ac_cv_have_decl_mbsrtowcs" = x""yes; then :
12977 cat >>confdefs.h <<_ACEOF
12978 #define HAVE_DECL_MBSRTOWCS $ac_have_decl
12981 if test $ac_cv_have_decl_mbsrtowcs = yes; then
12982 REPLACE_MBSRTOWCS=1
12985 if test $REPLACE_MBSTATE_T = 1; then
12986 REPLACE_MBSRTOWCS=1
12994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbsrtowcs works" >&5
12995 $as_echo_n "checking whether mbsrtowcs works... " >&6; }
12996 if test "${gl_cv_func_mbsrtowcs_works+set}" = set; then :
12997 $as_echo_n "(cached) " >&6
13001 # Guess no on HP-UX, Solaris, mingw.
13002 hpux* | solaris* | mingw*) gl_cv_func_mbsrtowcs_works="guessing no" ;;
13003 # Guess yes otherwise.
13004 *) gl_cv_func_mbsrtowcs_works="guessing yes" ;;
13006 if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
13007 if test "$cross_compiling" = yes; then :
13010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13011 /* end confdefs.h. */
13013 #include <locale.h>
13014 #include <string.h>
13015 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13017 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13018 included before <wchar.h>. */
13019 #include <stddef.h>
13026 /* Test whether the function supports a NULL destination argument.
13027 This fails on native Windows. */
13028 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
13030 const char input[] = "\337er";
13031 const char *src = input;
13034 memset (&state, '\0', sizeof (mbstate_t));
13035 if (mbsrtowcs (NULL, &src, 1, &state) != 3
13039 /* Test whether the function works when started with a conversion state
13040 in non-initial state. This fails on HP-UX 11.11 and Solaris 10. */
13041 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
13043 const char input[] = "B\303\274\303\237er";
13046 memset (&state, '\0', sizeof (mbstate_t));
13047 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
13048 if (!mbsinit (&state))
13050 const char *src = input + 2;
13051 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
13055 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
13057 const char input[] = "<\306\374\313\334\270\354>";
13060 memset (&state, '\0', sizeof (mbstate_t));
13061 if (mbrtowc (NULL, input + 3, 1, &state) == (size_t)(-2))
13062 if (!mbsinit (&state))
13064 const char *src = input + 4;
13065 if (mbsrtowcs (NULL, &src, 10, &state) != 3)
13069 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
13071 const char input[] = "B\250\271\201\060\211\070er";
13074 memset (&state, '\0', sizeof (mbstate_t));
13075 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
13076 if (!mbsinit (&state))
13078 const char *src = input + 2;
13079 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
13086 if ac_fn_c_try_run "$LINENO"; then :
13087 gl_cv_func_mbsrtowcs_works=yes
13089 gl_cv_func_mbsrtowcs_works=no
13091 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13092 conftest.$ac_objext conftest.beam conftest.$ac_ext
13098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbsrtowcs_works" >&5
13099 $as_echo "$gl_cv_func_mbsrtowcs_works" >&6; }
13101 case "$gl_cv_func_mbsrtowcs_works" in
13103 *) REPLACE_MBSRTOWCS=1 ;;
13108 if test $HAVE_MBSRTOWCS = 0 || test $REPLACE_MBSRTOWCS = 1; then
13117 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs.$ac_objext"
13127 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs-state.$ac_objext"
13144 $as_echo "#define GNULIB_TEST_MBSRTOWCS 1" >>confdefs.h
13149 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
13158 gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
13161 for ac_header in bp-sym.h
13163 ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
13164 if test "x$ac_cv_header_bp_sym_h" = x""yes; then :
13165 cat >>confdefs.h <<_ACEOF
13166 #define HAVE_BP_SYM_H 1
13186 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
13192 if test $HAVE_DECL_MEMMEM = 1 && test $REPLACE_MEMMEM = 0; then
13193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
13194 $as_echo_n "checking whether memmem works in linear time... " >&6; }
13195 if test "${gl_cv_func_memmem_works_fast+set}" = set; then :
13196 $as_echo_n "(cached) " >&6
13198 if test "$cross_compiling" = yes; then :
13199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13200 /* end confdefs.h. */
13202 #include <features.h>
13203 #ifdef __GNU_LIBRARY__
13204 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)) \
13205 && !defined __UCLIBC__
13210 #include <cygwin/version.h>
13211 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 0)
13217 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13218 $EGREP "Lucky user" >/dev/null 2>&1; then :
13219 gl_cv_func_memmem_works_fast="guessing yes"
13221 gl_cv_func_memmem_works_fast="guessing no"
13227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13228 /* end confdefs.h. */
13230 #include <signal.h> /* for signal */
13231 #include <string.h> /* for memmem */
13232 #include <stdlib.h> /* for malloc */
13233 #include <unistd.h> /* for alarm */
13234 static void quit (int sig) { exit (sig + 128); }
13241 size_t m = 1000000;
13242 char *haystack = (char *) malloc (2 * m + 1);
13243 char *needle = (char *) malloc (m + 1);
13244 /* Failure to compile this test due to missing alarm is okay,
13245 since all such platforms (mingw) also lack memmem. */
13246 signal (SIGALRM, quit);
13248 /* Check for quadratic performance. */
13249 if (haystack && needle)
13251 memset (haystack, 'A', 2 * m);
13252 haystack[2 * m] = 'B';
13253 memset (needle, 'A', m);
13255 if (!memmem (haystack, 2 * m + 1, needle, m + 1))
13264 if ac_fn_c_try_run "$LINENO"; then :
13265 gl_cv_func_memmem_works_fast=yes
13267 gl_cv_func_memmem_works_fast=no
13269 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13270 conftest.$ac_objext conftest.beam conftest.$ac_ext
13275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_fast" >&5
13276 $as_echo "$gl_cv_func_memmem_works_fast" >&6; }
13277 case "$gl_cv_func_memmem_works_fast" in
13285 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
13294 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
13301 for ac_func in memmem
13303 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
13304 if test "x$ac_cv_func_memmem" = x""yes; then :
13305 cat >>confdefs.h <<_ACEOF
13306 #define HAVE_MEMMEM 1
13312 if test $ac_cv_func_memmem = yes; then
13318 if test $ac_cv_have_decl_memmem = no; then
13321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
13322 $as_echo_n "checking whether memmem works... " >&6; }
13323 if test "${gl_cv_func_memmem_works_always+set}" = set; then :
13324 $as_echo_n "(cached) " >&6
13326 if test "$cross_compiling" = yes; then :
13327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13328 /* end confdefs.h. */
13330 #ifdef __GNU_LIBRARY__
13331 #include <features.h>
13332 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
13333 || __GLIBC_MINOR__ > 12)) \
13334 || (__GLIBC__ > 2)) \
13335 || defined __UCLIBC__
13338 #elif defined __CYGWIN__
13339 #include <cygwin/version.h>
13340 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
13348 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13349 $EGREP "Lucky user" >/dev/null 2>&1; then :
13350 gl_cv_func_memmem_works_always="guessing yes"
13352 gl_cv_func_memmem_works_always="guessing no"
13358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13359 /* end confdefs.h. */
13361 #include <string.h> /* for memmem */
13362 #define P "_EF_BF_BD"
13363 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
13364 #define NEEDLE P P P P P
13371 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
13373 /* Check for empty needle behavior. */
13375 const char *haystack = "AAA";
13376 if (memmem (haystack, 3, NULL, 0) != haystack)
13385 if ac_fn_c_try_run "$LINENO"; then :
13386 gl_cv_func_memmem_works_always=yes
13388 gl_cv_func_memmem_works_always=no
13390 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13391 conftest.$ac_objext conftest.beam conftest.$ac_ext
13396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
13397 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
13398 case "$gl_cv_func_memmem_works_always" in
13407 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
13416 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
13430 $as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
13439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
13440 $as_echo_n "checking for ssize_t... " >&6; }
13441 if test "${gt_cv_ssize_t+set}" = set; then :
13442 $as_echo_n "(cached) " >&6
13444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13445 /* end confdefs.h. */
13446 #include <sys/types.h>
13450 int x = sizeof (ssize_t *) + sizeof (ssize_t);
13456 if ac_fn_c_try_compile "$LINENO"; then :
13461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
13464 $as_echo "$gt_cv_ssize_t" >&6; }
13465 if test $gt_cv_ssize_t = no; then
13467 $as_echo "#define ssize_t int" >>confdefs.h
13474 # Define two additional variables used in the Makefile substitution.
13476 if test "$ac_cv_header_stdbool_h" = yes; then
13479 STDBOOL_H='stdbool.h'
13482 if test -n "$STDBOOL_H"; then
13483 GL_GENERATE_STDBOOL_H_TRUE=
13484 GL_GENERATE_STDBOOL_H_FALSE='#'
13486 GL_GENERATE_STDBOOL_H_TRUE='#'
13487 GL_GENERATE_STDBOOL_H_FALSE=
13491 if test "$ac_cv_type__Bool" = yes; then
13502 if test $gt_cv_c_wchar_t = no; then
13506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
13507 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
13508 if test "${gl_cv_decl_null_works+set}" = set; then :
13509 $as_echo_n "(cached) " >&6
13511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13512 /* end confdefs.h. */
13513 #include <stddef.h>
13514 int test[2 * (sizeof NULL == sizeof (void *)) -1];
13524 if ac_fn_c_try_compile "$LINENO"; then :
13525 gl_cv_decl_null_works=yes
13527 gl_cv_decl_null_works=no
13529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
13532 $as_echo "$gl_cv_decl_null_works" >&6; }
13533 if test $gl_cv_decl_null_works = no; then
13538 if test -n "$STDDEF_H"; then
13539 GL_GENERATE_STDDEF_H_TRUE=
13540 GL_GENERATE_STDDEF_H_FALSE='#'
13542 GL_GENERATE_STDDEF_H_TRUE='#'
13543 GL_GENERATE_STDDEF_H_FALSE=
13546 if test -n "$STDDEF_H"; then
13555 if test $gl_cv_have_include_next = yes; then
13556 gl_cv_next_stddef_h='<'stddef.h'>'
13558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
13559 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
13560 if test "${gl_cv_next_stddef_h+set}" = set; then :
13561 $as_echo_n "(cached) " >&6
13564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13565 /* end confdefs.h. */
13566 #include <stddef.h>
13570 aix*) gl_absname_cpp="$ac_cpp -C" ;;
13571 *) gl_absname_cpp="$ac_cpp" ;;
13576 gl_dirsep_regex='[/\\]'
13579 gl_dirsep_regex='\/'
13582 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
13584 gl_header_literal_regex=`echo 'stddef.h' \
13585 | sed -e "$gl_make_literal_regex_sed"`
13586 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
13587 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
13592 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13593 sed -n "$gl_absolute_header_sed"`'"'
13597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
13598 $as_echo "$gl_cv_next_stddef_h" >&6; }
13600 NEXT_STDDEF_H=$gl_cv_next_stddef_h
13602 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
13603 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13604 gl_next_as_first_directive='<'stddef.h'>'
13606 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13607 gl_next_as_first_directive=$gl_cv_next_stddef_h
13609 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
13622 if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
13623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
13624 $as_echo_n "checking for working strerror function... " >&6; }
13625 if test "${gl_cv_func_working_strerror+set}" = set; then :
13626 $as_echo_n "(cached) " >&6
13628 if test "$cross_compiling" = yes; then :
13630 # Guess yes on glibc systems.
13631 *-gnu*) gl_cv_func_working_strerror="guessing yes" ;;
13632 # If we don't know, assume the worst.
13633 *) gl_cv_func_working_strerror="guessing no" ;;
13637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13638 /* end confdefs.h. */
13639 #include <string.h>
13644 if (!*strerror (-2)) return 1;
13649 if ac_fn_c_try_run "$LINENO"; then :
13650 gl_cv_func_working_strerror=yes
13652 gl_cv_func_working_strerror=no
13654 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13655 conftest.$ac_objext conftest.beam conftest.$ac_ext
13660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
13661 $as_echo "$gl_cv_func_working_strerror" >&6; }
13662 case "$gl_cv_func_working_strerror" in
13673 if test $REPLACE_STRERROR = 1; then
13682 gl_LIBOBJS="$gl_LIBOBJS strerror.$ac_objext"
13687 cat >>confdefs.h <<_ACEOF
13688 #define GNULIB_STRERROR 1
13703 $as_echo "#define GNULIB_TEST_STRERROR 1" >>confdefs.h
13709 if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then
13718 gl_LIBOBJS="$gl_LIBOBJS strerror-override.$ac_objext"
13724 if test $ac_cv_header_sys_socket_h != yes; then
13725 for ac_header in winsock2.h
13727 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
13728 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
13729 cat >>confdefs.h <<_ACEOF
13730 #define HAVE_WINSOCK2_H 1
13738 if test "$ac_cv_header_winsock2_h" = yes; then
13740 UNISTD_H_HAVE_WINSOCK2_H=1
13741 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
13753 if test $REPLACE_STRSTR = 0; then
13754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works in linear time" >&5
13755 $as_echo_n "checking whether strstr works in linear time... " >&6; }
13756 if test "${gl_cv_func_strstr_linear+set}" = set; then :
13757 $as_echo_n "(cached) " >&6
13759 if test "$cross_compiling" = yes; then :
13760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13761 /* end confdefs.h. */
13763 #include <features.h>
13764 #ifdef __GNU_LIBRARY__
13765 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
13766 && !(defined __i386__ || defined __x86_64__) \
13767 && !defined __UCLIBC__
13772 #include <cygwin/version.h>
13773 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
13779 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13780 $EGREP "Lucky user" >/dev/null 2>&1; then :
13781 gl_cv_func_strstr_linear="guessing yes"
13783 gl_cv_func_strstr_linear="guessing no"
13789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13790 /* end confdefs.h. */
13792 #include <signal.h> /* for signal */
13793 #include <string.h> /* for strstr */
13794 #include <stdlib.h> /* for malloc */
13795 #include <unistd.h> /* for alarm */
13796 static void quit (int sig) { exit (sig + 128); }
13803 size_t m = 1000000;
13804 char *haystack = (char *) malloc (2 * m + 2);
13805 char *needle = (char *) malloc (m + 2);
13806 /* Failure to compile this test due to missing alarm is okay,
13807 since all such platforms (mingw) also have quadratic strstr. */
13808 signal (SIGALRM, quit);
13810 /* Check for quadratic performance. */
13811 if (haystack && needle)
13813 memset (haystack, 'A', 2 * m);
13814 haystack[2 * m] = 'B';
13815 haystack[2 * m + 1] = 0;
13816 memset (needle, 'A', m);
13819 if (!strstr (haystack, needle))
13828 if ac_fn_c_try_run "$LINENO"; then :
13829 gl_cv_func_strstr_linear=yes
13831 gl_cv_func_strstr_linear=no
13833 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13834 conftest.$ac_objext conftest.beam conftest.$ac_ext
13839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_linear" >&5
13840 $as_echo "$gl_cv_func_strstr_linear" >&6; }
13841 case "$gl_cv_func_strstr_linear" in
13849 if test $REPLACE_STRSTR = 1; then
13858 gl_LIBOBJS="$gl_LIBOBJS strstr.$ac_objext"
13864 if test "$gl_cv_func_memchr_works" != yes; then
13867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
13868 $as_echo_n "checking whether strstr works... " >&6; }
13869 if test "${gl_cv_func_strstr_works_always+set}" = set; then :
13870 $as_echo_n "(cached) " >&6
13872 if test "$cross_compiling" = yes; then :
13873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13874 /* end confdefs.h. */
13876 #ifdef __GNU_LIBRARY__
13877 #include <features.h>
13878 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
13879 || defined __UCLIBC__
13882 #elif defined __CYGWIN__
13883 #include <cygwin/version.h>
13884 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
13892 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13893 $EGREP "Lucky user" >/dev/null 2>&1; then :
13894 gl_cv_func_strstr_works_always="guessing yes"
13896 gl_cv_func_strstr_works_always="guessing no"
13902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13903 /* end confdefs.h. */
13905 #include <string.h> /* for strstr */
13906 #define P "_EF_BF_BD"
13907 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
13908 #define NEEDLE P P P P P
13913 return !!strstr (HAYSTACK, NEEDLE);
13919 if ac_fn_c_try_run "$LINENO"; then :
13920 gl_cv_func_strstr_works_always=yes
13922 gl_cv_func_strstr_works_always=no
13924 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13925 conftest.$ac_objext conftest.beam conftest.$ac_ext
13930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
13931 $as_echo "$gl_cv_func_strstr_works_always" >&6; }
13932 case "$gl_cv_func_strstr_works_always" in
13940 if test $REPLACE_STRSTR = 1; then
13949 gl_LIBOBJS="$gl_LIBOBJS strstr.$ac_objext"
13963 $as_echo "#define GNULIB_TEST_STRSTR 1" >>confdefs.h
13977 if test $gl_cv_have_include_next = yes; then
13978 gl_cv_next_sys_types_h='<'sys/types.h'>'
13980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
13981 $as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
13982 if test "${gl_cv_next_sys_types_h+set}" = set; then :
13983 $as_echo_n "(cached) " >&6
13986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13987 /* end confdefs.h. */
13988 #include <sys/types.h>
13992 aix*) gl_absname_cpp="$ac_cpp -C" ;;
13993 *) gl_absname_cpp="$ac_cpp" ;;
13998 gl_dirsep_regex='[/\\]'
14001 gl_dirsep_regex='\/'
14004 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14006 gl_header_literal_regex=`echo 'sys/types.h' \
14007 | sed -e "$gl_make_literal_regex_sed"`
14008 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14009 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14014 gl_cv_next_sys_types_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14015 sed -n "$gl_absolute_header_sed"`'"'
14019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
14020 $as_echo "$gl_cv_next_sys_types_h" >&6; }
14022 NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
14024 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14025 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14026 gl_next_as_first_directive='<'sys/types.h'>'
14028 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14029 gl_next_as_first_directive=$gl_cv_next_sys_types_h
14031 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
14057 if test $gl_cv_have_include_next = yes; then
14058 gl_cv_next_unistd_h='<'unistd.h'>'
14060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
14061 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
14062 if test "${gl_cv_next_unistd_h+set}" = set; then :
14063 $as_echo_n "(cached) " >&6
14066 if test $ac_cv_header_unistd_h = yes; then
14069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14070 /* end confdefs.h. */
14071 #include <unistd.h>
14075 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14076 *) gl_absname_cpp="$ac_cpp" ;;
14081 gl_dirsep_regex='[/\\]'
14084 gl_dirsep_regex='\/'
14087 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14089 gl_header_literal_regex=`echo 'unistd.h' \
14090 | sed -e "$gl_make_literal_regex_sed"`
14091 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14092 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14097 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14098 sed -n "$gl_absolute_header_sed"`'"'
14100 gl_cv_next_unistd_h='<'unistd.h'>'
14105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
14106 $as_echo "$gl_cv_next_unistd_h" >&6; }
14108 NEXT_UNISTD_H=$gl_cv_next_unistd_h
14110 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14111 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14112 gl_next_as_first_directive='<'unistd.h'>'
14114 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14115 gl_next_as_first_directive=$gl_cv_next_unistd_h
14117 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
14122 if test $ac_cv_header_unistd_h = yes; then
14134 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
14135 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
14136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
14137 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
14138 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
14139 $as_echo_n "(cached) " >&6
14141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14142 /* end confdefs.h. */
14145 # include <unistd.h>
14147 /* Some systems declare various items in the wrong headers. */
14148 #if !(defined __GLIBC__ && !defined __UCLIBC__)
14149 # include <fcntl.h>
14150 # include <stdio.h>
14151 # include <stdlib.h>
14152 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
14166 if ac_fn_c_try_compile "$LINENO"; then :
14167 eval "$as_gl_Symbol=yes"
14169 eval "$as_gl_Symbol=no"
14171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14173 eval ac_res=\$$as_gl_Symbol
14174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14175 $as_echo "$ac_res" >&6; }
14176 eval as_val=\$$as_gl_Symbol
14177 if test "x$as_val" = x""yes; then :
14178 cat >>confdefs.h <<_ACEOF
14179 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
14182 eval ac_cv_have_decl_$gl_func=yes
14199 if test $gl_cv_have_include_next = yes; then
14200 gl_cv_next_wchar_h='<'wchar.h'>'
14202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
14203 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
14204 if test "${gl_cv_next_wchar_h+set}" = set; then :
14205 $as_echo_n "(cached) " >&6
14208 if test $ac_cv_header_wchar_h = yes; then
14211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14212 /* end confdefs.h. */
14217 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14218 *) gl_absname_cpp="$ac_cpp" ;;
14223 gl_dirsep_regex='[/\\]'
14226 gl_dirsep_regex='\/'
14229 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14231 gl_header_literal_regex=`echo 'wchar.h' \
14232 | sed -e "$gl_make_literal_regex_sed"`
14233 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14234 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14239 gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14240 sed -n "$gl_absolute_header_sed"`'"'
14242 gl_cv_next_wchar_h='<'wchar.h'>'
14247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
14248 $as_echo "$gl_cv_next_wchar_h" >&6; }
14250 NEXT_WCHAR_H=$gl_cv_next_wchar_h
14252 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14253 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14254 gl_next_as_first_directive='<'wchar.h'>'
14256 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14257 gl_next_as_first_directive=$gl_cv_next_wchar_h
14259 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
14264 if test $ac_cv_header_wchar_h = yes; then
14274 if test $gt_cv_c_wint_t = yes; then
14282 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
14283 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
14284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
14285 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
14286 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
14287 $as_echo_n "(cached) " >&6
14289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14290 /* end confdefs.h. */
14292 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14294 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14295 included before <wchar.h>. */
14296 #if !(defined __GLIBC__ && !defined __UCLIBC__)
14297 # include <stddef.h>
14298 # include <stdio.h>
14312 if ac_fn_c_try_compile "$LINENO"; then :
14313 eval "$as_gl_Symbol=yes"
14315 eval "$as_gl_Symbol=no"
14317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14319 eval ac_res=\$$as_gl_Symbol
14320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14321 $as_echo "$ac_res" >&6; }
14322 eval as_val=\$$as_gl_Symbol
14323 if test "x$as_val" = x""yes; then :
14324 cat >>confdefs.h <<_ACEOF
14325 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
14328 eval ac_cv_have_decl_$gl_func=yes
14338 if test $ac_cv_func_iswcntrl = yes; then
14346 if test $gt_cv_c_wint_t = yes; then
14362 if test $gl_cv_have_include_next = yes; then
14363 gl_cv_next_wctype_h='<'wctype.h'>'
14365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
14366 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
14367 if test "${gl_cv_next_wctype_h+set}" = set; then :
14368 $as_echo_n "(cached) " >&6
14371 if test $ac_cv_header_wctype_h = yes; then
14374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14375 /* end confdefs.h. */
14376 #include <wctype.h>
14380 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14381 *) gl_absname_cpp="$ac_cpp" ;;
14386 gl_dirsep_regex='[/\\]'
14389 gl_dirsep_regex='\/'
14392 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14394 gl_header_literal_regex=`echo 'wctype.h' \
14395 | sed -e "$gl_make_literal_regex_sed"`
14396 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14397 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14402 gl_cv_next_wctype_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14403 sed -n "$gl_absolute_header_sed"`'"'
14405 gl_cv_next_wctype_h='<'wctype.h'>'
14410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
14411 $as_echo "$gl_cv_next_wctype_h" >&6; }
14413 NEXT_WCTYPE_H=$gl_cv_next_wctype_h
14415 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14416 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14417 gl_next_as_first_directive='<'wctype.h'>'
14419 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14420 gl_next_as_first_directive=$gl_cv_next_wctype_h
14422 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
14427 if test $ac_cv_header_wctype_h = yes; then
14428 if test $ac_cv_func_iswcntrl = yes; then
14429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
14430 $as_echo_n "checking whether iswcntrl works... " >&6; }
14431 if test "${gl_cv_func_iswcntrl_works+set}" = set; then :
14432 $as_echo_n "(cached) " >&6
14435 if test "$cross_compiling" = yes; then :
14436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14437 /* end confdefs.h. */
14438 #include <stdlib.h>
14439 #if __GNU_LIBRARY__ == 1
14440 Linux libc5 i18n is broken.
14450 if ac_fn_c_try_compile "$LINENO"; then :
14451 gl_cv_func_iswcntrl_works="guessing yes"
14453 gl_cv_func_iswcntrl_works="guessing no"
14455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14459 /* end confdefs.h. */
14461 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
14462 included before <wchar.h>.
14463 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
14464 must be included before <wchar.h>. */
14465 #include <stddef.h>
14469 #include <wctype.h>
14470 int main () { return iswprint ('x') == 0; }
14473 if ac_fn_c_try_run "$LINENO"; then :
14474 gl_cv_func_iswcntrl_works=yes
14476 gl_cv_func_iswcntrl_works=no
14478 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14479 conftest.$ac_objext conftest.beam conftest.$ac_ext
14484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
14485 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
14493 case "$gl_cv_func_iswcntrl_works" in
14494 *yes) REPLACE_ISWCNTRL=0 ;;
14495 *) REPLACE_ISWCNTRL=1 ;;
14499 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
14503 if test $REPLACE_ISWCNTRL = 1; then
14506 for ac_func in towlower
14508 ac_fn_c_check_func "$LINENO" "towlower" "ac_cv_func_towlower"
14509 if test "x$ac_cv_func_towlower" = x""yes; then :
14510 cat >>confdefs.h <<_ACEOF
14511 #define HAVE_TOWLOWER 1
14517 if test $ac_cv_func_towlower = yes; then
14520 ac_fn_c_check_decl "$LINENO" "towlower" "ac_cv_have_decl_towlower" "/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
14521 included before <wchar.h>.
14522 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
14523 must be included before <wchar.h>. */
14524 #include <stddef.h>
14529 # include <wctype.h>
14533 if test "x$ac_cv_have_decl_towlower" = x""yes; then :
14539 cat >>confdefs.h <<_ACEOF
14540 #define HAVE_DECL_TOWLOWER $ac_have_decl
14543 if test $ac_cv_have_decl_towlower = yes; then
14552 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_TOWLOWER = 1; then
14556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
14557 $as_echo_n "checking for wctype_t... " >&6; }
14558 if test "${gl_cv_type_wctype_t+set}" = set; then :
14559 $as_echo_n "(cached) " >&6
14561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14562 /* end confdefs.h. */
14563 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
14564 included before <wchar.h>.
14565 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
14566 must be included before <wchar.h>. */
14567 #include <stddef.h>
14572 # include <wctype.h>
14584 if ac_fn_c_try_compile "$LINENO"; then :
14585 gl_cv_type_wctype_t=yes
14587 gl_cv_type_wctype_t=no
14589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
14593 $as_echo "$gl_cv_type_wctype_t" >&6; }
14594 if test $gl_cv_type_wctype_t = no; then
14598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
14599 $as_echo_n "checking for wctrans_t... " >&6; }
14600 if test "${gl_cv_type_wctrans_t+set}" = set; then :
14601 $as_echo_n "(cached) " >&6
14603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14604 /* end confdefs.h. */
14605 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
14606 included before <wchar.h>.
14607 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
14608 must be included before <wchar.h>. */
14609 #include <stddef.h>
14613 #include <wctype.h>
14624 if ac_fn_c_try_compile "$LINENO"; then :
14625 gl_cv_type_wctrans_t=yes
14627 gl_cv_type_wctrans_t=no
14629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
14633 $as_echo "$gl_cv_type_wctrans_t" >&6; }
14634 if test $gl_cv_type_wctrans_t = no; then
14639 for gl_func in wctype iswctype wctrans towctrans ; do
14640 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
14641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
14642 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
14643 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
14644 $as_echo_n "(cached) " >&6
14646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14647 /* end confdefs.h. */
14649 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14651 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14652 included before <wchar.h>. */
14653 #if !(defined __GLIBC__ && !defined __UCLIBC__)
14654 # include <stddef.h>
14655 # include <stdio.h>
14657 # include <wchar.h>
14659 #include <wctype.h>
14670 if ac_fn_c_try_compile "$LINENO"; then :
14671 eval "$as_gl_Symbol=yes"
14673 eval "$as_gl_Symbol=no"
14675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14677 eval ac_res=\$$as_gl_Symbol
14678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14679 $as_echo "$ac_res" >&6; }
14680 eval as_val=\$$as_gl_Symbol
14681 if test "x$as_val" = x""yes; then :
14682 cat >>confdefs.h <<_ACEOF
14683 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
14686 eval ac_cv_have_decl_$gl_func=yes
14691 # End of code from modules
14712 gl_source_base='tests'
14713 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
14715 gl_module_indicator_condition=$gltests_WITNESS
14725 LIBGNU_LIBDEPS="$gl_libdeps"
14727 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
14731 # We don't use automake, but gnulib does. This line lets us generate
14733 am__api_version='1.11'
14735 # Find a good install program. We prefer a C program (faster),
14736 # so one script is as good as another. But avoid the broken or
14737 # incompatible versions:
14738 # SysV /etc/install, /usr/sbin/install
14739 # SunOS /usr/etc/install
14740 # IRIX /sbin/install
14742 # AmigaOS /C/install, which installs bootblocks on floppy discs
14743 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
14744 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
14745 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
14746 # OS/2's system install, which has a completely different semantic
14747 # ./install, which can be erroneously created by make from ./install.sh.
14748 # Reject install programs that cannot install multiple files.
14749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
14750 $as_echo_n "checking for a BSD-compatible install... " >&6; }
14751 if test -z "$INSTALL"; then
14752 if test "${ac_cv_path_install+set}" = set; then :
14753 $as_echo_n "(cached) " >&6
14755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14756 for as_dir in $PATH
14759 test -z "$as_dir" && as_dir=.
14760 # Account for people who put trailing slashes in PATH elements.
14761 case $as_dir/ in #((
14762 ./ | .// | /[cC]/* | \
14763 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
14764 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
14767 # OSF1 and SCO ODT 3.0 have their own names for install.
14768 # Don't use installbsd from OSF since it installs stuff as root
14770 for ac_prog in ginstall scoinst install; do
14771 for ac_exec_ext in '' $ac_executable_extensions; do
14772 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
14773 if test $ac_prog = install &&
14774 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14775 # AIX install. It has an incompatible calling convention.
14777 elif test $ac_prog = install &&
14778 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14779 # program-specific install script used by HP pwplus--don't use.
14782 rm -rf conftest.one conftest.two conftest.dir
14783 echo one > conftest.one
14784 echo two > conftest.two
14786 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
14787 test -s conftest.one && test -s conftest.two &&
14788 test -s conftest.dir/conftest.one &&
14789 test -s conftest.dir/conftest.two
14791 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
14804 rm -rf conftest.one conftest.two conftest.dir
14807 if test "${ac_cv_path_install+set}" = set; then
14808 INSTALL=$ac_cv_path_install
14810 # As a last resort, use the slow shell script. Don't cache a
14811 # value for INSTALL within a source directory, because that will
14812 # break other packages using the cache if that directory is
14813 # removed, or if the value is a relative name.
14814 INSTALL=$ac_install_sh
14817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
14818 $as_echo "$INSTALL" >&6; }
14820 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
14821 # It thinks the first close brace ends the variable substitution.
14822 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
14824 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
14826 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
14828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
14829 $as_echo_n "checking whether build environment is sane... " >&6; }
14832 echo timestamp > conftest.file
14833 # Reject unsafe characters in $srcdir or the absolute working directory
14834 # name. Accept space and tab only in the latter.
14838 *[\\\"\#\$\&\'\`$am_lf]*)
14839 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
14842 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
14843 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
14846 # Do `set' in a subshell so we don't clobber the current shell's
14847 # arguments. Must try -L first in case configure is actually a
14848 # symlink; some systems play weird games with the mod time of symlinks
14849 # (eg FreeBSD returns the mod time of the symlink's containing
14852 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
14853 if test "$*" = "X"; then
14855 set X `ls -t "$srcdir/configure" conftest.file`
14857 rm -f conftest.file
14858 if test "$*" != "X $srcdir/configure conftest.file" \
14859 && test "$*" != "X conftest.file $srcdir/configure"; then
14861 # If neither matched, then we have a broken ls. This can happen
14862 # if, for instance, CONFIG_SHELL is bash and it inherits a
14863 # broken ls alias from the environment. This has actually
14864 # happened. Such a system could not be considered "sane".
14865 as_fn_error "ls -t appears to fail. Make sure there is not a broken
14866 alias in your environment" "$LINENO" 5
14869 test "$2" = conftest.file
14875 as_fn_error "newly created file is older than distributed files!
14876 Check your system clock" "$LINENO" 5
14878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14879 $as_echo "yes" >&6; }
14880 test "$program_prefix" != NONE &&
14881 program_transform_name="s&^&$program_prefix&;$program_transform_name"
14882 # Use a double $ so make ignores it.
14883 test "$program_suffix" != NONE &&
14884 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
14885 # Double any \ or $.
14886 # By default was `s,x,x', remove it if useless.
14887 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
14888 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
14890 # expand $ac_aux_dir to an absolute path
14891 am_aux_dir=`cd $ac_aux_dir && pwd`
14893 if test x"${MISSING+set}" != xset; then
14894 case $am_aux_dir in
14896 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
14898 MISSING="\${SHELL} $am_aux_dir/missing" ;;
14901 # Use eval to expand $SHELL
14902 if eval "$MISSING --run true"; then
14903 am_missing_run="$MISSING --run "
14906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
14907 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
14910 if test x"${install_sh}" != xset; then
14911 case $am_aux_dir in
14913 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
14915 install_sh="\${SHELL} $am_aux_dir/install-sh"
14919 # Installed binaries are usually stripped using `strip' when the user
14920 # run `make install-strip'. However `strip' might not be the right
14921 # tool to use in cross-compilation environments, therefore Automake
14922 # will honor the `STRIP' environment variable to overrule this program.
14923 if test "$cross_compiling" != no; then
14924 if test -n "$ac_tool_prefix"; then
14925 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14926 set dummy ${ac_tool_prefix}strip; ac_word=$2
14927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14928 $as_echo_n "checking for $ac_word... " >&6; }
14929 if test "${ac_cv_prog_STRIP+set}" = set; then :
14930 $as_echo_n "(cached) " >&6
14932 if test -n "$STRIP"; then
14933 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14936 for as_dir in $PATH
14939 test -z "$as_dir" && as_dir=.
14940 for ac_exec_ext in '' $ac_executable_extensions; do
14941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14942 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14952 STRIP=$ac_cv_prog_STRIP
14953 if test -n "$STRIP"; then
14954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
14955 $as_echo "$STRIP" >&6; }
14957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14958 $as_echo "no" >&6; }
14963 if test -z "$ac_cv_prog_STRIP"; then
14965 # Extract the first word of "strip", so it can be a program name with args.
14966 set dummy strip; ac_word=$2
14967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14968 $as_echo_n "checking for $ac_word... " >&6; }
14969 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
14970 $as_echo_n "(cached) " >&6
14972 if test -n "$ac_ct_STRIP"; then
14973 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14976 for as_dir in $PATH
14979 test -z "$as_dir" && as_dir=.
14980 for ac_exec_ext in '' $ac_executable_extensions; do
14981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14982 ac_cv_prog_ac_ct_STRIP="strip"
14983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14992 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14993 if test -n "$ac_ct_STRIP"; then
14994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
14995 $as_echo "$ac_ct_STRIP" >&6; }
14997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14998 $as_echo "no" >&6; }
15001 if test "x$ac_ct_STRIP" = x; then
15004 case $cross_compiling:$ac_tool_warned in
15006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15007 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15008 ac_tool_warned=yes ;;
15013 STRIP="$ac_cv_prog_STRIP"
15017 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
15021 [\\/$]* | ?:[\\/]*) ;;
15022 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
15025 for ac_prog in gawk mawk nawk awk
15027 # Extract the first word of "$ac_prog", so it can be a program name with args.
15028 set dummy $ac_prog; ac_word=$2
15029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15030 $as_echo_n "checking for $ac_word... " >&6; }
15031 if test "${ac_cv_prog_AWK+set}" = set; then :
15032 $as_echo_n "(cached) " >&6
15034 if test -n "$AWK"; then
15035 ac_cv_prog_AWK="$AWK" # Let the user override the test.
15037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15038 for as_dir in $PATH
15041 test -z "$as_dir" && as_dir=.
15042 for ac_exec_ext in '' $ac_executable_extensions; do
15043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15044 ac_cv_prog_AWK="$ac_prog"
15045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15054 AWK=$ac_cv_prog_AWK
15055 if test -n "$AWK"; then
15056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
15057 $as_echo "$AWK" >&6; }
15059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15060 $as_echo "no" >&6; }
15064 test -n "$AWK" && break
15067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
15068 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
15070 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
15071 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
15072 $as_echo_n "(cached) " >&6
15074 cat >conftest.make <<\_ACEOF
15077 @echo '@@@%%%=$(MAKE)=@@@%%%'
15079 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
15080 case `${MAKE-make} -f conftest.make 2>/dev/null` in
15081 *@@@%%%=?*=@@@%%%*)
15082 eval ac_cv_prog_make_${ac_make}_set=yes;;
15084 eval ac_cv_prog_make_${ac_make}_set=no;;
15086 rm -f conftest.make
15088 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
15089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15090 $as_echo "yes" >&6; }
15093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15094 $as_echo "no" >&6; }
15095 SET_MAKE="MAKE=${MAKE-make}"
15098 rm -rf .tst 2>/dev/null
15099 mkdir .tst 2>/dev/null
15100 if test -d .tst; then
15105 rmdir .tst 2>/dev/null
15107 DEPDIR="${am__leading_dot}deps"
15109 ac_config_commands="$ac_config_commands depfiles"
15112 am_make=${MAKE-make}
15113 cat > confinc << 'END'
15115 @echo this is the am__doit target
15118 # If we don't find an include directive, just comment out the code.
15119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
15120 $as_echo_n "checking for style of include used by $am_make... " >&6; }
15124 # First try GNU make style include.
15125 echo "include confinc" > confmf
15126 # Ignore all kinds of additional output from `make'.
15127 case `$am_make -s -f confmf 2> /dev/null` in #(
15128 *the\ am__doit\ target*)
15129 am__include=include
15134 # Now try BSD make style include.
15135 if test "$am__include" = "#"; then
15136 echo '.include "confinc"' > confmf
15137 case `$am_make -s -f confmf 2> /dev/null` in #(
15138 *the\ am__doit\ target*)
15139 am__include=.include
15147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
15148 $as_echo "$_am_result" >&6; }
15149 rm -f confinc confmf
15151 # Check whether --enable-dependency-tracking was given.
15152 if test "${enable_dependency_tracking+set}" = set; then :
15153 enableval=$enable_dependency_tracking;
15156 if test "x$enable_dependency_tracking" != xno; then
15157 am_depcomp="$ac_aux_dir/depcomp"
15160 if test "x$enable_dependency_tracking" != xno; then
15169 if test "`cd $srcdir && pwd`" != "`pwd`"; then
15170 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
15171 # is not polluted with repeated "-I."
15172 am__isrc=' -I$(srcdir)'
15173 # test to see if srcdir already configured
15174 if test -f $srcdir/config.status; then
15175 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
15179 # test whether we have cygpath
15180 if test -z "$CYGPATH_W"; then
15181 if (cygpath --version) >/dev/null 2>/dev/null; then
15182 CYGPATH_W='cygpath -w'
15189 # Define the identity of the package.
15191 VERSION=UNUSED-VERSION
15194 # Some tools Automake needs.
15196 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
15199 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
15202 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
15205 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
15208 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
15210 # We need awk for the "check" target. The system "awk" is bad on
15212 # Always define AMTAR for backward compatibility.
15214 AMTAR=${AMTAR-"${am_missing_run}tar"}
15216 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
15221 depcc="$CC" am_compiler_list=
15223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
15224 $as_echo_n "checking dependency style of $depcc... " >&6; }
15225 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
15226 $as_echo_n "(cached) " >&6
15228 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
15229 # We make a subdir and do the tests there. Otherwise we can end up
15230 # making bogus files that we don't know about and never remove. For
15231 # instance it was reported that on HP-UX the gcc test will end up
15232 # making a dummy file named `D' -- because `-MD' means `put the output
15235 # Copy depcomp to subdir because otherwise we won't find it if we're
15236 # using a relative directory.
15237 cp "$am_depcomp" conftest.dir
15239 # We will build objects and dependencies in a subdirectory because
15240 # it helps to detect inapplicable dependency modes. For instance
15241 # both Tru64's cc and ICC support -MD to output dependencies as a
15242 # side effect of compilation, but ICC will put the dependencies in
15243 # the current directory while Tru64 will put them in the object
15247 am_cv_CC_dependencies_compiler_type=none
15248 if test "$am_compiler_list" = ""; then
15249 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
15251 am__universal=false
15252 case " $depcc " in #(
15253 *\ -arch\ *\ -arch\ *) am__universal=true ;;
15256 for depmode in $am_compiler_list; do
15257 # Setup a source with many dependencies, because some compilers
15258 # like to wrap large dependency lists on column 80 (with \), and
15259 # we should not choose a depcomp mode which is confused by this.
15261 # We need to recreate these files for each test, as the compiler may
15262 # overwrite some of them when testing with obscure command lines.
15263 # This happens at least with the AIX C compiler.
15265 for i in 1 2 3 4 5 6; do
15266 echo '#include "conftst'$i'.h"' >> sub/conftest.c
15267 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
15268 # Solaris 8's {/usr,}/bin/sh.
15269 touch sub/conftst$i.h
15271 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
15273 # We check with `-c' and `-o' for the sake of the "dashmstdout"
15274 # mode. It turns out that the SunPro C++ compiler does not properly
15275 # handle `-M -o', and we need to detect this. Also, some Intel
15276 # versions had trouble with output in subdirs
15277 am__obj=sub/conftest.${OBJEXT-o}
15278 am__minus_obj="-o $am__obj"
15281 # This depmode causes a compiler race in universal mode.
15282 test "$am__universal" = false || continue
15285 # after this tag, mechanisms are not by side-effect, so they'll
15286 # only be used when explicitly requested
15287 if test "x$enable_dependency_tracking" = xyes; then
15293 msvisualcpp | msvcmsys)
15294 # This compiler won't grok `-c -o', but also, the minuso test has
15295 # not run yet. These depmodes are late enough in the game, and
15296 # so weak that their functioning should not be impacted.
15297 am__obj=conftest.${OBJEXT-o}
15302 if depmode=$depmode \
15303 source=sub/conftest.c object=$am__obj \
15304 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
15305 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
15306 >/dev/null 2>conftest.err &&
15307 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
15308 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
15309 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
15310 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
15311 # icc doesn't choke on unknown options, it will just issue warnings
15312 # or remarks (even with -Werror). So we grep stderr for any message
15313 # that says an option was ignored or not supported.
15314 # When given -MP, icc 7.0 and 7.1 complain thusly:
15315 # icc: Command line warning: ignoring option '-M'; no argument required
15316 # The diagnosis changed in icc 8.0:
15317 # icc: Command line remark: option '-MP' not supported
15318 if (grep 'ignoring option' conftest.err ||
15319 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
15320 am_cv_CC_dependencies_compiler_type=$depmode
15327 rm -rf conftest.dir
15329 am_cv_CC_dependencies_compiler_type=none
15333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
15334 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
15335 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
15338 test "x$enable_dependency_tracking" != xno \
15339 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
15340 am__fastdepCC_TRUE=
15341 am__fastdepCC_FALSE='#'
15343 am__fastdepCC_TRUE='#'
15344 am__fastdepCC_FALSE=
15350 # --------------------- #
15351 # Checks for programs. #
15352 # --------------------- #
15355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
15356 $as_echo_n "checking whether ln -s works... " >&6; }
15358 if test "$LN_S" = "ln -s"; then
15359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15360 $as_echo "yes" >&6; }
15362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
15363 $as_echo "no, using $LN_S" >&6; }
15366 if test -n "$ac_tool_prefix"; then
15367 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
15368 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
15369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15370 $as_echo_n "checking for $ac_word... " >&6; }
15371 if test "${ac_cv_prog_RANLIB+set}" = set; then :
15372 $as_echo_n "(cached) " >&6
15374 if test -n "$RANLIB"; then
15375 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
15377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15378 for as_dir in $PATH
15381 test -z "$as_dir" && as_dir=.
15382 for ac_exec_ext in '' $ac_executable_extensions; do
15383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15384 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
15385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15394 RANLIB=$ac_cv_prog_RANLIB
15395 if test -n "$RANLIB"; then
15396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
15397 $as_echo "$RANLIB" >&6; }
15399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15400 $as_echo "no" >&6; }
15405 if test -z "$ac_cv_prog_RANLIB"; then
15406 ac_ct_RANLIB=$RANLIB
15407 # Extract the first word of "ranlib", so it can be a program name with args.
15408 set dummy ranlib; ac_word=$2
15409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15410 $as_echo_n "checking for $ac_word... " >&6; }
15411 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
15412 $as_echo_n "(cached) " >&6
15414 if test -n "$ac_ct_RANLIB"; then
15415 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
15417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15418 for as_dir in $PATH
15421 test -z "$as_dir" && as_dir=.
15422 for ac_exec_ext in '' $ac_executable_extensions; do
15423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15424 ac_cv_prog_ac_ct_RANLIB="ranlib"
15425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15434 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
15435 if test -n "$ac_ct_RANLIB"; then
15436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
15437 $as_echo "$ac_ct_RANLIB" >&6; }
15439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15440 $as_echo "no" >&6; }
15443 if test "x$ac_ct_RANLIB" = x; then
15446 case $cross_compiling:$ac_tool_warned in
15448 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15449 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15450 ac_tool_warned=yes ;;
15452 RANLIB=$ac_ct_RANLIB
15455 RANLIB="$ac_cv_prog_RANLIB"
15459 if test -n "$ac_tool_prefix"; then
15460 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
15461 set dummy ${ac_tool_prefix}ar; ac_word=$2
15462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15463 $as_echo_n "checking for $ac_word... " >&6; }
15464 if test "${ac_cv_prog_AR+set}" = set; then :
15465 $as_echo_n "(cached) " >&6
15467 if test -n "$AR"; then
15468 ac_cv_prog_AR="$AR" # Let the user override the test.
15470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15471 for as_dir in $PATH
15474 test -z "$as_dir" && as_dir=.
15475 for ac_exec_ext in '' $ac_executable_extensions; do
15476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15477 ac_cv_prog_AR="${ac_tool_prefix}ar"
15478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15488 if test -n "$AR"; then
15489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
15490 $as_echo "$AR" >&6; }
15492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15493 $as_echo "no" >&6; }
15498 if test -z "$ac_cv_prog_AR"; then
15500 # Extract the first word of "ar", so it can be a program name with args.
15501 set dummy ar; ac_word=$2
15502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15503 $as_echo_n "checking for $ac_word... " >&6; }
15504 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
15505 $as_echo_n "(cached) " >&6
15507 if test -n "$ac_ct_AR"; then
15508 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
15510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15511 for as_dir in $PATH
15514 test -z "$as_dir" && as_dir=.
15515 for ac_exec_ext in '' $ac_executable_extensions; do
15516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15517 ac_cv_prog_ac_ct_AR="ar"
15518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15527 ac_ct_AR=$ac_cv_prog_ac_ct_AR
15528 if test -n "$ac_ct_AR"; then
15529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
15530 $as_echo "$ac_ct_AR" >&6; }
15532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15533 $as_echo "no" >&6; }
15536 if test "x$ac_ct_AR" = x; then
15539 case $cross_compiling:$ac_tool_warned in
15541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15542 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15543 ac_tool_warned=yes ;;
15548 AR="$ac_cv_prog_AR"
15552 # ---------------------- #
15553 # Checks for libraries. #
15554 # ---------------------- #
15556 ac_config_files="$ac_config_files Makefile import/Makefile"
15558 ac_config_commands="$ac_config_commands default"
15560 cat >confcache <<\_ACEOF
15561 # This file is a shell script that caches the results of configure
15562 # tests run on this system so they can be shared between configure
15563 # scripts and configure runs, see configure's option --config-cache.
15564 # It is not useful on other systems. If it contains results you don't
15565 # want to keep, you may remove or edit it.
15567 # config.status only pays attention to the cache file if you give it
15568 # the --recheck option to rerun configure.
15570 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15571 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15572 # following values.
15576 # The following way of writing the cache mishandles newlines in values,
15577 # but we know of no workaround that is simple, portable, and efficient.
15578 # So, we kill variables containing newlines.
15579 # Ultrix sh set writes to stderr and can't be redirected directly,
15580 # and sets the high bit in the cache file unless we assign to the vars.
15582 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15583 eval ac_val=\$$ac_var
15587 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15588 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15591 _ | IFS | as_nl) ;; #(
15592 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15593 *) { eval $ac_var=; unset $ac_var;} ;;
15599 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15600 *${as_nl}ac_space=\ *)
15601 # `set' does not quote correctly, so add quotes: double-quote
15602 # substitution turns \\\\ into \\, and sed turns \\ into \.
15605 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15608 # `set' quotes correctly as required by POSIX, so do not add quotes.
15609 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15618 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15620 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15622 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15623 if test -w "$cache_file"; then
15624 test "x$cache_file" != "x/dev/null" &&
15625 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15626 $as_echo "$as_me: updating cache $cache_file" >&6;}
15627 cat confcache >$cache_file
15629 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15630 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15635 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15636 # Let make expand exec_prefix.
15637 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15639 DEFS=-DHAVE_CONFIG_H
15643 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15644 # 1. Remove the extension, and $U if already installed.
15645 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15646 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15647 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15648 # will be set to the directory where LIBOBJS objects are built.
15649 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15650 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15652 LIBOBJS=$ac_libobjs
15654 LTLIBOBJS=$ac_ltlibobjs
15657 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15658 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
15659 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15661 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
15662 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
15663 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15665 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
15666 as_fn_error "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
15667 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15669 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
15670 as_fn_error "conditional \"GL_GENERATE_ERRNO_H\" was never defined.
15671 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15673 if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
15674 as_fn_error "conditional \"GL_GENERATE_FLOAT_H\" was never defined.
15675 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15677 if test -z "${GL_GENERATE_FNMATCH_H_TRUE}" && test -z "${GL_GENERATE_FNMATCH_H_FALSE}"; then
15678 as_fn_error "conditional \"GL_GENERATE_FNMATCH_H\" was never defined.
15679 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15681 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
15682 as_fn_error "conditional \"GL_GENERATE_STDINT_H\" was never defined.
15683 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15687 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
15688 as_fn_error "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
15689 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15691 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
15692 as_fn_error "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
15693 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15698 if test -n "$gl_LIBOBJS"; then
15699 # Remove the extension.
15700 sed_drop_objext='s/\.o$//;s/\.obj$//'
15701 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
15702 gl_libobjs="$gl_libobjs $i.$ac_objext"
15703 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
15706 gl_LIBOBJS=$gl_libobjs
15708 gl_LTLIBOBJS=$gl_ltlibobjs
15714 if test -n "$gltests_LIBOBJS"; then
15715 # Remove the extension.
15716 sed_drop_objext='s/\.o$//;s/\.obj$//'
15717 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
15718 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
15719 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
15722 gltests_LIBOBJS=$gltests_libobjs
15724 gltests_LTLIBOBJS=$gltests_ltlibobjs
15727 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15728 as_fn_error "conditional \"AMDEP\" was never defined.
15729 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15731 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15732 as_fn_error "conditional \"am__fastdepCC\" was never defined.
15733 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15735 if test -n "$EXEEXT"; then
15737 am__EXEEXT_FALSE='#'
15739 am__EXEEXT_TRUE='#'
15744 : ${CONFIG_STATUS=./config.status}
15746 ac_clean_files_save=$ac_clean_files
15747 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15748 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15749 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15751 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15753 # Generated by $as_me.
15754 # Run this file to recreate the current configuration.
15755 # Compiler output produced by configure, useful for debugging
15756 # configure, is in config.log if it exists.
15759 ac_cs_recheck=false
15762 SHELL=\${CONFIG_SHELL-$SHELL}
15765 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15766 ## -------------------- ##
15767 ## M4sh Initialization. ##
15768 ## -------------------- ##
15770 # Be more Bourne compatible
15771 DUALCASE=1; export DUALCASE # for MKS sh
15772 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15775 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15776 # is contrary to our usage. Disable this feature.
15777 alias -g '${1+"$@"}'='"$@"'
15778 setopt NO_GLOB_SUBST
15780 case `(set -o) 2>/dev/null` in #(
15792 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15793 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15794 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15795 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15796 # Prefer a ksh shell builtin over an external printf program on Solaris,
15797 # but without wasting forks for bash or zsh.
15798 if test -z "$BASH_VERSION$ZSH_VERSION" \
15799 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15800 as_echo='print -r --'
15801 as_echo_n='print -rn --'
15802 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15803 as_echo='printf %s\n'
15804 as_echo_n='printf %s'
15806 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15807 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15808 as_echo_n='/usr/ucb/echo -n'
15810 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15811 as_echo_n_body='eval
15815 expr "X$arg" : "X\\(.*\\)$as_nl";
15816 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15818 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15820 export as_echo_n_body
15821 as_echo_n='sh -c $as_echo_n_body as_echo'
15823 export as_echo_body
15824 as_echo='sh -c $as_echo_body as_echo'
15827 # The user is always right.
15828 if test "${PATH_SEPARATOR+set}" != set; then
15830 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15831 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15838 # We need space, tab and new line, in precisely that order. Quoting is
15839 # there to prevent editors from complaining about space-tab.
15840 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15841 # splitting by setting IFS to empty value.)
15844 # Find who we are. Look in the path if we contain no directory separator.
15846 *[\\/]* ) as_myself=$0 ;;
15847 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15848 for as_dir in $PATH
15851 test -z "$as_dir" && as_dir=.
15852 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15858 # We did not find ourselves, most probably we were run as `sh COMMAND'
15859 # in which case we are not to be found in the path.
15860 if test "x$as_myself" = x; then
15863 if test ! -f "$as_myself"; then
15864 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15868 # Unset variables that we do not need and which cause bugs (e.g. in
15869 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15870 # suppresses any "Segmentation fault" message there. '((' could
15871 # trigger a bug in pdksh 5.2.14.
15872 for as_var in BASH_ENV ENV MAIL MAILPATH
15873 do eval test x\${$as_var+set} = xset \
15874 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15887 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15890 # as_fn_error ERROR [LINENO LOG_FD]
15891 # ---------------------------------
15892 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15893 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15894 # script with status $?, using 1 if that was 0.
15897 as_status=$?; test $as_status -eq 0 && as_status=1
15899 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15900 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15902 $as_echo "$as_me: error: $1" >&2
15903 as_fn_exit $as_status
15907 # as_fn_set_status STATUS
15908 # -----------------------
15909 # Set $? to STATUS, without forking.
15910 as_fn_set_status ()
15913 } # as_fn_set_status
15915 # as_fn_exit STATUS
15916 # -----------------
15917 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15921 as_fn_set_status $1
15927 # Portably unset VAR.
15930 { eval $1=; unset $1;}
15932 as_unset=as_fn_unset
15933 # as_fn_append VAR VALUE
15934 # ----------------------
15935 # Append the text in VALUE to the end of the definition contained in VAR. Take
15936 # advantage of any shell optimizations that allow amortized linear growth over
15937 # repeated appends, instead of the typical quadratic growth present in naive
15939 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15940 eval 'as_fn_append ()
15951 # as_fn_arith ARG...
15952 # ------------------
15953 # Perform arithmetic evaluation on the ARGs, and store the result in the
15954 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15955 # must be portable across $(()) and expr.
15956 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15957 eval 'as_fn_arith ()
15964 as_val=`expr "$@" || test $? -eq 1`
15969 if expr a : '\(a\)' >/dev/null 2>&1 &&
15970 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15976 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15977 as_basename=basename
15982 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15988 as_me=`$as_basename -- "$0" ||
15989 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15990 X"$0" : 'X\(//\)$' \| \
15991 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15993 sed '/^.*\/\([^/][^/]*\)\/*$/{
16007 # Avoid depending upon Character Ranges.
16008 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16009 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16010 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16011 as_cr_digits='0123456789'
16012 as_cr_alnum=$as_cr_Letters$as_cr_digits
16014 ECHO_C= ECHO_N= ECHO_T=
16015 case `echo -n x` in #(((((
16017 case `echo 'xy\c'` in
16018 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16020 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16027 rm -f conf$$ conf$$.exe conf$$.file
16028 if test -d conf$$.dir; then
16029 rm -f conf$$.dir/conf$$.file
16032 mkdir conf$$.dir 2>/dev/null
16034 if (echo >conf$$.file) 2>/dev/null; then
16035 if ln -s conf$$.file conf$$ 2>/dev/null; then
16037 # ... but there are two gotchas:
16038 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16039 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16040 # In both cases, we have to default to `cp -p'.
16041 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16043 elif ln conf$$.file conf$$ 2>/dev/null; then
16051 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16052 rmdir conf$$.dir 2>/dev/null
16057 # Create "$as_dir" as a directory, including parents if necessary.
16062 -*) as_dir=./$as_dir;;
16064 test -d "$as_dir" || eval $as_mkdir_p || {
16068 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16069 *) as_qdir=$as_dir;;
16071 as_dirs="'$as_qdir' $as_dirs"
16072 as_dir=`$as_dirname -- "$as_dir" ||
16073 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16074 X"$as_dir" : 'X\(//\)[^/]' \| \
16075 X"$as_dir" : 'X\(//\)$' \| \
16076 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16077 $as_echo X"$as_dir" |
16078 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16082 /^X\(\/\/\)[^/].*/{
16095 test -d "$as_dir" && break
16097 test -z "$as_dirs" || eval "mkdir $as_dirs"
16098 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16102 if mkdir -p . 2>/dev/null; then
16103 as_mkdir_p='mkdir -p "$as_dir"'
16105 test -d ./-p && rmdir ./-p
16109 if test -x / >/dev/null 2>&1; then
16110 as_test_x='test -x'
16112 if ls -dL / >/dev/null 2>&1; then
16119 if test -d "$1"; then
16125 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16126 ???[sx]*):;;*)false;;esac;fi
16130 as_executable_p=$as_test_x
16132 # Sed expression to map a string onto a valid CPP name.
16133 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16135 # Sed expression to map a string onto a valid variable name.
16136 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16140 ## ----------------------------------- ##
16141 ## Main body of $CONFIG_STATUS script. ##
16142 ## ----------------------------------- ##
16144 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16146 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16147 # Save the log message, to keep $0 and so on meaningful, and to
16148 # report actual input values of CONFIG_FILES etc. instead of their
16149 # values after options handling.
16151 This file was extended by $as_me, which was
16152 generated by GNU Autoconf 2.64. Invocation command line was
16154 CONFIG_FILES = $CONFIG_FILES
16155 CONFIG_HEADERS = $CONFIG_HEADERS
16156 CONFIG_LINKS = $CONFIG_LINKS
16157 CONFIG_COMMANDS = $CONFIG_COMMANDS
16160 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16165 case $ac_config_files in *"
16166 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16169 case $ac_config_headers in *"
16170 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16174 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16175 # Files that config.status was made for.
16176 config_files="$ac_config_files"
16177 config_headers="$ac_config_headers"
16178 config_commands="$ac_config_commands"
16182 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16184 \`$as_me' instantiates files and other configuration actions
16185 from templates according to the current configuration. Unless the files
16186 and actions are specified as TAGs, all are instantiated by default.
16188 Usage: $0 [OPTION]... [TAG]...
16190 -h, --help print this help, then exit
16191 -V, --version print version number and configuration settings, then exit
16192 -q, --quiet, --silent
16193 do not print progress messages
16194 -d, --debug don't remove temporary files
16195 --recheck update $as_me by reconfiguring in the same conditions
16196 --file=FILE[:TEMPLATE]
16197 instantiate the configuration file FILE
16198 --header=FILE[:TEMPLATE]
16199 instantiate the configuration header FILE
16201 Configuration files:
16204 Configuration headers:
16207 Configuration commands:
16210 Report bugs to the package provider."
16213 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16216 configured by $0, generated by GNU Autoconf 2.64,
16217 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16219 Copyright (C) 2009 Free Software Foundation, Inc.
16220 This config.status script is free software; the Free Software Foundation
16221 gives unlimited permission to copy, distribute and modify it."
16228 test -n "\$AWK" || AWK=awk
16231 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16232 # The default lists apply if the user does not specify any file.
16238 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16239 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16250 # Handling of the options.
16251 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16253 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16254 $as_echo "$ac_cs_version"; exit ;;
16255 --debug | --debu | --deb | --de | --d | -d )
16257 --file | --fil | --fi | --f )
16260 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16262 as_fn_append CONFIG_FILES " '$ac_optarg'"
16263 ac_need_defaults=false;;
16264 --header | --heade | --head | --hea )
16267 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16269 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16270 ac_need_defaults=false;;
16272 # Conflict between --help and --header
16273 as_fn_error "ambiguous option: \`$1'
16274 Try \`$0 --help' for more information.";;
16275 --help | --hel | -h )
16276 $as_echo "$ac_cs_usage"; exit ;;
16277 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16278 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16281 # This is an error.
16282 -*) as_fn_error "unrecognized option: \`$1'
16283 Try \`$0 --help' for more information." ;;
16285 *) as_fn_append ac_config_targets " $1"
16286 ac_need_defaults=false ;;
16292 ac_configure_extra_args=
16294 if $ac_cs_silent; then
16296 ac_configure_extra_args="$ac_configure_extra_args --silent"
16300 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16301 if \$ac_cs_recheck; then
16302 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16304 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16305 CONFIG_SHELL='$SHELL'
16306 export CONFIG_SHELL
16311 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16315 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16316 ## Running $as_me. ##
16322 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16326 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16330 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16332 # Handling of arguments.
16333 for ac_config_target in $ac_config_targets
16335 case $ac_config_target in
16336 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
16337 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16338 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16339 "import/Makefile") CONFIG_FILES="$CONFIG_FILES import/Makefile" ;;
16340 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16342 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16347 # If the user did not use the arguments to specify the items to instantiate,
16348 # then the envvar interface is used. Set only those that are not.
16349 # We use the long form for the default assignment because of an extremely
16350 # bizarre bug on SunOS 4.1.3.
16351 if $ac_need_defaults; then
16352 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16353 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16354 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16357 # Have a temporary directory for convenience. Make it in the build tree
16358 # simply because there is no reason against having it here, and in addition,
16359 # creating and moving files from /tmp can sometimes cause problems.
16360 # Hook for its removal unless debugging.
16361 # Note that there is a small window in which the directory will not be cleaned:
16362 # after its creation but before its name has been assigned to `$tmp'.
16366 trap 'exit_status=$?
16367 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16369 trap 'as_fn_exit 1' 1 2 13 15
16371 # Create a (secure) tmp directory for tmp files.
16374 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16375 test -n "$tmp" && test -d "$tmp"
16378 tmp=./conf$$-$RANDOM
16379 (umask 077 && mkdir "$tmp")
16380 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16382 # Set up the scripts for CONFIG_FILES section.
16383 # No need to generate them if there are no CONFIG_FILES.
16384 # This happens for instance with `./config.status config.h'.
16385 if test -n "$CONFIG_FILES"; then
16388 ac_cr=`echo X | tr X '\015'`
16389 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16390 # But we know of no other shell where ac_cr would be empty at this
16391 # point, so we can use a bashism as a fallback.
16392 if test "x$ac_cr" = x; then
16393 eval ac_cr=\$\'\\r\'
16395 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16396 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16399 ac_cs_awk_cr=$ac_cr
16402 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16407 echo "cat >conf$$subs.awk <<_ACEOF" &&
16408 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16410 } >conf$$subs.sh ||
16411 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16412 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16414 for ac_last_try in false false false false false :; do
16415 . ./conf$$subs.sh ||
16416 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16418 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16419 if test $ac_delim_n = $ac_delim_num; then
16421 elif $ac_last_try; then
16422 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16424 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16427 rm -f conf$$subs.sh
16429 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16430 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16434 s/^/S["/; s/!.*/"]=/
16444 s/\(.\{148\}\).*/\1/
16446 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16451 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16458 s/\(.\{148\}\).*/\1/
16460 s/["\\]/\\&/g; s/^/"/; s/$/"/
16464 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16469 ' <conf$$subs.awk | sed '
16474 ' >>$CONFIG_STATUS || ac_write_fail=1
16475 rm -f conf$$subs.awk
16476 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16478 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16479 for (key in S) S_is_set[key] = 1
16485 nfields = split(line, field, "@")
16487 len = length(field[1])
16488 for (i = 2; i < nfields; i++) {
16490 keylen = length(key)
16491 if (S_is_set[key]) {
16493 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16494 len += length(value) + length(field[++i])
16505 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16506 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16507 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16510 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16511 || as_fn_error "could not setup config files machinery" "$LINENO" 5
16514 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16515 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16516 # trailing colons and then remove the whole line if VPATH becomes empty
16517 # (actually we leave an empty line to preserve line numbers).
16518 if test "x$srcdir" = x.; then
16519 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16520 s/:*\$(srcdir):*/:/
16521 s/:*\${srcdir}:*/:/
16523 s/^\([^=]*=[ ]*\):*/\1/
16529 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16530 fi # test -n "$CONFIG_FILES"
16532 # Set up the scripts for CONFIG_HEADERS section.
16533 # No need to generate them if there are no CONFIG_HEADERS.
16534 # This happens for instance with `./config.status Makefile'.
16535 if test -n "$CONFIG_HEADERS"; then
16536 cat >"$tmp/defines.awk" <<\_ACAWK ||
16540 # Transform confdefs.h into an awk script `defines.awk', embedded as
16541 # here-document in config.status, that substitutes the proper values into
16542 # config.h.in to produce config.h.
16544 # Create a delimiter string that does not exist in confdefs.h, to ease
16545 # handling of long lines.
16547 for ac_last_try in false false :; do
16548 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16549 if test -z "$ac_t"; then
16551 elif $ac_last_try; then
16552 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16554 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16558 # For the awk script, D is an array of macro values keyed by name,
16559 # likewise P contains macro parameters if any. Preserve backslash
16560 # newline sequences.
16562 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16564 s/.\{148\}/&'"$ac_delim"'/g
16567 s/^[ ]*#[ ]*define[ ][ ]*/ /
16574 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16576 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16580 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16581 D["\1"]=" \3\\\\\\n"\\/p
16583 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16588 s/.\{148\}/&'"$ac_delim"'/g
16593 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16596 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16598 ' <confdefs.h | sed '
16599 s/'"$ac_delim"'/"\\\
16600 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16602 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16603 for (key in D) D_is_set[key] = 1
16606 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16608 split(line, arg, " ")
16609 if (arg[1] == "#") {
16613 defundef = substr(arg[1], 2)
16616 split(mac1, mac2, "(") #)
16618 prefix = substr(line, 1, index(line, defundef) - 1)
16619 if (D_is_set[macro]) {
16620 # Preserve the white space surrounding the "#".
16621 print prefix "define", macro P[macro] D[macro]
16624 # Replace #undef with comments. This is necessary, for example,
16625 # in the case of _POSIX_SOURCE, which is predefined and required
16626 # on some systems where configure will not decide to define it.
16627 if (defundef == "undef") {
16628 print "/*", prefix defundef, macro, "*/"
16636 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16637 as_fn_error "could not setup config headers machinery" "$LINENO" 5
16638 fi # test -n "$CONFIG_HEADERS"
16641 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16646 :[FHLC]) ac_mode=$ac_tag; continue;;
16648 case $ac_mode$ac_tag in
16650 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16651 :[FH]-) ac_tag=-:-;;
16652 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16669 -) ac_f="$tmp/stdin";;
16670 *) # Look for the file first in the build tree, then in the source tree
16671 # (if the path is not absolute). The absolute path cannot be DOS-style,
16672 # because $ac_f cannot contain `:'.
16676 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16678 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16680 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16681 as_fn_append ac_file_inputs " '$ac_f'"
16684 # Let's still pretend it is `configure' which instantiates (i.e., don't
16685 # use $as_me), people would be surprised to read:
16686 # /* config.h. Generated by config.status. */
16687 configure_input='Generated from '`
16688 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16690 if test x"$ac_file" != x-; then
16691 configure_input="$ac_file. $configure_input"
16692 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16693 $as_echo "$as_me: creating $ac_file" >&6;}
16695 # Neutralize special characters interpreted by sed in replacement strings.
16696 case $configure_input in #(
16697 *\&* | *\|* | *\\* )
16698 ac_sed_conf_input=`$as_echo "$configure_input" |
16699 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16700 *) ac_sed_conf_input=$configure_input;;
16704 *:-:* | *:-) cat >"$tmp/stdin" \
16705 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16710 ac_dir=`$as_dirname -- "$ac_file" ||
16711 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16712 X"$ac_file" : 'X\(//\)[^/]' \| \
16713 X"$ac_file" : 'X\(//\)$' \| \
16714 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16715 $as_echo X"$ac_file" |
16716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16720 /^X\(\/\/\)[^/].*/{
16733 as_dir="$ac_dir"; as_fn_mkdir_p
16737 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16739 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16740 # A ".." for each directory in $ac_dir_suffix.
16741 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16742 case $ac_top_builddir_sub in
16743 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16744 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16747 ac_abs_top_builddir=$ac_pwd
16748 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16749 # for backward compatibility:
16750 ac_top_builddir=$ac_top_build_prefix
16753 .) # We are building in place.
16755 ac_top_srcdir=$ac_top_builddir_sub
16756 ac_abs_top_srcdir=$ac_pwd ;;
16757 [\\/]* | ?:[\\/]* ) # Absolute name.
16758 ac_srcdir=$srcdir$ac_dir_suffix;
16759 ac_top_srcdir=$srcdir
16760 ac_abs_top_srcdir=$srcdir ;;
16761 *) # Relative name.
16762 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16763 ac_top_srcdir=$ac_top_build_prefix$srcdir
16764 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16766 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16776 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16777 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16779 ac_MKDIR_P=$MKDIR_P
16781 [\\/$]* | ?:[\\/]* ) ;;
16782 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16786 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16787 # If the template does not know about datarootdir, expand it.
16788 # FIXME: This hack should be removed a few years after 2.60.
16789 ac_datarootdir_hack=; ac_datarootdir_seen=
16800 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16801 *datarootdir*) ac_datarootdir_seen=yes;;
16802 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16804 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16806 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16807 ac_datarootdir_hack='
16808 s&@datadir@&$datadir&g
16809 s&@docdir@&$docdir&g
16810 s&@infodir@&$infodir&g
16811 s&@localedir@&$localedir&g
16812 s&@mandir@&$mandir&g
16813 s&\\\${datarootdir}&$datarootdir&g' ;;
16817 # Neutralize VPATH when `$srcdir' = `.'.
16818 # Shell code in configure.ac might set extrasub.
16819 # FIXME: do we really want to maintain this feature?
16820 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16821 ac_sed_extra="$ac_vpsub
16824 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16826 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16827 s|@configure_input@|$ac_sed_conf_input|;t t
16828 s&@top_builddir@&$ac_top_builddir_sub&;t t
16829 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16830 s&@srcdir@&$ac_srcdir&;t t
16831 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16832 s&@top_srcdir@&$ac_top_srcdir&;t t
16833 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16834 s&@builddir@&$ac_builddir&;t t
16835 s&@abs_builddir@&$ac_abs_builddir&;t t
16836 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16837 s&@INSTALL@&$ac_INSTALL&;t t
16838 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16839 $ac_datarootdir_hack
16841 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16842 || as_fn_error "could not create $ac_file" "$LINENO" 5
16844 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16845 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16846 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16848 which seems to be undefined. Please make sure it is defined." >&5
16849 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16850 which seems to be undefined. Please make sure it is defined." >&2;}
16854 -) cat "$tmp/out" && rm -f "$tmp/out";;
16855 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16857 || as_fn_error "could not create $ac_file" "$LINENO" 5
16863 if test x"$ac_file" != x-; then
16865 $as_echo "/* $configure_input */" \
16866 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16867 } >"$tmp/config.h" \
16868 || as_fn_error "could not create $ac_file" "$LINENO" 5
16869 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16870 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16871 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16874 mv "$tmp/config.h" "$ac_file" \
16875 || as_fn_error "could not create $ac_file" "$LINENO" 5
16878 $as_echo "/* $configure_input */" \
16879 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16880 || as_fn_error "could not create -" "$LINENO" 5
16882 # Compute "$ac_file"'s index in $config_headers.
16885 for _am_header in $config_headers :; do
16886 case $_am_header in
16887 $_am_arg | $_am_arg:* )
16890 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16893 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16894 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16895 X"$_am_arg" : 'X\(//\)[^/]' \| \
16896 X"$_am_arg" : 'X\(//\)$' \| \
16897 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16898 $as_echo X"$_am_arg" |
16899 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16903 /^X\(\/\/\)[^/].*/{
16915 s/.*/./; q'`/stamp-h$_am_stamp_count
16918 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16919 $as_echo "$as_me: executing $ac_file commands" >&6;}
16924 case $ac_file$ac_mode in
16925 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16926 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16927 # are listed without --file. Let's play safe and only enable the eval
16928 # if we detect the quoting.
16929 case $CONFIG_FILES in
16930 *\'*) eval set x "$CONFIG_FILES" ;;
16931 *) set x $CONFIG_FILES ;;
16936 # Strip MF so we end up with the name of the file.
16937 mf=`echo "$mf" | sed -e 's/:.*$//'`
16938 # Check whether this is an Automake generated Makefile or not.
16939 # We used to match only the files named `Makefile.in', but
16940 # some people rename them; so instead we look at the file content.
16941 # Grep'ing the first line is not enough: some people post-process
16942 # each Makefile.in and add a new line on top of each file to say so.
16943 # Grep'ing the whole file is not good either: AIX grep has a line
16944 # limit of 2048, but all sed's we know have understand at least 4000.
16945 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16946 dirpart=`$as_dirname -- "$mf" ||
16947 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16948 X"$mf" : 'X\(//\)[^/]' \| \
16949 X"$mf" : 'X\(//\)$' \| \
16950 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16952 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16956 /^X\(\/\/\)[^/].*/{
16972 # Extract the definition of DEPDIR, am__include, and am__quote
16973 # from the Makefile without running `make'.
16974 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16975 test -z "$DEPDIR" && continue
16976 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16977 test -z "am__include" && continue
16978 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16979 # When using ansi2knr, U may be empty or an underscore; expand it
16980 U=`sed -n 's/^U = //p' < "$mf"`
16981 # Find all dependency output files, they are included files with
16982 # $(DEPDIR) in their names. We invoke sed twice because it is the
16983 # simplest approach to changing $(DEPDIR) to its actual value in the
16985 for file in `sed -n "
16986 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16987 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16988 # Make sure the directory exists.
16989 test -f "$dirpart/$file" && continue
16990 fdir=`$as_dirname -- "$file" ||
16991 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16992 X"$file" : 'X\(//\)[^/]' \| \
16993 X"$file" : 'X\(//\)$' \| \
16994 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16995 $as_echo X"$file" |
16996 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17000 /^X\(\/\/\)[^/].*/{
17013 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17014 # echo "creating $dirpart/$file"
17015 echo '# dummy' > "$dirpart/$file"
17021 case x$CONFIG_HEADERS in
17022 xconfig.h:config.in)
17033 ac_clean_files=$ac_clean_files_save
17035 test $ac_write_fail = 0 ||
17036 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17039 # configure is writing to config.log, and then calls config.status.
17040 # config.status does its own redirection, appending to config.log.
17041 # Unfortunately, on DOS this fails, as config.log is still kept open
17042 # by configure, so config.status won't be able to write to it; its
17043 # output is simply discarded. So we exec the FD to /dev/null,
17044 # effectively closing config.log, so it can be properly (re)opened and
17045 # appended to by config.status. When coming back to configure, we
17046 # need to make the FD available again.
17047 if test "$no_create" != yes; then
17049 ac_config_status_args=
17050 test "$silent" = yes &&
17051 ac_config_status_args="$ac_config_status_args --quiet"
17053 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17055 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17056 # would make configure fail if this is the last instruction.
17057 $ac_cs_success || as_fn_exit $?
17059 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17061 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}