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>
593 gl_fnmatch_required
=POSIX
594 ac_subst_vars
='am__EXEEXT_FALSE
619 INSTALL_STRIP_PROGRAM
640 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
654 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
657 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
659 UNISTD_H_DEFINES_STRUCT_TIMESPEC
660 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
661 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
662 TIME_H_DEFINES_STRUCT_TIMESPEC
663 NEXT_AS_FIRST_DIRECTIVE_TIME_H
674 HAVE_DECL_LOCALTIME_R
682 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
685 WINDOWS_64_BIT_ST_SIZE
686 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
688 NEXT_AS_FIRST_DIRECTIVE_STRING_H
690 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
692 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
694 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
696 GL_GENERATE_STDDEF_H_FALSE
697 GL_GENERATE_STDDEF_H_TRUE
703 GL_GENERATE_STDBOOL_H_FALSE
704 GL_GENERATE_STDBOOL_H_TRUE
706 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
709 REPLACE_PTHREAD_SIGMASK
711 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
712 HAVE_STRUCT_SIGACTION_SA_SIGACTION
718 HAVE_POSIX_SIGNALBLOCKING
721 GNULIB_SIGNAL_H_SIGPIPE
723 GNULIB_PTHREAD_SIGMASK
731 REPLACE_STDIO_WRITE_FUNCS
732 REPLACE_STDIO_READ_FUNCS
741 REPLACE_OBSTACK_PRINTF
766 HAVE_DECL_OBSTACK_PRINTF
772 GNULIB_VSPRINTF_POSIX
776 GNULIB_VFPRINTF_POSIX
783 GNULIB_STDIO_H_SIGPIPE
784 GNULIB_STDIO_H_NONBLOCKING
799 GNULIB_OBSTACK_PRINTF_POSIX
800 GNULIB_OBSTACK_PRINTF
993 NEXT_AS_FIRST_DIRECTIVE_MATH_H
1028 LOCALCHARSET_TESTS_ENVIRONMENT
1030 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
1032 UINT64_MAX_EQ_ULONG_MAX
1033 UINT32_MAX_LT_UINTMAX_MAX
1036 INT64_MAX_EQ_LONG_MAX
1037 INT32_MAX_LT_INTMAX_MAX
1048 GL_GENERATE_STDINT_H_FALSE
1049 GL_GENERATE_STDINT_H_TRUE
1061 HAVE_SIGNED_SIG_ATOMIC_T
1064 BITSIZEOF_SIG_ATOMIC_T
1067 APPLE_UNIVERSAL_BUILD
1069 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
1074 HAVE_UNSIGNED_LONG_LONG_INT
1076 GL_GENERATE_LIMITS_H_FALSE
1077 GL_GENERATE_LIMITS_H_TRUE
1079 NEXT_AS_FIRST_DIRECTIVE_LIMITS_H
1082 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
1084 REPLACE_STRUCT_TIMEVAL
1085 REPLACE_GETTIMEOFDAY
1092 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
1098 REPLACE_SIGNBIT_USING_GCC
1167 HAVE_DECL_REMAINDERL
1348 GL_GENERATE_FNMATCH_H_FALSE
1349 GL_GENERATE_FNMATCH_H_TRUE
1352 GL_GENERATE_FLOAT_H_FALSE
1353 GL_GENERATE_FLOAT_H_TRUE
1355 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1363 GL_GENERATE_ERRNO_H_FALSE
1364 GL_GENERATE_ERRNO_H_TRUE
1366 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1369 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
1372 PRAGMA_SYSTEM_HEADER
1373 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1399 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1400 UNISTD_H_HAVE_WINSOCK2_H
1423 REPLACE_GETDTABLESIZE
1424 REPLACE_GETDOMAINNAME
1435 HAVE_DECL_SETHOSTNAME
1436 HAVE_DECL_GETUSERSHELL
1437 HAVE_DECL_GETPAGESIZE
1438 HAVE_DECL_GETLOGIN_R
1439 HAVE_DECL_GETDOMAINNAME
1478 GNULIB_UNISTD_H_SIGPIPE
1479 GNULIB_UNISTD_H_NONBLOCKING
1505 GNULIB_GETDTABLESIZE
1506 GNULIB_GETDOMAINNAME
1536 REPLACE_CANONICALIZE_FILE_NAME
1541 HAVE_STRUCT_RANDOM_DATA
1564 HAVE_DECL_GETLOADAVG
1565 HAVE_CANONICALIZE_FILE_NAME
1576 GNULIB_SECURE_GETENV
1579 GNULIB_REALLOC_POSIX
1597 GNULIB_CANONICALIZE_FILE_NAME
1601 GL_GENERATE_ALLOCA_H_FALSE
1602 GL_GENERATE_ALLOCA_H_TRUE
1605 GL_COND_LIBTOOL_FALSE
1606 GL_COND_LIBTOOL_TRUE
1633 MAINTAINER_MODE_FALSE
1634 MAINTAINER_MODE_TRUE
1662 program_transform_name
1675 enable_option_checking
1676 enable_maintainer_mode
1678 enable_dependency_tracking
1680 ac_precious_vars
='build_alias
1691 # Initialize some variables set by options.
1693 ac_init_version
=false
1694 ac_unrecognized_opts
=
1695 ac_unrecognized_sep
=
1696 # The variables have the same names as the options, with
1697 # dashes changed to underlines.
1698 cache_file
=/dev
/null
1705 program_transform_name
=s
,x
,x
,
1713 # Installation directory options.
1714 # These are left unexpanded so users can "make install exec_prefix=/foo"
1715 # and all the variables that are supposed to be based on exec_prefix
1716 # by default will actually change.
1717 # Use braces instead of parens because sh, perl, etc. also accept them.
1718 # (The list follows the same order as the GNU Coding Standards.)
1719 bindir
='${exec_prefix}/bin'
1720 sbindir
='${exec_prefix}/sbin'
1721 libexecdir
='${exec_prefix}/libexec'
1722 datarootdir
='${prefix}/share'
1723 datadir
='${datarootdir}'
1724 sysconfdir
='${prefix}/etc'
1725 sharedstatedir
='${prefix}/com'
1726 localstatedir
='${prefix}/var'
1727 includedir
='${prefix}/include'
1728 oldincludedir
='/usr/include'
1729 docdir
='${datarootdir}/doc/${PACKAGE}'
1730 infodir
='${datarootdir}/info'
1735 libdir
='${exec_prefix}/lib'
1736 localedir
='${datarootdir}/locale'
1737 mandir
='${datarootdir}/man'
1743 # If the previous option needs an argument, assign it.
1744 if test -n "$ac_prev"; then
1745 eval $ac_prev=\
$ac_option
1751 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1755 # Accept the important Cygnus configure options, so we can diagnose typos.
1757 case $ac_dashdash$ac_option in
1761 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1763 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1764 bindir
=$ac_optarg ;;
1766 -build |
--build |
--buil |
--bui |
--bu)
1767 ac_prev
=build_alias
;;
1768 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1769 build_alias
=$ac_optarg ;;
1771 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1772 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1773 ac_prev
=cache_file
;;
1774 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1775 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1776 cache_file
=$ac_optarg ;;
1778 --config-cache |
-C)
1779 cache_file
=config.cache
;;
1781 -datadir |
--datadir |
--datadi |
--datad)
1783 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1784 datadir
=$ac_optarg ;;
1786 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1787 |
--dataroo |
--dataro |
--datar)
1788 ac_prev
=datarootdir
;;
1789 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1790 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1791 datarootdir
=$ac_optarg ;;
1793 -disable-* |
--disable-*)
1794 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1795 # Reject names that are not valid shell variable names.
1796 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1797 as_fn_error
"invalid feature name: $ac_useropt"
1798 ac_useropt_orig
=$ac_useropt
1799 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1800 case $ac_user_opts in
1802 "enable_
$ac_useropt"
1804 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1805 ac_unrecognized_sep
=', ';;
1807 eval enable_
$ac_useropt=no
;;
1809 -docdir |
--docdir |
--docdi |
--doc |
--do)
1811 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1812 docdir
=$ac_optarg ;;
1814 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1816 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1817 dvidir
=$ac_optarg ;;
1819 -enable-* |
--enable-*)
1820 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1821 # Reject names that are not valid shell variable names.
1822 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1823 as_fn_error
"invalid feature name: $ac_useropt"
1824 ac_useropt_orig
=$ac_useropt
1825 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1826 case $ac_user_opts in
1828 "enable_
$ac_useropt"
1830 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1831 ac_unrecognized_sep
=', ';;
1833 eval enable_
$ac_useropt=\
$ac_optarg ;;
1835 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1836 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1837 |
--exec |
--exe |
--ex)
1838 ac_prev
=exec_prefix
;;
1839 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1840 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1841 |
--exec=* |
--exe=* |
--ex=*)
1842 exec_prefix
=$ac_optarg ;;
1844 -gas |
--gas |
--ga |
--g)
1845 # Obsolete; use --with-gas.
1848 -help |
--help |
--hel |
--he |
-h)
1849 ac_init_help
=long
;;
1850 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1851 ac_init_help
=recursive
;;
1852 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1853 ac_init_help
=short
;;
1855 -host |
--host |
--hos |
--ho)
1856 ac_prev
=host_alias
;;
1857 -host=* |
--host=* |
--hos=* |
--ho=*)
1858 host_alias
=$ac_optarg ;;
1860 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1862 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1864 htmldir
=$ac_optarg ;;
1866 -includedir |
--includedir |
--includedi |
--included |
--include \
1867 |
--includ |
--inclu |
--incl |
--inc)
1868 ac_prev
=includedir
;;
1869 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1870 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1871 includedir
=$ac_optarg ;;
1873 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1875 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1876 infodir
=$ac_optarg ;;
1878 -libdir |
--libdir |
--libdi |
--libd)
1880 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1881 libdir
=$ac_optarg ;;
1883 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1884 |
--libexe |
--libex |
--libe)
1885 ac_prev
=libexecdir
;;
1886 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1887 |
--libexe=* |
--libex=* |
--libe=*)
1888 libexecdir
=$ac_optarg ;;
1890 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1891 ac_prev
=localedir
;;
1892 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1893 localedir
=$ac_optarg ;;
1895 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1896 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1897 ac_prev
=localstatedir
;;
1898 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1899 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1900 localstatedir
=$ac_optarg ;;
1902 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1904 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1905 mandir
=$ac_optarg ;;
1907 -nfp |
--nfp |
--nf)
1908 # Obsolete; use --without-fp.
1911 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1912 |
--no-cr |
--no-c |
-n)
1915 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1916 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1919 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1920 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1921 |
--oldin |
--oldi |
--old |
--ol |
--o)
1922 ac_prev
=oldincludedir
;;
1923 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1924 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1925 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1926 oldincludedir
=$ac_optarg ;;
1928 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1930 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1931 prefix
=$ac_optarg ;;
1933 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1934 |
--program-pre |
--program-pr |
--program-p)
1935 ac_prev
=program_prefix
;;
1936 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1937 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1938 program_prefix
=$ac_optarg ;;
1940 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1941 |
--program-suf |
--program-su |
--program-s)
1942 ac_prev
=program_suffix
;;
1943 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1944 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1945 program_suffix
=$ac_optarg ;;
1947 -program-transform-name |
--program-transform-name \
1948 |
--program-transform-nam |
--program-transform-na \
1949 |
--program-transform-n |
--program-transform- \
1950 |
--program-transform |
--program-transfor \
1951 |
--program-transfo |
--program-transf \
1952 |
--program-trans |
--program-tran \
1953 |
--progr-tra |
--program-tr |
--program-t)
1954 ac_prev
=program_transform_name
;;
1955 -program-transform-name=* |
--program-transform-name=* \
1956 |
--program-transform-nam=* |
--program-transform-na=* \
1957 |
--program-transform-n=* |
--program-transform-=* \
1958 |
--program-transform=* |
--program-transfor=* \
1959 |
--program-transfo=* |
--program-transf=* \
1960 |
--program-trans=* |
--program-tran=* \
1961 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1962 program_transform_name
=$ac_optarg ;;
1964 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1966 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1967 pdfdir
=$ac_optarg ;;
1969 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1971 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1974 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1975 |
-silent |
--silent |
--silen |
--sile |
--sil)
1978 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1980 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1982 sbindir
=$ac_optarg ;;
1984 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1985 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1986 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1988 ac_prev
=sharedstatedir
;;
1989 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1990 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1991 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1993 sharedstatedir
=$ac_optarg ;;
1995 -site |
--site |
--sit)
1997 -site=* |
--site=* |
--sit=*)
2000 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
2002 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
2003 srcdir
=$ac_optarg ;;
2005 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
2006 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
2007 ac_prev
=sysconfdir
;;
2008 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
2009 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
2010 sysconfdir
=$ac_optarg ;;
2012 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
2013 ac_prev
=target_alias
;;
2014 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
2015 target_alias
=$ac_optarg ;;
2017 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
2020 -version |
--version |
--versio |
--versi |
--vers |
-V)
2021 ac_init_version
=: ;;
2024 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
2025 # Reject names that are not valid shell variable names.
2026 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
2027 as_fn_error
"invalid package name: $ac_useropt"
2028 ac_useropt_orig
=$ac_useropt
2029 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2030 case $ac_user_opts in
2034 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
2035 ac_unrecognized_sep
=', ';;
2037 eval with_
$ac_useropt=\
$ac_optarg ;;
2039 -without-* |
--without-*)
2040 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
2041 # Reject names that are not valid shell variable names.
2042 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
2043 as_fn_error
"invalid package name: $ac_useropt"
2044 ac_useropt_orig
=$ac_useropt
2045 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2046 case $ac_user_opts in
2050 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
2051 ac_unrecognized_sep
=', ';;
2053 eval with_
$ac_useropt=no
;;
2056 # Obsolete; use --with-x.
2059 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
2060 |
--x-incl |
--x-inc |
--x-in |
--x-i)
2061 ac_prev
=x_includes
;;
2062 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
2063 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
2064 x_includes
=$ac_optarg ;;
2066 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
2067 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
2068 ac_prev
=x_libraries
;;
2069 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
2070 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
2071 x_libraries
=$ac_optarg ;;
2073 -*) as_fn_error
"unrecognized option: \`$ac_option'
2074 Try \`$0 --help' for more information."
2078 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
2079 # Reject names that are not valid shell variable names.
2080 case $ac_envvar in #(
2081 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
2082 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
2084 eval $ac_envvar=\
$ac_optarg
2085 export $ac_envvar ;;
2088 # FIXME: should be removed in autoconf 3.0.
2089 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
2090 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
2091 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
2092 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
2098 if test -n "$ac_prev"; then
2099 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
2100 as_fn_error
"missing argument to $ac_option"
2103 if test -n "$ac_unrecognized_opts"; then
2104 case $enable_option_checking in
2106 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
2107 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2111 # Check all directory arguments for consistency.
2112 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
2113 datadir sysconfdir sharedstatedir localstatedir includedir \
2114 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2115 libdir localedir mandir
2117 eval ac_val
=\$
$ac_var
2118 # Remove trailing slashes.
2121 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
2122 eval $ac_var=\
$ac_val;;
2124 # Be sure to have absolute directory names.
2126 [\\/$
]* | ?
:[\\/]* ) continue;;
2127 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
2129 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
2132 # There might be people who depend on the old broken behavior: `$host'
2133 # used to hold the argument of --host etc.
2134 # FIXME: To remove some day.
2137 target
=$target_alias
2139 # FIXME: To remove some day.
2140 if test "x$host_alias" != x
; then
2141 if test "x$build_alias" = x
; then
2142 cross_compiling
=maybe
2143 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
2144 If a cross compiler is detected then cross compile mode will be used." >&2
2145 elif test "x$build_alias" != "x$host_alias"; then
2151 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
2153 test "$silent" = yes && exec 6>/dev
/null
2156 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
2157 ac_ls_di
=`ls -di .` &&
2158 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
2159 as_fn_error
"working directory cannot be determined"
2160 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2161 as_fn_error
"pwd does not report name of working directory"
2164 # Find the source files, if location was not specified.
2165 if test -z "$srcdir"; then
2166 ac_srcdir_defaulted
=yes
2167 # Try the directory containing this script, then the parent directory.
2168 ac_confdir
=`$as_dirname -- "$as_myself" ||
2169 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2170 X"$as_myself" : 'X\(//\)[^/]' \| \
2171 X"$as_myself" : 'X\(//\)$' \| \
2172 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2173 $as_echo X"$as_myself" |
2174 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2192 if test ! -r "$srcdir/$ac_unique_file"; then
2196 ac_srcdir_defaulted
=no
2198 if test ! -r "$srcdir/$ac_unique_file"; then
2199 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
2200 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
2202 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
2204 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
2206 # When building in place, set srcdir=.
2207 if test "$ac_abs_confdir" = "$ac_pwd"; then
2210 # Remove unnecessary trailing slashes from srcdir.
2211 # Double slashes in file names in object file debugging info
2212 # mess up M-x gdb in Emacs.
2214 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2216 for ac_var
in $ac_precious_vars; do
2217 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
2218 eval ac_env_
${ac_var}_value
=\$
${ac_var}
2219 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
2220 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
2224 # Report the --help message.
2226 if test "$ac_init_help" = "long"; then
2227 # Omit some internal or obsolete options to make the list less imposing.
2228 # This message is too long to be a string in the A/UX 3.1 sh.
2230 \`configure' configures this package to adapt to many kinds of systems.
2232 Usage: $0 [OPTION]... [VAR=VALUE]...
2234 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2235 VAR=VALUE. See below for descriptions of some of the useful variables.
2237 Defaults for the options are specified in brackets.
2240 -h, --help display this help and exit
2241 --help=short display options specific to this package
2242 --help=recursive display the short help of all the included packages
2243 -V, --version display version information and exit
2244 -q, --quiet, --silent do not print \`checking...' messages
2245 --cache-file=FILE cache test results in FILE [disabled]
2246 -C, --config-cache alias for \`--cache-file=config.cache'
2247 -n, --no-create do not create output files
2248 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2250 Installation directories:
2251 --prefix=PREFIX install architecture-independent files in PREFIX
2252 [$ac_default_prefix]
2253 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2256 By default, \`make install' will install all the files in
2257 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2258 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2259 for instance \`--prefix=\$HOME'.
2261 For better control, use the options below.
2263 Fine tuning of the installation directories:
2264 --bindir=DIR user executables [EPREFIX/bin]
2265 --sbindir=DIR system admin executables [EPREFIX/sbin]
2266 --libexecdir=DIR program executables [EPREFIX/libexec]
2267 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2268 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2269 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2270 --libdir=DIR object code libraries [EPREFIX/lib]
2271 --includedir=DIR C header files [PREFIX/include]
2272 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2273 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2274 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2275 --infodir=DIR info documentation [DATAROOTDIR/info]
2276 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2277 --mandir=DIR man documentation [DATAROOTDIR/man]
2278 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
2279 --htmldir=DIR html documentation [DOCDIR]
2280 --dvidir=DIR dvi documentation [DOCDIR]
2281 --pdfdir=DIR pdf documentation [DOCDIR]
2282 --psdir=DIR ps documentation [DOCDIR]
2288 --program-prefix=PREFIX prepend PREFIX to installed program names
2289 --program-suffix=SUFFIX append SUFFIX to installed program names
2290 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
2293 --build=BUILD configure
for building on BUILD
[guessed
]
2294 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
2295 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
2299 if test -n "$ac_init_help"; then
2304 --disable-option-checking ignore unrecognized
--enable/--with options
2305 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
2306 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
2307 --enable-maintainer-mode enable make rules and dependencies not useful
2308 (and sometimes confusing
) to the casual installer
2309 --disable-largefile omit support
for large files
2310 --disable-dependency-tracking speeds up one-time build
2311 --enable-dependency-tracking do not reject slow dependency extractors
2313 Some influential environment variables
:
2314 CC C compiler
command
2315 CFLAGS C compiler flags
2316 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
2317 nonstandard directory
<lib dir
>
2318 LIBS libraries to pass to the linker
, e.g.
-l<library
>
2319 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
2320 you have headers
in a nonstandard directory
<include dir
>
2323 Use these variables to override the choices made by
`configure' or to help
2324 it to find libraries and programs with nonstandard names/locations.
2326 Report bugs to the package provider.
2331 if test "$ac_init_help" = "recursive"; then
2332 # If there are subdirs, report their specific --help.
2333 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2334 test -d "$ac_dir" ||
2335 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2340 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2342 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
2343 # A ".." for each directory in $ac_dir_suffix.
2344 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
2345 case $ac_top_builddir_sub in
2346 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2347 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2350 ac_abs_top_builddir=$ac_pwd
2351 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2352 # for backward compatibility:
2353 ac_top_builddir=$ac_top_build_prefix
2356 .) # We are building in place.
2358 ac_top_srcdir=$ac_top_builddir_sub
2359 ac_abs_top_srcdir=$ac_pwd ;;
2360 [\\/]* | ?:[\\/]* ) # Absolute name.
2361 ac_srcdir=$srcdir$ac_dir_suffix;
2362 ac_top_srcdir=$srcdir
2363 ac_abs_top_srcdir=$srcdir ;;
2365 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2366 ac_top_srcdir=$ac_top_build_prefix$srcdir
2367 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2369 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2371 cd "$ac_dir" || { ac_status=$?; continue; }
2372 # Check for guested configure.
2373 if test -f "$ac_srcdir/configure.gnu"; then
2375 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2376 elif test -f "$ac_srcdir/configure"; then
2378 $SHELL "$ac_srcdir/configure" --help=recursive
2380 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2382 cd "$ac_pwd" || { ac_status=$?; break; }
2386 test -n "$ac_init_help" && exit $ac_status
2387 if $ac_init_version; then
2390 generated by GNU Autoconf 2.64
2392 Copyright (C) 2009 Free Software Foundation, Inc.
2393 This configure script is free software; the Free Software Foundation
2394 gives unlimited permission to copy, distribute and modify it.
2399 ## ------------------------ ##
2400 ## Autoconf initialization. ##
2401 ## ------------------------ ##
2403 # ac_fn_c_try_compile LINENO
2404 # --------------------------
2405 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2406 ac_fn_c_try_compile ()
2408 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2409 rm -f conftest.$ac_objext
2410 if { { ac_try="$ac_compile"
2412 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2413 *) ac_try_echo
=$ac_try;;
2415 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2416 $as_echo "$ac_try_echo"; } >&5
2417 (eval "$ac_compile") 2>conftest.err
2419 if test -s conftest.err
; then
2420 grep -v '^ *+' conftest.err
>conftest.er1
2421 cat conftest.er1
>&5
2422 mv -f conftest.er1 conftest.err
2424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2425 test $ac_status = 0; } && {
2426 test -z "$ac_c_werror_flag" ||
2427 test ! -s conftest.err
2428 } && test -s conftest.
$ac_objext; then :
2431 $as_echo "$as_me: failed program was:" >&5
2432 sed 's/^/| /' conftest.
$ac_ext >&5
2436 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2439 } # ac_fn_c_try_compile
2441 # ac_fn_c_try_cpp LINENO
2442 # ----------------------
2443 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2446 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2447 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2449 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2450 *) ac_try_echo=$ac_try;;
2452 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2453 $as_echo "$ac_try_echo"; } >&5
2454 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2456 if test -s conftest.err; then
2457 grep -v '^ *+' conftest.err >conftest.er1
2458 cat conftest.er1 >&5
2459 mv -f conftest.er1 conftest.err
2461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2462 test $ac_status = 0; } >/dev/null && {
2463 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2464 test ! -s conftest.err
2468 $as_echo "$as_me: failed program was:" >&5
2469 sed 's/^/| /' conftest.$ac_ext >&5
2473 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2478 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2479 # -------------------------------------------------------
2480 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2481 # the include files in INCLUDES and setting the cache variable VAR
2483 ac_fn_c_check_header_mongrel ()
2485 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2486 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2488 $as_echo_n "checking for $2... " >&6; }
2489 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2490 $as_echo_n "(cached) " >&6
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2494 $as_echo "$ac_res" >&6; }
2496 # Is the header compilable?
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2498 $as_echo_n "checking $2 usability... " >&6; }
2499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2500 /* end confdefs.h. */
2504 if ac_fn_c_try_compile "$LINENO"; then :
2505 ac_header_compiler=yes
2507 ac_header_compiler=no
2509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2511 $as_echo "$ac_header_compiler" >&6; }
2513 # Is the header present?
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2515 $as_echo_n "checking $2 presence... " >&6; }
2516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2517 /* end confdefs.h. */
2520 if ac_fn_c_try_cpp "$LINENO"; then :
2521 ac_header_preproc=yes
2523 ac_header_preproc=no
2525 rm -f conftest.err conftest.$ac_ext
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2527 $as_echo "$ac_header_preproc" >&6; }
2529 # So? What about this header?
2530 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2533 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2535 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2539 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2541 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2543 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2545 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2547 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2551 $as_echo_n "checking for $2... " >&6; }
2552 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2553 $as_echo_n "(cached) " >&6
2555 eval "$3=\$ac_header_compiler"
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2559 $as_echo "$ac_res" >&6; }
2561 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2563 } # ac_fn_c_check_header_mongrel
2565 # ac_fn_c_try_run LINENO
2566 # ----------------------
2567 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2568 # that executables *can* be run.
2571 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2572 if { { ac_try="$ac_link"
2574 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2575 *) ac_try_echo
=$ac_try;;
2577 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2578 $as_echo "$ac_try_echo"; } >&5
2579 (eval "$ac_link") 2>&5
2581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2582 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2583 { { case "(($ac_try" in
2584 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2585 *) ac_try_echo=$ac_try;;
2587 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2588 $as_echo "$ac_try_echo"; } >&5
2589 (eval "$ac_try") 2>&5
2591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2592 test $ac_status = 0; }; }; then :
2595 $as_echo "$as_me: program exited with status $ac_status" >&5
2596 $as_echo "$as_me: failed program was:" >&5
2597 sed 's/^/| /' conftest.$ac_ext >&5
2599 ac_retval=$ac_status
2601 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2602 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2607 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2608 # -------------------------------------------------------
2609 # Tests whether HEADER exists and can be compiled using the include files in
2610 # INCLUDES, setting the cache variable VAR accordingly.
2611 ac_fn_c_check_header_compile ()
2613 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2615 $as_echo_n "checking for $2... " >&6; }
2616 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2617 $as_echo_n "(cached) " >&6
2619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2620 /* end confdefs.h. */
2624 if ac_fn_c_try_compile "$LINENO"; then :
2629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2633 $as_echo "$ac_res" >&6; }
2634 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2636 } # ac_fn_c_check_header_compile
2638 # ac_fn_c_try_link LINENO
2639 # -----------------------
2640 # Try to link conftest.$ac_ext, and return whether this succeeded.
2643 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2644 rm -f conftest.$ac_objext conftest$ac_exeext
2645 if { { ac_try="$ac_link"
2647 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2648 *) ac_try_echo
=$ac_try;;
2650 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2651 $as_echo "$ac_try_echo"; } >&5
2652 (eval "$ac_link") 2>conftest.err
2654 if test -s conftest.err
; then
2655 grep -v '^ *+' conftest.err
>conftest.er1
2656 cat conftest.er1
>&5
2657 mv -f conftest.er1 conftest.err
2659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2660 test $ac_status = 0; } && {
2661 test -z "$ac_c_werror_flag" ||
2662 test ! -s conftest.err
2663 } && test -s conftest
$ac_exeext && {
2664 test "$cross_compiling" = yes ||
2665 $as_test_x conftest
$ac_exeext
2669 $as_echo "$as_me: failed program was:" >&5
2670 sed 's/^/| /' conftest.
$ac_ext >&5
2674 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2675 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2676 # interfere with the next link command; also delete a directory that is
2677 # left behind by Apple's compiler. We do this before executing the actions.
2678 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2679 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2682 } # ac_fn_c_try_link
2684 # ac_fn_c_check_func LINENO FUNC VAR
2685 # ----------------------------------
2686 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2687 ac_fn_c_check_func
()
2689 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2691 $as_echo_n "checking for $2... " >&6; }
2692 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2693 $as_echo_n "(cached) " >&6
2695 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2696 /* end confdefs.h. */
2697 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2698 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2699 #define $2 innocuous_$2
2701 /* System header to define __stub macros and hopefully few prototypes,
2702 which can conflict with char $2 (); below.
2703 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2704 <limits.h> exists even on freestanding compilers. */
2707 # include <limits.h>
2709 # include <assert.h>
2714 /* Override any GCC internal prototype to avoid an error.
2715 Use char because int might match the return type of a GCC
2716 builtin and then its argument prototype would still apply. */
2721 /* The GNU C library defines this for functions which it implements
2722 to always fail with ENOSYS. Some functions are actually named
2723 something starting with __ and the normal name is an alias. */
2724 #if defined __stub_$2 || defined __stub___$2
2736 if ac_fn_c_try_link
"$LINENO"; then :
2741 rm -f core conftest.err conftest.
$ac_objext \
2742 conftest
$ac_exeext conftest.
$ac_ext
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2746 $as_echo "$ac_res" >&6; }
2747 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2749 } # ac_fn_c_check_func
2751 # ac_fn_c_check_decl LINENO SYMBOL VAR
2752 # ------------------------------------
2753 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2754 ac_fn_c_check_decl
()
2756 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2758 $as_echo_n "checking whether $2 is declared... " >&6; }
2759 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2760 $as_echo_n "(cached) " >&6
2762 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2763 /* end confdefs.h. */
2776 if ac_fn_c_try_compile
"$LINENO"; then :
2781 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2785 $as_echo "$ac_res" >&6; }
2786 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2788 } # ac_fn_c_check_decl
2790 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2791 # --------------------------------------------
2792 # Tries to find the compile-time value of EXPR in a program that includes
2793 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2795 ac_fn_c_compute_int
()
2797 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2798 if test "$cross_compiling" = yes; then
2799 # Depending upon the size, compute the lo and hi bounds.
2800 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2801 /* end confdefs.h. */
2806 static int test_array [1 - 2 * !(($2) >= 0)];
2813 if ac_fn_c_try_compile
"$LINENO"; then :
2816 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2817 /* end confdefs.h. */
2822 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2829 if ac_fn_c_try_compile
"$LINENO"; then :
2830 ac_hi
=$ac_mid; break
2832 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2833 if test $ac_lo -le $ac_mid; then
2837 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2839 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2842 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2843 /* end confdefs.h. */
2848 static int test_array [1 - 2 * !(($2) < 0)];
2855 if ac_fn_c_try_compile
"$LINENO"; then :
2858 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2859 /* end confdefs.h. */
2864 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2871 if ac_fn_c_try_compile
"$LINENO"; then :
2872 ac_lo
=$ac_mid; break
2874 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2875 if test $ac_mid -le $ac_hi; then
2879 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2881 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2886 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2888 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2889 # Binary search between lo and hi bounds.
2890 while test "x$ac_lo" != "x$ac_hi"; do
2891 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2892 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2893 /* end confdefs.h. */
2898 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2905 if ac_fn_c_try_compile
"$LINENO"; then :
2908 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2910 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2913 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2917 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2918 /* end confdefs.h. */
2920 static long int longval () { return $2; }
2921 static unsigned long int ulongval () { return $2; }
2928 FILE *f = fopen ("conftest.val", "w");
2933 long int i = longval ();
2936 fprintf (f, "%ld", i);
2940 unsigned long int i = ulongval ();
2943 fprintf (f, "%lu", i);
2945 /* Do not output a trailing newline, as this causes \r\n confusion
2946 on some platforms. */
2947 return ferror (f) || fclose (f) != 0;
2953 if ac_fn_c_try_run
"$LINENO"; then :
2954 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2958 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2959 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2963 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2966 } # ac_fn_c_compute_int
2968 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2969 # -------------------------------------------
2970 # Tests whether TYPE exists after having included INCLUDES, setting cache
2971 # variable VAR accordingly.
2972 ac_fn_c_check_type
()
2974 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2976 $as_echo_n "checking for $2... " >&6; }
2977 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2978 $as_echo_n "(cached) " >&6
2981 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2982 /* end confdefs.h. */
2993 if ac_fn_c_try_compile
"$LINENO"; then :
2994 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2995 /* end confdefs.h. */
3006 if ac_fn_c_try_compile
"$LINENO"; then :
3011 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3013 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3017 $as_echo "$ac_res" >&6; }
3018 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
3020 } # ac_fn_c_check_type
3021 cat >config.log
<<_ACEOF
3022 This file contains any messages produced by compilers while
3023 running configure, to aid debugging if configure makes a mistake.
3025 It was created by $as_me, which was
3026 generated by GNU Autoconf 2.64. Invocation command line was
3038 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3039 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3040 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3041 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3042 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3044 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3045 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3047 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3048 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3049 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3050 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3051 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3052 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3053 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3057 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3061 test -z "$as_dir" && as_dir
=.
3062 $as_echo "PATH: $as_dir"
3078 # Keep a trace of the command line.
3079 # Strip out --no-create and --no-recursion so they do not pile up.
3080 # Strip out --silent because we don't want to record it for future runs.
3081 # Also quote any args containing shell meta-characters.
3082 # Make two passes to allow for proper duplicate-argument suppression.
3086 ac_must_keep_next
=false
3092 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
3093 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
3094 |
-silent |
--silent |
--silen |
--sile |
--sil)
3097 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3100 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
3102 as_fn_append ac_configure_args1
" '$ac_arg'"
3103 if test $ac_must_keep_next = true
; then
3104 ac_must_keep_next
=false
# Got value, back to normal.
3107 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
3108 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
3109 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
3110 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
3111 case "$ac_configure_args0 " in
3112 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3115 -* ) ac_must_keep_next
=true
;;
3118 as_fn_append ac_configure_args
" '$ac_arg'"
3123 { ac_configure_args0
=; unset ac_configure_args0
;}
3124 { ac_configure_args1
=; unset ac_configure_args1
;}
3126 # When interrupted or exit'd, cleanup temporary files, and complete
3127 # config.log. We remove comments because anyway the quotes in there
3128 # would cause problems or look ugly.
3129 # WARNING: Use '\'' to represent an apostrophe within the trap.
3130 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3131 trap 'exit_status=$?
3132 # Save into config.log some information that might help in debugging.
3137 ## ---------------- ##
3138 ## Cache variables. ##
3139 ## ---------------- ##
3142 # The following way of writing the cache mishandles newlines in values,
3144 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3145 eval ac_val=\$$ac_var
3149 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3150 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3153 _ | IFS | as_nl) ;; #(
3154 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3155 *) { eval $ac_var=; unset $ac_var;} ;;
3160 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3161 *${as_nl}ac_space=\ *)
3163 "s/'\''/'\''\\\\'\'''\''/g;
3164 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3167 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3175 ## ----------------- ##
3176 ## Output variables. ##
3177 ## ----------------- ##
3180 for ac_var in $ac_subst_vars
3182 eval ac_val=\$$ac_var
3184 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3186 $as_echo "$ac_var='\''$ac_val'\''"
3190 if test -n "$ac_subst_files"; then
3192 ## ------------------- ##
3193 ## File substitutions. ##
3194 ## ------------------- ##
3197 for ac_var
in $ac_subst_files
3199 eval ac_val
=\$
$ac_var
3201 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3203 $as_echo "$ac_var='\''$ac_val'\''"
3208 if test -s confdefs.h; then
3218 test "$ac_signal" != 0 &&
3219 $as_echo "$as_me: caught signal $ac_signal"
3220 $as_echo "$as_me: exit $exit_status"
3222 rm -f core *.core core.conftest.* &&
3223 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3226 for ac_signal
in 1 2 13 15; do
3227 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3231 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3232 rm -f -r conftest
* confdefs.h
3234 $as_echo "/* confdefs.h */" > confdefs.h
3236 # Predefined preprocessor variables.
3238 cat >>confdefs.h
<<_ACEOF
3239 #define PACKAGE_NAME "$PACKAGE_NAME"
3242 cat >>confdefs.h
<<_ACEOF
3243 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3246 cat >>confdefs.h
<<_ACEOF
3247 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3250 cat >>confdefs.h
<<_ACEOF
3251 #define PACKAGE_STRING "$PACKAGE_STRING"
3254 cat >>confdefs.h
<<_ACEOF
3255 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3258 cat >>confdefs.h
<<_ACEOF
3259 #define PACKAGE_URL "$PACKAGE_URL"
3263 # Let the site file select an alternate cache file if it wants to.
3264 # Prefer an explicitly selected file to automatically selected ones.
3267 if test -n "$CONFIG_SITE"; then
3268 ac_site_file1
=$CONFIG_SITE
3269 elif test "x$prefix" != xNONE
; then
3270 ac_site_file1
=$prefix/share
/config.site
3271 ac_site_file2
=$prefix/etc
/config.site
3273 ac_site_file1
=$ac_default_prefix/share
/config.site
3274 ac_site_file2
=$ac_default_prefix/etc
/config.site
3276 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
3278 test "x$ac_site_file" = xNONE
&& continue
3279 if test -r "$ac_site_file"; then
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3281 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3282 sed 's/^/| /' "$ac_site_file" >&5
3287 if test -r "$cache_file"; then
3288 # Some versions of bash will fail to source /dev/null (special
3289 # files actually), so we avoid doing that.
3290 if test -f "$cache_file"; then
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3292 $as_echo "$as_me: loading cache $cache_file" >&6;}
3294 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
3295 *) .
"./$cache_file";;
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3300 $as_echo "$as_me: creating cache $cache_file" >&6;}
3304 as_fn_append ac_func_list
" canonicalize_file_name"
3305 as_fn_append ac_func_list
" getcwd"
3306 as_fn_append ac_func_list
" readlink"
3307 as_fn_append ac_func_list
" realpath"
3308 as_fn_append ac_header_list
" sys/param.h"
3309 as_fn_append ac_header_list
" dirent.h"
3310 as_fn_append ac_func_list
" btowc"
3311 as_fn_append ac_func_list
" isblank"
3312 as_fn_append ac_func_list
" iswctype"
3313 as_fn_append ac_func_list
" mbsrtowcs"
3314 as_fn_append ac_func_list
" mempcpy"
3315 as_fn_append ac_func_list
" wmemchr"
3316 as_fn_append ac_func_list
" wmemcpy"
3317 as_fn_append ac_func_list
" wmempcpy"
3318 as_fn_append ac_header_list
" wctype.h"
3319 gl_fnmatch_required
=GNU
3320 as_fn_append ac_header_list
" sys/time.h"
3321 as_fn_append ac_header_list
" sys/socket.h"
3322 as_fn_append ac_func_list
" gettimeofday"
3323 as_fn_append ac_header_list
" limits.h"
3324 as_fn_append ac_header_list
" wchar.h"
3325 as_fn_append ac_header_list
" stdint.h"
3326 as_fn_append ac_header_list
" inttypes.h"
3327 as_fn_append ac_header_list
" unistd.h"
3328 as_fn_append ac_func_list
" symlink"
3329 as_fn_append ac_func_list
" lstat"
3330 as_fn_append ac_header_list
" math.h"
3331 as_fn_append ac_func_list
" mbsinit"
3332 as_fn_append ac_func_list
" mbrtowc"
3333 as_fn_append ac_header_list
" sys/mman.h"
3334 as_fn_append ac_func_list
" mprotect"
3335 as_fn_append ac_func_list
" link"
3336 as_fn_append ac_header_list
" sys/stat.h"
3337 as_fn_append ac_header_list
" features.h"
3338 as_fn_append ac_func_list
" iswcntrl"
3339 # Check that the precious variables saved in the cache have kept the same
3341 ac_cache_corrupted
=false
3342 for ac_var
in $ac_precious_vars; do
3343 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
3344 eval ac_new_set
=\
$ac_env_${ac_var}_set
3345 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
3346 eval ac_new_val
=\
$ac_env_${ac_var}_value
3347 case $ac_old_set,$ac_new_set in
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3350 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3351 ac_cache_corrupted
=: ;;
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3354 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3355 ac_cache_corrupted
=: ;;
3358 if test "x$ac_old_val" != "x$ac_new_val"; then
3359 # differences in whitespace do not lead to failure.
3360 ac_old_val_w
=`echo x $ac_old_val`
3361 ac_new_val_w
=`echo x $ac_new_val`
3362 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3364 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3365 ac_cache_corrupted
=:
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3368 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3369 eval $ac_var=\
$ac_old_val
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3372 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3374 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3377 # Pass precious variables to config.status.
3378 if test "$ac_new_set" = set; then
3380 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3381 *) ac_arg
=$ac_var=$ac_new_val ;;
3383 case " $ac_configure_args " in
3384 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3385 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
3389 if $ac_cache_corrupted; then
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3391 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3393 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3394 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3396 ## -------------------- ##
3397 ## Main body of script. ##
3398 ## -------------------- ##
3401 ac_cpp
='$CPP $CPPFLAGS'
3402 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3403 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3404 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3407 ac_config_headers
="$ac_config_headers config.h:config.in"
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3411 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3412 # Check whether --enable-maintainer-mode was given.
3413 if test "${enable_maintainer_mode+set}" = set; then :
3414 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
3416 USE_MAINTAINER_MODE
=no
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3420 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3421 if test $USE_MAINTAINER_MODE = yes; then
3422 MAINTAINER_MODE_TRUE
=
3423 MAINTAINER_MODE_FALSE
='#'
3425 MAINTAINER_MODE_TRUE
='#'
3426 MAINTAINER_MODE_FALSE
=
3429 MAINT
=$MAINTAINER_MODE_TRUE
3434 ac_cpp
='$CPP $CPPFLAGS'
3435 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3436 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3437 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3438 if test -n "$ac_tool_prefix"; then
3439 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3440 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3442 $as_echo_n "checking for $ac_word... " >&6; }
3443 if test "${ac_cv_prog_CC+set}" = set; then :
3444 $as_echo_n "(cached) " >&6
3446 if test -n "$CC"; then
3447 ac_cv_prog_CC
="$CC" # Let the user override the test.
3449 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3453 test -z "$as_dir" && as_dir
=.
3454 for ac_exec_ext
in '' $ac_executable_extensions; do
3455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3456 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3467 if test -n "$CC"; then
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3469 $as_echo "$CC" >&6; }
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3472 $as_echo "no" >&6; }
3477 if test -z "$ac_cv_prog_CC"; then
3479 # Extract the first word of "gcc", so it can be a program name with args.
3480 set dummy gcc
; ac_word
=$2
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3482 $as_echo_n "checking for $ac_word... " >&6; }
3483 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3484 $as_echo_n "(cached) " >&6
3486 if test -n "$ac_ct_CC"; then
3487 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3489 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3493 test -z "$as_dir" && as_dir
=.
3494 for ac_exec_ext
in '' $ac_executable_extensions; do
3495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3496 ac_cv_prog_ac_ct_CC
="gcc"
3497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3506 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3507 if test -n "$ac_ct_CC"; then
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3509 $as_echo "$ac_ct_CC" >&6; }
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3512 $as_echo "no" >&6; }
3515 if test "x$ac_ct_CC" = x
; then
3518 case $cross_compiling:$ac_tool_warned in
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3521 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3522 ac_tool_warned
=yes ;;
3530 if test -z "$CC"; then
3531 if test -n "$ac_tool_prefix"; then
3532 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3533 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3535 $as_echo_n "checking for $ac_word... " >&6; }
3536 if test "${ac_cv_prog_CC+set}" = set; then :
3537 $as_echo_n "(cached) " >&6
3539 if test -n "$CC"; then
3540 ac_cv_prog_CC
="$CC" # Let the user override the test.
3542 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3546 test -z "$as_dir" && as_dir
=.
3547 for ac_exec_ext
in '' $ac_executable_extensions; do
3548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3549 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3560 if test -n "$CC"; then
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3562 $as_echo "$CC" >&6; }
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3565 $as_echo "no" >&6; }
3571 if test -z "$CC"; then
3572 # Extract the first word of "cc", so it can be a program name with args.
3573 set dummy cc
; ac_word
=$2
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3575 $as_echo_n "checking for $ac_word... " >&6; }
3576 if test "${ac_cv_prog_CC+set}" = set; then :
3577 $as_echo_n "(cached) " >&6
3579 if test -n "$CC"; then
3580 ac_cv_prog_CC
="$CC" # Let the user override the test.
3583 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3587 test -z "$as_dir" && as_dir
=.
3588 for ac_exec_ext
in '' $ac_executable_extensions; do
3589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3590 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3591 ac_prog_rejected
=yes
3595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3602 if test $ac_prog_rejected = yes; then
3603 # We found a bogon in the path, so make sure we never use it.
3604 set dummy
$ac_cv_prog_CC
3606 if test $# != 0; then
3607 # We chose a different compiler from the bogus one.
3608 # However, it has the same basename, so the bogon will be chosen
3609 # first if we set CC to just the basename; use the full file name.
3611 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3617 if test -n "$CC"; then
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3619 $as_echo "$CC" >&6; }
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3622 $as_echo "no" >&6; }
3627 if test -z "$CC"; then
3628 if test -n "$ac_tool_prefix"; then
3629 for ac_prog
in cl.exe
3631 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3632 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3634 $as_echo_n "checking for $ac_word... " >&6; }
3635 if test "${ac_cv_prog_CC+set}" = set; then :
3636 $as_echo_n "(cached) " >&6
3638 if test -n "$CC"; then
3639 ac_cv_prog_CC
="$CC" # Let the user override the test.
3641 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3645 test -z "$as_dir" && as_dir
=.
3646 for ac_exec_ext
in '' $ac_executable_extensions; do
3647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3648 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3659 if test -n "$CC"; then
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3661 $as_echo "$CC" >&6; }
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3664 $as_echo "no" >&6; }
3668 test -n "$CC" && break
3671 if test -z "$CC"; then
3673 for ac_prog
in cl.exe
3675 # Extract the first word of "$ac_prog", so it can be a program name with args.
3676 set dummy
$ac_prog; ac_word
=$2
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3678 $as_echo_n "checking for $ac_word... " >&6; }
3679 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3680 $as_echo_n "(cached) " >&6
3682 if test -n "$ac_ct_CC"; then
3683 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3685 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3689 test -z "$as_dir" && as_dir
=.
3690 for ac_exec_ext
in '' $ac_executable_extensions; do
3691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3692 ac_cv_prog_ac_ct_CC
="$ac_prog"
3693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3702 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3703 if test -n "$ac_ct_CC"; then
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3705 $as_echo "$ac_ct_CC" >&6; }
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3708 $as_echo "no" >&6; }
3712 test -n "$ac_ct_CC" && break
3715 if test "x$ac_ct_CC" = x
; then
3718 case $cross_compiling:$ac_tool_warned in
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3721 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3722 ac_tool_warned
=yes ;;
3731 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3732 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3733 as_fn_error
"no acceptable C compiler found in \$PATH
3734 See \`config.log' for more details." "$LINENO" 5; }
3736 # Provide some information about the compiler.
3737 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3740 for ac_option
in --version -v -V -qversion; do
3741 { { ac_try
="$ac_compiler $ac_option >&5"
3743 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3744 *) ac_try_echo=$ac_try;;
3746 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3747 $as_echo "$ac_try_echo"; } >&5
3748 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3750 if test -s conftest.err; then
3752 ... rest of stderr output deleted ...
3753 10q' conftest.err >conftest.er1
3754 cat conftest.er1 >&5
3755 rm -f conftest.er1 conftest.err
3757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3758 test $ac_status = 0; }
3761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3762 /* end confdefs.h. */
3767 FILE *f = fopen ("conftest.out", "w");
3768 return ferror (f) || fclose (f) != 0;
3774 ac_clean_files_save=$ac_clean_files
3775 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3776 # Try to create an executable without -o first, disregard a.out.
3777 # It will help us diagnose broken compilers, and finding out an intuition
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3780 $as_echo_n "checking for C compiler default output file name... " >&6; }
3781 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3783 # The possible output files:
3784 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3787 for ac_file in $ac_files
3790 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3791 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3796 if { { ac_try="$ac_link_default"
3798 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3799 *) ac_try_echo
=$ac_try;;
3801 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3802 $as_echo "$ac_try_echo"; } >&5
3803 (eval "$ac_link_default") 2>&5
3805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3806 test $ac_status = 0; }; then :
3807 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3808 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3809 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3810 # so that the user can short-circuit this test for compilers unknown to
3812 for ac_file
in $ac_files ''
3814 test -f "$ac_file" ||
continue
3816 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3819 # We found the default executable, but exeext='' is most
3823 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3825 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3827 # We set ac_cv_exeext here because the later test for it is not
3828 # safe: cross compilers may not add the suffix if given an `-o'
3829 # argument, so we may need to know it at that point already.
3830 # Even if this section looks crufty: it has the advantage of
3837 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3843 $as_echo "$ac_file" >&6; }
3844 if test -z "$ac_file"; then :
3845 $as_echo "$as_me: failed program was:" >&5
3846 sed 's/^/| /' conftest.
$ac_ext >&5
3848 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3849 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3850 { as_fn_set_status
77
3851 as_fn_error
"C compiler cannot create executables
3852 See \`config.log' for more details." "$LINENO" 5; }; }
3854 ac_exeext
=$ac_cv_exeext
3856 # Check that the compiler produces executables we can run. If not, either
3857 # the compiler is broken, or we cross compile.
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3859 $as_echo_n "checking whether the C compiler works... " >&6; }
3860 # If not cross compiling, check that we can run a simple program.
3861 if test "$cross_compiling" != yes; then
3862 if { ac_try
='./$ac_file'
3863 { { case "(($ac_try" in
3864 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3865 *) ac_try_echo=$ac_try;;
3867 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3868 $as_echo "$ac_try_echo"; } >&5
3869 (eval "$ac_try") 2>&5
3871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3872 test $ac_status = 0; }; }; then
3875 if test "$cross_compiling" = maybe; then
3878 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3879 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3880 as_fn_error "cannot run C compiled programs.
3881 If you meant to cross compile
, use \
`--host'.
3882 See \`config.log
' for more details." "$LINENO" 5; }
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3887 $as_echo "yes" >&6; }
3889 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3890 ac_clean_files=$ac_clean_files_save
3891 # Check that the compiler produces executables we can run. If not, either
3892 # the compiler is broken, or we cross compile.
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3894 $as_echo_n "checking whether we are cross compiling... " >&6; }
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3896 $as_echo "$cross_compiling" >&6; }
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3899 $as_echo_n "checking for suffix of executables... " >&6; }
3900 if { { ac_try="$ac_link"
3902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3903 *) ac_try_echo=$ac_try;;
3905 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3906 $as_echo "$ac_try_echo"; } >&5
3907 (eval "$ac_link") 2>&5
3909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3910 test $ac_status = 0; }; then :
3911 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3912 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3913 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3915 for ac_file
in conftest.exe conftest conftest.
*; do
3916 test -f "$ac_file" ||
continue
3918 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3919 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3925 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3926 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3927 as_fn_error
"cannot compute suffix of executables: cannot compile and link
3928 See \`config.log' for more details." "$LINENO" 5; }
3930 rm -f conftest
$ac_cv_exeext
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3932 $as_echo "$ac_cv_exeext" >&6; }
3934 rm -f conftest.
$ac_ext
3935 EXEEXT
=$ac_cv_exeext
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3938 $as_echo_n "checking for suffix of object files... " >&6; }
3939 if test "${ac_cv_objext+set}" = set; then :
3940 $as_echo_n "(cached) " >&6
3942 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3943 /* end confdefs.h. */
3953 rm -f conftest.o conftest.obj
3954 if { { ac_try
="$ac_compile"
3956 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3957 *) ac_try_echo=$ac_try;;
3959 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3960 $as_echo "$ac_try_echo"; } >&5
3961 (eval "$ac_compile") 2>&5
3963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3964 test $ac_status = 0; }; then :
3965 for ac_file in conftest.o conftest.obj conftest.*; do
3966 test -f "$ac_file" || continue;
3968 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3969 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3974 $as_echo "$as_me: failed program was:" >&5
3975 sed 's/^/| /' conftest.$ac_ext >&5
3977 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3978 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3979 as_fn_error "cannot compute suffix of object files
: cannot compile
3980 See \
`config.log' for more details." "$LINENO" 5; }
3982 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3985 $as_echo "$ac_cv_objext" >&6; }
3986 OBJEXT=$ac_cv_objext
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3989 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3990 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3991 $as_echo_n "(cached) " >&6
3993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3994 /* end confdefs.h. */
4007 if ac_fn_c_try_compile "$LINENO"; then :
4012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4013 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4017 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4018 if test $ac_compiler_gnu = yes; then
4023 ac_test_CFLAGS=${CFLAGS+set}
4024 ac_save_CFLAGS=$CFLAGS
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4026 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4027 if test "${ac_cv_prog_cc_g+set}" = set; then :
4028 $as_echo_n "(cached) " >&6
4030 ac_save_c_werror_flag=$ac_c_werror_flag
4031 ac_c_werror_flag=yes
4034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4035 /* end confdefs.h. */
4045 if ac_fn_c_try_compile "$LINENO"; then :
4049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4050 /* end confdefs.h. */
4060 if ac_fn_c_try_compile "$LINENO"; then :
4063 ac_c_werror_flag=$ac_save_c_werror_flag
4065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4066 /* end confdefs.h. */
4076 if ac_fn_c_try_compile "$LINENO"; then :
4079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4084 ac_c_werror_flag=$ac_save_c_werror_flag
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4087 $as_echo "$ac_cv_prog_cc_g" >&6; }
4088 if test "$ac_test_CFLAGS" = set; then
4089 CFLAGS=$ac_save_CFLAGS
4090 elif test $ac_cv_prog_cc_g = yes; then
4091 if test "$GCC" = yes; then
4097 if test "$GCC" = yes; then
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4104 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4105 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4106 $as_echo_n "(cached) " >&6
4108 ac_cv_prog_cc_c89=no
4110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4111 /* end confdefs.h. */
4114 #include <sys/types.h>
4115 #include <sys/stat.h>
4116 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4117 struct buf { int x; };
4118 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4119 static char *e (p, i)
4125 static char *f (char * (*g) (char **, int), char **p, ...)
4130 s = g (p, va_arg (v,int));
4135 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4136 function prototypes and stuff, but not '\xHH' hex character constants.
4137 These don't provoke an error unfortunately, instead are silently treated
4138 as 'x'. The following induces an error, until -std is added to get
4139 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4140 array size at least. It's necessary to write '\x00'==0 to get something
4141 that's true only with -std. */
4142 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4144 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4145 inside strings and character constants. */
4147 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4149 int test (int i, double x);
4150 struct s1 {int (*f) (int a);};
4151 struct s2 {int (*f) (double a);};
4152 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4158 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4163 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4164 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4166 CC="$ac_save_CC $ac_arg"
4167 if ac_fn_c_try_compile "$LINENO"; then :
4168 ac_cv_prog_cc_c89=$ac_arg
4170 rm -f core conftest.err conftest.$ac_objext
4171 test "x$ac_cv_prog_cc_c89" != "xno" && break
4173 rm -f conftest.$ac_ext
4178 case "x$ac_cv_prog_cc_c89" in
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4181 $as_echo "none needed" >&6; } ;;
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4184 $as_echo "unsupported" >&6; } ;;
4186 CC="$CC $ac_cv_prog_cc_c89"
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4188 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4190 if test "x$ac_cv_prog_cc_c89" != xno; then :
4195 ac_cpp='$CPP $CPPFLAGS'
4196 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4197 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4198 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4202 ac_cpp='$CPP $CPPFLAGS'
4203 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4204 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4205 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4207 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4208 # On Suns, sometimes $CPP names a directory.
4209 if test -n "$CPP" && test -d "$CPP"; then
4212 if test -z "$CPP"; then
4213 if test "${ac_cv_prog_CPP+set}" = set; then :
4214 $as_echo_n "(cached) " >&6
4216 # Double quotes because CPP needs to be expanded
4217 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4220 for ac_c_preproc_warn_flag in '' yes
4222 # Use a header file that comes with gcc, so configuring glibc
4223 # with a fresh cross-compiler works.
4224 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4225 # <limits.h> exists even on freestanding compilers.
4226 # On the NeXT, cc -E runs the code through the compiler's parser,
4227 # not just through cpp. "Syntax error" is here to catch this case.
4228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4229 /* end confdefs.h. */
4231 # include <limits.h>
4233 # include <assert.h>
4237 if ac_fn_c_try_cpp "$LINENO"; then :
4240 # Broken: fails on valid input.
4243 rm -f conftest.err conftest.$ac_ext
4245 # OK, works on sane cases. Now check whether nonexistent headers
4246 # can be detected and how.
4247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4248 /* end confdefs.h. */
4249 #include <ac_nonexistent.h>
4251 if ac_fn_c_try_cpp "$LINENO"; then :
4252 # Broken: success on invalid input.
4255 # Passes both tests.
4259 rm -f conftest.err conftest.$ac_ext
4262 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4263 rm -f conftest.err conftest.
$ac_ext
4264 if $ac_preproc_ok; then :
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4277 $as_echo "$CPP" >&6; }
4279 for ac_c_preproc_warn_flag
in '' yes
4281 # Use a header file that comes with gcc, so configuring glibc
4282 # with a fresh cross-compiler works.
4283 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4284 # <limits.h> exists even on freestanding compilers.
4285 # On the NeXT, cc -E runs the code through the compiler's parser,
4286 # not just through cpp. "Syntax error" is here to catch this case.
4287 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4288 /* end confdefs.h. */
4290 # include <limits.h>
4292 # include <assert.h>
4296 if ac_fn_c_try_cpp
"$LINENO"; then :
4299 # Broken: fails on valid input.
4302 rm -f conftest.err conftest.
$ac_ext
4304 # OK, works on sane cases. Now check whether nonexistent headers
4305 # can be detected and how.
4306 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4307 /* end confdefs.h. */
4308 #include <ac_nonexistent.h>
4310 if ac_fn_c_try_cpp
"$LINENO"; then :
4311 # Broken: success on invalid input.
4314 # Passes both tests.
4318 rm -f conftest.err conftest.
$ac_ext
4321 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4322 rm -f conftest.err conftest.
$ac_ext
4323 if $ac_preproc_ok; then :
4326 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4327 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4328 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
4329 See \`config.log' for more details." "$LINENO" 5; }
4333 ac_cpp
='$CPP $CPPFLAGS'
4334 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4335 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4336 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4340 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4341 if test "${ac_cv_path_GREP+set}" = set; then :
4342 $as_echo_n "(cached) " >&6
4344 if test -z "$GREP"; then
4345 ac_path_GREP_found
=false
4346 # Loop through the user's path and test for each of PROGNAME-LIST
4347 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4348 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4351 test -z "$as_dir" && as_dir
=.
4352 for ac_prog
in grep ggrep
; do
4353 for ac_exec_ext
in '' $ac_executable_extensions; do
4354 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4355 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4356 # Check for GNU ac_path_GREP and select it if it is found.
4357 # Check for GNU $ac_path_GREP
4358 case `"$ac_path_GREP" --version 2>&1` in
4360 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4363 $as_echo_n 0123456789 >"conftest.in"
4366 cat "conftest.in" "conftest.in" >"conftest.tmp"
4367 mv "conftest.tmp" "conftest.in"
4368 cp "conftest.in" "conftest.nl"
4369 $as_echo 'GREP' >> "conftest.nl"
4370 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4371 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4372 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4373 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4374 # Best one so far, save it but keep looking for a better one
4375 ac_cv_path_GREP
="$ac_path_GREP"
4376 ac_path_GREP_max
=$ac_count
4378 # 10*(2^10) chars as input seems more than enough
4379 test $ac_count -gt 10 && break
4381 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4384 $ac_path_GREP_found && break 3
4389 if test -z "$ac_cv_path_GREP"; then
4390 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4393 ac_cv_path_GREP
=$GREP
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4398 $as_echo "$ac_cv_path_GREP" >&6; }
4399 GREP
="$ac_cv_path_GREP"
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4403 $as_echo_n "checking for egrep... " >&6; }
4404 if test "${ac_cv_path_EGREP+set}" = set; then :
4405 $as_echo_n "(cached) " >&6
4407 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4408 then ac_cv_path_EGREP
="$GREP -E"
4410 if test -z "$EGREP"; then
4411 ac_path_EGREP_found
=false
4412 # Loop through the user's path and test for each of PROGNAME-LIST
4413 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4414 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4417 test -z "$as_dir" && as_dir
=.
4418 for ac_prog
in egrep; do
4419 for ac_exec_ext
in '' $ac_executable_extensions; do
4420 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4421 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4422 # Check for GNU ac_path_EGREP and select it if it is found.
4423 # Check for GNU $ac_path_EGREP
4424 case `"$ac_path_EGREP" --version 2>&1` in
4426 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4429 $as_echo_n 0123456789 >"conftest.in"
4432 cat "conftest.in" "conftest.in" >"conftest.tmp"
4433 mv "conftest.tmp" "conftest.in"
4434 cp "conftest.in" "conftest.nl"
4435 $as_echo 'EGREP' >> "conftest.nl"
4436 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4437 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4438 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4439 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4440 # Best one so far, save it but keep looking for a better one
4441 ac_cv_path_EGREP
="$ac_path_EGREP"
4442 ac_path_EGREP_max
=$ac_count
4444 # 10*(2^10) chars as input seems more than enough
4445 test $ac_count -gt 10 && break
4447 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4450 $ac_path_EGREP_found && break 3
4455 if test -z "$ac_cv_path_EGREP"; then
4456 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4459 ac_cv_path_EGREP
=$EGREP
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4465 $as_echo "$ac_cv_path_EGREP" >&6; }
4466 EGREP
="$ac_cv_path_EGREP"
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4470 $as_echo_n "checking for ANSI C header files... " >&6; }
4471 if test "${ac_cv_header_stdc+set}" = set; then :
4472 $as_echo_n "(cached) " >&6
4474 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4475 /* end confdefs.h. */
4489 if ac_fn_c_try_compile
"$LINENO"; then :
4490 ac_cv_header_stdc
=yes
4492 ac_cv_header_stdc
=no
4494 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4496 if test $ac_cv_header_stdc = yes; then
4497 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4498 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4499 /* end confdefs.h. */
4503 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4504 $EGREP "memchr" >/dev
/null
2>&1; then :
4507 ac_cv_header_stdc
=no
4513 if test $ac_cv_header_stdc = yes; then
4514 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4515 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4516 /* end confdefs.h. */
4520 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4521 $EGREP "free" >/dev
/null
2>&1; then :
4524 ac_cv_header_stdc
=no
4530 if test $ac_cv_header_stdc = yes; then
4531 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4532 if test "$cross_compiling" = yes; then :
4535 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4536 /* end confdefs.h. */
4539 #if ((' ' & 0x0FF) == 0x020)
4540 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4541 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4543 # define ISLOWER(c) \
4544 (('a' <= (c) && (c) <= 'i') \
4545 || ('j' <= (c) && (c) <= 'r') \
4546 || ('s' <= (c) && (c) <= 'z'))
4547 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4550 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4555 for (i = 0; i < 256; i++)
4556 if (XOR (islower (i), ISLOWER (i))
4557 || toupper (i) != TOUPPER (i))
4562 if ac_fn_c_try_run
"$LINENO"; then :
4565 ac_cv_header_stdc
=no
4567 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4568 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4574 $as_echo "$ac_cv_header_stdc" >&6; }
4575 if test $ac_cv_header_stdc = yes; then
4577 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4581 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4582 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4583 inttypes.h stdint.h unistd.h
4585 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4586 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4588 eval as_val
=\$
$as_ac_Header
4589 if test "x$as_val" = x
""yes; then :
4590 cat >>confdefs.h
<<_ACEOF
4591 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4600 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4601 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
4608 if test "$MINIX" = yes; then
4610 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4613 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4616 $as_echo "#define _MINIX 1" >>confdefs.h
4619 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4625 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4626 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4627 $as_echo_n "(cached) " >&6
4629 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4630 /* end confdefs.h. */
4632 # define __EXTENSIONS__ 1
4633 $ac_includes_default
4642 if ac_fn_c_try_compile
"$LINENO"; then :
4643 ac_cv_safe_to_define___extensions__
=yes
4645 ac_cv_safe_to_define___extensions__
=no
4647 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4650 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4651 test $ac_cv_safe_to_define___extensions__ = yes &&
4652 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4654 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4656 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4658 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4660 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4662 $as_echo "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
4664 $as_echo "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
4666 $as_echo "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
4668 $as_echo "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
4670 $as_echo "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
4672 $as_echo "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
4674 $as_echo "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
4676 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4679 $as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4680 if test "${ac_cv_should_define__xopen_source+set}" = set; then :
4681 $as_echo_n "(cached) " >&6
4683 ac_cv_should_define__xopen_source
=no
4684 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4685 /* end confdefs.h. */
4697 if ac_fn_c_try_compile
"$LINENO"; then :
4700 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4701 /* end confdefs.h. */
4703 #define _XOPEN_SOURCE 500
4714 if ac_fn_c_try_compile
"$LINENO"; then :
4715 ac_cv_should_define__xopen_source
=yes
4717 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4719 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4722 $as_echo "$ac_cv_should_define__xopen_source" >&6; }
4723 test $ac_cv_should_define__xopen_source = yes &&
4724 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
4737 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
4738 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
4739 $as_echo_n "(cached) " >&6
4742 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4743 /* end confdefs.h. */
4750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4751 $EGREP "Amsterdam" >/dev
/null
2>&1; then :
4752 gl_cv_c_amsterdam_compiler
=yes
4754 gl_cv_c_amsterdam_compiler
=no
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
4761 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
4763 if test $gl_cv_c_amsterdam_compiler = yes; then
4764 if test -z "$AR"; then
4767 if test -z "$ARFLAGS"; then
4774 if test -n "$ac_tool_prefix"; then
4775 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4776 set dummy
${ac_tool_prefix}ar; ac_word
=$2
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4778 $as_echo_n "checking for $ac_word... " >&6; }
4779 if test "${ac_cv_prog_AR+set}" = set; then :
4780 $as_echo_n "(cached) " >&6
4782 if test -n "$AR"; then
4783 ac_cv_prog_AR
="$AR" # Let the user override the test.
4785 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4789 test -z "$as_dir" && as_dir
=.
4790 for ac_exec_ext
in '' $ac_executable_extensions; do
4791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4792 ac_cv_prog_AR
="${ac_tool_prefix}ar"
4793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4803 if test -n "$AR"; then
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4805 $as_echo "$AR" >&6; }
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4808 $as_echo "no" >&6; }
4813 if test -z "$ac_cv_prog_AR"; then
4815 # Extract the first word of "ar", so it can be a program name with args.
4816 set dummy
ar; ac_word
=$2
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4818 $as_echo_n "checking for $ac_word... " >&6; }
4819 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4820 $as_echo_n "(cached) " >&6
4822 if test -n "$ac_ct_AR"; then
4823 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
4825 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4829 test -z "$as_dir" && as_dir
=.
4830 for ac_exec_ext
in '' $ac_executable_extensions; do
4831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4832 ac_cv_prog_ac_ct_AR
="ar"
4833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4842 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
4843 if test -n "$ac_ct_AR"; then
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4845 $as_echo "$ac_ct_AR" >&6; }
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4848 $as_echo "no" >&6; }
4851 if test "x$ac_ct_AR" = x
; then
4854 case $cross_compiling:$ac_tool_warned in
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4857 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4858 ac_tool_warned
=yes ;;
4866 if test -z "$ARFLAGS"; then
4872 if test -z "$RANLIB"; then
4873 if test $gl_cv_c_amsterdam_compiler = yes; then
4876 if test -n "$ac_tool_prefix"; then
4877 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4878 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4880 $as_echo_n "checking for $ac_word... " >&6; }
4881 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4882 $as_echo_n "(cached) " >&6
4884 if test -n "$RANLIB"; then
4885 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4887 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4891 test -z "$as_dir" && as_dir
=.
4892 for ac_exec_ext
in '' $ac_executable_extensions; do
4893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4894 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4904 RANLIB
=$ac_cv_prog_RANLIB
4905 if test -n "$RANLIB"; then
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4907 $as_echo "$RANLIB" >&6; }
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4910 $as_echo "no" >&6; }
4915 if test -z "$ac_cv_prog_RANLIB"; then
4916 ac_ct_RANLIB
=$RANLIB
4917 # Extract the first word of "ranlib", so it can be a program name with args.
4918 set dummy ranlib
; ac_word
=$2
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4920 $as_echo_n "checking for $ac_word... " >&6; }
4921 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4922 $as_echo_n "(cached) " >&6
4924 if test -n "$ac_ct_RANLIB"; then
4925 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4927 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4931 test -z "$as_dir" && as_dir
=.
4932 for ac_exec_ext
in '' $ac_executable_extensions; do
4933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4934 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4944 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4945 if test -n "$ac_ct_RANLIB"; then
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4947 $as_echo "$ac_ct_RANLIB" >&6; }
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4950 $as_echo "no" >&6; }
4953 if test "x$ac_ct_RANLIB" = x
; then
4956 case $cross_compiling:$ac_tool_warned in
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4959 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4960 ac_tool_warned
=yes ;;
4962 RANLIB
=$ac_ct_RANLIB
4965 RANLIB
="$ac_cv_prog_RANLIB"
4973 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4974 for ac_t
in install-sh
install.sh shtool
; do
4975 if test -f "$ac_dir/$ac_t"; then
4977 ac_install_sh
="$ac_aux_dir/$ac_t -c"
4982 if test -z "$ac_aux_dir"; then
4983 as_fn_error
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4986 # These three variables are undocumented and unsupported,
4987 # and are intended to be withdrawn in a future Autoconf release.
4988 # They can cause serious problems if a builder's source tree is in a directory
4989 # whose full name contains unusual characters.
4990 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4991 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4992 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4995 # Make sure we can run config.sub.
4996 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4997 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5000 $as_echo_n "checking build system type... " >&6; }
5001 if test "${ac_cv_build+set}" = set; then :
5002 $as_echo_n "(cached) " >&6
5004 ac_build_alias
=$build_alias
5005 test "x$ac_build_alias" = x
&&
5006 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
5007 test "x$ac_build_alias" = x
&&
5008 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
5009 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5010 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5014 $as_echo "$ac_cv_build" >&6; }
5015 case $ac_cv_build in
5017 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
5020 ac_save_IFS
=$IFS; IFS
='-'
5026 # Remember, the first character of IFS is used to create $*,
5027 # except with old shells:
5030 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5034 $as_echo_n "checking host system type... " >&6; }
5035 if test "${ac_cv_host+set}" = set; then :
5036 $as_echo_n "(cached) " >&6
5038 if test "x$host_alias" = x
; then
5039 ac_cv_host
=$ac_cv_build
5041 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5042 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5047 $as_echo "$ac_cv_host" >&6; }
5050 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
5053 ac_save_IFS
=$IFS; IFS
='-'
5059 # Remember, the first character of IFS is used to create $*,
5060 # except with old shells:
5063 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
5069 # IEEE behaviour is the default on all CPUs except Alpha and SH
5070 # (according to the test results of Bruno Haible's ieeefp/fenv_default.m4
5071 # and the GCC 4.1.2 manual).
5074 # On Alpha systems, a compiler option provides the behaviour.
5075 # See the ieee(3) manual page, also available at
5076 # <http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V51B_HTML/MAN/MAN3/0600____.HTM>
5077 if test -n "$GCC"; then
5078 # GCC has the option -mieee.
5079 # For full IEEE compliance (rarely needed), use option -mieee-with-inexact.
5080 CPPFLAGS
="$CPPFLAGS -mieee"
5082 # Compaq (ex-DEC) C has the option -ieee, equivalent to -ieee_with_no_inexact.
5083 # For full IEEE compliance (rarely needed), use option -ieee_with_inexact.
5084 CPPFLAGS
="$CPPFLAGS -ieee"
5088 if test -n "$GCC"; then
5089 # GCC has the option -mieee.
5090 CPPFLAGS
="$CPPFLAGS -mieee"
5095 # Check whether --enable-largefile was given.
5096 if test "${enable_largefile+set}" = set; then :
5097 enableval
=$enable_largefile;
5100 if test "$enable_largefile" != no
; then
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5103 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5104 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5105 $as_echo_n "(cached) " >&6
5107 ac_cv_sys_largefile_CC
=no
5108 if test "$GCC" != yes; then
5111 # IRIX 6.2 and later do not support large files by default,
5112 # so use the C compiler's -n32 option if that helps.
5113 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5114 /* end confdefs.h. */
5115 #include <sys/types.h>
5116 /* Check that off_t can represent 2**63 - 1 correctly.
5117 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5118 since some C++ compilers masquerading as C compilers
5119 incorrectly reject 9223372036854775807. */
5120 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5121 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5122 && LARGE_OFF_T % 2147483647 == 1)
5132 if ac_fn_c_try_compile
"$LINENO"; then :
5135 rm -f core conftest.err conftest.
$ac_objext
5137 if ac_fn_c_try_compile
"$LINENO"; then :
5138 ac_cv_sys_largefile_CC
=' -n32'; break
5140 rm -f core conftest.err conftest.
$ac_objext
5144 rm -f conftest.
$ac_ext
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5148 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5149 if test "$ac_cv_sys_largefile_CC" != no
; then
5150 CC
=$CC$ac_cv_sys_largefile_CC
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5154 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5155 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5156 $as_echo_n "(cached) " >&6
5159 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5160 /* end confdefs.h. */
5161 #include <sys/types.h>
5162 /* Check that off_t can represent 2**63 - 1 correctly.
5163 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5164 since some C++ compilers masquerading as C compilers
5165 incorrectly reject 9223372036854775807. */
5166 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5167 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5168 && LARGE_OFF_T % 2147483647 == 1)
5178 if ac_fn_c_try_compile
"$LINENO"; then :
5179 ac_cv_sys_file_offset_bits
=no
; break
5181 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5182 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5183 /* end confdefs.h. */
5184 #define _FILE_OFFSET_BITS 64
5185 #include <sys/types.h>
5186 /* Check that off_t can represent 2**63 - 1 correctly.
5187 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5188 since some C++ compilers masquerading as C compilers
5189 incorrectly reject 9223372036854775807. */
5190 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5191 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5192 && LARGE_OFF_T % 2147483647 == 1)
5202 if ac_fn_c_try_compile
"$LINENO"; then :
5203 ac_cv_sys_file_offset_bits
=64; break
5205 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5206 ac_cv_sys_file_offset_bits
=unknown
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5211 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5212 case $ac_cv_sys_file_offset_bits in #(
5215 cat >>confdefs.h
<<_ACEOF
5216 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5221 if test $ac_cv_sys_file_offset_bits = unknown
; then
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5223 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5224 if test "${ac_cv_sys_large_files+set}" = set; then :
5225 $as_echo_n "(cached) " >&6
5228 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5229 /* end confdefs.h. */
5230 #include <sys/types.h>
5231 /* Check that off_t can represent 2**63 - 1 correctly.
5232 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5233 since some C++ compilers masquerading as C compilers
5234 incorrectly reject 9223372036854775807. */
5235 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5236 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5237 && LARGE_OFF_T % 2147483647 == 1)
5247 if ac_fn_c_try_compile
"$LINENO"; then :
5248 ac_cv_sys_large_files
=no
; break
5250 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5251 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5252 /* end confdefs.h. */
5253 #define _LARGE_FILES 1
5254 #include <sys/types.h>
5255 /* Check that off_t can represent 2**63 - 1 correctly.
5256 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5257 since some C++ compilers masquerading as C compilers
5258 incorrectly reject 9223372036854775807. */
5259 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5260 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5261 && LARGE_OFF_T % 2147483647 == 1)
5271 if ac_fn_c_try_compile
"$LINENO"; then :
5272 ac_cv_sys_large_files
=1; break
5274 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5275 ac_cv_sys_large_files
=unknown
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5280 $as_echo "$ac_cv_sys_large_files" >&6; }
5281 case $ac_cv_sys_large_files in #(
5284 cat >>confdefs.h
<<_ACEOF
5285 #define _LARGE_FILES $ac_cv_sys_large_files
5293 $as_echo "#define _DARWIN_USE_64_BIT_INODE 1" >>confdefs.h
5299 # Pre-early section.
5303 # Code from module absolute-header:
5304 # Code from module alloca:
5305 # Code from module alloca-opt:
5306 # Code from module canonicalize-lgpl:
5307 # Code from module chdir:
5308 # Code from module configmake:
5309 # Code from module dirent:
5310 # Code from module dirfd:
5311 # Code from module dirname-lgpl:
5312 # Code from module dosname:
5313 # Code from module double-slash-root:
5314 # Code from module errno:
5315 # Code from module extensions:
5316 # Code from module extern-inline:
5317 # Code from module flexmember:
5318 # Code from module float:
5319 # Code from module fnmatch:
5320 # Code from module fnmatch-gnu:
5321 # Code from module fpieee:
5323 # Code from module fpucw:
5324 # Code from module frexp:
5325 # Code from module frexpl:
5326 # Code from module gettimeofday:
5327 # Code from module hard-locale:
5328 # Code from module include_next:
5329 # Code from module inttypes:
5330 # Code from module inttypes-incomplete:
5331 # Code from module isnand-nolibm:
5332 # Code from module isnanl-nolibm:
5333 # Code from module largefile:
5335 # Code from module limits-h:
5336 # Code from module localcharset:
5337 # Code from module lstat:
5338 # Code from module malloc-posix:
5339 # Code from module malloca:
5340 # Code from module math:
5341 # Code from module mbrtowc:
5342 # Code from module mbsinit:
5343 # Code from module mbsrtowcs:
5344 # Code from module memchr:
5345 # Code from module memmem:
5346 # Code from module memmem-simple:
5347 # Code from module multiarch:
5348 # Code from module nocrash:
5349 # Code from module pathmax:
5350 # Code from module rawmemchr:
5351 # Code from module readlink:
5352 # Code from module rename:
5353 # Code from module rmdir:
5354 # Code from module same-inode:
5355 # Code from module signal-h:
5356 # Code from module snippet/_Noreturn:
5357 # Code from module snippet/arg-nonnull:
5358 # Code from module snippet/c++defs:
5359 # Code from module snippet/warn-on-use:
5360 # Code from module ssize_t:
5361 # Code from module stat:
5362 # Code from module stdbool:
5363 # Code from module stddef:
5364 # Code from module stdint:
5365 # Code from module stdio:
5366 # Code from module stdlib:
5367 # Code from module strchrnul:
5368 # Code from module streq:
5369 # Code from module string:
5370 # Code from module strnlen1:
5371 # Code from module strstr:
5372 # Code from module strstr-simple:
5373 # Code from module strtok_r:
5374 # Code from module sys_stat:
5375 # Code from module sys_time:
5376 # Code from module sys_types:
5377 # Code from module time:
5378 # Code from module unistd:
5379 # Code from module update-copyright:
5380 # Code from module verify:
5381 # Code from module wchar:
5382 # Code from module wctype-h:
5385 ac_cpp
='$CPP $CPPFLAGS'
5386 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5387 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5388 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5389 if test -n "$ac_tool_prefix"; then
5390 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5391 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5393 $as_echo_n "checking for $ac_word... " >&6; }
5394 if test "${ac_cv_prog_CC+set}" = set; then :
5395 $as_echo_n "(cached) " >&6
5397 if test -n "$CC"; then
5398 ac_cv_prog_CC
="$CC" # Let the user override the test.
5400 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5404 test -z "$as_dir" && as_dir
=.
5405 for ac_exec_ext
in '' $ac_executable_extensions; do
5406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5407 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
5408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5418 if test -n "$CC"; then
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5420 $as_echo "$CC" >&6; }
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5423 $as_echo "no" >&6; }
5428 if test -z "$ac_cv_prog_CC"; then
5430 # Extract the first word of "gcc", so it can be a program name with args.
5431 set dummy gcc
; ac_word
=$2
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5433 $as_echo_n "checking for $ac_word... " >&6; }
5434 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5435 $as_echo_n "(cached) " >&6
5437 if test -n "$ac_ct_CC"; then
5438 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
5440 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5444 test -z "$as_dir" && as_dir
=.
5445 for ac_exec_ext
in '' $ac_executable_extensions; do
5446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5447 ac_cv_prog_ac_ct_CC
="gcc"
5448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5457 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
5458 if test -n "$ac_ct_CC"; then
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5460 $as_echo "$ac_ct_CC" >&6; }
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5463 $as_echo "no" >&6; }
5466 if test "x$ac_ct_CC" = x
; then
5469 case $cross_compiling:$ac_tool_warned in
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5472 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5473 ac_tool_warned
=yes ;;
5481 if test -z "$CC"; then
5482 if test -n "$ac_tool_prefix"; then
5483 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5484 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5486 $as_echo_n "checking for $ac_word... " >&6; }
5487 if test "${ac_cv_prog_CC+set}" = set; then :
5488 $as_echo_n "(cached) " >&6
5490 if test -n "$CC"; then
5491 ac_cv_prog_CC
="$CC" # Let the user override the test.
5493 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5497 test -z "$as_dir" && as_dir
=.
5498 for ac_exec_ext
in '' $ac_executable_extensions; do
5499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5500 ac_cv_prog_CC
="${ac_tool_prefix}cc"
5501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5511 if test -n "$CC"; then
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5513 $as_echo "$CC" >&6; }
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5516 $as_echo "no" >&6; }
5522 if test -z "$CC"; then
5523 # Extract the first word of "cc", so it can be a program name with args.
5524 set dummy cc
; ac_word
=$2
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5526 $as_echo_n "checking for $ac_word... " >&6; }
5527 if test "${ac_cv_prog_CC+set}" = set; then :
5528 $as_echo_n "(cached) " >&6
5530 if test -n "$CC"; then
5531 ac_cv_prog_CC
="$CC" # Let the user override the test.
5534 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5538 test -z "$as_dir" && as_dir
=.
5539 for ac_exec_ext
in '' $ac_executable_extensions; do
5540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5541 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5542 ac_prog_rejected
=yes
5546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5553 if test $ac_prog_rejected = yes; then
5554 # We found a bogon in the path, so make sure we never use it.
5555 set dummy
$ac_cv_prog_CC
5557 if test $# != 0; then
5558 # We chose a different compiler from the bogus one.
5559 # However, it has the same basename, so the bogon will be chosen
5560 # first if we set CC to just the basename; use the full file name.
5562 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
5568 if test -n "$CC"; then
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5570 $as_echo "$CC" >&6; }
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5573 $as_echo "no" >&6; }
5578 if test -z "$CC"; then
5579 if test -n "$ac_tool_prefix"; then
5580 for ac_prog
in cl.exe
5582 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5583 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5585 $as_echo_n "checking for $ac_word... " >&6; }
5586 if test "${ac_cv_prog_CC+set}" = set; then :
5587 $as_echo_n "(cached) " >&6
5589 if test -n "$CC"; then
5590 ac_cv_prog_CC
="$CC" # Let the user override the test.
5592 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5596 test -z "$as_dir" && as_dir
=.
5597 for ac_exec_ext
in '' $ac_executable_extensions; do
5598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5599 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
5600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5610 if test -n "$CC"; then
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5612 $as_echo "$CC" >&6; }
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5615 $as_echo "no" >&6; }
5619 test -n "$CC" && break
5622 if test -z "$CC"; then
5624 for ac_prog
in cl.exe
5626 # Extract the first word of "$ac_prog", so it can be a program name with args.
5627 set dummy
$ac_prog; ac_word
=$2
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5629 $as_echo_n "checking for $ac_word... " >&6; }
5630 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5631 $as_echo_n "(cached) " >&6
5633 if test -n "$ac_ct_CC"; then
5634 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
5636 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5640 test -z "$as_dir" && as_dir
=.
5641 for ac_exec_ext
in '' $ac_executable_extensions; do
5642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5643 ac_cv_prog_ac_ct_CC
="$ac_prog"
5644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5653 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
5654 if test -n "$ac_ct_CC"; then
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5656 $as_echo "$ac_ct_CC" >&6; }
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5659 $as_echo "no" >&6; }
5663 test -n "$ac_ct_CC" && break
5666 if test "x$ac_ct_CC" = x
; then
5669 case $cross_compiling:$ac_tool_warned in
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5672 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5673 ac_tool_warned
=yes ;;
5682 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5683 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5684 as_fn_error
"no acceptable C compiler found in \$PATH
5685 See \`config.log' for more details." "$LINENO" 5; }
5687 # Provide some information about the compiler.
5688 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5691 for ac_option
in --version -v -V -qversion; do
5692 { { ac_try
="$ac_compiler $ac_option >&5"
5694 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5695 *) ac_try_echo=$ac_try;;
5697 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5698 $as_echo "$ac_try_echo"; } >&5
5699 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5701 if test -s conftest.err; then
5703 ... rest of stderr output deleted ...
5704 10q' conftest.err >conftest.er1
5705 cat conftest.er1 >&5
5706 rm -f conftest.er1 conftest.err
5708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5709 test $ac_status = 0; }
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5713 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5714 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5715 $as_echo_n "(cached) " >&6
5717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5718 /* end confdefs.h. */
5731 if ac_fn_c_try_compile "$LINENO"; then :
5736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5737 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5741 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5742 if test $ac_compiler_gnu = yes; then
5747 ac_test_CFLAGS=${CFLAGS+set}
5748 ac_save_CFLAGS=$CFLAGS
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5750 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5751 if test "${ac_cv_prog_cc_g+set}" = set; then :
5752 $as_echo_n "(cached) " >&6
5754 ac_save_c_werror_flag=$ac_c_werror_flag
5755 ac_c_werror_flag=yes
5758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5759 /* end confdefs.h. */
5769 if ac_fn_c_try_compile "$LINENO"; then :
5773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5774 /* end confdefs.h. */
5784 if ac_fn_c_try_compile "$LINENO"; then :
5787 ac_c_werror_flag=$ac_save_c_werror_flag
5789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5790 /* end confdefs.h. */
5800 if ac_fn_c_try_compile "$LINENO"; then :
5803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5808 ac_c_werror_flag=$ac_save_c_werror_flag
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5811 $as_echo "$ac_cv_prog_cc_g" >&6; }
5812 if test "$ac_test_CFLAGS" = set; then
5813 CFLAGS=$ac_save_CFLAGS
5814 elif test $ac_cv_prog_cc_g = yes; then
5815 if test "$GCC" = yes; then
5821 if test "$GCC" = yes; then
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5828 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5829 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5830 $as_echo_n "(cached) " >&6
5832 ac_cv_prog_cc_c89=no
5834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5835 /* end confdefs.h. */
5838 #include <sys/types.h>
5839 #include <sys/stat.h>
5840 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5841 struct buf { int x; };
5842 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5843 static char *e (p, i)
5849 static char *f (char * (*g) (char **, int), char **p, ...)
5854 s = g (p, va_arg (v,int));
5859 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5860 function prototypes and stuff, but not '\xHH' hex character constants.
5861 These don't provoke an error unfortunately, instead are silently treated
5862 as 'x'. The following induces an error, until -std is added to get
5863 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5864 array size at least. It's necessary to write '\x00'==0 to get something
5865 that's true only with -std. */
5866 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5868 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5869 inside strings and character constants. */
5871 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5873 int test (int i, double x);
5874 struct s1 {int (*f) (int a);};
5875 struct s2 {int (*f) (double a);};
5876 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5882 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5887 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5888 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5890 CC="$ac_save_CC $ac_arg"
5891 if ac_fn_c_try_compile "$LINENO"; then :
5892 ac_cv_prog_cc_c89=$ac_arg
5894 rm -f core conftest.err conftest.$ac_objext
5895 test "x$ac_cv_prog_cc_c89" != "xno" && break
5897 rm -f conftest.$ac_ext
5902 case "x$ac_cv_prog_cc_c89" in
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5905 $as_echo "none needed" >&6; } ;;
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5908 $as_echo "unsupported" >&6; } ;;
5910 CC="$CC $ac_cv_prog_cc_c89"
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5912 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5914 if test "x$ac_cv_prog_cc_c89" != xno; then :
5919 ac_cpp='$CPP $CPPFLAGS'
5920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5925 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5929 for ac_dir in ../.. "$srcdir"/../..; do
5930 for ac_t in install-sh install.sh shtool; do
5931 if test -f "$ac_dir/$ac_t"; then
5933 ac_install_sh="$ac_aux_dir/$ac_t -c"
5938 if test -z "$ac_aux_dir"; then
5939 as_fn_error "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5
5942 # These three variables are undocumented and unsupported,
5943 # and are intended to be withdrawn in a future Autoconf release.
5944 # They can cause serious problems if a builder's source tree is in a directory
5945 # whose full name contains unusual characters.
5946 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5947 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5948 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
5952 $as_echo_n "checking target system type... " >&6; }
5953 if test "${ac_cv_target+set}" = set; then :
5954 $as_echo_n "(cached) " >&6
5956 if test "x$target_alias" = x; then
5957 ac_cv_target=$ac_cv_host
5959 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
5960 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
5965 $as_echo "$ac_cv_target" >&6; }
5966 case $ac_cv_target in
5968 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
5970 target=$ac_cv_target
5971 ac_save_IFS=$IFS; IFS='-'
5977 # Remember, the first character of IFS is used to create $*,
5978 # except with old shells:
5981 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
5984 # The aliases save the names the user supplied, while $host etc.
5985 # will get canonicalized.
5986 test -n "$target_alias" &&
5987 test "$program_prefix$program_suffix$program_transform_name" = \
5989 program_prefix=${target_alias}-
5997 LIBC_FATAL_STDERR_=1
5998 export LIBC_FATAL_STDERR_
6000 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6001 # for constant arguments. Useless!
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6003 $as_echo_n "checking for working alloca.h... " >&6; }
6004 if test "${ac_cv_working_alloca_h+set}" = set; then :
6005 $as_echo_n "(cached) " >&6
6007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6008 /* end confdefs.h. */
6013 char *p = (char *) alloca (2 * sizeof (int));
6019 if ac_fn_c_try_link "$LINENO"; then :
6020 ac_cv_working_alloca_h=yes
6022 ac_cv_working_alloca_h=no
6024 rm -f core conftest.err conftest.$ac_objext \
6025 conftest$ac_exeext conftest.$ac_ext
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6028 $as_echo "$ac_cv_working_alloca_h" >&6; }
6029 if test $ac_cv_working_alloca_h = yes; then
6031 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6036 $as_echo_n "checking for alloca... " >&6; }
6037 if test "${ac_cv_func_alloca_works+set}" = set; then :
6038 $as_echo_n "(cached) " >&6
6040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6041 /* end confdefs.h. */
6043 # define alloca __builtin_alloca
6046 # include <malloc.h>
6047 # define alloca _alloca
6049 # ifdef HAVE_ALLOCA_H
6050 # include <alloca.h>
6055 # ifndef alloca /* predefined by HP cc +Olibcalls */
6066 char *p = (char *) alloca (1);
6072 if ac_fn_c_try_link "$LINENO"; then :
6073 ac_cv_func_alloca_works=yes
6075 ac_cv_func_alloca_works=no
6077 rm -f core conftest.err conftest.$ac_objext \
6078 conftest$ac_exeext conftest.$ac_ext
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6081 $as_echo "$ac_cv_func_alloca_works" >&6; }
6083 if test $ac_cv_func_alloca_works = yes; then
6085 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6088 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6089 # that cause trouble. Some versions do not even contain alloca or
6090 # contain a buggy version. If you still want to use their alloca,
6091 # use ar to extract alloca.o from them instead of compiling alloca.c.
6097 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6099 $as_echo "#define C_ALLOCA 1" >>confdefs.h
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
6103 $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
6104 if test "${ac_cv_os_cray+set}" = set; then :
6105 $as_echo_n "(cached) " >&6
6107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6108 /* end confdefs.h. */
6109 #if defined CRAY && ! defined CRAY2
6116 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6117 $EGREP "webecray" >/dev/null 2>&1; then :
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6126 $as_echo "$ac_cv_os_cray" >&6; }
6127 if test $ac_cv_os_cray = yes; then
6128 for ac_func in _getb67 GETB67 getb67; do
6129 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
6130 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6131 eval as_val=\$$as_ac_var
6132 if test "x$as_val" = x""yes; then :
6134 cat >>confdefs.h <<_ACEOF
6135 #define CRAY_STACKSEG_END $ac_func
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6145 $as_echo_n "checking stack direction for C alloca... " >&6; }
6146 if test "${ac_cv_c_stack_direction+set}" = set; then :
6147 $as_echo_n "(cached) " >&6
6149 if test "$cross_compiling" = yes; then :
6150 ac_cv_c_stack_direction=0
6152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6153 /* end confdefs.h. */
6154 $ac_includes_default
6156 find_stack_direction (int *addr, int depth)
6161 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
6162 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
6167 main (int argc, char **argv)
6169 return find_stack_direction (0, argc + !argv + 20) < 0;
6172 if ac_fn_c_try_run "$LINENO"; then :
6173 ac_cv_c_stack_direction=1
6175 ac_cv_c_stack_direction=-1
6177 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6178 conftest.$ac_objext conftest.beam conftest.$ac_ext
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6183 $as_echo "$ac_cv_c_stack_direction" >&6; }
6184 cat >>confdefs.h <<_ACEOF
6185 #define STACK_DIRECTION $ac_cv_c_stack_direction
6194 GNULIB_CALLOC_POSIX=0;
6195 GNULIB_CANONICALIZE_FILE_NAME=0;
6196 GNULIB_GETLOADAVG=0;
6199 GNULIB_MALLOC_POSIX=0;
6206 GNULIB_POSIX_OPENPT=0;
6213 GNULIB_REALLOC_POSIX=0;
6216 GNULIB_SECURE_GETENV=0;
6221 GNULIB_SYSTEM_POSIX=0;
6227 HAVE_CANONICALIZE_FILE_NAME=1;
6228 HAVE_DECL_GETLOADAVG=1;
6236 HAVE_POSIX_OPENPT=1;
6245 HAVE_SECURE_GETENV=1;
6251 HAVE_STRUCT_RANDOM_DATA=1;
6252 HAVE_SYS_LOADAVG_H=0;
6254 HAVE_DECL_UNSETENV=1;
6256 REPLACE_CANONICALIZE_FILE_NAME=0;
6261 REPLACE_PTSNAME_R=0;
6275 for ac_func in $ac_func_list
6277 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
6278 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6279 eval as_val=\$$as_ac_var
6280 if test "x$as_val" = x""yes; then :
6281 cat >>confdefs.h <<_ACEOF
6282 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
6297 $as_echo_n "checking whether // is distinct from /... " >&6; }
6298 if test "${gl_cv_double_slash_root+set}" = set; then :
6299 $as_echo_n "(cached) " >&6
6301 if test x"$cross_compiling" = xyes ; then
6302 # When cross-compiling, there is no way to tell whether // is special
6303 # short of a list of hosts. However, the only known hosts to date
6304 # that have a distinct // are Apollo DomainOS (too old to port to),
6305 # Cygwin, and z/OS. If anyone knows of another system for which // has
6306 # special semantics and is distinct from /, please report it to
6307 # <bug-gnulib@gnu.org>.
6309 *-cygwin | i370-ibm-openedition)
6310 gl_cv_double_slash_root=yes ;;
6312 # Be optimistic and assume that / and // are the same when we
6314 gl_cv_double_slash_root='unknown, assuming no' ;;
6317 set x `ls -di / // 2>/dev
/null
`
6318 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
6319 gl_cv_double_slash_root=no
6321 gl_cv_double_slash_root=yes
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
6326 $as_echo "$gl_cv_double_slash_root" >&6; }
6327 if test "$gl_cv_double_slash_root" = yes; then
6329 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether realpath works" >&5
6338 $as_echo_n "checking whether realpath works... " >&6; }
6339 if test "${gl_cv_func_realpath_works+set}" = set; then :
6340 $as_echo_n "(cached) " >&6
6345 if test "$cross_compiling" = yes; then :
6347 # Guess yes on glibc systems.
6348 *-gnu* | gnu*) gl_cv_func_realpath_works="guessing yes" ;;
6349 # If we don't know, assume the worst.
6350 *) gl_cv_func_realpath_works="guessing no" ;;
6354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6355 /* end confdefs.h. */
6360 #if defined __MACH__ && defined __APPLE__
6361 /* Avoid a crash on Mac OS X. */
6362 #include <mach/mach.h>
6363 #include <mach/mach_error.h>
6364 #include <mach/thread_status.h>
6365 #include <mach/exception.h>
6366 #include <mach/task.h>
6367 #include <pthread.h>
6368 /* The exception port on which our thread listens. */
6369 static mach_port_t our_exception_port;
6370 /* The main function of the thread listening for exceptions of type
6373 mach_exception_thread (void *arg)
6375 /* Buffer for a message to be received. */
6377 mach_msg_header_t head;
6378 mach_msg_body_t msgh_body;
6381 mach_msg_return_t retval;
6382 /* Wait for a message on the exception port. */
6383 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
6384 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
6385 if (retval != MACH_MSG_SUCCESS)
6392 mach_port_t self = mach_task_self ();
6393 /* Allocate a port on which the thread shall listen for exceptions. */
6394 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
6396 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
6397 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
6398 MACH_MSG_TYPE_MAKE_SEND)
6400 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
6402 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
6403 /* Create the thread listening on the exception port. */
6404 pthread_attr_t attr;
6406 if (pthread_attr_init (&attr) == 0
6407 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
6408 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
6409 pthread_attr_destroy (&attr);
6410 /* Replace the exception port info for these exceptions with our own.
6411 Note that we replace the exception port for the entire task, not only
6412 for a particular thread. This has the effect that when our exception
6413 port gets the message, the thread specific exception port has already
6414 been asked, and we don't need to bother about it.
6415 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
6416 task_set_exception_ports (self, mask, our_exception_port,
6417 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
6422 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
6423 /* Avoid a crash on native Windows. */
6424 #define WIN32_LEAN_AND_MEAN
6425 #include <windows.h>
6426 #include <winerror.h>
6428 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
6430 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
6432 case EXCEPTION_ACCESS_VIOLATION:
6433 case EXCEPTION_IN_PAGE_ERROR:
6434 case EXCEPTION_STACK_OVERFLOW:
6435 case EXCEPTION_GUARD_PAGE:
6436 case EXCEPTION_PRIV_INSTRUCTION:
6437 case EXCEPTION_ILLEGAL_INSTRUCTION:
6438 case EXCEPTION_DATATYPE_MISALIGNMENT:
6439 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
6440 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
6443 return EXCEPTION_CONTINUE_SEARCH;
6448 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
6451 /* Avoid a crash on POSIX systems. */
6454 /* A POSIX signal handler. */
6456 exception_handler (int sig)
6464 signal (SIGSEGV, exception_handler);
6467 signal (SIGBUS, exception_handler);
6481 char *name = realpath ("conftest.a", NULL);
6482 if (!(name && *name == '/'))
6487 char *name = realpath ("conftest.b/../conftest.a", NULL);
6493 char *name = realpath ("conftest.a/", NULL);
6499 char *name1 = realpath (".", NULL);
6500 char *name2 = realpath ("conftest.d//./..", NULL);
6501 if (! name1 || ! name2 || strcmp (name1, name2))
6513 if ac_fn_c_try_run "$LINENO"; then :
6514 gl_cv_func_realpath_works=yes
6516 gl_cv_func_realpath_works=no
6518 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6519 conftest.$ac_objext conftest.beam conftest.$ac_ext
6522 rm -rf conftest.a conftest.d
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_realpath_works" >&5
6526 $as_echo "$gl_cv_func_realpath_works" >&6; }
6527 case "$gl_cv_func_realpath_works" in
6530 $as_echo "#define FUNC_REALPATH_WORKS 1" >>confdefs.h
6538 for ac_header in $ac_header_list
6540 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6541 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6543 eval as_val=\$$as_ac_Header
6544 if test "x$as_val" = x""yes; then :
6545 cat >>confdefs.h <<_ACEOF
6546 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6570 GNULIB_EUIDACCESS=0;
6578 GNULIB_GETDOMAINNAME=0;
6579 GNULIB_GETDTABLESIZE=0;
6581 GNULIB_GETHOSTNAME=0;
6583 GNULIB_GETLOGIN_R=0;
6584 GNULIB_GETPAGESIZE=0;
6585 GNULIB_GETUSERSHELL=0;
6586 GNULIB_GROUP_MEMBER=0;
6598 GNULIB_READLINKAT=0;
6600 GNULIB_SETHOSTNAME=0;
6605 GNULIB_UNISTD_H_NONBLOCKING=0;
6606 GNULIB_UNISTD_H_SIGPIPE=0;
6621 HAVE_GETDTABLESIZE=1;
6626 HAVE_GROUP_MEMBER=1;
6642 HAVE_DECL_ENVIRON=1;
6644 HAVE_DECL_FDATASYNC=1;
6645 HAVE_DECL_GETDOMAINNAME=1;
6646 HAVE_DECL_GETLOGIN_R=1;
6647 HAVE_DECL_GETPAGESIZE=1;
6648 HAVE_DECL_GETUSERSHELL=1;
6649 HAVE_DECL_SETHOSTNAME=1;
6650 HAVE_DECL_TTYNAME_R=1;
6658 REPLACE_FTRUNCATE=0;
6660 REPLACE_GETDOMAINNAME=0;
6661 REPLACE_GETDTABLESIZE=0;
6662 REPLACE_GETLOGIN_R=0;
6663 REPLACE_GETGROUPS=0;
6664 REPLACE_GETPAGESIZE=0;
6674 REPLACE_READLINKAT=0;
6678 REPLACE_SYMLINKAT=0;
6679 REPLACE_TTYNAME_R=0;
6684 UNISTD_H_HAVE_WINSOCK2_H=0;
6685 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
6702 HAVE_DECL_FDOPENDIR=1;
6709 REPLACE_FDOPENDIR=0;
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
6714 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
6715 if test "${gl_cv_have_include_next+set}" = set; then :
6716 $as_echo_n "(cached) " >&6
6718 rm -rf conftestd1a conftestd1b conftestd2
6719 mkdir conftestd1a conftestd1b conftestd2
6720 cat <<EOF > conftestd1a/conftest.h
6721 #define DEFINED_IN_CONFTESTD1
6722 #include_next <conftest.h>
6723 #ifdef DEFINED_IN_CONFTESTD2
6726 #error "include_next doesn't work"
6729 cat <<EOF > conftestd1b/conftest.h
6730 #define DEFINED_IN_CONFTESTD1
6732 #include_next <conftest.h>
6733 #ifdef DEFINED_IN_CONFTESTD2
6736 #error "include_next doesn't work"
6739 cat <<EOF > conftestd2/conftest.h
6740 #ifndef DEFINED_IN_CONFTESTD1
6741 #error "include_next test doesn't work"
6743 #define DEFINED_IN_CONFTESTD2
6745 gl_save_CPPFLAGS="$CPPFLAGS"
6746 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
6747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6748 /* end confdefs.h. */
6749 #include <conftest.h>
6751 if ac_fn_c_try_compile "$LINENO"; then :
6752 gl_cv_have_include_next=yes
6754 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
6755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6756 /* end confdefs.h. */
6757 #include <conftest.h>
6759 if ac_fn_c_try_compile "$LINENO"; then :
6760 gl_cv_have_include_next=buggy
6762 gl_cv_have_include_next=no
6764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6768 CPPFLAGS="$gl_save_CPPFLAGS"
6769 rm -rf conftestd1a conftestd1b conftestd2
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
6773 $as_echo "$gl_cv_have_include_next" >&6; }
6774 PRAGMA_SYSTEM_HEADER=
6775 if test $gl_cv_have_include_next = yes; then
6776 INCLUDE_NEXT=include_next
6777 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
6778 if test -n "$GCC"; then
6779 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
6782 if test $gl_cv_have_include_next = buggy; then
6783 INCLUDE_NEXT=include
6784 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
6786 INCLUDE_NEXT=include
6787 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
6794 $as_echo_n "checking whether system header files limit the line length... " >&6; }
6795 if test "${gl_cv_pragma_columns+set}" = set; then :
6796 $as_echo_n "(cached) " >&6
6798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6799 /* end confdefs.h. */
6806 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6807 $EGREP "choke me" >/dev/null 2>&1; then :
6808 gl_cv_pragma_columns=yes
6810 gl_cv_pragma_columns=no
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
6817 $as_echo "$gl_cv_pragma_columns" >&6; }
6818 if test $gl_cv_pragma_columns = yes; then
6819 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
6830 $as_echo_n "checking for complete errno.h... " >&6; }
6831 if test "${gl_cv_header_errno_h_complete+set}" = set; then :
6832 $as_echo_n "(cached) " >&6
6835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6836 /* end confdefs.h. */
6839 #if !defined ETXTBSY
6848 #if !defined ENOLINK
6854 #if !defined EMULTIHOP
6857 #if !defined EBADMSG
6860 #if !defined EOVERFLOW
6863 #if !defined ENOTSUP
6866 #if !defined ENETRESET
6869 #if !defined ECONNABORTED
6878 #if !defined ECANCELED
6881 #if !defined EOWNERDEAD
6884 #if !defined ENOTRECOVERABLE
6892 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6893 $EGREP "booboo" >/dev/null 2>&1; then :
6894 gl_cv_header_errno_h_complete=no
6896 gl_cv_header_errno_h_complete=yes
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
6903 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
6904 if test $gl_cv_header_errno_h_complete = yes; then
6915 if test $gl_cv_have_include_next = yes; then
6916 gl_cv_next_errno_h='<'errno.h'>'
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
6919 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
6920 if test "${gl_cv_next_errno_h+set}" = set; then :
6921 $as_echo_n "(cached) " >&6
6926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6927 /* end confdefs.h. */
6931 aix*) gl_absname_cpp="$ac_cpp -C" ;;
6932 *) gl_absname_cpp="$ac_cpp" ;;
6937 gl_dirsep_regex='[/\\]'
6940 gl_dirsep_regex='\/'
6943 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
6944 gl_header_literal_regex=`echo 'errno.h' \
6945 |
sed -e "$gl_make_literal_regex_sed"`
6946 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
6947 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
6953 gl_cv_absolute_errno_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6954 sed -n "$gl_absolute_header_sed"`
6956 gl_header=$gl_cv_absolute_errno_h
6957 gl_cv_next_errno_h='"'$gl_header'"'
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
6962 $as_echo "$gl_cv_next_errno_h" >&6; }
6964 NEXT_ERRNO_H=$gl_cv_next_errno_h
6966 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
6967 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6968 gl_next_as_first_directive='<'errno.h'>'
6970 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6971 gl_next_as_first_directive=$gl_cv_next_errno_h
6973 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
6981 if test -n "$ERRNO_H"; then
6982 GL_GENERATE_ERRNO_H_TRUE=
6983 GL_GENERATE_ERRNO_H_FALSE='#'
6985 GL_GENERATE_ERRNO_H_TRUE='#'
6986 GL_GENERATE_ERRNO_H_FALSE=
6990 if test -n "$ERRNO_H"; then
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
6992 $as_echo_n "checking for EMULTIHOP value... " >&6; }
6993 if test "${gl_cv_header_errno_h_EMULTIHOP+set}" = set; then :
6994 $as_echo_n "(cached) " >&6
6997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6998 /* end confdefs.h. */
7006 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7007 $EGREP "yes" >/dev/null 2>&1; then :
7008 gl_cv_header_errno_h_EMULTIHOP=yes
7010 gl_cv_header_errno_h_EMULTIHOP=no
7014 if test $gl_cv_header_errno_h_EMULTIHOP = no; then
7015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7016 /* end confdefs.h. */
7018 #define _XOPEN_SOURCE_EXTENDED 1
7025 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7026 $EGREP "yes" >/dev/null 2>&1; then :
7027 gl_cv_header_errno_h_EMULTIHOP=hidden
7031 if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
7032 if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
7033 #define _XOPEN_SOURCE_EXTENDED 1
7035 /* The following two lines are a workaround against an autoconf-2.52 bug. */
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
7047 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
7048 case $gl_cv_header_errno_h_EMULTIHOP in
7050 EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
7053 EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
7061 if test -n "$ERRNO_H"; then
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
7063 $as_echo_n "checking for ENOLINK value... " >&6; }
7064 if test "${gl_cv_header_errno_h_ENOLINK+set}" = set; then :
7065 $as_echo_n "(cached) " >&6
7068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7069 /* end confdefs.h. */
7077 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7078 $EGREP "yes" >/dev/null 2>&1; then :
7079 gl_cv_header_errno_h_ENOLINK=yes
7081 gl_cv_header_errno_h_ENOLINK=no
7085 if test $gl_cv_header_errno_h_ENOLINK = no; then
7086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7087 /* end confdefs.h. */
7089 #define _XOPEN_SOURCE_EXTENDED 1
7096 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7097 $EGREP "yes" >/dev/null 2>&1; then :
7098 gl_cv_header_errno_h_ENOLINK=hidden
7102 if test $gl_cv_header_errno_h_ENOLINK = hidden; then
7103 if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
7104 #define _XOPEN_SOURCE_EXTENDED 1
7106 /* The following two lines are a workaround against an autoconf-2.52 bug. */
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
7118 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
7119 case $gl_cv_header_errno_h_ENOLINK in
7121 ENOLINK_HIDDEN=0; ENOLINK_VALUE=
7124 ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
7132 if test -n "$ERRNO_H"; then
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
7134 $as_echo_n "checking for EOVERFLOW value... " >&6; }
7135 if test "${gl_cv_header_errno_h_EOVERFLOW+set}" = set; then :
7136 $as_echo_n "(cached) " >&6
7139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7140 /* end confdefs.h. */
7148 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7149 $EGREP "yes" >/dev/null 2>&1; then :
7150 gl_cv_header_errno_h_EOVERFLOW=yes
7152 gl_cv_header_errno_h_EOVERFLOW=no
7156 if test $gl_cv_header_errno_h_EOVERFLOW = no; then
7157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7158 /* end confdefs.h. */
7160 #define _XOPEN_SOURCE_EXTENDED 1
7167 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7168 $EGREP "yes" >/dev/null 2>&1; then :
7169 gl_cv_header_errno_h_EOVERFLOW=hidden
7173 if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
7174 if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
7175 #define _XOPEN_SOURCE_EXTENDED 1
7177 /* The following two lines are a workaround against an autoconf-2.52 bug. */
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
7189 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
7190 case $gl_cv_header_errno_h_EOVERFLOW in
7192 EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
7195 EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
7209 $as_echo_n "checking for mbstate_t... " >&6; }
7210 if test "${ac_cv_type_mbstate_t+set}" = set; then :
7211 $as_echo_n "(cached) " >&6
7213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7214 /* end confdefs.h. */
7215 $ac_includes_default
7216 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
7218 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7219 included before <wchar.h>. */
7227 mbstate_t x; return sizeof x;
7232 if ac_fn_c_try_compile "$LINENO"; then :
7233 ac_cv_type_mbstate_t=yes
7235 ac_cv_type_mbstate_t=no
7237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
7240 $as_echo "$ac_cv_type_mbstate_t" >&6; }
7241 if test $ac_cv_type_mbstate_t = yes; then
7243 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
7247 $as_echo "#define mbstate_t int" >>confdefs.h
7345 GNULIB_REMAINDERF=0;
7346 GNULIB_REMAINDERL=0;
7432 HAVE_DECL_COPYSIGNF=1;
7449 HAVE_DECL_REMAINDER=1;
7450 HAVE_DECL_REMAINDERL=1;
7512 REPLACE_REMAINDER=0;
7513 REPLACE_REMAINDERF=0;
7514 REPLACE_REMAINDERL=0;
7519 REPLACE_SIGNBIT_USING_GCC=0;
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used without linking with libm" >&5
7527 $as_echo_n "checking whether frexp() can be used without linking with libm... " >&6; }
7528 if test "${gl_cv_func_frexp_no_libm+set}" = set; then :
7529 $as_echo_n "(cached) " >&6
7532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7533 /* end confdefs.h. */
7539 int e; return frexp (x, &e) > 0;
7544 if ac_fn_c_try_link "$LINENO"; then :
7545 gl_cv_func_frexp_no_libm=yes
7547 gl_cv_func_frexp_no_libm=no
7549 rm -f core conftest.err conftest.$ac_objext \
7550 conftest$ac_exeext conftest.$ac_ext
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_no_libm" >&5
7554 $as_echo "$gl_cv_func_frexp_no_libm" >&6; }
7556 ac_fn_c_check_decl "$LINENO" "alarm" "ac_cv_have_decl_alarm" "$ac_includes_default"
7557 if test "x$ac_cv_have_decl_alarm" = x""yes; then :
7563 cat >>confdefs.h <<_ACEOF
7564 #define HAVE_DECL_ALARM $ac_have_decl
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long double and double are the same" >&5
7569 $as_echo_n "checking whether long double and double are the same... " >&6; }
7570 if test "${gl_cv_long_double_equals_double+set}" = set; then :
7571 $as_echo_n "(cached) " >&6
7573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7574 /* end confdefs.h. */
7579 typedef int check[sizeof (long double) == sizeof (double)
7580 && LDBL_MANT_DIG == DBL_MANT_DIG
7581 && LDBL_MAX_EXP == DBL_MAX_EXP
7582 && LDBL_MIN_EXP == DBL_MIN_EXP
7589 if ac_fn_c_try_compile "$LINENO"; then :
7590 gl_cv_long_double_equals_double=yes
7592 gl_cv_long_double_equals_double=no
7594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_long_double_equals_double" >&5
7598 $as_echo "$gl_cv_long_double_equals_double" >&6; }
7599 if test $gl_cv_long_double_equals_double = yes; then
7601 $as_echo "#define HAVE_SAME_LONG_DOUBLE_AS_DOUBLE 1" >>confdefs.h
7603 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=1
7605 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=0
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
7610 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
7611 if test "${ac_cv_c_restrict+set}" = set; then :
7612 $as_echo_n "(cached) " >&6
7615 # The order here caters to the fact that C++ does not require restrict.
7616 for ac_kw in __restrict __restrict__ _Restrict restrict; do
7617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7618 /* end confdefs.h. */
7619 typedef int *int_ptr;
7620 int foo (int_ptr $ac_kw ip) { return ip[0]; }
7621 int bar (int [$ac_kw]); /* Catch GCC bug 14050. */
7622 int bar (int ip[$ac_kw]) { return ip[0]; }
7630 return foo (t) + bar (t);
7636 if ac_fn_c_try_compile "$LINENO"; then :
7637 ac_cv_c_restrict=$ac_kw
7639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7640 test "$ac_cv_c_restrict" != no && break
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
7645 $as_echo "$ac_cv_c_restrict" >&6; }
7647 case $ac_cv_c_restrict in
7649 no) $as_echo "#define restrict /**/" >>confdefs.h
7651 *) cat >>confdefs.h <<_ACEOF
7652 #define restrict $ac_cv_c_restrict
7658 GNULIB_GETTIMEOFDAY=0;
7659 HAVE_GETTIMEOFDAY=1;
7660 HAVE_STRUCT_TIMEVAL=1;
7663 REPLACE_GETTIMEOFDAY=0;
7664 REPLACE_STRUCT_TIMEVAL=0;
7683 if test $gl_cv_have_include_next = yes; then
7684 gl_cv_next_sys_time_h='<'sys/time.h'>'
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
7687 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
7688 if test "${gl_cv_next_sys_time_h+set}" = set; then :
7689 $as_echo_n "(cached) " >&6
7692 if test $ac_cv_header_sys_time_h = yes; then
7697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7698 /* end confdefs.h. */
7699 #include <sys/time.h>
7702 aix*) gl_absname_cpp="$ac_cpp -C" ;;
7703 *) gl_absname_cpp="$ac_cpp" ;;
7708 gl_dirsep_regex='[/\\]'
7711 gl_dirsep_regex='\/'
7714 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
7715 gl_header_literal_regex=`echo 'sys/time.h' \
7716 |
sed -e "$gl_make_literal_regex_sed"`
7717 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
7718 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
7724 gl_cv_absolute_sys_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7725 sed -n "$gl_absolute_header_sed"`
7727 gl_header=$gl_cv_absolute_sys_time_h
7728 gl_cv_next_sys_time_h='"'$gl_header'"'
7730 gl_cv_next_sys_time_h='<'sys/time.h'>'
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
7736 $as_echo "$gl_cv_next_sys_time_h" >&6; }
7738 NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
7740 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
7741 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7742 gl_next_as_first_directive='<'sys/time.h'>'
7744 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7745 gl_next_as_first_directive=$gl_cv_next_sys_time_h
7747 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
7753 if test $ac_cv_header_sys_time_h != yes; then
7761 if test $ac_cv_header_sys_socket_h != yes; then
7762 for ac_header in winsock2.h
7764 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
7765 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
7766 cat >>confdefs.h <<_ACEOF
7767 #define HAVE_WINSOCK2_H 1
7775 if test "$ac_cv_header_winsock2_h" = yes; then
7777 UNISTD_H_HAVE_WINSOCK2_H=1
7778 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
7785 $as_echo_n "checking for struct timeval... " >&6; }
7786 if test "${gl_cv_sys_struct_timeval+set}" = set; then :
7787 $as_echo_n "(cached) " >&6
7789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7790 /* end confdefs.h. */
7792 #include <sys/time.h>
7796 # include <winsock2.h>
7802 static struct timeval x; x.tv_sec = x.tv_usec;
7807 if ac_fn_c_try_compile "$LINENO"; then :
7808 gl_cv_sys_struct_timeval=yes
7810 gl_cv_sys_struct_timeval=no
7812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
7816 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
7817 if test $gl_cv_sys_struct_timeval != yes; then
7818 HAVE_STRUCT_TIMEVAL=0
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
7821 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
7822 if test "${gl_cv_sys_struct_timeval_tv_sec+set}" = set; then :
7823 $as_echo_n "(cached) " >&6
7825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7826 /* end confdefs.h. */
7828 #include <sys/time.h>
7832 # include <winsock2.h>
7838 static struct timeval x;
7839 typedef int verify_tv_sec_type[
7840 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
7847 if ac_fn_c_try_compile "$LINENO"; then :
7848 gl_cv_sys_struct_timeval_tv_sec=yes
7850 gl_cv_sys_struct_timeval_tv_sec=no
7852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
7856 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
7857 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
7858 REPLACE_STRUCT_TIMEVAL=1
7863 for gl_func in gettimeofday; do
7864 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
7866 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
7867 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
7868 $as_echo_n "(cached) " >&6
7870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7871 /* end confdefs.h. */
7874 # include <sys/time.h>
7887 if ac_fn_c_try_compile "$LINENO"; then :
7888 eval "$as_gl_Symbol=yes"
7890 eval "$as_gl_Symbol=no"
7892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7894 eval ac_res=\$$as_gl_Symbol
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7896 $as_echo "$ac_res" >&6; }
7897 eval as_val=\$$as_gl_Symbol
7898 if test "x$as_val" = x""yes; then :
7899 cat >>confdefs.h <<_ACEOF
7900 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
7903 eval ac_cv_have_decl_$gl_func=yes
7925 if test $gl_cv_have_include_next = yes; then
7926 gl_cv_next_limits_h='<'limits.h'>'
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <limits.h>" >&5
7929 $as_echo_n "checking absolute name of <limits.h>... " >&6; }
7930 if test "${gl_cv_next_limits_h+set}" = set; then :
7931 $as_echo_n "(cached) " >&6
7934 if test $ac_cv_header_limits_h = yes; then
7939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7940 /* end confdefs.h. */
7944 aix*) gl_absname_cpp="$ac_cpp -C" ;;
7945 *) gl_absname_cpp="$ac_cpp" ;;
7950 gl_dirsep_regex='[/\\]'
7953 gl_dirsep_regex='\/'
7956 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
7957 gl_header_literal_regex=`echo 'limits.h' \
7958 |
sed -e "$gl_make_literal_regex_sed"`
7959 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
7960 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
7966 gl_cv_absolute_limits_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7967 sed -n "$gl_absolute_header_sed"`
7969 gl_header=$gl_cv_absolute_limits_h
7970 gl_cv_next_limits_h='"'$gl_header'"'
7972 gl_cv_next_limits_h='<'limits.h'>'
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_limits_h" >&5
7978 $as_echo "$gl_cv_next_limits_h" >&6; }
7980 NEXT_LIMITS_H=$gl_cv_next_limits_h
7982 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
7983 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7984 gl_next_as_first_directive='<'limits.h'>'
7986 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7987 gl_next_as_first_directive=$gl_cv_next_limits_h
7989 NEXT_AS_FIRST_DIRECTIVE_LIMITS_H=$gl_next_as_first_directive
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether limits.h has ULLONG_WIDTH etc." >&5
7996 $as_echo_n "checking whether limits.h has ULLONG_WIDTH etc.... " >&6; }
7997 if test "${gl_cv_header_limits_width+set}" = set; then :
7998 $as_echo_n "(cached) " >&6
8000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8001 /* end confdefs.h. */
8002 #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
8003 #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
8006 int ullw = ULLONG_WIDTH;
8015 if ac_fn_c_try_compile "$LINENO"; then :
8016 gl_cv_header_limits_width=yes
8018 gl_cv_header_limits_width=no
8020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_limits_width" >&5
8023 $as_echo "$gl_cv_header_limits_width" >&6; }
8024 if test "$gl_cv_header_limits_width" = yes; then
8030 if test -n "$LIMITS_H"; then
8031 GL_GENERATE_LIMITS_H_TRUE=
8032 GL_GENERATE_LIMITS_H_FALSE='#'
8034 GL_GENERATE_LIMITS_H_TRUE='#'
8035 GL_GENERATE_LIMITS_H_FALSE=
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
8041 $as_echo_n "checking for unsigned long long int... " >&6; }
8042 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
8043 $as_echo_n "(cached) " >&6
8045 ac_cv_type_unsigned_long_long_int=yes
8046 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
8047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8048 /* end confdefs.h. */
8050 /* For now, do not test the preprocessor; as of 2007 there are too many
8051 implementations with broken preprocessors. Perhaps this can
8052 be revisited in 2012. In the meantime, code should not expect
8053 #if to work with literals wider than 32 bits. */
8054 /* Test literals. */
8055 long long int ll = 9223372036854775807ll;
8056 long long int nll = -9223372036854775807LL;
8057 unsigned long long int ull = 18446744073709551615ULL;
8058 /* Test constant expressions. */
8059 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
8061 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
8067 /* Test availability of runtime routines for shift and division. */
8068 long long int llmax = 9223372036854775807ll;
8069 unsigned long long int ullmax = 18446744073709551615ull;
8070 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
8071 | (llmax / ll) | (llmax % ll)
8072 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
8073 | (ullmax / ull) | (ullmax % ull));
8079 if ac_fn_c_try_link "$LINENO"; then :
8082 ac_cv_type_unsigned_long_long_int=no
8084 rm -f core conftest.err conftest.$ac_objext \
8085 conftest$ac_exeext conftest.$ac_ext
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
8089 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
8090 if test $ac_cv_type_unsigned_long_long_int = yes; then
8092 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
8099 $as_echo_n "checking for long long int... " >&6; }
8100 if test "${ac_cv_type_long_long_int+set}" = set; then :
8101 $as_echo_n "(cached) " >&6
8103 ac_cv_type_long_long_int=yes
8104 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
8105 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
8106 if test $ac_cv_type_long_long_int = yes; then
8107 if test "$cross_compiling" = yes; then :
8110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8111 /* end confdefs.h. */
8115 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
8116 # define LLONG_MAX (HALF - 1 + HALF)
8121 long long int n = 1;
8125 long long int m = n << i;
8128 if (LLONG_MAX / 2 < m)
8136 if ac_fn_c_try_run "$LINENO"; then :
8139 ac_cv_type_long_long_int=no
8141 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8142 conftest.$ac_objext conftest.beam conftest.$ac_ext
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
8149 $as_echo "$ac_cv_type_long_long_int" >&6; }
8150 if test $ac_cv_type_long_long_int = yes; then
8152 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
8161 gl_cv_c_multiarch=no
8162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8163 /* end confdefs.h. */
8164 #ifndef __APPLE_CC__
8165 not a universal capable compiler
8170 if ac_fn_c_try_compile "$LINENO"; then :
8174 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
8175 if test -n "$prev"; then
8177 i?86 | x86_64 | ppc | ppc64)
8178 if test -z "$arch" || test "$arch" = "$word"; then
8181 gl_cv_c_multiarch=yes
8187 if test "x$word" = "x-arch"; then
8194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8195 if test $gl_cv_c_multiarch = yes; then
8196 APPLE_UNIVERSAL_BUILD=1
8198 APPLE_UNIVERSAL_BUILD=0
8207 if test $ac_cv_type_long_long_int = yes; then
8208 HAVE_LONG_LONG_INT=1
8210 HAVE_LONG_LONG_INT=0
8214 if test $ac_cv_type_unsigned_long_long_int = yes; then
8215 HAVE_UNSIGNED_LONG_LONG_INT=1
8217 HAVE_UNSIGNED_LONG_LONG_INT=0
8222 if test $ac_cv_header_wchar_h = yes; then
8229 if test $ac_cv_header_inttypes_h = yes; then
8236 if test $ac_cv_header_sys_types_h = yes; then
8252 if test $gl_cv_have_include_next = yes; then
8253 gl_cv_next_stdint_h='<'stdint.h'>'
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
8256 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
8257 if test "${gl_cv_next_stdint_h+set}" = set; then :
8258 $as_echo_n "(cached) " >&6
8261 if test $ac_cv_header_stdint_h = yes; then
8266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8267 /* end confdefs.h. */
8271 aix*) gl_absname_cpp="$ac_cpp -C" ;;
8272 *) gl_absname_cpp="$ac_cpp" ;;
8277 gl_dirsep_regex='[/\\]'
8280 gl_dirsep_regex='\/'
8283 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
8284 gl_header_literal_regex=`echo 'stdint.h' \
8285 |
sed -e "$gl_make_literal_regex_sed"`
8286 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
8287 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
8293 gl_cv_absolute_stdint_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
8294 sed -n "$gl_absolute_header_sed"`
8296 gl_header=$gl_cv_absolute_stdint_h
8297 gl_cv_next_stdint_h='"'$gl_header'"'
8299 gl_cv_next_stdint_h='<'stdint.h'>'
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
8305 $as_echo "$gl_cv_next_stdint_h" >&6; }
8307 NEXT_STDINT_H=$gl_cv_next_stdint_h
8309 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
8310 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
8311 gl_next_as_first_directive='<'stdint.h'>'
8313 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
8314 gl_next_as_first_directive=$gl_cv_next_stdint_h
8316 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
8321 if test $ac_cv_header_stdint_h = yes; then
8328 if test $ac_cv_header_stdint_h = yes; then
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
8330 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
8331 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
8332 $as_echo_n "(cached) " >&6
8334 gl_cv_header_working_stdint_h=no
8335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8336 /* end confdefs.h. */
8339 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
8340 #define __STDC_CONSTANT_MACROS 1
8341 #define __STDC_LIMIT_MACROS 1
8343 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
8344 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
8345 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
8349 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8350 included before <wchar.h>. */
8361 int8_t a1 = INT8_MAX;
8362 int8_t a1min = INT8_MIN;
8365 int16_t a2 = INT16_MAX;
8366 int16_t a2min = INT16_MIN;
8369 int32_t a3 = INT32_MAX;
8370 int32_t a3min = INT32_MIN;
8373 int64_t a4 = INT64_MAX;
8374 int64_t a4min = INT64_MIN;
8377 uint8_t b1 = UINT8_MAX;
8379 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
8382 uint16_t b2 = UINT16_MAX;
8385 uint32_t b3 = UINT32_MAX;
8388 uint64_t b4 = UINT64_MAX;
8390 int_least8_t c1 = INT8_C (0x7f);
8391 int_least8_t c1max = INT_LEAST8_MAX;
8392 int_least8_t c1min = INT_LEAST8_MIN;
8393 int_least16_t c2 = INT16_C (0x7fff);
8394 int_least16_t c2max = INT_LEAST16_MAX;
8395 int_least16_t c2min = INT_LEAST16_MIN;
8396 int_least32_t c3 = INT32_C (0x7fffffff);
8397 int_least32_t c3max = INT_LEAST32_MAX;
8398 int_least32_t c3min = INT_LEAST32_MIN;
8399 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
8400 int_least64_t c4max = INT_LEAST64_MAX;
8401 int_least64_t c4min = INT_LEAST64_MIN;
8402 uint_least8_t d1 = UINT8_C (0xff);
8403 uint_least8_t d1max = UINT_LEAST8_MAX;
8404 uint_least16_t d2 = UINT16_C (0xffff);
8405 uint_least16_t d2max = UINT_LEAST16_MAX;
8406 uint_least32_t d3 = UINT32_C (0xffffffff);
8407 uint_least32_t d3max = UINT_LEAST32_MAX;
8408 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
8409 uint_least64_t d4max = UINT_LEAST64_MAX;
8410 int_fast8_t e1 = INT_FAST8_MAX;
8411 int_fast8_t e1min = INT_FAST8_MIN;
8412 int_fast16_t e2 = INT_FAST16_MAX;
8413 int_fast16_t e2min = INT_FAST16_MIN;
8414 int_fast32_t e3 = INT_FAST32_MAX;
8415 int_fast32_t e3min = INT_FAST32_MIN;
8416 int_fast64_t e4 = INT_FAST64_MAX;
8417 int_fast64_t e4min = INT_FAST64_MIN;
8418 uint_fast8_t f1 = UINT_FAST8_MAX;
8419 uint_fast16_t f2 = UINT_FAST16_MAX;
8420 uint_fast32_t f3 = UINT_FAST32_MAX;
8421 uint_fast64_t f4 = UINT_FAST64_MAX;
8423 intptr_t g = INTPTR_MAX;
8424 intptr_t gmin = INTPTR_MIN;
8427 uintptr_t h = UINTPTR_MAX;
8429 intmax_t i = INTMAX_MAX;
8430 uintmax_t j = UINTMAX_MAX;
8432 /* Check that SIZE_MAX has the correct type, if possible. */
8433 #if 201112 <= __STDC_VERSION__
8434 int k = _Generic (SIZE_MAX, size_t: 0);
8435 #elif (2 <= __GNUC__ || defined __IBM__TYPEOF__ \
8436 || (0x5110 <= __SUNPRO_C && !__STDC__))
8438 extern __typeof__ (SIZE_MAX) k;
8441 #include <limits.h> /* for CHAR_BIT */
8442 #define TYPE_MINIMUM(t) \
8443 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
8444 #define TYPE_MAXIMUM(t) \
8445 ((t) ((t) 0 < (t) -1 \
8447 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
8450 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
8451 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
8453 /* Detect bug in FreeBSD 6.0 / ia64. */
8454 int check_SIG_ATOMIC:
8455 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
8456 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
8458 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
8460 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
8461 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
8463 /* Detect bug in mingw. */
8465 WINT_MIN == TYPE_MINIMUM (wint_t)
8466 && WINT_MAX == TYPE_MAXIMUM (wint_t)
8469 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
8471 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
8473 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
8475 /* Detect bugs in OpenBSD 3.9 stdint.h. */
8477 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
8480 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
8483 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
8486 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
8488 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
8489 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
8490 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
8491 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
8492 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
8493 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
8494 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
8495 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
8496 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
8497 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
8498 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
8509 if ac_fn_c_try_compile "$LINENO"; then :
8510 if test "$cross_compiling" = yes; then :
8511 gl_cv_header_working_stdint_h=yes
8514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8515 /* end confdefs.h. */
8518 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
8519 #define __STDC_CONSTANT_MACROS 1
8520 #define __STDC_LIMIT_MACROS 1
8524 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8525 included before <wchar.h>. */
8537 #define MVAL(macro) MVAL1(macro)
8538 #define MVAL1(expression) #expression
8539 static const char *macro_values[] =
8573 for (mv = macro_values; *mv != NULL; mv++)
8575 const char *value = *mv;
8576 /* Test whether it looks like a cast expression. */
8577 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
8578 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
8579 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
8580 || strncmp (value, "((int)"/*)*/, 6) == 0
8581 || strncmp (value, "((signed short)"/*)*/, 15) == 0
8582 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
8583 return mv - macro_values + 1;
8591 if ac_fn_c_try_run "$LINENO"; then :
8592 gl_cv_header_working_stdint_h=yes
8594 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8595 conftest.$ac_objext conftest.beam conftest.$ac_ext
8600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
8604 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
8608 HAVE_SYS_BITYPES_H=0
8609 HAVE_SYS_INTTYPES_H=0
8611 if test "$gl_cv_header_working_stdint_h" = yes; then
8613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h predates C++11" >&5
8614 $as_echo_n "checking whether stdint.h predates C++11... " >&6; }
8615 if test "${gl_cv_header_stdint_predates_cxx11_h+set}" = set; then :
8616 $as_echo_n "(cached) " >&6
8618 gl_cv_header_stdint_predates_cxx11_h=yes
8619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8620 /* end confdefs.h. */
8623 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
8627 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8628 included before <wchar.h>. */
8638 intmax_t im = INTMAX_MAX;
8639 int32_t i32 = INT32_C (0x7fffffff);
8649 if ac_fn_c_try_compile "$LINENO"; then :
8650 gl_cv_header_stdint_predates_cxx11_h=no
8652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_predates_cxx11_h" >&5
8655 $as_echo "$gl_cv_header_stdint_predates_cxx11_h" >&6; }
8657 if test "$gl_cv_header_stdint_predates_cxx11_h" = yes; then
8659 $as_echo "#define __STDC_CONSTANT_MACROS 1" >>confdefs.h
8662 $as_echo "#define __STDC_LIMIT_MACROS 1" >>confdefs.h
8665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h has UINTMAX_WIDTH etc." >&5
8666 $as_echo_n "checking whether stdint.h has UINTMAX_WIDTH etc.... " >&6; }
8667 if test "${gl_cv_header_stdint_width+set}" = set; then :
8668 $as_echo_n "(cached) " >&6
8670 gl_cv_header_stdint_width=no
8671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8672 /* end confdefs.h. */
8674 /* Work if build is not clean. */
8675 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1
8676 #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
8677 #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
8681 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8682 included before <wchar.h>. */
8691 int iw = UINTMAX_WIDTH;
8701 if ac_fn_c_try_compile "$LINENO"; then :
8702 gl_cv_header_stdint_width=yes
8704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_width" >&5
8707 $as_echo "$gl_cv_header_stdint_width" >&6; }
8708 if test "$gl_cv_header_stdint_width" = yes; then
8712 for ac_header in sys/inttypes.h sys/bitypes.h
8714 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
8715 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8716 eval as_val=\$$as_ac_Header
8717 if test "x$as_val" = x""yes; then :
8718 cat >>confdefs.h <<_ACEOF
8719 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
8726 if test $ac_cv_header_sys_inttypes_h = yes; then
8727 HAVE_SYS_INTTYPES_H=1
8729 if test $ac_cv_header_sys_bitypes_h = yes; then
8730 HAVE_SYS_BITYPES_H=1
8734 if test $APPLE_UNIVERSAL_BUILD = 0; then
8737 for gltype in ptrdiff_t size_t ; do
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
8739 $as_echo_n "checking for bit size of $gltype... " >&6; }
8740 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
8741 $as_echo_n "(cached) " >&6
8743 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
8744 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8745 included before <wchar.h>. */
8754 #include <limits.h>"; then :
8760 eval gl_cv_bitsizeof_${gltype}=\$result
8763 eval ac_res=\$gl_cv_bitsizeof_${gltype}
8764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8765 $as_echo "$ac_res" >&6; }
8766 eval result=\$gl_cv_bitsizeof_${gltype}
8767 if test $result = unknown; then
8770 GLTYPE=`echo "$gltype" |
tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
8771 cat >>confdefs.h <<_ACEOF
8772 #define BITSIZEOF_${GLTYPE} $result
8775 eval BITSIZEOF_${GLTYPE}=\$result
8782 for gltype in sig_atomic_t wchar_t wint_t ; do
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
8784 $as_echo_n "checking for bit size of $gltype... " >&6; }
8785 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
8786 $as_echo_n "(cached) " >&6
8788 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
8789 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8790 included before <wchar.h>. */
8799 #include <limits.h>"; then :
8805 eval gl_cv_bitsizeof_${gltype}=\$result
8808 eval ac_res=\$gl_cv_bitsizeof_${gltype}
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8810 $as_echo "$ac_res" >&6; }
8811 eval result=\$gl_cv_bitsizeof_${gltype}
8812 if test $result = unknown; then
8815 GLTYPE=`echo "$gltype" |
tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
8816 cat >>confdefs.h <<_ACEOF
8817 #define BITSIZEOF_${GLTYPE} $result
8820 eval BITSIZEOF_${GLTYPE}=\$result
8826 for gltype in sig_atomic_t wchar_t wint_t ; do
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
8828 $as_echo_n "checking whether $gltype is signed... " >&6; }
8829 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
8830 $as_echo_n "(cached) " >&6
8832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8833 /* end confdefs.h. */
8835 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8836 included before <wchar.h>. */
8845 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
8854 if ac_fn_c_try_compile "$LINENO"; then :
8859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8860 eval gl_cv_type_${gltype}_signed=\$result
8863 eval ac_res=\$gl_cv_type_${gltype}_signed
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8865 $as_echo "$ac_res" >&6; }
8866 eval result=\$gl_cv_type_${gltype}_signed
8867 GLTYPE=`echo $gltype |
tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
8868 if test "$result" = yes; then
8869 cat >>confdefs.h <<_ACEOF
8870 #define HAVE_SIGNED_${GLTYPE} 1
8873 eval HAVE_SIGNED_${GLTYPE}=1
8875 eval HAVE_SIGNED_${GLTYPE}=0
8880 gl_cv_type_ptrdiff_t_signed=yes
8881 gl_cv_type_size_t_signed=no
8882 if test $APPLE_UNIVERSAL_BUILD = 0; then
8885 for gltype in ptrdiff_t size_t ; do
8886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
8887 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
8888 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
8889 $as_echo_n "(cached) " >&6
8891 eval gl_cv_type_${gltype}_suffix=no
8892 eval result=\$gl_cv_type_${gltype}_signed
8893 if test "$result" = yes; then
8898 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
8901 l) gltype1='long int';;
8902 ll) gltype1='long long int';;
8903 i64) gltype1='__int64';;
8904 u) gltype1='unsigned int';;
8905 ul) gltype1='unsigned long int';;
8906 ull) gltype1='unsigned long long int';;
8907 ui64)gltype1='unsigned __int64';;
8909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8910 /* end confdefs.h. */
8912 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8913 included before <wchar.h>. */
8923 extern $gltype1 foo;
8932 if ac_fn_c_try_compile "$LINENO"; then :
8933 eval gl_cv_type_${gltype}_suffix=\$glsuf
8935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8936 eval result=\$gl_cv_type_${gltype}_suffix
8937 test "$result" != no && break
8940 eval ac_res=\$gl_cv_type_${gltype}_suffix
8941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8942 $as_echo "$ac_res" >&6; }
8943 GLTYPE=`echo $gltype |
tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
8944 eval result=\$gl_cv_type_${gltype}_suffix
8945 test "$result" = no && result=
8946 eval ${GLTYPE}_SUFFIX=\$result
8947 cat >>confdefs.h <<_ACEOF
8948 #define ${GLTYPE}_SUFFIX $result
8957 for gltype in sig_atomic_t wchar_t wint_t ; do
8958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
8959 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
8960 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
8961 $as_echo_n "(cached) " >&6
8963 eval gl_cv_type_${gltype}_suffix=no
8964 eval result=\$gl_cv_type_${gltype}_signed
8965 if test "$result" = yes; then
8970 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
8973 l) gltype1='long int';;
8974 ll) gltype1='long long int';;
8975 i64) gltype1='__int64';;
8976 u) gltype1='unsigned int';;
8977 ul) gltype1='unsigned long int';;
8978 ull) gltype1='unsigned long long int';;
8979 ui64)gltype1='unsigned __int64';;
8981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8982 /* end confdefs.h. */
8984 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8985 included before <wchar.h>. */
8995 extern $gltype1 foo;
9004 if ac_fn_c_try_compile "$LINENO"; then :
9005 eval gl_cv_type_${gltype}_suffix=\$glsuf
9007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9008 eval result=\$gl_cv_type_${gltype}_suffix
9009 test "$result" != no && break
9012 eval ac_res=\$gl_cv_type_${gltype}_suffix
9013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9014 $as_echo "$ac_res" >&6; }
9015 GLTYPE=`echo $gltype |
tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
9016 eval result=\$gl_cv_type_${gltype}_suffix
9017 test "$result" = no && result=
9018 eval ${GLTYPE}_SUFFIX=\$result
9019 cat >>confdefs.h <<_ACEOF
9020 #define ${GLTYPE}_SUFFIX $result
9027 if test $BITSIZEOF_WINT_T -lt 32; then
9033 # The substitute stdint.h needs the substitute limit.h's _GL_INTEGER_WIDTH.
9035 if test -n "$LIMITS_H"; then
9036 GL_GENERATE_LIMITS_H_TRUE=
9037 GL_GENERATE_LIMITS_H_FALSE='#'
9039 GL_GENERATE_LIMITS_H_TRUE='#'
9040 GL_GENERATE_LIMITS_H_FALSE=
9048 if test -n "$STDINT_H"; then
9049 GL_GENERATE_STDINT_H_TRUE=
9050 GL_GENERATE_STDINT_H_FALSE='#'
9052 GL_GENERATE_STDINT_H_TRUE='#'
9053 GL_GENERATE_STDINT_H_FALSE=
9064 HAVE_DECL_IMAXABS=1;
9065 HAVE_DECL_IMAXDIV=1;
9066 HAVE_DECL_STRTOIMAX=1;
9067 HAVE_DECL_STRTOUMAX=1;
9068 REPLACE_STRTOIMAX=0;
9069 REPLACE_STRTOUMAX=0;
9070 INT32_MAX_LT_INTMAX_MAX=1;
9071 INT64_MAX_EQ_LONG_MAX='defined _LP64';
9072 PRI_MACROS_BROKEN=0;
9073 PRIPTR_PREFIX=__PRIPTR_PREFIX;
9074 UINT32_MAX_LT_UINTMAX_MAX=1;
9075 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
9091 if test $gl_cv_have_include_next = yes; then
9092 gl_cv_next_inttypes_h='<'inttypes.h'>'
9094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
9095 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
9096 if test "${gl_cv_next_inttypes_h+set}" = set; then :
9097 $as_echo_n "(cached) " >&6
9100 if test $ac_cv_header_inttypes_h = yes; then
9105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9106 /* end confdefs.h. */
9107 #include <inttypes.h>
9110 aix*) gl_absname_cpp="$ac_cpp -C" ;;
9111 *) gl_absname_cpp="$ac_cpp" ;;
9116 gl_dirsep_regex='[/\\]'
9119 gl_dirsep_regex='\/'
9122 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
9123 gl_header_literal_regex=`echo 'inttypes.h' \
9124 |
sed -e "$gl_make_literal_regex_sed"`
9125 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9126 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9132 gl_cv_absolute_inttypes_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9133 sed -n "$gl_absolute_header_sed"`
9135 gl_header=$gl_cv_absolute_inttypes_h
9136 gl_cv_next_inttypes_h='"'$gl_header'"'
9138 gl_cv_next_inttypes_h='<'inttypes.h'>'
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
9144 $as_echo "$gl_cv_next_inttypes_h" >&6; }
9146 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
9148 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
9149 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9150 gl_next_as_first_directive='<'inttypes.h'>'
9152 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9153 gl_next_as_first_directive=$gl_cv_next_inttypes_h
9155 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
9164 for gl_func in imaxabs imaxdiv strtoimax strtoumax; do
9165 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
9166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
9167 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
9168 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
9169 $as_echo_n "(cached) " >&6
9171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9172 /* end confdefs.h. */
9173 #include <inttypes.h>
9184 if ac_fn_c_try_compile "$LINENO"; then :
9185 eval "$as_gl_Symbol=yes"
9187 eval "$as_gl_Symbol=no"
9189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9191 eval ac_res=\$$as_gl_Symbol
9192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9193 $as_echo "$ac_res" >&6; }
9194 eval as_val=\$$as_gl_Symbol
9195 if test "x$as_val" = x""yes; then :
9196 cat >>confdefs.h <<_ACEOF
9197 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
9200 eval ac_cv_have_decl_$gl_func=yes
9206 for ac_header in inttypes.h
9208 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
9209 if test "x$ac_cv_header_inttypes_h" = x""yes; then :
9210 cat >>confdefs.h <<_ACEOF
9211 #define HAVE_INTTYPES_H 1
9218 if test $ac_cv_header_inttypes_h = yes; then
9219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
9220 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
9221 if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
9222 $as_echo_n "(cached) " >&6
9225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9226 /* end confdefs.h. */
9228 #include <inttypes.h>
9241 if ac_fn_c_try_compile "$LINENO"; then :
9242 gt_cv_inttypes_pri_broken=no
9244 gt_cv_inttypes_pri_broken=yes
9246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
9250 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
9252 if test "$gt_cv_inttypes_pri_broken" = yes; then
9254 cat >>confdefs.h <<_ACEOF
9255 #define PRI_MACROS_BROKEN 1
9265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
9266 $as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
9267 if test "${gl_cv_cc_double_expbit0+set}" = set; then :
9268 $as_echo_n "(cached) " >&6
9271 if test "$cross_compiling" = yes; then :
9273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9274 /* end confdefs.h. */
9276 #if defined arm || defined __arm || defined __arm__
9281 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9282 $EGREP "mixed_endianness" >/dev/null 2>&1; then :
9283 gl_cv_cc_double_expbit0="unknown"
9287 if test "${ac_cv_c_bigendian+set}" = set; then :
9288 $as_echo_n "(cached) " >&6
9290 ac_cv_c_bigendian=unknown
9291 # See if we're dealing with a universal compiler.
9292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9293 /* end confdefs.h. */
9294 #ifndef __APPLE_CC__
9295 not a universal capable compiler
9300 if ac_fn_c_try_compile "$LINENO"; then :
9302 # Check for potential -arch flags. It is not universal unless
9303 # there are at least two -arch flags with different values.
9306 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9307 if test -n "$ac_prev"; then
9309 i?86 | x86_64 | ppc | ppc64)
9310 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9313 ac_cv_c_bigendian=universal
9319 elif test "x$ac_word" = "x-arch"; then
9324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9325 if test $ac_cv_c_bigendian = unknown; then
9326 # See if sys/param.h defines the BYTE_ORDER macro.
9327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9328 /* end confdefs.h. */
9329 #include <sys/types.h>
9330 #include <sys/param.h>
9335 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9336 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9345 if ac_fn_c_try_compile "$LINENO"; then :
9346 # It does; now see whether it defined to BIG_ENDIAN or not.
9347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9348 /* end confdefs.h. */
9349 #include <sys/types.h>
9350 #include <sys/param.h>
9355 #if BYTE_ORDER != BIG_ENDIAN
9363 if ac_fn_c_try_compile "$LINENO"; then :
9364 ac_cv_c_bigendian=yes
9366 ac_cv_c_bigendian=no
9368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9372 if test $ac_cv_c_bigendian = unknown; then
9373 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9375 /* end confdefs.h. */
9381 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9389 if ac_fn_c_try_compile "$LINENO"; then :
9390 # It does; now see whether it defined to _BIG_ENDIAN or not.
9391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9392 /* end confdefs.h. */
9406 if ac_fn_c_try_compile "$LINENO"; then :
9407 ac_cv_c_bigendian=yes
9409 ac_cv_c_bigendian=no
9411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9415 if test $ac_cv_c_bigendian = unknown; then
9416 # Compile a test program.
9417 if test "$cross_compiling" = yes; then :
9418 # Try to guess by grepping values from an object file.
9419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9420 /* end confdefs.h. */
9421 short int ascii_mm[] =
9422 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9423 short int ascii_ii[] =
9424 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9425 int use_ascii (int i) {
9426 return ascii_mm[i] + ascii_ii[i];
9428 short int ebcdic_ii[] =
9429 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9430 short int ebcdic_mm[] =
9431 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9432 int use_ebcdic (int i) {
9433 return ebcdic_mm[i] + ebcdic_ii[i];
9440 return use_ascii (foo) == use_ebcdic (foo);
9445 if ac_fn_c_try_compile "$LINENO"; then :
9446 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9447 ac_cv_c_bigendian=yes
9449 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9450 if test "$ac_cv_c_bigendian" = unknown; then
9451 ac_cv_c_bigendian=no
9453 # finding both strings is unlikely to happen, but who knows?
9454 ac_cv_c_bigendian=unknown
9458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9461 /* end confdefs.h. */
9462 $ac_includes_default
9467 /* Are we little or big endian? From Harbison&Steele. */
9471 char c[sizeof (long int)];
9474 return u.c[sizeof (long int) - 1] == 1;
9480 if ac_fn_c_try_run "$LINENO"; then :
9481 ac_cv_c_bigendian=no
9483 ac_cv_c_bigendian=yes
9485 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9486 conftest.$ac_objext conftest.beam conftest.$ac_ext
9492 case $ac_cv_c_bigendian in #(
9494 gl_cv_cc_double_expbit0="word 0 bit 20";; #(
9496 gl_cv_cc_double_expbit0="word 1 bit 20" ;; #(
9499 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9503 gl_cv_cc_double_expbit0="unknown" ;;
9512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9513 /* end confdefs.h. */
9520 ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
9521 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
9522 static unsigned int ored_words[NWORDS];
9523 static unsigned int anded_words[NWORDS];
9524 static void add_to_ored_words (double x)
9528 /* Clear it first, in case sizeof (double) < sizeof (memory_double). */
9529 memset (&m, 0, sizeof (memory_double));
9531 for (i = 0; i < NWORDS; i++)
9533 ored_words[i] |= m.word[i];
9534 anded_words[i] &= m.word[i];
9540 FILE *fp = fopen ("conftest.out", "w");
9543 for (j = 0; j < NWORDS; j++)
9544 anded_words[j] = ~ (unsigned int) 0;
9545 add_to_ored_words (0.25);
9546 add_to_ored_words (0.5);
9547 add_to_ored_words (1.0);
9548 add_to_ored_words (2.0);
9549 add_to_ored_words (4.0);
9550 /* Remove bits that are common (e.g. if representation of the first mantissa
9551 bit is explicit). */
9552 for (j = 0; j < NWORDS; j++)
9553 ored_words[j] &= ~anded_words[j];
9554 /* Now find the nonzero word. */
9555 for (j = 0; j < NWORDS; j++)
9556 if (ored_words[j] != 0)
9561 for (i = j + 1; i < NWORDS; i++)
9562 if (ored_words[i] != 0)
9564 fprintf (fp, "unknown");
9565 return (fclose (fp) != 0);
9568 if ((ored_words[j] >> i) & 1)
9570 fprintf (fp, "word %d bit %d", (int) j, (int) i);
9571 return (fclose (fp) != 0);
9574 fprintf (fp, "unknown");
9575 return (fclose (fp) != 0);
9579 if ac_fn_c_try_run "$LINENO"; then :
9580 gl_cv_cc_double_expbit0=`cat conftest.out
`
9582 gl_cv_cc_double_expbit0="unknown"
9584 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9585 conftest.$ac_objext conftest.beam conftest.$ac_ext
9591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
9592 $as_echo "$gl_cv_cc_double_expbit0" >&6; }
9593 case "$gl_cv_cc_double_expbit0" in
9595 word=`echo "$gl_cv_cc_double_expbit0" |
sed -e 's/word //' -e 's/ bit.*//'`
9596 bit=`echo "$gl_cv_cc_double_expbit0" |
sed -e 's/word.*bit //'`
9598 cat >>confdefs.h <<_ACEOF
9599 #define DBL_EXPBIT0_WORD $word
9603 cat >>confdefs.h <<_ACEOF
9604 #define DBL_EXPBIT0_BIT $bit
9611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9612 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9613 if test "${ac_cv_c_bigendian+set}" = set; then :
9614 $as_echo_n "(cached) " >&6
9616 ac_cv_c_bigendian=unknown
9617 # See if we're dealing with a universal compiler.
9618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9619 /* end confdefs.h. */
9620 #ifndef __APPLE_CC__
9621 not a universal capable compiler
9626 if ac_fn_c_try_compile "$LINENO"; then :
9628 # Check for potential -arch flags. It is not universal unless
9629 # there are at least two -arch flags with different values.
9632 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9633 if test -n "$ac_prev"; then
9635 i?86 | x86_64 | ppc | ppc64)
9636 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9639 ac_cv_c_bigendian=universal
9645 elif test "x$ac_word" = "x-arch"; then
9650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9651 if test $ac_cv_c_bigendian = unknown; then
9652 # See if sys/param.h defines the BYTE_ORDER macro.
9653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9654 /* end confdefs.h. */
9655 #include <sys/types.h>
9656 #include <sys/param.h>
9661 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9662 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9671 if ac_fn_c_try_compile "$LINENO"; then :
9672 # It does; now see whether it defined to BIG_ENDIAN or not.
9673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9674 /* end confdefs.h. */
9675 #include <sys/types.h>
9676 #include <sys/param.h>
9681 #if BYTE_ORDER != BIG_ENDIAN
9689 if ac_fn_c_try_compile "$LINENO"; then :
9690 ac_cv_c_bigendian=yes
9692 ac_cv_c_bigendian=no
9694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9698 if test $ac_cv_c_bigendian = unknown; then
9699 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9701 /* end confdefs.h. */
9707 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9715 if ac_fn_c_try_compile "$LINENO"; then :
9716 # It does; now see whether it defined to _BIG_ENDIAN or not.
9717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9718 /* end confdefs.h. */
9732 if ac_fn_c_try_compile "$LINENO"; then :
9733 ac_cv_c_bigendian=yes
9735 ac_cv_c_bigendian=no
9737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9741 if test $ac_cv_c_bigendian = unknown; then
9742 # Compile a test program.
9743 if test "$cross_compiling" = yes; then :
9744 # Try to guess by grepping values from an object file.
9745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9746 /* end confdefs.h. */
9747 short int ascii_mm[] =
9748 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9749 short int ascii_ii[] =
9750 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9751 int use_ascii (int i) {
9752 return ascii_mm[i] + ascii_ii[i];
9754 short int ebcdic_ii[] =
9755 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9756 short int ebcdic_mm[] =
9757 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9758 int use_ebcdic (int i) {
9759 return ebcdic_mm[i] + ebcdic_ii[i];
9766 return use_ascii (foo) == use_ebcdic (foo);
9771 if ac_fn_c_try_compile "$LINENO"; then :
9772 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9773 ac_cv_c_bigendian=yes
9775 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9776 if test "$ac_cv_c_bigendian" = unknown; then
9777 ac_cv_c_bigendian=no
9779 # finding both strings is unlikely to happen, but who knows?
9780 ac_cv_c_bigendian=unknown
9784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9787 /* end confdefs.h. */
9788 $ac_includes_default
9793 /* Are we little or big endian? From Harbison&Steele. */
9797 char c[sizeof (long int)];
9800 return u.c[sizeof (long int) - 1] == 1;
9806 if ac_fn_c_try_run "$LINENO"; then :
9807 ac_cv_c_bigendian=no
9809 ac_cv_c_bigendian=yes
9811 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9812 conftest.$ac_objext conftest.beam conftest.$ac_ext
9817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9818 $as_echo "$ac_cv_c_bigendian" >&6; }
9819 case $ac_cv_c_bigendian in #(
9821 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9827 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9831 as_fn_error "unknown endianness
9832 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
9841 $as_echo_n "checking for 64-bit off_t... " >&6; }
9842 if test "${gl_cv_type_off_t_64+set}" = set; then :
9843 $as_echo_n "(cached) " >&6
9845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9846 /* end confdefs.h. */
9847 #include <sys/types.h>
9848 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
9858 if ac_fn_c_try_compile "$LINENO"; then :
9859 gl_cv_type_off_t_64=yes
9861 gl_cv_type_off_t_64=no
9863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
9867 $as_echo "$gl_cv_type_off_t_64" >&6; }
9868 if test $gl_cv_type_off_t_64 = no; then
9869 WINDOWS_64_BIT_OFF_T=1
9871 WINDOWS_64_BIT_OFF_T=0
9873 WINDOWS_64_BIT_ST_SIZE=1
9876 WINDOWS_64_BIT_OFF_T=0
9877 WINDOWS_64_BIT_ST_SIZE=0
9882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
9883 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
9884 if test "${am_cv_langinfo_codeset+set}" = set; then :
9885 $as_echo_n "(cached) " >&6
9887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9888 /* end confdefs.h. */
9889 #include <langinfo.h>
9893 char* cs = nl_langinfo(CODESET); return !cs;
9898 if ac_fn_c_try_link "$LINENO"; then :
9899 am_cv_langinfo_codeset=yes
9901 am_cv_langinfo_codeset=no
9903 rm -f core conftest.err conftest.$ac_objext \
9904 conftest$ac_exeext conftest.$ac_ext
9907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
9908 $as_echo "$am_cv_langinfo_codeset" >&6; }
9909 if test $am_cv_langinfo_codeset = yes; then
9911 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
9924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
9925 $as_echo_n "checking for working fcntl.h... " >&6; }
9926 if test "${gl_cv_header_working_fcntl_h+set}" = set; then :
9927 $as_echo_n "(cached) " >&6
9929 if test "$cross_compiling" = yes; then :
9930 gl_cv_header_working_fcntl_h=cross-compiling
9932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9933 /* end confdefs.h. */
9934 #include <sys/types.h>
9935 #include <sys/stat.h>
9937 # include <unistd.h>
9938 #else /* on Windows with MSVC */
9940 # include <stdlib.h>
9941 # defined sleep(n) _sleep ((n) * 1000)
9948 #define O_NOFOLLOW 0
9950 static int const constants[] =
9952 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
9953 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
9960 int result = !constants;
9963 static char const sym[] = "conftest.sym";
9964 if (symlink ("/dev/null", sym) != 0)
9968 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
9975 if (unlink (sym) != 0 || symlink (".", sym) != 0)
9979 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
9990 static char const file[] = "confdefs.h";
9991 int fd = open (file, O_RDONLY | O_NOATIME);
9997 if (fstat (fd, &st0) != 0)
10003 if (read (fd, &c, 1) != 1)
10007 if (close (fd) != 0)
10012 if (stat (file, &st1) != 0)
10015 if (st0.st_atime != st1.st_atime)
10027 if ac_fn_c_try_run "$LINENO"; then :
10028 gl_cv_header_working_fcntl_h=yes
10031 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
10032 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
10033 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
10034 *) gl_cv_header_working_fcntl_h='no';;
10037 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10038 conftest.$ac_objext conftest.beam conftest.$ac_ext
10042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
10043 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
10045 case $gl_cv_header_working_fcntl_h in #(
10046 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
10050 cat >>confdefs.h <<_ACEOF
10051 #define HAVE_WORKING_O_NOATIME $ac_val
10055 case $gl_cv_header_working_fcntl_h in #(
10056 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
10060 cat >>confdefs.h <<_ACEOF
10061 #define HAVE_WORKING_O_NOFOLLOW $ac_val
10065 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
10066 if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then :
10072 cat >>confdefs.h <<_ACEOF
10073 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
10077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
10078 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
10079 if test "${ac_cv_gnu_library_2_1+set}" = set; then :
10080 $as_echo_n "(cached) " >&6
10082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10083 /* end confdefs.h. */
10085 #include <features.h>
10086 #ifdef __GNU_LIBRARY__
10087 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
10096 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10097 $EGREP "Lucky" >/dev/null 2>&1; then :
10098 ac_cv_gnu_library_2_1=yes
10100 ac_cv_gnu_library_2_1=no
10107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
10108 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
10110 GLIBC21="$ac_cv_gnu_library_2_1"
10126 GNULIB_UTIMENSAT=0;
10140 REPLACE_FUTIMENS=0;
10146 REPLACE_UTIMENSAT=0;
10151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
10152 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
10153 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
10154 $as_echo_n "(cached) " >&6
10156 rm -f conftest.sym conftest.file
10157 echo >conftest.file
10158 if test "$cross_compiling" = yes; then :
10161 # Guess yes on glibc systems.
10162 gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
10164 # If we don't know, assume the worst.
10165 gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
10169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10170 /* end confdefs.h. */
10171 $ac_includes_default
10176 if (symlink ("conftest.file", "conftest.sym") != 0)
10178 /* Linux will dereference the symlink and fail, as required by
10179 POSIX. That is better in the sense that it means we will not
10180 have to compile and use the lstat wrapper. */
10181 return lstat ("conftest.sym/", &sbuf) == 0;
10187 if ac_fn_c_try_run "$LINENO"; then :
10188 gl_cv_func_lstat_dereferences_slashed_symlink=yes
10190 gl_cv_func_lstat_dereferences_slashed_symlink=no
10192 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10193 conftest.$ac_objext conftest.beam conftest.$ac_ext
10196 rm -f conftest.sym conftest.file
10199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
10200 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
10201 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
10204 cat >>confdefs.h <<_ACEOF
10205 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
10212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
10213 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
10214 if test "${gl_cv_func_malloc_posix+set}" = set; then :
10215 $as_echo_n "(cached) " >&6
10218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10219 /* end confdefs.h. */
10224 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
10232 if ac_fn_c_try_compile "$LINENO"; then :
10233 gl_cv_func_malloc_posix=yes
10235 gl_cv_func_malloc_posix=no
10237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
10241 $as_echo "$gl_cv_func_malloc_posix" >&6; }
10245 for ac_header in stdlib.h
10247 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
10248 if test "x$ac_cv_header_stdlib_h" = x""yes; then :
10249 cat >>confdefs.h <<_ACEOF
10250 #define HAVE_STDLIB_H 1
10257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
10258 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
10259 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
10260 $as_echo_n "(cached) " >&6
10262 if test "$cross_compiling" = yes; then :
10264 # Guess yes on platforms where we know the result.
10265 *-gnu* | freebsd* | netbsd* | openbsd* \
10266 | hpux* | solaris* | cygwin* | mingw*)
10267 ac_cv_func_malloc_0_nonnull=yes ;;
10268 # If we don't know, assume the worst.
10269 *) ac_cv_func_malloc_0_nonnull=no ;;
10273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10274 /* end confdefs.h. */
10275 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
10276 # include <stdlib.h>
10284 char *p = malloc (0);
10293 if ac_fn_c_try_run "$LINENO"; then :
10294 ac_cv_func_malloc_0_nonnull=yes
10296 ac_cv_func_malloc_0_nonnull=no
10298 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10299 conftest.$ac_objext conftest.beam conftest.$ac_ext
10304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
10305 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
10306 if test $ac_cv_func_malloc_0_nonnull = yes; then :
10307 gl_cv_func_malloc_0_nonnull=1
10309 gl_cv_func_malloc_0_nonnull=0
10313 cat >>confdefs.h <<_ACEOF
10314 #define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
10326 GNULIB_MBSRTOWCS=0;
10327 GNULIB_MBSNRTOWCS=0;
10329 GNULIB_WCSRTOMBS=0;
10330 GNULIB_WCSNRTOMBS=0;
10347 GNULIB_WCSCASECMP=0;
10348 GNULIB_WCSNCASECMP=0;
10385 HAVE_WCSNCASECMP=1;
10398 HAVE_DECL_WCWIDTH=1;
10399 REPLACE_MBSTATE_T=0;
10405 REPLACE_MBSRTOWCS=0;
10406 REPLACE_MBSNRTOWCS=0;
10408 REPLACE_WCSRTOMBS=0;
10409 REPLACE_WCSNRTOMBS=0;
10411 REPLACE_WCSWIDTH=0;
10420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
10421 $as_echo_n "checking for a traditional japanese locale... " >&6; }
10422 if test "${gt_cv_locale_ja+set}" = set; then :
10423 $as_echo_n "(cached) " >&6
10426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10427 /* end confdefs.h. */
10429 #include <locale.h>
10431 #if HAVE_LANGINFO_CODESET
10432 # include <langinfo.h>
10434 #include <stdlib.h>
10435 #include <string.h>
10441 /* Check whether the given locale name is recognized by the system. */
10442 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
10443 /* On native Windows, setlocale(category, "") looks at the system settings,
10444 not at the environment variables. Also, when an encoding suffix such
10445 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
10446 category of the locale to "C". */
10447 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
10448 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
10451 if (setlocale (LC_ALL, "") == NULL) return 1;
10453 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
10454 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
10455 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
10456 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
10457 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
10458 some unit tests fail.
10459 On MirBSD 10, when an unsupported locale is specified, setlocale()
10460 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
10461 #if HAVE_LANGINFO_CODESET
10463 const char *cs = nl_langinfo (CODESET);
10464 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
10465 || strcmp (cs, "UTF-8") == 0)
10470 /* On Cygwin, avoid locale names without encoding suffix, because the
10471 locale_charset() function relies on the encoding suffix. Note that
10472 LC_ALL is set on the command line. */
10473 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
10475 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales
10476 on Cygwin 1.5.x. */
10477 if (MB_CUR_MAX == 1)
10479 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
10480 This excludes the UTF-8 encoding (except on MirBSD). */
10481 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
10482 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
10483 for (p = buf; *p != '\0'; p++)
10484 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
10490 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10491 (eval $ac_link) 2>&5
10493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10494 test $ac_status = 0; } && test -s conftest$ac_exeext; then
10496 # Handle native Windows specially, because there setlocale() interprets
10497 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
10498 # "fr" or "fra" as "French" or "French_France.1252",
10499 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
10500 # "ja" as "Japanese" or "Japanese_Japan.932",
10503 # Note that on native Windows, the Japanese locale is
10504 # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
10505 # cannot use it here.
10506 gt_cv_locale_ja=none
10509 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
10510 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
10511 # configure script would override the LC_ALL setting. Likewise for
10512 # LC_CTYPE, which is also set at the beginning of the configure script.
10513 # Test for the AIX locale name.
10514 if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10515 gt_cv_locale_ja=ja_JP
10517 # Test for the locale name with explicit encoding suffix.
10518 if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10519 gt_cv_locale_ja=ja_JP.EUC-JP
10521 # Test for the HP-UX, OSF/1, NetBSD locale name.
10522 if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10523 gt_cv_locale_ja=ja_JP.eucJP
10525 # Test for the IRIX, FreeBSD locale name.
10526 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10527 gt_cv_locale_ja=ja_JP.EUC
10529 # Test for the Solaris 7 locale name.
10530 if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10533 # Special test for NetBSD 1.6.
10534 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
10535 gt_cv_locale_ja=ja_JP.eucJP
10538 gt_cv_locale_ja=none
10551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
10552 $as_echo "$gt_cv_locale_ja" >&6; }
10553 LOCALE_JA=$gt_cv_locale_ja
10559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
10560 $as_echo_n "checking for a transitional chinese locale... " >&6; }
10561 if test "${gt_cv_locale_zh_CN+set}" = set; then :
10562 $as_echo_n "(cached) " >&6
10565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10566 /* end confdefs.h. */
10568 #include <locale.h>
10569 #include <stdlib.h>
10571 #if HAVE_LANGINFO_CODESET
10572 # include <langinfo.h>
10574 #include <stdlib.h>
10575 #include <string.h>
10581 /* Check whether the given locale name is recognized by the system. */
10582 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
10583 /* On native Windows, setlocale(category, "") looks at the system settings,
10584 not at the environment variables. Also, when an encoding suffix such
10585 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
10586 category of the locale to "C". */
10587 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
10588 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
10591 if (setlocale (LC_ALL, "") == NULL) return 1;
10593 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
10594 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
10595 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
10596 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
10597 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
10598 some unit tests fail.
10599 On MirBSD 10, when an unsupported locale is specified, setlocale()
10600 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
10601 #if HAVE_LANGINFO_CODESET
10603 const char *cs = nl_langinfo (CODESET);
10604 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
10605 || strcmp (cs, "UTF-8") == 0)
10610 /* On Cygwin, avoid locale names without encoding suffix, because the
10611 locale_charset() function relies on the encoding suffix. Note that
10612 LC_ALL is set on the command line. */
10613 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
10615 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
10616 This excludes the UTF-8 encoding (except on MirBSD). */
10617 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
10618 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
10619 for (p = buf; *p != '\0'; p++)
10620 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
10622 /* Check whether a typical GB18030 multibyte sequence is recognized as a
10623 single wide character. This excludes the GB2312 and GBK encodings. */
10624 if (mblen ("\203\062\332\066", 5) != 4)
10630 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10631 (eval $ac_link) 2>&5
10633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10634 test $ac_status = 0; } && test -s conftest$ac_exeext; then
10636 # Handle native Windows specially, because there setlocale() interprets
10637 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
10638 # "fr" or "fra" as "French" or "French_France.1252",
10639 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
10640 # "ja" as "Japanese" or "Japanese_Japan.932",
10643 # Test for the hypothetical native Windows locale name.
10644 if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10645 gt_cv_locale_zh_CN=Chinese_China.54936
10648 gt_cv_locale_zh_CN=none
10652 # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
10653 # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
10654 # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
10655 gt_cv_locale_zh_CN=none
10658 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
10659 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
10660 # configure script would override the LC_ALL setting. Likewise for
10661 # LC_CTYPE, which is also set at the beginning of the configure script.
10662 # Test for the locale name without encoding suffix.
10663 if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10664 gt_cv_locale_zh_CN=zh_CN
10666 # Test for the locale name with explicit encoding suffix.
10667 if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10668 gt_cv_locale_zh_CN=zh_CN.GB18030
10671 gt_cv_locale_zh_CN=none
10677 # If there was a link error, due to mblen(), the system is so old that
10678 # it certainly doesn't have a chinese locale.
10679 gt_cv_locale_zh_CN=none
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
10685 $as_echo "$gt_cv_locale_zh_CN" >&6; }
10686 LOCALE_ZH_CN=$gt_cv_locale_zh_CN
10691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
10692 $as_echo_n "checking for a french Unicode locale... " >&6; }
10693 if test "${gt_cv_locale_fr_utf8+set}" = set; then :
10694 $as_echo_n "(cached) " >&6
10697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10698 /* end confdefs.h. */
10700 #include <locale.h>
10702 #if HAVE_LANGINFO_CODESET
10703 # include <langinfo.h>
10705 #include <stdlib.h>
10706 #include <string.h>
10710 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
10711 imitates locale dependent behaviour by looking at the environment
10712 variables, and all locales use the UTF-8 encoding. */
10713 #if !(defined __BEOS__ || defined __HAIKU__)
10714 /* Check whether the given locale name is recognized by the system. */
10715 # if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
10716 /* On native Windows, setlocale(category, "") looks at the system settings,
10717 not at the environment variables. Also, when an encoding suffix such
10718 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
10719 category of the locale to "C". */
10720 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
10721 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
10724 if (setlocale (LC_ALL, "") == NULL) return 1;
10726 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
10727 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
10728 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
10729 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
10730 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
10731 some unit tests fail. */
10732 # if HAVE_LANGINFO_CODESET
10734 const char *cs = nl_langinfo (CODESET);
10735 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
10740 /* On Cygwin, avoid locale names without encoding suffix, because the
10741 locale_charset() function relies on the encoding suffix. Note that
10742 LC_ALL is set on the command line. */
10743 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
10745 /* Check whether in the abbreviation of the second month, the second
10746 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
10747 two bytes long, with UTF-8 encoding. */
10748 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
10749 if (strftime (buf, sizeof (buf), "%b", &t) < 4
10750 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
10753 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
10754 /* Check whether the decimal separator is a comma.
10755 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
10756 are nl_langinfo(RADIXCHAR) are both ".". */
10757 if (localeconv () ->decimal_point[0] != ',') return 1;
10763 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10764 (eval $ac_link) 2>&5
10766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10767 test $ac_status = 0; } && test -s conftest$ac_exeext; then
10769 # Handle native Windows specially, because there setlocale() interprets
10770 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
10771 # "fr" or "fra" as "French" or "French_France.1252",
10772 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
10773 # "ja" as "Japanese" or "Japanese_Japan.932",
10776 # Test for the hypothetical native Windows locale name.
10777 if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10778 gt_cv_locale_fr_utf8=French_France.65001
10781 gt_cv_locale_fr_utf8=none
10785 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
10786 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
10787 # configure script would override the LC_ALL setting. Likewise for
10788 # LC_CTYPE, which is also set at the beginning of the configure script.
10789 # Test for the usual locale name.
10790 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10791 gt_cv_locale_fr_utf8=fr_FR
10793 # Test for the locale name with explicit encoding suffix.
10794 if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10795 gt_cv_locale_fr_utf8=fr_FR.UTF-8
10797 # Test for the Solaris 7 locale name.
10798 if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10799 gt_cv_locale_fr_utf8=fr.UTF-8
10802 gt_cv_locale_fr_utf8=none
10812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
10813 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
10814 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
10821 $as_echo_n "checking for a traditional french locale... " >&6; }
10822 if test "${gt_cv_locale_fr+set}" = set; then :
10823 $as_echo_n "(cached) " >&6
10826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10827 /* end confdefs.h. */
10829 #include <locale.h>
10831 #if HAVE_LANGINFO_CODESET
10832 # include <langinfo.h>
10834 #include <stdlib.h>
10835 #include <string.h>
10839 /* Check whether the given locale name is recognized by the system. */
10840 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
10841 /* On native Windows, setlocale(category, "") looks at the system settings,
10842 not at the environment variables. Also, when an encoding suffix such
10843 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
10844 category of the locale to "C". */
10845 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
10846 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
10849 if (setlocale (LC_ALL, "") == NULL) return 1;
10851 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
10852 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
10853 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
10854 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
10855 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
10856 some unit tests fail.
10857 On MirBSD 10, when an unsupported locale is specified, setlocale()
10858 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
10859 #if HAVE_LANGINFO_CODESET
10861 const char *cs = nl_langinfo (CODESET);
10862 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
10863 || strcmp (cs, "UTF-8") == 0)
10868 /* On Cygwin, avoid locale names without encoding suffix, because the
10869 locale_charset() function relies on the encoding suffix. Note that
10870 LC_ALL is set on the command line. */
10871 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
10873 /* Check whether in the abbreviation of the second month, the second
10874 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
10875 one byte long. This excludes the UTF-8 encoding. */
10876 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
10877 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
10878 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
10879 /* Check whether the decimal separator is a comma.
10880 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
10881 are nl_langinfo(RADIXCHAR) are both ".". */
10882 if (localeconv () ->decimal_point[0] != ',') return 1;
10888 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10889 (eval $ac_link) 2>&5
10891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10892 test $ac_status = 0; } && test -s conftest$ac_exeext; then
10894 # Handle native Windows specially, because there setlocale() interprets
10895 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
10896 # "fr" or "fra" as "French" or "French_France.1252",
10897 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
10898 # "ja" as "Japanese" or "Japanese_Japan.932",
10901 # Test for the native Windows locale name.
10902 if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10903 gt_cv_locale_fr=French_France.1252
10906 gt_cv_locale_fr=none
10910 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
10911 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
10912 # configure script would override the LC_ALL setting. Likewise for
10913 # LC_CTYPE, which is also set at the beginning of the configure script.
10914 # Test for the usual locale name.
10915 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10916 gt_cv_locale_fr=fr_FR
10918 # Test for the locale name with explicit encoding suffix.
10919 if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10920 gt_cv_locale_fr=fr_FR.ISO-8859-1
10922 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
10923 if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10924 gt_cv_locale_fr=fr_FR.ISO8859-1
10926 # Test for the HP-UX locale name.
10927 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10928 gt_cv_locale_fr=fr_FR.iso88591
10930 # Test for the Solaris 7 locale name.
10931 if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10935 gt_cv_locale_fr=none
10947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
10948 $as_echo "$gt_cv_locale_fr" >&6; }
10949 LOCALE_FR=$gt_cv_locale_fr
10963 GNULIB_RAWMEMCHR=0;
10966 GNULIB_STRCHRNUL=0;
10974 GNULIB_STRCASESTR=0;
10981 GNULIB_MBSCASECMP=0;
10982 GNULIB_MBSNCASECMP=0;
10983 GNULIB_MBSPCASECMP=0;
10984 GNULIB_MBSCASESTR=0;
10991 GNULIB_STRERROR_R=0;
10992 GNULIB_STRSIGNAL=0;
10993 GNULIB_STRVERSCMP=0;
10998 HAVE_DECL_MEMMEM=1;
11000 HAVE_DECL_MEMRCHR=1;
11005 HAVE_DECL_STRDUP=1;
11006 HAVE_DECL_STRNDUP=1;
11007 HAVE_DECL_STRNLEN=1;
11011 HAVE_DECL_STRTOK_R=1;
11012 HAVE_DECL_STRERROR_R=1;
11013 HAVE_DECL_STRSIGNAL=1;
11020 REPLACE_STRCASESTR=0;
11021 REPLACE_STRCHRNUL=0;
11022 REPLACE_STRERROR=0;
11023 REPLACE_STRERROR_R=0;
11027 REPLACE_STRSIGNAL=0;
11028 REPLACE_STRTOK_R=0;
11029 UNDEFINE_STRTOK_R=0;
11035 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
11036 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
11037 # irrelevant for anonymous mappings.
11038 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
11039 if test "x$ac_cv_func_mmap" = x""yes; then :
11046 # Try to allow MAP_ANONYMOUS.
11047 gl_have_mmap_anonymous=no
11048 if test $gl_have_mmap = yes; then
11049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
11050 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
11051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11052 /* end confdefs.h. */
11054 #include <sys/mman.h>
11055 #ifdef MAP_ANONYMOUS
11056 I cannot identify this map
11060 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11061 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
11062 gl_have_mmap_anonymous=yes
11066 if test $gl_have_mmap_anonymous != yes; then
11067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11068 /* end confdefs.h. */
11070 #include <sys/mman.h>
11072 I cannot identify this map
11076 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11077 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
11079 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
11081 gl_have_mmap_anonymous=yes
11086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
11087 $as_echo "$gl_have_mmap_anonymous" >&6; }
11088 if test $gl_have_mmap_anonymous = yes; then
11090 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
11100 if test $HAVE_MEMCHR = 1; then
11101 # Detect platform-specific bugs in some versions of glibc:
11102 # memchr should not dereference anything with length 0
11103 # http://bugzilla.redhat.com/499689
11104 # memchr should not dereference overestimated length after a match
11105 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
11106 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
11107 # Assume that memchr works on platforms that lack mprotect.
11108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
11109 $as_echo_n "checking whether memchr works... " >&6; }
11110 if test "${gl_cv_func_memchr_works+set}" = set; then :
11111 $as_echo_n "(cached) " >&6
11113 if test "$cross_compiling" = yes; then :
11114 gl_cv_func_memchr_works="guessing no"
11116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11117 /* end confdefs.h. */
11119 #include <string.h>
11120 #if HAVE_SYS_MMAN_H
11121 # include <fcntl.h>
11122 # include <unistd.h>
11123 # include <sys/types.h>
11124 # include <sys/mman.h>
11126 # define MAP_FILE 0
11135 char *fence = NULL;
11136 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
11137 # if HAVE_MAP_ANONYMOUS
11138 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
11140 # else /* !HAVE_MAP_ANONYMOUS */
11141 const int flags = MAP_FILE | MAP_PRIVATE;
11142 int fd = open ("/dev/zero", O_RDONLY, 0666);
11146 int pagesize = getpagesize ();
11148 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
11150 if (two_pages != (char *)(-1)
11151 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
11152 fence = two_pages + pagesize;
11157 if (memchr (fence, 0, 0))
11159 strcpy (fence - 9, "12345678");
11160 if (memchr (fence - 9, 0, 79) != fence - 1)
11162 if (memchr (fence - 1, 0, 3) != fence - 1)
11171 if ac_fn_c_try_run "$LINENO"; then :
11172 gl_cv_func_memchr_works=yes
11174 gl_cv_func_memchr_works=no
11176 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11177 conftest.$ac_objext conftest.beam conftest.$ac_ext
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
11182 $as_echo "$gl_cv_func_memchr_works" >&6; }
11183 if test "$gl_cv_func_memchr_works" != yes; then
11188 ac_fn_c_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
11189 if test "x$ac_cv_have_decl_memmem" = x""yes; then :
11195 cat >>confdefs.h <<_ACEOF
11196 #define HAVE_DECL_MEMMEM $ac_have_decl
11203 for ac_func in memmem
11205 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
11206 if test "x$ac_cv_func_memmem" = x""yes; then :
11207 cat >>confdefs.h <<_ACEOF
11208 #define HAVE_MEMMEM 1
11214 if test $ac_cv_func_memmem = yes; then
11220 if test $ac_cv_have_decl_memmem = no; then
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
11224 $as_echo_n "checking whether memmem works... " >&6; }
11225 if test "${gl_cv_func_memmem_works_always+set}" = set; then :
11226 $as_echo_n "(cached) " >&6
11228 if test "$cross_compiling" = yes; then :
11229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11230 /* end confdefs.h. */
11232 #ifdef __GNU_LIBRARY__
11233 #include <features.h>
11234 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
11235 || __GLIBC_MINOR__ > 12)) \
11236 || (__GLIBC__ > 2)) \
11237 || defined __UCLIBC__
11240 #elif defined __CYGWIN__
11241 #include <cygwin/version.h>
11242 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
11250 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11251 $EGREP "Lucky user" >/dev/null 2>&1; then :
11252 gl_cv_func_memmem_works_always="guessing yes"
11254 gl_cv_func_memmem_works_always="guessing no"
11260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11261 /* end confdefs.h. */
11263 #include <string.h> /* for memmem */
11264 #define P "_EF_BF_BD"
11265 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
11266 #define NEEDLE P P P P P
11273 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
11275 /* Check for empty needle behavior. */
11277 const char *haystack = "AAA";
11278 if (memmem (haystack, 3, NULL, 0) != haystack)
11287 if ac_fn_c_try_run "$LINENO"; then :
11288 gl_cv_func_memmem_works_always=yes
11290 gl_cv_func_memmem_works_always=no
11292 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11293 conftest.$ac_objext conftest.beam conftest.$ac_ext
11298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
11299 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
11300 case "$gl_cv_func_memmem_works_always" in
11318 GNULIB_FPRINTF_POSIX=0;
11334 GNULIB_OBSTACK_PRINTF=0;
11335 GNULIB_OBSTACK_PRINTF_POSIX=0;
11340 GNULIB_PRINTF_POSIX=0;
11349 GNULIB_SPRINTF_POSIX=0;
11350 GNULIB_STDIO_H_NONBLOCKING=0;
11351 GNULIB_STDIO_H_SIGPIPE=0;
11353 GNULIB_VASPRINTF=0;
11358 GNULIB_VFPRINTF_POSIX=0;
11360 GNULIB_VPRINTF_POSIX=0;
11361 GNULIB_VSNPRINTF=0;
11362 GNULIB_VSPRINTF_POSIX=0;
11363 HAVE_DECL_FPURGE=1;
11364 HAVE_DECL_FSEEKO=1;
11365 HAVE_DECL_FTELLO=1;
11366 HAVE_DECL_GETDELIM=1;
11367 HAVE_DECL_GETLINE=1;
11368 HAVE_DECL_OBSTACK_PRINTF=1;
11369 HAVE_DECL_SNPRINTF=1;
11370 HAVE_DECL_VSNPRINTF=1;
11391 REPLACE_GETDELIM=0;
11393 REPLACE_OBSTACK_PRINTF=0;
11399 REPLACE_RENAMEAT=0;
11400 REPLACE_SNPRINTF=0;
11402 REPLACE_STDIO_READ_FUNCS=0;
11403 REPLACE_STDIO_WRITE_FUNCS=0;
11405 REPLACE_VASPRINTF=0;
11406 REPLACE_VDPRINTF=0;
11407 REPLACE_VFPRINTF=0;
11409 REPLACE_VSNPRINTF=0;
11410 REPLACE_VSPRINTF=0;
11415 GNULIB_PTHREAD_SIGMASK=0;
11417 GNULIB_SIGNAL_H_SIGPIPE=0;
11418 GNULIB_SIGPROCMASK=0;
11419 GNULIB_SIGACTION=0;
11420 HAVE_POSIX_SIGNALBLOCKING=1;
11421 HAVE_PTHREAD_SIGMASK=1;
11426 HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
11428 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
11430 HAVE_SIGHANDLER_T=1;
11431 REPLACE_PTHREAD_SIGMASK=0;
11435 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
11436 #include <signal.h>
11437 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
11438 #include <sys/types.h>
11441 if test "x$ac_cv_type_sigset_t" = x""yes; then :
11443 cat >>confdefs.h <<_ACEOF
11444 #define HAVE_SIGSET_T 1
11447 gl_cv_type_sigset_t=yes
11449 gl_cv_type_sigset_t=no
11452 if test $gl_cv_type_sigset_t != yes; then
11456 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
11457 if test "x$ac_cv_type_pid_t" = x""yes; then :
11461 cat >>confdefs.h <<_ACEOF
11467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
11468 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
11469 if test "${ac_cv_type_uid_t+set}" = set; then :
11470 $as_echo_n "(cached) " >&6
11472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11473 /* end confdefs.h. */
11474 #include <sys/types.h>
11477 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11478 $EGREP "uid_t" >/dev/null 2>&1; then :
11479 ac_cv_type_uid_t=yes
11481 ac_cv_type_uid_t=no
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
11487 $as_echo "$ac_cv_type_uid_t" >&6; }
11488 if test $ac_cv_type_uid_t = no; then
11490 $as_echo "#define uid_t int" >>confdefs.h
11493 $as_echo "#define gid_t int" >>confdefs.h
11497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
11498 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
11499 if test "${ac_cv_header_stdbool_h+set}" = set; then :
11500 $as_echo_n "(cached) " >&6
11502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11503 /* end confdefs.h. */
11505 #include <stdbool.h>
11510 typedef _Bool Bool;
11512 "error: bool is not defined"
11515 "error: false is not defined"
11518 "error: false is not 0"
11521 "error: true is not defined"
11524 "error: true is not 1"
11528 #ifndef __bool_true_false_are_defined
11529 "error: __bool_true_false_are_defined is not defined"
11532 struct s { Bool s: 1; Bool t; bool u: 1; bool v; } s;
11534 char a[true == 1 ? 1 : -1];
11535 char b[false == 0 ? 1 : -1];
11536 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
11537 char d[(bool) 0.5 == true ? 1 : -1];
11538 /* See body of main program for 'e'. */
11539 char f[(Bool) 0.0 == false ? 1 : -1];
11541 char h[sizeof (Bool)];
11542 char i[sizeof s.t];
11543 enum { j = false, k = true, l = false * true, m = true * 256 };
11544 /* The following fails for
11545 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
11547 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
11548 char p[-1 - (Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
11549 /* Catch a bug in an HP-UX C compiler. See
11550 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
11551 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
11562 *pq |= q; *pq |= ! q;
11563 *qq |= q; *qq |= ! q;
11564 /* Refer to every declared value, to avoid compiler optimizations. */
11565 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
11566 + !m + !n + !o + !p + !q + !pq + !qq);
11572 if ac_fn_c_try_compile "$LINENO"; then :
11573 ac_cv_header_stdbool_h=yes
11575 ac_cv_header_stdbool_h=no
11577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
11580 $as_echo "$ac_cv_header_stdbool_h" >&6; }
11581 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
11582 if test "x$ac_cv_type__Bool" = x""yes; then :
11584 cat >>confdefs.h <<_ACEOF
11585 #define HAVE__BOOL 1
11594 HAVE_MAX_ALIGN_T=1;
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
11599 $as_echo_n "checking for wchar_t... " >&6; }
11600 if test "${gt_cv_c_wchar_t+set}" = set; then :
11601 $as_echo_n "(cached) " >&6
11603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11604 /* end confdefs.h. */
11605 #include <stddef.h>
11606 wchar_t foo = (wchar_t)'\0';
11615 if ac_fn_c_try_compile "$LINENO"; then :
11616 gt_cv_c_wchar_t=yes
11620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
11623 $as_echo "$gt_cv_c_wchar_t" >&6; }
11624 if test $gt_cv_c_wchar_t = yes; then
11626 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
11641 if test $gl_cv_have_include_next = yes; then
11642 gl_cv_next_string_h='<'string.h'>'
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
11645 $as_echo_n "checking absolute name of <string.h>... " >&6; }
11646 if test "${gl_cv_next_string_h+set}" = set; then :
11647 $as_echo_n "(cached) " >&6
11652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11653 /* end confdefs.h. */
11654 #include <string.h>
11657 aix*) gl_absname_cpp="$ac_cpp -C" ;;
11658 *) gl_absname_cpp="$ac_cpp" ;;
11663 gl_dirsep_regex='[/\\]'
11666 gl_dirsep_regex='\/'
11669 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
11670 gl_header_literal_regex=`echo 'string.h' \
11671 |
sed -e "$gl_make_literal_regex_sed"`
11672 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11673 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11679 gl_cv_absolute_string_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11680 sed -n "$gl_absolute_header_sed"`
11682 gl_header=$gl_cv_absolute_string_h
11683 gl_cv_next_string_h='"'$gl_header'"'
11687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
11688 $as_echo "$gl_cv_next_string_h" >&6; }
11690 NEXT_STRING_H=$gl_cv_next_string_h
11692 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11693 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11694 gl_next_as_first_directive='<'string.h'>'
11696 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11697 gl_next_as_first_directive=$gl_cv_next_string_h
11699 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
11706 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
11707 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
11708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
11709 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
11710 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
11711 $as_echo_n "(cached) " >&6
11713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11714 /* end confdefs.h. */
11715 #include <string.h>
11726 if ac_fn_c_try_compile "$LINENO"; then :
11727 eval "$as_gl_Symbol=yes"
11729 eval "$as_gl_Symbol=no"
11731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11733 eval ac_res=\$$as_gl_Symbol
11734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11735 $as_echo "$ac_res" >&6; }
11736 eval as_val=\$$as_gl_Symbol
11737 if test "x$as_val" = x""yes; then :
11738 cat >>confdefs.h <<_ACEOF
11739 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
11742 eval ac_cv_have_decl_$gl_func=yes
11750 if test "$gl_cv_func_memchr_works" != yes; then
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
11754 $as_echo_n "checking whether strstr works... " >&6; }
11755 if test "${gl_cv_func_strstr_works_always+set}" = set; then :
11756 $as_echo_n "(cached) " >&6
11758 if test "$cross_compiling" = yes; then :
11759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11760 /* end confdefs.h. */
11762 #ifdef __GNU_LIBRARY__
11763 #include <features.h>
11764 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
11765 || defined __UCLIBC__
11768 #elif defined __CYGWIN__
11769 #include <cygwin/version.h>
11770 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
11778 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11779 $EGREP "Lucky user" >/dev/null 2>&1; then :
11780 gl_cv_func_strstr_works_always="guessing yes"
11782 gl_cv_func_strstr_works_always="guessing no"
11788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11789 /* end confdefs.h. */
11791 #include <string.h> /* for strstr */
11792 #define P "_EF_BF_BD"
11793 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
11794 #define NEEDLE P P P P P
11799 return !!strstr (HAYSTACK, NEEDLE);
11805 if ac_fn_c_try_run "$LINENO"; then :
11806 gl_cv_func_strstr_works_always=yes
11808 gl_cv_func_strstr_works_always=no
11810 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11811 conftest.$ac_objext conftest.beam conftest.$ac_ext
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
11817 $as_echo "$gl_cv_func_strstr_works_always" >&6; }
11818 case "$gl_cv_func_strstr_works_always" in
11826 ac_fn_c_check_decl "$LINENO" "strtok_r" "ac_cv_have_decl_strtok_r" "$ac_includes_default"
11827 if test "x$ac_cv_have_decl_strtok_r" = x""yes; then :
11833 cat >>confdefs.h <<_ACEOF
11834 #define HAVE_DECL_STRTOK_R $ac_have_decl
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
11838 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
11839 if test "${ac_cv_header_stat_broken+set}" = set; then :
11840 $as_echo_n "(cached) " >&6
11842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11843 /* end confdefs.h. */
11844 #include <sys/types.h>
11845 #include <sys/stat.h>
11847 #if defined S_ISBLK && defined S_IFDIR
11848 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
11851 #if defined S_ISBLK && defined S_IFCHR
11852 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
11855 #if defined S_ISLNK && defined S_IFREG
11856 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
11859 #if defined S_ISSOCK && defined S_IFREG
11860 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
11864 if ac_fn_c_try_compile "$LINENO"; then :
11865 ac_cv_header_stat_broken=no
11867 ac_cv_header_stat_broken=yes
11869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
11872 $as_echo "$ac_cv_header_stat_broken" >&6; }
11873 if test $ac_cv_header_stat_broken = yes; then
11875 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
11881 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
11882 if test "x$ac_cv_type_mode_t" = x""yes; then :
11886 cat >>confdefs.h <<_ACEOF
11892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
11893 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
11894 if test -z "$MKDIR_P"; then
11895 if test "${ac_cv_path_mkdir+set}" = set; then :
11896 $as_echo_n "(cached) " >&6
11898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11899 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
11902 test -z "$as_dir" && as_dir=.
11903 for ac_prog in mkdir gmkdir; do
11904 for ac_exec_ext in '' $ac_executable_extensions; do
11905 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
11906 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
11907 'mkdir (GNU coreutils) '* | \
11908 'mkdir (coreutils) '* | \
11909 'mkdir (fileutils) '4.1*)
11910 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
11920 if test "${ac_cv_path_mkdir+set}" = set; then
11921 MKDIR_P="$ac_cv_path_mkdir -p"
11923 # As a last resort, use the slow shell script. Don't cache a
11924 # value for MKDIR_P within a source directory, because that will
11925 # break other packages using the cache if that directory is
11926 # removed, or if the value is a relative name.
11927 test -d ./--version && rmdir ./--version
11928 MKDIR_P="$ac_install_sh -d"
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
11932 $as_echo "$MKDIR_P" >&6; }
11952 if test $gl_cv_have_include_next = yes; then
11953 gl_cv_next_sys_types_h='<'sys/types.h'>'
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
11956 $as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
11957 if test "${gl_cv_next_sys_types_h+set}" = set; then :
11958 $as_echo_n "(cached) " >&6
11963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11964 /* end confdefs.h. */
11965 #include <sys/types.h>
11968 aix*) gl_absname_cpp="$ac_cpp -C" ;;
11969 *) gl_absname_cpp="$ac_cpp" ;;
11974 gl_dirsep_regex='[/\\]'
11977 gl_dirsep_regex='\/'
11980 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
11981 gl_header_literal_regex=`echo 'sys/types.h' \
11982 |
sed -e "$gl_make_literal_regex_sed"`
11983 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11984 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11990 gl_cv_absolute_sys_types_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11991 sed -n "$gl_absolute_header_sed"`
11993 gl_header=$gl_cv_absolute_sys_types_h
11994 gl_cv_next_sys_types_h='"'$gl_header'"'
11998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
11999 $as_echo "$gl_cv_next_sys_types_h" >&6; }
12001 NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
12003 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
12004 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12005 gl_next_as_first_directive='<'sys/types.h'>'
12007 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12008 gl_next_as_first_directive=$gl_cv_next_sys_types_h
12010 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
12024 GNULIB_NANOSLEEP=0;
12029 HAVE_DECL_LOCALTIME_R=1;
12033 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
12034 REPLACE_MKTIME=GNULIB_PORTCHECK;
12035 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
12036 REPLACE_TIMEGM=GNULIB_PORTCHECK;
12038 : ${GNULIB_GETTIMEOFDAY=0};
12040 REPLACE_LOCALTIME=0;
12044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
12045 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
12046 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
12047 $as_echo_n "(cached) " >&6
12049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12050 /* end confdefs.h. */
12056 static struct timespec x; x.tv_sec = x.tv_nsec;
12061 if ac_fn_c_try_compile "$LINENO"; then :
12062 gl_cv_sys_struct_timespec_in_time_h=yes
12064 gl_cv_sys_struct_timespec_in_time_h=no
12066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
12069 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
12071 TIME_H_DEFINES_STRUCT_TIMESPEC=0
12072 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
12073 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
12074 UNISTD_H_DEFINES_STRUCT_TIMESPEC=0
12075 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
12076 TIME_H_DEFINES_STRUCT_TIMESPEC=1
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
12079 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
12080 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
12081 $as_echo_n "(cached) " >&6
12083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12084 /* end confdefs.h. */
12085 #include <sys/time.h>
12090 static struct timespec x; x.tv_sec = x.tv_nsec;
12095 if ac_fn_c_try_compile "$LINENO"; then :
12096 gl_cv_sys_struct_timespec_in_sys_time_h=yes
12098 gl_cv_sys_struct_timespec_in_sys_time_h=no
12100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
12103 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
12104 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
12105 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
12107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
12108 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
12109 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
12110 $as_echo_n "(cached) " >&6
12112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12113 /* end confdefs.h. */
12114 #include <pthread.h>
12119 static struct timespec x; x.tv_sec = x.tv_nsec;
12124 if ac_fn_c_try_compile "$LINENO"; then :
12125 gl_cv_sys_struct_timespec_in_pthread_h=yes
12127 gl_cv_sys_struct_timespec_in_pthread_h=no
12129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
12132 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
12133 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
12134 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
12136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <unistd.h>" >&5
12137 $as_echo_n "checking for struct timespec in <unistd.h>... " >&6; }
12138 if test "${gl_cv_sys_struct_timespec_in_unistd_h+set}" = set; then :
12139 $as_echo_n "(cached) " >&6
12141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12142 /* end confdefs.h. */
12143 #include <unistd.h>
12148 static struct timespec x; x.tv_sec = x.tv_nsec;
12153 if ac_fn_c_try_compile "$LINENO"; then :
12154 gl_cv_sys_struct_timespec_in_unistd_h=yes
12156 gl_cv_sys_struct_timespec_in_unistd_h=no
12158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_unistd_h" >&5
12161 $as_echo "$gl_cv_sys_struct_timespec_in_unistd_h" >&6; }
12162 if test $gl_cv_sys_struct_timespec_in_unistd_h = yes; then
12163 UNISTD_H_DEFINES_STRUCT_TIMESPEC=1
12184 if test $gl_cv_have_include_next = yes; then
12185 gl_cv_next_time_h='<'time.h'>'
12187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
12188 $as_echo_n "checking absolute name of <time.h>... " >&6; }
12189 if test "${gl_cv_next_time_h+set}" = set; then :
12190 $as_echo_n "(cached) " >&6
12195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12196 /* end confdefs.h. */
12200 aix*) gl_absname_cpp="$ac_cpp -C" ;;
12201 *) gl_absname_cpp="$ac_cpp" ;;
12206 gl_dirsep_regex='[/\\]'
12209 gl_dirsep_regex='\/'
12212 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
12213 gl_header_literal_regex=`echo 'time.h' \
12214 |
sed -e "$gl_make_literal_regex_sed"`
12215 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
12216 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
12222 gl_cv_absolute_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12223 sed -n "$gl_absolute_header_sed"`
12225 gl_header=$gl_cv_absolute_time_h
12226 gl_cv_next_time_h='"'$gl_header'"'
12230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
12231 $as_echo "$gl_cv_next_time_h" >&6; }
12233 NEXT_TIME_H=$gl_cv_next_time_h
12235 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
12236 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12237 gl_next_as_first_directive='<'time.h'>'
12239 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12240 gl_next_as_first_directive=$gl_cv_next_time_h
12242 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
12251 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
12252 if test "${gl_cv_header_wchar_h_correct_inline+set}" = set; then :
12253 $as_echo_n "(cached) " >&6
12255 gl_cv_header_wchar_h_correct_inline=yes
12256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12257 /* end confdefs.h. */
12259 #define wcstod renamed_wcstod
12260 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12262 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12263 included before <wchar.h>. */
12264 #include <stddef.h>
12268 extern int zero (void);
12269 int main () { return zero(); }
12272 save_ac_compile="$ac_compile"
12273 ac_compile=`echo "$save_ac_compile" |
sed s
/conftest
/conftest
1/`
12274 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12275 (eval $ac_compile) 2>&5
12277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12278 test $ac_status = 0; }; then
12279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12280 /* end confdefs.h. */
12282 #define wcstod renamed_wcstod
12283 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12285 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12286 included before <wchar.h>. */
12287 #include <stddef.h>
12291 int zero (void) { return 0; }
12294 ac_compile=`echo "$save_ac_compile" |
sed s
/conftest
/conftest
2/`
12295 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12296 (eval $ac_compile) 2>&5
12298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12299 test $ac_status = 0; }; then
12300 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
12303 gl_cv_header_wchar_h_correct_inline=no
12307 ac_compile="$save_ac_compile"
12308 rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
12311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
12312 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
12313 if test $gl_cv_header_wchar_h_correct_inline = no; then
12314 as_fn_error "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
12315 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
12316 C99 mode. You have four options:
12317 - Add the flag -fgnu89-inline to CC and reconfigure, or
12318 - Fix your include files, using parts of
12319 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
12320 - Use a gcc version older than 4.3, or
12321 - Don't use the flags -std=c99 or -std=gnu99.
12322 Configuration aborted." "$LINENO" 5
12329 if test $ac_cv_header_features_h = yes; then
12337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
12338 $as_echo_n "checking for wint_t... " >&6; }
12339 if test "${gt_cv_c_wint_t+set}" = set; then :
12340 $as_echo_n "(cached) " >&6
12342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12343 /* end confdefs.h. */
12345 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12347 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
12348 before <wchar.h>. */
12349 #include <stddef.h>
12353 wint_t foo = (wchar_t)'\0';
12362 if ac_fn_c_try_compile "$LINENO"; then :
12367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
12370 $as_echo "$gt_cv_c_wint_t" >&6; }
12371 if test $gt_cv_c_wint_t = yes; then
12373 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
12382 GNULIB_TOWCTRANS=0;
12386 REPLACE_ISWBLANK=0;
12392 GL_COND_LIBTOOL_TRUE=
12393 GL_COND_LIBTOOL_FALSE='#'
12395 GL_COND_LIBTOOL_TRUE='#'
12396 GL_COND_LIBTOOL_FALSE=
12399 gl_cond_libtool=false
12402 gl_m4_base='import/m4'
12412 gl_source_base='import'
12415 if test $ac_cv_func_alloca_works = no; then
12419 # Define an additional variable used in the Makefile substitution.
12420 if test $ac_cv_working_alloca_h = yes; then
12421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
12422 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
12423 if test "${gl_cv_rpl_alloca+set}" = set; then :
12424 $as_echo_n "(cached) " >&6
12427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12428 /* end confdefs.h. */
12430 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
12435 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12436 $EGREP "Need own alloca" >/dev/null 2>&1; then :
12437 gl_cv_rpl_alloca=yes
12439 gl_cv_rpl_alloca=no
12445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
12446 $as_echo "$gl_cv_rpl_alloca" >&6; }
12447 if test $gl_cv_rpl_alloca = yes; then
12449 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12459 if test -n "$ALLOCA_H"; then
12460 GL_GENERATE_ALLOCA_H_TRUE=
12461 GL_GENERATE_ALLOCA_H_FALSE='#'
12463 GL_GENERATE_ALLOCA_H_TRUE='#'
12464 GL_GENERATE_ALLOCA_H_FALSE=
12471 if test $ac_cv_func_canonicalize_file_name = no; then
12472 HAVE_CANONICALIZE_FILE_NAME=0
12473 if test $ac_cv_func_realpath = no; then
12476 case "$gl_cv_func_realpath_works" in
12478 *) REPLACE_REALPATH=1 ;;
12482 case "$gl_cv_func_realpath_works" in
12486 REPLACE_CANONICALIZE_FILE_NAME=1
12492 if test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1; then
12501 gl_LIBOBJS="$gl_LIBOBJS canonicalize-lgpl.$ac_objext"
12506 cat >>confdefs.h <<_ACEOF
12507 #define GNULIB_CANONICALIZE_LGPL 1
12516 GNULIB_CANONICALIZE_FILE_NAME=1
12522 $as_echo "#define GNULIB_TEST_CANONICALIZE_FILE_NAME 1" >>confdefs.h
12537 $as_echo "#define GNULIB_TEST_REALPATH 1" >>confdefs.h
12552 $as_echo "#define GNULIB_TEST_CHDIR 1" >>confdefs.h
12557 if test "x$datarootdir" = x; then
12558 datarootdir='${datadir}'
12561 if test "x$docdir" = x; then
12562 docdir='${datarootdir}/doc/${PACKAGE}'
12565 if test "x$htmldir" = x; then
12566 htmldir='${docdir}'
12569 if test "x$dvidir" = x; then
12573 if test "x$pdfdir" = x; then
12577 if test "x$psdir" = x; then
12581 if test "x$lispdir" = x; then
12582 lispdir='${datarootdir}/emacs/site-lisp'
12585 if test "x$localedir" = x; then
12586 localedir='${datarootdir}/locale'
12589 if test "x$runstatedir" = x; then
12590 runstatedir='${localstatedir}/run'
12594 pkglibexecdir='${libexecdir}/${PACKAGE}'
12609 if test $gl_cv_have_include_next = yes; then
12610 gl_cv_next_dirent_h='<'dirent.h'>'
12612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <dirent.h>" >&5
12613 $as_echo_n "checking absolute name of <dirent.h>... " >&6; }
12614 if test "${gl_cv_next_dirent_h+set}" = set; then :
12615 $as_echo_n "(cached) " >&6
12618 if test $ac_cv_header_dirent_h = yes; then
12623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12624 /* end confdefs.h. */
12625 #include <dirent.h>
12628 aix*) gl_absname_cpp="$ac_cpp -C" ;;
12629 *) gl_absname_cpp="$ac_cpp" ;;
12634 gl_dirsep_regex='[/\\]'
12637 gl_dirsep_regex='\/'
12640 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
12641 gl_header_literal_regex=`echo 'dirent.h' \
12642 |
sed -e "$gl_make_literal_regex_sed"`
12643 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
12644 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
12650 gl_cv_absolute_dirent_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12651 sed -n "$gl_absolute_header_sed"`
12653 gl_header=$gl_cv_absolute_dirent_h
12654 gl_cv_next_dirent_h='"'$gl_header'"'
12656 gl_cv_next_dirent_h='<'dirent.h'>'
12661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_dirent_h" >&5
12662 $as_echo "$gl_cv_next_dirent_h" >&6; }
12664 NEXT_DIRENT_H=$gl_cv_next_dirent_h
12666 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
12667 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12668 gl_next_as_first_directive='<'dirent.h'>'
12670 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12671 gl_next_as_first_directive=$gl_cv_next_dirent_h
12673 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H=$gl_next_as_first_directive
12678 if test $ac_cv_header_dirent_h = yes; then
12686 for gl_func in alphasort closedir dirfd fdopendir opendir readdir rewinddir scandir; do
12687 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
12688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
12689 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
12690 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
12691 $as_echo_n "(cached) " >&6
12693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12694 /* end confdefs.h. */
12695 #include <dirent.h>
12706 if ac_fn_c_try_compile "$LINENO"; then :
12707 eval "$as_gl_Symbol=yes"
12709 eval "$as_gl_Symbol=no"
12711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12713 eval ac_res=\$$as_gl_Symbol
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12715 $as_echo "$ac_res" >&6; }
12716 eval as_val=\$$as_gl_Symbol
12717 if test "x$as_val" = x""yes; then :
12718 cat >>confdefs.h <<_ACEOF
12719 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
12722 eval ac_cv_have_decl_$gl_func=yes
12732 for ac_func in dirfd
12734 ac_fn_c_check_func "$LINENO" "dirfd" "ac_cv_func_dirfd"
12735 if test "x$ac_cv_func_dirfd" = x""yes; then :
12736 cat >>confdefs.h <<_ACEOF
12737 #define HAVE_DIRFD 1
12743 ac_fn_c_check_decl "$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "#include <sys/types.h>
12744 #include <dirent.h>
12746 if test "x$ac_cv_have_decl_dirfd" = x""yes; then :
12752 cat >>confdefs.h <<_ACEOF
12753 #define HAVE_DECL_DIRFD $ac_have_decl
12756 if test $ac_cv_have_decl_dirfd = no; then
12760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dirfd is a macro" >&5
12761 $as_echo_n "checking whether dirfd is a macro... " >&6; }
12762 if test "${gl_cv_func_dirfd_macro+set}" = set; then :
12763 $as_echo_n "(cached) " >&6
12765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12766 /* end confdefs.h. */
12768 #include <sys/types.h>
12769 #include <dirent.h>
12771 dirent_header_defines_dirfd
12774 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12775 $EGREP "dirent_header_defines_dirfd" >/dev/null 2>&1; then :
12776 gl_cv_func_dirfd_macro=yes
12778 gl_cv_func_dirfd_macro=no
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dirfd_macro" >&5
12784 $as_echo "$gl_cv_func_dirfd_macro" >&6; }
12786 # Use the replacement if we have no function or macro with that name,
12787 # or if OS/2 kLIBC whose dirfd() does not work.
12788 # Replace only if the system declares dirfd already.
12789 case $ac_cv_func_dirfd,$gl_cv_func_dirfd_macro,$host_os,$ac_cv_have_decl_dirfd in
12790 no,no,*,yes | *,*,os2*,yes)
12793 $as_echo "#define REPLACE_DIRFD 1" >>confdefs.h
12797 if test $ac_cv_func_dirfd = no && test $gl_cv_func_dirfd_macro = no \
12798 || test $REPLACE_DIRFD = 1; then
12807 gl_LIBOBJS="$gl_LIBOBJS dirfd.$ac_objext"
12810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get the file descriptor associated with an open DIR*" >&5
12811 $as_echo_n "checking how to get the file descriptor associated with an open DIR*... " >&6; }
12812 if test "${gl_cv_sys_dir_fd_member_name+set}" = set; then :
12813 $as_echo_n "(cached) " >&6
12816 dirfd_save_CFLAGS=$CFLAGS
12817 for ac_expr in d_fd dd_fd; do
12819 CFLAGS="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr"
12820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12821 /* end confdefs.h. */
12823 #include <sys/types.h>
12824 #include <dirent.h>
12828 DIR *dir_p = opendir("."); (void) dir_p->DIR_FD_MEMBER_NAME;
12833 if ac_fn_c_try_compile "$LINENO"; then :
12837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12838 CFLAGS=$dirfd_save_CFLAGS
12839 test "$dir_fd_found" = yes && break
12841 test "$dir_fd_found" = yes || ac_expr=no_such_member
12843 gl_cv_sys_dir_fd_member_name=$ac_expr
12847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_dir_fd_member_name" >&5
12848 $as_echo "$gl_cv_sys_dir_fd_member_name" >&6; }
12849 if test $gl_cv_sys_dir_fd_member_name != no_such_member; then
12851 cat >>confdefs.h <<_ACEOF
12852 #define DIR_FD_MEMBER_NAME $gl_cv_sys_dir_fd_member_name
12870 $as_echo "#define GNULIB_TEST_DIRFD 1" >>confdefs.h
12880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
12881 $as_echo_n "checking whether // is distinct from /... " >&6; }
12882 if test "${gl_cv_double_slash_root+set}" = set; then :
12883 $as_echo_n "(cached) " >&6
12885 if test x"$cross_compiling" = xyes ; then
12886 # When cross-compiling, there is no way to tell whether // is special
12887 # short of a list of hosts. However, the only known hosts to date
12888 # that have a distinct // are Apollo DomainOS (too old to port to),
12889 # Cygwin, and z/OS. If anyone knows of another system for which // has
12890 # special semantics and is distinct from /, please report it to
12891 # <bug-gnulib@gnu.org>.
12893 *-cygwin | i370-ibm-openedition)
12894 gl_cv_double_slash_root=yes ;;
12896 # Be optimistic and assume that / and // are the same when we
12898 gl_cv_double_slash_root='unknown, assuming no' ;;
12901 set x `ls -di / // 2>/dev
/null
`
12902 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
12903 gl_cv_double_slash_root=no
12905 gl_cv_double_slash_root=yes
12909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
12910 $as_echo "$gl_cv_double_slash_root" >&6; }
12911 if test "$gl_cv_double_slash_root" = yes; then
12913 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
12920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array member" >&5
12921 $as_echo_n "checking for flexible array member... " >&6; }
12922 if test "${ac_cv_c_flexmember+set}" = set; then :
12923 $as_echo_n "(cached) " >&6
12925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12926 /* end confdefs.h. */
12927 #include <stdlib.h>
12929 #include <stddef.h>
12930 struct s { int n; double d[]; };
12934 int m = getchar ();
12935 size_t nbytes = offsetof (struct s, d) + m * sizeof (double);
12936 nbytes += sizeof (struct s) - 1;
12937 nbytes -= nbytes % sizeof (struct s);
12938 struct s *p = malloc (nbytes);
12940 return p->d != (double *) NULL;
12945 if ac_fn_c_try_compile "$LINENO"; then :
12946 ac_cv_c_flexmember=yes
12948 ac_cv_c_flexmember=no
12950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5
12953 $as_echo "$ac_cv_c_flexmember" >&6; }
12954 if test $ac_cv_c_flexmember = yes; then
12956 $as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h
12959 $as_echo "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h
12967 REPLACE_FLOAT_LDBL=0
12969 aix* | beos* | openbsd* | mirbsd* | irix*)
12973 case "$host_cpu" in
12978 # On x86_64 systems, the C compiler may still be generating
12980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12981 /* end confdefs.h. */
12982 #if defined __LP64__ || defined __x86_64__ || defined __amd64__
12986 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12987 $EGREP "yes" >/dev/null 2>&1; then :
12998 case "$host_cpu" in
13006 aix* | freebsd* | linux*)
13007 if test -n "$FLOAT_H"; then
13008 REPLACE_FLOAT_LDBL=1
13014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
13015 $as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
13016 if test "${gl_cv_func_itold_works+set}" = set; then :
13017 $as_echo_n "(cached) " >&6
13020 if test "$cross_compiling" = yes; then :
13023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13024 /* end confdefs.h. */
13025 #if defined __LP64__ || defined __arch64__
13029 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13030 $EGREP "yes" >/dev/null 2>&1; then :
13031 gl_cv_func_itold_works="guessing no"
13033 gl_cv_func_itold_works="guessing yes"
13038 *) gl_cv_func_itold_works="guessing yes" ;;
13042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13043 /* end confdefs.h. */
13046 volatile long double ld;
13055 if ac_fn_c_try_run "$LINENO"; then :
13056 gl_cv_func_itold_works=yes
13058 gl_cv_func_itold_works=no
13060 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13061 conftest.$ac_objext conftest.beam conftest.$ac_ext
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
13067 $as_echo "$gl_cv_func_itold_works" >&6; }
13068 case "$gl_cv_func_itold_works" in
13075 if test -n "$FLOAT_H"; then
13084 if test $gl_cv_have_include_next = yes; then
13085 gl_cv_next_float_h='<'float.h'>'
13087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
13088 $as_echo_n "checking absolute name of <float.h>... " >&6; }
13089 if test "${gl_cv_next_float_h+set}" = set; then :
13090 $as_echo_n "(cached) " >&6
13095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13096 /* end confdefs.h. */
13100 aix*) gl_absname_cpp="$ac_cpp -C" ;;
13101 *) gl_absname_cpp="$ac_cpp" ;;
13106 gl_dirsep_regex='[/\\]'
13109 gl_dirsep_regex='\/'
13112 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
13113 gl_header_literal_regex=`echo 'float.h' \
13114 |
sed -e "$gl_make_literal_regex_sed"`
13115 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
13116 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
13122 gl_cv_absolute_float_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13123 sed -n "$gl_absolute_header_sed"`
13125 gl_header=$gl_cv_absolute_float_h
13126 gl_cv_next_float_h='"'$gl_header'"'
13130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
13131 $as_echo "$gl_cv_next_float_h" >&6; }
13133 NEXT_FLOAT_H=$gl_cv_next_float_h
13135 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
13136 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13137 gl_next_as_first_directive='<'float.h'>'
13139 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13140 gl_next_as_first_directive=$gl_cv_next_float_h
13142 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
13149 if test -n "$FLOAT_H"; then
13150 GL_GENERATE_FLOAT_H_TRUE=
13151 GL_GENERATE_FLOAT_H_FALSE='#'
13153 GL_GENERATE_FLOAT_H_TRUE='#'
13154 GL_GENERATE_FLOAT_H_FALSE=
13159 if test $REPLACE_FLOAT_LDBL = 1; then
13168 gl_LIBOBJS="$gl_LIBOBJS float.$ac_objext"
13171 if test $REPLACE_ITOLD = 1; then
13180 gl_LIBOBJS="$gl_LIBOBJS itold.$ac_objext"
13189 gl_fnmatch_required_lowercase=`
13190 echo $gl_fnmatch_required | LC_ALL
=C
tr '[A-Z]' '[a-z]'
13192 gl_fnmatch_cache_var="gl_cv_func_fnmatch_${gl_fnmatch_required_lowercase}"
13193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working $gl_fnmatch_required fnmatch" >&5
13194 $as_echo_n "checking for working $gl_fnmatch_required fnmatch... " >&6; }
13195 if { as_var=$gl_fnmatch_cache_var; eval "test \"\${$as_var+set}\" = set"; }; then :
13196 $as_echo_n "(cached) " >&6
13198 if test $gl_fnmatch_required = GNU; then
13199 gl_fnmatch_gnu_start=
13200 gl_fnmatch_gnu_end=
13202 gl_fnmatch_gnu_start='#if 0'
13203 gl_fnmatch_gnu_end='#endif'
13205 if test "$cross_compiling" = yes; then :
13206 eval "$gl_fnmatch_cache_var=\"guessing no\""
13208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13209 /* end confdefs.h. */
13210 #include <fnmatch.h>
13212 y (char const *pattern, char const *string, int flags)
13214 return fnmatch (pattern, string, flags) == 0;
13217 n (char const *pattern, char const *string, int flags)
13219 return fnmatch (pattern, string, flags) == FNM_NOMATCH;
13225 char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]";
13226 char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]";
13227 static char const A_1[] = { 'A' - 1, 0 };
13228 static char const A01[] = { 'A' + 1, 0 };
13229 static char const a_1[] = { 'a' - 1, 0 };
13230 static char const a01[] = { 'a' + 1, 0 };
13231 static char const bs_1[] = { '\\\\' - 1, 0 };
13232 static char const bs01[] = { '\\\\' + 1, 0 };
13234 if (!n ("a*", "", 0))
13236 if (!y ("a*", "abc", 0))
13238 if (!y ("[/b", "[/b", 0)) /*"]]"*/ /* glibc Bugzilla bug 12378 */
13240 if (!n ("d*/*1", "d/s/1", FNM_PATHNAME))
13242 if (!y ("a\\\\bc", "abc", 0))
13244 if (!n ("a\\\\bc", "abc", FNM_NOESCAPE))
13246 if (!y ("*x", ".x", 0))
13248 if (!n ("*x", ".x", FNM_PERIOD))
13250 if (!y (Apat, "\\\\", 0))
13252 if (!y (Apat, "A", 0))
13254 if (!y (apat, "\\\\", 0))
13256 if (!y (apat, "a", 0))
13258 if (!(n (Apat, A_1, 0) == ('A' < '\\\\')))
13260 if (!(n (apat, a_1, 0) == ('a' < '\\\\')))
13262 if (!(y (Apat, A01, 0) == ('A' < '\\\\')))
13264 if (!(y (apat, a01, 0) == ('a' < '\\\\')))
13266 if (!(y (Apat, bs_1, 0) == ('A' < '\\\\')))
13268 if (!(y (apat, bs_1, 0) == ('a' < '\\\\')))
13270 if (!(n (Apat, bs01, 0) == ('A' < '\\\\')))
13272 if (!(n (apat, bs01, 0) == ('a' < '\\\\')))
13274 $gl_fnmatch_gnu_start
13275 if (!y ("xxXX", "xXxX", FNM_CASEFOLD))
13277 if (!y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH))
13279 if (!n ("d*/*1", "d/s/1", FNM_FILE_NAME))
13281 if (!y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR))
13283 if (!y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR))
13285 if (!y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR))
13287 $gl_fnmatch_gnu_end
13294 if ac_fn_c_try_run "$LINENO"; then :
13295 eval "$gl_fnmatch_cache_var=yes"
13297 eval "$gl_fnmatch_cache_var=no"
13299 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13300 conftest.$ac_objext conftest.beam conftest.$ac_ext
13305 eval ac_res=\$$gl_fnmatch_cache_var
13306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13307 $as_echo "$ac_res" >&6; }
13308 eval "gl_fnmatch_result=\"\$$gl_fnmatch_cache_var\""
13309 if test "$gl_fnmatch_result" = yes; then
13310 rm -f "$gl_source_base/fnmatch.h"
13312 FNMATCH_H=fnmatch.h
13315 if test -n "$FNMATCH_H"; then
13316 GL_GENERATE_FNMATCH_H_TRUE=
13317 GL_GENERATE_FNMATCH_H_FALSE='#'
13319 GL_GENERATE_FNMATCH_H_TRUE='#'
13320 GL_GENERATE_FNMATCH_H_FALSE=
13324 if test -n "$FNMATCH_H"; then
13333 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
13337 cat >>confdefs.h <<_ACEOF
13338 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
13342 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
13344 if test "x$ac_cv_have_decl_isblank" = x""yes; then :
13350 cat >>confdefs.h <<_ACEOF
13351 #define HAVE_DECL_ISBLANK $ac_have_decl
13363 if test -n "$FNMATCH_H"; then
13372 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
13376 cat >>confdefs.h <<_ACEOF
13377 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
13381 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
13383 if test "x$ac_cv_have_decl_isblank" = x""yes; then :
13389 cat >>confdefs.h <<_ACEOF
13390 #define HAVE_DECL_ISBLANK $ac_have_decl
13401 if test $gl_cv_func_frexp_no_libm = no; then
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used with libm" >&5
13403 $as_echo_n "checking whether frexp() can be used with libm... " >&6; }
13404 if test "${gl_cv_func_frexp_in_libm+set}" = set; then :
13405 $as_echo_n "(cached) " >&6
13410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13411 /* end confdefs.h. */
13417 int e; return frexp (x, &e) > 0;
13422 if ac_fn_c_try_link "$LINENO"; then :
13423 gl_cv_func_frexp_in_libm=yes
13425 gl_cv_func_frexp_in_libm=no
13427 rm -f core conftest.err conftest.$ac_objext \
13428 conftest$ac_exeext conftest.$ac_ext
13432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_in_libm" >&5
13433 $as_echo "$gl_cv_func_frexp_in_libm" >&6; }
13434 if test $gl_cv_func_frexp_in_libm = yes; then
13438 if test $gl_cv_func_frexp_no_libm = yes \
13439 || test $gl_cv_func_frexp_in_libm = yes; then
13441 LIBS="$LIBS $FREXP_LIBM"
13445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp works" >&5
13446 $as_echo_n "checking whether frexp works... " >&6; }
13447 if test "${gl_cv_func_frexp_works+set}" = set; then :
13448 $as_echo_n "(cached) " >&6
13451 if test "$cross_compiling" = yes; then :
13453 netbsd* | irix* | mingw*) gl_cv_func_frexp_works="guessing no";;
13454 *) gl_cv_func_frexp_works="guessing yes";;
13458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13459 /* end confdefs.h. */
13463 #include <string.h>
13464 #if HAVE_DECL_ALARM
13465 # include <signal.h>
13466 # include <unistd.h>
13468 /* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0.
13469 ICC 10.0 has a bug when optimizing the expression -zero.
13470 The expression -DBL_MIN * DBL_MIN does not work when cross-compiling
13471 to PowerPC on Mac OS X 10.5. */
13472 #if defined __hpux || defined __sgi || defined __ICC
13474 compute_minus_zero (void)
13476 return -DBL_MIN * DBL_MIN;
13478 # define minus_zero compute_minus_zero ()
13480 double minus_zero = -0.0;
13488 #if HAVE_DECL_ALARM
13489 /* NeXTstep 3.3 frexp() runs into an endless loop when called on an infinite
13490 number. Let the test fail in this case. */
13491 signal (SIGALRM, SIG_DFL);
13494 /* Test on denormalized numbers. */
13495 for (i = 1, x = 1.0; i >= DBL_MIN_EXP; i--, x *= 0.5)
13500 double y = frexp (x, &exp);
13501 /* On machines with IEEE754 arithmetic: x = 1.11254e-308, exp = -1022.
13502 On NetBSD: y = 0.75. Correct: y = 0.5. */
13506 /* Test on infinite numbers. */
13510 double y = frexp (x, &exp);
13514 /* Test on negative zero. */
13518 double y = frexp (x, &exp);
13519 if (memcmp (&y, &x, sizeof x))
13525 if ac_fn_c_try_run "$LINENO"; then :
13526 gl_cv_func_frexp_works=yes
13528 gl_cv_func_frexp_works=no
13530 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13531 conftest.$ac_objext conftest.beam conftest.$ac_ext
13536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_works" >&5
13537 $as_echo "$gl_cv_func_frexp_works" >&6; }
13540 case "$gl_cv_func_frexp_works" in
13541 *yes) gl_func_frexp=yes ;;
13542 *) gl_func_frexp=no; REPLACE_FREXP=1; FREXP_LIBM= ;;
13547 if test $gl_func_frexp = yes; then
13549 $as_echo "#define HAVE_FREXP 1" >>confdefs.h
13554 if test $gl_func_frexp != yes; then
13563 gl_LIBOBJS="$gl_LIBOBJS frexp.$ac_objext"
13577 $as_echo "#define GNULIB_TEST_FREXP 1" >>confdefs.h
13587 ac_fn_c_check_decl "$LINENO" "frexpl" "ac_cv_have_decl_frexpl" "#include <math.h>
13589 if test "x$ac_cv_have_decl_frexpl" = x""yes; then :
13597 if test $HAVE_DECL_FREXPL = 1; then
13599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used without linking with libm" >&5
13600 $as_echo_n "checking whether frexpl() can be used without linking with libm... " >&6; }
13601 if test "${gl_cv_func_frexpl_no_libm+set}" = set; then :
13602 $as_echo_n "(cached) " >&6
13605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13606 /* end confdefs.h. */
13612 int e; return frexpl (x, &e) > 0;
13617 if ac_fn_c_try_link "$LINENO"; then :
13618 gl_cv_func_frexpl_no_libm=yes
13620 gl_cv_func_frexpl_no_libm=no
13622 rm -f core conftest.err conftest.$ac_objext \
13623 conftest$ac_exeext conftest.$ac_ext
13626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_no_libm" >&5
13627 $as_echo "$gl_cv_func_frexpl_no_libm" >&6; }
13629 if test $gl_cv_func_frexpl_no_libm = no; then
13630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used with libm" >&5
13631 $as_echo_n "checking whether frexpl() can be used with libm... " >&6; }
13632 if test "${gl_cv_func_frexpl_in_libm+set}" = set; then :
13633 $as_echo_n "(cached) " >&6
13638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13639 /* end confdefs.h. */
13645 int e; return frexpl (x, &e) > 0;
13650 if ac_fn_c_try_link "$LINENO"; then :
13651 gl_cv_func_frexpl_in_libm=yes
13653 gl_cv_func_frexpl_in_libm=no
13655 rm -f core conftest.err conftest.$ac_objext \
13656 conftest$ac_exeext conftest.$ac_ext
13660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_in_libm" >&5
13661 $as_echo "$gl_cv_func_frexpl_in_libm" >&6; }
13662 if test $gl_cv_func_frexpl_in_libm = yes; then
13666 if test $gl_cv_func_frexpl_no_libm = yes \
13667 || test $gl_cv_func_frexpl_in_libm = yes; then
13669 LIBS="$LIBS $FREXPL_LIBM"
13672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl works" >&5
13673 $as_echo_n "checking whether frexpl works... " >&6; }
13674 if test "${gl_cv_func_frexpl_works+set}" = set; then :
13675 $as_echo_n "(cached) " >&6
13678 if test "$cross_compiling" = yes; then :
13681 aix | aix[3-6]* | beos* | darwin* | irix* | mingw* | pw*)
13682 gl_cv_func_frexpl_works="guessing no";;
13683 *) gl_cv_func_frexpl_works="guessing yes";;
13687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13688 /* end confdefs.h. */
13692 /* Override the values of <float.h>, like done in float.in.h. */
13693 #if defined __i386__ && (defined __BEOS__ || defined __OpenBSD__)
13694 # undef LDBL_MIN_EXP
13695 # define LDBL_MIN_EXP (-16381)
13697 #if defined __i386__ && defined __FreeBSD__
13698 # undef LDBL_MIN_EXP
13699 # define LDBL_MIN_EXP (-16381)
13701 #if (defined _ARCH_PPC || defined _POWER) && defined _AIX && (LDBL_MANT_DIG == 106) && defined __GNUC__
13702 # undef LDBL_MIN_EXP
13703 # define LDBL_MIN_EXP DBL_MIN_EXP
13705 #if defined __sgi && (LDBL_MANT_DIG >= 106)
13706 # if defined __GNUC__
13707 # undef LDBL_MIN_EXP
13708 # define LDBL_MIN_EXP DBL_MIN_EXP
13715 long double frexpl (long double, int *);
13719 volatile long double x;
13720 /* Test on finite numbers that fails on AIX 5.1. */
13728 /* Test on finite numbers that fails on Mac OS X 10.4, because its frexpl
13729 function returns an invalid (incorrectly normalized) value: it returns
13730 y = { 0x3fe028f5, 0xc28f5c28, 0x3c9eb851, 0xeb851eb8 }
13731 but the correct result is
13732 0.505L = { 0x3fe028f5, 0xc28f5c29, 0xbc547ae1, 0x47ae1480 } */
13736 long double y = frexpl (x, &exp);
13737 if (!(exp == 1 && y == 0.505L))
13740 /* Test on large finite numbers. This fails on BeOS at i = 16322, while
13741 LDBL_MAX_EXP = 16384.
13742 In the loop end test, we test x against Infinity, rather than comparing
13743 i with LDBL_MAX_EXP, because BeOS <float.h> has a wrong LDBL_MAX_EXP. */
13746 for (i = 1, x = 1.0L; x != x + x; i++, x *= 2.0L)
13757 /* Test on denormalized numbers. */
13760 for (i = 1, x = 1.0L; i >= LDBL_MIN_EXP; i--, x *= 0.5L)
13765 long double y = frexpl (x, &exp);
13766 /* On machines with IEEE854 arithmetic: x = 1.68105e-4932,
13767 exp = -16382, y = 0.5. On Mac OS X 10.5: exp = -16384, y = 0.5. */
13768 if (exp != LDBL_MIN_EXP - 1)
13772 /* Test on infinite numbers. */
13776 long double y = frexpl (x, &exp);
13783 if ac_fn_c_try_run "$LINENO"; then :
13784 gl_cv_func_frexpl_works=yes
13786 gl_cv_func_frexpl_works=no
13788 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13789 conftest.$ac_objext conftest.beam conftest.$ac_ext
13794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_works" >&5
13795 $as_echo "$gl_cv_func_frexpl_works" >&6; }
13798 case "$gl_cv_func_frexpl_works" in
13799 *yes) gl_func_frexpl=yes ;;
13800 *) gl_func_frexpl=no; REPLACE_FREXPL=1 ;;
13805 if test $gl_func_frexpl = yes; then
13807 $as_echo "#define HAVE_FREXPL 1" >>confdefs.h
13811 if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl = no; then
13812 if test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1; then
13814 FREXPL_LIBM="$FREXP_LIBM"
13821 if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl = no; then
13830 gl_LIBOBJS="$gl_LIBOBJS frexpl.$ac_objext"
13844 $as_echo "#define GNULIB_TEST_FREXPL 1" >>confdefs.h
13854 gl_gettimeofday_timezone=void
13855 if test $ac_cv_func_gettimeofday != yes; then
13856 HAVE_GETTIMEOFDAY=0
13861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
13862 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
13863 if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then :
13864 $as_echo_n "(cached) " >&6
13866 if test "$cross_compiling" = yes; then :
13867 # When cross-compiling:
13869 # Guess all is fine on glibc systems.
13870 *-gnu*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
13871 # If we don't know, assume the worst.
13872 *) gl_cv_func_gettimeofday_clobber="guessing yes" ;;
13876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13877 /* end confdefs.h. */
13878 #include <string.h>
13879 #include <sys/time.h>
13881 #include <stdlib.h>
13889 struct tm saved_lt;
13891 lt = localtime (&t);
13893 gettimeofday (&tv, NULL);
13894 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
13900 if ac_fn_c_try_run "$LINENO"; then :
13901 gl_cv_func_gettimeofday_clobber=no
13903 gl_cv_func_gettimeofday_clobber=yes
13905 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13906 conftest.$ac_objext conftest.beam conftest.$ac_ext
13910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
13911 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
13913 case "$gl_cv_func_gettimeofday_clobber" in
13915 REPLACE_GETTIMEOFDAY=1
13918 REPLACE_LOCALTIME=1
13921 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
13926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
13927 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
13928 if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then :
13929 $as_echo_n "(cached) " >&6
13931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13932 /* end confdefs.h. */
13933 #include <sys/time.h>
13935 int gettimeofday (struct timeval *restrict, void *restrict);
13940 /* glibc uses struct timezone * rather than the POSIX void *
13941 if _GNU_SOURCE is defined. However, since the only portable
13942 use of gettimeofday uses NULL as the second parameter, and
13943 since the glibc definition is actually more typesafe, it is
13944 not worth wrapping this to get a compliant signature. */
13945 int (*f) (struct timeval *restrict, void *restrict)
13948 return !(x | c.tv_sec | c.tv_usec);
13954 if ac_fn_c_try_compile "$LINENO"; then :
13955 gl_cv_func_gettimeofday_posix_signature=yes
13957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13958 /* end confdefs.h. */
13959 #include <sys/time.h>
13960 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
13970 if ac_fn_c_try_compile "$LINENO"; then :
13971 gl_cv_func_gettimeofday_posix_signature=almost
13973 gl_cv_func_gettimeofday_posix_signature=no
13975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
13980 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
13981 if test $gl_cv_func_gettimeofday_posix_signature = almost; then
13982 gl_gettimeofday_timezone='struct timezone'
13983 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
13984 REPLACE_GETTIMEOFDAY=1
13986 if test $REPLACE_STRUCT_TIMEVAL = 1; then
13987 REPLACE_GETTIMEOFDAY=1
13992 cat >>confdefs.h <<_ACEOF
13993 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
13997 if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
14006 gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
14009 for ac_header in sys/timeb.h
14011 ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
14012 if test "x$ac_cv_header_sys_timeb_h" = x""yes; then :
14013 cat >>confdefs.h <<_ACEOF
14014 #define HAVE_SYS_TIMEB_H 1
14021 for ac_func in _ftime
14023 ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime"
14024 if test "x$ac_cv_func__ftime" = x""yes; then :
14025 cat >>confdefs.h <<_ACEOF
14026 #define HAVE__FTIME 1
14039 GNULIB_GETTIMEOFDAY=1
14045 $as_echo "#define GNULIB_TEST_GETTIMEOFDAY 1" >>confdefs.h
14058 if test -n "$STDINT_H"; then
14059 PRIPTR_PREFIX='"l"'
14061 for glpfx in '' l ll I64; do
14063 '') gltype1='int';;
14064 l) gltype1='long int';;
14065 ll) gltype1='long long int';;
14066 I64) gltype1='__int64';;
14068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14069 /* end confdefs.h. */
14070 #include <stdint.h>
14071 extern intptr_t foo;
14072 extern $gltype1 foo;
14081 if ac_fn_c_try_compile "$LINENO"; then :
14082 PRIPTR_PREFIX='"'$glpfx'"'
14084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14085 test -n "$PRIPTR_PREFIX" && break
14091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5
14092 $as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
14093 if test "${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+set}" = set; then :
14094 $as_echo_n "(cached) " >&6
14096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14097 /* end confdefs.h. */
14098 /* Work also in C++ mode. */
14099 #define __STDC_LIMIT_MACROS 1
14101 /* Work if build is not clean. */
14102 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
14104 #include <limits.h>
14106 #include <stdint.h>
14109 #if defined INT32_MAX && defined INTMAX_MAX
14110 #define CONDITION (INT32_MAX < INTMAX_MAX)
14111 #elif HAVE_LONG_LONG_INT
14112 #define CONDITION (sizeof (int) < sizeof (long long int))
14114 #define CONDITION 0
14116 int test[CONDITION ? 1 : -1];
14125 if ac_fn_c_try_compile "$LINENO"; then :
14126 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=yes
14128 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=no
14130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
14133 $as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
14134 if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
14135 INT32_MAX_LT_INTMAX_MAX=1;
14137 INT32_MAX_LT_INTMAX_MAX=0;
14141 if test $APPLE_UNIVERSAL_BUILD = 0; then
14143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5
14144 $as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; }
14145 if test "${gl_cv_test_INT64_MAX_EQ_LONG_MAX+set}" = set; then :
14146 $as_echo_n "(cached) " >&6
14148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14149 /* end confdefs.h. */
14150 /* Work also in C++ mode. */
14151 #define __STDC_LIMIT_MACROS 1
14153 /* Work if build is not clean. */
14154 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
14156 #include <limits.h>
14158 #include <stdint.h>
14161 #if defined INT64_MAX
14162 #define CONDITION (INT64_MAX == LONG_MAX)
14163 #elif HAVE_LONG_LONG_INT
14164 #define CONDITION (sizeof (long long int) == sizeof (long int))
14166 #define CONDITION 0
14168 int test[CONDITION ? 1 : -1];
14177 if ac_fn_c_try_compile "$LINENO"; then :
14178 gl_cv_test_INT64_MAX_EQ_LONG_MAX=yes
14180 gl_cv_test_INT64_MAX_EQ_LONG_MAX=no
14182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
14185 $as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
14186 if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
14187 INT64_MAX_EQ_LONG_MAX=1;
14189 INT64_MAX_EQ_LONG_MAX=0;
14194 INT64_MAX_EQ_LONG_MAX=-1
14197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5
14198 $as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
14199 if test "${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+set}" = set; then :
14200 $as_echo_n "(cached) " >&6
14202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14203 /* end confdefs.h. */
14204 /* Work also in C++ mode. */
14205 #define __STDC_LIMIT_MACROS 1
14207 /* Work if build is not clean. */
14208 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
14210 #include <limits.h>
14212 #include <stdint.h>
14215 #if defined UINT32_MAX && defined UINTMAX_MAX
14216 #define CONDITION (UINT32_MAX < UINTMAX_MAX)
14217 #elif HAVE_LONG_LONG_INT
14218 #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
14220 #define CONDITION 0
14222 int test[CONDITION ? 1 : -1];
14231 if ac_fn_c_try_compile "$LINENO"; then :
14232 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=yes
14234 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=no
14236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
14239 $as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
14240 if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
14241 UINT32_MAX_LT_UINTMAX_MAX=1;
14243 UINT32_MAX_LT_UINTMAX_MAX=0;
14247 if test $APPLE_UNIVERSAL_BUILD = 0; then
14249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5
14250 $as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
14251 if test "${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+set}" = set; then :
14252 $as_echo_n "(cached) " >&6
14254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14255 /* end confdefs.h. */
14256 /* Work also in C++ mode. */
14257 #define __STDC_LIMIT_MACROS 1
14259 /* Work if build is not clean. */
14260 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
14262 #include <limits.h>
14264 #include <stdint.h>
14267 #if defined UINT64_MAX
14268 #define CONDITION (UINT64_MAX == ULONG_MAX)
14269 #elif HAVE_LONG_LONG_INT
14270 #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
14272 #define CONDITION 0
14274 int test[CONDITION ? 1 : -1];
14283 if ac_fn_c_try_compile "$LINENO"; then :
14284 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=yes
14286 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=no
14288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
14291 $as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
14292 if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
14293 UINT64_MAX_EQ_ULONG_MAX=1;
14295 UINT64_MAX_EQ_ULONG_MAX=0;
14300 UINT64_MAX_EQ_ULONG_MAX=-1
14307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(double) can be used without linking with libm" >&5
14308 $as_echo_n "checking whether isnan(double) can be used without linking with libm... " >&6; }
14309 if test "${gl_cv_func_isnand_no_libm+set}" = set; then :
14310 $as_echo_n "(cached) " >&6
14313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14314 /* end confdefs.h. */
14318 # define isnand(x) __builtin_isnan ((double)(x))
14321 # define isnand(x) isnan ((double)(x))
14332 if ac_fn_c_try_link "$LINENO"; then :
14333 gl_cv_func_isnand_no_libm=yes
14335 gl_cv_func_isnand_no_libm=no
14337 rm -f core conftest.err conftest.$ac_objext \
14338 conftest$ac_exeext conftest.$ac_ext
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnand_no_libm" >&5
14342 $as_echo "$gl_cv_func_isnand_no_libm" >&6; }
14344 gl_func_isnand_no_libm=$gl_cv_func_isnand_no_libm
14345 if test $gl_cv_func_isnand_no_libm = yes; then
14347 $as_echo "#define HAVE_ISNAND_IN_LIBC 1" >>confdefs.h
14351 if test $gl_func_isnand_no_libm != yes; then
14360 gl_LIBOBJS="$gl_LIBOBJS isnand.$ac_objext"
14368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(long double) can be used without linking with libm" >&5
14369 $as_echo_n "checking whether isnan(long double) can be used without linking with libm... " >&6; }
14370 if test "${gl_cv_func_isnanl_no_libm+set}" = set; then :
14371 $as_echo_n "(cached) " >&6
14374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14375 /* end confdefs.h. */
14379 # define isnanl(x) __builtin_isnanl ((long double)(x))
14380 #elif defined isnan
14382 # define isnanl(x) isnan ((long double)(x))
14393 if ac_fn_c_try_link "$LINENO"; then :
14394 gl_cv_func_isnanl_no_libm=yes
14396 gl_cv_func_isnanl_no_libm=no
14398 rm -f core conftest.err conftest.$ac_objext \
14399 conftest$ac_exeext conftest.$ac_ext
14402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_no_libm" >&5
14403 $as_echo "$gl_cv_func_isnanl_no_libm" >&6; }
14405 gl_func_isnanl_no_libm=$gl_cv_func_isnanl_no_libm
14406 if test $gl_func_isnanl_no_libm = yes; then
14411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnanl works" >&5
14412 $as_echo_n "checking whether isnanl works... " >&6; }
14413 if test "${gl_cv_func_isnanl_works+set}" = set; then :
14414 $as_echo_n "(cached) " >&6
14417 if test "$cross_compiling" = yes; then :
14418 gl_cv_func_isnanl_works="guessing yes"
14420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14421 /* end confdefs.h. */
14424 #include <limits.h>
14428 # define isnanl(x) __builtin_isnanl ((long double)(x))
14429 #elif defined isnan
14431 # define isnanl(x) isnan ((long double)(x))
14434 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
14435 typedef union { unsigned int word[NWORDS]; long double value; }
14436 memory_long_double;
14437 /* On Irix 6.5, gcc 3.4.3 can't compute compile-time NaN, and needs the
14438 runtime type conversion. */
14440 static long double NaNl ()
14443 return zero / zero;
14446 # define NaNl() (0.0L / 0.0L)
14452 if (!isnanl (NaNl ()))
14456 memory_long_double m;
14459 /* The isnanl function should be immune against changes in the sign bit and
14460 in the mantissa bits. The xor operation twiddles a bit that can only be
14461 a sign bit or a mantissa bit (since the exponent never extends to
14464 m.word[NWORDS / 2] ^= (unsigned int) 1 << (sizeof (unsigned int) * CHAR_BIT - 1);
14465 for (i = 0; i < NWORDS; i++)
14467 if (!isnanl (m.value))
14471 #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
14472 /* Representation of an 80-bit 'long double' as an initializer for a sequence
14473 of 'unsigned int' words. */
14474 # ifdef WORDS_BIGENDIAN
14475 # define LDBL80_WORDS(exponent,manthi,mantlo) \
14476 { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
14477 ((unsigned int) (manthi) << 16) | ((unsigned int) (mantlo) >> 16), \
14478 (unsigned int) (mantlo) << 16 \
14481 # define LDBL80_WORDS(exponent,manthi,mantlo) \
14482 { mantlo, manthi, exponent }
14485 static memory_long_double x =
14486 { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) };
14487 if (!isnanl (x.value))
14491 /* Signalling NaN. */
14492 static memory_long_double x =
14493 { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) };
14494 if (!isnanl (x.value))
14497 /* isnanl should return something even for noncanonical values. */
14498 { /* Pseudo-NaN. */
14499 static memory_long_double x =
14500 { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) };
14501 if (isnanl (x.value) && !isnanl (x.value))
14504 { /* Pseudo-Infinity. */
14505 static memory_long_double x =
14506 { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) };
14507 if (isnanl (x.value) && !isnanl (x.value))
14510 { /* Pseudo-Zero. */
14511 static memory_long_double x =
14512 { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) };
14513 if (isnanl (x.value) && !isnanl (x.value))
14516 { /* Unnormalized number. */
14517 static memory_long_double x =
14518 { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) };
14519 if (isnanl (x.value) && !isnanl (x.value))
14522 { /* Pseudo-Denormal. */
14523 static memory_long_double x =
14524 { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) };
14525 if (isnanl (x.value) && !isnanl (x.value))
14533 if ac_fn_c_try_run "$LINENO"; then :
14534 gl_cv_func_isnanl_works=yes
14536 gl_cv_func_isnanl_works=no
14538 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14539 conftest.$ac_objext conftest.beam conftest.$ac_ext
14544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_works" >&5
14545 $as_echo "$gl_cv_func_isnanl_works" >&6; }
14547 case "$gl_cv_func_isnanl_works" in
14549 *) gl_func_isnanl_no_libm=no ;;
14552 if test $gl_func_isnanl_no_libm = yes; then
14554 $as_echo "#define HAVE_ISNANL_IN_LIBC 1" >>confdefs.h
14558 if test $gl_func_isnanl_no_libm != yes; then
14567 gl_LIBOBJS="$gl_LIBOBJS isnanl.$ac_objext"
14572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'long double'" >&5
14573 $as_echo_n "checking where to find the exponent in a 'long double'... " >&6; }
14574 if test "${gl_cv_cc_long_double_expbit0+set}" = set; then :
14575 $as_echo_n "(cached) " >&6
14578 if test "$cross_compiling" = yes; then :
14580 gl_cv_cc_long_double_expbit0="unknown"
14583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14584 /* end confdefs.h. */
14587 #include <stddef.h>
14589 #include <string.h>
14591 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
14592 typedef union { long double value; unsigned int word[NWORDS]; }
14593 memory_long_double;
14594 static unsigned int ored_words[NWORDS];
14595 static unsigned int anded_words[NWORDS];
14596 static void add_to_ored_words (long double x)
14598 memory_long_double m;
14600 /* Clear it first, in case
14601 sizeof (long double) < sizeof (memory_long_double). */
14602 memset (&m, 0, sizeof (memory_long_double));
14604 for (i = 0; i < NWORDS; i++)
14606 ored_words[i] |= m.word[i];
14607 anded_words[i] &= m.word[i];
14613 FILE *fp = fopen ("conftest.out", "w");
14616 for (j = 0; j < NWORDS; j++)
14617 anded_words[j] = ~ (unsigned int) 0;
14618 add_to_ored_words (0.25L);
14619 add_to_ored_words (0.5L);
14620 add_to_ored_words (1.0L);
14621 add_to_ored_words (2.0L);
14622 add_to_ored_words (4.0L);
14623 /* Remove bits that are common (e.g. if representation of the first mantissa
14624 bit is explicit). */
14625 for (j = 0; j < NWORDS; j++)
14626 ored_words[j] &= ~anded_words[j];
14627 /* Now find the nonzero word. */
14628 for (j = 0; j < NWORDS; j++)
14629 if (ored_words[j] != 0)
14634 for (i = j + 1; i < NWORDS; i++)
14635 if (ored_words[i] != 0)
14637 fprintf (fp, "unknown");
14638 return (fclose (fp) != 0);
14641 if ((ored_words[j] >> i) & 1)
14643 fprintf (fp, "word %d bit %d", (int) j, (int) i);
14644 return (fclose (fp) != 0);
14647 fprintf (fp, "unknown");
14648 return (fclose (fp) != 0);
14652 if ac_fn_c_try_run "$LINENO"; then :
14653 gl_cv_cc_long_double_expbit0=`cat conftest.out
`
14655 gl_cv_cc_long_double_expbit0="unknown"
14657 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14658 conftest.$ac_objext conftest.beam conftest.$ac_ext
14664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_long_double_expbit0" >&5
14665 $as_echo "$gl_cv_cc_long_double_expbit0" >&6; }
14666 case "$gl_cv_cc_long_double_expbit0" in
14668 word=`echo "$gl_cv_cc_long_double_expbit0" |
sed -e 's/word //' -e 's/ bit.*//'`
14669 bit=`echo "$gl_cv_cc_long_double_expbit0" |
sed -e 's/word.*bit //'`
14671 cat >>confdefs.h <<_ACEOF
14672 #define LDBL_EXPBIT0_WORD $word
14676 cat >>confdefs.h <<_ACEOF
14677 #define LDBL_EXPBIT0_BIT $bit
14696 LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
14701 if test $ac_cv_func_lstat = yes; then
14703 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
14712 if test $REPLACE_LSTAT = 1; then
14721 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
14736 $as_echo "#define GNULIB_TEST_LSTAT 1" >>confdefs.h
14743 if test $gl_cv_func_malloc_posix = yes; then
14745 $as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
14751 if test $REPLACE_MALLOC = 1; then
14760 gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
14768 GNULIB_MALLOC_POSIX=1
14774 $as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
14793 if test $gl_cv_have_include_next = yes; then
14794 gl_cv_next_math_h='<'math.h'>'
14796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <math.h>" >&5
14797 $as_echo_n "checking absolute name of <math.h>... " >&6; }
14798 if test "${gl_cv_next_math_h+set}" = set; then :
14799 $as_echo_n "(cached) " >&6
14802 if test $ac_cv_header_math_h = yes; then
14807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14808 /* end confdefs.h. */
14812 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14813 *) gl_absname_cpp="$ac_cpp" ;;
14818 gl_dirsep_regex='[/\\]'
14821 gl_dirsep_regex='\/'
14824 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14825 gl_header_literal_regex=`echo 'math.h' \
14826 |
sed -e "$gl_make_literal_regex_sed"`
14827 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14828 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14834 gl_cv_absolute_math_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14835 sed -n "$gl_absolute_header_sed"`
14837 gl_header=$gl_cv_absolute_math_h
14838 gl_cv_next_math_h='"'$gl_header'"'
14840 gl_cv_next_math_h='<'math.h'>'
14845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_math_h" >&5
14846 $as_echo "$gl_cv_next_math_h" >&6; }
14848 NEXT_MATH_H=$gl_cv_next_math_h
14850 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14851 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14852 gl_next_as_first_directive='<'math.h'>'
14854 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14855 gl_next_as_first_directive=$gl_cv_next_math_h
14857 NEXT_AS_FIRST_DIRECTIVE_MATH_H=$gl_next_as_first_directive
14863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NAN macro works" >&5
14864 $as_echo_n "checking whether NAN macro works... " >&6; }
14865 if test "${gl_cv_header_math_nan_works+set}" = set; then :
14866 $as_echo_n "(cached) " >&6
14868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14869 /* end confdefs.h. */
14874 /* Solaris 10 has a broken definition of NAN. Other platforms
14875 fail to provide NAN, or provide it only in C99 mode; this
14876 test only needs to fail when NAN is provided but wrong. */
14886 if ac_fn_c_try_compile "$LINENO"; then :
14887 gl_cv_header_math_nan_works=yes
14889 gl_cv_header_math_nan_works=no
14891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_nan_works" >&5
14894 $as_echo "$gl_cv_header_math_nan_works" >&6; }
14895 if test $gl_cv_header_math_nan_works = no; then
14898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether HUGE_VAL works" >&5
14899 $as_echo_n "checking whether HUGE_VAL works... " >&6; }
14900 if test "${gl_cv_header_math_huge_val_works+set}" = set; then :
14901 $as_echo_n "(cached) " >&6
14903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14904 /* end confdefs.h. */
14909 /* Solaris 10 has a broken definition of HUGE_VAL. */
14910 double d = HUGE_VAL;
14916 if ac_fn_c_try_compile "$LINENO"; then :
14917 gl_cv_header_math_huge_val_works=yes
14919 gl_cv_header_math_huge_val_works=no
14921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_huge_val_works" >&5
14924 $as_echo "$gl_cv_header_math_huge_val_works" >&6; }
14925 if test $gl_cv_header_math_huge_val_works = no; then
14930 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
14931 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
14932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
14933 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
14934 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
14935 $as_echo_n "(cached) " >&6
14937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14938 /* end confdefs.h. */
14949 if ac_fn_c_try_compile "$LINENO"; then :
14950 eval "$as_gl_Symbol=yes"
14952 eval "$as_gl_Symbol=no"
14954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14956 eval ac_res=\$$as_gl_Symbol
14957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14958 $as_echo "$ac_res" >&6; }
14959 eval as_val=\$$as_gl_Symbol
14960 if test "x$as_val" = x""yes; then :
14961 cat >>confdefs.h <<_ACEOF
14962 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
14965 eval ac_cv_have_decl_$gl_func=yes
14980 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
14984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
14985 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
14986 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
14987 $as_echo_n "(cached) " >&6
14991 # Guess no on AIX and OSF/1.
14992 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
14993 # Guess yes otherwise.
14994 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
14996 if test $LOCALE_JA != none; then
14997 if test "$cross_compiling" = yes; then :
15000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15001 /* end confdefs.h. */
15003 #include <locale.h>
15004 #include <string.h>
15005 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15007 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15008 included before <wchar.h>. */
15009 #include <stddef.h>
15015 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
15017 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
15021 memset (&state, '\0', sizeof (mbstate_t));
15022 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
15023 if (mbsinit (&state))
15029 if ac_fn_c_try_run "$LINENO"; then :
15030 gl_cv_func_mbrtowc_incomplete_state=yes
15032 gl_cv_func_mbrtowc_incomplete_state=no
15034 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15035 conftest.$ac_objext conftest.beam conftest.$ac_ext
15041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
15042 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
15047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
15048 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
15049 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
15050 $as_echo_n "(cached) " >&6
15054 # Guess no on Solaris 8.
15055 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
15056 # Guess yes otherwise.
15057 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
15059 if test $LOCALE_ZH_CN != none; then
15060 if test "$cross_compiling" = yes; then :
15063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15064 /* end confdefs.h. */
15066 #include <locale.h>
15067 #include <stdlib.h>
15068 #include <string.h>
15069 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15071 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15072 included before <wchar.h>. */
15073 #include <stddef.h>
15079 /* This fails on Solaris 8:
15080 mbrtowc returns 2, and sets wc to 0x00F0.
15081 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
15082 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
15084 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
15088 memset (&state, '\0', sizeof (mbstate_t));
15089 if (mbrtowc (&wc, input + 3, 6, &state) != 4
15090 && mbtowc (&wc, input + 3, 6) == 4)
15096 if ac_fn_c_try_run "$LINENO"; then :
15097 gl_cv_func_mbrtowc_sanitycheck=yes
15099 gl_cv_func_mbrtowc_sanitycheck=no
15101 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15102 conftest.$ac_objext conftest.beam conftest.$ac_ext
15108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
15109 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
15111 REPLACE_MBSTATE_T=0
15112 case "$gl_cv_func_mbrtowc_incomplete_state" in
15114 *) REPLACE_MBSTATE_T=1 ;;
15116 case "$gl_cv_func_mbrtowc_sanitycheck" in
15118 *) REPLACE_MBSTATE_T=1 ;;
15121 REPLACE_MBSTATE_T=1
15126 if test $ac_cv_func_mbrtowc = no; then
15128 ac_fn_c_check_decl "$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" "
15129 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15131 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15132 included before <wchar.h>. */
15133 #include <stddef.h>
15139 if test "x$ac_cv_have_decl_mbrtowc" = x""yes; then :
15145 cat >>confdefs.h <<_ACEOF
15146 #define HAVE_DECL_MBRTOWC $ac_have_decl
15149 if test $ac_cv_have_decl_mbrtowc = yes; then
15153 if test $REPLACE_MBSTATE_T = 1; then
15159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL pwc argument" >&5
15160 $as_echo_n "checking whether mbrtowc handles a NULL pwc argument... " >&6; }
15161 if test "${gl_cv_func_mbrtowc_null_arg1+set}" = set; then :
15162 $as_echo_n "(cached) " >&6
15166 # Guess no on Solaris.
15167 solaris*) gl_cv_func_mbrtowc_null_arg1="guessing no" ;;
15168 # Guess yes otherwise.
15169 *) gl_cv_func_mbrtowc_null_arg1="guessing yes" ;;
15171 if test $LOCALE_FR_UTF8 != none; then
15172 if test "$cross_compiling" = yes; then :
15175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15176 /* end confdefs.h. */
15178 #include <locale.h>
15179 #include <stdlib.h>
15180 #include <string.h>
15181 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15183 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15184 included before <wchar.h>. */
15185 #include <stddef.h>
15193 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
15195 char input[] = "\303\237er";
15200 memset (&state, '\0', sizeof (mbstate_t));
15201 wc = (wchar_t) 0xBADFACE;
15202 ret = mbrtowc (&wc, input, 5, &state);
15205 if (!mbsinit (&state))
15208 memset (&state, '\0', sizeof (mbstate_t));
15209 ret = mbrtowc (NULL, input, 5, &state);
15210 if (ret != 2) /* Solaris 7 fails here: ret is -1. */
15212 if (!mbsinit (&state))
15218 if ac_fn_c_try_run "$LINENO"; then :
15219 gl_cv_func_mbrtowc_null_arg1=yes
15221 gl_cv_func_mbrtowc_null_arg1=no
15223 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15224 conftest.$ac_objext conftest.beam conftest.$ac_ext
15230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg1" >&5
15231 $as_echo "$gl_cv_func_mbrtowc_null_arg1" >&6; }
15236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
15237 $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
15238 if test "${gl_cv_func_mbrtowc_null_arg2+set}" = set; then :
15239 $as_echo_n "(cached) " >&6
15243 # Guess no on OSF/1.
15244 osf*) gl_cv_func_mbrtowc_null_arg2="guessing no" ;;
15245 # Guess yes otherwise.
15246 *) gl_cv_func_mbrtowc_null_arg2="guessing yes" ;;
15248 if test $LOCALE_FR_UTF8 != none; then
15249 if test "$cross_compiling" = yes; then :
15252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15253 /* end confdefs.h. */
15255 #include <locale.h>
15256 #include <string.h>
15257 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15259 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15260 included before <wchar.h>. */
15261 #include <stddef.h>
15267 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
15273 memset (&state, '\0', sizeof (mbstate_t));
15274 wc = (wchar_t) 0xBADFACE;
15275 mbrtowc (&wc, NULL, 5, &state);
15276 /* Check that wc was not modified. */
15277 if (wc != (wchar_t) 0xBADFACE)
15283 if ac_fn_c_try_run "$LINENO"; then :
15284 gl_cv_func_mbrtowc_null_arg2=yes
15286 gl_cv_func_mbrtowc_null_arg2=no
15288 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15289 conftest.$ac_objext conftest.beam conftest.$ac_ext
15295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg2" >&5
15296 $as_echo "$gl_cv_func_mbrtowc_null_arg2" >&6; }
15303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
15304 $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
15305 if test "${gl_cv_func_mbrtowc_retval+set}" = set; then :
15306 $as_echo_n "(cached) " >&6
15310 # Guess no on HP-UX, Solaris, native Windows.
15311 hpux* | solaris* | mingw*) gl_cv_func_mbrtowc_retval="guessing no" ;;
15312 # Guess yes otherwise.
15313 *) gl_cv_func_mbrtowc_retval="guessing yes" ;;
15315 if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none \
15316 || { case "$host_os" in mingw*) true;; *) false;; esac; }; then
15317 if test "$cross_compiling" = yes; then :
15320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15321 /* end confdefs.h. */
15323 #include <locale.h>
15324 #include <string.h>
15325 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15327 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15328 included before <wchar.h>. */
15329 #include <stddef.h>
15336 int found_some_locale = 0;
15337 /* This fails on Solaris. */
15338 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
15340 char input[] = "B\303\274\303\237er"; /* "Büßer" */
15344 memset (&state, '\0', sizeof (mbstate_t));
15345 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
15348 if (mbrtowc (&wc, input + 2, 5, &state) != 1)
15351 found_some_locale = 1;
15353 /* This fails on HP-UX 11.11. */
15354 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
15356 char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
15360 memset (&state, '\0', sizeof (mbstate_t));
15361 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
15364 if (mbrtowc (&wc, input + 2, 5, &state) != 2)
15367 found_some_locale = 1;
15369 /* This fails on native Windows. */
15370 if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
15372 char input[] = "<\223\372\226\173\214\352>"; /* "<日本語>" */
15376 memset (&state, '\0', sizeof (mbstate_t));
15377 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
15380 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
15383 found_some_locale = 1;
15385 if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
15387 char input[] = "<\244\351\245\273\273\171>"; /* "<日本語>" */
15391 memset (&state, '\0', sizeof (mbstate_t));
15392 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
15395 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
15398 found_some_locale = 1;
15400 if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
15402 char input[] = "<\310\325\261\276\325\132>"; /* "<日本語>" */
15406 memset (&state, '\0', sizeof (mbstate_t));
15407 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
15410 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
15413 found_some_locale = 1;
15415 return (found_some_locale ? result : 77);
15418 if ac_fn_c_try_run "$LINENO"; then :
15419 gl_cv_func_mbrtowc_retval=yes
15421 if test $? != 77; then
15422 gl_cv_func_mbrtowc_retval=no
15426 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15427 conftest.$ac_objext conftest.beam conftest.$ac_ext
15433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
15434 $as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
15439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
15440 $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
15441 if test "${gl_cv_func_mbrtowc_nul_retval+set}" = set; then :
15442 $as_echo_n "(cached) " >&6
15446 # Guess no on Solaris 8 and 9.
15447 solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
15448 # Guess yes otherwise.
15449 *) gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
15451 if test $LOCALE_ZH_CN != none; then
15452 if test "$cross_compiling" = yes; then :
15455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15456 /* end confdefs.h. */
15458 #include <locale.h>
15459 #include <string.h>
15460 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15462 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15463 included before <wchar.h>. */
15464 #include <stddef.h>
15470 /* This fails on Solaris 8 and 9. */
15471 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
15476 memset (&state, '\0', sizeof (mbstate_t));
15477 if (mbrtowc (&wc, "", 1, &state) != 0)
15483 if ac_fn_c_try_run "$LINENO"; then :
15484 gl_cv_func_mbrtowc_nul_retval=yes
15486 gl_cv_func_mbrtowc_nul_retval=no
15488 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15489 conftest.$ac_objext conftest.beam conftest.$ac_ext
15495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
15496 $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
15500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works on empty input" >&5
15501 $as_echo_n "checking whether mbrtowc works on empty input... " >&6; }
15502 if test "${gl_cv_func_mbrtowc_empty_input+set}" = set; then :
15503 $as_echo_n "(cached) " >&6
15507 # Guess no on AIX and glibc systems.
15509 gl_cv_func_mbrtowc_empty_input="guessing no" ;;
15510 *) gl_cv_func_mbrtowc_empty_input="guessing yes" ;;
15512 if test "$cross_compiling" = yes; then :
15515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15516 /* end confdefs.h. */
15520 static mbstate_t mbs;
15524 return mbrtowc (&wc, "", 0, &mbs) != (size_t) -2;
15527 if ac_fn_c_try_run "$LINENO"; then :
15528 gl_cv_func_mbrtowc_empty_input=yes
15530 gl_cv_func_mbrtowc_empty_input=no
15532 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15533 conftest.$ac_objext conftest.beam conftest.$ac_ext
15538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_empty_input" >&5
15539 $as_echo "$gl_cv_func_mbrtowc_empty_input" >&6; }
15542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C locale is free of encoding errors" >&5
15543 $as_echo_n "checking whether the C locale is free of encoding errors... " >&6; }
15544 if test "${gl_cv_C_locale_sans_EILSEQ+set}" = set; then :
15545 $as_echo_n "(cached) " >&6
15548 gl_cv_C_locale_sans_EILSEQ="guessing no"
15550 if test "$cross_compiling" = yes; then :
15553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15554 /* end confdefs.h. */
15555 #include <limits.h>
15556 #include <locale.h>
15564 char *locale = setlocale (LC_ALL, "C");
15567 for (i = CHAR_MIN; i <= CHAR_MAX; i++)
15571 mbstate_t mbs = { 0, };
15572 size_t ss = mbrtowc (&wc, &c, 1, &mbs);
15582 if ac_fn_c_try_run "$LINENO"; then :
15583 gl_cv_C_locale_sans_EILSEQ=yes
15585 gl_cv_C_locale_sans_EILSEQ=no
15587 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15588 conftest.$ac_objext conftest.beam conftest.$ac_ext
15592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_C_locale_sans_EILSEQ" >&5
15593 $as_echo "$gl_cv_C_locale_sans_EILSEQ" >&6; }
15595 case "$gl_cv_func_mbrtowc_null_arg1" in
15598 $as_echo "#define MBRTOWC_NULL_ARG1_BUG 1" >>confdefs.h
15603 case "$gl_cv_func_mbrtowc_null_arg2" in
15606 $as_echo "#define MBRTOWC_NULL_ARG2_BUG 1" >>confdefs.h
15611 case "$gl_cv_func_mbrtowc_retval" in
15614 $as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
15619 case "$gl_cv_func_mbrtowc_nul_retval" in
15622 $as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
15627 case "$gl_cv_func_mbrtowc_empty_input" in
15630 $as_echo "#define MBRTOWC_EMPTY_INPUT_BUG 1" >>confdefs.h
15635 case $gl_cv_C_locale_sans_EILSEQ in
15638 $as_echo "#define C_LOCALE_MAYBE_EILSEQ 1" >>confdefs.h
15646 if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
15655 gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext"
15672 $as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
15687 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
15691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
15692 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
15693 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
15694 $as_echo_n "(cached) " >&6
15698 # Guess no on AIX and OSF/1.
15699 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
15700 # Guess yes otherwise.
15701 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
15703 if test $LOCALE_JA != none; then
15704 if test "$cross_compiling" = yes; then :
15707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15708 /* end confdefs.h. */
15710 #include <locale.h>
15711 #include <string.h>
15712 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15714 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15715 included before <wchar.h>. */
15716 #include <stddef.h>
15722 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
15724 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
15728 memset (&state, '\0', sizeof (mbstate_t));
15729 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
15730 if (mbsinit (&state))
15736 if ac_fn_c_try_run "$LINENO"; then :
15737 gl_cv_func_mbrtowc_incomplete_state=yes
15739 gl_cv_func_mbrtowc_incomplete_state=no
15741 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15742 conftest.$ac_objext conftest.beam conftest.$ac_ext
15748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
15749 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
15754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
15755 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
15756 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
15757 $as_echo_n "(cached) " >&6
15761 # Guess no on Solaris 8.
15762 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
15763 # Guess yes otherwise.
15764 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
15766 if test $LOCALE_ZH_CN != none; then
15767 if test "$cross_compiling" = yes; then :
15770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15771 /* end confdefs.h. */
15773 #include <locale.h>
15774 #include <stdlib.h>
15775 #include <string.h>
15776 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15778 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15779 included before <wchar.h>. */
15780 #include <stddef.h>
15786 /* This fails on Solaris 8:
15787 mbrtowc returns 2, and sets wc to 0x00F0.
15788 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
15789 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
15791 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
15795 memset (&state, '\0', sizeof (mbstate_t));
15796 if (mbrtowc (&wc, input + 3, 6, &state) != 4
15797 && mbtowc (&wc, input + 3, 6) == 4)
15803 if ac_fn_c_try_run "$LINENO"; then :
15804 gl_cv_func_mbrtowc_sanitycheck=yes
15806 gl_cv_func_mbrtowc_sanitycheck=no
15808 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15809 conftest.$ac_objext conftest.beam conftest.$ac_ext
15815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
15816 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
15818 REPLACE_MBSTATE_T=0
15819 case "$gl_cv_func_mbrtowc_incomplete_state" in
15821 *) REPLACE_MBSTATE_T=1 ;;
15823 case "$gl_cv_func_mbrtowc_sanitycheck" in
15825 *) REPLACE_MBSTATE_T=1 ;;
15828 REPLACE_MBSTATE_T=1
15833 if test $ac_cv_func_mbsinit = no; then
15835 ac_fn_c_check_decl "$LINENO" "mbsinit" "ac_cv_have_decl_mbsinit" "
15836 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15838 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15839 included before <wchar.h>. */
15840 #include <stddef.h>
15846 if test "x$ac_cv_have_decl_mbsinit" = x""yes; then :
15852 cat >>confdefs.h <<_ACEOF
15853 #define HAVE_DECL_MBSINIT $ac_have_decl
15856 if test $ac_cv_have_decl_mbsinit = yes; then
15860 if test $REPLACE_MBSTATE_T = 1; then
15864 mingw*) REPLACE_MBSINIT=1 ;;
15869 if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
15878 gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext"
15895 $as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
15909 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
15913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
15914 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
15915 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
15916 $as_echo_n "(cached) " >&6
15920 # Guess no on AIX and OSF/1.
15921 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
15922 # Guess yes otherwise.
15923 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
15925 if test $LOCALE_JA != none; then
15926 if test "$cross_compiling" = yes; then :
15929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15930 /* end confdefs.h. */
15932 #include <locale.h>
15933 #include <string.h>
15934 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15936 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15937 included before <wchar.h>. */
15938 #include <stddef.h>
15944 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
15946 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
15950 memset (&state, '\0', sizeof (mbstate_t));
15951 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
15952 if (mbsinit (&state))
15958 if ac_fn_c_try_run "$LINENO"; then :
15959 gl_cv_func_mbrtowc_incomplete_state=yes
15961 gl_cv_func_mbrtowc_incomplete_state=no
15963 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15964 conftest.$ac_objext conftest.beam conftest.$ac_ext
15970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
15971 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
15976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
15977 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
15978 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
15979 $as_echo_n "(cached) " >&6
15983 # Guess no on Solaris 8.
15984 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
15985 # Guess yes otherwise.
15986 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
15988 if test $LOCALE_ZH_CN != none; then
15989 if test "$cross_compiling" = yes; then :
15992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15993 /* end confdefs.h. */
15995 #include <locale.h>
15996 #include <stdlib.h>
15997 #include <string.h>
15998 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
16000 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16001 included before <wchar.h>. */
16002 #include <stddef.h>
16008 /* This fails on Solaris 8:
16009 mbrtowc returns 2, and sets wc to 0x00F0.
16010 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
16011 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
16013 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
16017 memset (&state, '\0', sizeof (mbstate_t));
16018 if (mbrtowc (&wc, input + 3, 6, &state) != 4
16019 && mbtowc (&wc, input + 3, 6) == 4)
16025 if ac_fn_c_try_run "$LINENO"; then :
16026 gl_cv_func_mbrtowc_sanitycheck=yes
16028 gl_cv_func_mbrtowc_sanitycheck=no
16030 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16031 conftest.$ac_objext conftest.beam conftest.$ac_ext
16037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
16038 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
16040 REPLACE_MBSTATE_T=0
16041 case "$gl_cv_func_mbrtowc_incomplete_state" in
16043 *) REPLACE_MBSTATE_T=1 ;;
16045 case "$gl_cv_func_mbrtowc_sanitycheck" in
16047 *) REPLACE_MBSTATE_T=1 ;;
16050 REPLACE_MBSTATE_T=1
16055 if test $ac_cv_func_mbsrtowcs = no; then
16057 ac_fn_c_check_decl "$LINENO" "mbsrtowcs" "ac_cv_have_decl_mbsrtowcs" "
16058 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
16060 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16061 included before <wchar.h>. */
16062 #include <stddef.h>
16068 if test "x$ac_cv_have_decl_mbsrtowcs" = x""yes; then :
16074 cat >>confdefs.h <<_ACEOF
16075 #define HAVE_DECL_MBSRTOWCS $ac_have_decl
16078 if test $ac_cv_have_decl_mbsrtowcs = yes; then
16079 REPLACE_MBSRTOWCS=1
16082 if test $REPLACE_MBSTATE_T = 1; then
16083 REPLACE_MBSRTOWCS=1
16091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbsrtowcs works" >&5
16092 $as_echo_n "checking whether mbsrtowcs works... " >&6; }
16093 if test "${gl_cv_func_mbsrtowcs_works+set}" = set; then :
16094 $as_echo_n "(cached) " >&6
16098 # Guess no on HP-UX, Solaris, mingw.
16099 hpux* | solaris* | mingw*) gl_cv_func_mbsrtowcs_works="guessing no" ;;
16100 # Guess yes otherwise.
16101 *) gl_cv_func_mbsrtowcs_works="guessing yes" ;;
16103 if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
16104 if test "$cross_compiling" = yes; then :
16107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16108 /* end confdefs.h. */
16110 #include <locale.h>
16111 #include <string.h>
16112 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
16114 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16115 included before <wchar.h>. */
16116 #include <stddef.h>
16123 /* Test whether the function supports a NULL destination argument.
16124 This fails on native Windows. */
16125 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
16127 const char input[] = "\337er";
16128 const char *src = input;
16131 memset (&state, '\0', sizeof (mbstate_t));
16132 if (mbsrtowcs (NULL, &src, 1, &state) != 3
16136 /* Test whether the function works when started with a conversion state
16137 in non-initial state. This fails on HP-UX 11.11 and Solaris 10. */
16138 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
16140 const char input[] = "B\303\274\303\237er";
16143 memset (&state, '\0', sizeof (mbstate_t));
16144 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
16145 if (!mbsinit (&state))
16147 const char *src = input + 2;
16148 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
16152 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
16154 const char input[] = "<\306\374\313\334\270\354>";
16157 memset (&state, '\0', sizeof (mbstate_t));
16158 if (mbrtowc (NULL, input + 3, 1, &state) == (size_t)(-2))
16159 if (!mbsinit (&state))
16161 const char *src = input + 4;
16162 if (mbsrtowcs (NULL, &src, 10, &state) != 3)
16166 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
16168 const char input[] = "B\250\271\201\060\211\070er";
16171 memset (&state, '\0', sizeof (mbstate_t));
16172 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
16173 if (!mbsinit (&state))
16175 const char *src = input + 2;
16176 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
16183 if ac_fn_c_try_run "$LINENO"; then :
16184 gl_cv_func_mbsrtowcs_works=yes
16186 gl_cv_func_mbsrtowcs_works=no
16188 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16189 conftest.$ac_objext conftest.beam conftest.$ac_ext
16195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbsrtowcs_works" >&5
16196 $as_echo "$gl_cv_func_mbsrtowcs_works" >&6; }
16198 case "$gl_cv_func_mbsrtowcs_works" in
16200 *) REPLACE_MBSRTOWCS=1 ;;
16205 if test $HAVE_MBSRTOWCS = 0 || test $REPLACE_MBSRTOWCS = 1; then
16214 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs.$ac_objext"
16224 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs-state.$ac_objext"
16241 $as_echo "#define GNULIB_TEST_MBSRTOWCS 1" >>confdefs.h
16246 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
16255 gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
16258 for ac_header in bp-sym.h
16260 ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
16261 if test "x$ac_cv_header_bp_sym_h" = x""yes; then :
16262 cat >>confdefs.h <<_ACEOF
16263 #define HAVE_BP_SYM_H 1
16283 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
16289 if test $HAVE_DECL_MEMMEM = 1 && test $REPLACE_MEMMEM = 0; then
16290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
16291 $as_echo_n "checking whether memmem works in linear time... " >&6; }
16292 if test "${gl_cv_func_memmem_works_fast+set}" = set; then :
16293 $as_echo_n "(cached) " >&6
16295 if test "$cross_compiling" = yes; then :
16296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16297 /* end confdefs.h. */
16299 #include <features.h>
16300 #ifdef __GNU_LIBRARY__
16301 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)) \
16302 && !defined __UCLIBC__
16307 #include <cygwin/version.h>
16308 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 0)
16314 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16315 $EGREP "Lucky user" >/dev/null 2>&1; then :
16316 gl_cv_func_memmem_works_fast="guessing yes"
16318 gl_cv_func_memmem_works_fast="guessing no"
16324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16325 /* end confdefs.h. */
16327 #include <signal.h> /* for signal */
16328 #include <string.h> /* for memmem */
16329 #include <stdlib.h> /* for malloc */
16330 #include <unistd.h> /* for alarm */
16331 static void quit (int sig) { _exit (sig + 128); }
16338 size_t m = 1000000;
16339 char *haystack = (char *) malloc (2 * m + 1);
16340 char *needle = (char *) malloc (m + 1);
16341 /* Failure to compile this test due to missing alarm is okay,
16342 since all such platforms (mingw) also lack memmem. */
16343 signal (SIGALRM, quit);
16345 /* Check for quadratic performance. */
16346 if (haystack && needle)
16348 memset (haystack, 'A', 2 * m);
16349 haystack[2 * m] = 'B';
16350 memset (needle, 'A', m);
16352 if (!memmem (haystack, 2 * m + 1, needle, m + 1))
16361 if ac_fn_c_try_run "$LINENO"; then :
16362 gl_cv_func_memmem_works_fast=yes
16364 gl_cv_func_memmem_works_fast=no
16366 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16367 conftest.$ac_objext conftest.beam conftest.$ac_ext
16372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_fast" >&5
16373 $as_echo "$gl_cv_func_memmem_works_fast" >&6; }
16374 case "$gl_cv_func_memmem_works_fast" in
16382 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
16391 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
16398 for ac_func in memmem
16400 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
16401 if test "x$ac_cv_func_memmem" = x""yes; then :
16402 cat >>confdefs.h <<_ACEOF
16403 #define HAVE_MEMMEM 1
16409 if test $ac_cv_func_memmem = yes; then
16415 if test $ac_cv_have_decl_memmem = no; then
16418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
16419 $as_echo_n "checking whether memmem works... " >&6; }
16420 if test "${gl_cv_func_memmem_works_always+set}" = set; then :
16421 $as_echo_n "(cached) " >&6
16423 if test "$cross_compiling" = yes; then :
16424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16425 /* end confdefs.h. */
16427 #ifdef __GNU_LIBRARY__
16428 #include <features.h>
16429 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
16430 || __GLIBC_MINOR__ > 12)) \
16431 || (__GLIBC__ > 2)) \
16432 || defined __UCLIBC__
16435 #elif defined __CYGWIN__
16436 #include <cygwin/version.h>
16437 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
16445 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16446 $EGREP "Lucky user" >/dev/null 2>&1; then :
16447 gl_cv_func_memmem_works_always="guessing yes"
16449 gl_cv_func_memmem_works_always="guessing no"
16455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16456 /* end confdefs.h. */
16458 #include <string.h> /* for memmem */
16459 #define P "_EF_BF_BD"
16460 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
16461 #define NEEDLE P P P P P
16468 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
16470 /* Check for empty needle behavior. */
16472 const char *haystack = "AAA";
16473 if (memmem (haystack, 3, NULL, 0) != haystack)
16482 if ac_fn_c_try_run "$LINENO"; then :
16483 gl_cv_func_memmem_works_always=yes
16485 gl_cv_func_memmem_works_always=no
16487 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16488 conftest.$ac_objext conftest.beam conftest.$ac_ext
16493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
16494 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
16495 case "$gl_cv_func_memmem_works_always" in
16504 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
16513 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
16527 $as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
16539 for ac_func in rawmemchr
16541 ac_fn_c_check_func "$LINENO" "rawmemchr" "ac_cv_func_rawmemchr"
16542 if test "x$ac_cv_func_rawmemchr" = x""yes; then :
16543 cat >>confdefs.h <<_ACEOF
16544 #define HAVE_RAWMEMCHR 1
16550 if test $ac_cv_func_rawmemchr = no; then
16554 if test $HAVE_RAWMEMCHR = 0; then
16563 gl_LIBOBJS="$gl_LIBOBJS rawmemchr.$ac_objext"
16578 $as_echo "#define GNULIB_TEST_RAWMEMCHR 1" >>confdefs.h
16585 if test $ac_cv_func_readlink = no; then
16588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
16589 $as_echo_n "checking whether readlink signature is correct... " >&6; }
16590 if test "${gl_cv_decl_readlink_works+set}" = set; then :
16591 $as_echo_n "(cached) " >&6
16593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16594 /* end confdefs.h. */
16595 #include <unistd.h>
16596 /* Cause compilation failure if original declaration has wrong type. */
16597 ssize_t readlink (const char *, char *, size_t);
16606 if ac_fn_c_try_compile "$LINENO"; then :
16607 gl_cv_decl_readlink_works=yes
16609 gl_cv_decl_readlink_works=no
16611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
16614 $as_echo "$gl_cv_decl_readlink_works" >&6; }
16615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
16616 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
16617 if test "${gl_cv_func_readlink_works+set}" = set; then :
16618 $as_echo_n "(cached) " >&6
16620 # We have readlink, so assume ln -s works.
16621 ln -s conftest.no-such conftest.link
16622 ln -s conftest.link conftest.lnk2
16623 if test "$cross_compiling" = yes; then :
16625 # Guess yes on glibc systems.
16626 *-gnu*) gl_cv_func_readlink_works="guessing yes" ;;
16627 # If we don't know, assume the worst.
16628 *) gl_cv_func_readlink_works="guessing no" ;;
16632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16633 /* end confdefs.h. */
16634 #include <unistd.h>
16640 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
16645 if ac_fn_c_try_run "$LINENO"; then :
16646 gl_cv_func_readlink_works=yes
16648 gl_cv_func_readlink_works=no
16650 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16651 conftest.$ac_objext conftest.beam conftest.$ac_ext
16654 rm -f conftest.link conftest.lnk2
16656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
16657 $as_echo "$gl_cv_func_readlink_works" >&6; }
16658 case "$gl_cv_func_readlink_works" in
16660 if test "$gl_cv_decl_readlink_works" != yes; then
16666 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
16673 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
16682 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
16699 $as_echo "#define GNULIB_TEST_READLINK 1" >>confdefs.h
16708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename honors trailing slash on destination" >&5
16709 $as_echo_n "checking whether rename honors trailing slash on destination... " >&6; }
16710 if test "${gl_cv_func_rename_slash_dst_works+set}" = set; then :
16711 $as_echo_n "(cached) " >&6
16713 rm -rf conftest.f conftest.f1 conftest.f2 conftest.d1 conftest.d2 conftest.lnk
16714 touch conftest.f && touch conftest.f1 && mkdir conftest.d1 ||
16715 as_fn_error "cannot create temporary files" "$LINENO" 5
16716 # Assume that if we have lstat, we can also check symlinks.
16717 if test $ac_cv_func_lstat = yes; then
16718 ln -s conftest.f conftest.lnk
16720 if test "$cross_compiling" = yes; then :
16722 # Guess yes on glibc systems.
16723 *-gnu*) gl_cv_func_rename_slash_dst_works="guessing yes" ;;
16724 # If we don't know, assume the worst.
16725 *) gl_cv_func_rename_slash_dst_works="guessing no" ;;
16729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16730 /* end confdefs.h. */
16732 # include <stdio.h>
16733 # include <stdlib.h>
16739 if (rename ("conftest.f1", "conftest.f2/") == 0)
16741 if (rename ("conftest.d1", "conftest.d2/") != 0)
16744 if (rename ("conftest.f", "conftest.lnk/") == 0)
16753 if ac_fn_c_try_run "$LINENO"; then :
16754 gl_cv_func_rename_slash_dst_works=yes
16756 gl_cv_func_rename_slash_dst_works=no
16758 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16759 conftest.$ac_objext conftest.beam conftest.$ac_ext
16762 rm -rf conftest.f conftest.f1 conftest.f2 conftest.d1 conftest.d2 conftest.lnk
16765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_slash_dst_works" >&5
16766 $as_echo "$gl_cv_func_rename_slash_dst_works" >&6; }
16767 case "$gl_cv_func_rename_slash_dst_works" in
16772 $as_echo "#define RENAME_TRAILING_SLASH_DEST_BUG 1" >>confdefs.h
16777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename honors trailing slash on source" >&5
16778 $as_echo_n "checking whether rename honors trailing slash on source... " >&6; }
16779 if test "${gl_cv_func_rename_slash_src_works+set}" = set; then :
16780 $as_echo_n "(cached) " >&6
16782 rm -rf conftest.f conftest.f1 conftest.d1 conftest.d2 conftest.d3 conftest.lnk
16783 touch conftest.f && touch conftest.f1 && mkdir conftest.d1 ||
16784 as_fn_error "cannot create temporary files" "$LINENO" 5
16785 # Assume that if we have lstat, we can also check symlinks.
16786 if test $ac_cv_func_lstat = yes; then
16787 ln -s conftest.f conftest.lnk
16789 if test "$cross_compiling" = yes; then :
16791 # Guess yes on glibc systems.
16792 *-gnu*) gl_cv_func_rename_slash_src_works="guessing yes" ;;
16793 # If we don't know, assume the worst.
16794 *) gl_cv_func_rename_slash_src_works="guessing no" ;;
16798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16799 /* end confdefs.h. */
16801 # include <stdio.h>
16802 # include <stdlib.h>
16808 if (rename ("conftest.f1/", "conftest.d3") == 0)
16810 if (rename ("conftest.d1/", "conftest.d2") != 0)
16813 if (rename ("conftest.lnk/", "conftest.f") == 0)
16822 if ac_fn_c_try_run "$LINENO"; then :
16823 gl_cv_func_rename_slash_src_works=yes
16825 gl_cv_func_rename_slash_src_works=no
16827 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16828 conftest.$ac_objext conftest.beam conftest.$ac_ext
16831 rm -rf conftest.f conftest.f1 conftest.d1 conftest.d2 conftest.d3 conftest.lnk
16834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_slash_src_works" >&5
16835 $as_echo "$gl_cv_func_rename_slash_src_works" >&6; }
16836 case "$gl_cv_func_rename_slash_src_works" in
16841 $as_echo "#define RENAME_TRAILING_SLASH_SOURCE_BUG 1" >>confdefs.h
16847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename manages hard links correctly" >&5
16848 $as_echo_n "checking whether rename manages hard links correctly... " >&6; }
16849 if test "${gl_cv_func_rename_link_works+set}" = set; then :
16850 $as_echo_n "(cached) " >&6
16852 if test $ac_cv_func_link = yes; then
16853 rm -rf conftest.f conftest.f1
16854 if touch conftest.f && ln conftest.f conftest.f1 &&
16855 set x `ls -i conftest.f conftest.f1
` && test "" = ""; then
16856 if test "$cross_compiling" = yes; then :
16858 # Guess yes on glibc systems.
16859 *-gnu*) gl_cv_func_rename_link_works="guessing yes" ;;
16860 # If we don't know, assume the worst.
16861 *) gl_cv_func_rename_link_works="guessing no" ;;
16865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16866 /* end confdefs.h. */
16868 # include <stdio.h>
16869 # include <stdlib.h>
16870 # include <unistd.h>
16876 if (rename ("conftest.f", "conftest.f1"))
16878 if (unlink ("conftest.f1"))
16880 if (rename ("conftest.f", "conftest.f"))
16882 if (rename ("conftest.f1", "conftest.f1") == 0)
16890 if ac_fn_c_try_run "$LINENO"; then :
16891 gl_cv_func_rename_link_works=yes
16893 gl_cv_func_rename_link_works=no
16895 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16896 conftest.$ac_objext conftest.beam conftest.$ac_ext
16900 gl_cv_func_rename_link_works="guessing no"
16902 rm -rf conftest.f conftest.f1
16904 gl_cv_func_rename_link_works=yes
16908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_link_works" >&5
16909 $as_echo "$gl_cv_func_rename_link_works" >&6; }
16910 case "$gl_cv_func_rename_link_works" in
16915 $as_echo "#define RENAME_HARD_LINK_BUG 1" >>confdefs.h
16920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename manages existing destinations correctly" >&5
16921 $as_echo_n "checking whether rename manages existing destinations correctly... " >&6; }
16922 if test "${gl_cv_func_rename_dest_works+set}" = set; then :
16923 $as_echo_n "(cached) " >&6
16925 rm -rf conftest.f conftest.d1 conftest.d2
16926 touch conftest.f && mkdir conftest.d1 conftest.d2 ||
16927 as_fn_error "cannot create temporary files" "$LINENO" 5
16928 if test "$cross_compiling" = yes; then :
16930 # Guess yes on glibc systems.
16931 *-gnu*) gl_cv_func_rename_dest_works="guessing yes" ;;
16932 # If we don't know, assume the worst.
16933 *) gl_cv_func_rename_dest_works="guessing no" ;;
16937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16938 /* end confdefs.h. */
16940 # include <stdio.h>
16941 # include <stdlib.h>
16947 if (rename ("conftest.d1", "conftest.d2") != 0)
16949 if (rename ("conftest.d2", "conftest.f") == 0)
16957 if ac_fn_c_try_run "$LINENO"; then :
16958 gl_cv_func_rename_dest_works=yes
16960 gl_cv_func_rename_dest_works=no
16962 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16963 conftest.$ac_objext conftest.beam conftest.$ac_ext
16966 rm -rf conftest.f conftest.d1 conftest.d2
16969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_dest_works" >&5
16970 $as_echo "$gl_cv_func_rename_dest_works" >&6; }
16971 case "$gl_cv_func_rename_dest_works" in
16976 $as_echo "#define RENAME_DEST_EXISTS_BUG 1" >>confdefs.h
16981 if test $REPLACE_RENAME = 1; then
16990 gl_LIBOBJS="$gl_LIBOBJS rename.$ac_objext"
17004 $as_echo "#define GNULIB_TEST_RENAME 1" >>confdefs.h
17011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rmdir works" >&5
17012 $as_echo_n "checking whether rmdir works... " >&6; }
17013 if test "${gl_cv_func_rmdir_works+set}" = set; then :
17014 $as_echo_n "(cached) " >&6
17017 touch conftest.file
17018 if test "$cross_compiling" = yes; then :
17020 # Guess yes on glibc systems.
17021 *-gnu*) gl_cv_func_rmdir_works="guessing yes" ;;
17022 # If we don't know, assume the worst.
17023 *) gl_cv_func_rmdir_works="guessing no" ;;
17027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17028 /* end confdefs.h. */
17032 # include <unistd.h>
17033 #else /* on Windows with MSVC */
17034 # include <direct.h>
17041 if (!rmdir ("conftest.file/"))
17043 else if (errno != ENOTDIR)
17045 if (!rmdir ("conftest.dir/./"))
17053 if ac_fn_c_try_run "$LINENO"; then :
17054 gl_cv_func_rmdir_works=yes
17056 gl_cv_func_rmdir_works=no
17058 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17059 conftest.$ac_objext conftest.beam conftest.$ac_ext
17062 rm -rf conftest.dir conftest.file
17064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rmdir_works" >&5
17065 $as_echo "$gl_cv_func_rmdir_works" >&6; }
17066 case "$gl_cv_func_rmdir_works" in
17073 if test $REPLACE_RMDIR = 1; then
17082 gl_LIBOBJS="$gl_LIBOBJS rmdir.$ac_objext"
17096 $as_echo "#define GNULIB_TEST_RMDIR 1" >>confdefs.h
17111 if test $gl_cv_have_include_next = yes; then
17112 gl_cv_next_signal_h='<'signal.h'>'
17114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
17115 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
17116 if test "${gl_cv_next_signal_h+set}" = set; then :
17117 $as_echo_n "(cached) " >&6
17122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17123 /* end confdefs.h. */
17124 #include <signal.h>
17127 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17128 *) gl_absname_cpp="$ac_cpp" ;;
17133 gl_dirsep_regex='[/\\]'
17136 gl_dirsep_regex='\/'
17139 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17140 gl_header_literal_regex=`echo 'signal.h' \
17141 |
sed -e "$gl_make_literal_regex_sed"`
17142 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17143 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17149 gl_cv_absolute_signal_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17150 sed -n "$gl_absolute_header_sed"`
17152 gl_header=$gl_cv_absolute_signal_h
17153 gl_cv_next_signal_h='"'$gl_header'"'
17157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
17158 $as_echo "$gl_cv_next_signal_h" >&6; }
17160 NEXT_SIGNAL_H=$gl_cv_next_signal_h
17162 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17163 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17164 gl_next_as_first_directive='<'signal.h'>'
17166 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17167 gl_next_as_first_directive=$gl_cv_next_signal_h
17169 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
17175 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
17176 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
17177 ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
17178 #include <signal.h>
17181 if test "x$ac_cv_type_volatile_sig_atomic_t" = x""yes; then :
17184 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
17193 ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
17194 #include <signal.h>
17197 if test "x$ac_cv_type_sighandler_t" = x""yes; then :
17200 HAVE_SIGHANDLER_T=0
17205 for gl_func in pthread_sigmask sigaction sigaddset sigdelset sigemptyset sigfillset sigismember sigpending sigprocmask; do
17206 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
17207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
17208 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
17209 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
17210 $as_echo_n "(cached) " >&6
17212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17213 /* end confdefs.h. */
17214 #include <signal.h>
17225 if ac_fn_c_try_compile "$LINENO"; then :
17226 eval "$as_gl_Symbol=yes"
17228 eval "$as_gl_Symbol=no"
17230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17232 eval ac_res=\$$as_gl_Symbol
17233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17234 $as_echo "$ac_res" >&6; }
17235 eval as_val=\$$as_gl_Symbol
17236 if test "x$as_val" = x""yes; then :
17237 cat >>confdefs.h <<_ACEOF
17238 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
17241 eval ac_cv_have_decl_$gl_func=yes
17247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
17248 $as_echo_n "checking for ssize_t... " >&6; }
17249 if test "${gt_cv_ssize_t+set}" = set; then :
17250 $as_echo_n "(cached) " >&6
17252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17253 /* end confdefs.h. */
17254 #include <sys/types.h>
17258 int x = sizeof (ssize_t *) + sizeof (ssize_t);
17264 if ac_fn_c_try_compile "$LINENO"; then :
17269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
17272 $as_echo "$gt_cv_ssize_t" >&6; }
17273 if test $gt_cv_ssize_t = no; then
17275 $as_echo "#define ssize_t int" >>confdefs.h
17282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
17283 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
17284 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
17285 $as_echo_n "(cached) " >&6
17287 if test "$cross_compiling" = yes; then :
17289 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
17290 *) gl_cv_func_stat_dir_slash="guessing yes";;
17293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17294 /* end confdefs.h. */
17295 #include <sys/stat.h>
17300 struct stat st; return stat (".", &st) != stat ("./", &st);
17305 if ac_fn_c_try_run "$LINENO"; then :
17306 gl_cv_func_stat_dir_slash=yes
17308 gl_cv_func_stat_dir_slash=no
17310 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17311 conftest.$ac_objext conftest.beam conftest.$ac_ext
17315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
17316 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
17317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
17318 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
17319 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
17320 $as_echo_n "(cached) " >&6
17323 # Assume that if we have lstat, we can also check symlinks.
17324 if test $ac_cv_func_lstat = yes; then
17325 ln -s conftest.tmp conftest.lnk
17327 if test "$cross_compiling" = yes; then :
17329 # Guess yes on glibc systems.
17330 *-gnu*) gl_cv_func_stat_file_slash="guessing yes" ;;
17331 # If we don't know, assume the worst.
17332 *) gl_cv_func_stat_file_slash="guessing no" ;;
17336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17337 /* end confdefs.h. */
17338 #include <sys/stat.h>
17345 if (!stat ("conftest.tmp/", &st))
17348 if (!stat ("conftest.lnk/", &st))
17357 if ac_fn_c_try_run "$LINENO"; then :
17358 gl_cv_func_stat_file_slash=yes
17360 gl_cv_func_stat_file_slash=no
17362 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17363 conftest.$ac_objext conftest.beam conftest.$ac_ext
17366 rm -f conftest.tmp conftest.lnk
17368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
17369 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
17370 case $gl_cv_func_stat_dir_slash in
17371 *no) REPLACE_STAT=1
17373 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
17376 case $gl_cv_func_stat_file_slash in
17377 *no) REPLACE_STAT=1
17379 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
17383 if test $REPLACE_STAT = 1; then
17392 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
17407 $as_echo "#define GNULIB_TEST_STAT 1" >>confdefs.h
17414 # Define two additional variables used in the Makefile substitution.
17416 if test "$ac_cv_header_stdbool_h" = yes; then
17419 STDBOOL_H='stdbool.h'
17422 if test -n "$STDBOOL_H"; then
17423 GL_GENERATE_STDBOOL_H_TRUE=
17424 GL_GENERATE_STDBOOL_H_FALSE='#'
17426 GL_GENERATE_STDBOOL_H_TRUE='#'
17427 GL_GENERATE_STDBOOL_H_FALSE=
17431 if test "$ac_cv_type__Bool" = yes; then
17442 ac_fn_c_check_type "$LINENO" "max_align_t" "ac_cv_type_max_align_t" "#include <stddef.h>
17445 if test "x$ac_cv_type_max_align_t" = x""yes; then :
17448 HAVE_MAX_ALIGN_T=0; STDDEF_H=stddef.h
17451 if test $gt_cv_c_wchar_t = no; then
17455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
17456 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
17457 if test "${gl_cv_decl_null_works+set}" = set; then :
17458 $as_echo_n "(cached) " >&6
17460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17461 /* end confdefs.h. */
17462 #include <stddef.h>
17463 int test[2 * (sizeof NULL == sizeof (void *)) -1];
17473 if ac_fn_c_try_compile "$LINENO"; then :
17474 gl_cv_decl_null_works=yes
17476 gl_cv_decl_null_works=no
17478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
17481 $as_echo "$gl_cv_decl_null_works" >&6; }
17482 if test $gl_cv_decl_null_works = no; then
17487 if test -n "$STDDEF_H"; then
17488 GL_GENERATE_STDDEF_H_TRUE=
17489 GL_GENERATE_STDDEF_H_FALSE='#'
17491 GL_GENERATE_STDDEF_H_TRUE='#'
17492 GL_GENERATE_STDDEF_H_FALSE=
17495 if test -n "$STDDEF_H"; then
17504 if test $gl_cv_have_include_next = yes; then
17505 gl_cv_next_stddef_h='<'stddef.h'>'
17507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
17508 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
17509 if test "${gl_cv_next_stddef_h+set}" = set; then :
17510 $as_echo_n "(cached) " >&6
17515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17516 /* end confdefs.h. */
17517 #include <stddef.h>
17520 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17521 *) gl_absname_cpp="$ac_cpp" ;;
17526 gl_dirsep_regex='[/\\]'
17529 gl_dirsep_regex='\/'
17532 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17533 gl_header_literal_regex=`echo 'stddef.h' \
17534 |
sed -e "$gl_make_literal_regex_sed"`
17535 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17536 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17542 gl_cv_absolute_stddef_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17543 sed -n "$gl_absolute_header_sed"`
17545 gl_header=$gl_cv_absolute_stddef_h
17546 gl_cv_next_stddef_h='"'$gl_header'"'
17550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
17551 $as_echo "$gl_cv_next_stddef_h" >&6; }
17553 NEXT_STDDEF_H=$gl_cv_next_stddef_h
17555 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17556 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17557 gl_next_as_first_directive='<'stddef.h'>'
17559 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17560 gl_next_as_first_directive=$gl_cv_next_stddef_h
17562 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
17572 $as_echo "#define __USE_MINGW_ANSI_STDIO 1" >>confdefs.h
17583 if test $gl_cv_have_include_next = yes; then
17584 gl_cv_next_stdio_h='<'stdio.h'>'
17586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
17587 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
17588 if test "${gl_cv_next_stdio_h+set}" = set; then :
17589 $as_echo_n "(cached) " >&6
17594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17595 /* end confdefs.h. */
17599 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17600 *) gl_absname_cpp="$ac_cpp" ;;
17605 gl_dirsep_regex='[/\\]'
17608 gl_dirsep_regex='\/'
17611 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17612 gl_header_literal_regex=`echo 'stdio.h' \
17613 |
sed -e "$gl_make_literal_regex_sed"`
17614 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17615 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17621 gl_cv_absolute_stdio_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17622 sed -n "$gl_absolute_header_sed"`
17624 gl_header=$gl_cv_absolute_stdio_h
17625 gl_cv_next_stdio_h='"'$gl_header'"'
17629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
17630 $as_echo "$gl_cv_next_stdio_h" >&6; }
17632 NEXT_STDIO_H=$gl_cv_next_stdio_h
17634 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17635 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17636 gl_next_as_first_directive='<'stdio.h'>'
17638 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17639 gl_next_as_first_directive=$gl_cv_next_stdio_h
17641 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
17647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which flavor of printf attribute matches inttypes macros" >&5
17648 $as_echo_n "checking which flavor of printf attribute matches inttypes macros... " >&6; }
17649 if test "${gl_cv_func_printf_attribute_flavor+set}" = set; then :
17650 $as_echo_n "(cached) " >&6
17652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17653 /* end confdefs.h. */
17655 #define __STDC_FORMAT_MACROS 1
17657 #include <inttypes.h>
17658 /* For non-mingw systems, compilation will trivially succeed.
17659 For mingw, compilation will succeed for older mingw (system
17660 printf, "I64d") and fail for newer mingw (gnu printf, "lld"). */
17661 #if ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) && \
17662 (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4))
17663 extern char PRIdMAX_probe[sizeof PRIdMAX == sizeof "I64d" ? 1 : -1];
17674 if ac_fn_c_try_compile "$LINENO"; then :
17675 gl_cv_func_printf_attribute_flavor=system
17677 gl_cv_func_printf_attribute_flavor=gnu
17679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_attribute_flavor" >&5
17682 $as_echo "$gl_cv_func_printf_attribute_flavor" >&6; }
17683 if test "$gl_cv_func_printf_attribute_flavor" = gnu; then
17685 $as_echo "#define GNULIB_PRINTF_ATTRIBUTE_FLAVOR_GNU 1" >>confdefs.h
17692 cat >>confdefs.h <<_ACEOF
17693 #define GNULIB_FSCANF 1
17700 cat >>confdefs.h <<_ACEOF
17701 #define GNULIB_SCANF 1
17726 for gl_func in dprintf fpurge fseeko ftello getdelim getline gets pclose popen renameat snprintf tmpfile vdprintf vsnprintf; do
17727 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
17728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
17729 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
17730 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
17731 $as_echo_n "(cached) " >&6
17733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17734 /* end confdefs.h. */
17746 if ac_fn_c_try_compile "$LINENO"; then :
17747 eval "$as_gl_Symbol=yes"
17749 eval "$as_gl_Symbol=no"
17751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17753 eval ac_res=\$$as_gl_Symbol
17754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17755 $as_echo "$ac_res" >&6; }
17756 eval as_val=\$$as_gl_Symbol
17757 if test "x$as_val" = x""yes; then :
17758 cat >>confdefs.h <<_ACEOF
17759 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
17762 eval ac_cv_have_decl_$gl_func=yes
17777 if test $gl_cv_have_include_next = yes; then
17778 gl_cv_next_stdlib_h='<'stdlib.h'>'
17780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
17781 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
17782 if test "${gl_cv_next_stdlib_h+set}" = set; then :
17783 $as_echo_n "(cached) " >&6
17788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17789 /* end confdefs.h. */
17790 #include <stdlib.h>
17793 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17794 *) gl_absname_cpp="$ac_cpp" ;;
17799 gl_dirsep_regex='[/\\]'
17802 gl_dirsep_regex='\/'
17805 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17806 gl_header_literal_regex=`echo 'stdlib.h' \
17807 |
sed -e "$gl_make_literal_regex_sed"`
17808 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17809 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17815 gl_cv_absolute_stdlib_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17816 sed -n "$gl_absolute_header_sed"`
17818 gl_header=$gl_cv_absolute_stdlib_h
17819 gl_cv_next_stdlib_h='"'$gl_header'"'
17823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
17824 $as_echo "$gl_cv_next_stdlib_h" >&6; }
17826 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
17828 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17829 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17830 gl_next_as_first_directive='<'stdlib.h'>'
17832 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17833 gl_next_as_first_directive=$gl_cv_next_stdlib_h
17835 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
17842 for gl_func in _Exit atoll canonicalize_file_name getloadavg getsubopt grantpt initstate initstate_r mkdtemp mkostemp mkostemps mkstemp mkstemps posix_openpt ptsname ptsname_r qsort_r random random_r realpath rpmatch secure_getenv setenv setstate setstate_r srandom srandom_r strtod strtoll strtoull unlockpt unsetenv; do
17843 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
17844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
17845 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
17846 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
17847 $as_echo_n "(cached) " >&6
17849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17850 /* end confdefs.h. */
17851 #include <stdlib.h>
17852 #if HAVE_SYS_LOADAVG_H
17853 # include <sys/loadavg.h>
17856 # include <random.h>
17868 if ac_fn_c_try_compile "$LINENO"; then :
17869 eval "$as_gl_Symbol=yes"
17871 eval "$as_gl_Symbol=no"
17873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17875 eval ac_res=\$$as_gl_Symbol
17876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17877 $as_echo "$ac_res" >&6; }
17878 eval as_val=\$$as_gl_Symbol
17879 if test "x$as_val" = x""yes; then :
17880 cat >>confdefs.h <<_ACEOF
17881 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
17884 eval ac_cv_have_decl_$gl_func=yes
17893 for ac_func in strchrnul
17895 ac_fn_c_check_func "$LINENO" "strchrnul" "ac_cv_func_strchrnul"
17896 if test "x$ac_cv_func_strchrnul" = x""yes; then :
17897 cat >>confdefs.h <<_ACEOF
17898 #define HAVE_STRCHRNUL 1
17904 if test $ac_cv_func_strchrnul = no; then
17907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strchrnul works" >&5
17908 $as_echo_n "checking whether strchrnul works... " >&6; }
17909 if test "${gl_cv_func_strchrnul_works+set}" = set; then :
17910 $as_echo_n "(cached) " >&6
17912 if test "$cross_compiling" = yes; then :
17913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17914 /* end confdefs.h. */
17916 #if defined __CYGWIN__
17917 #include <cygwin/version.h>
17918 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 9)
17926 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17927 $EGREP "Lucky user" >/dev/null 2>&1; then :
17928 gl_cv_func_strchrnul_works="guessing yes"
17930 gl_cv_func_strchrnul_works="guessing no"
17936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17937 /* end confdefs.h. */
17939 #include <string.h> /* for strchrnul */
17944 const char *buf = "a";
17945 return strchrnul (buf, 'b') != buf + 1;
17951 if ac_fn_c_try_run "$LINENO"; then :
17952 gl_cv_func_strchrnul_works=yes
17954 gl_cv_func_strchrnul_works=no
17956 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17957 conftest.$ac_objext conftest.beam conftest.$ac_ext
17962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strchrnul_works" >&5
17963 $as_echo "$gl_cv_func_strchrnul_works" >&6; }
17964 case "$gl_cv_func_strchrnul_works" in
17966 *) REPLACE_STRCHRNUL=1 ;;
17970 if test $HAVE_STRCHRNUL = 0 || test $REPLACE_STRCHRNUL = 1; then
17979 gl_LIBOBJS="$gl_LIBOBJS strchrnul.$ac_objext"
17994 $as_echo "#define GNULIB_TEST_STRCHRNUL 1" >>confdefs.h
18003 if test $REPLACE_STRSTR = 0; then
18004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works in linear time" >&5
18005 $as_echo_n "checking whether strstr works in linear time... " >&6; }
18006 if test "${gl_cv_func_strstr_linear+set}" = set; then :
18007 $as_echo_n "(cached) " >&6
18009 if test "$cross_compiling" = yes; then :
18010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18011 /* end confdefs.h. */
18013 #include <features.h>
18014 #ifdef __GNU_LIBRARY__
18015 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
18016 && !(defined __i386__ || defined __x86_64__) \
18017 && !defined __UCLIBC__
18022 #include <cygwin/version.h>
18023 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
18029 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18030 $EGREP "Lucky user" >/dev/null 2>&1; then :
18031 gl_cv_func_strstr_linear="guessing yes"
18033 gl_cv_func_strstr_linear="guessing no"
18039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18040 /* end confdefs.h. */
18043 /* z/OS does not deliver signals while strstr() is running (thanks to
18044 restrictions on its LE runtime), which prevents us from limiting the
18045 running time of this test. */
18046 # error "This test does not work properly on z/OS"
18048 #include <signal.h> /* for signal */
18049 #include <string.h> /* for strstr */
18050 #include <stdlib.h> /* for malloc */
18051 #include <unistd.h> /* for alarm */
18052 static void quit (int sig) { _exit (sig + 128); }
18059 size_t m = 1000000;
18060 char *haystack = (char *) malloc (2 * m + 2);
18061 char *needle = (char *) malloc (m + 2);
18062 /* Failure to compile this test due to missing alarm is okay,
18063 since all such platforms (mingw) also have quadratic strstr. */
18064 signal (SIGALRM, quit);
18066 /* Check for quadratic performance. */
18067 if (haystack && needle)
18069 memset (haystack, 'A', 2 * m);
18070 haystack[2 * m] = 'B';
18071 haystack[2 * m + 1] = 0;
18072 memset (needle, 'A', m);
18075 if (!strstr (haystack, needle))
18084 if ac_fn_c_try_run "$LINENO"; then :
18085 gl_cv_func_strstr_linear=yes
18087 gl_cv_func_strstr_linear=no
18089 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18090 conftest.$ac_objext conftest.beam conftest.$ac_ext
18095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_linear" >&5
18096 $as_echo "$gl_cv_func_strstr_linear" >&6; }
18097 case "$gl_cv_func_strstr_linear" in
18105 if test $REPLACE_STRSTR = 1; then
18114 gl_LIBOBJS="$gl_LIBOBJS strstr.$ac_objext"
18120 if test "$gl_cv_func_memchr_works" != yes; then
18123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
18124 $as_echo_n "checking whether strstr works... " >&6; }
18125 if test "${gl_cv_func_strstr_works_always+set}" = set; then :
18126 $as_echo_n "(cached) " >&6
18128 if test "$cross_compiling" = yes; then :
18129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18130 /* end confdefs.h. */
18132 #ifdef __GNU_LIBRARY__
18133 #include <features.h>
18134 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
18135 || defined __UCLIBC__
18138 #elif defined __CYGWIN__
18139 #include <cygwin/version.h>
18140 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
18148 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18149 $EGREP "Lucky user" >/dev/null 2>&1; then :
18150 gl_cv_func_strstr_works_always="guessing yes"
18152 gl_cv_func_strstr_works_always="guessing no"
18158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18159 /* end confdefs.h. */
18161 #include <string.h> /* for strstr */
18162 #define P "_EF_BF_BD"
18163 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
18164 #define NEEDLE P P P P P
18169 return !!strstr (HAYSTACK, NEEDLE);
18175 if ac_fn_c_try_run "$LINENO"; then :
18176 gl_cv_func_strstr_works_always=yes
18178 gl_cv_func_strstr_works_always=no
18180 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18181 conftest.$ac_objext conftest.beam conftest.$ac_ext
18186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
18187 $as_echo "$gl_cv_func_strstr_works_always" >&6; }
18188 case "$gl_cv_func_strstr_works_always" in
18196 if test $REPLACE_STRSTR = 1; then
18205 gl_LIBOBJS="$gl_LIBOBJS strstr.$ac_objext"
18219 $as_echo "#define GNULIB_TEST_STRSTR 1" >>confdefs.h
18227 for ac_func in strtok_r
18229 ac_fn_c_check_func "$LINENO" "strtok_r" "ac_cv_func_strtok_r"
18230 if test "x$ac_cv_func_strtok_r" = x""yes; then :
18231 cat >>confdefs.h <<_ACEOF
18232 #define HAVE_STRTOK_R 1
18238 if test $ac_cv_func_strtok_r = yes; then
18240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtok_r works" >&5
18241 $as_echo_n "checking whether strtok_r works... " >&6; }
18242 if test "${gl_cv_func_strtok_r_works+set}" = set; then :
18243 $as_echo_n "(cached) " >&6
18245 if test "$cross_compiling" = yes; then :
18248 # Guess no on glibc systems.
18249 *-gnu*) gl_cv_func_strtok_r_works="guessing no";;
18250 *) gl_cv_func_strtok_r_works="guessing yes";;
18254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18255 /* end confdefs.h. */
18257 #ifndef __OPTIMIZE__
18258 # define __OPTIMIZE__ 1
18260 #undef __OPTIMIZE_SIZE__
18261 #undef __NO_INLINE__
18262 #include <stdlib.h>
18263 #include <string.h>
18268 static const char dummy[] = "\177\01a";
18269 char delimiters[] = "xxxxxxxx";
18270 char *save_ptr = (char *) dummy;
18271 strtok_r (delimiters, "x", &save_ptr);
18272 strtok_r (NULL, "x", &save_ptr);
18280 if ac_fn_c_try_run "$LINENO"; then :
18281 gl_cv_func_strtok_r_works=yes
18283 gl_cv_func_strtok_r_works=no
18285 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18286 conftest.$ac_objext conftest.beam conftest.$ac_ext
18291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtok_r_works" >&5
18292 $as_echo "$gl_cv_func_strtok_r_works" >&6; }
18293 case "$gl_cv_func_strtok_r_works" in
18295 UNDEFINE_STRTOK_R=1
18302 if test $ac_cv_have_decl_strtok_r = no; then
18303 HAVE_DECL_STRTOK_R=0
18306 if test $HAVE_STRTOK_R = 0 || test $REPLACE_STRTOK_R = 1; then
18315 gl_LIBOBJS="$gl_LIBOBJS strtok_r.$ac_objext"
18332 $as_echo "#define GNULIB_TEST_STRTOK_R 1" >>confdefs.h
18350 if test $gl_cv_have_include_next = yes; then
18351 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
18353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
18354 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
18355 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
18356 $as_echo_n "(cached) " >&6
18359 if test $ac_cv_header_sys_stat_h = yes; then
18364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18365 /* end confdefs.h. */
18366 #include <sys/stat.h>
18369 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18370 *) gl_absname_cpp="$ac_cpp" ;;
18375 gl_dirsep_regex='[/\\]'
18378 gl_dirsep_regex='\/'
18381 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18382 gl_header_literal_regex=`echo 'sys/stat.h' \
18383 |
sed -e "$gl_make_literal_regex_sed"`
18384 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18385 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18391 gl_cv_absolute_sys_stat_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18392 sed -n "$gl_absolute_header_sed"`
18394 gl_header=$gl_cv_absolute_sys_stat_h
18395 gl_cv_next_sys_stat_h='"'$gl_header'"'
18397 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
18402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
18403 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
18405 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
18407 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18408 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18409 gl_next_as_first_directive='<'sys/stat.h'>'
18411 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18412 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
18414 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
18426 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
18428 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
18432 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
18433 #include <sys/stat.h>
18435 if test "x$ac_cv_type_nlink_t" = x""yes; then :
18439 $as_echo "#define nlink_t int" >>confdefs.h
18445 for gl_func in fchmodat fstat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat mknod mknodat stat utimensat; do
18446 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
18447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
18448 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
18449 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
18450 $as_echo_n "(cached) " >&6
18452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18453 /* end confdefs.h. */
18454 #include <sys/stat.h>
18465 if ac_fn_c_try_compile "$LINENO"; then :
18466 eval "$as_gl_Symbol=yes"
18468 eval "$as_gl_Symbol=no"
18470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18472 eval ac_res=\$$as_gl_Symbol
18473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18474 $as_echo "$ac_res" >&6; }
18475 eval as_val=\$$as_gl_Symbol
18476 if test "x$as_val" = x""yes; then :
18477 cat >>confdefs.h <<_ACEOF
18478 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
18481 eval ac_cv_have_decl_$gl_func=yes
18508 if test $gl_cv_have_include_next = yes; then
18509 gl_cv_next_unistd_h='<'unistd.h'>'
18511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
18512 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
18513 if test "${gl_cv_next_unistd_h+set}" = set; then :
18514 $as_echo_n "(cached) " >&6
18517 if test $ac_cv_header_unistd_h = yes; then
18522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18523 /* end confdefs.h. */
18524 #include <unistd.h>
18527 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18528 *) gl_absname_cpp="$ac_cpp" ;;
18533 gl_dirsep_regex='[/\\]'
18536 gl_dirsep_regex='\/'
18539 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18540 gl_header_literal_regex=`echo 'unistd.h' \
18541 |
sed -e "$gl_make_literal_regex_sed"`
18542 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18543 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18549 gl_cv_absolute_unistd_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18550 sed -n "$gl_absolute_header_sed"`
18552 gl_header=$gl_cv_absolute_unistd_h
18553 gl_cv_next_unistd_h='"'$gl_header'"'
18555 gl_cv_next_unistd_h='<'unistd.h'>'
18560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
18561 $as_echo "$gl_cv_next_unistd_h" >&6; }
18563 NEXT_UNISTD_H=$gl_cv_next_unistd_h
18565 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18566 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18567 gl_next_as_first_directive='<'unistd.h'>'
18569 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18570 gl_next_as_first_directive=$gl_cv_next_unistd_h
18572 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
18577 if test $ac_cv_header_unistd_h = yes; then
18589 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
18590 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
18591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
18592 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
18593 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
18594 $as_echo_n "(cached) " >&6
18596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18597 /* end confdefs.h. */
18600 # include <unistd.h>
18602 /* Some systems declare various items in the wrong headers. */
18603 #if !(defined __GLIBC__ && !defined __UCLIBC__)
18604 # include <fcntl.h>
18605 # include <stdio.h>
18606 # include <stdlib.h>
18607 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
18621 if ac_fn_c_try_compile "$LINENO"; then :
18622 eval "$as_gl_Symbol=yes"
18624 eval "$as_gl_Symbol=no"
18626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18628 eval ac_res=\$$as_gl_Symbol
18629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18630 $as_echo "$ac_res" >&6; }
18631 eval as_val=\$$as_gl_Symbol
18632 if test "x$as_val" = x""yes; then :
18633 cat >>confdefs.h <<_ACEOF
18634 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
18637 eval ac_cv_have_decl_$gl_func=yes
18654 if test $gl_cv_have_include_next = yes; then
18655 gl_cv_next_wchar_h='<'wchar.h'>'
18657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
18658 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
18659 if test "${gl_cv_next_wchar_h+set}" = set; then :
18660 $as_echo_n "(cached) " >&6
18663 if test $ac_cv_header_wchar_h = yes; then
18668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18669 /* end confdefs.h. */
18673 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18674 *) gl_absname_cpp="$ac_cpp" ;;
18679 gl_dirsep_regex='[/\\]'
18682 gl_dirsep_regex='\/'
18685 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18686 gl_header_literal_regex=`echo 'wchar.h' \
18687 |
sed -e "$gl_make_literal_regex_sed"`
18688 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18689 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18695 gl_cv_absolute_wchar_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18696 sed -n "$gl_absolute_header_sed"`
18698 gl_header=$gl_cv_absolute_wchar_h
18699 gl_cv_next_wchar_h='"'$gl_header'"'
18701 gl_cv_next_wchar_h='<'wchar.h'>'
18706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
18707 $as_echo "$gl_cv_next_wchar_h" >&6; }
18709 NEXT_WCHAR_H=$gl_cv_next_wchar_h
18711 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18712 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18713 gl_next_as_first_directive='<'wchar.h'>'
18715 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18716 gl_next_as_first_directive=$gl_cv_next_wchar_h
18718 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
18723 if test $ac_cv_header_wchar_h = yes; then
18733 if test $gt_cv_c_wint_t = yes; then
18741 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
18742 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
18743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
18744 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
18745 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
18746 $as_echo_n "(cached) " >&6
18748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18749 /* end confdefs.h. */
18751 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
18753 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18754 included before <wchar.h>. */
18755 #if !(defined __GLIBC__ && !defined __UCLIBC__)
18756 # include <stddef.h>
18757 # include <stdio.h>
18771 if ac_fn_c_try_compile "$LINENO"; then :
18772 eval "$as_gl_Symbol=yes"
18774 eval "$as_gl_Symbol=no"
18776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18778 eval ac_res=\$$as_gl_Symbol
18779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18780 $as_echo "$ac_res" >&6; }
18781 eval as_val=\$$as_gl_Symbol
18782 if test "x$as_val" = x""yes; then :
18783 cat >>confdefs.h <<_ACEOF
18784 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
18787 eval ac_cv_have_decl_$gl_func=yes
18797 if test $ac_cv_func_iswcntrl = yes; then
18805 if test $gt_cv_c_wint_t = yes; then
18821 if test $gl_cv_have_include_next = yes; then
18822 gl_cv_next_wctype_h='<'wctype.h'>'
18824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
18825 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
18826 if test "${gl_cv_next_wctype_h+set}" = set; then :
18827 $as_echo_n "(cached) " >&6
18830 if test $ac_cv_header_wctype_h = yes; then
18835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18836 /* end confdefs.h. */
18837 #include <wctype.h>
18840 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18841 *) gl_absname_cpp="$ac_cpp" ;;
18846 gl_dirsep_regex='[/\\]'
18849 gl_dirsep_regex='\/'
18852 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18853 gl_header_literal_regex=`echo 'wctype.h' \
18854 |
sed -e "$gl_make_literal_regex_sed"`
18855 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18856 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18862 gl_cv_absolute_wctype_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18863 sed -n "$gl_absolute_header_sed"`
18865 gl_header=$gl_cv_absolute_wctype_h
18866 gl_cv_next_wctype_h='"'$gl_header'"'
18868 gl_cv_next_wctype_h='<'wctype.h'>'
18873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
18874 $as_echo "$gl_cv_next_wctype_h" >&6; }
18876 NEXT_WCTYPE_H=$gl_cv_next_wctype_h
18878 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18879 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18880 gl_next_as_first_directive='<'wctype.h'>'
18882 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18883 gl_next_as_first_directive=$gl_cv_next_wctype_h
18885 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
18890 if test $ac_cv_header_wctype_h = yes; then
18891 if test $ac_cv_func_iswcntrl = yes; then
18892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
18893 $as_echo_n "checking whether iswcntrl works... " >&6; }
18894 if test "${gl_cv_func_iswcntrl_works+set}" = set; then :
18895 $as_echo_n "(cached) " >&6
18898 if test "$cross_compiling" = yes; then :
18899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18900 /* end confdefs.h. */
18901 #include <stdlib.h>
18902 #if __GNU_LIBRARY__ == 1
18903 Linux libc5 i18n is broken.
18913 if ac_fn_c_try_compile "$LINENO"; then :
18914 gl_cv_func_iswcntrl_works="guessing yes"
18916 gl_cv_func_iswcntrl_works="guessing no"
18918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18922 /* end confdefs.h. */
18924 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
18925 included before <wchar.h>.
18926 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
18927 must be included before <wchar.h>. */
18928 #include <stddef.h>
18932 #include <wctype.h>
18933 int main () { return iswprint ('x') == 0; }
18936 if ac_fn_c_try_run "$LINENO"; then :
18937 gl_cv_func_iswcntrl_works=yes
18939 gl_cv_func_iswcntrl_works=no
18941 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18942 conftest.$ac_objext conftest.beam conftest.$ac_ext
18947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
18948 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
18956 case "$gl_cv_func_iswcntrl_works" in
18957 *yes) REPLACE_ISWCNTRL=0 ;;
18958 *) REPLACE_ISWCNTRL=1 ;;
18962 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
18966 if test $REPLACE_ISWCNTRL = 1; then
18969 for ac_func in towlower
18971 ac_fn_c_check_func "$LINENO" "towlower" "ac_cv_func_towlower"
18972 if test "x$ac_cv_func_towlower" = x""yes; then :
18973 cat >>confdefs.h <<_ACEOF
18974 #define HAVE_TOWLOWER 1
18980 if test $ac_cv_func_towlower = yes; then
18983 ac_fn_c_check_decl "$LINENO" "towlower" "ac_cv_have_decl_towlower" "/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
18984 included before <wchar.h>.
18985 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
18986 must be included before <wchar.h>. */
18987 #include <stddef.h>
18992 # include <wctype.h>
18996 if test "x$ac_cv_have_decl_towlower" = x""yes; then :
19002 cat >>confdefs.h <<_ACEOF
19003 #define HAVE_DECL_TOWLOWER $ac_have_decl
19006 if test $ac_cv_have_decl_towlower = yes; then
19015 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_TOWLOWER = 1; then
19019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
19020 $as_echo_n "checking for wctype_t... " >&6; }
19021 if test "${gl_cv_type_wctype_t+set}" = set; then :
19022 $as_echo_n "(cached) " >&6
19024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19025 /* end confdefs.h. */
19026 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
19027 included before <wchar.h>.
19028 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
19029 must be included before <wchar.h>. */
19030 #include <stddef.h>
19035 # include <wctype.h>
19047 if ac_fn_c_try_compile "$LINENO"; then :
19048 gl_cv_type_wctype_t=yes
19050 gl_cv_type_wctype_t=no
19052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
19056 $as_echo "$gl_cv_type_wctype_t" >&6; }
19057 if test $gl_cv_type_wctype_t = no; then
19061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
19062 $as_echo_n "checking for wctrans_t... " >&6; }
19063 if test "${gl_cv_type_wctrans_t+set}" = set; then :
19064 $as_echo_n "(cached) " >&6
19066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19067 /* end confdefs.h. */
19068 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
19069 included before <wchar.h>.
19070 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
19071 must be included before <wchar.h>. */
19072 #include <stddef.h>
19076 #include <wctype.h>
19087 if ac_fn_c_try_compile "$LINENO"; then :
19088 gl_cv_type_wctrans_t=yes
19090 gl_cv_type_wctrans_t=no
19092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
19096 $as_echo "$gl_cv_type_wctrans_t" >&6; }
19097 if test $gl_cv_type_wctrans_t = no; then
19102 for gl_func in wctype iswctype wctrans towctrans ; do
19103 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
19104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
19105 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
19106 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
19107 $as_echo_n "(cached) " >&6
19109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19110 /* end confdefs.h. */
19112 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19114 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19115 included before <wchar.h>. */
19116 #if !(defined __GLIBC__ && !defined __UCLIBC__)
19117 # include <stddef.h>
19118 # include <stdio.h>
19120 # include <wchar.h>
19122 #include <wctype.h>
19133 if ac_fn_c_try_compile "$LINENO"; then :
19134 eval "$as_gl_Symbol=yes"
19136 eval "$as_gl_Symbol=no"
19138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19140 eval ac_res=\$$as_gl_Symbol
19141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19142 $as_echo "$ac_res" >&6; }
19143 eval as_val=\$$as_gl_Symbol
19144 if test "x$as_val" = x""yes; then :
19145 cat >>confdefs.h <<_ACEOF
19146 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
19149 eval ac_cv_have_decl_$gl_func=yes
19154 # End of code from modules
19175 gl_source_base='tests'
19176 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
19178 gl_module_indicator_condition=$gltests_WITNESS
19188 LIBGNU_LIBDEPS="$gl_libdeps"
19190 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
19194 # We don't use automake, but gnulib does. This line lets us generate
19196 am__api_version='1.11'
19198 # Find a good install program. We prefer a C program (faster),
19199 # so one script is as good as another. But avoid the broken or
19200 # incompatible versions:
19201 # SysV /etc/install, /usr/sbin/install
19202 # SunOS /usr/etc/install
19203 # IRIX /sbin/install
19205 # AmigaOS /C/install, which installs bootblocks on floppy discs
19206 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
19207 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
19208 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
19209 # OS/2's system install, which has a completely different semantic
19210 # ./install, which can be erroneously created by make from ./install.sh.
19211 # Reject install programs that cannot install multiple files.
19212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
19213 $as_echo_n "checking for a BSD-compatible install... " >&6; }
19214 if test -z "$INSTALL"; then
19215 if test "${ac_cv_path_install+set}" = set; then :
19216 $as_echo_n "(cached) " >&6
19218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19219 for as_dir in $PATH
19222 test -z "$as_dir" && as_dir=.
19223 # Account for people who put trailing slashes in PATH elements.
19224 case $as_dir/ in #((
19225 ./ | .// | /[cC]/* | \
19226 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
19227 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
19230 # OSF1 and SCO ODT 3.0 have their own names for install.
19231 # Don't use installbsd from OSF since it installs stuff as root
19233 for ac_prog in ginstall scoinst install; do
19234 for ac_exec_ext in '' $ac_executable_extensions; do
19235 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
19236 if test $ac_prog = install &&
19237 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19238 # AIX install. It has an incompatible calling convention.
19240 elif test $ac_prog = install &&
19241 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19242 # program-specific install script used by HP pwplus--don't use.
19245 rm -rf conftest.one conftest.two conftest.dir
19246 echo one > conftest.one
19247 echo two > conftest.two
19249 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
19250 test -s conftest.one && test -s conftest.two &&
19251 test -s conftest.dir/conftest.one &&
19252 test -s conftest.dir/conftest.two
19254 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
19267 rm -rf conftest.one conftest.two conftest.dir
19270 if test "${ac_cv_path_install+set}" = set; then
19271 INSTALL=$ac_cv_path_install
19273 # As a last resort, use the slow shell script. Don't cache a
19274 # value for INSTALL within a source directory, because that will
19275 # break other packages using the cache if that directory is
19276 # removed, or if the value is a relative name.
19277 INSTALL=$ac_install_sh
19280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
19281 $as_echo "$INSTALL" >&6; }
19283 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
19284 # It thinks the first close brace ends the variable substitution.
19285 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
19287 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
19289 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
19291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
19292 $as_echo_n "checking whether build environment is sane... " >&6; }
19295 echo timestamp > conftest.file
19296 # Reject unsafe characters in $srcdir or the absolute working directory
19297 # name. Accept space and tab only in the latter.
19301 *[\\\"\#\$\&\'\`$am_lf]*)
19302 as_fn_error
"unsafe absolute working directory name" "$LINENO" 5;;
19305 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
19306 as_fn_error
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
19309 # Do `set' in a subshell so we don't clobber the current shell's
19310 # arguments. Must try -L first in case configure is actually a
19311 # symlink; some systems play weird games with the mod time of symlinks
19312 # (eg FreeBSD returns the mod time of the symlink's containing
19315 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
19316 if test "$*" = "X"; then
19318 set X
`ls -t "$srcdir/configure" conftest.file`
19320 rm -f conftest.
file
19321 if test "$*" != "X $srcdir/configure conftest.file" \
19322 && test "$*" != "X conftest.file $srcdir/configure"; then
19324 # If neither matched, then we have a broken ls. This can happen
19325 # if, for instance, CONFIG_SHELL is bash and it inherits a
19326 # broken ls alias from the environment. This has actually
19327 # happened. Such a system could not be considered "sane".
19328 as_fn_error
"ls -t appears to fail. Make sure there is not a broken
19329 alias in your environment" "$LINENO" 5
19332 test "$2" = conftest.
file
19338 as_fn_error
"newly created file is older than distributed files!
19339 Check your system clock" "$LINENO" 5
19341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19342 $as_echo "yes" >&6; }
19343 test "$program_prefix" != NONE
&&
19344 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
19345 # Use a double $ so make ignores it.
19346 test "$program_suffix" != NONE
&&
19347 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
19348 # Double any \ or $.
19349 # By default was `s,x,x', remove it if useless.
19350 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
19351 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
19353 # expand $ac_aux_dir to an absolute path
19354 am_aux_dir
=`cd $ac_aux_dir && pwd`
19356 if test x
"${MISSING+set}" != xset
; then
19357 case $am_aux_dir in
19359 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
19361 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
19364 # Use eval to expand $SHELL
19365 if eval "$MISSING --run true"; then
19366 am_missing_run
="$MISSING --run "
19369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
19370 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
19373 if test x
"${install_sh}" != xset
; then
19374 case $am_aux_dir in
19376 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
19378 install_sh
="\${SHELL} $am_aux_dir/install-sh"
19382 # Installed binaries are usually stripped using `strip' when the user
19383 # run `make install-strip'. However `strip' might not be the right
19384 # tool to use in cross-compilation environments, therefore Automake
19385 # will honor the `STRIP' environment variable to overrule this program.
19386 if test "$cross_compiling" != no
; then
19387 if test -n "$ac_tool_prefix"; then
19388 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
19389 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
19390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19391 $as_echo_n "checking for $ac_word... " >&6; }
19392 if test "${ac_cv_prog_STRIP+set}" = set; then :
19393 $as_echo_n "(cached) " >&6
19395 if test -n "$STRIP"; then
19396 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
19398 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19399 for as_dir
in $PATH
19402 test -z "$as_dir" && as_dir
=.
19403 for ac_exec_ext
in '' $ac_executable_extensions; do
19404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19405 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
19406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19415 STRIP
=$ac_cv_prog_STRIP
19416 if test -n "$STRIP"; then
19417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
19418 $as_echo "$STRIP" >&6; }
19420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19421 $as_echo "no" >&6; }
19426 if test -z "$ac_cv_prog_STRIP"; then
19428 # Extract the first word of "strip", so it can be a program name with args.
19429 set dummy strip
; ac_word
=$2
19430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19431 $as_echo_n "checking for $ac_word... " >&6; }
19432 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
19433 $as_echo_n "(cached) " >&6
19435 if test -n "$ac_ct_STRIP"; then
19436 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
19438 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19439 for as_dir
in $PATH
19442 test -z "$as_dir" && as_dir
=.
19443 for ac_exec_ext
in '' $ac_executable_extensions; do
19444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19445 ac_cv_prog_ac_ct_STRIP
="strip"
19446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19455 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
19456 if test -n "$ac_ct_STRIP"; then
19457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
19458 $as_echo "$ac_ct_STRIP" >&6; }
19460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19461 $as_echo "no" >&6; }
19464 if test "x$ac_ct_STRIP" = x
; then
19467 case $cross_compiling:$ac_tool_warned in
19469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19470 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19471 ac_tool_warned
=yes ;;
19476 STRIP
="$ac_cv_prog_STRIP"
19480 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
19484 [\\/$
]* | ?
:[\\/]*) ;;
19485 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
19488 for ac_prog
in gawk mawk nawk
awk
19490 # Extract the first word of "$ac_prog", so it can be a program name with args.
19491 set dummy
$ac_prog; ac_word
=$2
19492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19493 $as_echo_n "checking for $ac_word... " >&6; }
19494 if test "${ac_cv_prog_AWK+set}" = set; then :
19495 $as_echo_n "(cached) " >&6
19497 if test -n "$AWK"; then
19498 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
19500 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19501 for as_dir
in $PATH
19504 test -z "$as_dir" && as_dir
=.
19505 for ac_exec_ext
in '' $ac_executable_extensions; do
19506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19507 ac_cv_prog_AWK
="$ac_prog"
19508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19517 AWK
=$ac_cv_prog_AWK
19518 if test -n "$AWK"; then
19519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
19520 $as_echo "$AWK" >&6; }
19522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19523 $as_echo "no" >&6; }
19527 test -n "$AWK" && break
19530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
19531 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
19533 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
19534 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
19535 $as_echo_n "(cached) " >&6
19537 cat >conftest.
make <<\_ACEOF
19540 @
echo '@@@%%%=$(MAKE)=@@@%%%'
19542 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19543 case `${MAKE-make} -f conftest.make 2>/dev/null` in
19544 *@@@
%%%=?
*=@@@
%%%*)
19545 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
19547 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
19549 rm -f conftest.
make
19551 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
19552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19553 $as_echo "yes" >&6; }
19556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19557 $as_echo "no" >&6; }
19558 SET_MAKE
="MAKE=${MAKE-make}"
19561 rm -rf .tst
2>/dev
/null
19562 mkdir .tst
2>/dev
/null
19563 if test -d .tst
; then
19568 rmdir .tst
2>/dev
/null
19570 DEPDIR
="${am__leading_dot}deps"
19572 ac_config_commands
="$ac_config_commands depfiles"
19575 am_make
=${MAKE-make}
19576 cat > confinc
<< 'END'
19578 @
echo this is the am__doit target
19581 # If we don't find an include directive, just comment out the code.
19582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
19583 $as_echo_n "checking for style of include used by $am_make... " >&6; }
19587 # First try GNU make style include.
19588 echo "include confinc" > confmf
19589 # Ignore all kinds of additional output from `make'.
19590 case `$am_make -s -f confmf 2> /dev/null` in #(
19591 *the\ am__doit\ target
*)
19592 am__include
=include
19597 # Now try BSD make style include.
19598 if test "$am__include" = "#"; then
19599 echo '.include "confinc"' > confmf
19600 case `$am_make -s -f confmf 2> /dev/null` in #(
19601 *the\ am__doit\ target
*)
19602 am__include
=.include
19610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
19611 $as_echo "$_am_result" >&6; }
19612 rm -f confinc confmf
19614 # Check whether --enable-dependency-tracking was given.
19615 if test "${enable_dependency_tracking+set}" = set; then :
19616 enableval
=$enable_dependency_tracking;
19619 if test "x$enable_dependency_tracking" != xno
; then
19620 am_depcomp
="$ac_aux_dir/depcomp"
19623 if test "x$enable_dependency_tracking" != xno; then
19632 if test "`cd $srcdir && pwd`" != "`pwd`"; then
19633 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
19634 # is not polluted with repeated "-I."
19635 am__isrc
=' -I$(srcdir)'
19636 # test to see if srcdir already configured
19637 if test -f $srcdir/config.status
; then
19638 as_fn_error
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
19642 # test whether we have cygpath
19643 if test -z "$CYGPATH_W"; then
19644 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
19645 CYGPATH_W
='cygpath -w'
19652 # Define the identity of the package.
19654 VERSION
=UNUSED-VERSION
19657 # Some tools Automake needs.
19659 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
19662 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
19665 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
19668 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
19671 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
19673 # We need awk for the "check" target. The system "awk" is bad on
19675 # Always define AMTAR for backward compatibility.
19677 AMTAR
=${AMTAR-"${am_missing_run}tar"}
19679 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
19684 depcc
="$CC" am_compiler_list
=
19686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
19687 $as_echo_n "checking dependency style of $depcc... " >&6; }
19688 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
19689 $as_echo_n "(cached) " >&6
19691 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19692 # We make a subdir and do the tests there. Otherwise we can end up
19693 # making bogus files that we don't know about and never remove. For
19694 # instance it was reported that on HP-UX the gcc test will end up
19695 # making a dummy file named `D' -- because `-MD' means `put the output
19698 # Copy depcomp to subdir because otherwise we won't find it if we're
19699 # using a relative directory.
19700 cp "$am_depcomp" conftest.dir
19702 # We will build objects and dependencies in a subdirectory because
19703 # it helps to detect inapplicable dependency modes. For instance
19704 # both Tru64's cc and ICC support -MD to output dependencies as a
19705 # side effect of compilation, but ICC will put the dependencies in
19706 # the current directory while Tru64 will put them in the object
19710 am_cv_CC_dependencies_compiler_type
=none
19711 if test "$am_compiler_list" = ""; then
19712 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19714 am__universal
=false
19715 case " $depcc " in #(
19716 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
19719 for depmode
in $am_compiler_list; do
19720 # Setup a source with many dependencies, because some compilers
19721 # like to wrap large dependency lists on column 80 (with \), and
19722 # we should not choose a depcomp mode which is confused by this.
19724 # We need to recreate these files for each test, as the compiler may
19725 # overwrite some of them when testing with obscure command lines.
19726 # This happens at least with the AIX C compiler.
19728 for i
in 1 2 3 4 5 6; do
19729 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
19730 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19731 # Solaris 8's {/usr,}/bin/sh.
19732 touch sub
/conftst
$i.h
19734 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19736 # We check with `-c' and `-o' for the sake of the "dashmstdout"
19737 # mode. It turns out that the SunPro C++ compiler does not properly
19738 # handle `-M -o', and we need to detect this. Also, some Intel
19739 # versions had trouble with output in subdirs
19740 am__obj
=sub
/conftest.
${OBJEXT-o}
19741 am__minus_obj
="-o $am__obj"
19744 # This depmode causes a compiler race in universal mode.
19745 test "$am__universal" = false ||
continue
19748 # after this tag, mechanisms are not by side-effect, so they'll
19749 # only be used when explicitly requested
19750 if test "x$enable_dependency_tracking" = xyes
; then
19756 msvisualcpp | msvcmsys
)
19757 # This compiler won't grok `-c -o', but also, the minuso test has
19758 # not run yet. These depmodes are late enough in the game, and
19759 # so weak that their functioning should not be impacted.
19760 am__obj
=conftest.
${OBJEXT-o}
19765 if depmode
=$depmode \
19766 source=sub
/conftest.c object
=$am__obj \
19767 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
19768 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
19769 >/dev
/null
2>conftest.err
&&
19770 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
19771 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
19772 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
19773 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
19774 # icc doesn't choke on unknown options, it will just issue warnings
19775 # or remarks (even with -Werror). So we grep stderr for any message
19776 # that says an option was ignored or not supported.
19777 # When given -MP, icc 7.0 and 7.1 complain thusly:
19778 # icc: Command line warning: ignoring option '-M'; no argument required
19779 # The diagnosis changed in icc 8.0:
19780 # icc: Command line remark: option '-MP' not supported
19781 if (grep 'ignoring option' conftest.err ||
19782 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
19783 am_cv_CC_dependencies_compiler_type
=$depmode
19790 rm -rf conftest.dir
19792 am_cv_CC_dependencies_compiler_type
=none
19796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
19797 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
19798 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
19801 test "x$enable_dependency_tracking" != xno \
19802 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
19803 am__fastdepCC_TRUE
=
19804 am__fastdepCC_FALSE
='#'
19806 am__fastdepCC_TRUE
='#'
19807 am__fastdepCC_FALSE
=
19813 # --------------------- #
19814 # Checks for programs. #
19815 # --------------------- #
19818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
19819 $as_echo_n "checking whether ln -s works... " >&6; }
19821 if test "$LN_S" = "ln -s"; then
19822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19823 $as_echo "yes" >&6; }
19825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
19826 $as_echo "no, using $LN_S" >&6; }
19829 if test -n "$ac_tool_prefix"; then
19830 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
19831 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
19832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19833 $as_echo_n "checking for $ac_word... " >&6; }
19834 if test "${ac_cv_prog_RANLIB+set}" = set; then :
19835 $as_echo_n "(cached) " >&6
19837 if test -n "$RANLIB"; then
19838 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
19840 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19841 for as_dir
in $PATH
19844 test -z "$as_dir" && as_dir
=.
19845 for ac_exec_ext
in '' $ac_executable_extensions; do
19846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19847 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
19848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19857 RANLIB
=$ac_cv_prog_RANLIB
19858 if test -n "$RANLIB"; then
19859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
19860 $as_echo "$RANLIB" >&6; }
19862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19863 $as_echo "no" >&6; }
19868 if test -z "$ac_cv_prog_RANLIB"; then
19869 ac_ct_RANLIB
=$RANLIB
19870 # Extract the first word of "ranlib", so it can be a program name with args.
19871 set dummy ranlib
; ac_word
=$2
19872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19873 $as_echo_n "checking for $ac_word... " >&6; }
19874 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
19875 $as_echo_n "(cached) " >&6
19877 if test -n "$ac_ct_RANLIB"; then
19878 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
19880 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19881 for as_dir
in $PATH
19884 test -z "$as_dir" && as_dir
=.
19885 for ac_exec_ext
in '' $ac_executable_extensions; do
19886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19887 ac_cv_prog_ac_ct_RANLIB
="ranlib"
19888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19897 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
19898 if test -n "$ac_ct_RANLIB"; then
19899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
19900 $as_echo "$ac_ct_RANLIB" >&6; }
19902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19903 $as_echo "no" >&6; }
19906 if test "x$ac_ct_RANLIB" = x
; then
19909 case $cross_compiling:$ac_tool_warned in
19911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19912 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19913 ac_tool_warned
=yes ;;
19915 RANLIB
=$ac_ct_RANLIB
19918 RANLIB
="$ac_cv_prog_RANLIB"
19922 if test -n "$ac_tool_prefix"; then
19923 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
19924 set dummy
${ac_tool_prefix}ar; ac_word
=$2
19925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19926 $as_echo_n "checking for $ac_word... " >&6; }
19927 if test "${ac_cv_prog_AR+set}" = set; then :
19928 $as_echo_n "(cached) " >&6
19930 if test -n "$AR"; then
19931 ac_cv_prog_AR
="$AR" # Let the user override the test.
19933 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19934 for as_dir
in $PATH
19937 test -z "$as_dir" && as_dir
=.
19938 for ac_exec_ext
in '' $ac_executable_extensions; do
19939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19940 ac_cv_prog_AR
="${ac_tool_prefix}ar"
19941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19951 if test -n "$AR"; then
19952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
19953 $as_echo "$AR" >&6; }
19955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19956 $as_echo "no" >&6; }
19961 if test -z "$ac_cv_prog_AR"; then
19963 # Extract the first word of "ar", so it can be a program name with args.
19964 set dummy
ar; ac_word
=$2
19965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19966 $as_echo_n "checking for $ac_word... " >&6; }
19967 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
19968 $as_echo_n "(cached) " >&6
19970 if test -n "$ac_ct_AR"; then
19971 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
19973 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19974 for as_dir
in $PATH
19977 test -z "$as_dir" && as_dir
=.
19978 for ac_exec_ext
in '' $ac_executable_extensions; do
19979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19980 ac_cv_prog_ac_ct_AR
="ar"
19981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19990 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
19991 if test -n "$ac_ct_AR"; then
19992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
19993 $as_echo "$ac_ct_AR" >&6; }
19995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19996 $as_echo "no" >&6; }
19999 if test "x$ac_ct_AR" = x
; then
20002 case $cross_compiling:$ac_tool_warned in
20004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20005 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20006 ac_tool_warned
=yes ;;
20011 AR
="$ac_cv_prog_AR"
20015 # ---------------------- #
20016 # Checks for libraries. #
20017 # ---------------------- #
20019 ac_config_files
="$ac_config_files Makefile import/Makefile"
20021 ac_config_commands
="$ac_config_commands default"
20023 cat >confcache
<<\_ACEOF
20024 # This file is a shell script that caches the results of configure
20025 # tests run on this system so they can be shared between configure
20026 # scripts and configure runs, see configure's option --config-cache.
20027 # It is not useful on other systems. If it contains results you don't
20028 # want to keep, you may remove or edit it.
20030 # config.status only pays attention to the cache file if you give it
20031 # the --recheck option to rerun configure.
20033 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20034 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20035 # following values.
20039 # The following way of writing the cache mishandles newlines in values,
20040 # but we know of no workaround that is simple, portable, and efficient.
20041 # So, we kill variables containing newlines.
20042 # Ultrix sh set writes to stderr and can't be redirected directly,
20043 # and sets the high bit in the cache file unless we assign to the vars.
20045 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20046 eval ac_val
=\$
$ac_var
20050 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20051 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20054 _ | IFS | as_nl
) ;; #(
20055 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
20056 *) { eval $ac_var=; unset $ac_var;} ;;
20062 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20063 *${as_nl}ac_space
=\
*)
20064 # `set' does not quote correctly, so add quotes: double-quote
20065 # substitution turns \\\\ into \\, and sed turns \\ into \.
20068 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20071 # `set' quotes correctly as required by POSIX, so do not add quotes.
20072 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20081 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20083 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20085 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
20086 if test -w "$cache_file"; then
20087 test "x$cache_file" != "x/dev/null" &&
20088 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20089 $as_echo "$as_me: updating cache $cache_file" >&6;}
20090 cat confcache
>$cache_file
20092 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20093 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20098 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
20099 # Let make expand exec_prefix.
20100 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
20102 DEFS
=-DHAVE_CONFIG_H
20106 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
20107 # 1. Remove the extension, and $U if already installed.
20108 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
20109 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
20110 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20111 # will be set to the directory where LIBOBJS objects are built.
20112 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20113 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
20115 LIBOBJS
=$ac_libobjs
20117 LTLIBOBJS
=$ac_ltlibobjs
20120 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20121 as_fn_error
"conditional \"MAINTAINER_MODE\" was never defined.
20122 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20124 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
20125 as_fn_error
"conditional \"GL_COND_LIBTOOL\" was never defined.
20126 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20128 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
20129 as_fn_error
"conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
20130 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20132 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
20133 as_fn_error
"conditional \"GL_GENERATE_ERRNO_H\" was never defined.
20134 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20136 if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
20137 as_fn_error
"conditional \"GL_GENERATE_FLOAT_H\" was never defined.
20138 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20140 if test -z "${GL_GENERATE_FNMATCH_H_TRUE}" && test -z "${GL_GENERATE_FNMATCH_H_FALSE}"; then
20141 as_fn_error
"conditional \"GL_GENERATE_FNMATCH_H\" was never defined.
20142 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20144 if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
20145 as_fn_error
"conditional \"GL_GENERATE_LIMITS_H\" was never defined.
20146 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20148 if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
20149 as_fn_error
"conditional \"GL_GENERATE_LIMITS_H\" was never defined.
20150 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20152 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
20153 as_fn_error
"conditional \"GL_GENERATE_STDINT_H\" was never defined.
20154 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20158 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
20159 as_fn_error
"conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
20160 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20162 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
20163 as_fn_error
"conditional \"GL_GENERATE_STDDEF_H\" was never defined.
20164 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20169 if test -n "$gl_LIBOBJS"; then
20170 # Remove the extension.
20171 sed_drop_objext
='s/\.o$//;s/\.obj$//'
20172 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
20173 gl_libobjs
="$gl_libobjs $i.$ac_objext"
20174 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
20177 gl_LIBOBJS
=$gl_libobjs
20179 gl_LTLIBOBJS
=$gl_ltlibobjs
20185 if test -n "$gltests_LIBOBJS"; then
20186 # Remove the extension.
20187 sed_drop_objext
='s/\.o$//;s/\.obj$//'
20188 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
20189 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
20190 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
20193 gltests_LIBOBJS
=$gltests_libobjs
20195 gltests_LTLIBOBJS
=$gltests_ltlibobjs
20198 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20199 as_fn_error
"conditional \"AMDEP\" was never defined.
20200 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20202 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20203 as_fn_error
"conditional \"am__fastdepCC\" was never defined.
20204 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20206 if test -n "$EXEEXT"; then
20208 am__EXEEXT_FALSE
='#'
20210 am__EXEEXT_TRUE
='#'
20215 : ${CONFIG_STATUS=./config.status}
20217 ac_clean_files_save
=$ac_clean_files
20218 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
20219 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20220 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20222 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20224 # Generated by $as_me.
20225 # Run this file to recreate the current configuration.
20226 # Compiler output produced by configure, useful for debugging
20227 # configure, is in config.log if it exists.
20230 ac_cs_recheck=false
20233 SHELL=\${CONFIG_SHELL-$SHELL}
20236 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
20237 ## -------------------- ##
20238 ## M4sh Initialization. ##
20239 ## -------------------- ##
20241 # Be more Bourne compatible
20242 DUALCASE
=1; export DUALCASE
# for MKS sh
20243 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20246 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20247 # is contrary to our usage. Disable this feature.
20248 alias -g '${1+"$@"}'='"$@"'
20249 setopt NO_GLOB_SUBST
20251 case `(set -o) 2>/dev/null` in #(
20263 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20264 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20265 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20266 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20267 # Prefer a ksh shell builtin over an external printf program on Solaris,
20268 # but without wasting forks for bash or zsh.
20269 if test -z "$BASH_VERSION$ZSH_VERSION" \
20270 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20271 as_echo='print
-r --'
20272 as_echo_n='print
-rn --'
20273 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20274 as_echo='printf %s
\n'
20275 as_echo_n='printf %s
'
20277 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20278 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
20279 as_echo_n='/usr
/ucb
/echo -n'
20281 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20282 as_echo_n_body='eval
20286 expr "X$arg" : "X\\(.*\\)$as_nl";
20287 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20289 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
20291 export as_echo_n_body
20292 as_echo_n='sh
-c $as_echo_n_body as_echo
'
20294 export as_echo_body
20295 as_echo='sh
-c $as_echo_body as_echo
'
20298 # The user is always right.
20299 if test "${PATH_SEPARATOR+set}" != set; then
20301 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20302 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20309 # We need space, tab and new line, in precisely that order. Quoting is
20310 # there to prevent editors from complaining about space-tab.
20311 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20312 # splitting by setting IFS to empty value.)
20315 # Find who we are. Look in the path if we contain no directory separator.
20317 *[\\/]* ) as_myself=$0 ;;
20318 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20319 for as_dir in $PATH
20322 test -z "$as_dir" && as_dir=.
20323 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20329 # We did not find ourselves, most probably we were run as `sh COMMAND'
20330 # in which case we are not to be found in the path.
20331 if test "x$as_myself" = x
; then
20334 if test ! -f "$as_myself"; then
20335 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20339 # Unset variables that we do not need and which cause bugs (e.g. in
20340 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
20341 # suppresses any "Segmentation fault" message there. '((' could
20342 # trigger a bug in pdksh 5.2.14.
20343 for as_var
in BASH_ENV ENV MAIL MAILPATH
20344 do eval test x\
${$as_var+set} = xset \
20345 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
20358 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
20361 # as_fn_error ERROR [LINENO LOG_FD]
20362 # ---------------------------------
20363 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20364 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20365 # script with status $?, using 1 if that was 0.
20368 as_status
=$?
; test $as_status -eq 0 && as_status
=1
20370 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
20371 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
20373 $as_echo "$as_me: error: $1" >&2
20374 as_fn_exit
$as_status
20378 # as_fn_set_status STATUS
20379 # -----------------------
20380 # Set $? to STATUS, without forking.
20381 as_fn_set_status
()
20384 } # as_fn_set_status
20386 # as_fn_exit STATUS
20387 # -----------------
20388 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20392 as_fn_set_status
$1
20398 # Portably unset VAR.
20401 { eval $1=; unset $1;}
20403 as_unset
=as_fn_unset
20404 # as_fn_append VAR VALUE
20405 # ----------------------
20406 # Append the text in VALUE to the end of the definition contained in VAR. Take
20407 # advantage of any shell optimizations that allow amortized linear growth over
20408 # repeated appends, instead of the typical quadratic growth present in naive
20410 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
20411 eval 'as_fn_append ()
20422 # as_fn_arith ARG...
20423 # ------------------
20424 # Perform arithmetic evaluation on the ARGs, and store the result in the
20425 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20426 # must be portable across $(()) and expr.
20427 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
20428 eval 'as_fn_arith ()
20435 as_val
=`expr "$@" || test $? -eq 1`
20440 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
20441 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
20447 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20448 as_basename
=basename
20453 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
20459 as_me
=`$as_basename -- "$0" ||
20460 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20461 X"$0" : 'X\(//\)$' \| \
20462 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20464 sed '/^.*\/\([^/][^/]*\)\/*$/{
20478 # Avoid depending upon Character Ranges.
20479 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
20480 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20481 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
20482 as_cr_digits
='0123456789'
20483 as_cr_alnum
=$as_cr_Letters$as_cr_digits
20485 ECHO_C
= ECHO_N
= ECHO_T
=
20486 case `echo -n x` in #(((((
20488 case `echo 'xy\c'` in
20489 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
20491 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
20498 rm -f conf$$ conf$$.exe conf$$.
file
20499 if test -d conf$$.dir
; then
20500 rm -f conf$$.dir
/conf$$.
file
20503 mkdir conf$$.dir
2>/dev
/null
20505 if (echo >conf$$.
file) 2>/dev
/null
; then
20506 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
20508 # ... but there are two gotchas:
20509 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20510 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20511 # In both cases, we have to default to `cp -p'.
20512 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
20514 elif ln conf$$.
file conf$$
2>/dev
/null
; then
20522 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
20523 rmdir conf$$.dir
2>/dev
/null
20528 # Create "$as_dir" as a directory, including parents if necessary.
20533 -*) as_dir
=.
/$as_dir;;
20535 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
20539 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20540 *) as_qdir
=$as_dir;;
20542 as_dirs
="'$as_qdir' $as_dirs"
20543 as_dir
=`$as_dirname -- "$as_dir" ||
20544 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20545 X"$as_dir" : 'X\(//\)[^/]' \| \
20546 X"$as_dir" : 'X\(//\)$' \| \
20547 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20548 $as_echo X"$as_dir" |
20549 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20553 /^X\(\/\/\)[^/].*/{
20566 test -d "$as_dir" && break
20568 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
20569 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
20573 if mkdir
-p .
2>/dev
/null
; then
20574 as_mkdir_p
='mkdir -p "$as_dir"'
20576 test -d .
/-p && rmdir .
/-p
20580 if test -x / >/dev
/null
2>&1; then
20581 as_test_x
='test -x'
20583 if ls -dL / >/dev
/null
2>&1; then
20590 if test -d "$1"; then
20596 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
20597 ???[sx]*):;;*)false;;esac;fi
20601 as_executable_p
=$as_test_x
20603 # Sed expression to map a string onto a valid CPP name.
20604 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20606 # Sed expression to map a string onto a valid variable name.
20607 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20611 ## ----------------------------------- ##
20612 ## Main body of $CONFIG_STATUS script. ##
20613 ## ----------------------------------- ##
20615 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
20617 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20618 # Save the log message, to keep $0 and so on meaningful, and to
20619 # report actual input values of CONFIG_FILES etc. instead of their
20620 # values after options handling.
20622 This file was extended by $as_me, which was
20623 generated by GNU Autoconf 2.64. Invocation command line was
20625 CONFIG_FILES = $CONFIG_FILES
20626 CONFIG_HEADERS = $CONFIG_HEADERS
20627 CONFIG_LINKS = $CONFIG_LINKS
20628 CONFIG_COMMANDS = $CONFIG_COMMANDS
20631 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20636 case $ac_config_files in *"
20637 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
20640 case $ac_config_headers in *"
20641 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
20645 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20646 # Files that config.status was made for.
20647 config_files="$ac_config_files"
20648 config_headers="$ac_config_headers"
20649 config_commands="$ac_config_commands"
20653 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20655 \`$as_me' instantiates files and other configuration actions
20656 from templates according to the current configuration. Unless the files
20657 and actions are specified as TAGs, all are instantiated by default.
20659 Usage: $0 [OPTION]... [TAG]...
20661 -h, --help print this help, then exit
20662 -V, --version print version number and configuration settings, then exit
20663 -q, --quiet, --silent
20664 do not print progress messages
20665 -d, --debug don't remove temporary files
20666 --recheck update $as_me by reconfiguring in the same conditions
20667 --file=FILE[:TEMPLATE]
20668 instantiate the configuration file FILE
20669 --header=FILE[:TEMPLATE]
20670 instantiate the configuration header FILE
20672 Configuration files:
20675 Configuration headers:
20678 Configuration commands:
20681 Report bugs to the package provider."
20684 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20687 configured by $0, generated by GNU Autoconf 2.64,
20688 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20690 Copyright (C) 2009 Free Software Foundation, Inc.
20691 This config.status script is free software; the Free Software Foundation
20692 gives unlimited permission to copy, distribute and modify it."
20699 test -n "\$AWK" || AWK=awk
20702 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20703 # The default lists apply if the user does not specify any file.
20709 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
20710 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
20721 # Handling of the options.
20722 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
20724 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
20725 $as_echo "$ac_cs_version"; exit ;;
20726 --debug |
--debu |
--deb |
--de |
--d |
-d )
20728 --file |
--fil |
--fi |
--f )
20731 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20733 as_fn_append CONFIG_FILES
" '$ac_optarg'"
20734 ac_need_defaults
=false
;;
20735 --header |
--heade |
--head |
--hea )
20738 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20740 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
20741 ac_need_defaults
=false
;;
20743 # Conflict between --help and --header
20744 as_fn_error
"ambiguous option: \`$1'
20745 Try \`$0 --help' for more information.";;
20746 --help |
--hel |
-h )
20747 $as_echo "$ac_cs_usage"; exit ;;
20748 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
20749 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
20752 # This is an error.
20753 -*) as_fn_error
"unrecognized option: \`$1'
20754 Try \`$0 --help' for more information." ;;
20756 *) as_fn_append ac_config_targets
" $1"
20757 ac_need_defaults
=false
;;
20763 ac_configure_extra_args
=
20765 if $ac_cs_silent; then
20767 ac_configure_extra_args
="$ac_configure_extra_args --silent"
20771 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20772 if \$ac_cs_recheck; then
20773 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20775 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20776 CONFIG_SHELL='$SHELL'
20777 export CONFIG_SHELL
20782 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20786 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20787 ## Running $as_me. ##
20793 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20797 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20801 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20803 # Handling of arguments.
20804 for ac_config_target
in $ac_config_targets
20806 case $ac_config_target in
20807 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
20808 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
20809 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
20810 "import/Makefile") CONFIG_FILES
="$CONFIG_FILES import/Makefile" ;;
20811 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
20813 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20818 # If the user did not use the arguments to specify the items to instantiate,
20819 # then the envvar interface is used. Set only those that are not.
20820 # We use the long form for the default assignment because of an extremely
20821 # bizarre bug on SunOS 4.1.3.
20822 if $ac_need_defaults; then
20823 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
20824 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
20825 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
20828 # Have a temporary directory for convenience. Make it in the build tree
20829 # simply because there is no reason against having it here, and in addition,
20830 # creating and moving files from /tmp can sometimes cause problems.
20831 # Hook for its removal unless debugging.
20832 # Note that there is a small window in which the directory will not be cleaned:
20833 # after its creation but before its name has been assigned to `$tmp'.
20837 trap 'exit_status=$?
20838 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20840 trap 'as_fn_exit 1' 1 2 13 15
20842 # Create a (secure) tmp directory for tmp files.
20845 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20846 test -n "$tmp" && test -d "$tmp"
20849 tmp
=.
/conf$$
-$RANDOM
20850 (umask 077 && mkdir
"$tmp")
20851 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
20853 # Set up the scripts for CONFIG_FILES section.
20854 # No need to generate them if there are no CONFIG_FILES.
20855 # This happens for instance with `./config.status config.h'.
20856 if test -n "$CONFIG_FILES"; then
20859 ac_cr
=`echo X | tr X '\015'`
20860 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20861 # But we know of no other shell where ac_cr would be empty at this
20862 # point, so we can use a bashism as a fallback.
20863 if test "x$ac_cr" = x
; then
20864 eval ac_cr
=\$
\'\\r
\'
20866 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20867 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20870 ac_cs_awk_cr
=$ac_cr
20873 echo 'BEGIN {' >"$tmp/subs1.awk" &&
20878 echo "cat >conf$$subs.awk <<_ACEOF" &&
20879 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20881 } >conf$$subs.sh ||
20882 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
20883 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
20885 for ac_last_try in false false false false false :; do
20886 . ./conf$$subs.sh ||
20887 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
20889 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
20890 if test $ac_delim_n = $ac_delim_num; then
20892 elif $ac_last_try; then
20893 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
20895 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
20898 rm -f conf$$subs.sh
20900 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20901 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
20905 s/^/S["/; s
/!.
*/"]=/
20915 s/\(.\{148\}\).*/\1/
20917 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
20922 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
20929 s/\(.\{148\}\).*/\1/
20931 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
20935 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
20940 ' <conf$$subs.awk | sed '
20945 ' >>$CONFIG_STATUS || ac_write_fail=1
20946 rm -f conf$$subs.awk
20947 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20949 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
20950 for (key in S) S_is_set[key] = 1
20956 nfields = split(line, field, "@
")
20958 len = length(field[1])
20959 for (i = 2; i < nfields; i++) {
20961 keylen = length(key)
20962 if (S_is_set[key]) {
20964 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20965 len += length(value) + length(field[++i])
20976 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20977 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20978 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
20981 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
20982 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
20985 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20986 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
20987 # trailing colons and then remove the whole line if VPATH becomes empty
20988 # (actually we leave an empty line to preserve line numbers).
20989 if test "x
$srcdir" = x.; then
20990 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20991 s/:*\$(srcdir):*/:/
20992 s/:*\${srcdir}:*/:/
20994 s/^\([^=]*=[ ]*\):*/\1/
21000 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21001 fi # test -n "$CONFIG_FILES"
21003 # Set up the scripts for CONFIG_HEADERS section.
21004 # No need to generate them if there are no CONFIG_HEADERS.
21005 # This happens for instance with `./config.status Makefile'.
21006 if test -n "$CONFIG_HEADERS"; then
21007 cat >"$tmp/defines.
awk" <<\_ACAWK ||
21011 # Transform confdefs.h into an awk script `defines.awk', embedded as
21012 # here-document in config.status, that substitutes the proper values into
21013 # config.h.in to produce config.h.
21015 # Create a delimiter string that does not exist in confdefs.h, to ease
21016 # handling of long lines.
21018 for ac_last_try in false false :; do
21019 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
21020 if test -z "$ac_t"; then
21022 elif $ac_last_try; then
21023 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
21025 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
21029 # For the awk script, D is an array of macro values keyed by name,
21030 # likewise P contains macro parameters if any. Preserve backslash
21031 # newline sequences.
21033 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21035 s/.\{148\}/&'"$ac_delim"'/g
21038 s/^[ ]*#[ ]*define[ ][ ]*/ /
21045 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
21047 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
21051 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
21052 D["\
1"]=" \
3\\\\\\n
"\\/p
21054 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
21059 s/.\{148\}/&'"$ac_delim"'/g
21064 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
21067 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
21069 ' <confdefs.h | sed '
21070 s/'"$ac_delim"'/"\\\
21071 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21073 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21074 for (key in D) D_is_set[key] = 1
21077 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21079 split(line, arg, " ")
21080 if (arg[1] == "#") {
21084 defundef
= substr
(arg
[1], 2)
21087 split(mac1
, mac2
, "(") #)
21089 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
21090 if (D_is_set
[macro
]) {
21091 # Preserve the white space surrounding the "#".
21092 print prefix
"define", macro P
[macro
] D
[macro
]
21095 # Replace #undef with comments. This is necessary, for example,
21096 # in the case of _POSIX_SOURCE, which is predefined and required
21097 # on some systems where configure will not decide to define it.
21098 if (defundef
== "undef") {
21099 print
"/*", prefix defundef
, macro
, "*/"
21107 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
21108 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
21109 fi # test -n "$CONFIG_HEADERS"
21112 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21117 :[FHLC
]) ac_mode
=$ac_tag; continue;;
21119 case $ac_mode$ac_tag in
21121 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
21122 :[FH
]-) ac_tag
=-:-;;
21123 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
21140 -) ac_f
="$tmp/stdin";;
21141 *) # Look for the file first in the build tree, then in the source tree
21142 # (if the path is not absolute). The absolute path cannot be DOS-style,
21143 # because $ac_f cannot contain `:'.
21147 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
21149 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
21151 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21152 as_fn_append ac_file_inputs
" '$ac_f'"
21155 # Let's still pretend it is `configure' which instantiates (i.e., don't
21156 # use $as_me), people would be surprised to read:
21157 # /* config.h. Generated by config.status. */
21158 configure_input
='Generated from '`
21159 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21161 if test x
"$ac_file" != x-
; then
21162 configure_input
="$ac_file. $configure_input"
21163 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21164 $as_echo "$as_me: creating $ac_file" >&6;}
21166 # Neutralize special characters interpreted by sed in replacement strings.
21167 case $configure_input in #(
21168 *\
&* |
*\|
* |
*\\* )
21169 ac_sed_conf_input
=`$as_echo "$configure_input" |
21170 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21171 *) ac_sed_conf_input
=$configure_input;;
21175 *:-:* |
*:-) cat >"$tmp/stdin" \
21176 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
21181 ac_dir
=`$as_dirname -- "$ac_file" ||
21182 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21183 X"$ac_file" : 'X\(//\)[^/]' \| \
21184 X"$ac_file" : 'X\(//\)$' \| \
21185 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21186 $as_echo X"$ac_file" |
21187 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21191 /^X\(\/\/\)[^/].*/{
21204 as_dir
="$ac_dir"; as_fn_mkdir_p
21208 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
21210 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21211 # A ".." for each directory in $ac_dir_suffix.
21212 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21213 case $ac_top_builddir_sub in
21214 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
21215 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
21218 ac_abs_top_builddir
=$ac_pwd
21219 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
21220 # for backward compatibility:
21221 ac_top_builddir
=$ac_top_build_prefix
21224 .
) # We are building in place.
21226 ac_top_srcdir
=$ac_top_builddir_sub
21227 ac_abs_top_srcdir
=$ac_pwd ;;
21228 [\\/]* | ?
:[\\/]* ) # Absolute name.
21229 ac_srcdir
=$srcdir$ac_dir_suffix;
21230 ac_top_srcdir
=$srcdir
21231 ac_abs_top_srcdir
=$srcdir ;;
21232 *) # Relative name.
21233 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
21234 ac_top_srcdir
=$ac_top_build_prefix$srcdir
21235 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
21237 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
21247 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
21248 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
21250 ac_MKDIR_P
=$MKDIR_P
21252 [\\/$
]* | ?
:[\\/]* ) ;;
21253 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
21257 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
21258 # If the template does not know about datarootdir, expand it.
21259 # FIXME: This hack should be removed a few years after 2.60.
21260 ac_datarootdir_hack
=; ac_datarootdir_seen
=
21271 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21272 *datarootdir
*) ac_datarootdir_seen
=yes;;
21273 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
21274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21275 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21277 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21278 ac_datarootdir_hack='
21279 s&@datadir@&$datadir&g
21280 s&@docdir@&$docdir&g
21281 s&@infodir@&$infodir&g
21282 s&@localedir@&$localedir&g
21283 s&@mandir@&$mandir&g
21284 s&\\\${datarootdir}&$datarootdir&g' ;;
21288 # Neutralize VPATH when `$srcdir' = `.'.
21289 # Shell code in configure.ac might set extrasub.
21290 # FIXME: do we really want to maintain this feature?
21291 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21292 ac_sed_extra="$ac_vpsub
21295 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
21297 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
21298 s|@configure_input@|
$ac_sed_conf_input|
;t t
21299 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
21300 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
21301 s
&@srcdir@
&$ac_srcdir&;t t
21302 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
21303 s
&@top_srcdir@
&$ac_top_srcdir&;t t
21304 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
21305 s
&@builddir@
&$ac_builddir&;t t
21306 s
&@abs_builddir@
&$ac_abs_builddir&;t t
21307 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
21308 s
&@INSTALL@
&$ac_INSTALL&;t t
21309 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
21310 $ac_datarootdir_hack
21312 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
21313 || as_fn_error "could not create
$ac_file" "$LINENO" 5
21315 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21316 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
21317 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
21318 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
21319 which seems to be undefined. Please make sure it is defined." >&5
21320 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
21321 which seems to be undefined. Please make sure it is defined." >&2;}
21325 -) cat "$tmp/out" && rm -f "$tmp/out";;
21326 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
21328 || as_fn_error "could not create $ac_file" "$LINENO" 5
21334 if test x"$ac_file" != x-; then
21336 $as_echo "/* $configure_input */" \
21337 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
21338 } >"$tmp/config.h" \
21339 || as_fn_error "could not create $ac_file" "$LINENO" 5
21340 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
21341 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21342 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21345 mv "$tmp/config.h" "$ac_file" \
21346 || as_fn_error "could not create $ac_file" "$LINENO" 5
21349 $as_echo "/* $configure_input */" \
21350 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
21351 || as_fn_error "could not create -" "$LINENO" 5
21353 # Compute "$ac_file"'s index
in $config_headers.
21356 for _am_header
in $config_headers :; do
21357 case $_am_header in
21358 $_am_arg |
$_am_arg:* )
21361 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
21364 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21365 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21366 X"$_am_arg" : 'X\(//\)[^/]' \| \
21367 X"$_am_arg" : 'X\(//\)$' \| \
21368 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21369 $as_echo X"$_am_arg" |
21370 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21374 /^X\(\/\/\)[^/].*/{
21386 s/.*/./; q'`/stamp-h
$_am_stamp_count
21389 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21390 $as_echo "$as_me: executing $ac_file commands" >&6;}
21395 case $ac_file$ac_mode in
21396 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
21397 # Autoconf 2.62 quotes --file arguments for eval, but not when files
21398 # are listed without --file. Let's play safe and only enable the eval
21399 # if we detect the quoting.
21400 case $CONFIG_FILES in
21401 *\'*) eval set x
"$CONFIG_FILES" ;;
21402 *) set x
$CONFIG_FILES ;;
21407 # Strip MF so we end up with the name of the file.
21408 mf
=`echo "$mf" | sed -e 's/:.*$//'`
21409 # Check whether this is an Automake generated Makefile or not.
21410 # We used to match only the files named `Makefile.in', but
21411 # some people rename them; so instead we look at the file content.
21412 # Grep'ing the first line is not enough: some people post-process
21413 # each Makefile.in and add a new line on top of each file to say so.
21414 # Grep'ing the whole file is not good either: AIX grep has a line
21415 # limit of 2048, but all sed's we know have understand at least 4000.
21416 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
21417 dirpart
=`$as_dirname -- "$mf" ||
21418 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21419 X"$mf" : 'X\(//\)[^/]' \| \
21420 X"$mf" : 'X\(//\)$' \| \
21421 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21423 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21427 /^X\(\/\/\)[^/].*/{
21443 # Extract the definition of DEPDIR, am__include, and am__quote
21444 # from the Makefile without running `make'.
21445 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
21446 test -z "$DEPDIR" && continue
21447 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
21448 test -z "am__include" && continue
21449 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
21450 # When using ansi2knr, U may be empty or an underscore; expand it
21451 U
=`sed -n 's/^U = //p' < "$mf"`
21452 # Find all dependency output files, they are included files with
21453 # $(DEPDIR) in their names. We invoke sed twice because it is the
21454 # simplest approach to changing $(DEPDIR) to its actual value in the
21456 for file in `sed -n "
21457 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21458 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21459 # Make sure the directory exists.
21460 test -f "$dirpart/$file" && continue
21461 fdir
=`$as_dirname -- "$file" ||
21462 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21463 X"$file" : 'X\(//\)[^/]' \| \
21464 X"$file" : 'X\(//\)$' \| \
21465 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21466 $as_echo X"$file" |
21467 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21471 /^X\(\/\/\)[^/].*/{
21484 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
21485 # echo "creating $dirpart/$file"
21486 echo '# dummy' > "$dirpart/$file"
21492 case x
$CONFIG_HEADERS in
21493 xconfig.h
:config.
in)
21504 ac_clean_files
=$ac_clean_files_save
21506 test $ac_write_fail = 0 ||
21507 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
21510 # configure is writing to config.log, and then calls config.status.
21511 # config.status does its own redirection, appending to config.log.
21512 # Unfortunately, on DOS this fails, as config.log is still kept open
21513 # by configure, so config.status won't be able to write to it; its
21514 # output is simply discarded. So we exec the FD to /dev/null,
21515 # effectively closing config.log, so it can be properly (re)opened and
21516 # appended to by config.status. When coming back to configure, we
21517 # need to make the FD available again.
21518 if test "$no_create" != yes; then
21520 ac_config_status_args
=
21521 test "$silent" = yes &&
21522 ac_config_status_args
="$ac_config_status_args --quiet"
21524 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
21526 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21527 # would make configure fail if this is the last instruction.
21528 $ac_cs_success || as_fn_exit $?
21530 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
21531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21532 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}