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
1563 HAVE_DECL_GETLOADAVG
1564 HAVE_CANONICALIZE_FILE_NAME
1575 GNULIB_SECURE_GETENV
1578 GNULIB_REALLOC_POSIX
1596 GNULIB_CANONICALIZE_FILE_NAME
1600 GL_GENERATE_ALLOCA_H_FALSE
1601 GL_GENERATE_ALLOCA_H_TRUE
1604 GL_COND_LIBTOOL_FALSE
1605 GL_COND_LIBTOOL_TRUE
1632 MAINTAINER_MODE_FALSE
1633 MAINTAINER_MODE_TRUE
1661 program_transform_name
1674 enable_option_checking
1675 enable_maintainer_mode
1677 enable_dependency_tracking
1679 ac_precious_vars
='build_alias
1690 # Initialize some variables set by options.
1692 ac_init_version
=false
1693 ac_unrecognized_opts
=
1694 ac_unrecognized_sep
=
1695 # The variables have the same names as the options, with
1696 # dashes changed to underlines.
1697 cache_file
=/dev
/null
1704 program_transform_name
=s
,x
,x
,
1712 # Installation directory options.
1713 # These are left unexpanded so users can "make install exec_prefix=/foo"
1714 # and all the variables that are supposed to be based on exec_prefix
1715 # by default will actually change.
1716 # Use braces instead of parens because sh, perl, etc. also accept them.
1717 # (The list follows the same order as the GNU Coding Standards.)
1718 bindir
='${exec_prefix}/bin'
1719 sbindir
='${exec_prefix}/sbin'
1720 libexecdir
='${exec_prefix}/libexec'
1721 datarootdir
='${prefix}/share'
1722 datadir
='${datarootdir}'
1723 sysconfdir
='${prefix}/etc'
1724 sharedstatedir
='${prefix}/com'
1725 localstatedir
='${prefix}/var'
1726 includedir
='${prefix}/include'
1727 oldincludedir
='/usr/include'
1728 docdir
='${datarootdir}/doc/${PACKAGE}'
1729 infodir
='${datarootdir}/info'
1734 libdir
='${exec_prefix}/lib'
1735 localedir
='${datarootdir}/locale'
1736 mandir
='${datarootdir}/man'
1742 # If the previous option needs an argument, assign it.
1743 if test -n "$ac_prev"; then
1744 eval $ac_prev=\
$ac_option
1750 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1754 # Accept the important Cygnus configure options, so we can diagnose typos.
1756 case $ac_dashdash$ac_option in
1760 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1762 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1763 bindir
=$ac_optarg ;;
1765 -build |
--build |
--buil |
--bui |
--bu)
1766 ac_prev
=build_alias
;;
1767 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1768 build_alias
=$ac_optarg ;;
1770 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1771 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1772 ac_prev
=cache_file
;;
1773 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1774 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1775 cache_file
=$ac_optarg ;;
1777 --config-cache |
-C)
1778 cache_file
=config.cache
;;
1780 -datadir |
--datadir |
--datadi |
--datad)
1782 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1783 datadir
=$ac_optarg ;;
1785 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1786 |
--dataroo |
--dataro |
--datar)
1787 ac_prev
=datarootdir
;;
1788 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1789 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1790 datarootdir
=$ac_optarg ;;
1792 -disable-* |
--disable-*)
1793 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1794 # Reject names that are not valid shell variable names.
1795 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1796 as_fn_error
"invalid feature name: $ac_useropt"
1797 ac_useropt_orig
=$ac_useropt
1798 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1799 case $ac_user_opts in
1801 "enable_
$ac_useropt"
1803 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1804 ac_unrecognized_sep
=', ';;
1806 eval enable_
$ac_useropt=no
;;
1808 -docdir |
--docdir |
--docdi |
--doc |
--do)
1810 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1811 docdir
=$ac_optarg ;;
1813 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1815 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1816 dvidir
=$ac_optarg ;;
1818 -enable-* |
--enable-*)
1819 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1820 # Reject names that are not valid shell variable names.
1821 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1822 as_fn_error
"invalid feature name: $ac_useropt"
1823 ac_useropt_orig
=$ac_useropt
1824 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1825 case $ac_user_opts in
1827 "enable_
$ac_useropt"
1829 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1830 ac_unrecognized_sep
=', ';;
1832 eval enable_
$ac_useropt=\
$ac_optarg ;;
1834 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1835 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1836 |
--exec |
--exe |
--ex)
1837 ac_prev
=exec_prefix
;;
1838 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1839 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1840 |
--exec=* |
--exe=* |
--ex=*)
1841 exec_prefix
=$ac_optarg ;;
1843 -gas |
--gas |
--ga |
--g)
1844 # Obsolete; use --with-gas.
1847 -help |
--help |
--hel |
--he |
-h)
1848 ac_init_help
=long
;;
1849 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1850 ac_init_help
=recursive
;;
1851 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1852 ac_init_help
=short
;;
1854 -host |
--host |
--hos |
--ho)
1855 ac_prev
=host_alias
;;
1856 -host=* |
--host=* |
--hos=* |
--ho=*)
1857 host_alias
=$ac_optarg ;;
1859 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1861 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1863 htmldir
=$ac_optarg ;;
1865 -includedir |
--includedir |
--includedi |
--included |
--include \
1866 |
--includ |
--inclu |
--incl |
--inc)
1867 ac_prev
=includedir
;;
1868 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1869 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1870 includedir
=$ac_optarg ;;
1872 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1874 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1875 infodir
=$ac_optarg ;;
1877 -libdir |
--libdir |
--libdi |
--libd)
1879 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1880 libdir
=$ac_optarg ;;
1882 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1883 |
--libexe |
--libex |
--libe)
1884 ac_prev
=libexecdir
;;
1885 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1886 |
--libexe=* |
--libex=* |
--libe=*)
1887 libexecdir
=$ac_optarg ;;
1889 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1890 ac_prev
=localedir
;;
1891 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1892 localedir
=$ac_optarg ;;
1894 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1895 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1896 ac_prev
=localstatedir
;;
1897 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1898 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1899 localstatedir
=$ac_optarg ;;
1901 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1903 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1904 mandir
=$ac_optarg ;;
1906 -nfp |
--nfp |
--nf)
1907 # Obsolete; use --without-fp.
1910 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1911 |
--no-cr |
--no-c |
-n)
1914 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1915 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1918 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1919 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1920 |
--oldin |
--oldi |
--old |
--ol |
--o)
1921 ac_prev
=oldincludedir
;;
1922 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1923 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1924 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1925 oldincludedir
=$ac_optarg ;;
1927 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1929 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1930 prefix
=$ac_optarg ;;
1932 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1933 |
--program-pre |
--program-pr |
--program-p)
1934 ac_prev
=program_prefix
;;
1935 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1936 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1937 program_prefix
=$ac_optarg ;;
1939 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1940 |
--program-suf |
--program-su |
--program-s)
1941 ac_prev
=program_suffix
;;
1942 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1943 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1944 program_suffix
=$ac_optarg ;;
1946 -program-transform-name |
--program-transform-name \
1947 |
--program-transform-nam |
--program-transform-na \
1948 |
--program-transform-n |
--program-transform- \
1949 |
--program-transform |
--program-transfor \
1950 |
--program-transfo |
--program-transf \
1951 |
--program-trans |
--program-tran \
1952 |
--progr-tra |
--program-tr |
--program-t)
1953 ac_prev
=program_transform_name
;;
1954 -program-transform-name=* |
--program-transform-name=* \
1955 |
--program-transform-nam=* |
--program-transform-na=* \
1956 |
--program-transform-n=* |
--program-transform-=* \
1957 |
--program-transform=* |
--program-transfor=* \
1958 |
--program-transfo=* |
--program-transf=* \
1959 |
--program-trans=* |
--program-tran=* \
1960 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1961 program_transform_name
=$ac_optarg ;;
1963 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1965 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1966 pdfdir
=$ac_optarg ;;
1968 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1970 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1973 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1974 |
-silent |
--silent |
--silen |
--sile |
--sil)
1977 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1979 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1981 sbindir
=$ac_optarg ;;
1983 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1984 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1985 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1987 ac_prev
=sharedstatedir
;;
1988 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1989 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1990 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1992 sharedstatedir
=$ac_optarg ;;
1994 -site |
--site |
--sit)
1996 -site=* |
--site=* |
--sit=*)
1999 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
2001 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
2002 srcdir
=$ac_optarg ;;
2004 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
2005 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
2006 ac_prev
=sysconfdir
;;
2007 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
2008 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
2009 sysconfdir
=$ac_optarg ;;
2011 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
2012 ac_prev
=target_alias
;;
2013 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
2014 target_alias
=$ac_optarg ;;
2016 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
2019 -version |
--version |
--versio |
--versi |
--vers |
-V)
2020 ac_init_version
=: ;;
2023 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
2024 # Reject names that are not valid shell variable names.
2025 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
2026 as_fn_error
"invalid package name: $ac_useropt"
2027 ac_useropt_orig
=$ac_useropt
2028 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2029 case $ac_user_opts in
2033 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
2034 ac_unrecognized_sep
=', ';;
2036 eval with_
$ac_useropt=\
$ac_optarg ;;
2038 -without-* |
--without-*)
2039 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
2040 # Reject names that are not valid shell variable names.
2041 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
2042 as_fn_error
"invalid package name: $ac_useropt"
2043 ac_useropt_orig
=$ac_useropt
2044 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2045 case $ac_user_opts in
2049 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
2050 ac_unrecognized_sep
=', ';;
2052 eval with_
$ac_useropt=no
;;
2055 # Obsolete; use --with-x.
2058 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
2059 |
--x-incl |
--x-inc |
--x-in |
--x-i)
2060 ac_prev
=x_includes
;;
2061 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
2062 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
2063 x_includes
=$ac_optarg ;;
2065 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
2066 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
2067 ac_prev
=x_libraries
;;
2068 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
2069 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
2070 x_libraries
=$ac_optarg ;;
2072 -*) as_fn_error
"unrecognized option: \`$ac_option'
2073 Try \`$0 --help' for more information."
2077 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
2078 # Reject names that are not valid shell variable names.
2079 case $ac_envvar in #(
2080 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
2081 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
2083 eval $ac_envvar=\
$ac_optarg
2084 export $ac_envvar ;;
2087 # FIXME: should be removed in autoconf 3.0.
2088 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
2089 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
2090 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
2091 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
2097 if test -n "$ac_prev"; then
2098 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
2099 as_fn_error
"missing argument to $ac_option"
2102 if test -n "$ac_unrecognized_opts"; then
2103 case $enable_option_checking in
2105 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
2106 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2110 # Check all directory arguments for consistency.
2111 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
2112 datadir sysconfdir sharedstatedir localstatedir includedir \
2113 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2114 libdir localedir mandir
2116 eval ac_val
=\$
$ac_var
2117 # Remove trailing slashes.
2120 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
2121 eval $ac_var=\
$ac_val;;
2123 # Be sure to have absolute directory names.
2125 [\\/$
]* | ?
:[\\/]* ) continue;;
2126 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
2128 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
2131 # There might be people who depend on the old broken behavior: `$host'
2132 # used to hold the argument of --host etc.
2133 # FIXME: To remove some day.
2136 target
=$target_alias
2138 # FIXME: To remove some day.
2139 if test "x$host_alias" != x
; then
2140 if test "x$build_alias" = x
; then
2141 cross_compiling
=maybe
2142 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
2143 If a cross compiler is detected then cross compile mode will be used." >&2
2144 elif test "x$build_alias" != "x$host_alias"; then
2150 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
2152 test "$silent" = yes && exec 6>/dev
/null
2155 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
2156 ac_ls_di
=`ls -di .` &&
2157 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
2158 as_fn_error
"working directory cannot be determined"
2159 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2160 as_fn_error
"pwd does not report name of working directory"
2163 # Find the source files, if location was not specified.
2164 if test -z "$srcdir"; then
2165 ac_srcdir_defaulted
=yes
2166 # Try the directory containing this script, then the parent directory.
2167 ac_confdir
=`$as_dirname -- "$as_myself" ||
2168 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2169 X"$as_myself" : 'X\(//\)[^/]' \| \
2170 X"$as_myself" : 'X\(//\)$' \| \
2171 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2172 $as_echo X"$as_myself" |
2173 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2191 if test ! -r "$srcdir/$ac_unique_file"; then
2195 ac_srcdir_defaulted
=no
2197 if test ! -r "$srcdir/$ac_unique_file"; then
2198 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
2199 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
2201 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
2203 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
2205 # When building in place, set srcdir=.
2206 if test "$ac_abs_confdir" = "$ac_pwd"; then
2209 # Remove unnecessary trailing slashes from srcdir.
2210 # Double slashes in file names in object file debugging info
2211 # mess up M-x gdb in Emacs.
2213 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2215 for ac_var
in $ac_precious_vars; do
2216 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
2217 eval ac_env_
${ac_var}_value
=\$
${ac_var}
2218 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
2219 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
2223 # Report the --help message.
2225 if test "$ac_init_help" = "long"; then
2226 # Omit some internal or obsolete options to make the list less imposing.
2227 # This message is too long to be a string in the A/UX 3.1 sh.
2229 \`configure' configures this package to adapt to many kinds of systems.
2231 Usage: $0 [OPTION]... [VAR=VALUE]...
2233 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2234 VAR=VALUE. See below for descriptions of some of the useful variables.
2236 Defaults for the options are specified in brackets.
2239 -h, --help display this help and exit
2240 --help=short display options specific to this package
2241 --help=recursive display the short help of all the included packages
2242 -V, --version display version information and exit
2243 -q, --quiet, --silent do not print \`checking...' messages
2244 --cache-file=FILE cache test results in FILE [disabled]
2245 -C, --config-cache alias for \`--cache-file=config.cache'
2246 -n, --no-create do not create output files
2247 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2249 Installation directories:
2250 --prefix=PREFIX install architecture-independent files in PREFIX
2251 [$ac_default_prefix]
2252 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2255 By default, \`make install' will install all the files in
2256 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2257 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2258 for instance \`--prefix=\$HOME'.
2260 For better control, use the options below.
2262 Fine tuning of the installation directories:
2263 --bindir=DIR user executables [EPREFIX/bin]
2264 --sbindir=DIR system admin executables [EPREFIX/sbin]
2265 --libexecdir=DIR program executables [EPREFIX/libexec]
2266 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2267 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2268 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2269 --libdir=DIR object code libraries [EPREFIX/lib]
2270 --includedir=DIR C header files [PREFIX/include]
2271 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2272 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2273 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2274 --infodir=DIR info documentation [DATAROOTDIR/info]
2275 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2276 --mandir=DIR man documentation [DATAROOTDIR/man]
2277 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
2278 --htmldir=DIR html documentation [DOCDIR]
2279 --dvidir=DIR dvi documentation [DOCDIR]
2280 --pdfdir=DIR pdf documentation [DOCDIR]
2281 --psdir=DIR ps documentation [DOCDIR]
2287 --program-prefix=PREFIX prepend PREFIX to installed program names
2288 --program-suffix=SUFFIX append SUFFIX to installed program names
2289 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
2292 --build=BUILD configure
for building on BUILD
[guessed
]
2293 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
2294 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
2298 if test -n "$ac_init_help"; then
2303 --disable-option-checking ignore unrecognized
--enable/--with options
2304 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
2305 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
2306 --enable-maintainer-mode enable make rules and dependencies not useful
2307 (and sometimes confusing
) to the casual installer
2308 --disable-largefile omit support
for large files
2309 --disable-dependency-tracking speeds up one-time build
2310 --enable-dependency-tracking do not reject slow dependency extractors
2312 Some influential environment variables
:
2313 CC C compiler
command
2314 CFLAGS C compiler flags
2315 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
2316 nonstandard directory
<lib dir
>
2317 LIBS libraries to pass to the linker
, e.g.
-l<library
>
2318 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
2319 you have headers
in a nonstandard directory
<include dir
>
2322 Use these variables to override the choices made by
`configure' or to help
2323 it to find libraries and programs with nonstandard names/locations.
2325 Report bugs to the package provider.
2330 if test "$ac_init_help" = "recursive"; then
2331 # If there are subdirs, report their specific --help.
2332 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2333 test -d "$ac_dir" ||
2334 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2339 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2341 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
2342 # A ".." for each directory in $ac_dir_suffix.
2343 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
2344 case $ac_top_builddir_sub in
2345 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2346 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2349 ac_abs_top_builddir=$ac_pwd
2350 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2351 # for backward compatibility:
2352 ac_top_builddir=$ac_top_build_prefix
2355 .) # We are building in place.
2357 ac_top_srcdir=$ac_top_builddir_sub
2358 ac_abs_top_srcdir=$ac_pwd ;;
2359 [\\/]* | ?:[\\/]* ) # Absolute name.
2360 ac_srcdir=$srcdir$ac_dir_suffix;
2361 ac_top_srcdir=$srcdir
2362 ac_abs_top_srcdir=$srcdir ;;
2364 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2365 ac_top_srcdir=$ac_top_build_prefix$srcdir
2366 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2368 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2370 cd "$ac_dir" || { ac_status=$?; continue; }
2371 # Check for guested configure.
2372 if test -f "$ac_srcdir/configure.gnu"; then
2374 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2375 elif test -f "$ac_srcdir/configure"; then
2377 $SHELL "$ac_srcdir/configure" --help=recursive
2379 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2381 cd "$ac_pwd" || { ac_status=$?; break; }
2385 test -n "$ac_init_help" && exit $ac_status
2386 if $ac_init_version; then
2389 generated by GNU Autoconf 2.64
2391 Copyright (C) 2009 Free Software Foundation, Inc.
2392 This configure script is free software; the Free Software Foundation
2393 gives unlimited permission to copy, distribute and modify it.
2398 ## ------------------------ ##
2399 ## Autoconf initialization. ##
2400 ## ------------------------ ##
2402 # ac_fn_c_try_compile LINENO
2403 # --------------------------
2404 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2405 ac_fn_c_try_compile ()
2407 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2408 rm -f conftest.$ac_objext
2409 if { { ac_try="$ac_compile"
2411 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2412 *) ac_try_echo
=$ac_try;;
2414 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2415 $as_echo "$ac_try_echo"; } >&5
2416 (eval "$ac_compile") 2>conftest.err
2418 if test -s conftest.err
; then
2419 grep -v '^ *+' conftest.err
>conftest.er1
2420 cat conftest.er1
>&5
2421 mv -f conftest.er1 conftest.err
2423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2424 test $ac_status = 0; } && {
2425 test -z "$ac_c_werror_flag" ||
2426 test ! -s conftest.err
2427 } && test -s conftest.
$ac_objext; then :
2430 $as_echo "$as_me: failed program was:" >&5
2431 sed 's/^/| /' conftest.
$ac_ext >&5
2435 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2438 } # ac_fn_c_try_compile
2440 # ac_fn_c_try_cpp LINENO
2441 # ----------------------
2442 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2445 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2446 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2448 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2449 *) ac_try_echo=$ac_try;;
2451 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2452 $as_echo "$ac_try_echo"; } >&5
2453 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2455 if test -s conftest.err; then
2456 grep -v '^ *+' conftest.err >conftest.er1
2457 cat conftest.er1 >&5
2458 mv -f conftest.er1 conftest.err
2460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2461 test $ac_status = 0; } >/dev/null && {
2462 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2463 test ! -s conftest.err
2467 $as_echo "$as_me: failed program was:" >&5
2468 sed 's/^/| /' conftest.$ac_ext >&5
2472 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2477 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2478 # -------------------------------------------------------
2479 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2480 # the include files in INCLUDES and setting the cache variable VAR
2482 ac_fn_c_check_header_mongrel ()
2484 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2485 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2487 $as_echo_n "checking for $2... " >&6; }
2488 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2489 $as_echo_n "(cached) " >&6
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2493 $as_echo "$ac_res" >&6; }
2495 # Is the header compilable?
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2497 $as_echo_n "checking $2 usability... " >&6; }
2498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2499 /* end confdefs.h. */
2503 if ac_fn_c_try_compile "$LINENO"; then :
2504 ac_header_compiler=yes
2506 ac_header_compiler=no
2508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2510 $as_echo "$ac_header_compiler" >&6; }
2512 # Is the header present?
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2514 $as_echo_n "checking $2 presence... " >&6; }
2515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2516 /* end confdefs.h. */
2519 if ac_fn_c_try_cpp "$LINENO"; then :
2520 ac_header_preproc=yes
2522 ac_header_preproc=no
2524 rm -f conftest.err conftest.$ac_ext
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2526 $as_echo "$ac_header_preproc" >&6; }
2528 # So? What about this header?
2529 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2532 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2534 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2538 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2540 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2542 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2544 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2546 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2550 $as_echo_n "checking for $2... " >&6; }
2551 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2552 $as_echo_n "(cached) " >&6
2554 eval "$3=\$ac_header_compiler"
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2558 $as_echo "$ac_res" >&6; }
2560 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2562 } # ac_fn_c_check_header_mongrel
2564 # ac_fn_c_try_run LINENO
2565 # ----------------------
2566 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2567 # that executables *can* be run.
2570 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2571 if { { ac_try="$ac_link"
2573 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2574 *) ac_try_echo
=$ac_try;;
2576 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2577 $as_echo "$ac_try_echo"; } >&5
2578 (eval "$ac_link") 2>&5
2580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2581 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2582 { { case "(($ac_try" in
2583 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2584 *) ac_try_echo=$ac_try;;
2586 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2587 $as_echo "$ac_try_echo"; } >&5
2588 (eval "$ac_try") 2>&5
2590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2591 test $ac_status = 0; }; }; then :
2594 $as_echo "$as_me: program exited with status $ac_status" >&5
2595 $as_echo "$as_me: failed program was:" >&5
2596 sed 's/^/| /' conftest.$ac_ext >&5
2598 ac_retval=$ac_status
2600 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2601 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2606 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2607 # -------------------------------------------------------
2608 # Tests whether HEADER exists and can be compiled using the include files in
2609 # INCLUDES, setting the cache variable VAR accordingly.
2610 ac_fn_c_check_header_compile ()
2612 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2614 $as_echo_n "checking for $2... " >&6; }
2615 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2616 $as_echo_n "(cached) " >&6
2618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2619 /* end confdefs.h. */
2623 if ac_fn_c_try_compile "$LINENO"; then :
2628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2632 $as_echo "$ac_res" >&6; }
2633 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2635 } # ac_fn_c_check_header_compile
2637 # ac_fn_c_try_link LINENO
2638 # -----------------------
2639 # Try to link conftest.$ac_ext, and return whether this succeeded.
2642 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2643 rm -f conftest.$ac_objext conftest$ac_exeext
2644 if { { ac_try="$ac_link"
2646 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2647 *) ac_try_echo
=$ac_try;;
2649 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2650 $as_echo "$ac_try_echo"; } >&5
2651 (eval "$ac_link") 2>conftest.err
2653 if test -s conftest.err
; then
2654 grep -v '^ *+' conftest.err
>conftest.er1
2655 cat conftest.er1
>&5
2656 mv -f conftest.er1 conftest.err
2658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2659 test $ac_status = 0; } && {
2660 test -z "$ac_c_werror_flag" ||
2661 test ! -s conftest.err
2662 } && test -s conftest
$ac_exeext && {
2663 test "$cross_compiling" = yes ||
2664 $as_test_x conftest
$ac_exeext
2668 $as_echo "$as_me: failed program was:" >&5
2669 sed 's/^/| /' conftest.
$ac_ext >&5
2673 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2674 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2675 # interfere with the next link command; also delete a directory that is
2676 # left behind by Apple's compiler. We do this before executing the actions.
2677 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2678 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2681 } # ac_fn_c_try_link
2683 # ac_fn_c_check_func LINENO FUNC VAR
2684 # ----------------------------------
2685 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2686 ac_fn_c_check_func
()
2688 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2690 $as_echo_n "checking for $2... " >&6; }
2691 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2692 $as_echo_n "(cached) " >&6
2694 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2695 /* end confdefs.h. */
2696 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2697 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2698 #define $2 innocuous_$2
2700 /* System header to define __stub macros and hopefully few prototypes,
2701 which can conflict with char $2 (); below.
2702 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2703 <limits.h> exists even on freestanding compilers. */
2706 # include <limits.h>
2708 # include <assert.h>
2713 /* Override any GCC internal prototype to avoid an error.
2714 Use char because int might match the return type of a GCC
2715 builtin and then its argument prototype would still apply. */
2720 /* The GNU C library defines this for functions which it implements
2721 to always fail with ENOSYS. Some functions are actually named
2722 something starting with __ and the normal name is an alias. */
2723 #if defined __stub_$2 || defined __stub___$2
2735 if ac_fn_c_try_link
"$LINENO"; then :
2740 rm -f core conftest.err conftest.
$ac_objext \
2741 conftest
$ac_exeext conftest.
$ac_ext
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2745 $as_echo "$ac_res" >&6; }
2746 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2748 } # ac_fn_c_check_func
2750 # ac_fn_c_check_decl LINENO SYMBOL VAR
2751 # ------------------------------------
2752 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2753 ac_fn_c_check_decl
()
2755 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2757 $as_echo_n "checking whether $2 is declared... " >&6; }
2758 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2759 $as_echo_n "(cached) " >&6
2761 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2762 /* end confdefs.h. */
2775 if ac_fn_c_try_compile
"$LINENO"; then :
2780 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2784 $as_echo "$ac_res" >&6; }
2785 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2787 } # ac_fn_c_check_decl
2789 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2790 # --------------------------------------------
2791 # Tries to find the compile-time value of EXPR in a program that includes
2792 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2794 ac_fn_c_compute_int
()
2796 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2797 if test "$cross_compiling" = yes; then
2798 # Depending upon the size, compute the lo and hi bounds.
2799 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2800 /* end confdefs.h. */
2805 static int test_array [1 - 2 * !(($2) >= 0)];
2812 if ac_fn_c_try_compile
"$LINENO"; then :
2815 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2816 /* end confdefs.h. */
2821 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2828 if ac_fn_c_try_compile
"$LINENO"; then :
2829 ac_hi
=$ac_mid; break
2831 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2832 if test $ac_lo -le $ac_mid; then
2836 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2838 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2841 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2842 /* end confdefs.h. */
2847 static int test_array [1 - 2 * !(($2) < 0)];
2854 if ac_fn_c_try_compile
"$LINENO"; then :
2857 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2858 /* end confdefs.h. */
2863 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2870 if ac_fn_c_try_compile
"$LINENO"; then :
2871 ac_lo
=$ac_mid; break
2873 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2874 if test $ac_mid -le $ac_hi; then
2878 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2880 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2885 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2887 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2888 # Binary search between lo and hi bounds.
2889 while test "x$ac_lo" != "x$ac_hi"; do
2890 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2891 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2892 /* end confdefs.h. */
2897 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2904 if ac_fn_c_try_compile
"$LINENO"; then :
2907 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2909 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2912 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2916 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2917 /* end confdefs.h. */
2919 static long int longval () { return $2; }
2920 static unsigned long int ulongval () { return $2; }
2927 FILE *f = fopen ("conftest.val", "w");
2932 long int i = longval ();
2935 fprintf (f, "%ld", i);
2939 unsigned long int i = ulongval ();
2942 fprintf (f, "%lu", i);
2944 /* Do not output a trailing newline, as this causes \r\n confusion
2945 on some platforms. */
2946 return ferror (f) || fclose (f) != 0;
2952 if ac_fn_c_try_run
"$LINENO"; then :
2953 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2957 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2958 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2962 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2965 } # ac_fn_c_compute_int
2967 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2968 # -------------------------------------------
2969 # Tests whether TYPE exists after having included INCLUDES, setting cache
2970 # variable VAR accordingly.
2971 ac_fn_c_check_type
()
2973 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2975 $as_echo_n "checking for $2... " >&6; }
2976 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2977 $as_echo_n "(cached) " >&6
2980 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2981 /* end confdefs.h. */
2992 if ac_fn_c_try_compile
"$LINENO"; then :
2993 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2994 /* end confdefs.h. */
3005 if ac_fn_c_try_compile
"$LINENO"; then :
3010 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3012 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3016 $as_echo "$ac_res" >&6; }
3017 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
3019 } # ac_fn_c_check_type
3020 cat >config.log
<<_ACEOF
3021 This file contains any messages produced by compilers while
3022 running configure, to aid debugging if configure makes a mistake.
3024 It was created by $as_me, which was
3025 generated by GNU Autoconf 2.64. Invocation command line was
3037 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3038 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3039 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3040 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3041 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3043 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3044 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3046 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3047 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3048 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3049 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3050 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3051 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3052 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3056 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3060 test -z "$as_dir" && as_dir
=.
3061 $as_echo "PATH: $as_dir"
3077 # Keep a trace of the command line.
3078 # Strip out --no-create and --no-recursion so they do not pile up.
3079 # Strip out --silent because we don't want to record it for future runs.
3080 # Also quote any args containing shell meta-characters.
3081 # Make two passes to allow for proper duplicate-argument suppression.
3085 ac_must_keep_next
=false
3091 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
3092 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
3093 |
-silent |
--silent |
--silen |
--sile |
--sil)
3096 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3099 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
3101 as_fn_append ac_configure_args1
" '$ac_arg'"
3102 if test $ac_must_keep_next = true
; then
3103 ac_must_keep_next
=false
# Got value, back to normal.
3106 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
3107 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
3108 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
3109 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
3110 case "$ac_configure_args0 " in
3111 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3114 -* ) ac_must_keep_next
=true
;;
3117 as_fn_append ac_configure_args
" '$ac_arg'"
3122 { ac_configure_args0
=; unset ac_configure_args0
;}
3123 { ac_configure_args1
=; unset ac_configure_args1
;}
3125 # When interrupted or exit'd, cleanup temporary files, and complete
3126 # config.log. We remove comments because anyway the quotes in there
3127 # would cause problems or look ugly.
3128 # WARNING: Use '\'' to represent an apostrophe within the trap.
3129 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3130 trap 'exit_status=$?
3131 # Save into config.log some information that might help in debugging.
3136 ## ---------------- ##
3137 ## Cache variables. ##
3138 ## ---------------- ##
3141 # The following way of writing the cache mishandles newlines in values,
3143 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3144 eval ac_val=\$$ac_var
3148 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3149 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3152 _ | IFS | as_nl) ;; #(
3153 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3154 *) { eval $ac_var=; unset $ac_var;} ;;
3159 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3160 *${as_nl}ac_space=\ *)
3162 "s/'\''/'\''\\\\'\'''\''/g;
3163 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3166 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3174 ## ----------------- ##
3175 ## Output variables. ##
3176 ## ----------------- ##
3179 for ac_var in $ac_subst_vars
3181 eval ac_val=\$$ac_var
3183 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3185 $as_echo "$ac_var='\''$ac_val'\''"
3189 if test -n "$ac_subst_files"; then
3191 ## ------------------- ##
3192 ## File substitutions. ##
3193 ## ------------------- ##
3196 for ac_var
in $ac_subst_files
3198 eval ac_val
=\$
$ac_var
3200 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3202 $as_echo "$ac_var='\''$ac_val'\''"
3207 if test -s confdefs.h; then
3217 test "$ac_signal" != 0 &&
3218 $as_echo "$as_me: caught signal $ac_signal"
3219 $as_echo "$as_me: exit $exit_status"
3221 rm -f core *.core core.conftest.* &&
3222 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3225 for ac_signal
in 1 2 13 15; do
3226 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3230 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3231 rm -f -r conftest
* confdefs.h
3233 $as_echo "/* confdefs.h */" > confdefs.h
3235 # Predefined preprocessor variables.
3237 cat >>confdefs.h
<<_ACEOF
3238 #define PACKAGE_NAME "$PACKAGE_NAME"
3241 cat >>confdefs.h
<<_ACEOF
3242 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3245 cat >>confdefs.h
<<_ACEOF
3246 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3249 cat >>confdefs.h
<<_ACEOF
3250 #define PACKAGE_STRING "$PACKAGE_STRING"
3253 cat >>confdefs.h
<<_ACEOF
3254 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3257 cat >>confdefs.h
<<_ACEOF
3258 #define PACKAGE_URL "$PACKAGE_URL"
3262 # Let the site file select an alternate cache file if it wants to.
3263 # Prefer an explicitly selected file to automatically selected ones.
3266 if test -n "$CONFIG_SITE"; then
3267 ac_site_file1
=$CONFIG_SITE
3268 elif test "x$prefix" != xNONE
; then
3269 ac_site_file1
=$prefix/share
/config.site
3270 ac_site_file2
=$prefix/etc
/config.site
3272 ac_site_file1
=$ac_default_prefix/share
/config.site
3273 ac_site_file2
=$ac_default_prefix/etc
/config.site
3275 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
3277 test "x$ac_site_file" = xNONE
&& continue
3278 if test -r "$ac_site_file"; then
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3280 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3281 sed 's/^/| /' "$ac_site_file" >&5
3286 if test -r "$cache_file"; then
3287 # Some versions of bash will fail to source /dev/null (special
3288 # files actually), so we avoid doing that.
3289 if test -f "$cache_file"; then
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3291 $as_echo "$as_me: loading cache $cache_file" >&6;}
3293 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
3294 *) .
"./$cache_file";;
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3299 $as_echo "$as_me: creating cache $cache_file" >&6;}
3303 as_fn_append ac_func_list
" canonicalize_file_name"
3304 as_fn_append ac_func_list
" getcwd"
3305 as_fn_append ac_func_list
" readlink"
3306 as_fn_append ac_func_list
" realpath"
3307 as_fn_append ac_header_list
" sys/param.h"
3308 as_fn_append ac_header_list
" dirent.h"
3309 as_fn_append ac_func_list
" btowc"
3310 as_fn_append ac_func_list
" isblank"
3311 as_fn_append ac_func_list
" iswctype"
3312 as_fn_append ac_func_list
" mbsrtowcs"
3313 as_fn_append ac_func_list
" mempcpy"
3314 as_fn_append ac_func_list
" wmemchr"
3315 as_fn_append ac_func_list
" wmemcpy"
3316 as_fn_append ac_func_list
" wmempcpy"
3317 as_fn_append ac_header_list
" wctype.h"
3318 gl_fnmatch_required
=GNU
3319 as_fn_append ac_header_list
" sys/time.h"
3320 as_fn_append ac_header_list
" sys/socket.h"
3321 as_fn_append ac_func_list
" gettimeofday"
3322 as_fn_append ac_header_list
" limits.h"
3323 as_fn_append ac_header_list
" wchar.h"
3324 as_fn_append ac_header_list
" stdint.h"
3325 as_fn_append ac_header_list
" inttypes.h"
3326 as_fn_append ac_header_list
" unistd.h"
3327 as_fn_append ac_func_list
" symlink"
3328 as_fn_append ac_func_list
" lstat"
3329 as_fn_append ac_header_list
" math.h"
3330 as_fn_append ac_func_list
" mbsinit"
3331 as_fn_append ac_func_list
" mbrtowc"
3332 as_fn_append ac_header_list
" sys/mman.h"
3333 as_fn_append ac_func_list
" mprotect"
3334 as_fn_append ac_func_list
" link"
3335 as_fn_append ac_header_list
" sys/stat.h"
3336 as_fn_append ac_header_list
" features.h"
3337 as_fn_append ac_func_list
" iswcntrl"
3338 # Check that the precious variables saved in the cache have kept the same
3340 ac_cache_corrupted
=false
3341 for ac_var
in $ac_precious_vars; do
3342 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
3343 eval ac_new_set
=\
$ac_env_${ac_var}_set
3344 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
3345 eval ac_new_val
=\
$ac_env_${ac_var}_value
3346 case $ac_old_set,$ac_new_set in
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3349 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3350 ac_cache_corrupted
=: ;;
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3353 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3354 ac_cache_corrupted
=: ;;
3357 if test "x$ac_old_val" != "x$ac_new_val"; then
3358 # differences in whitespace do not lead to failure.
3359 ac_old_val_w
=`echo x $ac_old_val`
3360 ac_new_val_w
=`echo x $ac_new_val`
3361 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3363 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3364 ac_cache_corrupted
=:
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3367 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3368 eval $ac_var=\
$ac_old_val
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3371 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3373 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3376 # Pass precious variables to config.status.
3377 if test "$ac_new_set" = set; then
3379 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3380 *) ac_arg
=$ac_var=$ac_new_val ;;
3382 case " $ac_configure_args " in
3383 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3384 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
3388 if $ac_cache_corrupted; then
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3390 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3392 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3393 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3395 ## -------------------- ##
3396 ## Main body of script. ##
3397 ## -------------------- ##
3400 ac_cpp
='$CPP $CPPFLAGS'
3401 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3402 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3403 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3406 ac_config_headers
="$ac_config_headers config.h:config.in"
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3410 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3411 # Check whether --enable-maintainer-mode was given.
3412 if test "${enable_maintainer_mode+set}" = set; then :
3413 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
3415 USE_MAINTAINER_MODE
=no
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3419 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3420 if test $USE_MAINTAINER_MODE = yes; then
3421 MAINTAINER_MODE_TRUE
=
3422 MAINTAINER_MODE_FALSE
='#'
3424 MAINTAINER_MODE_TRUE
='#'
3425 MAINTAINER_MODE_FALSE
=
3428 MAINT
=$MAINTAINER_MODE_TRUE
3433 ac_cpp
='$CPP $CPPFLAGS'
3434 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3435 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3436 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3437 if test -n "$ac_tool_prefix"; then
3438 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3439 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3441 $as_echo_n "checking for $ac_word... " >&6; }
3442 if test "${ac_cv_prog_CC+set}" = set; then :
3443 $as_echo_n "(cached) " >&6
3445 if test -n "$CC"; then
3446 ac_cv_prog_CC
="$CC" # Let the user override the test.
3448 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3452 test -z "$as_dir" && as_dir
=.
3453 for ac_exec_ext
in '' $ac_executable_extensions; do
3454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3455 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3466 if test -n "$CC"; then
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3468 $as_echo "$CC" >&6; }
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3471 $as_echo "no" >&6; }
3476 if test -z "$ac_cv_prog_CC"; then
3478 # Extract the first word of "gcc", so it can be a program name with args.
3479 set dummy gcc
; ac_word
=$2
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3481 $as_echo_n "checking for $ac_word... " >&6; }
3482 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3483 $as_echo_n "(cached) " >&6
3485 if test -n "$ac_ct_CC"; then
3486 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3488 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3492 test -z "$as_dir" && as_dir
=.
3493 for ac_exec_ext
in '' $ac_executable_extensions; do
3494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3495 ac_cv_prog_ac_ct_CC
="gcc"
3496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3505 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3506 if test -n "$ac_ct_CC"; then
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3508 $as_echo "$ac_ct_CC" >&6; }
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3511 $as_echo "no" >&6; }
3514 if test "x$ac_ct_CC" = x
; then
3517 case $cross_compiling:$ac_tool_warned in
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3520 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3521 ac_tool_warned
=yes ;;
3529 if test -z "$CC"; then
3530 if test -n "$ac_tool_prefix"; then
3531 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3532 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3534 $as_echo_n "checking for $ac_word... " >&6; }
3535 if test "${ac_cv_prog_CC+set}" = set; then :
3536 $as_echo_n "(cached) " >&6
3538 if test -n "$CC"; then
3539 ac_cv_prog_CC
="$CC" # Let the user override the test.
3541 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3545 test -z "$as_dir" && as_dir
=.
3546 for ac_exec_ext
in '' $ac_executable_extensions; do
3547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3548 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3559 if test -n "$CC"; then
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3561 $as_echo "$CC" >&6; }
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3564 $as_echo "no" >&6; }
3570 if test -z "$CC"; then
3571 # Extract the first word of "cc", so it can be a program name with args.
3572 set dummy cc
; ac_word
=$2
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3574 $as_echo_n "checking for $ac_word... " >&6; }
3575 if test "${ac_cv_prog_CC+set}" = set; then :
3576 $as_echo_n "(cached) " >&6
3578 if test -n "$CC"; then
3579 ac_cv_prog_CC
="$CC" # Let the user override the test.
3582 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3586 test -z "$as_dir" && as_dir
=.
3587 for ac_exec_ext
in '' $ac_executable_extensions; do
3588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3589 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3590 ac_prog_rejected
=yes
3594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3601 if test $ac_prog_rejected = yes; then
3602 # We found a bogon in the path, so make sure we never use it.
3603 set dummy
$ac_cv_prog_CC
3605 if test $# != 0; then
3606 # We chose a different compiler from the bogus one.
3607 # However, it has the same basename, so the bogon will be chosen
3608 # first if we set CC to just the basename; use the full file name.
3610 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3616 if test -n "$CC"; then
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3618 $as_echo "$CC" >&6; }
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3621 $as_echo "no" >&6; }
3626 if test -z "$CC"; then
3627 if test -n "$ac_tool_prefix"; then
3628 for ac_prog
in cl.exe
3630 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3631 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3633 $as_echo_n "checking for $ac_word... " >&6; }
3634 if test "${ac_cv_prog_CC+set}" = set; then :
3635 $as_echo_n "(cached) " >&6
3637 if test -n "$CC"; then
3638 ac_cv_prog_CC
="$CC" # Let the user override the test.
3640 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3644 test -z "$as_dir" && as_dir
=.
3645 for ac_exec_ext
in '' $ac_executable_extensions; do
3646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3647 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3658 if test -n "$CC"; then
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3660 $as_echo "$CC" >&6; }
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3663 $as_echo "no" >&6; }
3667 test -n "$CC" && break
3670 if test -z "$CC"; then
3672 for ac_prog
in cl.exe
3674 # Extract the first word of "$ac_prog", so it can be a program name with args.
3675 set dummy
$ac_prog; ac_word
=$2
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3677 $as_echo_n "checking for $ac_word... " >&6; }
3678 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3679 $as_echo_n "(cached) " >&6
3681 if test -n "$ac_ct_CC"; then
3682 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3684 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3688 test -z "$as_dir" && as_dir
=.
3689 for ac_exec_ext
in '' $ac_executable_extensions; do
3690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3691 ac_cv_prog_ac_ct_CC
="$ac_prog"
3692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3701 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3702 if test -n "$ac_ct_CC"; then
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3704 $as_echo "$ac_ct_CC" >&6; }
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3707 $as_echo "no" >&6; }
3711 test -n "$ac_ct_CC" && break
3714 if test "x$ac_ct_CC" = x
; then
3717 case $cross_compiling:$ac_tool_warned in
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3720 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3721 ac_tool_warned
=yes ;;
3730 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3731 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3732 as_fn_error
"no acceptable C compiler found in \$PATH
3733 See \`config.log' for more details." "$LINENO" 5; }
3735 # Provide some information about the compiler.
3736 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3739 for ac_option
in --version -v -V -qversion; do
3740 { { ac_try
="$ac_compiler $ac_option >&5"
3742 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3743 *) ac_try_echo=$ac_try;;
3745 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3746 $as_echo "$ac_try_echo"; } >&5
3747 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3749 if test -s conftest.err; then
3751 ... rest of stderr output deleted ...
3752 10q' conftest.err >conftest.er1
3753 cat conftest.er1 >&5
3754 rm -f conftest.er1 conftest.err
3756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3757 test $ac_status = 0; }
3760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3761 /* end confdefs.h. */
3766 FILE *f = fopen ("conftest.out", "w");
3767 return ferror (f) || fclose (f) != 0;
3773 ac_clean_files_save=$ac_clean_files
3774 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3775 # Try to create an executable without -o first, disregard a.out.
3776 # It will help us diagnose broken compilers, and finding out an intuition
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3779 $as_echo_n "checking for C compiler default output file name... " >&6; }
3780 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3782 # The possible output files:
3783 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3786 for ac_file in $ac_files
3789 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3790 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3795 if { { ac_try="$ac_link_default"
3797 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3798 *) ac_try_echo
=$ac_try;;
3800 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3801 $as_echo "$ac_try_echo"; } >&5
3802 (eval "$ac_link_default") 2>&5
3804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3805 test $ac_status = 0; }; then :
3806 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3807 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3808 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3809 # so that the user can short-circuit this test for compilers unknown to
3811 for ac_file
in $ac_files ''
3813 test -f "$ac_file" ||
continue
3815 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3818 # We found the default executable, but exeext='' is most
3822 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3824 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3826 # We set ac_cv_exeext here because the later test for it is not
3827 # safe: cross compilers may not add the suffix if given an `-o'
3828 # argument, so we may need to know it at that point already.
3829 # Even if this section looks crufty: it has the advantage of
3836 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3842 $as_echo "$ac_file" >&6; }
3843 if test -z "$ac_file"; then :
3844 $as_echo "$as_me: failed program was:" >&5
3845 sed 's/^/| /' conftest.
$ac_ext >&5
3847 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3848 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3849 { as_fn_set_status
77
3850 as_fn_error
"C compiler cannot create executables
3851 See \`config.log' for more details." "$LINENO" 5; }; }
3853 ac_exeext
=$ac_cv_exeext
3855 # Check that the compiler produces executables we can run. If not, either
3856 # the compiler is broken, or we cross compile.
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3858 $as_echo_n "checking whether the C compiler works... " >&6; }
3859 # If not cross compiling, check that we can run a simple program.
3860 if test "$cross_compiling" != yes; then
3861 if { ac_try
='./$ac_file'
3862 { { case "(($ac_try" in
3863 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3864 *) ac_try_echo=$ac_try;;
3866 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3867 $as_echo "$ac_try_echo"; } >&5
3868 (eval "$ac_try") 2>&5
3870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3871 test $ac_status = 0; }; }; then
3874 if test "$cross_compiling" = maybe; then
3877 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3878 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3879 as_fn_error "cannot run C compiled programs.
3880 If you meant to cross compile
, use \
`--host'.
3881 See \`config.log
' for more details." "$LINENO" 5; }
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3886 $as_echo "yes" >&6; }
3888 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3889 ac_clean_files=$ac_clean_files_save
3890 # Check that the compiler produces executables we can run. If not, either
3891 # the compiler is broken, or we cross compile.
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3893 $as_echo_n "checking whether we are cross compiling... " >&6; }
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3895 $as_echo "$cross_compiling" >&6; }
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3898 $as_echo_n "checking for suffix of executables... " >&6; }
3899 if { { ac_try="$ac_link"
3901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3902 *) ac_try_echo=$ac_try;;
3904 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3905 $as_echo "$ac_try_echo"; } >&5
3906 (eval "$ac_link") 2>&5
3908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3909 test $ac_status = 0; }; then :
3910 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3911 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3912 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3914 for ac_file
in conftest.exe conftest conftest.
*; do
3915 test -f "$ac_file" ||
continue
3917 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3918 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3924 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3925 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3926 as_fn_error
"cannot compute suffix of executables: cannot compile and link
3927 See \`config.log' for more details." "$LINENO" 5; }
3929 rm -f conftest
$ac_cv_exeext
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3931 $as_echo "$ac_cv_exeext" >&6; }
3933 rm -f conftest.
$ac_ext
3934 EXEEXT
=$ac_cv_exeext
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3937 $as_echo_n "checking for suffix of object files... " >&6; }
3938 if test "${ac_cv_objext+set}" = set; then :
3939 $as_echo_n "(cached) " >&6
3941 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3942 /* end confdefs.h. */
3952 rm -f conftest.o conftest.obj
3953 if { { ac_try
="$ac_compile"
3955 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3956 *) ac_try_echo=$ac_try;;
3958 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3959 $as_echo "$ac_try_echo"; } >&5
3960 (eval "$ac_compile") 2>&5
3962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3963 test $ac_status = 0; }; then :
3964 for ac_file in conftest.o conftest.obj conftest.*; do
3965 test -f "$ac_file" || continue;
3967 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3968 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3973 $as_echo "$as_me: failed program was:" >&5
3974 sed 's/^/| /' conftest.$ac_ext >&5
3976 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3977 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3978 as_fn_error "cannot compute suffix of object files
: cannot compile
3979 See \
`config.log' for more details." "$LINENO" 5; }
3981 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3984 $as_echo "$ac_cv_objext" >&6; }
3985 OBJEXT=$ac_cv_objext
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3988 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3989 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3990 $as_echo_n "(cached) " >&6
3992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3993 /* end confdefs.h. */
4006 if ac_fn_c_try_compile "$LINENO"; then :
4011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4012 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4016 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4017 if test $ac_compiler_gnu = yes; then
4022 ac_test_CFLAGS=${CFLAGS+set}
4023 ac_save_CFLAGS=$CFLAGS
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4025 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4026 if test "${ac_cv_prog_cc_g+set}" = set; then :
4027 $as_echo_n "(cached) " >&6
4029 ac_save_c_werror_flag=$ac_c_werror_flag
4030 ac_c_werror_flag=yes
4033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4034 /* end confdefs.h. */
4044 if ac_fn_c_try_compile "$LINENO"; then :
4048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4049 /* end confdefs.h. */
4059 if ac_fn_c_try_compile "$LINENO"; then :
4062 ac_c_werror_flag=$ac_save_c_werror_flag
4064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4065 /* end confdefs.h. */
4075 if ac_fn_c_try_compile "$LINENO"; then :
4078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4083 ac_c_werror_flag=$ac_save_c_werror_flag
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4086 $as_echo "$ac_cv_prog_cc_g" >&6; }
4087 if test "$ac_test_CFLAGS" = set; then
4088 CFLAGS=$ac_save_CFLAGS
4089 elif test $ac_cv_prog_cc_g = yes; then
4090 if test "$GCC" = yes; then
4096 if test "$GCC" = yes; then
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4103 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4104 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4105 $as_echo_n "(cached) " >&6
4107 ac_cv_prog_cc_c89=no
4109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4110 /* end confdefs.h. */
4113 #include <sys/types.h>
4114 #include <sys/stat.h>
4115 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4116 struct buf { int x; };
4117 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4118 static char *e (p, i)
4124 static char *f (char * (*g) (char **, int), char **p, ...)
4129 s = g (p, va_arg (v,int));
4134 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4135 function prototypes and stuff, but not '\xHH' hex character constants.
4136 These don't provoke an error unfortunately, instead are silently treated
4137 as 'x'. The following induces an error, until -std is added to get
4138 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4139 array size at least. It's necessary to write '\x00'==0 to get something
4140 that's true only with -std. */
4141 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4143 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4144 inside strings and character constants. */
4146 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4148 int test (int i, double x);
4149 struct s1 {int (*f) (int a);};
4150 struct s2 {int (*f) (double a);};
4151 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4157 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4162 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4163 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4165 CC="$ac_save_CC $ac_arg"
4166 if ac_fn_c_try_compile "$LINENO"; then :
4167 ac_cv_prog_cc_c89=$ac_arg
4169 rm -f core conftest.err conftest.$ac_objext
4170 test "x$ac_cv_prog_cc_c89" != "xno" && break
4172 rm -f conftest.$ac_ext
4177 case "x$ac_cv_prog_cc_c89" in
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4180 $as_echo "none needed" >&6; } ;;
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4183 $as_echo "unsupported" >&6; } ;;
4185 CC="$CC $ac_cv_prog_cc_c89"
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4187 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4189 if test "x$ac_cv_prog_cc_c89" != xno; then :
4194 ac_cpp='$CPP $CPPFLAGS'
4195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4201 ac_cpp='$CPP $CPPFLAGS'
4202 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4203 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4204 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4206 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4207 # On Suns, sometimes $CPP names a directory.
4208 if test -n "$CPP" && test -d "$CPP"; then
4211 if test -z "$CPP"; then
4212 if test "${ac_cv_prog_CPP+set}" = set; then :
4213 $as_echo_n "(cached) " >&6
4215 # Double quotes because CPP needs to be expanded
4216 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4219 for ac_c_preproc_warn_flag in '' yes
4221 # Use a header file that comes with gcc, so configuring glibc
4222 # with a fresh cross-compiler works.
4223 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4224 # <limits.h> exists even on freestanding compilers.
4225 # On the NeXT, cc -E runs the code through the compiler's parser,
4226 # not just through cpp. "Syntax error" is here to catch this case.
4227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4228 /* end confdefs.h. */
4230 # include <limits.h>
4232 # include <assert.h>
4236 if ac_fn_c_try_cpp "$LINENO"; then :
4239 # Broken: fails on valid input.
4242 rm -f conftest.err conftest.$ac_ext
4244 # OK, works on sane cases. Now check whether nonexistent headers
4245 # can be detected and how.
4246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4247 /* end confdefs.h. */
4248 #include <ac_nonexistent.h>
4250 if ac_fn_c_try_cpp "$LINENO"; then :
4251 # Broken: success on invalid input.
4254 # Passes both tests.
4258 rm -f conftest.err conftest.$ac_ext
4261 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4262 rm -f conftest.err conftest.
$ac_ext
4263 if $ac_preproc_ok; then :
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4276 $as_echo "$CPP" >&6; }
4278 for ac_c_preproc_warn_flag
in '' yes
4280 # Use a header file that comes with gcc, so configuring glibc
4281 # with a fresh cross-compiler works.
4282 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4283 # <limits.h> exists even on freestanding compilers.
4284 # On the NeXT, cc -E runs the code through the compiler's parser,
4285 # not just through cpp. "Syntax error" is here to catch this case.
4286 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4287 /* end confdefs.h. */
4289 # include <limits.h>
4291 # include <assert.h>
4295 if ac_fn_c_try_cpp
"$LINENO"; then :
4298 # Broken: fails on valid input.
4301 rm -f conftest.err conftest.
$ac_ext
4303 # OK, works on sane cases. Now check whether nonexistent headers
4304 # can be detected and how.
4305 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4306 /* end confdefs.h. */
4307 #include <ac_nonexistent.h>
4309 if ac_fn_c_try_cpp
"$LINENO"; then :
4310 # Broken: success on invalid input.
4313 # Passes both tests.
4317 rm -f conftest.err conftest.
$ac_ext
4320 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4321 rm -f conftest.err conftest.
$ac_ext
4322 if $ac_preproc_ok; then :
4325 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4326 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4327 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
4328 See \`config.log' for more details." "$LINENO" 5; }
4332 ac_cpp
='$CPP $CPPFLAGS'
4333 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4334 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4335 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4339 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4340 if test "${ac_cv_path_GREP+set}" = set; then :
4341 $as_echo_n "(cached) " >&6
4343 if test -z "$GREP"; then
4344 ac_path_GREP_found
=false
4345 # Loop through the user's path and test for each of PROGNAME-LIST
4346 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4347 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4350 test -z "$as_dir" && as_dir
=.
4351 for ac_prog
in grep ggrep
; do
4352 for ac_exec_ext
in '' $ac_executable_extensions; do
4353 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4354 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4355 # Check for GNU ac_path_GREP and select it if it is found.
4356 # Check for GNU $ac_path_GREP
4357 case `"$ac_path_GREP" --version 2>&1` in
4359 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4362 $as_echo_n 0123456789 >"conftest.in"
4365 cat "conftest.in" "conftest.in" >"conftest.tmp"
4366 mv "conftest.tmp" "conftest.in"
4367 cp "conftest.in" "conftest.nl"
4368 $as_echo 'GREP' >> "conftest.nl"
4369 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4370 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4371 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4372 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4373 # Best one so far, save it but keep looking for a better one
4374 ac_cv_path_GREP
="$ac_path_GREP"
4375 ac_path_GREP_max
=$ac_count
4377 # 10*(2^10) chars as input seems more than enough
4378 test $ac_count -gt 10 && break
4380 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4383 $ac_path_GREP_found && break 3
4388 if test -z "$ac_cv_path_GREP"; then
4389 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4392 ac_cv_path_GREP
=$GREP
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4397 $as_echo "$ac_cv_path_GREP" >&6; }
4398 GREP
="$ac_cv_path_GREP"
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4402 $as_echo_n "checking for egrep... " >&6; }
4403 if test "${ac_cv_path_EGREP+set}" = set; then :
4404 $as_echo_n "(cached) " >&6
4406 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4407 then ac_cv_path_EGREP
="$GREP -E"
4409 if test -z "$EGREP"; then
4410 ac_path_EGREP_found
=false
4411 # Loop through the user's path and test for each of PROGNAME-LIST
4412 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4413 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4416 test -z "$as_dir" && as_dir
=.
4417 for ac_prog
in egrep; do
4418 for ac_exec_ext
in '' $ac_executable_extensions; do
4419 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4420 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4421 # Check for GNU ac_path_EGREP and select it if it is found.
4422 # Check for GNU $ac_path_EGREP
4423 case `"$ac_path_EGREP" --version 2>&1` in
4425 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4428 $as_echo_n 0123456789 >"conftest.in"
4431 cat "conftest.in" "conftest.in" >"conftest.tmp"
4432 mv "conftest.tmp" "conftest.in"
4433 cp "conftest.in" "conftest.nl"
4434 $as_echo 'EGREP' >> "conftest.nl"
4435 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4436 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4437 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4438 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4439 # Best one so far, save it but keep looking for a better one
4440 ac_cv_path_EGREP
="$ac_path_EGREP"
4441 ac_path_EGREP_max
=$ac_count
4443 # 10*(2^10) chars as input seems more than enough
4444 test $ac_count -gt 10 && break
4446 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4449 $ac_path_EGREP_found && break 3
4454 if test -z "$ac_cv_path_EGREP"; then
4455 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4458 ac_cv_path_EGREP
=$EGREP
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4464 $as_echo "$ac_cv_path_EGREP" >&6; }
4465 EGREP
="$ac_cv_path_EGREP"
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4469 $as_echo_n "checking for ANSI C header files... " >&6; }
4470 if test "${ac_cv_header_stdc+set}" = set; then :
4471 $as_echo_n "(cached) " >&6
4473 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4474 /* end confdefs.h. */
4488 if ac_fn_c_try_compile
"$LINENO"; then :
4489 ac_cv_header_stdc
=yes
4491 ac_cv_header_stdc
=no
4493 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4495 if test $ac_cv_header_stdc = yes; then
4496 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4497 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4498 /* end confdefs.h. */
4502 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4503 $EGREP "memchr" >/dev
/null
2>&1; then :
4506 ac_cv_header_stdc
=no
4512 if test $ac_cv_header_stdc = yes; then
4513 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4514 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4515 /* end confdefs.h. */
4519 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4520 $EGREP "free" >/dev
/null
2>&1; then :
4523 ac_cv_header_stdc
=no
4529 if test $ac_cv_header_stdc = yes; then
4530 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4531 if test "$cross_compiling" = yes; then :
4534 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4535 /* end confdefs.h. */
4538 #if ((' ' & 0x0FF) == 0x020)
4539 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4540 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4542 # define ISLOWER(c) \
4543 (('a' <= (c) && (c) <= 'i') \
4544 || ('j' <= (c) && (c) <= 'r') \
4545 || ('s' <= (c) && (c) <= 'z'))
4546 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4549 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4554 for (i = 0; i < 256; i++)
4555 if (XOR (islower (i), ISLOWER (i))
4556 || toupper (i) != TOUPPER (i))
4561 if ac_fn_c_try_run
"$LINENO"; then :
4564 ac_cv_header_stdc
=no
4566 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4567 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4573 $as_echo "$ac_cv_header_stdc" >&6; }
4574 if test $ac_cv_header_stdc = yes; then
4576 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4580 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4581 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4582 inttypes.h stdint.h unistd.h
4584 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4585 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4587 eval as_val
=\$
$as_ac_Header
4588 if test "x$as_val" = x
""yes; then :
4589 cat >>confdefs.h
<<_ACEOF
4590 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4599 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4600 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
4607 if test "$MINIX" = yes; then
4609 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4612 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4615 $as_echo "#define _MINIX 1" >>confdefs.h
4618 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4624 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4625 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4626 $as_echo_n "(cached) " >&6
4628 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4629 /* end confdefs.h. */
4631 # define __EXTENSIONS__ 1
4632 $ac_includes_default
4641 if ac_fn_c_try_compile
"$LINENO"; then :
4642 ac_cv_safe_to_define___extensions__
=yes
4644 ac_cv_safe_to_define___extensions__
=no
4646 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4649 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4650 test $ac_cv_safe_to_define___extensions__ = yes &&
4651 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4653 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4655 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4657 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4659 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4661 $as_echo "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
4663 $as_echo "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
4665 $as_echo "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
4667 $as_echo "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
4669 $as_echo "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
4671 $as_echo "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
4673 $as_echo "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
4675 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4678 $as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4679 if test "${ac_cv_should_define__xopen_source+set}" = set; then :
4680 $as_echo_n "(cached) " >&6
4682 ac_cv_should_define__xopen_source
=no
4683 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4684 /* end confdefs.h. */
4696 if ac_fn_c_try_compile
"$LINENO"; then :
4699 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4700 /* end confdefs.h. */
4702 #define _XOPEN_SOURCE 500
4713 if ac_fn_c_try_compile
"$LINENO"; then :
4714 ac_cv_should_define__xopen_source
=yes
4716 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4718 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4721 $as_echo "$ac_cv_should_define__xopen_source" >&6; }
4722 test $ac_cv_should_define__xopen_source = yes &&
4723 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
4736 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
4737 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
4738 $as_echo_n "(cached) " >&6
4741 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4742 /* end confdefs.h. */
4749 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4750 $EGREP "Amsterdam" >/dev
/null
2>&1; then :
4751 gl_cv_c_amsterdam_compiler
=yes
4753 gl_cv_c_amsterdam_compiler
=no
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
4760 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
4762 if test $gl_cv_c_amsterdam_compiler = yes; then
4763 if test -z "$AR"; then
4766 if test -z "$ARFLAGS"; then
4773 if test -n "$ac_tool_prefix"; then
4774 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4775 set dummy
${ac_tool_prefix}ar; ac_word
=$2
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4777 $as_echo_n "checking for $ac_word... " >&6; }
4778 if test "${ac_cv_prog_AR+set}" = set; then :
4779 $as_echo_n "(cached) " >&6
4781 if test -n "$AR"; then
4782 ac_cv_prog_AR
="$AR" # Let the user override the test.
4784 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4788 test -z "$as_dir" && as_dir
=.
4789 for ac_exec_ext
in '' $ac_executable_extensions; do
4790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4791 ac_cv_prog_AR
="${ac_tool_prefix}ar"
4792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4802 if test -n "$AR"; then
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4804 $as_echo "$AR" >&6; }
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4807 $as_echo "no" >&6; }
4812 if test -z "$ac_cv_prog_AR"; then
4814 # Extract the first word of "ar", so it can be a program name with args.
4815 set dummy
ar; ac_word
=$2
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4817 $as_echo_n "checking for $ac_word... " >&6; }
4818 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4819 $as_echo_n "(cached) " >&6
4821 if test -n "$ac_ct_AR"; then
4822 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
4824 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4828 test -z "$as_dir" && as_dir
=.
4829 for ac_exec_ext
in '' $ac_executable_extensions; do
4830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4831 ac_cv_prog_ac_ct_AR
="ar"
4832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4841 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
4842 if test -n "$ac_ct_AR"; then
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4844 $as_echo "$ac_ct_AR" >&6; }
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4847 $as_echo "no" >&6; }
4850 if test "x$ac_ct_AR" = x
; then
4853 case $cross_compiling:$ac_tool_warned in
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4856 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4857 ac_tool_warned
=yes ;;
4865 if test -z "$ARFLAGS"; then
4871 if test -z "$RANLIB"; then
4872 if test $gl_cv_c_amsterdam_compiler = yes; then
4875 if test -n "$ac_tool_prefix"; then
4876 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4877 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4879 $as_echo_n "checking for $ac_word... " >&6; }
4880 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4881 $as_echo_n "(cached) " >&6
4883 if test -n "$RANLIB"; then
4884 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4886 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4890 test -z "$as_dir" && as_dir
=.
4891 for ac_exec_ext
in '' $ac_executable_extensions; do
4892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4893 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4903 RANLIB
=$ac_cv_prog_RANLIB
4904 if test -n "$RANLIB"; then
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4906 $as_echo "$RANLIB" >&6; }
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4909 $as_echo "no" >&6; }
4914 if test -z "$ac_cv_prog_RANLIB"; then
4915 ac_ct_RANLIB
=$RANLIB
4916 # Extract the first word of "ranlib", so it can be a program name with args.
4917 set dummy ranlib
; ac_word
=$2
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4919 $as_echo_n "checking for $ac_word... " >&6; }
4920 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4921 $as_echo_n "(cached) " >&6
4923 if test -n "$ac_ct_RANLIB"; then
4924 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4926 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4930 test -z "$as_dir" && as_dir
=.
4931 for ac_exec_ext
in '' $ac_executable_extensions; do
4932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4933 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4943 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4944 if test -n "$ac_ct_RANLIB"; then
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4946 $as_echo "$ac_ct_RANLIB" >&6; }
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4949 $as_echo "no" >&6; }
4952 if test "x$ac_ct_RANLIB" = x
; then
4955 case $cross_compiling:$ac_tool_warned in
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4958 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4959 ac_tool_warned
=yes ;;
4961 RANLIB
=$ac_ct_RANLIB
4964 RANLIB
="$ac_cv_prog_RANLIB"
4972 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4973 for ac_t
in install-sh
install.sh shtool
; do
4974 if test -f "$ac_dir/$ac_t"; then
4976 ac_install_sh
="$ac_aux_dir/$ac_t -c"
4981 if test -z "$ac_aux_dir"; then
4982 as_fn_error
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4985 # These three variables are undocumented and unsupported,
4986 # and are intended to be withdrawn in a future Autoconf release.
4987 # They can cause serious problems if a builder's source tree is in a directory
4988 # whose full name contains unusual characters.
4989 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4990 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4991 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4994 # Make sure we can run config.sub.
4995 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4996 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4999 $as_echo_n "checking build system type... " >&6; }
5000 if test "${ac_cv_build+set}" = set; then :
5001 $as_echo_n "(cached) " >&6
5003 ac_build_alias
=$build_alias
5004 test "x$ac_build_alias" = x
&&
5005 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
5006 test "x$ac_build_alias" = x
&&
5007 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
5008 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5009 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5013 $as_echo "$ac_cv_build" >&6; }
5014 case $ac_cv_build in
5016 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
5019 ac_save_IFS
=$IFS; IFS
='-'
5025 # Remember, the first character of IFS is used to create $*,
5026 # except with old shells:
5029 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5033 $as_echo_n "checking host system type... " >&6; }
5034 if test "${ac_cv_host+set}" = set; then :
5035 $as_echo_n "(cached) " >&6
5037 if test "x$host_alias" = x
; then
5038 ac_cv_host
=$ac_cv_build
5040 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5041 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5046 $as_echo "$ac_cv_host" >&6; }
5049 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
5052 ac_save_IFS
=$IFS; IFS
='-'
5058 # Remember, the first character of IFS is used to create $*,
5059 # except with old shells:
5062 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
5068 # IEEE behaviour is the default on all CPUs except Alpha and SH
5069 # (according to the test results of Bruno Haible's ieeefp/fenv_default.m4
5070 # and the GCC 4.1.2 manual).
5073 # On Alpha systems, a compiler option provides the behaviour.
5074 # See the ieee(3) manual page, also available at
5075 # <http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V51B_HTML/MAN/MAN3/0600____.HTM>
5076 if test -n "$GCC"; then
5077 # GCC has the option -mieee.
5078 # For full IEEE compliance (rarely needed), use option -mieee-with-inexact.
5079 CPPFLAGS
="$CPPFLAGS -mieee"
5081 # Compaq (ex-DEC) C has the option -ieee, equivalent to -ieee_with_no_inexact.
5082 # For full IEEE compliance (rarely needed), use option -ieee_with_inexact.
5083 CPPFLAGS
="$CPPFLAGS -ieee"
5087 if test -n "$GCC"; then
5088 # GCC has the option -mieee.
5089 CPPFLAGS
="$CPPFLAGS -mieee"
5094 # Check whether --enable-largefile was given.
5095 if test "${enable_largefile+set}" = set; then :
5096 enableval
=$enable_largefile;
5099 if test "$enable_largefile" != no
; then
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5102 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5103 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5104 $as_echo_n "(cached) " >&6
5106 ac_cv_sys_largefile_CC
=no
5107 if test "$GCC" != yes; then
5110 # IRIX 6.2 and later do not support large files by default,
5111 # so use the C compiler's -n32 option if that helps.
5112 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5113 /* end confdefs.h. */
5114 #include <sys/types.h>
5115 /* Check that off_t can represent 2**63 - 1 correctly.
5116 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5117 since some C++ compilers masquerading as C compilers
5118 incorrectly reject 9223372036854775807. */
5119 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5120 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5121 && LARGE_OFF_T % 2147483647 == 1)
5131 if ac_fn_c_try_compile
"$LINENO"; then :
5134 rm -f core conftest.err conftest.
$ac_objext
5136 if ac_fn_c_try_compile
"$LINENO"; then :
5137 ac_cv_sys_largefile_CC
=' -n32'; break
5139 rm -f core conftest.err conftest.
$ac_objext
5143 rm -f conftest.
$ac_ext
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5147 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5148 if test "$ac_cv_sys_largefile_CC" != no
; then
5149 CC
=$CC$ac_cv_sys_largefile_CC
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5153 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5154 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5155 $as_echo_n "(cached) " >&6
5158 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5159 /* end confdefs.h. */
5160 #include <sys/types.h>
5161 /* Check that off_t can represent 2**63 - 1 correctly.
5162 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5163 since some C++ compilers masquerading as C compilers
5164 incorrectly reject 9223372036854775807. */
5165 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5166 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5167 && LARGE_OFF_T % 2147483647 == 1)
5177 if ac_fn_c_try_compile
"$LINENO"; then :
5178 ac_cv_sys_file_offset_bits
=no
; break
5180 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5181 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5182 /* end confdefs.h. */
5183 #define _FILE_OFFSET_BITS 64
5184 #include <sys/types.h>
5185 /* Check that off_t can represent 2**63 - 1 correctly.
5186 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5187 since some C++ compilers masquerading as C compilers
5188 incorrectly reject 9223372036854775807. */
5189 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5190 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5191 && LARGE_OFF_T % 2147483647 == 1)
5201 if ac_fn_c_try_compile
"$LINENO"; then :
5202 ac_cv_sys_file_offset_bits
=64; break
5204 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5205 ac_cv_sys_file_offset_bits
=unknown
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5210 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5211 case $ac_cv_sys_file_offset_bits in #(
5214 cat >>confdefs.h
<<_ACEOF
5215 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5220 if test $ac_cv_sys_file_offset_bits = unknown
; then
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5222 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5223 if test "${ac_cv_sys_large_files+set}" = set; then :
5224 $as_echo_n "(cached) " >&6
5227 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5228 /* end confdefs.h. */
5229 #include <sys/types.h>
5230 /* Check that off_t can represent 2**63 - 1 correctly.
5231 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5232 since some C++ compilers masquerading as C compilers
5233 incorrectly reject 9223372036854775807. */
5234 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5235 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5236 && LARGE_OFF_T % 2147483647 == 1)
5246 if ac_fn_c_try_compile
"$LINENO"; then :
5247 ac_cv_sys_large_files
=no
; break
5249 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5250 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5251 /* end confdefs.h. */
5252 #define _LARGE_FILES 1
5253 #include <sys/types.h>
5254 /* Check that off_t can represent 2**63 - 1 correctly.
5255 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5256 since some C++ compilers masquerading as C compilers
5257 incorrectly reject 9223372036854775807. */
5258 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5259 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5260 && LARGE_OFF_T % 2147483647 == 1)
5270 if ac_fn_c_try_compile
"$LINENO"; then :
5271 ac_cv_sys_large_files
=1; break
5273 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5274 ac_cv_sys_large_files
=unknown
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5279 $as_echo "$ac_cv_sys_large_files" >&6; }
5280 case $ac_cv_sys_large_files in #(
5283 cat >>confdefs.h
<<_ACEOF
5284 #define _LARGE_FILES $ac_cv_sys_large_files
5292 $as_echo "#define _DARWIN_USE_64_BIT_INODE 1" >>confdefs.h
5298 # Pre-early section.
5302 # Code from module absolute-header:
5303 # Code from module alloca:
5304 # Code from module alloca-opt:
5305 # Code from module canonicalize-lgpl:
5306 # Code from module chdir:
5307 # Code from module configmake:
5308 # Code from module dirent:
5309 # Code from module dirfd:
5310 # Code from module dirname-lgpl:
5311 # Code from module dosname:
5312 # Code from module double-slash-root:
5313 # Code from module errno:
5314 # Code from module extensions:
5315 # Code from module extern-inline:
5316 # Code from module flexmember:
5317 # Code from module float:
5318 # Code from module fnmatch:
5319 # Code from module fnmatch-gnu:
5320 # Code from module fpieee:
5322 # Code from module fpucw:
5323 # Code from module frexp:
5324 # Code from module frexpl:
5325 # Code from module gettimeofday:
5326 # Code from module hard-locale:
5327 # Code from module include_next:
5328 # Code from module inttypes:
5329 # Code from module inttypes-incomplete:
5330 # Code from module isnand-nolibm:
5331 # Code from module isnanl-nolibm:
5332 # Code from module largefile:
5334 # Code from module limits-h:
5335 # Code from module localcharset:
5336 # Code from module lstat:
5337 # Code from module malloc-posix:
5338 # Code from module malloca:
5339 # Code from module math:
5340 # Code from module mbrtowc:
5341 # Code from module mbsinit:
5342 # Code from module mbsrtowcs:
5343 # Code from module memchr:
5344 # Code from module memmem:
5345 # Code from module memmem-simple:
5346 # Code from module multiarch:
5347 # Code from module nocrash:
5348 # Code from module pathmax:
5349 # Code from module rawmemchr:
5350 # Code from module readlink:
5351 # Code from module rename:
5352 # Code from module rmdir:
5353 # Code from module same-inode:
5354 # Code from module signal-h:
5355 # Code from module snippet/_Noreturn:
5356 # Code from module snippet/arg-nonnull:
5357 # Code from module snippet/c++defs:
5358 # Code from module snippet/warn-on-use:
5359 # Code from module ssize_t:
5360 # Code from module stat:
5361 # Code from module stdbool:
5362 # Code from module stddef:
5363 # Code from module stdint:
5364 # Code from module stdio:
5365 # Code from module stdlib:
5366 # Code from module strchrnul:
5367 # Code from module streq:
5368 # Code from module string:
5369 # Code from module strnlen1:
5370 # Code from module strstr:
5371 # Code from module strstr-simple:
5372 # Code from module strtok_r:
5373 # Code from module sys_stat:
5374 # Code from module sys_time:
5375 # Code from module sys_types:
5376 # Code from module time:
5377 # Code from module unistd:
5378 # Code from module update-copyright:
5379 # Code from module verify:
5380 # Code from module wchar:
5381 # Code from module wctype-h:
5384 ac_cpp
='$CPP $CPPFLAGS'
5385 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5386 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5387 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5388 if test -n "$ac_tool_prefix"; then
5389 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5390 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5392 $as_echo_n "checking for $ac_word... " >&6; }
5393 if test "${ac_cv_prog_CC+set}" = set; then :
5394 $as_echo_n "(cached) " >&6
5396 if test -n "$CC"; then
5397 ac_cv_prog_CC
="$CC" # Let the user override the test.
5399 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5403 test -z "$as_dir" && as_dir
=.
5404 for ac_exec_ext
in '' $ac_executable_extensions; do
5405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5406 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
5407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5417 if test -n "$CC"; then
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5419 $as_echo "$CC" >&6; }
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5422 $as_echo "no" >&6; }
5427 if test -z "$ac_cv_prog_CC"; then
5429 # Extract the first word of "gcc", so it can be a program name with args.
5430 set dummy gcc
; ac_word
=$2
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5432 $as_echo_n "checking for $ac_word... " >&6; }
5433 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5434 $as_echo_n "(cached) " >&6
5436 if test -n "$ac_ct_CC"; then
5437 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
5439 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5443 test -z "$as_dir" && as_dir
=.
5444 for ac_exec_ext
in '' $ac_executable_extensions; do
5445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5446 ac_cv_prog_ac_ct_CC
="gcc"
5447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5456 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
5457 if test -n "$ac_ct_CC"; then
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5459 $as_echo "$ac_ct_CC" >&6; }
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5462 $as_echo "no" >&6; }
5465 if test "x$ac_ct_CC" = x
; then
5468 case $cross_compiling:$ac_tool_warned in
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5471 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5472 ac_tool_warned
=yes ;;
5480 if test -z "$CC"; then
5481 if test -n "$ac_tool_prefix"; then
5482 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5483 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5485 $as_echo_n "checking for $ac_word... " >&6; }
5486 if test "${ac_cv_prog_CC+set}" = set; then :
5487 $as_echo_n "(cached) " >&6
5489 if test -n "$CC"; then
5490 ac_cv_prog_CC
="$CC" # Let the user override the test.
5492 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5496 test -z "$as_dir" && as_dir
=.
5497 for ac_exec_ext
in '' $ac_executable_extensions; do
5498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5499 ac_cv_prog_CC
="${ac_tool_prefix}cc"
5500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5510 if test -n "$CC"; then
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5512 $as_echo "$CC" >&6; }
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5515 $as_echo "no" >&6; }
5521 if test -z "$CC"; then
5522 # Extract the first word of "cc", so it can be a program name with args.
5523 set dummy cc
; ac_word
=$2
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5525 $as_echo_n "checking for $ac_word... " >&6; }
5526 if test "${ac_cv_prog_CC+set}" = set; then :
5527 $as_echo_n "(cached) " >&6
5529 if test -n "$CC"; then
5530 ac_cv_prog_CC
="$CC" # Let the user override the test.
5533 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5537 test -z "$as_dir" && as_dir
=.
5538 for ac_exec_ext
in '' $ac_executable_extensions; do
5539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5540 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5541 ac_prog_rejected
=yes
5545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5552 if test $ac_prog_rejected = yes; then
5553 # We found a bogon in the path, so make sure we never use it.
5554 set dummy
$ac_cv_prog_CC
5556 if test $# != 0; then
5557 # We chose a different compiler from the bogus one.
5558 # However, it has the same basename, so the bogon will be chosen
5559 # first if we set CC to just the basename; use the full file name.
5561 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
5567 if test -n "$CC"; then
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5569 $as_echo "$CC" >&6; }
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5572 $as_echo "no" >&6; }
5577 if test -z "$CC"; then
5578 if test -n "$ac_tool_prefix"; then
5579 for ac_prog
in cl.exe
5581 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5582 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5584 $as_echo_n "checking for $ac_word... " >&6; }
5585 if test "${ac_cv_prog_CC+set}" = set; then :
5586 $as_echo_n "(cached) " >&6
5588 if test -n "$CC"; then
5589 ac_cv_prog_CC
="$CC" # Let the user override the test.
5591 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5595 test -z "$as_dir" && as_dir
=.
5596 for ac_exec_ext
in '' $ac_executable_extensions; do
5597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5598 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
5599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5609 if test -n "$CC"; then
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5611 $as_echo "$CC" >&6; }
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5614 $as_echo "no" >&6; }
5618 test -n "$CC" && break
5621 if test -z "$CC"; then
5623 for ac_prog
in cl.exe
5625 # Extract the first word of "$ac_prog", so it can be a program name with args.
5626 set dummy
$ac_prog; ac_word
=$2
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5628 $as_echo_n "checking for $ac_word... " >&6; }
5629 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5630 $as_echo_n "(cached) " >&6
5632 if test -n "$ac_ct_CC"; then
5633 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
5635 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5639 test -z "$as_dir" && as_dir
=.
5640 for ac_exec_ext
in '' $ac_executable_extensions; do
5641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5642 ac_cv_prog_ac_ct_CC
="$ac_prog"
5643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5652 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
5653 if test -n "$ac_ct_CC"; then
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5655 $as_echo "$ac_ct_CC" >&6; }
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5658 $as_echo "no" >&6; }
5662 test -n "$ac_ct_CC" && break
5665 if test "x$ac_ct_CC" = x
; then
5668 case $cross_compiling:$ac_tool_warned in
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5671 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5672 ac_tool_warned
=yes ;;
5681 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5682 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5683 as_fn_error
"no acceptable C compiler found in \$PATH
5684 See \`config.log' for more details." "$LINENO" 5; }
5686 # Provide some information about the compiler.
5687 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5690 for ac_option
in --version -v -V -qversion; do
5691 { { ac_try
="$ac_compiler $ac_option >&5"
5693 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5694 *) ac_try_echo=$ac_try;;
5696 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5697 $as_echo "$ac_try_echo"; } >&5
5698 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5700 if test -s conftest.err; then
5702 ... rest of stderr output deleted ...
5703 10q' conftest.err >conftest.er1
5704 cat conftest.er1 >&5
5705 rm -f conftest.er1 conftest.err
5707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5708 test $ac_status = 0; }
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5712 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5713 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5714 $as_echo_n "(cached) " >&6
5716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5717 /* end confdefs.h. */
5730 if ac_fn_c_try_compile "$LINENO"; then :
5735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5736 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5740 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5741 if test $ac_compiler_gnu = yes; then
5746 ac_test_CFLAGS=${CFLAGS+set}
5747 ac_save_CFLAGS=$CFLAGS
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5749 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5750 if test "${ac_cv_prog_cc_g+set}" = set; then :
5751 $as_echo_n "(cached) " >&6
5753 ac_save_c_werror_flag=$ac_c_werror_flag
5754 ac_c_werror_flag=yes
5757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5758 /* end confdefs.h. */
5768 if ac_fn_c_try_compile "$LINENO"; then :
5772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5773 /* end confdefs.h. */
5783 if ac_fn_c_try_compile "$LINENO"; then :
5786 ac_c_werror_flag=$ac_save_c_werror_flag
5788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5789 /* end confdefs.h. */
5799 if ac_fn_c_try_compile "$LINENO"; then :
5802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5807 ac_c_werror_flag=$ac_save_c_werror_flag
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5810 $as_echo "$ac_cv_prog_cc_g" >&6; }
5811 if test "$ac_test_CFLAGS" = set; then
5812 CFLAGS=$ac_save_CFLAGS
5813 elif test $ac_cv_prog_cc_g = yes; then
5814 if test "$GCC" = yes; then
5820 if test "$GCC" = yes; then
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5827 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5828 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5829 $as_echo_n "(cached) " >&6
5831 ac_cv_prog_cc_c89=no
5833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5834 /* end confdefs.h. */
5837 #include <sys/types.h>
5838 #include <sys/stat.h>
5839 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5840 struct buf { int x; };
5841 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5842 static char *e (p, i)
5848 static char *f (char * (*g) (char **, int), char **p, ...)
5853 s = g (p, va_arg (v,int));
5858 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5859 function prototypes and stuff, but not '\xHH' hex character constants.
5860 These don't provoke an error unfortunately, instead are silently treated
5861 as 'x'. The following induces an error, until -std is added to get
5862 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5863 array size at least. It's necessary to write '\x00'==0 to get something
5864 that's true only with -std. */
5865 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5867 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5868 inside strings and character constants. */
5870 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5872 int test (int i, double x);
5873 struct s1 {int (*f) (int a);};
5874 struct s2 {int (*f) (double a);};
5875 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5881 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5886 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5887 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5889 CC="$ac_save_CC $ac_arg"
5890 if ac_fn_c_try_compile "$LINENO"; then :
5891 ac_cv_prog_cc_c89=$ac_arg
5893 rm -f core conftest.err conftest.$ac_objext
5894 test "x$ac_cv_prog_cc_c89" != "xno" && break
5896 rm -f conftest.$ac_ext
5901 case "x$ac_cv_prog_cc_c89" in
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5904 $as_echo "none needed" >&6; } ;;
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5907 $as_echo "unsupported" >&6; } ;;
5909 CC="$CC $ac_cv_prog_cc_c89"
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5911 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5913 if test "x$ac_cv_prog_cc_c89" != xno; then :
5918 ac_cpp='$CPP $CPPFLAGS'
5919 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5920 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5921 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5924 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5928 for ac_dir in ../.. "$srcdir"/../..; do
5929 for ac_t in install-sh install.sh shtool; do
5930 if test -f "$ac_dir/$ac_t"; then
5932 ac_install_sh="$ac_aux_dir/$ac_t -c"
5937 if test -z "$ac_aux_dir"; then
5938 as_fn_error "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5
5941 # These three variables are undocumented and unsupported,
5942 # and are intended to be withdrawn in a future Autoconf release.
5943 # They can cause serious problems if a builder's source tree is in a directory
5944 # whose full name contains unusual characters.
5945 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5946 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5947 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
5951 $as_echo_n "checking target system type... " >&6; }
5952 if test "${ac_cv_target+set}" = set; then :
5953 $as_echo_n "(cached) " >&6
5955 if test "x$target_alias" = x; then
5956 ac_cv_target=$ac_cv_host
5958 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
5959 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
5964 $as_echo "$ac_cv_target" >&6; }
5965 case $ac_cv_target in
5967 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
5969 target=$ac_cv_target
5970 ac_save_IFS=$IFS; IFS='-'
5976 # Remember, the first character of IFS is used to create $*,
5977 # except with old shells:
5980 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
5983 # The aliases save the names the user supplied, while $host etc.
5984 # will get canonicalized.
5985 test -n "$target_alias" &&
5986 test "$program_prefix$program_suffix$program_transform_name" = \
5988 program_prefix=${target_alias}-
5996 LIBC_FATAL_STDERR_=1
5997 export LIBC_FATAL_STDERR_
5999 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6000 # for constant arguments. Useless!
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6002 $as_echo_n "checking for working alloca.h... " >&6; }
6003 if test "${ac_cv_working_alloca_h+set}" = set; then :
6004 $as_echo_n "(cached) " >&6
6006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6007 /* end confdefs.h. */
6012 char *p = (char *) alloca (2 * sizeof (int));
6018 if ac_fn_c_try_link "$LINENO"; then :
6019 ac_cv_working_alloca_h=yes
6021 ac_cv_working_alloca_h=no
6023 rm -f core conftest.err conftest.$ac_objext \
6024 conftest$ac_exeext conftest.$ac_ext
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6027 $as_echo "$ac_cv_working_alloca_h" >&6; }
6028 if test $ac_cv_working_alloca_h = yes; then
6030 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6035 $as_echo_n "checking for alloca... " >&6; }
6036 if test "${ac_cv_func_alloca_works+set}" = set; then :
6037 $as_echo_n "(cached) " >&6
6039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6040 /* end confdefs.h. */
6042 # define alloca __builtin_alloca
6045 # include <malloc.h>
6046 # define alloca _alloca
6048 # ifdef HAVE_ALLOCA_H
6049 # include <alloca.h>
6054 # ifndef alloca /* predefined by HP cc +Olibcalls */
6065 char *p = (char *) alloca (1);
6071 if ac_fn_c_try_link "$LINENO"; then :
6072 ac_cv_func_alloca_works=yes
6074 ac_cv_func_alloca_works=no
6076 rm -f core conftest.err conftest.$ac_objext \
6077 conftest$ac_exeext conftest.$ac_ext
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6080 $as_echo "$ac_cv_func_alloca_works" >&6; }
6082 if test $ac_cv_func_alloca_works = yes; then
6084 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6087 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6088 # that cause trouble. Some versions do not even contain alloca or
6089 # contain a buggy version. If you still want to use their alloca,
6090 # use ar to extract alloca.o from them instead of compiling alloca.c.
6096 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6098 $as_echo "#define C_ALLOCA 1" >>confdefs.h
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
6102 $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
6103 if test "${ac_cv_os_cray+set}" = set; then :
6104 $as_echo_n "(cached) " >&6
6106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6107 /* end confdefs.h. */
6108 #if defined CRAY && ! defined CRAY2
6115 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6116 $EGREP "webecray" >/dev/null 2>&1; then :
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6125 $as_echo "$ac_cv_os_cray" >&6; }
6126 if test $ac_cv_os_cray = yes; then
6127 for ac_func in _getb67 GETB67 getb67; do
6128 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
6129 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6130 eval as_val=\$$as_ac_var
6131 if test "x$as_val" = x""yes; then :
6133 cat >>confdefs.h <<_ACEOF
6134 #define CRAY_STACKSEG_END $ac_func
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6144 $as_echo_n "checking stack direction for C alloca... " >&6; }
6145 if test "${ac_cv_c_stack_direction+set}" = set; then :
6146 $as_echo_n "(cached) " >&6
6148 if test "$cross_compiling" = yes; then :
6149 ac_cv_c_stack_direction=0
6151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6152 /* end confdefs.h. */
6153 $ac_includes_default
6155 find_stack_direction (int *addr, int depth)
6160 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
6161 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
6166 main (int argc, char **argv)
6168 return find_stack_direction (0, argc + !argv + 20) < 0;
6171 if ac_fn_c_try_run "$LINENO"; then :
6172 ac_cv_c_stack_direction=1
6174 ac_cv_c_stack_direction=-1
6176 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6177 conftest.$ac_objext conftest.beam conftest.$ac_ext
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6182 $as_echo "$ac_cv_c_stack_direction" >&6; }
6183 cat >>confdefs.h <<_ACEOF
6184 #define STACK_DIRECTION $ac_cv_c_stack_direction
6193 GNULIB_CALLOC_POSIX=0;
6194 GNULIB_CANONICALIZE_FILE_NAME=0;
6195 GNULIB_GETLOADAVG=0;
6198 GNULIB_MALLOC_POSIX=0;
6205 GNULIB_POSIX_OPENPT=0;
6212 GNULIB_REALLOC_POSIX=0;
6215 GNULIB_SECURE_GETENV=0;
6220 GNULIB_SYSTEM_POSIX=0;
6226 HAVE_CANONICALIZE_FILE_NAME=1;
6227 HAVE_DECL_GETLOADAVG=1;
6235 HAVE_POSIX_OPENPT=1;
6243 HAVE_SECURE_GETENV=1;
6249 HAVE_STRUCT_RANDOM_DATA=1;
6250 HAVE_SYS_LOADAVG_H=0;
6252 HAVE_DECL_UNSETENV=1;
6254 REPLACE_CANONICALIZE_FILE_NAME=0;
6259 REPLACE_PTSNAME_R=0;
6273 for ac_func in $ac_func_list
6275 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
6276 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6277 eval as_val=\$$as_ac_var
6278 if test "x$as_val" = x""yes; then :
6279 cat >>confdefs.h <<_ACEOF
6280 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
6294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
6295 $as_echo_n "checking whether // is distinct from /... " >&6; }
6296 if test "${gl_cv_double_slash_root+set}" = set; then :
6297 $as_echo_n "(cached) " >&6
6299 if test x"$cross_compiling" = xyes ; then
6300 # When cross-compiling, there is no way to tell whether // is special
6301 # short of a list of hosts. However, the only known hosts to date
6302 # that have a distinct // are Apollo DomainOS (too old to port to),
6303 # Cygwin, and z/OS. If anyone knows of another system for which // has
6304 # special semantics and is distinct from /, please report it to
6305 # <bug-gnulib@gnu.org>.
6307 *-cygwin | i370-ibm-openedition)
6308 gl_cv_double_slash_root=yes ;;
6310 # Be optimistic and assume that / and // are the same when we
6312 gl_cv_double_slash_root='unknown, assuming no' ;;
6315 set x `ls -di / // 2>/dev
/null
`
6316 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
6317 gl_cv_double_slash_root=no
6319 gl_cv_double_slash_root=yes
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
6324 $as_echo "$gl_cv_double_slash_root" >&6; }
6325 if test "$gl_cv_double_slash_root" = yes; then
6327 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether realpath works" >&5
6336 $as_echo_n "checking whether realpath works... " >&6; }
6337 if test "${gl_cv_func_realpath_works+set}" = set; then :
6338 $as_echo_n "(cached) " >&6
6343 if test "$cross_compiling" = yes; then :
6345 # Guess yes on glibc systems.
6346 *-gnu* | gnu*) gl_cv_func_realpath_works="guessing yes" ;;
6347 # If we don't know, assume the worst.
6348 *) gl_cv_func_realpath_works="guessing no" ;;
6352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6353 /* end confdefs.h. */
6358 #if defined __MACH__ && defined __APPLE__
6359 /* Avoid a crash on Mac OS X. */
6360 #include <mach/mach.h>
6361 #include <mach/mach_error.h>
6362 #include <mach/thread_status.h>
6363 #include <mach/exception.h>
6364 #include <mach/task.h>
6365 #include <pthread.h>
6366 /* The exception port on which our thread listens. */
6367 static mach_port_t our_exception_port;
6368 /* The main function of the thread listening for exceptions of type
6371 mach_exception_thread (void *arg)
6373 /* Buffer for a message to be received. */
6375 mach_msg_header_t head;
6376 mach_msg_body_t msgh_body;
6379 mach_msg_return_t retval;
6380 /* Wait for a message on the exception port. */
6381 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
6382 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
6383 if (retval != MACH_MSG_SUCCESS)
6390 mach_port_t self = mach_task_self ();
6391 /* Allocate a port on which the thread shall listen for exceptions. */
6392 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
6394 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
6395 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
6396 MACH_MSG_TYPE_MAKE_SEND)
6398 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
6400 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
6401 /* Create the thread listening on the exception port. */
6402 pthread_attr_t attr;
6404 if (pthread_attr_init (&attr) == 0
6405 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
6406 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
6407 pthread_attr_destroy (&attr);
6408 /* Replace the exception port info for these exceptions with our own.
6409 Note that we replace the exception port for the entire task, not only
6410 for a particular thread. This has the effect that when our exception
6411 port gets the message, the thread specific exception port has already
6412 been asked, and we don't need to bother about it.
6413 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
6414 task_set_exception_ports (self, mask, our_exception_port,
6415 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
6420 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
6421 /* Avoid a crash on native Windows. */
6422 #define WIN32_LEAN_AND_MEAN
6423 #include <windows.h>
6424 #include <winerror.h>
6426 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
6428 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
6430 case EXCEPTION_ACCESS_VIOLATION:
6431 case EXCEPTION_IN_PAGE_ERROR:
6432 case EXCEPTION_STACK_OVERFLOW:
6433 case EXCEPTION_GUARD_PAGE:
6434 case EXCEPTION_PRIV_INSTRUCTION:
6435 case EXCEPTION_ILLEGAL_INSTRUCTION:
6436 case EXCEPTION_DATATYPE_MISALIGNMENT:
6437 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
6438 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
6441 return EXCEPTION_CONTINUE_SEARCH;
6446 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
6449 /* Avoid a crash on POSIX systems. */
6452 /* A POSIX signal handler. */
6454 exception_handler (int sig)
6462 signal (SIGSEGV, exception_handler);
6465 signal (SIGBUS, exception_handler);
6479 char *name = realpath ("conftest.a", NULL);
6480 if (!(name && *name == '/'))
6485 char *name = realpath ("conftest.b/../conftest.a", NULL);
6491 char *name = realpath ("conftest.a/", NULL);
6497 char *name1 = realpath (".", NULL);
6498 char *name2 = realpath ("conftest.d//./..", NULL);
6499 if (! name1 || ! name2 || strcmp (name1, name2))
6511 if ac_fn_c_try_run "$LINENO"; then :
6512 gl_cv_func_realpath_works=yes
6514 gl_cv_func_realpath_works=no
6516 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6517 conftest.$ac_objext conftest.beam conftest.$ac_ext
6520 rm -rf conftest.a conftest.d
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_realpath_works" >&5
6524 $as_echo "$gl_cv_func_realpath_works" >&6; }
6525 case "$gl_cv_func_realpath_works" in
6528 $as_echo "#define FUNC_REALPATH_WORKS 1" >>confdefs.h
6536 for ac_header in $ac_header_list
6538 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6539 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6541 eval as_val=\$$as_ac_Header
6542 if test "x$as_val" = x""yes; then :
6543 cat >>confdefs.h <<_ACEOF
6544 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6568 GNULIB_EUIDACCESS=0;
6576 GNULIB_GETDOMAINNAME=0;
6577 GNULIB_GETDTABLESIZE=0;
6579 GNULIB_GETHOSTNAME=0;
6581 GNULIB_GETLOGIN_R=0;
6582 GNULIB_GETPAGESIZE=0;
6583 GNULIB_GETUSERSHELL=0;
6584 GNULIB_GROUP_MEMBER=0;
6596 GNULIB_READLINKAT=0;
6598 GNULIB_SETHOSTNAME=0;
6603 GNULIB_UNISTD_H_NONBLOCKING=0;
6604 GNULIB_UNISTD_H_SIGPIPE=0;
6619 HAVE_GETDTABLESIZE=1;
6624 HAVE_GROUP_MEMBER=1;
6640 HAVE_DECL_ENVIRON=1;
6642 HAVE_DECL_FDATASYNC=1;
6643 HAVE_DECL_GETDOMAINNAME=1;
6644 HAVE_DECL_GETLOGIN_R=1;
6645 HAVE_DECL_GETPAGESIZE=1;
6646 HAVE_DECL_GETUSERSHELL=1;
6647 HAVE_DECL_SETHOSTNAME=1;
6648 HAVE_DECL_TTYNAME_R=1;
6656 REPLACE_FTRUNCATE=0;
6658 REPLACE_GETDOMAINNAME=0;
6659 REPLACE_GETDTABLESIZE=0;
6660 REPLACE_GETLOGIN_R=0;
6661 REPLACE_GETGROUPS=0;
6662 REPLACE_GETPAGESIZE=0;
6672 REPLACE_READLINKAT=0;
6676 REPLACE_SYMLINKAT=0;
6677 REPLACE_TTYNAME_R=0;
6682 UNISTD_H_HAVE_WINSOCK2_H=0;
6683 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
6700 HAVE_DECL_FDOPENDIR=1;
6707 REPLACE_FDOPENDIR=0;
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
6712 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
6713 if test "${gl_cv_have_include_next+set}" = set; then :
6714 $as_echo_n "(cached) " >&6
6716 rm -rf conftestd1a conftestd1b conftestd2
6717 mkdir conftestd1a conftestd1b conftestd2
6718 cat <<EOF > conftestd1a/conftest.h
6719 #define DEFINED_IN_CONFTESTD1
6720 #include_next <conftest.h>
6721 #ifdef DEFINED_IN_CONFTESTD2
6724 #error "include_next doesn't work"
6727 cat <<EOF > conftestd1b/conftest.h
6728 #define DEFINED_IN_CONFTESTD1
6730 #include_next <conftest.h>
6731 #ifdef DEFINED_IN_CONFTESTD2
6734 #error "include_next doesn't work"
6737 cat <<EOF > conftestd2/conftest.h
6738 #ifndef DEFINED_IN_CONFTESTD1
6739 #error "include_next test doesn't work"
6741 #define DEFINED_IN_CONFTESTD2
6743 gl_save_CPPFLAGS="$CPPFLAGS"
6744 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
6745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6746 /* end confdefs.h. */
6747 #include <conftest.h>
6749 if ac_fn_c_try_compile "$LINENO"; then :
6750 gl_cv_have_include_next=yes
6752 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
6753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6754 /* end confdefs.h. */
6755 #include <conftest.h>
6757 if ac_fn_c_try_compile "$LINENO"; then :
6758 gl_cv_have_include_next=buggy
6760 gl_cv_have_include_next=no
6762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6766 CPPFLAGS="$gl_save_CPPFLAGS"
6767 rm -rf conftestd1a conftestd1b conftestd2
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
6771 $as_echo "$gl_cv_have_include_next" >&6; }
6772 PRAGMA_SYSTEM_HEADER=
6773 if test $gl_cv_have_include_next = yes; then
6774 INCLUDE_NEXT=include_next
6775 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
6776 if test -n "$GCC"; then
6777 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
6780 if test $gl_cv_have_include_next = buggy; then
6781 INCLUDE_NEXT=include
6782 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
6784 INCLUDE_NEXT=include
6785 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
6792 $as_echo_n "checking whether system header files limit the line length... " >&6; }
6793 if test "${gl_cv_pragma_columns+set}" = set; then :
6794 $as_echo_n "(cached) " >&6
6796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6797 /* end confdefs.h. */
6804 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6805 $EGREP "choke me" >/dev/null 2>&1; then :
6806 gl_cv_pragma_columns=yes
6808 gl_cv_pragma_columns=no
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
6815 $as_echo "$gl_cv_pragma_columns" >&6; }
6816 if test $gl_cv_pragma_columns = yes; then
6817 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
6828 $as_echo_n "checking for complete errno.h... " >&6; }
6829 if test "${gl_cv_header_errno_h_complete+set}" = set; then :
6830 $as_echo_n "(cached) " >&6
6833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6834 /* end confdefs.h. */
6837 #if !defined ETXTBSY
6846 #if !defined ENOLINK
6852 #if !defined EMULTIHOP
6855 #if !defined EBADMSG
6858 #if !defined EOVERFLOW
6861 #if !defined ENOTSUP
6864 #if !defined ENETRESET
6867 #if !defined ECONNABORTED
6876 #if !defined ECANCELED
6879 #if !defined EOWNERDEAD
6882 #if !defined ENOTRECOVERABLE
6890 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6891 $EGREP "booboo" >/dev/null 2>&1; then :
6892 gl_cv_header_errno_h_complete=no
6894 gl_cv_header_errno_h_complete=yes
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
6901 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
6902 if test $gl_cv_header_errno_h_complete = yes; then
6913 if test $gl_cv_have_include_next = yes; then
6914 gl_cv_next_errno_h='<'errno.h'>'
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
6917 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
6918 if test "${gl_cv_next_errno_h+set}" = set; then :
6919 $as_echo_n "(cached) " >&6
6924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6925 /* end confdefs.h. */
6929 aix*) gl_absname_cpp="$ac_cpp -C" ;;
6930 *) gl_absname_cpp="$ac_cpp" ;;
6935 gl_dirsep_regex='[/\\]'
6938 gl_dirsep_regex='\/'
6941 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
6942 gl_header_literal_regex=`echo 'errno.h' \
6943 |
sed -e "$gl_make_literal_regex_sed"`
6944 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
6945 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
6951 gl_cv_absolute_errno_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6952 sed -n "$gl_absolute_header_sed"`
6954 gl_header=$gl_cv_absolute_errno_h
6955 gl_cv_next_errno_h='"'$gl_header'"'
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
6960 $as_echo "$gl_cv_next_errno_h" >&6; }
6962 NEXT_ERRNO_H=$gl_cv_next_errno_h
6964 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
6965 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6966 gl_next_as_first_directive='<'errno.h'>'
6968 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6969 gl_next_as_first_directive=$gl_cv_next_errno_h
6971 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
6979 if test -n "$ERRNO_H"; then
6980 GL_GENERATE_ERRNO_H_TRUE=
6981 GL_GENERATE_ERRNO_H_FALSE='#'
6983 GL_GENERATE_ERRNO_H_TRUE='#'
6984 GL_GENERATE_ERRNO_H_FALSE=
6988 if test -n "$ERRNO_H"; then
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
6990 $as_echo_n "checking for EMULTIHOP value... " >&6; }
6991 if test "${gl_cv_header_errno_h_EMULTIHOP+set}" = set; then :
6992 $as_echo_n "(cached) " >&6
6995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6996 /* end confdefs.h. */
7004 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7005 $EGREP "yes" >/dev/null 2>&1; then :
7006 gl_cv_header_errno_h_EMULTIHOP=yes
7008 gl_cv_header_errno_h_EMULTIHOP=no
7012 if test $gl_cv_header_errno_h_EMULTIHOP = no; then
7013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7014 /* end confdefs.h. */
7016 #define _XOPEN_SOURCE_EXTENDED 1
7023 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7024 $EGREP "yes" >/dev/null 2>&1; then :
7025 gl_cv_header_errno_h_EMULTIHOP=hidden
7029 if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
7030 if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
7031 #define _XOPEN_SOURCE_EXTENDED 1
7033 /* The following two lines are a workaround against an autoconf-2.52 bug. */
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
7045 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
7046 case $gl_cv_header_errno_h_EMULTIHOP in
7048 EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
7051 EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
7059 if test -n "$ERRNO_H"; then
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
7061 $as_echo_n "checking for ENOLINK value... " >&6; }
7062 if test "${gl_cv_header_errno_h_ENOLINK+set}" = set; then :
7063 $as_echo_n "(cached) " >&6
7066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7067 /* end confdefs.h. */
7075 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7076 $EGREP "yes" >/dev/null 2>&1; then :
7077 gl_cv_header_errno_h_ENOLINK=yes
7079 gl_cv_header_errno_h_ENOLINK=no
7083 if test $gl_cv_header_errno_h_ENOLINK = no; then
7084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7085 /* end confdefs.h. */
7087 #define _XOPEN_SOURCE_EXTENDED 1
7094 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7095 $EGREP "yes" >/dev/null 2>&1; then :
7096 gl_cv_header_errno_h_ENOLINK=hidden
7100 if test $gl_cv_header_errno_h_ENOLINK = hidden; then
7101 if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
7102 #define _XOPEN_SOURCE_EXTENDED 1
7104 /* The following two lines are a workaround against an autoconf-2.52 bug. */
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
7116 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
7117 case $gl_cv_header_errno_h_ENOLINK in
7119 ENOLINK_HIDDEN=0; ENOLINK_VALUE=
7122 ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
7130 if test -n "$ERRNO_H"; then
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
7132 $as_echo_n "checking for EOVERFLOW value... " >&6; }
7133 if test "${gl_cv_header_errno_h_EOVERFLOW+set}" = set; then :
7134 $as_echo_n "(cached) " >&6
7137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7138 /* end confdefs.h. */
7146 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7147 $EGREP "yes" >/dev/null 2>&1; then :
7148 gl_cv_header_errno_h_EOVERFLOW=yes
7150 gl_cv_header_errno_h_EOVERFLOW=no
7154 if test $gl_cv_header_errno_h_EOVERFLOW = no; then
7155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7156 /* end confdefs.h. */
7158 #define _XOPEN_SOURCE_EXTENDED 1
7165 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7166 $EGREP "yes" >/dev/null 2>&1; then :
7167 gl_cv_header_errno_h_EOVERFLOW=hidden
7171 if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
7172 if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
7173 #define _XOPEN_SOURCE_EXTENDED 1
7175 /* The following two lines are a workaround against an autoconf-2.52 bug. */
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
7187 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
7188 case $gl_cv_header_errno_h_EOVERFLOW in
7190 EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
7193 EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
7207 $as_echo_n "checking for mbstate_t... " >&6; }
7208 if test "${ac_cv_type_mbstate_t+set}" = set; then :
7209 $as_echo_n "(cached) " >&6
7211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7212 /* end confdefs.h. */
7213 $ac_includes_default
7214 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
7216 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7217 included before <wchar.h>. */
7225 mbstate_t x; return sizeof x;
7230 if ac_fn_c_try_compile "$LINENO"; then :
7231 ac_cv_type_mbstate_t=yes
7233 ac_cv_type_mbstate_t=no
7235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
7238 $as_echo "$ac_cv_type_mbstate_t" >&6; }
7239 if test $ac_cv_type_mbstate_t = yes; then
7241 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
7245 $as_echo "#define mbstate_t int" >>confdefs.h
7343 GNULIB_REMAINDERF=0;
7344 GNULIB_REMAINDERL=0;
7430 HAVE_DECL_COPYSIGNF=1;
7447 HAVE_DECL_REMAINDER=1;
7448 HAVE_DECL_REMAINDERL=1;
7510 REPLACE_REMAINDER=0;
7511 REPLACE_REMAINDERF=0;
7512 REPLACE_REMAINDERL=0;
7517 REPLACE_SIGNBIT_USING_GCC=0;
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used without linking with libm" >&5
7525 $as_echo_n "checking whether frexp() can be used without linking with libm... " >&6; }
7526 if test "${gl_cv_func_frexp_no_libm+set}" = set; then :
7527 $as_echo_n "(cached) " >&6
7530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7531 /* end confdefs.h. */
7537 int e; return frexp (x, &e) > 0;
7542 if ac_fn_c_try_link "$LINENO"; then :
7543 gl_cv_func_frexp_no_libm=yes
7545 gl_cv_func_frexp_no_libm=no
7547 rm -f core conftest.err conftest.$ac_objext \
7548 conftest$ac_exeext conftest.$ac_ext
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_no_libm" >&5
7552 $as_echo "$gl_cv_func_frexp_no_libm" >&6; }
7554 ac_fn_c_check_decl "$LINENO" "alarm" "ac_cv_have_decl_alarm" "$ac_includes_default"
7555 if test "x$ac_cv_have_decl_alarm" = x""yes; then :
7561 cat >>confdefs.h <<_ACEOF
7562 #define HAVE_DECL_ALARM $ac_have_decl
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long double and double are the same" >&5
7567 $as_echo_n "checking whether long double and double are the same... " >&6; }
7568 if test "${gl_cv_long_double_equals_double+set}" = set; then :
7569 $as_echo_n "(cached) " >&6
7571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7572 /* end confdefs.h. */
7577 typedef int check[sizeof (long double) == sizeof (double)
7578 && LDBL_MANT_DIG == DBL_MANT_DIG
7579 && LDBL_MAX_EXP == DBL_MAX_EXP
7580 && LDBL_MIN_EXP == DBL_MIN_EXP
7587 if ac_fn_c_try_compile "$LINENO"; then :
7588 gl_cv_long_double_equals_double=yes
7590 gl_cv_long_double_equals_double=no
7592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_long_double_equals_double" >&5
7596 $as_echo "$gl_cv_long_double_equals_double" >&6; }
7597 if test $gl_cv_long_double_equals_double = yes; then
7599 $as_echo "#define HAVE_SAME_LONG_DOUBLE_AS_DOUBLE 1" >>confdefs.h
7601 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=1
7603 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=0
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
7608 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
7609 if test "${ac_cv_c_restrict+set}" = set; then :
7610 $as_echo_n "(cached) " >&6
7613 # The order here caters to the fact that C++ does not require restrict.
7614 for ac_kw in __restrict __restrict__ _Restrict restrict; do
7615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7616 /* end confdefs.h. */
7617 typedef int *int_ptr;
7618 int foo (int_ptr $ac_kw ip) { return ip[0]; }
7619 int bar (int [$ac_kw]); /* Catch GCC bug 14050. */
7620 int bar (int ip[$ac_kw]) { return ip[0]; }
7628 return foo (t) + bar (t);
7634 if ac_fn_c_try_compile "$LINENO"; then :
7635 ac_cv_c_restrict=$ac_kw
7637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7638 test "$ac_cv_c_restrict" != no && break
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
7643 $as_echo "$ac_cv_c_restrict" >&6; }
7645 case $ac_cv_c_restrict in
7647 no) $as_echo "#define restrict /**/" >>confdefs.h
7649 *) cat >>confdefs.h <<_ACEOF
7650 #define restrict $ac_cv_c_restrict
7656 GNULIB_GETTIMEOFDAY=0;
7657 HAVE_GETTIMEOFDAY=1;
7658 HAVE_STRUCT_TIMEVAL=1;
7661 REPLACE_GETTIMEOFDAY=0;
7662 REPLACE_STRUCT_TIMEVAL=0;
7681 if test $gl_cv_have_include_next = yes; then
7682 gl_cv_next_sys_time_h='<'sys/time.h'>'
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
7685 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
7686 if test "${gl_cv_next_sys_time_h+set}" = set; then :
7687 $as_echo_n "(cached) " >&6
7690 if test $ac_cv_header_sys_time_h = yes; then
7695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7696 /* end confdefs.h. */
7697 #include <sys/time.h>
7700 aix*) gl_absname_cpp="$ac_cpp -C" ;;
7701 *) gl_absname_cpp="$ac_cpp" ;;
7706 gl_dirsep_regex='[/\\]'
7709 gl_dirsep_regex='\/'
7712 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
7713 gl_header_literal_regex=`echo 'sys/time.h' \
7714 |
sed -e "$gl_make_literal_regex_sed"`
7715 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
7716 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
7722 gl_cv_absolute_sys_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7723 sed -n "$gl_absolute_header_sed"`
7725 gl_header=$gl_cv_absolute_sys_time_h
7726 gl_cv_next_sys_time_h='"'$gl_header'"'
7728 gl_cv_next_sys_time_h='<'sys/time.h'>'
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
7734 $as_echo "$gl_cv_next_sys_time_h" >&6; }
7736 NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
7738 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
7739 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7740 gl_next_as_first_directive='<'sys/time.h'>'
7742 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7743 gl_next_as_first_directive=$gl_cv_next_sys_time_h
7745 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
7751 if test $ac_cv_header_sys_time_h != yes; then
7759 if test $ac_cv_header_sys_socket_h != yes; then
7760 for ac_header in winsock2.h
7762 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
7763 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
7764 cat >>confdefs.h <<_ACEOF
7765 #define HAVE_WINSOCK2_H 1
7773 if test "$ac_cv_header_winsock2_h" = yes; then
7775 UNISTD_H_HAVE_WINSOCK2_H=1
7776 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
7783 $as_echo_n "checking for struct timeval... " >&6; }
7784 if test "${gl_cv_sys_struct_timeval+set}" = set; then :
7785 $as_echo_n "(cached) " >&6
7787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7788 /* end confdefs.h. */
7790 #include <sys/time.h>
7794 # include <winsock2.h>
7800 static struct timeval x; x.tv_sec = x.tv_usec;
7805 if ac_fn_c_try_compile "$LINENO"; then :
7806 gl_cv_sys_struct_timeval=yes
7808 gl_cv_sys_struct_timeval=no
7810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
7814 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
7815 if test $gl_cv_sys_struct_timeval != yes; then
7816 HAVE_STRUCT_TIMEVAL=0
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
7819 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
7820 if test "${gl_cv_sys_struct_timeval_tv_sec+set}" = set; then :
7821 $as_echo_n "(cached) " >&6
7823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7824 /* end confdefs.h. */
7826 #include <sys/time.h>
7830 # include <winsock2.h>
7836 static struct timeval x;
7837 typedef int verify_tv_sec_type[
7838 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
7845 if ac_fn_c_try_compile "$LINENO"; then :
7846 gl_cv_sys_struct_timeval_tv_sec=yes
7848 gl_cv_sys_struct_timeval_tv_sec=no
7850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
7854 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
7855 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
7856 REPLACE_STRUCT_TIMEVAL=1
7861 for gl_func in gettimeofday; do
7862 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
7864 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
7865 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
7866 $as_echo_n "(cached) " >&6
7868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7869 /* end confdefs.h. */
7872 # include <sys/time.h>
7885 if ac_fn_c_try_compile "$LINENO"; then :
7886 eval "$as_gl_Symbol=yes"
7888 eval "$as_gl_Symbol=no"
7890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7892 eval ac_res=\$$as_gl_Symbol
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7894 $as_echo "$ac_res" >&6; }
7895 eval as_val=\$$as_gl_Symbol
7896 if test "x$as_val" = x""yes; then :
7897 cat >>confdefs.h <<_ACEOF
7898 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
7901 eval ac_cv_have_decl_$gl_func=yes
7923 if test $gl_cv_have_include_next = yes; then
7924 gl_cv_next_limits_h='<'limits.h'>'
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <limits.h>" >&5
7927 $as_echo_n "checking absolute name of <limits.h>... " >&6; }
7928 if test "${gl_cv_next_limits_h+set}" = set; then :
7929 $as_echo_n "(cached) " >&6
7932 if test $ac_cv_header_limits_h = yes; then
7937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7938 /* end confdefs.h. */
7942 aix*) gl_absname_cpp="$ac_cpp -C" ;;
7943 *) gl_absname_cpp="$ac_cpp" ;;
7948 gl_dirsep_regex='[/\\]'
7951 gl_dirsep_regex='\/'
7954 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
7955 gl_header_literal_regex=`echo 'limits.h' \
7956 |
sed -e "$gl_make_literal_regex_sed"`
7957 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
7958 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
7964 gl_cv_absolute_limits_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7965 sed -n "$gl_absolute_header_sed"`
7967 gl_header=$gl_cv_absolute_limits_h
7968 gl_cv_next_limits_h='"'$gl_header'"'
7970 gl_cv_next_limits_h='<'limits.h'>'
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_limits_h" >&5
7976 $as_echo "$gl_cv_next_limits_h" >&6; }
7978 NEXT_LIMITS_H=$gl_cv_next_limits_h
7980 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
7981 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7982 gl_next_as_first_directive='<'limits.h'>'
7984 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7985 gl_next_as_first_directive=$gl_cv_next_limits_h
7987 NEXT_AS_FIRST_DIRECTIVE_LIMITS_H=$gl_next_as_first_directive
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether limits.h has ULLONG_WIDTH etc." >&5
7994 $as_echo_n "checking whether limits.h has ULLONG_WIDTH etc.... " >&6; }
7995 if test "${gl_cv_header_limits_width+set}" = set; then :
7996 $as_echo_n "(cached) " >&6
7998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7999 /* end confdefs.h. */
8000 #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
8001 #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
8004 int ullw = ULLONG_WIDTH;
8013 if ac_fn_c_try_compile "$LINENO"; then :
8014 gl_cv_header_limits_width=yes
8016 gl_cv_header_limits_width=no
8018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_limits_width" >&5
8021 $as_echo "$gl_cv_header_limits_width" >&6; }
8022 if test "$gl_cv_header_limits_width" = yes; then
8028 if test -n "$LIMITS_H"; then
8029 GL_GENERATE_LIMITS_H_TRUE=
8030 GL_GENERATE_LIMITS_H_FALSE='#'
8032 GL_GENERATE_LIMITS_H_TRUE='#'
8033 GL_GENERATE_LIMITS_H_FALSE=
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
8039 $as_echo_n "checking for unsigned long long int... " >&6; }
8040 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
8041 $as_echo_n "(cached) " >&6
8043 ac_cv_type_unsigned_long_long_int=yes
8044 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
8045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8046 /* end confdefs.h. */
8048 /* For now, do not test the preprocessor; as of 2007 there are too many
8049 implementations with broken preprocessors. Perhaps this can
8050 be revisited in 2012. In the meantime, code should not expect
8051 #if to work with literals wider than 32 bits. */
8052 /* Test literals. */
8053 long long int ll = 9223372036854775807ll;
8054 long long int nll = -9223372036854775807LL;
8055 unsigned long long int ull = 18446744073709551615ULL;
8056 /* Test constant expressions. */
8057 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
8059 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
8065 /* Test availability of runtime routines for shift and division. */
8066 long long int llmax = 9223372036854775807ll;
8067 unsigned long long int ullmax = 18446744073709551615ull;
8068 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
8069 | (llmax / ll) | (llmax % ll)
8070 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
8071 | (ullmax / ull) | (ullmax % ull));
8077 if ac_fn_c_try_link "$LINENO"; then :
8080 ac_cv_type_unsigned_long_long_int=no
8082 rm -f core conftest.err conftest.$ac_objext \
8083 conftest$ac_exeext conftest.$ac_ext
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
8087 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
8088 if test $ac_cv_type_unsigned_long_long_int = yes; then
8090 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
8097 $as_echo_n "checking for long long int... " >&6; }
8098 if test "${ac_cv_type_long_long_int+set}" = set; then :
8099 $as_echo_n "(cached) " >&6
8101 ac_cv_type_long_long_int=yes
8102 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
8103 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
8104 if test $ac_cv_type_long_long_int = yes; then
8105 if test "$cross_compiling" = yes; then :
8108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8109 /* end confdefs.h. */
8113 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
8114 # define LLONG_MAX (HALF - 1 + HALF)
8119 long long int n = 1;
8123 long long int m = n << i;
8126 if (LLONG_MAX / 2 < m)
8134 if ac_fn_c_try_run "$LINENO"; then :
8137 ac_cv_type_long_long_int=no
8139 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8140 conftest.$ac_objext conftest.beam conftest.$ac_ext
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
8147 $as_echo "$ac_cv_type_long_long_int" >&6; }
8148 if test $ac_cv_type_long_long_int = yes; then
8150 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
8159 gl_cv_c_multiarch=no
8160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8161 /* end confdefs.h. */
8162 #ifndef __APPLE_CC__
8163 not a universal capable compiler
8168 if ac_fn_c_try_compile "$LINENO"; then :
8172 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
8173 if test -n "$prev"; then
8175 i?86 | x86_64 | ppc | ppc64)
8176 if test -z "$arch" || test "$arch" = "$word"; then
8179 gl_cv_c_multiarch=yes
8185 if test "x$word" = "x-arch"; then
8192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8193 if test $gl_cv_c_multiarch = yes; then
8194 APPLE_UNIVERSAL_BUILD=1
8196 APPLE_UNIVERSAL_BUILD=0
8205 if test $ac_cv_type_long_long_int = yes; then
8206 HAVE_LONG_LONG_INT=1
8208 HAVE_LONG_LONG_INT=0
8212 if test $ac_cv_type_unsigned_long_long_int = yes; then
8213 HAVE_UNSIGNED_LONG_LONG_INT=1
8215 HAVE_UNSIGNED_LONG_LONG_INT=0
8220 if test $ac_cv_header_wchar_h = yes; then
8227 if test $ac_cv_header_inttypes_h = yes; then
8234 if test $ac_cv_header_sys_types_h = yes; then
8250 if test $gl_cv_have_include_next = yes; then
8251 gl_cv_next_stdint_h='<'stdint.h'>'
8253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
8254 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
8255 if test "${gl_cv_next_stdint_h+set}" = set; then :
8256 $as_echo_n "(cached) " >&6
8259 if test $ac_cv_header_stdint_h = yes; then
8264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8265 /* end confdefs.h. */
8269 aix*) gl_absname_cpp="$ac_cpp -C" ;;
8270 *) gl_absname_cpp="$ac_cpp" ;;
8275 gl_dirsep_regex='[/\\]'
8278 gl_dirsep_regex='\/'
8281 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
8282 gl_header_literal_regex=`echo 'stdint.h' \
8283 |
sed -e "$gl_make_literal_regex_sed"`
8284 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
8285 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
8291 gl_cv_absolute_stdint_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
8292 sed -n "$gl_absolute_header_sed"`
8294 gl_header=$gl_cv_absolute_stdint_h
8295 gl_cv_next_stdint_h='"'$gl_header'"'
8297 gl_cv_next_stdint_h='<'stdint.h'>'
8302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
8303 $as_echo "$gl_cv_next_stdint_h" >&6; }
8305 NEXT_STDINT_H=$gl_cv_next_stdint_h
8307 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
8308 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
8309 gl_next_as_first_directive='<'stdint.h'>'
8311 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
8312 gl_next_as_first_directive=$gl_cv_next_stdint_h
8314 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
8319 if test $ac_cv_header_stdint_h = yes; then
8326 if test $ac_cv_header_stdint_h = yes; then
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
8328 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
8329 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
8330 $as_echo_n "(cached) " >&6
8332 gl_cv_header_working_stdint_h=no
8333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8334 /* end confdefs.h. */
8337 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
8338 #define __STDC_CONSTANT_MACROS 1
8339 #define __STDC_LIMIT_MACROS 1
8341 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
8342 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
8343 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
8347 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8348 included before <wchar.h>. */
8359 int8_t a1 = INT8_MAX;
8360 int8_t a1min = INT8_MIN;
8363 int16_t a2 = INT16_MAX;
8364 int16_t a2min = INT16_MIN;
8367 int32_t a3 = INT32_MAX;
8368 int32_t a3min = INT32_MIN;
8371 int64_t a4 = INT64_MAX;
8372 int64_t a4min = INT64_MIN;
8375 uint8_t b1 = UINT8_MAX;
8377 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
8380 uint16_t b2 = UINT16_MAX;
8383 uint32_t b3 = UINT32_MAX;
8386 uint64_t b4 = UINT64_MAX;
8388 int_least8_t c1 = INT8_C (0x7f);
8389 int_least8_t c1max = INT_LEAST8_MAX;
8390 int_least8_t c1min = INT_LEAST8_MIN;
8391 int_least16_t c2 = INT16_C (0x7fff);
8392 int_least16_t c2max = INT_LEAST16_MAX;
8393 int_least16_t c2min = INT_LEAST16_MIN;
8394 int_least32_t c3 = INT32_C (0x7fffffff);
8395 int_least32_t c3max = INT_LEAST32_MAX;
8396 int_least32_t c3min = INT_LEAST32_MIN;
8397 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
8398 int_least64_t c4max = INT_LEAST64_MAX;
8399 int_least64_t c4min = INT_LEAST64_MIN;
8400 uint_least8_t d1 = UINT8_C (0xff);
8401 uint_least8_t d1max = UINT_LEAST8_MAX;
8402 uint_least16_t d2 = UINT16_C (0xffff);
8403 uint_least16_t d2max = UINT_LEAST16_MAX;
8404 uint_least32_t d3 = UINT32_C (0xffffffff);
8405 uint_least32_t d3max = UINT_LEAST32_MAX;
8406 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
8407 uint_least64_t d4max = UINT_LEAST64_MAX;
8408 int_fast8_t e1 = INT_FAST8_MAX;
8409 int_fast8_t e1min = INT_FAST8_MIN;
8410 int_fast16_t e2 = INT_FAST16_MAX;
8411 int_fast16_t e2min = INT_FAST16_MIN;
8412 int_fast32_t e3 = INT_FAST32_MAX;
8413 int_fast32_t e3min = INT_FAST32_MIN;
8414 int_fast64_t e4 = INT_FAST64_MAX;
8415 int_fast64_t e4min = INT_FAST64_MIN;
8416 uint_fast8_t f1 = UINT_FAST8_MAX;
8417 uint_fast16_t f2 = UINT_FAST16_MAX;
8418 uint_fast32_t f3 = UINT_FAST32_MAX;
8419 uint_fast64_t f4 = UINT_FAST64_MAX;
8421 intptr_t g = INTPTR_MAX;
8422 intptr_t gmin = INTPTR_MIN;
8425 uintptr_t h = UINTPTR_MAX;
8427 intmax_t i = INTMAX_MAX;
8428 uintmax_t j = UINTMAX_MAX;
8430 #include <limits.h> /* for CHAR_BIT */
8431 #define TYPE_MINIMUM(t) \
8432 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
8433 #define TYPE_MAXIMUM(t) \
8434 ((t) ((t) 0 < (t) -1 \
8436 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
8439 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
8440 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
8442 /* Detect bug in FreeBSD 6.0 / ia64. */
8443 int check_SIG_ATOMIC:
8444 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
8445 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
8447 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
8449 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
8450 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
8452 /* Detect bug in mingw. */
8454 WINT_MIN == TYPE_MINIMUM (wint_t)
8455 && WINT_MAX == TYPE_MAXIMUM (wint_t)
8458 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
8460 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
8462 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
8464 /* Detect bugs in OpenBSD 3.9 stdint.h. */
8466 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
8469 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
8472 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
8475 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
8477 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
8478 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
8479 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
8480 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
8481 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
8482 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
8483 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
8484 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
8485 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
8486 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
8487 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
8498 if ac_fn_c_try_compile "$LINENO"; then :
8499 if test "$cross_compiling" = yes; then :
8500 gl_cv_header_working_stdint_h=yes
8503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8504 /* end confdefs.h. */
8507 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
8508 #define __STDC_CONSTANT_MACROS 1
8509 #define __STDC_LIMIT_MACROS 1
8513 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8514 included before <wchar.h>. */
8526 #define MVAL(macro) MVAL1(macro)
8527 #define MVAL1(expression) #expression
8528 static const char *macro_values[] =
8562 for (mv = macro_values; *mv != NULL; mv++)
8564 const char *value = *mv;
8565 /* Test whether it looks like a cast expression. */
8566 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
8567 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
8568 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
8569 || strncmp (value, "((int)"/*)*/, 6) == 0
8570 || strncmp (value, "((signed short)"/*)*/, 15) == 0
8571 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
8572 return mv - macro_values + 1;
8580 if ac_fn_c_try_run "$LINENO"; then :
8581 gl_cv_header_working_stdint_h=yes
8583 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8584 conftest.$ac_objext conftest.beam conftest.$ac_ext
8589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
8593 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
8597 HAVE_SYS_BITYPES_H=0
8598 HAVE_SYS_INTTYPES_H=0
8600 if test "$gl_cv_header_working_stdint_h" = yes; then
8602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h predates C++11" >&5
8603 $as_echo_n "checking whether stdint.h predates C++11... " >&6; }
8604 if test "${gl_cv_header_stdint_predates_cxx11_h+set}" = set; then :
8605 $as_echo_n "(cached) " >&6
8607 gl_cv_header_stdint_predates_cxx11_h=yes
8608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8609 /* end confdefs.h. */
8612 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
8616 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8617 included before <wchar.h>. */
8627 intmax_t im = INTMAX_MAX;
8628 int32_t i32 = INT32_C (0x7fffffff);
8638 if ac_fn_c_try_compile "$LINENO"; then :
8639 gl_cv_header_stdint_predates_cxx11_h=no
8641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_predates_cxx11_h" >&5
8644 $as_echo "$gl_cv_header_stdint_predates_cxx11_h" >&6; }
8646 if test "$gl_cv_header_stdint_predates_cxx11_h" = yes; then
8648 $as_echo "#define __STDC_CONSTANT_MACROS 1" >>confdefs.h
8651 $as_echo "#define __STDC_LIMIT_MACROS 1" >>confdefs.h
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h has UINTMAX_WIDTH etc." >&5
8655 $as_echo_n "checking whether stdint.h has UINTMAX_WIDTH etc.... " >&6; }
8656 if test "${gl_cv_header_stdint_width+set}" = set; then :
8657 $as_echo_n "(cached) " >&6
8659 gl_cv_header_stdint_width=no
8660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8661 /* end confdefs.h. */
8663 /* Work if build is not clean. */
8664 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1
8665 #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
8666 #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
8670 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8671 included before <wchar.h>. */
8680 int iw = UINTMAX_WIDTH;
8690 if ac_fn_c_try_compile "$LINENO"; then :
8691 gl_cv_header_stdint_width=yes
8693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_width" >&5
8696 $as_echo "$gl_cv_header_stdint_width" >&6; }
8697 if test "$gl_cv_header_stdint_width" = yes; then
8701 for ac_header in sys/inttypes.h sys/bitypes.h
8703 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
8704 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8705 eval as_val=\$$as_ac_Header
8706 if test "x$as_val" = x""yes; then :
8707 cat >>confdefs.h <<_ACEOF
8708 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
8715 if test $ac_cv_header_sys_inttypes_h = yes; then
8716 HAVE_SYS_INTTYPES_H=1
8718 if test $ac_cv_header_sys_bitypes_h = yes; then
8719 HAVE_SYS_BITYPES_H=1
8723 if test $APPLE_UNIVERSAL_BUILD = 0; then
8726 for gltype in ptrdiff_t size_t ; do
8727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
8728 $as_echo_n "checking for bit size of $gltype... " >&6; }
8729 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
8730 $as_echo_n "(cached) " >&6
8732 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
8733 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8734 included before <wchar.h>. */
8743 #include <limits.h>"; then :
8749 eval gl_cv_bitsizeof_${gltype}=\$result
8752 eval ac_res=\$gl_cv_bitsizeof_${gltype}
8753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8754 $as_echo "$ac_res" >&6; }
8755 eval result=\$gl_cv_bitsizeof_${gltype}
8756 if test $result = unknown; then
8759 GLTYPE=`echo "$gltype" |
tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
8760 cat >>confdefs.h <<_ACEOF
8761 #define BITSIZEOF_${GLTYPE} $result
8764 eval BITSIZEOF_${GLTYPE}=\$result
8771 for gltype in sig_atomic_t wchar_t wint_t ; do
8772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
8773 $as_echo_n "checking for bit size of $gltype... " >&6; }
8774 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
8775 $as_echo_n "(cached) " >&6
8777 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
8778 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8779 included before <wchar.h>. */
8788 #include <limits.h>"; then :
8794 eval gl_cv_bitsizeof_${gltype}=\$result
8797 eval ac_res=\$gl_cv_bitsizeof_${gltype}
8798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8799 $as_echo "$ac_res" >&6; }
8800 eval result=\$gl_cv_bitsizeof_${gltype}
8801 if test $result = unknown; then
8804 GLTYPE=`echo "$gltype" |
tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
8805 cat >>confdefs.h <<_ACEOF
8806 #define BITSIZEOF_${GLTYPE} $result
8809 eval BITSIZEOF_${GLTYPE}=\$result
8815 for gltype in sig_atomic_t wchar_t wint_t ; do
8816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
8817 $as_echo_n "checking whether $gltype is signed... " >&6; }
8818 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
8819 $as_echo_n "(cached) " >&6
8821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8822 /* end confdefs.h. */
8824 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8825 included before <wchar.h>. */
8834 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
8843 if ac_fn_c_try_compile "$LINENO"; then :
8848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8849 eval gl_cv_type_${gltype}_signed=\$result
8852 eval ac_res=\$gl_cv_type_${gltype}_signed
8853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8854 $as_echo "$ac_res" >&6; }
8855 eval result=\$gl_cv_type_${gltype}_signed
8856 GLTYPE=`echo $gltype |
tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
8857 if test "$result" = yes; then
8858 cat >>confdefs.h <<_ACEOF
8859 #define HAVE_SIGNED_${GLTYPE} 1
8862 eval HAVE_SIGNED_${GLTYPE}=1
8864 eval HAVE_SIGNED_${GLTYPE}=0
8869 gl_cv_type_ptrdiff_t_signed=yes
8870 gl_cv_type_size_t_signed=no
8871 if test $APPLE_UNIVERSAL_BUILD = 0; then
8874 for gltype in ptrdiff_t size_t ; do
8875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
8876 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
8877 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
8878 $as_echo_n "(cached) " >&6
8880 eval gl_cv_type_${gltype}_suffix=no
8881 eval result=\$gl_cv_type_${gltype}_signed
8882 if test "$result" = yes; then
8887 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
8890 l) gltype1='long int';;
8891 ll) gltype1='long long int';;
8892 i64) gltype1='__int64';;
8893 u) gltype1='unsigned int';;
8894 ul) gltype1='unsigned long int';;
8895 ull) gltype1='unsigned long long int';;
8896 ui64)gltype1='unsigned __int64';;
8898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8899 /* end confdefs.h. */
8901 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8902 included before <wchar.h>. */
8912 extern $gltype1 foo;
8921 if ac_fn_c_try_compile "$LINENO"; then :
8922 eval gl_cv_type_${gltype}_suffix=\$glsuf
8924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8925 eval result=\$gl_cv_type_${gltype}_suffix
8926 test "$result" != no && break
8929 eval ac_res=\$gl_cv_type_${gltype}_suffix
8930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8931 $as_echo "$ac_res" >&6; }
8932 GLTYPE=`echo $gltype |
tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
8933 eval result=\$gl_cv_type_${gltype}_suffix
8934 test "$result" = no && result=
8935 eval ${GLTYPE}_SUFFIX=\$result
8936 cat >>confdefs.h <<_ACEOF
8937 #define ${GLTYPE}_SUFFIX $result
8946 for gltype in sig_atomic_t wchar_t wint_t ; do
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
8948 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
8949 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
8950 $as_echo_n "(cached) " >&6
8952 eval gl_cv_type_${gltype}_suffix=no
8953 eval result=\$gl_cv_type_${gltype}_signed
8954 if test "$result" = yes; then
8959 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
8962 l) gltype1='long int';;
8963 ll) gltype1='long long int';;
8964 i64) gltype1='__int64';;
8965 u) gltype1='unsigned int';;
8966 ul) gltype1='unsigned long int';;
8967 ull) gltype1='unsigned long long int';;
8968 ui64)gltype1='unsigned __int64';;
8970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8971 /* end confdefs.h. */
8973 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8974 included before <wchar.h>. */
8984 extern $gltype1 foo;
8993 if ac_fn_c_try_compile "$LINENO"; then :
8994 eval gl_cv_type_${gltype}_suffix=\$glsuf
8996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8997 eval result=\$gl_cv_type_${gltype}_suffix
8998 test "$result" != no && break
9001 eval ac_res=\$gl_cv_type_${gltype}_suffix
9002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9003 $as_echo "$ac_res" >&6; }
9004 GLTYPE=`echo $gltype |
tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
9005 eval result=\$gl_cv_type_${gltype}_suffix
9006 test "$result" = no && result=
9007 eval ${GLTYPE}_SUFFIX=\$result
9008 cat >>confdefs.h <<_ACEOF
9009 #define ${GLTYPE}_SUFFIX $result
9016 if test $BITSIZEOF_WINT_T -lt 32; then
9022 # The substitute stdint.h needs the substitute limit.h's _GL_INTEGER_WIDTH.
9024 if test -n "$LIMITS_H"; then
9025 GL_GENERATE_LIMITS_H_TRUE=
9026 GL_GENERATE_LIMITS_H_FALSE='#'
9028 GL_GENERATE_LIMITS_H_TRUE='#'
9029 GL_GENERATE_LIMITS_H_FALSE=
9037 if test -n "$STDINT_H"; then
9038 GL_GENERATE_STDINT_H_TRUE=
9039 GL_GENERATE_STDINT_H_FALSE='#'
9041 GL_GENERATE_STDINT_H_TRUE='#'
9042 GL_GENERATE_STDINT_H_FALSE=
9053 HAVE_DECL_IMAXABS=1;
9054 HAVE_DECL_IMAXDIV=1;
9055 HAVE_DECL_STRTOIMAX=1;
9056 HAVE_DECL_STRTOUMAX=1;
9057 REPLACE_STRTOIMAX=0;
9058 REPLACE_STRTOUMAX=0;
9059 INT32_MAX_LT_INTMAX_MAX=1;
9060 INT64_MAX_EQ_LONG_MAX='defined _LP64';
9061 PRI_MACROS_BROKEN=0;
9062 PRIPTR_PREFIX=__PRIPTR_PREFIX;
9063 UINT32_MAX_LT_UINTMAX_MAX=1;
9064 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
9080 if test $gl_cv_have_include_next = yes; then
9081 gl_cv_next_inttypes_h='<'inttypes.h'>'
9083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
9084 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
9085 if test "${gl_cv_next_inttypes_h+set}" = set; then :
9086 $as_echo_n "(cached) " >&6
9089 if test $ac_cv_header_inttypes_h = yes; then
9094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9095 /* end confdefs.h. */
9096 #include <inttypes.h>
9099 aix*) gl_absname_cpp="$ac_cpp -C" ;;
9100 *) gl_absname_cpp="$ac_cpp" ;;
9105 gl_dirsep_regex='[/\\]'
9108 gl_dirsep_regex='\/'
9111 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
9112 gl_header_literal_regex=`echo 'inttypes.h' \
9113 |
sed -e "$gl_make_literal_regex_sed"`
9114 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9115 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9121 gl_cv_absolute_inttypes_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9122 sed -n "$gl_absolute_header_sed"`
9124 gl_header=$gl_cv_absolute_inttypes_h
9125 gl_cv_next_inttypes_h='"'$gl_header'"'
9127 gl_cv_next_inttypes_h='<'inttypes.h'>'
9132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
9133 $as_echo "$gl_cv_next_inttypes_h" >&6; }
9135 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
9137 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
9138 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9139 gl_next_as_first_directive='<'inttypes.h'>'
9141 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9142 gl_next_as_first_directive=$gl_cv_next_inttypes_h
9144 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
9153 for gl_func in imaxabs imaxdiv strtoimax strtoumax; do
9154 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
9155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
9156 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
9157 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
9158 $as_echo_n "(cached) " >&6
9160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9161 /* end confdefs.h. */
9162 #include <inttypes.h>
9173 if ac_fn_c_try_compile "$LINENO"; then :
9174 eval "$as_gl_Symbol=yes"
9176 eval "$as_gl_Symbol=no"
9178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9180 eval ac_res=\$$as_gl_Symbol
9181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9182 $as_echo "$ac_res" >&6; }
9183 eval as_val=\$$as_gl_Symbol
9184 if test "x$as_val" = x""yes; then :
9185 cat >>confdefs.h <<_ACEOF
9186 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
9189 eval ac_cv_have_decl_$gl_func=yes
9195 for ac_header in inttypes.h
9197 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
9198 if test "x$ac_cv_header_inttypes_h" = x""yes; then :
9199 cat >>confdefs.h <<_ACEOF
9200 #define HAVE_INTTYPES_H 1
9207 if test $ac_cv_header_inttypes_h = yes; then
9208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
9209 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
9210 if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
9211 $as_echo_n "(cached) " >&6
9214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9215 /* end confdefs.h. */
9217 #include <inttypes.h>
9230 if ac_fn_c_try_compile "$LINENO"; then :
9231 gt_cv_inttypes_pri_broken=no
9233 gt_cv_inttypes_pri_broken=yes
9235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
9239 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
9241 if test "$gt_cv_inttypes_pri_broken" = yes; then
9243 cat >>confdefs.h <<_ACEOF
9244 #define PRI_MACROS_BROKEN 1
9254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
9255 $as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
9256 if test "${gl_cv_cc_double_expbit0+set}" = set; then :
9257 $as_echo_n "(cached) " >&6
9260 if test "$cross_compiling" = yes; then :
9262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9263 /* end confdefs.h. */
9265 #if defined arm || defined __arm || defined __arm__
9270 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9271 $EGREP "mixed_endianness" >/dev/null 2>&1; then :
9272 gl_cv_cc_double_expbit0="unknown"
9276 if test "${ac_cv_c_bigendian+set}" = set; then :
9277 $as_echo_n "(cached) " >&6
9279 ac_cv_c_bigendian=unknown
9280 # See if we're dealing with a universal compiler.
9281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9282 /* end confdefs.h. */
9283 #ifndef __APPLE_CC__
9284 not a universal capable compiler
9289 if ac_fn_c_try_compile "$LINENO"; then :
9291 # Check for potential -arch flags. It is not universal unless
9292 # there are at least two -arch flags with different values.
9295 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9296 if test -n "$ac_prev"; then
9298 i?86 | x86_64 | ppc | ppc64)
9299 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9302 ac_cv_c_bigendian=universal
9308 elif test "x$ac_word" = "x-arch"; then
9313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9314 if test $ac_cv_c_bigendian = unknown; then
9315 # See if sys/param.h defines the BYTE_ORDER macro.
9316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9317 /* end confdefs.h. */
9318 #include <sys/types.h>
9319 #include <sys/param.h>
9324 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9325 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9334 if ac_fn_c_try_compile "$LINENO"; then :
9335 # It does; now see whether it defined to BIG_ENDIAN or not.
9336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9337 /* end confdefs.h. */
9338 #include <sys/types.h>
9339 #include <sys/param.h>
9344 #if BYTE_ORDER != BIG_ENDIAN
9352 if ac_fn_c_try_compile "$LINENO"; then :
9353 ac_cv_c_bigendian=yes
9355 ac_cv_c_bigendian=no
9357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9361 if test $ac_cv_c_bigendian = unknown; then
9362 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9364 /* end confdefs.h. */
9370 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9378 if ac_fn_c_try_compile "$LINENO"; then :
9379 # It does; now see whether it defined to _BIG_ENDIAN or not.
9380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9381 /* end confdefs.h. */
9395 if ac_fn_c_try_compile "$LINENO"; then :
9396 ac_cv_c_bigendian=yes
9398 ac_cv_c_bigendian=no
9400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9404 if test $ac_cv_c_bigendian = unknown; then
9405 # Compile a test program.
9406 if test "$cross_compiling" = yes; then :
9407 # Try to guess by grepping values from an object file.
9408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9409 /* end confdefs.h. */
9410 short int ascii_mm[] =
9411 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9412 short int ascii_ii[] =
9413 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9414 int use_ascii (int i) {
9415 return ascii_mm[i] + ascii_ii[i];
9417 short int ebcdic_ii[] =
9418 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9419 short int ebcdic_mm[] =
9420 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9421 int use_ebcdic (int i) {
9422 return ebcdic_mm[i] + ebcdic_ii[i];
9429 return use_ascii (foo) == use_ebcdic (foo);
9434 if ac_fn_c_try_compile "$LINENO"; then :
9435 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9436 ac_cv_c_bigendian=yes
9438 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9439 if test "$ac_cv_c_bigendian" = unknown; then
9440 ac_cv_c_bigendian=no
9442 # finding both strings is unlikely to happen, but who knows?
9443 ac_cv_c_bigendian=unknown
9447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9450 /* end confdefs.h. */
9451 $ac_includes_default
9456 /* Are we little or big endian? From Harbison&Steele. */
9460 char c[sizeof (long int)];
9463 return u.c[sizeof (long int) - 1] == 1;
9469 if ac_fn_c_try_run "$LINENO"; then :
9470 ac_cv_c_bigendian=no
9472 ac_cv_c_bigendian=yes
9474 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9475 conftest.$ac_objext conftest.beam conftest.$ac_ext
9481 case $ac_cv_c_bigendian in #(
9483 gl_cv_cc_double_expbit0="word 0 bit 20";; #(
9485 gl_cv_cc_double_expbit0="word 1 bit 20" ;; #(
9488 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9492 gl_cv_cc_double_expbit0="unknown" ;;
9501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9502 /* end confdefs.h. */
9509 ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
9510 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
9511 static unsigned int ored_words[NWORDS];
9512 static unsigned int anded_words[NWORDS];
9513 static void add_to_ored_words (double x)
9517 /* Clear it first, in case sizeof (double) < sizeof (memory_double). */
9518 memset (&m, 0, sizeof (memory_double));
9520 for (i = 0; i < NWORDS; i++)
9522 ored_words[i] |= m.word[i];
9523 anded_words[i] &= m.word[i];
9529 FILE *fp = fopen ("conftest.out", "w");
9532 for (j = 0; j < NWORDS; j++)
9533 anded_words[j] = ~ (unsigned int) 0;
9534 add_to_ored_words (0.25);
9535 add_to_ored_words (0.5);
9536 add_to_ored_words (1.0);
9537 add_to_ored_words (2.0);
9538 add_to_ored_words (4.0);
9539 /* Remove bits that are common (e.g. if representation of the first mantissa
9540 bit is explicit). */
9541 for (j = 0; j < NWORDS; j++)
9542 ored_words[j] &= ~anded_words[j];
9543 /* Now find the nonzero word. */
9544 for (j = 0; j < NWORDS; j++)
9545 if (ored_words[j] != 0)
9550 for (i = j + 1; i < NWORDS; i++)
9551 if (ored_words[i] != 0)
9553 fprintf (fp, "unknown");
9554 return (fclose (fp) != 0);
9557 if ((ored_words[j] >> i) & 1)
9559 fprintf (fp, "word %d bit %d", (int) j, (int) i);
9560 return (fclose (fp) != 0);
9563 fprintf (fp, "unknown");
9564 return (fclose (fp) != 0);
9568 if ac_fn_c_try_run "$LINENO"; then :
9569 gl_cv_cc_double_expbit0=`cat conftest.out
`
9571 gl_cv_cc_double_expbit0="unknown"
9573 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9574 conftest.$ac_objext conftest.beam conftest.$ac_ext
9580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
9581 $as_echo "$gl_cv_cc_double_expbit0" >&6; }
9582 case "$gl_cv_cc_double_expbit0" in
9584 word=`echo "$gl_cv_cc_double_expbit0" |
sed -e 's/word //' -e 's/ bit.*//'`
9585 bit=`echo "$gl_cv_cc_double_expbit0" |
sed -e 's/word.*bit //'`
9587 cat >>confdefs.h <<_ACEOF
9588 #define DBL_EXPBIT0_WORD $word
9592 cat >>confdefs.h <<_ACEOF
9593 #define DBL_EXPBIT0_BIT $bit
9600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9601 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9602 if test "${ac_cv_c_bigendian+set}" = set; then :
9603 $as_echo_n "(cached) " >&6
9605 ac_cv_c_bigendian=unknown
9606 # See if we're dealing with a universal compiler.
9607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9608 /* end confdefs.h. */
9609 #ifndef __APPLE_CC__
9610 not a universal capable compiler
9615 if ac_fn_c_try_compile "$LINENO"; then :
9617 # Check for potential -arch flags. It is not universal unless
9618 # there are at least two -arch flags with different values.
9621 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9622 if test -n "$ac_prev"; then
9624 i?86 | x86_64 | ppc | ppc64)
9625 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9628 ac_cv_c_bigendian=universal
9634 elif test "x$ac_word" = "x-arch"; then
9639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9640 if test $ac_cv_c_bigendian = unknown; then
9641 # See if sys/param.h defines the BYTE_ORDER macro.
9642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9643 /* end confdefs.h. */
9644 #include <sys/types.h>
9645 #include <sys/param.h>
9650 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9651 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9660 if ac_fn_c_try_compile "$LINENO"; then :
9661 # It does; now see whether it defined to BIG_ENDIAN or not.
9662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9663 /* end confdefs.h. */
9664 #include <sys/types.h>
9665 #include <sys/param.h>
9670 #if BYTE_ORDER != BIG_ENDIAN
9678 if ac_fn_c_try_compile "$LINENO"; then :
9679 ac_cv_c_bigendian=yes
9681 ac_cv_c_bigendian=no
9683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9687 if test $ac_cv_c_bigendian = unknown; then
9688 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9690 /* end confdefs.h. */
9696 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9704 if ac_fn_c_try_compile "$LINENO"; then :
9705 # It does; now see whether it defined to _BIG_ENDIAN or not.
9706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9707 /* end confdefs.h. */
9721 if ac_fn_c_try_compile "$LINENO"; then :
9722 ac_cv_c_bigendian=yes
9724 ac_cv_c_bigendian=no
9726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9730 if test $ac_cv_c_bigendian = unknown; then
9731 # Compile a test program.
9732 if test "$cross_compiling" = yes; then :
9733 # Try to guess by grepping values from an object file.
9734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9735 /* end confdefs.h. */
9736 short int ascii_mm[] =
9737 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9738 short int ascii_ii[] =
9739 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9740 int use_ascii (int i) {
9741 return ascii_mm[i] + ascii_ii[i];
9743 short int ebcdic_ii[] =
9744 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9745 short int ebcdic_mm[] =
9746 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9747 int use_ebcdic (int i) {
9748 return ebcdic_mm[i] + ebcdic_ii[i];
9755 return use_ascii (foo) == use_ebcdic (foo);
9760 if ac_fn_c_try_compile "$LINENO"; then :
9761 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9762 ac_cv_c_bigendian=yes
9764 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9765 if test "$ac_cv_c_bigendian" = unknown; then
9766 ac_cv_c_bigendian=no
9768 # finding both strings is unlikely to happen, but who knows?
9769 ac_cv_c_bigendian=unknown
9773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9776 /* end confdefs.h. */
9777 $ac_includes_default
9782 /* Are we little or big endian? From Harbison&Steele. */
9786 char c[sizeof (long int)];
9789 return u.c[sizeof (long int) - 1] == 1;
9795 if ac_fn_c_try_run "$LINENO"; then :
9796 ac_cv_c_bigendian=no
9798 ac_cv_c_bigendian=yes
9800 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9801 conftest.$ac_objext conftest.beam conftest.$ac_ext
9806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9807 $as_echo "$ac_cv_c_bigendian" >&6; }
9808 case $ac_cv_c_bigendian in #(
9810 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9816 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9820 as_fn_error "unknown endianness
9821 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
9830 $as_echo_n "checking for 64-bit off_t... " >&6; }
9831 if test "${gl_cv_type_off_t_64+set}" = set; then :
9832 $as_echo_n "(cached) " >&6
9834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9835 /* end confdefs.h. */
9836 #include <sys/types.h>
9837 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
9847 if ac_fn_c_try_compile "$LINENO"; then :
9848 gl_cv_type_off_t_64=yes
9850 gl_cv_type_off_t_64=no
9852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
9856 $as_echo "$gl_cv_type_off_t_64" >&6; }
9857 if test $gl_cv_type_off_t_64 = no; then
9858 WINDOWS_64_BIT_OFF_T=1
9860 WINDOWS_64_BIT_OFF_T=0
9862 WINDOWS_64_BIT_ST_SIZE=1
9865 WINDOWS_64_BIT_OFF_T=0
9866 WINDOWS_64_BIT_ST_SIZE=0
9871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
9872 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
9873 if test "${am_cv_langinfo_codeset+set}" = set; then :
9874 $as_echo_n "(cached) " >&6
9876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9877 /* end confdefs.h. */
9878 #include <langinfo.h>
9882 char* cs = nl_langinfo(CODESET); return !cs;
9887 if ac_fn_c_try_link "$LINENO"; then :
9888 am_cv_langinfo_codeset=yes
9890 am_cv_langinfo_codeset=no
9892 rm -f core conftest.err conftest.$ac_objext \
9893 conftest$ac_exeext conftest.$ac_ext
9896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
9897 $as_echo "$am_cv_langinfo_codeset" >&6; }
9898 if test $am_cv_langinfo_codeset = yes; then
9900 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
9913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
9914 $as_echo_n "checking for working fcntl.h... " >&6; }
9915 if test "${gl_cv_header_working_fcntl_h+set}" = set; then :
9916 $as_echo_n "(cached) " >&6
9918 if test "$cross_compiling" = yes; then :
9919 gl_cv_header_working_fcntl_h=cross-compiling
9921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9922 /* end confdefs.h. */
9923 #include <sys/types.h>
9924 #include <sys/stat.h>
9926 # include <unistd.h>
9927 #else /* on Windows with MSVC */
9929 # include <stdlib.h>
9930 # defined sleep(n) _sleep ((n) * 1000)
9937 #define O_NOFOLLOW 0
9939 static int const constants[] =
9941 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
9942 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
9949 int result = !constants;
9952 static char const sym[] = "conftest.sym";
9953 if (symlink ("/dev/null", sym) != 0)
9957 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
9964 if (unlink (sym) != 0 || symlink (".", sym) != 0)
9968 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
9979 static char const file[] = "confdefs.h";
9980 int fd = open (file, O_RDONLY | O_NOATIME);
9986 if (fstat (fd, &st0) != 0)
9992 if (read (fd, &c, 1) != 1)
9996 if (close (fd) != 0)
10001 if (stat (file, &st1) != 0)
10004 if (st0.st_atime != st1.st_atime)
10016 if ac_fn_c_try_run "$LINENO"; then :
10017 gl_cv_header_working_fcntl_h=yes
10020 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
10021 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
10022 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
10023 *) gl_cv_header_working_fcntl_h='no';;
10026 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10027 conftest.$ac_objext conftest.beam conftest.$ac_ext
10031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
10032 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
10034 case $gl_cv_header_working_fcntl_h in #(
10035 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
10039 cat >>confdefs.h <<_ACEOF
10040 #define HAVE_WORKING_O_NOATIME $ac_val
10044 case $gl_cv_header_working_fcntl_h in #(
10045 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
10049 cat >>confdefs.h <<_ACEOF
10050 #define HAVE_WORKING_O_NOFOLLOW $ac_val
10054 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
10055 if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then :
10061 cat >>confdefs.h <<_ACEOF
10062 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
10066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
10067 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
10068 if test "${ac_cv_gnu_library_2_1+set}" = set; then :
10069 $as_echo_n "(cached) " >&6
10071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10072 /* end confdefs.h. */
10074 #include <features.h>
10075 #ifdef __GNU_LIBRARY__
10076 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
10085 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10086 $EGREP "Lucky" >/dev/null 2>&1; then :
10087 ac_cv_gnu_library_2_1=yes
10089 ac_cv_gnu_library_2_1=no
10096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
10097 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
10099 GLIBC21="$ac_cv_gnu_library_2_1"
10115 GNULIB_UTIMENSAT=0;
10129 REPLACE_FUTIMENS=0;
10135 REPLACE_UTIMENSAT=0;
10140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
10141 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
10142 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
10143 $as_echo_n "(cached) " >&6
10145 rm -f conftest.sym conftest.file
10146 echo >conftest.file
10147 if test "$cross_compiling" = yes; then :
10150 # Guess yes on glibc systems.
10151 gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
10153 # If we don't know, assume the worst.
10154 gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
10158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10159 /* end confdefs.h. */
10160 $ac_includes_default
10165 if (symlink ("conftest.file", "conftest.sym") != 0)
10167 /* Linux will dereference the symlink and fail, as required by
10168 POSIX. That is better in the sense that it means we will not
10169 have to compile and use the lstat wrapper. */
10170 return lstat ("conftest.sym/", &sbuf) == 0;
10176 if ac_fn_c_try_run "$LINENO"; then :
10177 gl_cv_func_lstat_dereferences_slashed_symlink=yes
10179 gl_cv_func_lstat_dereferences_slashed_symlink=no
10181 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10182 conftest.$ac_objext conftest.beam conftest.$ac_ext
10185 rm -f conftest.sym conftest.file
10188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
10189 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
10190 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
10193 cat >>confdefs.h <<_ACEOF
10194 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
10201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
10202 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
10203 if test "${gl_cv_func_malloc_posix+set}" = set; then :
10204 $as_echo_n "(cached) " >&6
10207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10208 /* end confdefs.h. */
10213 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
10221 if ac_fn_c_try_compile "$LINENO"; then :
10222 gl_cv_func_malloc_posix=yes
10224 gl_cv_func_malloc_posix=no
10226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
10230 $as_echo "$gl_cv_func_malloc_posix" >&6; }
10234 for ac_header in stdlib.h
10236 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
10237 if test "x$ac_cv_header_stdlib_h" = x""yes; then :
10238 cat >>confdefs.h <<_ACEOF
10239 #define HAVE_STDLIB_H 1
10246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
10247 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
10248 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
10249 $as_echo_n "(cached) " >&6
10251 if test "$cross_compiling" = yes; then :
10253 # Guess yes on platforms where we know the result.
10254 *-gnu* | freebsd* | netbsd* | openbsd* \
10255 | hpux* | solaris* | cygwin* | mingw*)
10256 ac_cv_func_malloc_0_nonnull=yes ;;
10257 # If we don't know, assume the worst.
10258 *) ac_cv_func_malloc_0_nonnull=no ;;
10262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10263 /* end confdefs.h. */
10264 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
10265 # include <stdlib.h>
10273 char *p = malloc (0);
10282 if ac_fn_c_try_run "$LINENO"; then :
10283 ac_cv_func_malloc_0_nonnull=yes
10285 ac_cv_func_malloc_0_nonnull=no
10287 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10288 conftest.$ac_objext conftest.beam conftest.$ac_ext
10293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
10294 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
10295 if test $ac_cv_func_malloc_0_nonnull = yes; then :
10296 gl_cv_func_malloc_0_nonnull=1
10298 gl_cv_func_malloc_0_nonnull=0
10302 cat >>confdefs.h <<_ACEOF
10303 #define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
10315 GNULIB_MBSRTOWCS=0;
10316 GNULIB_MBSNRTOWCS=0;
10318 GNULIB_WCSRTOMBS=0;
10319 GNULIB_WCSNRTOMBS=0;
10336 GNULIB_WCSCASECMP=0;
10337 GNULIB_WCSNCASECMP=0;
10374 HAVE_WCSNCASECMP=1;
10387 HAVE_DECL_WCWIDTH=1;
10388 REPLACE_MBSTATE_T=0;
10394 REPLACE_MBSRTOWCS=0;
10395 REPLACE_MBSNRTOWCS=0;
10397 REPLACE_WCSRTOMBS=0;
10398 REPLACE_WCSNRTOMBS=0;
10400 REPLACE_WCSWIDTH=0;
10409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
10410 $as_echo_n "checking for a traditional japanese locale... " >&6; }
10411 if test "${gt_cv_locale_ja+set}" = set; then :
10412 $as_echo_n "(cached) " >&6
10415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10416 /* end confdefs.h. */
10418 #include <locale.h>
10420 #if HAVE_LANGINFO_CODESET
10421 # include <langinfo.h>
10423 #include <stdlib.h>
10424 #include <string.h>
10430 /* Check whether the given locale name is recognized by the system. */
10431 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
10432 /* On native Windows, setlocale(category, "") looks at the system settings,
10433 not at the environment variables. Also, when an encoding suffix such
10434 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
10435 category of the locale to "C". */
10436 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
10437 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
10440 if (setlocale (LC_ALL, "") == NULL) return 1;
10442 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
10443 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
10444 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
10445 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
10446 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
10447 some unit tests fail.
10448 On MirBSD 10, when an unsupported locale is specified, setlocale()
10449 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
10450 #if HAVE_LANGINFO_CODESET
10452 const char *cs = nl_langinfo (CODESET);
10453 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
10454 || strcmp (cs, "UTF-8") == 0)
10459 /* On Cygwin, avoid locale names without encoding suffix, because the
10460 locale_charset() function relies on the encoding suffix. Note that
10461 LC_ALL is set on the command line. */
10462 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
10464 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales
10465 on Cygwin 1.5.x. */
10466 if (MB_CUR_MAX == 1)
10468 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
10469 This excludes the UTF-8 encoding (except on MirBSD). */
10470 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
10471 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
10472 for (p = buf; *p != '\0'; p++)
10473 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
10479 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10480 (eval $ac_link) 2>&5
10482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10483 test $ac_status = 0; } && test -s conftest$ac_exeext; then
10485 # Handle native Windows specially, because there setlocale() interprets
10486 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
10487 # "fr" or "fra" as "French" or "French_France.1252",
10488 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
10489 # "ja" as "Japanese" or "Japanese_Japan.932",
10492 # Note that on native Windows, the Japanese locale is
10493 # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
10494 # cannot use it here.
10495 gt_cv_locale_ja=none
10498 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
10499 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
10500 # configure script would override the LC_ALL setting. Likewise for
10501 # LC_CTYPE, which is also set at the beginning of the configure script.
10502 # Test for the AIX locale name.
10503 if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10504 gt_cv_locale_ja=ja_JP
10506 # Test for the locale name with explicit encoding suffix.
10507 if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10508 gt_cv_locale_ja=ja_JP.EUC-JP
10510 # Test for the HP-UX, OSF/1, NetBSD locale name.
10511 if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10512 gt_cv_locale_ja=ja_JP.eucJP
10514 # Test for the IRIX, FreeBSD locale name.
10515 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10516 gt_cv_locale_ja=ja_JP.EUC
10518 # Test for the Solaris 7 locale name.
10519 if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10522 # Special test for NetBSD 1.6.
10523 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
10524 gt_cv_locale_ja=ja_JP.eucJP
10527 gt_cv_locale_ja=none
10540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
10541 $as_echo "$gt_cv_locale_ja" >&6; }
10542 LOCALE_JA=$gt_cv_locale_ja
10548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
10549 $as_echo_n "checking for a transitional chinese locale... " >&6; }
10550 if test "${gt_cv_locale_zh_CN+set}" = set; then :
10551 $as_echo_n "(cached) " >&6
10554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10555 /* end confdefs.h. */
10557 #include <locale.h>
10558 #include <stdlib.h>
10560 #if HAVE_LANGINFO_CODESET
10561 # include <langinfo.h>
10563 #include <stdlib.h>
10564 #include <string.h>
10570 /* Check whether the given locale name is recognized by the system. */
10571 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
10572 /* On native Windows, setlocale(category, "") looks at the system settings,
10573 not at the environment variables. Also, when an encoding suffix such
10574 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
10575 category of the locale to "C". */
10576 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
10577 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
10580 if (setlocale (LC_ALL, "") == NULL) return 1;
10582 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
10583 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
10584 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
10585 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
10586 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
10587 some unit tests fail.
10588 On MirBSD 10, when an unsupported locale is specified, setlocale()
10589 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
10590 #if HAVE_LANGINFO_CODESET
10592 const char *cs = nl_langinfo (CODESET);
10593 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
10594 || strcmp (cs, "UTF-8") == 0)
10599 /* On Cygwin, avoid locale names without encoding suffix, because the
10600 locale_charset() function relies on the encoding suffix. Note that
10601 LC_ALL is set on the command line. */
10602 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
10604 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
10605 This excludes the UTF-8 encoding (except on MirBSD). */
10606 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
10607 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
10608 for (p = buf; *p != '\0'; p++)
10609 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
10611 /* Check whether a typical GB18030 multibyte sequence is recognized as a
10612 single wide character. This excludes the GB2312 and GBK encodings. */
10613 if (mblen ("\203\062\332\066", 5) != 4)
10619 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10620 (eval $ac_link) 2>&5
10622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10623 test $ac_status = 0; } && test -s conftest$ac_exeext; then
10625 # Handle native Windows specially, because there setlocale() interprets
10626 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
10627 # "fr" or "fra" as "French" or "French_France.1252",
10628 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
10629 # "ja" as "Japanese" or "Japanese_Japan.932",
10632 # Test for the hypothetical native Windows locale name.
10633 if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10634 gt_cv_locale_zh_CN=Chinese_China.54936
10637 gt_cv_locale_zh_CN=none
10641 # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
10642 # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
10643 # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
10644 gt_cv_locale_zh_CN=none
10647 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
10648 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
10649 # configure script would override the LC_ALL setting. Likewise for
10650 # LC_CTYPE, which is also set at the beginning of the configure script.
10651 # Test for the locale name without encoding suffix.
10652 if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10653 gt_cv_locale_zh_CN=zh_CN
10655 # Test for the locale name with explicit encoding suffix.
10656 if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10657 gt_cv_locale_zh_CN=zh_CN.GB18030
10660 gt_cv_locale_zh_CN=none
10666 # If there was a link error, due to mblen(), the system is so old that
10667 # it certainly doesn't have a chinese locale.
10668 gt_cv_locale_zh_CN=none
10673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
10674 $as_echo "$gt_cv_locale_zh_CN" >&6; }
10675 LOCALE_ZH_CN=$gt_cv_locale_zh_CN
10680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
10681 $as_echo_n "checking for a french Unicode locale... " >&6; }
10682 if test "${gt_cv_locale_fr_utf8+set}" = set; then :
10683 $as_echo_n "(cached) " >&6
10686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10687 /* end confdefs.h. */
10689 #include <locale.h>
10691 #if HAVE_LANGINFO_CODESET
10692 # include <langinfo.h>
10694 #include <stdlib.h>
10695 #include <string.h>
10699 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
10700 imitates locale dependent behaviour by looking at the environment
10701 variables, and all locales use the UTF-8 encoding. */
10702 #if !(defined __BEOS__ || defined __HAIKU__)
10703 /* Check whether the given locale name is recognized by the system. */
10704 # if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
10705 /* On native Windows, setlocale(category, "") looks at the system settings,
10706 not at the environment variables. Also, when an encoding suffix such
10707 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
10708 category of the locale to "C". */
10709 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
10710 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
10713 if (setlocale (LC_ALL, "") == NULL) return 1;
10715 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
10716 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
10717 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
10718 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
10719 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
10720 some unit tests fail. */
10721 # if HAVE_LANGINFO_CODESET
10723 const char *cs = nl_langinfo (CODESET);
10724 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
10729 /* On Cygwin, avoid locale names without encoding suffix, because the
10730 locale_charset() function relies on the encoding suffix. Note that
10731 LC_ALL is set on the command line. */
10732 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
10734 /* Check whether in the abbreviation of the second month, the second
10735 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
10736 two bytes long, with UTF-8 encoding. */
10737 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
10738 if (strftime (buf, sizeof (buf), "%b", &t) < 4
10739 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
10742 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
10743 /* Check whether the decimal separator is a comma.
10744 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
10745 are nl_langinfo(RADIXCHAR) are both ".". */
10746 if (localeconv () ->decimal_point[0] != ',') return 1;
10752 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10753 (eval $ac_link) 2>&5
10755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10756 test $ac_status = 0; } && test -s conftest$ac_exeext; then
10758 # Handle native Windows specially, because there setlocale() interprets
10759 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
10760 # "fr" or "fra" as "French" or "French_France.1252",
10761 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
10762 # "ja" as "Japanese" or "Japanese_Japan.932",
10765 # Test for the hypothetical native Windows locale name.
10766 if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10767 gt_cv_locale_fr_utf8=French_France.65001
10770 gt_cv_locale_fr_utf8=none
10774 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
10775 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
10776 # configure script would override the LC_ALL setting. Likewise for
10777 # LC_CTYPE, which is also set at the beginning of the configure script.
10778 # Test for the usual locale name.
10779 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10780 gt_cv_locale_fr_utf8=fr_FR
10782 # Test for the locale name with explicit encoding suffix.
10783 if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10784 gt_cv_locale_fr_utf8=fr_FR.UTF-8
10786 # Test for the Solaris 7 locale name.
10787 if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10788 gt_cv_locale_fr_utf8=fr.UTF-8
10791 gt_cv_locale_fr_utf8=none
10801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
10802 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
10803 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
10809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
10810 $as_echo_n "checking for a traditional french locale... " >&6; }
10811 if test "${gt_cv_locale_fr+set}" = set; then :
10812 $as_echo_n "(cached) " >&6
10815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10816 /* end confdefs.h. */
10818 #include <locale.h>
10820 #if HAVE_LANGINFO_CODESET
10821 # include <langinfo.h>
10823 #include <stdlib.h>
10824 #include <string.h>
10828 /* Check whether the given locale name is recognized by the system. */
10829 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
10830 /* On native Windows, setlocale(category, "") looks at the system settings,
10831 not at the environment variables. Also, when an encoding suffix such
10832 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
10833 category of the locale to "C". */
10834 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
10835 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
10838 if (setlocale (LC_ALL, "") == NULL) return 1;
10840 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
10841 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
10842 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
10843 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
10844 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
10845 some unit tests fail.
10846 On MirBSD 10, when an unsupported locale is specified, setlocale()
10847 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
10848 #if HAVE_LANGINFO_CODESET
10850 const char *cs = nl_langinfo (CODESET);
10851 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
10852 || strcmp (cs, "UTF-8") == 0)
10857 /* On Cygwin, avoid locale names without encoding suffix, because the
10858 locale_charset() function relies on the encoding suffix. Note that
10859 LC_ALL is set on the command line. */
10860 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
10862 /* Check whether in the abbreviation of the second month, the second
10863 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
10864 one byte long. This excludes the UTF-8 encoding. */
10865 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
10866 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
10867 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
10868 /* Check whether the decimal separator is a comma.
10869 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
10870 are nl_langinfo(RADIXCHAR) are both ".". */
10871 if (localeconv () ->decimal_point[0] != ',') return 1;
10877 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10878 (eval $ac_link) 2>&5
10880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10881 test $ac_status = 0; } && test -s conftest$ac_exeext; then
10883 # Handle native Windows specially, because there setlocale() interprets
10884 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
10885 # "fr" or "fra" as "French" or "French_France.1252",
10886 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
10887 # "ja" as "Japanese" or "Japanese_Japan.932",
10890 # Test for the native Windows locale name.
10891 if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10892 gt_cv_locale_fr=French_France.1252
10895 gt_cv_locale_fr=none
10899 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
10900 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
10901 # configure script would override the LC_ALL setting. Likewise for
10902 # LC_CTYPE, which is also set at the beginning of the configure script.
10903 # Test for the usual locale name.
10904 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10905 gt_cv_locale_fr=fr_FR
10907 # Test for the locale name with explicit encoding suffix.
10908 if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10909 gt_cv_locale_fr=fr_FR.ISO-8859-1
10911 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
10912 if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10913 gt_cv_locale_fr=fr_FR.ISO8859-1
10915 # Test for the HP-UX locale name.
10916 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10917 gt_cv_locale_fr=fr_FR.iso88591
10919 # Test for the Solaris 7 locale name.
10920 if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10924 gt_cv_locale_fr=none
10936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
10937 $as_echo "$gt_cv_locale_fr" >&6; }
10938 LOCALE_FR=$gt_cv_locale_fr
10952 GNULIB_RAWMEMCHR=0;
10955 GNULIB_STRCHRNUL=0;
10963 GNULIB_STRCASESTR=0;
10970 GNULIB_MBSCASECMP=0;
10971 GNULIB_MBSNCASECMP=0;
10972 GNULIB_MBSPCASECMP=0;
10973 GNULIB_MBSCASESTR=0;
10980 GNULIB_STRERROR_R=0;
10981 GNULIB_STRSIGNAL=0;
10982 GNULIB_STRVERSCMP=0;
10987 HAVE_DECL_MEMMEM=1;
10989 HAVE_DECL_MEMRCHR=1;
10994 HAVE_DECL_STRDUP=1;
10995 HAVE_DECL_STRNDUP=1;
10996 HAVE_DECL_STRNLEN=1;
11000 HAVE_DECL_STRTOK_R=1;
11001 HAVE_DECL_STRERROR_R=1;
11002 HAVE_DECL_STRSIGNAL=1;
11009 REPLACE_STRCASESTR=0;
11010 REPLACE_STRCHRNUL=0;
11011 REPLACE_STRERROR=0;
11012 REPLACE_STRERROR_R=0;
11016 REPLACE_STRSIGNAL=0;
11017 REPLACE_STRTOK_R=0;
11018 UNDEFINE_STRTOK_R=0;
11024 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
11025 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
11026 # irrelevant for anonymous mappings.
11027 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
11028 if test "x$ac_cv_func_mmap" = x""yes; then :
11035 # Try to allow MAP_ANONYMOUS.
11036 gl_have_mmap_anonymous=no
11037 if test $gl_have_mmap = yes; then
11038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
11039 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
11040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11041 /* end confdefs.h. */
11043 #include <sys/mman.h>
11044 #ifdef MAP_ANONYMOUS
11045 I cannot identify this map
11049 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11050 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
11051 gl_have_mmap_anonymous=yes
11055 if test $gl_have_mmap_anonymous != yes; then
11056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11057 /* end confdefs.h. */
11059 #include <sys/mman.h>
11061 I cannot identify this map
11065 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11066 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
11068 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
11070 gl_have_mmap_anonymous=yes
11075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
11076 $as_echo "$gl_have_mmap_anonymous" >&6; }
11077 if test $gl_have_mmap_anonymous = yes; then
11079 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
11089 if test $HAVE_MEMCHR = 1; then
11090 # Detect platform-specific bugs in some versions of glibc:
11091 # memchr should not dereference anything with length 0
11092 # http://bugzilla.redhat.com/499689
11093 # memchr should not dereference overestimated length after a match
11094 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
11095 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
11096 # Assume that memchr works on platforms that lack mprotect.
11097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
11098 $as_echo_n "checking whether memchr works... " >&6; }
11099 if test "${gl_cv_func_memchr_works+set}" = set; then :
11100 $as_echo_n "(cached) " >&6
11102 if test "$cross_compiling" = yes; then :
11103 gl_cv_func_memchr_works="guessing no"
11105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11106 /* end confdefs.h. */
11108 #include <string.h>
11109 #if HAVE_SYS_MMAN_H
11110 # include <fcntl.h>
11111 # include <unistd.h>
11112 # include <sys/types.h>
11113 # include <sys/mman.h>
11115 # define MAP_FILE 0
11124 char *fence = NULL;
11125 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
11126 # if HAVE_MAP_ANONYMOUS
11127 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
11129 # else /* !HAVE_MAP_ANONYMOUS */
11130 const int flags = MAP_FILE | MAP_PRIVATE;
11131 int fd = open ("/dev/zero", O_RDONLY, 0666);
11135 int pagesize = getpagesize ();
11137 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
11139 if (two_pages != (char *)(-1)
11140 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
11141 fence = two_pages + pagesize;
11146 if (memchr (fence, 0, 0))
11148 strcpy (fence - 9, "12345678");
11149 if (memchr (fence - 9, 0, 79) != fence - 1)
11151 if (memchr (fence - 1, 0, 3) != fence - 1)
11160 if ac_fn_c_try_run "$LINENO"; then :
11161 gl_cv_func_memchr_works=yes
11163 gl_cv_func_memchr_works=no
11165 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11166 conftest.$ac_objext conftest.beam conftest.$ac_ext
11170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
11171 $as_echo "$gl_cv_func_memchr_works" >&6; }
11172 if test "$gl_cv_func_memchr_works" != yes; then
11177 ac_fn_c_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
11178 if test "x$ac_cv_have_decl_memmem" = x""yes; then :
11184 cat >>confdefs.h <<_ACEOF
11185 #define HAVE_DECL_MEMMEM $ac_have_decl
11192 for ac_func in memmem
11194 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
11195 if test "x$ac_cv_func_memmem" = x""yes; then :
11196 cat >>confdefs.h <<_ACEOF
11197 #define HAVE_MEMMEM 1
11203 if test $ac_cv_func_memmem = yes; then
11209 if test $ac_cv_have_decl_memmem = no; then
11212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
11213 $as_echo_n "checking whether memmem works... " >&6; }
11214 if test "${gl_cv_func_memmem_works_always+set}" = set; then :
11215 $as_echo_n "(cached) " >&6
11217 if test "$cross_compiling" = yes; then :
11218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11219 /* end confdefs.h. */
11221 #ifdef __GNU_LIBRARY__
11222 #include <features.h>
11223 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
11224 || __GLIBC_MINOR__ > 12)) \
11225 || (__GLIBC__ > 2)) \
11226 || defined __UCLIBC__
11229 #elif defined __CYGWIN__
11230 #include <cygwin/version.h>
11231 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
11239 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11240 $EGREP "Lucky user" >/dev/null 2>&1; then :
11241 gl_cv_func_memmem_works_always="guessing yes"
11243 gl_cv_func_memmem_works_always="guessing no"
11249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11250 /* end confdefs.h. */
11252 #include <string.h> /* for memmem */
11253 #define P "_EF_BF_BD"
11254 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
11255 #define NEEDLE P P P P P
11262 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
11264 /* Check for empty needle behavior. */
11266 const char *haystack = "AAA";
11267 if (memmem (haystack, 3, NULL, 0) != haystack)
11276 if ac_fn_c_try_run "$LINENO"; then :
11277 gl_cv_func_memmem_works_always=yes
11279 gl_cv_func_memmem_works_always=no
11281 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11282 conftest.$ac_objext conftest.beam conftest.$ac_ext
11287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
11288 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
11289 case "$gl_cv_func_memmem_works_always" in
11307 GNULIB_FPRINTF_POSIX=0;
11323 GNULIB_OBSTACK_PRINTF=0;
11324 GNULIB_OBSTACK_PRINTF_POSIX=0;
11329 GNULIB_PRINTF_POSIX=0;
11338 GNULIB_SPRINTF_POSIX=0;
11339 GNULIB_STDIO_H_NONBLOCKING=0;
11340 GNULIB_STDIO_H_SIGPIPE=0;
11342 GNULIB_VASPRINTF=0;
11347 GNULIB_VFPRINTF_POSIX=0;
11349 GNULIB_VPRINTF_POSIX=0;
11350 GNULIB_VSNPRINTF=0;
11351 GNULIB_VSPRINTF_POSIX=0;
11352 HAVE_DECL_FPURGE=1;
11353 HAVE_DECL_FSEEKO=1;
11354 HAVE_DECL_FTELLO=1;
11355 HAVE_DECL_GETDELIM=1;
11356 HAVE_DECL_GETLINE=1;
11357 HAVE_DECL_OBSTACK_PRINTF=1;
11358 HAVE_DECL_SNPRINTF=1;
11359 HAVE_DECL_VSNPRINTF=1;
11380 REPLACE_GETDELIM=0;
11382 REPLACE_OBSTACK_PRINTF=0;
11388 REPLACE_RENAMEAT=0;
11389 REPLACE_SNPRINTF=0;
11391 REPLACE_STDIO_READ_FUNCS=0;
11392 REPLACE_STDIO_WRITE_FUNCS=0;
11394 REPLACE_VASPRINTF=0;
11395 REPLACE_VDPRINTF=0;
11396 REPLACE_VFPRINTF=0;
11398 REPLACE_VSNPRINTF=0;
11399 REPLACE_VSPRINTF=0;
11404 GNULIB_PTHREAD_SIGMASK=0;
11406 GNULIB_SIGNAL_H_SIGPIPE=0;
11407 GNULIB_SIGPROCMASK=0;
11408 GNULIB_SIGACTION=0;
11409 HAVE_POSIX_SIGNALBLOCKING=1;
11410 HAVE_PTHREAD_SIGMASK=1;
11415 HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
11417 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
11419 HAVE_SIGHANDLER_T=1;
11420 REPLACE_PTHREAD_SIGMASK=0;
11424 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
11425 #include <signal.h>
11426 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
11427 #include <sys/types.h>
11430 if test "x$ac_cv_type_sigset_t" = x""yes; then :
11432 cat >>confdefs.h <<_ACEOF
11433 #define HAVE_SIGSET_T 1
11436 gl_cv_type_sigset_t=yes
11438 gl_cv_type_sigset_t=no
11441 if test $gl_cv_type_sigset_t != yes; then
11445 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
11446 if test "x$ac_cv_type_pid_t" = x""yes; then :
11450 cat >>confdefs.h <<_ACEOF
11456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
11457 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
11458 if test "${ac_cv_type_uid_t+set}" = set; then :
11459 $as_echo_n "(cached) " >&6
11461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11462 /* end confdefs.h. */
11463 #include <sys/types.h>
11466 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11467 $EGREP "uid_t" >/dev/null 2>&1; then :
11468 ac_cv_type_uid_t=yes
11470 ac_cv_type_uid_t=no
11475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
11476 $as_echo "$ac_cv_type_uid_t" >&6; }
11477 if test $ac_cv_type_uid_t = no; then
11479 $as_echo "#define uid_t int" >>confdefs.h
11482 $as_echo "#define gid_t int" >>confdefs.h
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
11487 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
11488 if test "${ac_cv_header_stdbool_h+set}" = set; then :
11489 $as_echo_n "(cached) " >&6
11491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11492 /* end confdefs.h. */
11494 #include <stdbool.h>
11499 typedef _Bool Bool;
11501 "error: bool is not defined"
11504 "error: false is not defined"
11507 "error: false is not 0"
11510 "error: true is not defined"
11513 "error: true is not 1"
11517 #ifndef __bool_true_false_are_defined
11518 "error: __bool_true_false_are_defined is not defined"
11521 struct s { Bool s: 1; Bool t; bool u: 1; bool v; } s;
11523 char a[true == 1 ? 1 : -1];
11524 char b[false == 0 ? 1 : -1];
11525 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
11526 char d[(bool) 0.5 == true ? 1 : -1];
11527 /* See body of main program for 'e'. */
11528 char f[(Bool) 0.0 == false ? 1 : -1];
11530 char h[sizeof (Bool)];
11531 char i[sizeof s.t];
11532 enum { j = false, k = true, l = false * true, m = true * 256 };
11533 /* The following fails for
11534 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
11536 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
11537 char p[-1 - (Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
11538 /* Catch a bug in an HP-UX C compiler. See
11539 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
11540 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
11551 *pq |= q; *pq |= ! q;
11552 *qq |= q; *qq |= ! q;
11553 /* Refer to every declared value, to avoid compiler optimizations. */
11554 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
11555 + !m + !n + !o + !p + !q + !pq + !qq);
11561 if ac_fn_c_try_compile "$LINENO"; then :
11562 ac_cv_header_stdbool_h=yes
11564 ac_cv_header_stdbool_h=no
11566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
11569 $as_echo "$ac_cv_header_stdbool_h" >&6; }
11570 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
11571 if test "x$ac_cv_type__Bool" = x""yes; then :
11573 cat >>confdefs.h <<_ACEOF
11574 #define HAVE__BOOL 1
11583 HAVE_MAX_ALIGN_T=1;
11587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
11588 $as_echo_n "checking for wchar_t... " >&6; }
11589 if test "${gt_cv_c_wchar_t+set}" = set; then :
11590 $as_echo_n "(cached) " >&6
11592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11593 /* end confdefs.h. */
11594 #include <stddef.h>
11595 wchar_t foo = (wchar_t)'\0';
11604 if ac_fn_c_try_compile "$LINENO"; then :
11605 gt_cv_c_wchar_t=yes
11609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
11612 $as_echo "$gt_cv_c_wchar_t" >&6; }
11613 if test $gt_cv_c_wchar_t = yes; then
11615 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
11630 if test $gl_cv_have_include_next = yes; then
11631 gl_cv_next_string_h='<'string.h'>'
11633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
11634 $as_echo_n "checking absolute name of <string.h>... " >&6; }
11635 if test "${gl_cv_next_string_h+set}" = set; then :
11636 $as_echo_n "(cached) " >&6
11641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11642 /* end confdefs.h. */
11643 #include <string.h>
11646 aix*) gl_absname_cpp="$ac_cpp -C" ;;
11647 *) gl_absname_cpp="$ac_cpp" ;;
11652 gl_dirsep_regex='[/\\]'
11655 gl_dirsep_regex='\/'
11658 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
11659 gl_header_literal_regex=`echo 'string.h' \
11660 |
sed -e "$gl_make_literal_regex_sed"`
11661 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11662 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11668 gl_cv_absolute_string_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11669 sed -n "$gl_absolute_header_sed"`
11671 gl_header=$gl_cv_absolute_string_h
11672 gl_cv_next_string_h='"'$gl_header'"'
11676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
11677 $as_echo "$gl_cv_next_string_h" >&6; }
11679 NEXT_STRING_H=$gl_cv_next_string_h
11681 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11682 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11683 gl_next_as_first_directive='<'string.h'>'
11685 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11686 gl_next_as_first_directive=$gl_cv_next_string_h
11688 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
11695 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
11696 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
11697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
11698 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
11699 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
11700 $as_echo_n "(cached) " >&6
11702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11703 /* end confdefs.h. */
11704 #include <string.h>
11715 if ac_fn_c_try_compile "$LINENO"; then :
11716 eval "$as_gl_Symbol=yes"
11718 eval "$as_gl_Symbol=no"
11720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11722 eval ac_res=\$$as_gl_Symbol
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11724 $as_echo "$ac_res" >&6; }
11725 eval as_val=\$$as_gl_Symbol
11726 if test "x$as_val" = x""yes; then :
11727 cat >>confdefs.h <<_ACEOF
11728 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
11731 eval ac_cv_have_decl_$gl_func=yes
11739 if test "$gl_cv_func_memchr_works" != yes; then
11742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
11743 $as_echo_n "checking whether strstr works... " >&6; }
11744 if test "${gl_cv_func_strstr_works_always+set}" = set; then :
11745 $as_echo_n "(cached) " >&6
11747 if test "$cross_compiling" = yes; then :
11748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11749 /* end confdefs.h. */
11751 #ifdef __GNU_LIBRARY__
11752 #include <features.h>
11753 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
11754 || defined __UCLIBC__
11757 #elif defined __CYGWIN__
11758 #include <cygwin/version.h>
11759 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
11767 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11768 $EGREP "Lucky user" >/dev/null 2>&1; then :
11769 gl_cv_func_strstr_works_always="guessing yes"
11771 gl_cv_func_strstr_works_always="guessing no"
11777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11778 /* end confdefs.h. */
11780 #include <string.h> /* for strstr */
11781 #define P "_EF_BF_BD"
11782 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
11783 #define NEEDLE P P P P P
11788 return !!strstr (HAYSTACK, NEEDLE);
11794 if ac_fn_c_try_run "$LINENO"; then :
11795 gl_cv_func_strstr_works_always=yes
11797 gl_cv_func_strstr_works_always=no
11799 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11800 conftest.$ac_objext conftest.beam conftest.$ac_ext
11805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
11806 $as_echo "$gl_cv_func_strstr_works_always" >&6; }
11807 case "$gl_cv_func_strstr_works_always" in
11815 ac_fn_c_check_decl "$LINENO" "strtok_r" "ac_cv_have_decl_strtok_r" "$ac_includes_default"
11816 if test "x$ac_cv_have_decl_strtok_r" = x""yes; then :
11822 cat >>confdefs.h <<_ACEOF
11823 #define HAVE_DECL_STRTOK_R $ac_have_decl
11826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
11827 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
11828 if test "${ac_cv_header_stat_broken+set}" = set; then :
11829 $as_echo_n "(cached) " >&6
11831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11832 /* end confdefs.h. */
11833 #include <sys/types.h>
11834 #include <sys/stat.h>
11836 #if defined S_ISBLK && defined S_IFDIR
11837 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
11840 #if defined S_ISBLK && defined S_IFCHR
11841 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
11844 #if defined S_ISLNK && defined S_IFREG
11845 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
11848 #if defined S_ISSOCK && defined S_IFREG
11849 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
11853 if ac_fn_c_try_compile "$LINENO"; then :
11854 ac_cv_header_stat_broken=no
11856 ac_cv_header_stat_broken=yes
11858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
11861 $as_echo "$ac_cv_header_stat_broken" >&6; }
11862 if test $ac_cv_header_stat_broken = yes; then
11864 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
11870 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
11871 if test "x$ac_cv_type_mode_t" = x""yes; then :
11875 cat >>confdefs.h <<_ACEOF
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
11882 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
11883 if test -z "$MKDIR_P"; then
11884 if test "${ac_cv_path_mkdir+set}" = set; then :
11885 $as_echo_n "(cached) " >&6
11887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11888 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
11891 test -z "$as_dir" && as_dir=.
11892 for ac_prog in mkdir gmkdir; do
11893 for ac_exec_ext in '' $ac_executable_extensions; do
11894 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
11895 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
11896 'mkdir (GNU coreutils) '* | \
11897 'mkdir (coreutils) '* | \
11898 'mkdir (fileutils) '4.1*)
11899 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
11909 if test "${ac_cv_path_mkdir+set}" = set; then
11910 MKDIR_P="$ac_cv_path_mkdir -p"
11912 # As a last resort, use the slow shell script. Don't cache a
11913 # value for MKDIR_P within a source directory, because that will
11914 # break other packages using the cache if that directory is
11915 # removed, or if the value is a relative name.
11916 test -d ./--version && rmdir ./--version
11917 MKDIR_P="$ac_install_sh -d"
11920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
11921 $as_echo "$MKDIR_P" >&6; }
11941 if test $gl_cv_have_include_next = yes; then
11942 gl_cv_next_sys_types_h='<'sys/types.h'>'
11944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
11945 $as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
11946 if test "${gl_cv_next_sys_types_h+set}" = set; then :
11947 $as_echo_n "(cached) " >&6
11952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11953 /* end confdefs.h. */
11954 #include <sys/types.h>
11957 aix*) gl_absname_cpp="$ac_cpp -C" ;;
11958 *) gl_absname_cpp="$ac_cpp" ;;
11963 gl_dirsep_regex='[/\\]'
11966 gl_dirsep_regex='\/'
11969 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
11970 gl_header_literal_regex=`echo 'sys/types.h' \
11971 |
sed -e "$gl_make_literal_regex_sed"`
11972 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11973 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11979 gl_cv_absolute_sys_types_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11980 sed -n "$gl_absolute_header_sed"`
11982 gl_header=$gl_cv_absolute_sys_types_h
11983 gl_cv_next_sys_types_h='"'$gl_header'"'
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
11988 $as_echo "$gl_cv_next_sys_types_h" >&6; }
11990 NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
11992 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11993 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11994 gl_next_as_first_directive='<'sys/types.h'>'
11996 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11997 gl_next_as_first_directive=$gl_cv_next_sys_types_h
11999 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
12013 GNULIB_NANOSLEEP=0;
12018 HAVE_DECL_LOCALTIME_R=1;
12022 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
12023 REPLACE_MKTIME=GNULIB_PORTCHECK;
12024 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
12025 REPLACE_TIMEGM=GNULIB_PORTCHECK;
12027 : ${GNULIB_GETTIMEOFDAY=0};
12029 REPLACE_LOCALTIME=0;
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
12034 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
12035 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
12036 $as_echo_n "(cached) " >&6
12038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12039 /* end confdefs.h. */
12045 static struct timespec x; x.tv_sec = x.tv_nsec;
12050 if ac_fn_c_try_compile "$LINENO"; then :
12051 gl_cv_sys_struct_timespec_in_time_h=yes
12053 gl_cv_sys_struct_timespec_in_time_h=no
12055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
12058 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
12060 TIME_H_DEFINES_STRUCT_TIMESPEC=0
12061 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
12062 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
12063 UNISTD_H_DEFINES_STRUCT_TIMESPEC=0
12064 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
12065 TIME_H_DEFINES_STRUCT_TIMESPEC=1
12067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
12068 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
12069 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
12070 $as_echo_n "(cached) " >&6
12072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12073 /* end confdefs.h. */
12074 #include <sys/time.h>
12079 static struct timespec x; x.tv_sec = x.tv_nsec;
12084 if ac_fn_c_try_compile "$LINENO"; then :
12085 gl_cv_sys_struct_timespec_in_sys_time_h=yes
12087 gl_cv_sys_struct_timespec_in_sys_time_h=no
12089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
12092 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
12093 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
12094 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
12097 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
12098 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
12099 $as_echo_n "(cached) " >&6
12101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12102 /* end confdefs.h. */
12103 #include <pthread.h>
12108 static struct timespec x; x.tv_sec = x.tv_nsec;
12113 if ac_fn_c_try_compile "$LINENO"; then :
12114 gl_cv_sys_struct_timespec_in_pthread_h=yes
12116 gl_cv_sys_struct_timespec_in_pthread_h=no
12118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
12121 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
12122 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
12123 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
12125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <unistd.h>" >&5
12126 $as_echo_n "checking for struct timespec in <unistd.h>... " >&6; }
12127 if test "${gl_cv_sys_struct_timespec_in_unistd_h+set}" = set; then :
12128 $as_echo_n "(cached) " >&6
12130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12131 /* end confdefs.h. */
12132 #include <unistd.h>
12137 static struct timespec x; x.tv_sec = x.tv_nsec;
12142 if ac_fn_c_try_compile "$LINENO"; then :
12143 gl_cv_sys_struct_timespec_in_unistd_h=yes
12145 gl_cv_sys_struct_timespec_in_unistd_h=no
12147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_unistd_h" >&5
12150 $as_echo "$gl_cv_sys_struct_timespec_in_unistd_h" >&6; }
12151 if test $gl_cv_sys_struct_timespec_in_unistd_h = yes; then
12152 UNISTD_H_DEFINES_STRUCT_TIMESPEC=1
12173 if test $gl_cv_have_include_next = yes; then
12174 gl_cv_next_time_h='<'time.h'>'
12176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
12177 $as_echo_n "checking absolute name of <time.h>... " >&6; }
12178 if test "${gl_cv_next_time_h+set}" = set; then :
12179 $as_echo_n "(cached) " >&6
12184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12185 /* end confdefs.h. */
12189 aix*) gl_absname_cpp="$ac_cpp -C" ;;
12190 *) gl_absname_cpp="$ac_cpp" ;;
12195 gl_dirsep_regex='[/\\]'
12198 gl_dirsep_regex='\/'
12201 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
12202 gl_header_literal_regex=`echo 'time.h' \
12203 |
sed -e "$gl_make_literal_regex_sed"`
12204 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
12205 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
12211 gl_cv_absolute_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12212 sed -n "$gl_absolute_header_sed"`
12214 gl_header=$gl_cv_absolute_time_h
12215 gl_cv_next_time_h='"'$gl_header'"'
12219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
12220 $as_echo "$gl_cv_next_time_h" >&6; }
12222 NEXT_TIME_H=$gl_cv_next_time_h
12224 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
12225 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12226 gl_next_as_first_directive='<'time.h'>'
12228 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12229 gl_next_as_first_directive=$gl_cv_next_time_h
12231 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
12239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
12240 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
12241 if test "${gl_cv_header_wchar_h_correct_inline+set}" = set; then :
12242 $as_echo_n "(cached) " >&6
12244 gl_cv_header_wchar_h_correct_inline=yes
12245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12246 /* end confdefs.h. */
12248 #define wcstod renamed_wcstod
12249 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12251 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12252 included before <wchar.h>. */
12253 #include <stddef.h>
12257 extern int zero (void);
12258 int main () { return zero(); }
12261 save_ac_compile="$ac_compile"
12262 ac_compile=`echo "$save_ac_compile" |
sed s
/conftest
/conftest
1/`
12263 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12264 (eval $ac_compile) 2>&5
12266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12267 test $ac_status = 0; }; then
12268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12269 /* end confdefs.h. */
12271 #define wcstod renamed_wcstod
12272 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12274 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12275 included before <wchar.h>. */
12276 #include <stddef.h>
12280 int zero (void) { return 0; }
12283 ac_compile=`echo "$save_ac_compile" |
sed s
/conftest
/conftest
2/`
12284 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12285 (eval $ac_compile) 2>&5
12287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12288 test $ac_status = 0; }; then
12289 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
12292 gl_cv_header_wchar_h_correct_inline=no
12296 ac_compile="$save_ac_compile"
12297 rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
12301 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
12302 if test $gl_cv_header_wchar_h_correct_inline = no; then
12303 as_fn_error "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
12304 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
12305 C99 mode. You have four options:
12306 - Add the flag -fgnu89-inline to CC and reconfigure, or
12307 - Fix your include files, using parts of
12308 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
12309 - Use a gcc version older than 4.3, or
12310 - Don't use the flags -std=c99 or -std=gnu99.
12311 Configuration aborted." "$LINENO" 5
12318 if test $ac_cv_header_features_h = yes; then
12326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
12327 $as_echo_n "checking for wint_t... " >&6; }
12328 if test "${gt_cv_c_wint_t+set}" = set; then :
12329 $as_echo_n "(cached) " >&6
12331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12332 /* end confdefs.h. */
12334 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12336 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
12337 before <wchar.h>. */
12338 #include <stddef.h>
12342 wint_t foo = (wchar_t)'\0';
12351 if ac_fn_c_try_compile "$LINENO"; then :
12356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
12359 $as_echo "$gt_cv_c_wint_t" >&6; }
12360 if test $gt_cv_c_wint_t = yes; then
12362 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
12371 GNULIB_TOWCTRANS=0;
12375 REPLACE_ISWBLANK=0;
12381 GL_COND_LIBTOOL_TRUE=
12382 GL_COND_LIBTOOL_FALSE='#'
12384 GL_COND_LIBTOOL_TRUE='#'
12385 GL_COND_LIBTOOL_FALSE=
12388 gl_cond_libtool=false
12391 gl_m4_base='import/m4'
12401 gl_source_base='import'
12404 if test $ac_cv_func_alloca_works = no; then
12408 # Define an additional variable used in the Makefile substitution.
12409 if test $ac_cv_working_alloca_h = yes; then
12410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
12411 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
12412 if test "${gl_cv_rpl_alloca+set}" = set; then :
12413 $as_echo_n "(cached) " >&6
12416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12417 /* end confdefs.h. */
12419 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
12424 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12425 $EGREP "Need own alloca" >/dev/null 2>&1; then :
12426 gl_cv_rpl_alloca=yes
12428 gl_cv_rpl_alloca=no
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
12435 $as_echo "$gl_cv_rpl_alloca" >&6; }
12436 if test $gl_cv_rpl_alloca = yes; then
12438 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12448 if test -n "$ALLOCA_H"; then
12449 GL_GENERATE_ALLOCA_H_TRUE=
12450 GL_GENERATE_ALLOCA_H_FALSE='#'
12452 GL_GENERATE_ALLOCA_H_TRUE='#'
12453 GL_GENERATE_ALLOCA_H_FALSE=
12460 if test $ac_cv_func_canonicalize_file_name = no; then
12461 HAVE_CANONICALIZE_FILE_NAME=0
12462 if test $ac_cv_func_realpath = no; then
12465 case "$gl_cv_func_realpath_works" in
12467 *) REPLACE_REALPATH=1 ;;
12471 case "$gl_cv_func_realpath_works" in
12475 REPLACE_CANONICALIZE_FILE_NAME=1
12481 if test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1; then
12490 gl_LIBOBJS="$gl_LIBOBJS canonicalize-lgpl.$ac_objext"
12495 cat >>confdefs.h <<_ACEOF
12496 #define GNULIB_CANONICALIZE_LGPL 1
12505 GNULIB_CANONICALIZE_FILE_NAME=1
12511 $as_echo "#define GNULIB_TEST_CANONICALIZE_FILE_NAME 1" >>confdefs.h
12526 $as_echo "#define GNULIB_TEST_REALPATH 1" >>confdefs.h
12541 $as_echo "#define GNULIB_TEST_CHDIR 1" >>confdefs.h
12546 if test "x$datarootdir" = x; then
12547 datarootdir='${datadir}'
12550 if test "x$docdir" = x; then
12551 docdir='${datarootdir}/doc/${PACKAGE}'
12554 if test "x$htmldir" = x; then
12555 htmldir='${docdir}'
12558 if test "x$dvidir" = x; then
12562 if test "x$pdfdir" = x; then
12566 if test "x$psdir" = x; then
12570 if test "x$lispdir" = x; then
12571 lispdir='${datarootdir}/emacs/site-lisp'
12574 if test "x$localedir" = x; then
12575 localedir='${datarootdir}/locale'
12578 if test "x$runstatedir" = x; then
12579 runstatedir='${localstatedir}/run'
12583 pkglibexecdir='${libexecdir}/${PACKAGE}'
12598 if test $gl_cv_have_include_next = yes; then
12599 gl_cv_next_dirent_h='<'dirent.h'>'
12601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <dirent.h>" >&5
12602 $as_echo_n "checking absolute name of <dirent.h>... " >&6; }
12603 if test "${gl_cv_next_dirent_h+set}" = set; then :
12604 $as_echo_n "(cached) " >&6
12607 if test $ac_cv_header_dirent_h = yes; then
12612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12613 /* end confdefs.h. */
12614 #include <dirent.h>
12617 aix*) gl_absname_cpp="$ac_cpp -C" ;;
12618 *) gl_absname_cpp="$ac_cpp" ;;
12623 gl_dirsep_regex='[/\\]'
12626 gl_dirsep_regex='\/'
12629 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
12630 gl_header_literal_regex=`echo 'dirent.h' \
12631 |
sed -e "$gl_make_literal_regex_sed"`
12632 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
12633 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
12639 gl_cv_absolute_dirent_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12640 sed -n "$gl_absolute_header_sed"`
12642 gl_header=$gl_cv_absolute_dirent_h
12643 gl_cv_next_dirent_h='"'$gl_header'"'
12645 gl_cv_next_dirent_h='<'dirent.h'>'
12650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_dirent_h" >&5
12651 $as_echo "$gl_cv_next_dirent_h" >&6; }
12653 NEXT_DIRENT_H=$gl_cv_next_dirent_h
12655 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
12656 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12657 gl_next_as_first_directive='<'dirent.h'>'
12659 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12660 gl_next_as_first_directive=$gl_cv_next_dirent_h
12662 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H=$gl_next_as_first_directive
12667 if test $ac_cv_header_dirent_h = yes; then
12675 for gl_func in alphasort closedir dirfd fdopendir opendir readdir rewinddir scandir; do
12676 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
12678 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
12679 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
12680 $as_echo_n "(cached) " >&6
12682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12683 /* end confdefs.h. */
12684 #include <dirent.h>
12695 if ac_fn_c_try_compile "$LINENO"; then :
12696 eval "$as_gl_Symbol=yes"
12698 eval "$as_gl_Symbol=no"
12700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12702 eval ac_res=\$$as_gl_Symbol
12703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12704 $as_echo "$ac_res" >&6; }
12705 eval as_val=\$$as_gl_Symbol
12706 if test "x$as_val" = x""yes; then :
12707 cat >>confdefs.h <<_ACEOF
12708 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
12711 eval ac_cv_have_decl_$gl_func=yes
12721 for ac_func in dirfd
12723 ac_fn_c_check_func "$LINENO" "dirfd" "ac_cv_func_dirfd"
12724 if test "x$ac_cv_func_dirfd" = x""yes; then :
12725 cat >>confdefs.h <<_ACEOF
12726 #define HAVE_DIRFD 1
12732 ac_fn_c_check_decl "$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "#include <sys/types.h>
12733 #include <dirent.h>
12735 if test "x$ac_cv_have_decl_dirfd" = x""yes; then :
12741 cat >>confdefs.h <<_ACEOF
12742 #define HAVE_DECL_DIRFD $ac_have_decl
12745 if test $ac_cv_have_decl_dirfd = no; then
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dirfd is a macro" >&5
12750 $as_echo_n "checking whether dirfd is a macro... " >&6; }
12751 if test "${gl_cv_func_dirfd_macro+set}" = set; then :
12752 $as_echo_n "(cached) " >&6
12754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12755 /* end confdefs.h. */
12757 #include <sys/types.h>
12758 #include <dirent.h>
12760 dirent_header_defines_dirfd
12763 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12764 $EGREP "dirent_header_defines_dirfd" >/dev/null 2>&1; then :
12765 gl_cv_func_dirfd_macro=yes
12767 gl_cv_func_dirfd_macro=no
12772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dirfd_macro" >&5
12773 $as_echo "$gl_cv_func_dirfd_macro" >&6; }
12775 # Use the replacement if we have no function or macro with that name,
12776 # or if OS/2 kLIBC whose dirfd() does not work.
12777 # Replace only if the system declares dirfd already.
12778 case $ac_cv_func_dirfd,$gl_cv_func_dirfd_macro,$host_os,$ac_cv_have_decl_dirfd in
12779 no,no,*,yes | *,*,os2*,yes)
12782 $as_echo "#define REPLACE_DIRFD 1" >>confdefs.h
12786 if test $ac_cv_func_dirfd = no && test $gl_cv_func_dirfd_macro = no \
12787 || test $REPLACE_DIRFD = 1; then
12796 gl_LIBOBJS="$gl_LIBOBJS dirfd.$ac_objext"
12799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get the file descriptor associated with an open DIR*" >&5
12800 $as_echo_n "checking how to get the file descriptor associated with an open DIR*... " >&6; }
12801 if test "${gl_cv_sys_dir_fd_member_name+set}" = set; then :
12802 $as_echo_n "(cached) " >&6
12805 dirfd_save_CFLAGS=$CFLAGS
12806 for ac_expr in d_fd dd_fd; do
12808 CFLAGS="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr"
12809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12810 /* end confdefs.h. */
12812 #include <sys/types.h>
12813 #include <dirent.h>
12817 DIR *dir_p = opendir("."); (void) dir_p->DIR_FD_MEMBER_NAME;
12822 if ac_fn_c_try_compile "$LINENO"; then :
12826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12827 CFLAGS=$dirfd_save_CFLAGS
12828 test "$dir_fd_found" = yes && break
12830 test "$dir_fd_found" = yes || ac_expr=no_such_member
12832 gl_cv_sys_dir_fd_member_name=$ac_expr
12836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_dir_fd_member_name" >&5
12837 $as_echo "$gl_cv_sys_dir_fd_member_name" >&6; }
12838 if test $gl_cv_sys_dir_fd_member_name != no_such_member; then
12840 cat >>confdefs.h <<_ACEOF
12841 #define DIR_FD_MEMBER_NAME $gl_cv_sys_dir_fd_member_name
12859 $as_echo "#define GNULIB_TEST_DIRFD 1" >>confdefs.h
12869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
12870 $as_echo_n "checking whether // is distinct from /... " >&6; }
12871 if test "${gl_cv_double_slash_root+set}" = set; then :
12872 $as_echo_n "(cached) " >&6
12874 if test x"$cross_compiling" = xyes ; then
12875 # When cross-compiling, there is no way to tell whether // is special
12876 # short of a list of hosts. However, the only known hosts to date
12877 # that have a distinct // are Apollo DomainOS (too old to port to),
12878 # Cygwin, and z/OS. If anyone knows of another system for which // has
12879 # special semantics and is distinct from /, please report it to
12880 # <bug-gnulib@gnu.org>.
12882 *-cygwin | i370-ibm-openedition)
12883 gl_cv_double_slash_root=yes ;;
12885 # Be optimistic and assume that / and // are the same when we
12887 gl_cv_double_slash_root='unknown, assuming no' ;;
12890 set x `ls -di / // 2>/dev
/null
`
12891 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
12892 gl_cv_double_slash_root=no
12894 gl_cv_double_slash_root=yes
12898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
12899 $as_echo "$gl_cv_double_slash_root" >&6; }
12900 if test "$gl_cv_double_slash_root" = yes; then
12902 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
12909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array member" >&5
12910 $as_echo_n "checking for flexible array member... " >&6; }
12911 if test "${ac_cv_c_flexmember+set}" = set; then :
12912 $as_echo_n "(cached) " >&6
12914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12915 /* end confdefs.h. */
12916 #include <stdlib.h>
12918 #include <stddef.h>
12919 struct s { int n; double d[]; };
12923 int m = getchar ();
12924 size_t nbytes = offsetof (struct s, d) + m * sizeof (double);
12925 nbytes += sizeof (struct s) - 1;
12926 nbytes -= nbytes % sizeof (struct s);
12927 struct s *p = malloc (nbytes);
12929 return p->d != (double *) NULL;
12934 if ac_fn_c_try_compile "$LINENO"; then :
12935 ac_cv_c_flexmember=yes
12937 ac_cv_c_flexmember=no
12939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5
12942 $as_echo "$ac_cv_c_flexmember" >&6; }
12943 if test $ac_cv_c_flexmember = yes; then
12945 $as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h
12948 $as_echo "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h
12956 REPLACE_FLOAT_LDBL=0
12958 aix* | beos* | openbsd* | mirbsd* | irix*)
12962 case "$host_cpu" in
12967 # On x86_64 systems, the C compiler may still be generating
12969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12970 /* end confdefs.h. */
12971 #if defined __LP64__ || defined __x86_64__ || defined __amd64__
12975 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12976 $EGREP "yes" >/dev/null 2>&1; then :
12987 case "$host_cpu" in
12995 aix* | freebsd* | linux*)
12996 if test -n "$FLOAT_H"; then
12997 REPLACE_FLOAT_LDBL=1
13003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
13004 $as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
13005 if test "${gl_cv_func_itold_works+set}" = set; then :
13006 $as_echo_n "(cached) " >&6
13009 if test "$cross_compiling" = yes; then :
13012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13013 /* end confdefs.h. */
13014 #if defined __LP64__ || defined __arch64__
13018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13019 $EGREP "yes" >/dev/null 2>&1; then :
13020 gl_cv_func_itold_works="guessing no"
13022 gl_cv_func_itold_works="guessing yes"
13027 *) gl_cv_func_itold_works="guessing yes" ;;
13031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13032 /* end confdefs.h. */
13035 volatile long double ld;
13044 if ac_fn_c_try_run "$LINENO"; then :
13045 gl_cv_func_itold_works=yes
13047 gl_cv_func_itold_works=no
13049 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13050 conftest.$ac_objext conftest.beam conftest.$ac_ext
13055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
13056 $as_echo "$gl_cv_func_itold_works" >&6; }
13057 case "$gl_cv_func_itold_works" in
13064 if test -n "$FLOAT_H"; then
13073 if test $gl_cv_have_include_next = yes; then
13074 gl_cv_next_float_h='<'float.h'>'
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
13077 $as_echo_n "checking absolute name of <float.h>... " >&6; }
13078 if test "${gl_cv_next_float_h+set}" = set; then :
13079 $as_echo_n "(cached) " >&6
13084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13085 /* end confdefs.h. */
13089 aix*) gl_absname_cpp="$ac_cpp -C" ;;
13090 *) gl_absname_cpp="$ac_cpp" ;;
13095 gl_dirsep_regex='[/\\]'
13098 gl_dirsep_regex='\/'
13101 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
13102 gl_header_literal_regex=`echo 'float.h' \
13103 |
sed -e "$gl_make_literal_regex_sed"`
13104 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
13105 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
13111 gl_cv_absolute_float_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13112 sed -n "$gl_absolute_header_sed"`
13114 gl_header=$gl_cv_absolute_float_h
13115 gl_cv_next_float_h='"'$gl_header'"'
13119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
13120 $as_echo "$gl_cv_next_float_h" >&6; }
13122 NEXT_FLOAT_H=$gl_cv_next_float_h
13124 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
13125 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13126 gl_next_as_first_directive='<'float.h'>'
13128 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13129 gl_next_as_first_directive=$gl_cv_next_float_h
13131 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
13138 if test -n "$FLOAT_H"; then
13139 GL_GENERATE_FLOAT_H_TRUE=
13140 GL_GENERATE_FLOAT_H_FALSE='#'
13142 GL_GENERATE_FLOAT_H_TRUE='#'
13143 GL_GENERATE_FLOAT_H_FALSE=
13148 if test $REPLACE_FLOAT_LDBL = 1; then
13157 gl_LIBOBJS="$gl_LIBOBJS float.$ac_objext"
13160 if test $REPLACE_ITOLD = 1; then
13169 gl_LIBOBJS="$gl_LIBOBJS itold.$ac_objext"
13178 gl_fnmatch_required_lowercase=`
13179 echo $gl_fnmatch_required | LC_ALL
=C
tr '[A-Z]' '[a-z]'
13181 gl_fnmatch_cache_var="gl_cv_func_fnmatch_${gl_fnmatch_required_lowercase}"
13182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working $gl_fnmatch_required fnmatch" >&5
13183 $as_echo_n "checking for working $gl_fnmatch_required fnmatch... " >&6; }
13184 if { as_var=$gl_fnmatch_cache_var; eval "test \"\${$as_var+set}\" = set"; }; then :
13185 $as_echo_n "(cached) " >&6
13187 if test $gl_fnmatch_required = GNU; then
13188 gl_fnmatch_gnu_start=
13189 gl_fnmatch_gnu_end=
13191 gl_fnmatch_gnu_start='#if 0'
13192 gl_fnmatch_gnu_end='#endif'
13194 if test "$cross_compiling" = yes; then :
13195 eval "$gl_fnmatch_cache_var=\"guessing no\""
13197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13198 /* end confdefs.h. */
13199 #include <fnmatch.h>
13201 y (char const *pattern, char const *string, int flags)
13203 return fnmatch (pattern, string, flags) == 0;
13206 n (char const *pattern, char const *string, int flags)
13208 return fnmatch (pattern, string, flags) == FNM_NOMATCH;
13214 char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]";
13215 char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]";
13216 static char const A_1[] = { 'A' - 1, 0 };
13217 static char const A01[] = { 'A' + 1, 0 };
13218 static char const a_1[] = { 'a' - 1, 0 };
13219 static char const a01[] = { 'a' + 1, 0 };
13220 static char const bs_1[] = { '\\\\' - 1, 0 };
13221 static char const bs01[] = { '\\\\' + 1, 0 };
13223 if (!n ("a*", "", 0))
13225 if (!y ("a*", "abc", 0))
13227 if (!y ("[/b", "[/b", 0)) /*"]]"*/ /* glibc Bugzilla bug 12378 */
13229 if (!n ("d*/*1", "d/s/1", FNM_PATHNAME))
13231 if (!y ("a\\\\bc", "abc", 0))
13233 if (!n ("a\\\\bc", "abc", FNM_NOESCAPE))
13235 if (!y ("*x", ".x", 0))
13237 if (!n ("*x", ".x", FNM_PERIOD))
13239 if (!y (Apat, "\\\\", 0))
13241 if (!y (Apat, "A", 0))
13243 if (!y (apat, "\\\\", 0))
13245 if (!y (apat, "a", 0))
13247 if (!(n (Apat, A_1, 0) == ('A' < '\\\\')))
13249 if (!(n (apat, a_1, 0) == ('a' < '\\\\')))
13251 if (!(y (Apat, A01, 0) == ('A' < '\\\\')))
13253 if (!(y (apat, a01, 0) == ('a' < '\\\\')))
13255 if (!(y (Apat, bs_1, 0) == ('A' < '\\\\')))
13257 if (!(y (apat, bs_1, 0) == ('a' < '\\\\')))
13259 if (!(n (Apat, bs01, 0) == ('A' < '\\\\')))
13261 if (!(n (apat, bs01, 0) == ('a' < '\\\\')))
13263 $gl_fnmatch_gnu_start
13264 if (!y ("xxXX", "xXxX", FNM_CASEFOLD))
13266 if (!y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH))
13268 if (!n ("d*/*1", "d/s/1", FNM_FILE_NAME))
13270 if (!y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR))
13272 if (!y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR))
13274 if (!y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR))
13276 $gl_fnmatch_gnu_end
13283 if ac_fn_c_try_run "$LINENO"; then :
13284 eval "$gl_fnmatch_cache_var=yes"
13286 eval "$gl_fnmatch_cache_var=no"
13288 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13289 conftest.$ac_objext conftest.beam conftest.$ac_ext
13294 eval ac_res=\$$gl_fnmatch_cache_var
13295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13296 $as_echo "$ac_res" >&6; }
13297 eval "gl_fnmatch_result=\"\$$gl_fnmatch_cache_var\""
13298 if test "$gl_fnmatch_result" = yes; then
13299 rm -f "$gl_source_base/fnmatch.h"
13301 FNMATCH_H=fnmatch.h
13304 if test -n "$FNMATCH_H"; then
13305 GL_GENERATE_FNMATCH_H_TRUE=
13306 GL_GENERATE_FNMATCH_H_FALSE='#'
13308 GL_GENERATE_FNMATCH_H_TRUE='#'
13309 GL_GENERATE_FNMATCH_H_FALSE=
13313 if test -n "$FNMATCH_H"; then
13322 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
13326 cat >>confdefs.h <<_ACEOF
13327 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
13331 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
13333 if test "x$ac_cv_have_decl_isblank" = x""yes; then :
13339 cat >>confdefs.h <<_ACEOF
13340 #define HAVE_DECL_ISBLANK $ac_have_decl
13352 if test -n "$FNMATCH_H"; then
13361 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
13365 cat >>confdefs.h <<_ACEOF
13366 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
13370 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
13372 if test "x$ac_cv_have_decl_isblank" = x""yes; then :
13378 cat >>confdefs.h <<_ACEOF
13379 #define HAVE_DECL_ISBLANK $ac_have_decl
13390 if test $gl_cv_func_frexp_no_libm = no; then
13391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used with libm" >&5
13392 $as_echo_n "checking whether frexp() can be used with libm... " >&6; }
13393 if test "${gl_cv_func_frexp_in_libm+set}" = set; then :
13394 $as_echo_n "(cached) " >&6
13399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13400 /* end confdefs.h. */
13406 int e; return frexp (x, &e) > 0;
13411 if ac_fn_c_try_link "$LINENO"; then :
13412 gl_cv_func_frexp_in_libm=yes
13414 gl_cv_func_frexp_in_libm=no
13416 rm -f core conftest.err conftest.$ac_objext \
13417 conftest$ac_exeext conftest.$ac_ext
13421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_in_libm" >&5
13422 $as_echo "$gl_cv_func_frexp_in_libm" >&6; }
13423 if test $gl_cv_func_frexp_in_libm = yes; then
13427 if test $gl_cv_func_frexp_no_libm = yes \
13428 || test $gl_cv_func_frexp_in_libm = yes; then
13430 LIBS="$LIBS $FREXP_LIBM"
13434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp works" >&5
13435 $as_echo_n "checking whether frexp works... " >&6; }
13436 if test "${gl_cv_func_frexp_works+set}" = set; then :
13437 $as_echo_n "(cached) " >&6
13440 if test "$cross_compiling" = yes; then :
13442 netbsd* | irix* | mingw*) gl_cv_func_frexp_works="guessing no";;
13443 *) gl_cv_func_frexp_works="guessing yes";;
13447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13448 /* end confdefs.h. */
13452 #include <string.h>
13453 #if HAVE_DECL_ALARM
13454 # include <signal.h>
13455 # include <unistd.h>
13457 /* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0.
13458 ICC 10.0 has a bug when optimizing the expression -zero.
13459 The expression -DBL_MIN * DBL_MIN does not work when cross-compiling
13460 to PowerPC on Mac OS X 10.5. */
13461 #if defined __hpux || defined __sgi || defined __ICC
13463 compute_minus_zero (void)
13465 return -DBL_MIN * DBL_MIN;
13467 # define minus_zero compute_minus_zero ()
13469 double minus_zero = -0.0;
13477 #if HAVE_DECL_ALARM
13478 /* NeXTstep 3.3 frexp() runs into an endless loop when called on an infinite
13479 number. Let the test fail in this case. */
13480 signal (SIGALRM, SIG_DFL);
13483 /* Test on denormalized numbers. */
13484 for (i = 1, x = 1.0; i >= DBL_MIN_EXP; i--, x *= 0.5)
13489 double y = frexp (x, &exp);
13490 /* On machines with IEEE754 arithmetic: x = 1.11254e-308, exp = -1022.
13491 On NetBSD: y = 0.75. Correct: y = 0.5. */
13495 /* Test on infinite numbers. */
13499 double y = frexp (x, &exp);
13503 /* Test on negative zero. */
13507 double y = frexp (x, &exp);
13508 if (memcmp (&y, &x, sizeof x))
13514 if ac_fn_c_try_run "$LINENO"; then :
13515 gl_cv_func_frexp_works=yes
13517 gl_cv_func_frexp_works=no
13519 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13520 conftest.$ac_objext conftest.beam conftest.$ac_ext
13525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_works" >&5
13526 $as_echo "$gl_cv_func_frexp_works" >&6; }
13529 case "$gl_cv_func_frexp_works" in
13530 *yes) gl_func_frexp=yes ;;
13531 *) gl_func_frexp=no; REPLACE_FREXP=1; FREXP_LIBM= ;;
13536 if test $gl_func_frexp = yes; then
13538 $as_echo "#define HAVE_FREXP 1" >>confdefs.h
13543 if test $gl_func_frexp != yes; then
13552 gl_LIBOBJS="$gl_LIBOBJS frexp.$ac_objext"
13566 $as_echo "#define GNULIB_TEST_FREXP 1" >>confdefs.h
13576 ac_fn_c_check_decl "$LINENO" "frexpl" "ac_cv_have_decl_frexpl" "#include <math.h>
13578 if test "x$ac_cv_have_decl_frexpl" = x""yes; then :
13586 if test $HAVE_DECL_FREXPL = 1; then
13588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used without linking with libm" >&5
13589 $as_echo_n "checking whether frexpl() can be used without linking with libm... " >&6; }
13590 if test "${gl_cv_func_frexpl_no_libm+set}" = set; then :
13591 $as_echo_n "(cached) " >&6
13594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13595 /* end confdefs.h. */
13601 int e; return frexpl (x, &e) > 0;
13606 if ac_fn_c_try_link "$LINENO"; then :
13607 gl_cv_func_frexpl_no_libm=yes
13609 gl_cv_func_frexpl_no_libm=no
13611 rm -f core conftest.err conftest.$ac_objext \
13612 conftest$ac_exeext conftest.$ac_ext
13615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_no_libm" >&5
13616 $as_echo "$gl_cv_func_frexpl_no_libm" >&6; }
13618 if test $gl_cv_func_frexpl_no_libm = no; then
13619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used with libm" >&5
13620 $as_echo_n "checking whether frexpl() can be used with libm... " >&6; }
13621 if test "${gl_cv_func_frexpl_in_libm+set}" = set; then :
13622 $as_echo_n "(cached) " >&6
13627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13628 /* end confdefs.h. */
13634 int e; return frexpl (x, &e) > 0;
13639 if ac_fn_c_try_link "$LINENO"; then :
13640 gl_cv_func_frexpl_in_libm=yes
13642 gl_cv_func_frexpl_in_libm=no
13644 rm -f core conftest.err conftest.$ac_objext \
13645 conftest$ac_exeext conftest.$ac_ext
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_in_libm" >&5
13650 $as_echo "$gl_cv_func_frexpl_in_libm" >&6; }
13651 if test $gl_cv_func_frexpl_in_libm = yes; then
13655 if test $gl_cv_func_frexpl_no_libm = yes \
13656 || test $gl_cv_func_frexpl_in_libm = yes; then
13658 LIBS="$LIBS $FREXPL_LIBM"
13661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl works" >&5
13662 $as_echo_n "checking whether frexpl works... " >&6; }
13663 if test "${gl_cv_func_frexpl_works+set}" = set; then :
13664 $as_echo_n "(cached) " >&6
13667 if test "$cross_compiling" = yes; then :
13670 aix | aix[3-6]* | beos* | darwin* | irix* | mingw* | pw*)
13671 gl_cv_func_frexpl_works="guessing no";;
13672 *) gl_cv_func_frexpl_works="guessing yes";;
13676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13677 /* end confdefs.h. */
13681 /* Override the values of <float.h>, like done in float.in.h. */
13682 #if defined __i386__ && (defined __BEOS__ || defined __OpenBSD__)
13683 # undef LDBL_MIN_EXP
13684 # define LDBL_MIN_EXP (-16381)
13686 #if defined __i386__ && defined __FreeBSD__
13687 # undef LDBL_MIN_EXP
13688 # define LDBL_MIN_EXP (-16381)
13690 #if (defined _ARCH_PPC || defined _POWER) && defined _AIX && (LDBL_MANT_DIG == 106) && defined __GNUC__
13691 # undef LDBL_MIN_EXP
13692 # define LDBL_MIN_EXP DBL_MIN_EXP
13694 #if defined __sgi && (LDBL_MANT_DIG >= 106)
13695 # if defined __GNUC__
13696 # undef LDBL_MIN_EXP
13697 # define LDBL_MIN_EXP DBL_MIN_EXP
13704 long double frexpl (long double, int *);
13708 volatile long double x;
13709 /* Test on finite numbers that fails on AIX 5.1. */
13717 /* Test on finite numbers that fails on Mac OS X 10.4, because its frexpl
13718 function returns an invalid (incorrectly normalized) value: it returns
13719 y = { 0x3fe028f5, 0xc28f5c28, 0x3c9eb851, 0xeb851eb8 }
13720 but the correct result is
13721 0.505L = { 0x3fe028f5, 0xc28f5c29, 0xbc547ae1, 0x47ae1480 } */
13725 long double y = frexpl (x, &exp);
13726 if (!(exp == 1 && y == 0.505L))
13729 /* Test on large finite numbers. This fails on BeOS at i = 16322, while
13730 LDBL_MAX_EXP = 16384.
13731 In the loop end test, we test x against Infinity, rather than comparing
13732 i with LDBL_MAX_EXP, because BeOS <float.h> has a wrong LDBL_MAX_EXP. */
13735 for (i = 1, x = 1.0L; x != x + x; i++, x *= 2.0L)
13746 /* Test on denormalized numbers. */
13749 for (i = 1, x = 1.0L; i >= LDBL_MIN_EXP; i--, x *= 0.5L)
13754 long double y = frexpl (x, &exp);
13755 /* On machines with IEEE854 arithmetic: x = 1.68105e-4932,
13756 exp = -16382, y = 0.5. On Mac OS X 10.5: exp = -16384, y = 0.5. */
13757 if (exp != LDBL_MIN_EXP - 1)
13761 /* Test on infinite numbers. */
13765 long double y = frexpl (x, &exp);
13772 if ac_fn_c_try_run "$LINENO"; then :
13773 gl_cv_func_frexpl_works=yes
13775 gl_cv_func_frexpl_works=no
13777 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13778 conftest.$ac_objext conftest.beam conftest.$ac_ext
13783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_works" >&5
13784 $as_echo "$gl_cv_func_frexpl_works" >&6; }
13787 case "$gl_cv_func_frexpl_works" in
13788 *yes) gl_func_frexpl=yes ;;
13789 *) gl_func_frexpl=no; REPLACE_FREXPL=1 ;;
13794 if test $gl_func_frexpl = yes; then
13796 $as_echo "#define HAVE_FREXPL 1" >>confdefs.h
13800 if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl = no; then
13801 if test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1; then
13803 FREXPL_LIBM="$FREXP_LIBM"
13810 if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl = no; then
13819 gl_LIBOBJS="$gl_LIBOBJS frexpl.$ac_objext"
13833 $as_echo "#define GNULIB_TEST_FREXPL 1" >>confdefs.h
13843 gl_gettimeofday_timezone=void
13844 if test $ac_cv_func_gettimeofday != yes; then
13845 HAVE_GETTIMEOFDAY=0
13850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
13851 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
13852 if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then :
13853 $as_echo_n "(cached) " >&6
13855 if test "$cross_compiling" = yes; then :
13856 # When cross-compiling:
13858 # Guess all is fine on glibc systems.
13859 *-gnu*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
13860 # If we don't know, assume the worst.
13861 *) gl_cv_func_gettimeofday_clobber="guessing yes" ;;
13865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13866 /* end confdefs.h. */
13867 #include <string.h>
13868 #include <sys/time.h>
13870 #include <stdlib.h>
13878 struct tm saved_lt;
13880 lt = localtime (&t);
13882 gettimeofday (&tv, NULL);
13883 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
13889 if ac_fn_c_try_run "$LINENO"; then :
13890 gl_cv_func_gettimeofday_clobber=no
13892 gl_cv_func_gettimeofday_clobber=yes
13894 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13895 conftest.$ac_objext conftest.beam conftest.$ac_ext
13899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
13900 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
13902 case "$gl_cv_func_gettimeofday_clobber" in
13904 REPLACE_GETTIMEOFDAY=1
13907 REPLACE_LOCALTIME=1
13910 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
13915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
13916 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
13917 if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then :
13918 $as_echo_n "(cached) " >&6
13920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13921 /* end confdefs.h. */
13922 #include <sys/time.h>
13924 int gettimeofday (struct timeval *restrict, void *restrict);
13929 /* glibc uses struct timezone * rather than the POSIX void *
13930 if _GNU_SOURCE is defined. However, since the only portable
13931 use of gettimeofday uses NULL as the second parameter, and
13932 since the glibc definition is actually more typesafe, it is
13933 not worth wrapping this to get a compliant signature. */
13934 int (*f) (struct timeval *restrict, void *restrict)
13937 return !(x | c.tv_sec | c.tv_usec);
13943 if ac_fn_c_try_compile "$LINENO"; then :
13944 gl_cv_func_gettimeofday_posix_signature=yes
13946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13947 /* end confdefs.h. */
13948 #include <sys/time.h>
13949 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
13959 if ac_fn_c_try_compile "$LINENO"; then :
13960 gl_cv_func_gettimeofday_posix_signature=almost
13962 gl_cv_func_gettimeofday_posix_signature=no
13964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
13969 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
13970 if test $gl_cv_func_gettimeofday_posix_signature = almost; then
13971 gl_gettimeofday_timezone='struct timezone'
13972 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
13973 REPLACE_GETTIMEOFDAY=1
13975 if test $REPLACE_STRUCT_TIMEVAL = 1; then
13976 REPLACE_GETTIMEOFDAY=1
13981 cat >>confdefs.h <<_ACEOF
13982 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
13986 if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
13995 gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
13998 for ac_header in sys/timeb.h
14000 ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
14001 if test "x$ac_cv_header_sys_timeb_h" = x""yes; then :
14002 cat >>confdefs.h <<_ACEOF
14003 #define HAVE_SYS_TIMEB_H 1
14010 for ac_func in _ftime
14012 ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime"
14013 if test "x$ac_cv_func__ftime" = x""yes; then :
14014 cat >>confdefs.h <<_ACEOF
14015 #define HAVE__FTIME 1
14028 GNULIB_GETTIMEOFDAY=1
14034 $as_echo "#define GNULIB_TEST_GETTIMEOFDAY 1" >>confdefs.h
14047 if test -n "$STDINT_H"; then
14048 PRIPTR_PREFIX='"l"'
14050 for glpfx in '' l ll I64; do
14052 '') gltype1='int';;
14053 l) gltype1='long int';;
14054 ll) gltype1='long long int';;
14055 I64) gltype1='__int64';;
14057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14058 /* end confdefs.h. */
14059 #include <stdint.h>
14060 extern intptr_t foo;
14061 extern $gltype1 foo;
14070 if ac_fn_c_try_compile "$LINENO"; then :
14071 PRIPTR_PREFIX='"'$glpfx'"'
14073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14074 test -n "$PRIPTR_PREFIX" && break
14080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5
14081 $as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
14082 if test "${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+set}" = set; then :
14083 $as_echo_n "(cached) " >&6
14085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14086 /* end confdefs.h. */
14087 /* Work also in C++ mode. */
14088 #define __STDC_LIMIT_MACROS 1
14090 /* Work if build is not clean. */
14091 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
14093 #include <limits.h>
14095 #include <stdint.h>
14098 #if defined INT32_MAX && defined INTMAX_MAX
14099 #define CONDITION (INT32_MAX < INTMAX_MAX)
14100 #elif HAVE_LONG_LONG_INT
14101 #define CONDITION (sizeof (int) < sizeof (long long int))
14103 #define CONDITION 0
14105 int test[CONDITION ? 1 : -1];
14114 if ac_fn_c_try_compile "$LINENO"; then :
14115 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=yes
14117 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=no
14119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
14122 $as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
14123 if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
14124 INT32_MAX_LT_INTMAX_MAX=1;
14126 INT32_MAX_LT_INTMAX_MAX=0;
14130 if test $APPLE_UNIVERSAL_BUILD = 0; then
14132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5
14133 $as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; }
14134 if test "${gl_cv_test_INT64_MAX_EQ_LONG_MAX+set}" = set; then :
14135 $as_echo_n "(cached) " >&6
14137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14138 /* end confdefs.h. */
14139 /* Work also in C++ mode. */
14140 #define __STDC_LIMIT_MACROS 1
14142 /* Work if build is not clean. */
14143 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
14145 #include <limits.h>
14147 #include <stdint.h>
14150 #if defined INT64_MAX
14151 #define CONDITION (INT64_MAX == LONG_MAX)
14152 #elif HAVE_LONG_LONG_INT
14153 #define CONDITION (sizeof (long long int) == sizeof (long int))
14155 #define CONDITION 0
14157 int test[CONDITION ? 1 : -1];
14166 if ac_fn_c_try_compile "$LINENO"; then :
14167 gl_cv_test_INT64_MAX_EQ_LONG_MAX=yes
14169 gl_cv_test_INT64_MAX_EQ_LONG_MAX=no
14171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
14174 $as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
14175 if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
14176 INT64_MAX_EQ_LONG_MAX=1;
14178 INT64_MAX_EQ_LONG_MAX=0;
14183 INT64_MAX_EQ_LONG_MAX=-1
14186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5
14187 $as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
14188 if test "${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+set}" = set; then :
14189 $as_echo_n "(cached) " >&6
14191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14192 /* end confdefs.h. */
14193 /* Work also in C++ mode. */
14194 #define __STDC_LIMIT_MACROS 1
14196 /* Work if build is not clean. */
14197 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
14199 #include <limits.h>
14201 #include <stdint.h>
14204 #if defined UINT32_MAX && defined UINTMAX_MAX
14205 #define CONDITION (UINT32_MAX < UINTMAX_MAX)
14206 #elif HAVE_LONG_LONG_INT
14207 #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
14209 #define CONDITION 0
14211 int test[CONDITION ? 1 : -1];
14220 if ac_fn_c_try_compile "$LINENO"; then :
14221 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=yes
14223 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=no
14225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
14228 $as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
14229 if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
14230 UINT32_MAX_LT_UINTMAX_MAX=1;
14232 UINT32_MAX_LT_UINTMAX_MAX=0;
14236 if test $APPLE_UNIVERSAL_BUILD = 0; then
14238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5
14239 $as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
14240 if test "${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+set}" = set; then :
14241 $as_echo_n "(cached) " >&6
14243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14244 /* end confdefs.h. */
14245 /* Work also in C++ mode. */
14246 #define __STDC_LIMIT_MACROS 1
14248 /* Work if build is not clean. */
14249 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
14251 #include <limits.h>
14253 #include <stdint.h>
14256 #if defined UINT64_MAX
14257 #define CONDITION (UINT64_MAX == ULONG_MAX)
14258 #elif HAVE_LONG_LONG_INT
14259 #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
14261 #define CONDITION 0
14263 int test[CONDITION ? 1 : -1];
14272 if ac_fn_c_try_compile "$LINENO"; then :
14273 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=yes
14275 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=no
14277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
14280 $as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
14281 if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
14282 UINT64_MAX_EQ_ULONG_MAX=1;
14284 UINT64_MAX_EQ_ULONG_MAX=0;
14289 UINT64_MAX_EQ_ULONG_MAX=-1
14296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(double) can be used without linking with libm" >&5
14297 $as_echo_n "checking whether isnan(double) can be used without linking with libm... " >&6; }
14298 if test "${gl_cv_func_isnand_no_libm+set}" = set; then :
14299 $as_echo_n "(cached) " >&6
14302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14303 /* end confdefs.h. */
14307 # define isnand(x) __builtin_isnan ((double)(x))
14310 # define isnand(x) isnan ((double)(x))
14321 if ac_fn_c_try_link "$LINENO"; then :
14322 gl_cv_func_isnand_no_libm=yes
14324 gl_cv_func_isnand_no_libm=no
14326 rm -f core conftest.err conftest.$ac_objext \
14327 conftest$ac_exeext conftest.$ac_ext
14330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnand_no_libm" >&5
14331 $as_echo "$gl_cv_func_isnand_no_libm" >&6; }
14333 gl_func_isnand_no_libm=$gl_cv_func_isnand_no_libm
14334 if test $gl_cv_func_isnand_no_libm = yes; then
14336 $as_echo "#define HAVE_ISNAND_IN_LIBC 1" >>confdefs.h
14340 if test $gl_func_isnand_no_libm != yes; then
14349 gl_LIBOBJS="$gl_LIBOBJS isnand.$ac_objext"
14357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(long double) can be used without linking with libm" >&5
14358 $as_echo_n "checking whether isnan(long double) can be used without linking with libm... " >&6; }
14359 if test "${gl_cv_func_isnanl_no_libm+set}" = set; then :
14360 $as_echo_n "(cached) " >&6
14363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14364 /* end confdefs.h. */
14368 # define isnanl(x) __builtin_isnanl ((long double)(x))
14369 #elif defined isnan
14371 # define isnanl(x) isnan ((long double)(x))
14382 if ac_fn_c_try_link "$LINENO"; then :
14383 gl_cv_func_isnanl_no_libm=yes
14385 gl_cv_func_isnanl_no_libm=no
14387 rm -f core conftest.err conftest.$ac_objext \
14388 conftest$ac_exeext conftest.$ac_ext
14391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_no_libm" >&5
14392 $as_echo "$gl_cv_func_isnanl_no_libm" >&6; }
14394 gl_func_isnanl_no_libm=$gl_cv_func_isnanl_no_libm
14395 if test $gl_func_isnanl_no_libm = yes; then
14400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnanl works" >&5
14401 $as_echo_n "checking whether isnanl works... " >&6; }
14402 if test "${gl_cv_func_isnanl_works+set}" = set; then :
14403 $as_echo_n "(cached) " >&6
14406 if test "$cross_compiling" = yes; then :
14407 gl_cv_func_isnanl_works="guessing yes"
14409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14410 /* end confdefs.h. */
14413 #include <limits.h>
14417 # define isnanl(x) __builtin_isnanl ((long double)(x))
14418 #elif defined isnan
14420 # define isnanl(x) isnan ((long double)(x))
14423 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
14424 typedef union { unsigned int word[NWORDS]; long double value; }
14425 memory_long_double;
14426 /* On Irix 6.5, gcc 3.4.3 can't compute compile-time NaN, and needs the
14427 runtime type conversion. */
14429 static long double NaNl ()
14432 return zero / zero;
14435 # define NaNl() (0.0L / 0.0L)
14441 if (!isnanl (NaNl ()))
14445 memory_long_double m;
14448 /* The isnanl function should be immune against changes in the sign bit and
14449 in the mantissa bits. The xor operation twiddles a bit that can only be
14450 a sign bit or a mantissa bit (since the exponent never extends to
14453 m.word[NWORDS / 2] ^= (unsigned int) 1 << (sizeof (unsigned int) * CHAR_BIT - 1);
14454 for (i = 0; i < NWORDS; i++)
14456 if (!isnanl (m.value))
14460 #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
14461 /* Representation of an 80-bit 'long double' as an initializer for a sequence
14462 of 'unsigned int' words. */
14463 # ifdef WORDS_BIGENDIAN
14464 # define LDBL80_WORDS(exponent,manthi,mantlo) \
14465 { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
14466 ((unsigned int) (manthi) << 16) | ((unsigned int) (mantlo) >> 16), \
14467 (unsigned int) (mantlo) << 16 \
14470 # define LDBL80_WORDS(exponent,manthi,mantlo) \
14471 { mantlo, manthi, exponent }
14474 static memory_long_double x =
14475 { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) };
14476 if (!isnanl (x.value))
14480 /* Signalling NaN. */
14481 static memory_long_double x =
14482 { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) };
14483 if (!isnanl (x.value))
14486 /* isnanl should return something even for noncanonical values. */
14487 { /* Pseudo-NaN. */
14488 static memory_long_double x =
14489 { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) };
14490 if (isnanl (x.value) && !isnanl (x.value))
14493 { /* Pseudo-Infinity. */
14494 static memory_long_double x =
14495 { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) };
14496 if (isnanl (x.value) && !isnanl (x.value))
14499 { /* Pseudo-Zero. */
14500 static memory_long_double x =
14501 { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) };
14502 if (isnanl (x.value) && !isnanl (x.value))
14505 { /* Unnormalized number. */
14506 static memory_long_double x =
14507 { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) };
14508 if (isnanl (x.value) && !isnanl (x.value))
14511 { /* Pseudo-Denormal. */
14512 static memory_long_double x =
14513 { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) };
14514 if (isnanl (x.value) && !isnanl (x.value))
14522 if ac_fn_c_try_run "$LINENO"; then :
14523 gl_cv_func_isnanl_works=yes
14525 gl_cv_func_isnanl_works=no
14527 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14528 conftest.$ac_objext conftest.beam conftest.$ac_ext
14533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_works" >&5
14534 $as_echo "$gl_cv_func_isnanl_works" >&6; }
14536 case "$gl_cv_func_isnanl_works" in
14538 *) gl_func_isnanl_no_libm=no ;;
14541 if test $gl_func_isnanl_no_libm = yes; then
14543 $as_echo "#define HAVE_ISNANL_IN_LIBC 1" >>confdefs.h
14547 if test $gl_func_isnanl_no_libm != yes; then
14556 gl_LIBOBJS="$gl_LIBOBJS isnanl.$ac_objext"
14561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'long double'" >&5
14562 $as_echo_n "checking where to find the exponent in a 'long double'... " >&6; }
14563 if test "${gl_cv_cc_long_double_expbit0+set}" = set; then :
14564 $as_echo_n "(cached) " >&6
14567 if test "$cross_compiling" = yes; then :
14569 gl_cv_cc_long_double_expbit0="unknown"
14572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14573 /* end confdefs.h. */
14576 #include <stddef.h>
14578 #include <string.h>
14580 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
14581 typedef union { long double value; unsigned int word[NWORDS]; }
14582 memory_long_double;
14583 static unsigned int ored_words[NWORDS];
14584 static unsigned int anded_words[NWORDS];
14585 static void add_to_ored_words (long double x)
14587 memory_long_double m;
14589 /* Clear it first, in case
14590 sizeof (long double) < sizeof (memory_long_double). */
14591 memset (&m, 0, sizeof (memory_long_double));
14593 for (i = 0; i < NWORDS; i++)
14595 ored_words[i] |= m.word[i];
14596 anded_words[i] &= m.word[i];
14602 FILE *fp = fopen ("conftest.out", "w");
14605 for (j = 0; j < NWORDS; j++)
14606 anded_words[j] = ~ (unsigned int) 0;
14607 add_to_ored_words (0.25L);
14608 add_to_ored_words (0.5L);
14609 add_to_ored_words (1.0L);
14610 add_to_ored_words (2.0L);
14611 add_to_ored_words (4.0L);
14612 /* Remove bits that are common (e.g. if representation of the first mantissa
14613 bit is explicit). */
14614 for (j = 0; j < NWORDS; j++)
14615 ored_words[j] &= ~anded_words[j];
14616 /* Now find the nonzero word. */
14617 for (j = 0; j < NWORDS; j++)
14618 if (ored_words[j] != 0)
14623 for (i = j + 1; i < NWORDS; i++)
14624 if (ored_words[i] != 0)
14626 fprintf (fp, "unknown");
14627 return (fclose (fp) != 0);
14630 if ((ored_words[j] >> i) & 1)
14632 fprintf (fp, "word %d bit %d", (int) j, (int) i);
14633 return (fclose (fp) != 0);
14636 fprintf (fp, "unknown");
14637 return (fclose (fp) != 0);
14641 if ac_fn_c_try_run "$LINENO"; then :
14642 gl_cv_cc_long_double_expbit0=`cat conftest.out
`
14644 gl_cv_cc_long_double_expbit0="unknown"
14646 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14647 conftest.$ac_objext conftest.beam conftest.$ac_ext
14653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_long_double_expbit0" >&5
14654 $as_echo "$gl_cv_cc_long_double_expbit0" >&6; }
14655 case "$gl_cv_cc_long_double_expbit0" in
14657 word=`echo "$gl_cv_cc_long_double_expbit0" |
sed -e 's/word //' -e 's/ bit.*//'`
14658 bit=`echo "$gl_cv_cc_long_double_expbit0" |
sed -e 's/word.*bit //'`
14660 cat >>confdefs.h <<_ACEOF
14661 #define LDBL_EXPBIT0_WORD $word
14665 cat >>confdefs.h <<_ACEOF
14666 #define LDBL_EXPBIT0_BIT $bit
14685 LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
14690 if test $ac_cv_func_lstat = yes; then
14692 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
14701 if test $REPLACE_LSTAT = 1; then
14710 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
14725 $as_echo "#define GNULIB_TEST_LSTAT 1" >>confdefs.h
14732 if test $gl_cv_func_malloc_posix = yes; then
14734 $as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
14740 if test $REPLACE_MALLOC = 1; then
14749 gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
14757 GNULIB_MALLOC_POSIX=1
14763 $as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
14782 if test $gl_cv_have_include_next = yes; then
14783 gl_cv_next_math_h='<'math.h'>'
14785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <math.h>" >&5
14786 $as_echo_n "checking absolute name of <math.h>... " >&6; }
14787 if test "${gl_cv_next_math_h+set}" = set; then :
14788 $as_echo_n "(cached) " >&6
14791 if test $ac_cv_header_math_h = yes; then
14796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14797 /* end confdefs.h. */
14801 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14802 *) gl_absname_cpp="$ac_cpp" ;;
14807 gl_dirsep_regex='[/\\]'
14810 gl_dirsep_regex='\/'
14813 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14814 gl_header_literal_regex=`echo 'math.h' \
14815 |
sed -e "$gl_make_literal_regex_sed"`
14816 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14817 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14823 gl_cv_absolute_math_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14824 sed -n "$gl_absolute_header_sed"`
14826 gl_header=$gl_cv_absolute_math_h
14827 gl_cv_next_math_h='"'$gl_header'"'
14829 gl_cv_next_math_h='<'math.h'>'
14834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_math_h" >&5
14835 $as_echo "$gl_cv_next_math_h" >&6; }
14837 NEXT_MATH_H=$gl_cv_next_math_h
14839 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14840 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14841 gl_next_as_first_directive='<'math.h'>'
14843 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14844 gl_next_as_first_directive=$gl_cv_next_math_h
14846 NEXT_AS_FIRST_DIRECTIVE_MATH_H=$gl_next_as_first_directive
14852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NAN macro works" >&5
14853 $as_echo_n "checking whether NAN macro works... " >&6; }
14854 if test "${gl_cv_header_math_nan_works+set}" = set; then :
14855 $as_echo_n "(cached) " >&6
14857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14858 /* end confdefs.h. */
14863 /* Solaris 10 has a broken definition of NAN. Other platforms
14864 fail to provide NAN, or provide it only in C99 mode; this
14865 test only needs to fail when NAN is provided but wrong. */
14875 if ac_fn_c_try_compile "$LINENO"; then :
14876 gl_cv_header_math_nan_works=yes
14878 gl_cv_header_math_nan_works=no
14880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_nan_works" >&5
14883 $as_echo "$gl_cv_header_math_nan_works" >&6; }
14884 if test $gl_cv_header_math_nan_works = no; then
14887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether HUGE_VAL works" >&5
14888 $as_echo_n "checking whether HUGE_VAL works... " >&6; }
14889 if test "${gl_cv_header_math_huge_val_works+set}" = set; then :
14890 $as_echo_n "(cached) " >&6
14892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14893 /* end confdefs.h. */
14898 /* Solaris 10 has a broken definition of HUGE_VAL. */
14899 double d = HUGE_VAL;
14905 if ac_fn_c_try_compile "$LINENO"; then :
14906 gl_cv_header_math_huge_val_works=yes
14908 gl_cv_header_math_huge_val_works=no
14910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_huge_val_works" >&5
14913 $as_echo "$gl_cv_header_math_huge_val_works" >&6; }
14914 if test $gl_cv_header_math_huge_val_works = no; then
14919 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
14920 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
14921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
14922 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
14923 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
14924 $as_echo_n "(cached) " >&6
14926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14927 /* end confdefs.h. */
14938 if ac_fn_c_try_compile "$LINENO"; then :
14939 eval "$as_gl_Symbol=yes"
14941 eval "$as_gl_Symbol=no"
14943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14945 eval ac_res=\$$as_gl_Symbol
14946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14947 $as_echo "$ac_res" >&6; }
14948 eval as_val=\$$as_gl_Symbol
14949 if test "x$as_val" = x""yes; then :
14950 cat >>confdefs.h <<_ACEOF
14951 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
14954 eval ac_cv_have_decl_$gl_func=yes
14969 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
14973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
14974 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
14975 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
14976 $as_echo_n "(cached) " >&6
14980 # Guess no on AIX and OSF/1.
14981 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
14982 # Guess yes otherwise.
14983 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
14985 if test $LOCALE_JA != none; then
14986 if test "$cross_compiling" = yes; then :
14989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14990 /* end confdefs.h. */
14992 #include <locale.h>
14993 #include <string.h>
14994 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14996 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14997 included before <wchar.h>. */
14998 #include <stddef.h>
15004 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
15006 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
15010 memset (&state, '\0', sizeof (mbstate_t));
15011 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
15012 if (mbsinit (&state))
15018 if ac_fn_c_try_run "$LINENO"; then :
15019 gl_cv_func_mbrtowc_incomplete_state=yes
15021 gl_cv_func_mbrtowc_incomplete_state=no
15023 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15024 conftest.$ac_objext conftest.beam conftest.$ac_ext
15030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
15031 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
15036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
15037 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
15038 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
15039 $as_echo_n "(cached) " >&6
15043 # Guess no on Solaris 8.
15044 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
15045 # Guess yes otherwise.
15046 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
15048 if test $LOCALE_ZH_CN != none; then
15049 if test "$cross_compiling" = yes; then :
15052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15053 /* end confdefs.h. */
15055 #include <locale.h>
15056 #include <stdlib.h>
15057 #include <string.h>
15058 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15060 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15061 included before <wchar.h>. */
15062 #include <stddef.h>
15068 /* This fails on Solaris 8:
15069 mbrtowc returns 2, and sets wc to 0x00F0.
15070 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
15071 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
15073 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
15077 memset (&state, '\0', sizeof (mbstate_t));
15078 if (mbrtowc (&wc, input + 3, 6, &state) != 4
15079 && mbtowc (&wc, input + 3, 6) == 4)
15085 if ac_fn_c_try_run "$LINENO"; then :
15086 gl_cv_func_mbrtowc_sanitycheck=yes
15088 gl_cv_func_mbrtowc_sanitycheck=no
15090 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15091 conftest.$ac_objext conftest.beam conftest.$ac_ext
15097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
15098 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
15100 REPLACE_MBSTATE_T=0
15101 case "$gl_cv_func_mbrtowc_incomplete_state" in
15103 *) REPLACE_MBSTATE_T=1 ;;
15105 case "$gl_cv_func_mbrtowc_sanitycheck" in
15107 *) REPLACE_MBSTATE_T=1 ;;
15110 REPLACE_MBSTATE_T=1
15115 if test $ac_cv_func_mbrtowc = no; then
15117 ac_fn_c_check_decl "$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" "
15118 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15120 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15121 included before <wchar.h>. */
15122 #include <stddef.h>
15128 if test "x$ac_cv_have_decl_mbrtowc" = x""yes; then :
15134 cat >>confdefs.h <<_ACEOF
15135 #define HAVE_DECL_MBRTOWC $ac_have_decl
15138 if test $ac_cv_have_decl_mbrtowc = yes; then
15142 if test $REPLACE_MBSTATE_T = 1; then
15148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL pwc argument" >&5
15149 $as_echo_n "checking whether mbrtowc handles a NULL pwc argument... " >&6; }
15150 if test "${gl_cv_func_mbrtowc_null_arg1+set}" = set; then :
15151 $as_echo_n "(cached) " >&6
15155 # Guess no on Solaris.
15156 solaris*) gl_cv_func_mbrtowc_null_arg1="guessing no" ;;
15157 # Guess yes otherwise.
15158 *) gl_cv_func_mbrtowc_null_arg1="guessing yes" ;;
15160 if test $LOCALE_FR_UTF8 != none; then
15161 if test "$cross_compiling" = yes; then :
15164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15165 /* end confdefs.h. */
15167 #include <locale.h>
15168 #include <stdlib.h>
15169 #include <string.h>
15170 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15172 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15173 included before <wchar.h>. */
15174 #include <stddef.h>
15182 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
15184 char input[] = "\303\237er";
15189 memset (&state, '\0', sizeof (mbstate_t));
15190 wc = (wchar_t) 0xBADFACE;
15191 ret = mbrtowc (&wc, input, 5, &state);
15194 if (!mbsinit (&state))
15197 memset (&state, '\0', sizeof (mbstate_t));
15198 ret = mbrtowc (NULL, input, 5, &state);
15199 if (ret != 2) /* Solaris 7 fails here: ret is -1. */
15201 if (!mbsinit (&state))
15207 if ac_fn_c_try_run "$LINENO"; then :
15208 gl_cv_func_mbrtowc_null_arg1=yes
15210 gl_cv_func_mbrtowc_null_arg1=no
15212 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15213 conftest.$ac_objext conftest.beam conftest.$ac_ext
15219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg1" >&5
15220 $as_echo "$gl_cv_func_mbrtowc_null_arg1" >&6; }
15225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
15226 $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
15227 if test "${gl_cv_func_mbrtowc_null_arg2+set}" = set; then :
15228 $as_echo_n "(cached) " >&6
15232 # Guess no on OSF/1.
15233 osf*) gl_cv_func_mbrtowc_null_arg2="guessing no" ;;
15234 # Guess yes otherwise.
15235 *) gl_cv_func_mbrtowc_null_arg2="guessing yes" ;;
15237 if test $LOCALE_FR_UTF8 != none; then
15238 if test "$cross_compiling" = yes; then :
15241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15242 /* end confdefs.h. */
15244 #include <locale.h>
15245 #include <string.h>
15246 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15248 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15249 included before <wchar.h>. */
15250 #include <stddef.h>
15256 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
15262 memset (&state, '\0', sizeof (mbstate_t));
15263 wc = (wchar_t) 0xBADFACE;
15264 mbrtowc (&wc, NULL, 5, &state);
15265 /* Check that wc was not modified. */
15266 if (wc != (wchar_t) 0xBADFACE)
15272 if ac_fn_c_try_run "$LINENO"; then :
15273 gl_cv_func_mbrtowc_null_arg2=yes
15275 gl_cv_func_mbrtowc_null_arg2=no
15277 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15278 conftest.$ac_objext conftest.beam conftest.$ac_ext
15284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg2" >&5
15285 $as_echo "$gl_cv_func_mbrtowc_null_arg2" >&6; }
15292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
15293 $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
15294 if test "${gl_cv_func_mbrtowc_retval+set}" = set; then :
15295 $as_echo_n "(cached) " >&6
15299 # Guess no on HP-UX, Solaris, native Windows.
15300 hpux* | solaris* | mingw*) gl_cv_func_mbrtowc_retval="guessing no" ;;
15301 # Guess yes otherwise.
15302 *) gl_cv_func_mbrtowc_retval="guessing yes" ;;
15304 if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none \
15305 || { case "$host_os" in mingw*) true;; *) false;; esac; }; then
15306 if test "$cross_compiling" = yes; then :
15309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15310 /* end confdefs.h. */
15312 #include <locale.h>
15313 #include <string.h>
15314 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15316 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15317 included before <wchar.h>. */
15318 #include <stddef.h>
15325 int found_some_locale = 0;
15326 /* This fails on Solaris. */
15327 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
15329 char input[] = "B\303\274\303\237er"; /* "Büßer" */
15333 memset (&state, '\0', sizeof (mbstate_t));
15334 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
15337 if (mbrtowc (&wc, input + 2, 5, &state) != 1)
15340 found_some_locale = 1;
15342 /* This fails on HP-UX 11.11. */
15343 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
15345 char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
15349 memset (&state, '\0', sizeof (mbstate_t));
15350 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
15353 if (mbrtowc (&wc, input + 2, 5, &state) != 2)
15356 found_some_locale = 1;
15358 /* This fails on native Windows. */
15359 if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
15361 char input[] = "<\223\372\226\173\214\352>"; /* "<日本語>" */
15365 memset (&state, '\0', sizeof (mbstate_t));
15366 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
15369 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
15372 found_some_locale = 1;
15374 if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
15376 char input[] = "<\244\351\245\273\273\171>"; /* "<日本語>" */
15380 memset (&state, '\0', sizeof (mbstate_t));
15381 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
15384 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
15387 found_some_locale = 1;
15389 if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
15391 char input[] = "<\310\325\261\276\325\132>"; /* "<日本語>" */
15395 memset (&state, '\0', sizeof (mbstate_t));
15396 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
15399 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
15402 found_some_locale = 1;
15404 return (found_some_locale ? result : 77);
15407 if ac_fn_c_try_run "$LINENO"; then :
15408 gl_cv_func_mbrtowc_retval=yes
15410 if test $? != 77; then
15411 gl_cv_func_mbrtowc_retval=no
15415 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15416 conftest.$ac_objext conftest.beam conftest.$ac_ext
15422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
15423 $as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
15428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
15429 $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
15430 if test "${gl_cv_func_mbrtowc_nul_retval+set}" = set; then :
15431 $as_echo_n "(cached) " >&6
15435 # Guess no on Solaris 8 and 9.
15436 solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
15437 # Guess yes otherwise.
15438 *) gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
15440 if test $LOCALE_ZH_CN != none; then
15441 if test "$cross_compiling" = yes; then :
15444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15445 /* end confdefs.h. */
15447 #include <locale.h>
15448 #include <string.h>
15449 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15451 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15452 included before <wchar.h>. */
15453 #include <stddef.h>
15459 /* This fails on Solaris 8 and 9. */
15460 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
15465 memset (&state, '\0', sizeof (mbstate_t));
15466 if (mbrtowc (&wc, "", 1, &state) != 0)
15472 if ac_fn_c_try_run "$LINENO"; then :
15473 gl_cv_func_mbrtowc_nul_retval=yes
15475 gl_cv_func_mbrtowc_nul_retval=no
15477 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15478 conftest.$ac_objext conftest.beam conftest.$ac_ext
15484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
15485 $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
15489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works on empty input" >&5
15490 $as_echo_n "checking whether mbrtowc works on empty input... " >&6; }
15491 if test "${gl_cv_func_mbrtowc_empty_input+set}" = set; then :
15492 $as_echo_n "(cached) " >&6
15496 # Guess no on AIX and glibc systems.
15498 gl_cv_func_mbrtowc_empty_input="guessing no" ;;
15499 *) gl_cv_func_mbrtowc_empty_input="guessing yes" ;;
15501 if test "$cross_compiling" = yes; then :
15504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15505 /* end confdefs.h. */
15509 static mbstate_t mbs;
15513 return mbrtowc (&wc, "", 0, &mbs) != (size_t) -2;
15516 if ac_fn_c_try_run "$LINENO"; then :
15517 gl_cv_func_mbrtowc_empty_input=yes
15519 gl_cv_func_mbrtowc_empty_input=no
15521 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15522 conftest.$ac_objext conftest.beam conftest.$ac_ext
15527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_empty_input" >&5
15528 $as_echo "$gl_cv_func_mbrtowc_empty_input" >&6; }
15531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C locale is free of encoding errors" >&5
15532 $as_echo_n "checking whether the C locale is free of encoding errors... " >&6; }
15533 if test "${gl_cv_C_locale_sans_EILSEQ+set}" = set; then :
15534 $as_echo_n "(cached) " >&6
15537 gl_cv_C_locale_sans_EILSEQ="guessing no"
15539 if test "$cross_compiling" = yes; then :
15542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15543 /* end confdefs.h. */
15544 #include <limits.h>
15545 #include <locale.h>
15553 char *locale = setlocale (LC_ALL, "C");
15556 for (i = CHAR_MIN; i <= CHAR_MAX; i++)
15560 mbstate_t mbs = { 0, };
15561 size_t ss = mbrtowc (&wc, &c, 1, &mbs);
15571 if ac_fn_c_try_run "$LINENO"; then :
15572 gl_cv_C_locale_sans_EILSEQ=yes
15574 gl_cv_C_locale_sans_EILSEQ=no
15576 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15577 conftest.$ac_objext conftest.beam conftest.$ac_ext
15581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_C_locale_sans_EILSEQ" >&5
15582 $as_echo "$gl_cv_C_locale_sans_EILSEQ" >&6; }
15584 case "$gl_cv_func_mbrtowc_null_arg1" in
15587 $as_echo "#define MBRTOWC_NULL_ARG1_BUG 1" >>confdefs.h
15592 case "$gl_cv_func_mbrtowc_null_arg2" in
15595 $as_echo "#define MBRTOWC_NULL_ARG2_BUG 1" >>confdefs.h
15600 case "$gl_cv_func_mbrtowc_retval" in
15603 $as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
15608 case "$gl_cv_func_mbrtowc_nul_retval" in
15611 $as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
15616 case "$gl_cv_func_mbrtowc_empty_input" in
15619 $as_echo "#define MBRTOWC_EMPTY_INPUT_BUG 1" >>confdefs.h
15624 case $gl_cv_C_locale_sans_EILSEQ in
15627 $as_echo "#define C_LOCALE_MAYBE_EILSEQ 1" >>confdefs.h
15635 if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
15644 gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext"
15661 $as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
15676 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
15680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
15681 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
15682 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
15683 $as_echo_n "(cached) " >&6
15687 # Guess no on AIX and OSF/1.
15688 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
15689 # Guess yes otherwise.
15690 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
15692 if test $LOCALE_JA != none; then
15693 if test "$cross_compiling" = yes; then :
15696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15697 /* end confdefs.h. */
15699 #include <locale.h>
15700 #include <string.h>
15701 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15703 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15704 included before <wchar.h>. */
15705 #include <stddef.h>
15711 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
15713 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
15717 memset (&state, '\0', sizeof (mbstate_t));
15718 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
15719 if (mbsinit (&state))
15725 if ac_fn_c_try_run "$LINENO"; then :
15726 gl_cv_func_mbrtowc_incomplete_state=yes
15728 gl_cv_func_mbrtowc_incomplete_state=no
15730 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15731 conftest.$ac_objext conftest.beam conftest.$ac_ext
15737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
15738 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
15743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
15744 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
15745 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
15746 $as_echo_n "(cached) " >&6
15750 # Guess no on Solaris 8.
15751 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
15752 # Guess yes otherwise.
15753 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
15755 if test $LOCALE_ZH_CN != none; then
15756 if test "$cross_compiling" = yes; then :
15759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15760 /* end confdefs.h. */
15762 #include <locale.h>
15763 #include <stdlib.h>
15764 #include <string.h>
15765 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15767 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15768 included before <wchar.h>. */
15769 #include <stddef.h>
15775 /* This fails on Solaris 8:
15776 mbrtowc returns 2, and sets wc to 0x00F0.
15777 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
15778 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
15780 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
15784 memset (&state, '\0', sizeof (mbstate_t));
15785 if (mbrtowc (&wc, input + 3, 6, &state) != 4
15786 && mbtowc (&wc, input + 3, 6) == 4)
15792 if ac_fn_c_try_run "$LINENO"; then :
15793 gl_cv_func_mbrtowc_sanitycheck=yes
15795 gl_cv_func_mbrtowc_sanitycheck=no
15797 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15798 conftest.$ac_objext conftest.beam conftest.$ac_ext
15804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
15805 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
15807 REPLACE_MBSTATE_T=0
15808 case "$gl_cv_func_mbrtowc_incomplete_state" in
15810 *) REPLACE_MBSTATE_T=1 ;;
15812 case "$gl_cv_func_mbrtowc_sanitycheck" in
15814 *) REPLACE_MBSTATE_T=1 ;;
15817 REPLACE_MBSTATE_T=1
15822 if test $ac_cv_func_mbsinit = no; then
15824 ac_fn_c_check_decl "$LINENO" "mbsinit" "ac_cv_have_decl_mbsinit" "
15825 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15827 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15828 included before <wchar.h>. */
15829 #include <stddef.h>
15835 if test "x$ac_cv_have_decl_mbsinit" = x""yes; then :
15841 cat >>confdefs.h <<_ACEOF
15842 #define HAVE_DECL_MBSINIT $ac_have_decl
15845 if test $ac_cv_have_decl_mbsinit = yes; then
15849 if test $REPLACE_MBSTATE_T = 1; then
15853 mingw*) REPLACE_MBSINIT=1 ;;
15858 if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
15867 gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext"
15884 $as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
15898 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
15902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
15903 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
15904 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
15905 $as_echo_n "(cached) " >&6
15909 # Guess no on AIX and OSF/1.
15910 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
15911 # Guess yes otherwise.
15912 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
15914 if test $LOCALE_JA != none; then
15915 if test "$cross_compiling" = yes; then :
15918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15919 /* end confdefs.h. */
15921 #include <locale.h>
15922 #include <string.h>
15923 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15925 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15926 included before <wchar.h>. */
15927 #include <stddef.h>
15933 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
15935 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
15939 memset (&state, '\0', sizeof (mbstate_t));
15940 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
15941 if (mbsinit (&state))
15947 if ac_fn_c_try_run "$LINENO"; then :
15948 gl_cv_func_mbrtowc_incomplete_state=yes
15950 gl_cv_func_mbrtowc_incomplete_state=no
15952 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15953 conftest.$ac_objext conftest.beam conftest.$ac_ext
15959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
15960 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
15965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
15966 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
15967 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
15968 $as_echo_n "(cached) " >&6
15972 # Guess no on Solaris 8.
15973 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
15974 # Guess yes otherwise.
15975 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
15977 if test $LOCALE_ZH_CN != none; then
15978 if test "$cross_compiling" = yes; then :
15981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15982 /* end confdefs.h. */
15984 #include <locale.h>
15985 #include <stdlib.h>
15986 #include <string.h>
15987 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15989 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15990 included before <wchar.h>. */
15991 #include <stddef.h>
15997 /* This fails on Solaris 8:
15998 mbrtowc returns 2, and sets wc to 0x00F0.
15999 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
16000 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
16002 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
16006 memset (&state, '\0', sizeof (mbstate_t));
16007 if (mbrtowc (&wc, input + 3, 6, &state) != 4
16008 && mbtowc (&wc, input + 3, 6) == 4)
16014 if ac_fn_c_try_run "$LINENO"; then :
16015 gl_cv_func_mbrtowc_sanitycheck=yes
16017 gl_cv_func_mbrtowc_sanitycheck=no
16019 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16020 conftest.$ac_objext conftest.beam conftest.$ac_ext
16026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
16027 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
16029 REPLACE_MBSTATE_T=0
16030 case "$gl_cv_func_mbrtowc_incomplete_state" in
16032 *) REPLACE_MBSTATE_T=1 ;;
16034 case "$gl_cv_func_mbrtowc_sanitycheck" in
16036 *) REPLACE_MBSTATE_T=1 ;;
16039 REPLACE_MBSTATE_T=1
16044 if test $ac_cv_func_mbsrtowcs = no; then
16046 ac_fn_c_check_decl "$LINENO" "mbsrtowcs" "ac_cv_have_decl_mbsrtowcs" "
16047 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
16049 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16050 included before <wchar.h>. */
16051 #include <stddef.h>
16057 if test "x$ac_cv_have_decl_mbsrtowcs" = x""yes; then :
16063 cat >>confdefs.h <<_ACEOF
16064 #define HAVE_DECL_MBSRTOWCS $ac_have_decl
16067 if test $ac_cv_have_decl_mbsrtowcs = yes; then
16068 REPLACE_MBSRTOWCS=1
16071 if test $REPLACE_MBSTATE_T = 1; then
16072 REPLACE_MBSRTOWCS=1
16080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbsrtowcs works" >&5
16081 $as_echo_n "checking whether mbsrtowcs works... " >&6; }
16082 if test "${gl_cv_func_mbsrtowcs_works+set}" = set; then :
16083 $as_echo_n "(cached) " >&6
16087 # Guess no on HP-UX, Solaris, mingw.
16088 hpux* | solaris* | mingw*) gl_cv_func_mbsrtowcs_works="guessing no" ;;
16089 # Guess yes otherwise.
16090 *) gl_cv_func_mbsrtowcs_works="guessing yes" ;;
16092 if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
16093 if test "$cross_compiling" = yes; then :
16096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16097 /* end confdefs.h. */
16099 #include <locale.h>
16100 #include <string.h>
16101 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
16103 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16104 included before <wchar.h>. */
16105 #include <stddef.h>
16112 /* Test whether the function supports a NULL destination argument.
16113 This fails on native Windows. */
16114 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
16116 const char input[] = "\337er";
16117 const char *src = input;
16120 memset (&state, '\0', sizeof (mbstate_t));
16121 if (mbsrtowcs (NULL, &src, 1, &state) != 3
16125 /* Test whether the function works when started with a conversion state
16126 in non-initial state. This fails on HP-UX 11.11 and Solaris 10. */
16127 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
16129 const char input[] = "B\303\274\303\237er";
16132 memset (&state, '\0', sizeof (mbstate_t));
16133 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
16134 if (!mbsinit (&state))
16136 const char *src = input + 2;
16137 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
16141 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
16143 const char input[] = "<\306\374\313\334\270\354>";
16146 memset (&state, '\0', sizeof (mbstate_t));
16147 if (mbrtowc (NULL, input + 3, 1, &state) == (size_t)(-2))
16148 if (!mbsinit (&state))
16150 const char *src = input + 4;
16151 if (mbsrtowcs (NULL, &src, 10, &state) != 3)
16155 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
16157 const char input[] = "B\250\271\201\060\211\070er";
16160 memset (&state, '\0', sizeof (mbstate_t));
16161 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
16162 if (!mbsinit (&state))
16164 const char *src = input + 2;
16165 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
16172 if ac_fn_c_try_run "$LINENO"; then :
16173 gl_cv_func_mbsrtowcs_works=yes
16175 gl_cv_func_mbsrtowcs_works=no
16177 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16178 conftest.$ac_objext conftest.beam conftest.$ac_ext
16184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbsrtowcs_works" >&5
16185 $as_echo "$gl_cv_func_mbsrtowcs_works" >&6; }
16187 case "$gl_cv_func_mbsrtowcs_works" in
16189 *) REPLACE_MBSRTOWCS=1 ;;
16194 if test $HAVE_MBSRTOWCS = 0 || test $REPLACE_MBSRTOWCS = 1; then
16203 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs.$ac_objext"
16213 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs-state.$ac_objext"
16230 $as_echo "#define GNULIB_TEST_MBSRTOWCS 1" >>confdefs.h
16235 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
16244 gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
16247 for ac_header in bp-sym.h
16249 ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
16250 if test "x$ac_cv_header_bp_sym_h" = x""yes; then :
16251 cat >>confdefs.h <<_ACEOF
16252 #define HAVE_BP_SYM_H 1
16272 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
16278 if test $HAVE_DECL_MEMMEM = 1 && test $REPLACE_MEMMEM = 0; then
16279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
16280 $as_echo_n "checking whether memmem works in linear time... " >&6; }
16281 if test "${gl_cv_func_memmem_works_fast+set}" = set; then :
16282 $as_echo_n "(cached) " >&6
16284 if test "$cross_compiling" = yes; then :
16285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16286 /* end confdefs.h. */
16288 #include <features.h>
16289 #ifdef __GNU_LIBRARY__
16290 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)) \
16291 && !defined __UCLIBC__
16296 #include <cygwin/version.h>
16297 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 0)
16303 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16304 $EGREP "Lucky user" >/dev/null 2>&1; then :
16305 gl_cv_func_memmem_works_fast="guessing yes"
16307 gl_cv_func_memmem_works_fast="guessing no"
16313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16314 /* end confdefs.h. */
16316 #include <signal.h> /* for signal */
16317 #include <string.h> /* for memmem */
16318 #include <stdlib.h> /* for malloc */
16319 #include <unistd.h> /* for alarm */
16320 static void quit (int sig) { _exit (sig + 128); }
16327 size_t m = 1000000;
16328 char *haystack = (char *) malloc (2 * m + 1);
16329 char *needle = (char *) malloc (m + 1);
16330 /* Failure to compile this test due to missing alarm is okay,
16331 since all such platforms (mingw) also lack memmem. */
16332 signal (SIGALRM, quit);
16334 /* Check for quadratic performance. */
16335 if (haystack && needle)
16337 memset (haystack, 'A', 2 * m);
16338 haystack[2 * m] = 'B';
16339 memset (needle, 'A', m);
16341 if (!memmem (haystack, 2 * m + 1, needle, m + 1))
16350 if ac_fn_c_try_run "$LINENO"; then :
16351 gl_cv_func_memmem_works_fast=yes
16353 gl_cv_func_memmem_works_fast=no
16355 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16356 conftest.$ac_objext conftest.beam conftest.$ac_ext
16361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_fast" >&5
16362 $as_echo "$gl_cv_func_memmem_works_fast" >&6; }
16363 case "$gl_cv_func_memmem_works_fast" in
16371 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
16380 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
16387 for ac_func in memmem
16389 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
16390 if test "x$ac_cv_func_memmem" = x""yes; then :
16391 cat >>confdefs.h <<_ACEOF
16392 #define HAVE_MEMMEM 1
16398 if test $ac_cv_func_memmem = yes; then
16404 if test $ac_cv_have_decl_memmem = no; then
16407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
16408 $as_echo_n "checking whether memmem works... " >&6; }
16409 if test "${gl_cv_func_memmem_works_always+set}" = set; then :
16410 $as_echo_n "(cached) " >&6
16412 if test "$cross_compiling" = yes; then :
16413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16414 /* end confdefs.h. */
16416 #ifdef __GNU_LIBRARY__
16417 #include <features.h>
16418 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
16419 || __GLIBC_MINOR__ > 12)) \
16420 || (__GLIBC__ > 2)) \
16421 || defined __UCLIBC__
16424 #elif defined __CYGWIN__
16425 #include <cygwin/version.h>
16426 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
16434 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16435 $EGREP "Lucky user" >/dev/null 2>&1; then :
16436 gl_cv_func_memmem_works_always="guessing yes"
16438 gl_cv_func_memmem_works_always="guessing no"
16444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16445 /* end confdefs.h. */
16447 #include <string.h> /* for memmem */
16448 #define P "_EF_BF_BD"
16449 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
16450 #define NEEDLE P P P P P
16457 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
16459 /* Check for empty needle behavior. */
16461 const char *haystack = "AAA";
16462 if (memmem (haystack, 3, NULL, 0) != haystack)
16471 if ac_fn_c_try_run "$LINENO"; then :
16472 gl_cv_func_memmem_works_always=yes
16474 gl_cv_func_memmem_works_always=no
16476 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16477 conftest.$ac_objext conftest.beam conftest.$ac_ext
16482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
16483 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
16484 case "$gl_cv_func_memmem_works_always" in
16493 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
16502 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
16516 $as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
16528 for ac_func in rawmemchr
16530 ac_fn_c_check_func "$LINENO" "rawmemchr" "ac_cv_func_rawmemchr"
16531 if test "x$ac_cv_func_rawmemchr" = x""yes; then :
16532 cat >>confdefs.h <<_ACEOF
16533 #define HAVE_RAWMEMCHR 1
16539 if test $ac_cv_func_rawmemchr = no; then
16543 if test $HAVE_RAWMEMCHR = 0; then
16552 gl_LIBOBJS="$gl_LIBOBJS rawmemchr.$ac_objext"
16567 $as_echo "#define GNULIB_TEST_RAWMEMCHR 1" >>confdefs.h
16574 if test $ac_cv_func_readlink = no; then
16577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
16578 $as_echo_n "checking whether readlink signature is correct... " >&6; }
16579 if test "${gl_cv_decl_readlink_works+set}" = set; then :
16580 $as_echo_n "(cached) " >&6
16582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16583 /* end confdefs.h. */
16584 #include <unistd.h>
16585 /* Cause compilation failure if original declaration has wrong type. */
16586 ssize_t readlink (const char *, char *, size_t);
16595 if ac_fn_c_try_compile "$LINENO"; then :
16596 gl_cv_decl_readlink_works=yes
16598 gl_cv_decl_readlink_works=no
16600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
16603 $as_echo "$gl_cv_decl_readlink_works" >&6; }
16604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
16605 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
16606 if test "${gl_cv_func_readlink_works+set}" = set; then :
16607 $as_echo_n "(cached) " >&6
16609 # We have readlink, so assume ln -s works.
16610 ln -s conftest.no-such conftest.link
16611 ln -s conftest.link conftest.lnk2
16612 if test "$cross_compiling" = yes; then :
16614 # Guess yes on glibc systems.
16615 *-gnu*) gl_cv_func_readlink_works="guessing yes" ;;
16616 # If we don't know, assume the worst.
16617 *) gl_cv_func_readlink_works="guessing no" ;;
16621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16622 /* end confdefs.h. */
16623 #include <unistd.h>
16629 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
16634 if ac_fn_c_try_run "$LINENO"; then :
16635 gl_cv_func_readlink_works=yes
16637 gl_cv_func_readlink_works=no
16639 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16640 conftest.$ac_objext conftest.beam conftest.$ac_ext
16643 rm -f conftest.link conftest.lnk2
16645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
16646 $as_echo "$gl_cv_func_readlink_works" >&6; }
16647 case "$gl_cv_func_readlink_works" in
16649 if test "$gl_cv_decl_readlink_works" != yes; then
16655 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
16662 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
16671 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
16688 $as_echo "#define GNULIB_TEST_READLINK 1" >>confdefs.h
16697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename honors trailing slash on destination" >&5
16698 $as_echo_n "checking whether rename honors trailing slash on destination... " >&6; }
16699 if test "${gl_cv_func_rename_slash_dst_works+set}" = set; then :
16700 $as_echo_n "(cached) " >&6
16702 rm -rf conftest.f conftest.f1 conftest.f2 conftest.d1 conftest.d2 conftest.lnk
16703 touch conftest.f && touch conftest.f1 && mkdir conftest.d1 ||
16704 as_fn_error "cannot create temporary files" "$LINENO" 5
16705 # Assume that if we have lstat, we can also check symlinks.
16706 if test $ac_cv_func_lstat = yes; then
16707 ln -s conftest.f conftest.lnk
16709 if test "$cross_compiling" = yes; then :
16711 # Guess yes on glibc systems.
16712 *-gnu*) gl_cv_func_rename_slash_dst_works="guessing yes" ;;
16713 # If we don't know, assume the worst.
16714 *) gl_cv_func_rename_slash_dst_works="guessing no" ;;
16718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16719 /* end confdefs.h. */
16721 # include <stdio.h>
16722 # include <stdlib.h>
16728 if (rename ("conftest.f1", "conftest.f2/") == 0)
16730 if (rename ("conftest.d1", "conftest.d2/") != 0)
16733 if (rename ("conftest.f", "conftest.lnk/") == 0)
16742 if ac_fn_c_try_run "$LINENO"; then :
16743 gl_cv_func_rename_slash_dst_works=yes
16745 gl_cv_func_rename_slash_dst_works=no
16747 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16748 conftest.$ac_objext conftest.beam conftest.$ac_ext
16751 rm -rf conftest.f conftest.f1 conftest.f2 conftest.d1 conftest.d2 conftest.lnk
16754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_slash_dst_works" >&5
16755 $as_echo "$gl_cv_func_rename_slash_dst_works" >&6; }
16756 case "$gl_cv_func_rename_slash_dst_works" in
16761 $as_echo "#define RENAME_TRAILING_SLASH_DEST_BUG 1" >>confdefs.h
16766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename honors trailing slash on source" >&5
16767 $as_echo_n "checking whether rename honors trailing slash on source... " >&6; }
16768 if test "${gl_cv_func_rename_slash_src_works+set}" = set; then :
16769 $as_echo_n "(cached) " >&6
16771 rm -rf conftest.f conftest.f1 conftest.d1 conftest.d2 conftest.d3 conftest.lnk
16772 touch conftest.f && touch conftest.f1 && mkdir conftest.d1 ||
16773 as_fn_error "cannot create temporary files" "$LINENO" 5
16774 # Assume that if we have lstat, we can also check symlinks.
16775 if test $ac_cv_func_lstat = yes; then
16776 ln -s conftest.f conftest.lnk
16778 if test "$cross_compiling" = yes; then :
16780 # Guess yes on glibc systems.
16781 *-gnu*) gl_cv_func_rename_slash_src_works="guessing yes" ;;
16782 # If we don't know, assume the worst.
16783 *) gl_cv_func_rename_slash_src_works="guessing no" ;;
16787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16788 /* end confdefs.h. */
16790 # include <stdio.h>
16791 # include <stdlib.h>
16797 if (rename ("conftest.f1/", "conftest.d3") == 0)
16799 if (rename ("conftest.d1/", "conftest.d2") != 0)
16802 if (rename ("conftest.lnk/", "conftest.f") == 0)
16811 if ac_fn_c_try_run "$LINENO"; then :
16812 gl_cv_func_rename_slash_src_works=yes
16814 gl_cv_func_rename_slash_src_works=no
16816 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16817 conftest.$ac_objext conftest.beam conftest.$ac_ext
16820 rm -rf conftest.f conftest.f1 conftest.d1 conftest.d2 conftest.d3 conftest.lnk
16823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_slash_src_works" >&5
16824 $as_echo "$gl_cv_func_rename_slash_src_works" >&6; }
16825 case "$gl_cv_func_rename_slash_src_works" in
16830 $as_echo "#define RENAME_TRAILING_SLASH_SOURCE_BUG 1" >>confdefs.h
16836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename manages hard links correctly" >&5
16837 $as_echo_n "checking whether rename manages hard links correctly... " >&6; }
16838 if test "${gl_cv_func_rename_link_works+set}" = set; then :
16839 $as_echo_n "(cached) " >&6
16841 if test $ac_cv_func_link = yes; then
16842 rm -rf conftest.f conftest.f1
16843 if touch conftest.f && ln conftest.f conftest.f1 &&
16844 set x `ls -i conftest.f conftest.f1
` && test "" = ""; then
16845 if test "$cross_compiling" = yes; then :
16847 # Guess yes on glibc systems.
16848 *-gnu*) gl_cv_func_rename_link_works="guessing yes" ;;
16849 # If we don't know, assume the worst.
16850 *) gl_cv_func_rename_link_works="guessing no" ;;
16854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16855 /* end confdefs.h. */
16857 # include <stdio.h>
16858 # include <stdlib.h>
16859 # include <unistd.h>
16865 if (rename ("conftest.f", "conftest.f1"))
16867 if (unlink ("conftest.f1"))
16869 if (rename ("conftest.f", "conftest.f"))
16871 if (rename ("conftest.f1", "conftest.f1") == 0)
16879 if ac_fn_c_try_run "$LINENO"; then :
16880 gl_cv_func_rename_link_works=yes
16882 gl_cv_func_rename_link_works=no
16884 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16885 conftest.$ac_objext conftest.beam conftest.$ac_ext
16889 gl_cv_func_rename_link_works="guessing no"
16891 rm -rf conftest.f conftest.f1
16893 gl_cv_func_rename_link_works=yes
16897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_link_works" >&5
16898 $as_echo "$gl_cv_func_rename_link_works" >&6; }
16899 case "$gl_cv_func_rename_link_works" in
16904 $as_echo "#define RENAME_HARD_LINK_BUG 1" >>confdefs.h
16909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename manages existing destinations correctly" >&5
16910 $as_echo_n "checking whether rename manages existing destinations correctly... " >&6; }
16911 if test "${gl_cv_func_rename_dest_works+set}" = set; then :
16912 $as_echo_n "(cached) " >&6
16914 rm -rf conftest.f conftest.d1 conftest.d2
16915 touch conftest.f && mkdir conftest.d1 conftest.d2 ||
16916 as_fn_error "cannot create temporary files" "$LINENO" 5
16917 if test "$cross_compiling" = yes; then :
16919 # Guess yes on glibc systems.
16920 *-gnu*) gl_cv_func_rename_dest_works="guessing yes" ;;
16921 # If we don't know, assume the worst.
16922 *) gl_cv_func_rename_dest_works="guessing no" ;;
16926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16927 /* end confdefs.h. */
16929 # include <stdio.h>
16930 # include <stdlib.h>
16936 if (rename ("conftest.d1", "conftest.d2") != 0)
16938 if (rename ("conftest.d2", "conftest.f") == 0)
16946 if ac_fn_c_try_run "$LINENO"; then :
16947 gl_cv_func_rename_dest_works=yes
16949 gl_cv_func_rename_dest_works=no
16951 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16952 conftest.$ac_objext conftest.beam conftest.$ac_ext
16955 rm -rf conftest.f conftest.d1 conftest.d2
16958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_dest_works" >&5
16959 $as_echo "$gl_cv_func_rename_dest_works" >&6; }
16960 case "$gl_cv_func_rename_dest_works" in
16965 $as_echo "#define RENAME_DEST_EXISTS_BUG 1" >>confdefs.h
16970 if test $REPLACE_RENAME = 1; then
16979 gl_LIBOBJS="$gl_LIBOBJS rename.$ac_objext"
16993 $as_echo "#define GNULIB_TEST_RENAME 1" >>confdefs.h
17000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rmdir works" >&5
17001 $as_echo_n "checking whether rmdir works... " >&6; }
17002 if test "${gl_cv_func_rmdir_works+set}" = set; then :
17003 $as_echo_n "(cached) " >&6
17006 touch conftest.file
17007 if test "$cross_compiling" = yes; then :
17009 # Guess yes on glibc systems.
17010 *-gnu*) gl_cv_func_rmdir_works="guessing yes" ;;
17011 # If we don't know, assume the worst.
17012 *) gl_cv_func_rmdir_works="guessing no" ;;
17016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17017 /* end confdefs.h. */
17021 # include <unistd.h>
17022 #else /* on Windows with MSVC */
17023 # include <direct.h>
17030 if (!rmdir ("conftest.file/"))
17032 else if (errno != ENOTDIR)
17034 if (!rmdir ("conftest.dir/./"))
17042 if ac_fn_c_try_run "$LINENO"; then :
17043 gl_cv_func_rmdir_works=yes
17045 gl_cv_func_rmdir_works=no
17047 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17048 conftest.$ac_objext conftest.beam conftest.$ac_ext
17051 rm -rf conftest.dir conftest.file
17053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rmdir_works" >&5
17054 $as_echo "$gl_cv_func_rmdir_works" >&6; }
17055 case "$gl_cv_func_rmdir_works" in
17062 if test $REPLACE_RMDIR = 1; then
17071 gl_LIBOBJS="$gl_LIBOBJS rmdir.$ac_objext"
17085 $as_echo "#define GNULIB_TEST_RMDIR 1" >>confdefs.h
17100 if test $gl_cv_have_include_next = yes; then
17101 gl_cv_next_signal_h='<'signal.h'>'
17103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
17104 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
17105 if test "${gl_cv_next_signal_h+set}" = set; then :
17106 $as_echo_n "(cached) " >&6
17111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17112 /* end confdefs.h. */
17113 #include <signal.h>
17116 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17117 *) gl_absname_cpp="$ac_cpp" ;;
17122 gl_dirsep_regex='[/\\]'
17125 gl_dirsep_regex='\/'
17128 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17129 gl_header_literal_regex=`echo 'signal.h' \
17130 |
sed -e "$gl_make_literal_regex_sed"`
17131 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17132 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17138 gl_cv_absolute_signal_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17139 sed -n "$gl_absolute_header_sed"`
17141 gl_header=$gl_cv_absolute_signal_h
17142 gl_cv_next_signal_h='"'$gl_header'"'
17146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
17147 $as_echo "$gl_cv_next_signal_h" >&6; }
17149 NEXT_SIGNAL_H=$gl_cv_next_signal_h
17151 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17152 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17153 gl_next_as_first_directive='<'signal.h'>'
17155 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17156 gl_next_as_first_directive=$gl_cv_next_signal_h
17158 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
17164 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
17165 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
17166 ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
17167 #include <signal.h>
17170 if test "x$ac_cv_type_volatile_sig_atomic_t" = x""yes; then :
17173 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
17182 ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
17183 #include <signal.h>
17186 if test "x$ac_cv_type_sighandler_t" = x""yes; then :
17189 HAVE_SIGHANDLER_T=0
17194 for gl_func in pthread_sigmask sigaction sigaddset sigdelset sigemptyset sigfillset sigismember sigpending sigprocmask; do
17195 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
17196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
17197 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
17198 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
17199 $as_echo_n "(cached) " >&6
17201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17202 /* end confdefs.h. */
17203 #include <signal.h>
17214 if ac_fn_c_try_compile "$LINENO"; then :
17215 eval "$as_gl_Symbol=yes"
17217 eval "$as_gl_Symbol=no"
17219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17221 eval ac_res=\$$as_gl_Symbol
17222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17223 $as_echo "$ac_res" >&6; }
17224 eval as_val=\$$as_gl_Symbol
17225 if test "x$as_val" = x""yes; then :
17226 cat >>confdefs.h <<_ACEOF
17227 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
17230 eval ac_cv_have_decl_$gl_func=yes
17236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
17237 $as_echo_n "checking for ssize_t... " >&6; }
17238 if test "${gt_cv_ssize_t+set}" = set; then :
17239 $as_echo_n "(cached) " >&6
17241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17242 /* end confdefs.h. */
17243 #include <sys/types.h>
17247 int x = sizeof (ssize_t *) + sizeof (ssize_t);
17253 if ac_fn_c_try_compile "$LINENO"; then :
17258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
17261 $as_echo "$gt_cv_ssize_t" >&6; }
17262 if test $gt_cv_ssize_t = no; then
17264 $as_echo "#define ssize_t int" >>confdefs.h
17271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
17272 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
17273 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
17274 $as_echo_n "(cached) " >&6
17276 if test "$cross_compiling" = yes; then :
17278 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
17279 *) gl_cv_func_stat_dir_slash="guessing yes";;
17282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17283 /* end confdefs.h. */
17284 #include <sys/stat.h>
17289 struct stat st; return stat (".", &st) != stat ("./", &st);
17294 if ac_fn_c_try_run "$LINENO"; then :
17295 gl_cv_func_stat_dir_slash=yes
17297 gl_cv_func_stat_dir_slash=no
17299 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17300 conftest.$ac_objext conftest.beam conftest.$ac_ext
17304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
17305 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
17306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
17307 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
17308 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
17309 $as_echo_n "(cached) " >&6
17312 # Assume that if we have lstat, we can also check symlinks.
17313 if test $ac_cv_func_lstat = yes; then
17314 ln -s conftest.tmp conftest.lnk
17316 if test "$cross_compiling" = yes; then :
17318 # Guess yes on glibc systems.
17319 *-gnu*) gl_cv_func_stat_file_slash="guessing yes" ;;
17320 # If we don't know, assume the worst.
17321 *) gl_cv_func_stat_file_slash="guessing no" ;;
17325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17326 /* end confdefs.h. */
17327 #include <sys/stat.h>
17334 if (!stat ("conftest.tmp/", &st))
17337 if (!stat ("conftest.lnk/", &st))
17346 if ac_fn_c_try_run "$LINENO"; then :
17347 gl_cv_func_stat_file_slash=yes
17349 gl_cv_func_stat_file_slash=no
17351 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17352 conftest.$ac_objext conftest.beam conftest.$ac_ext
17355 rm -f conftest.tmp conftest.lnk
17357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
17358 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
17359 case $gl_cv_func_stat_dir_slash in
17360 *no) REPLACE_STAT=1
17362 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
17365 case $gl_cv_func_stat_file_slash in
17366 *no) REPLACE_STAT=1
17368 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
17372 if test $REPLACE_STAT = 1; then
17381 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
17396 $as_echo "#define GNULIB_TEST_STAT 1" >>confdefs.h
17403 # Define two additional variables used in the Makefile substitution.
17405 if test "$ac_cv_header_stdbool_h" = yes; then
17408 STDBOOL_H='stdbool.h'
17411 if test -n "$STDBOOL_H"; then
17412 GL_GENERATE_STDBOOL_H_TRUE=
17413 GL_GENERATE_STDBOOL_H_FALSE='#'
17415 GL_GENERATE_STDBOOL_H_TRUE='#'
17416 GL_GENERATE_STDBOOL_H_FALSE=
17420 if test "$ac_cv_type__Bool" = yes; then
17431 ac_fn_c_check_type "$LINENO" "max_align_t" "ac_cv_type_max_align_t" "#include <stddef.h>
17434 if test "x$ac_cv_type_max_align_t" = x""yes; then :
17437 HAVE_MAX_ALIGN_T=0; STDDEF_H=stddef.h
17440 if test $gt_cv_c_wchar_t = no; then
17444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
17445 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
17446 if test "${gl_cv_decl_null_works+set}" = set; then :
17447 $as_echo_n "(cached) " >&6
17449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17450 /* end confdefs.h. */
17451 #include <stddef.h>
17452 int test[2 * (sizeof NULL == sizeof (void *)) -1];
17462 if ac_fn_c_try_compile "$LINENO"; then :
17463 gl_cv_decl_null_works=yes
17465 gl_cv_decl_null_works=no
17467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
17470 $as_echo "$gl_cv_decl_null_works" >&6; }
17471 if test $gl_cv_decl_null_works = no; then
17476 if test -n "$STDDEF_H"; then
17477 GL_GENERATE_STDDEF_H_TRUE=
17478 GL_GENERATE_STDDEF_H_FALSE='#'
17480 GL_GENERATE_STDDEF_H_TRUE='#'
17481 GL_GENERATE_STDDEF_H_FALSE=
17484 if test -n "$STDDEF_H"; then
17493 if test $gl_cv_have_include_next = yes; then
17494 gl_cv_next_stddef_h='<'stddef.h'>'
17496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
17497 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
17498 if test "${gl_cv_next_stddef_h+set}" = set; then :
17499 $as_echo_n "(cached) " >&6
17504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17505 /* end confdefs.h. */
17506 #include <stddef.h>
17509 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17510 *) gl_absname_cpp="$ac_cpp" ;;
17515 gl_dirsep_regex='[/\\]'
17518 gl_dirsep_regex='\/'
17521 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17522 gl_header_literal_regex=`echo 'stddef.h' \
17523 |
sed -e "$gl_make_literal_regex_sed"`
17524 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17525 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17531 gl_cv_absolute_stddef_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17532 sed -n "$gl_absolute_header_sed"`
17534 gl_header=$gl_cv_absolute_stddef_h
17535 gl_cv_next_stddef_h='"'$gl_header'"'
17539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
17540 $as_echo "$gl_cv_next_stddef_h" >&6; }
17542 NEXT_STDDEF_H=$gl_cv_next_stddef_h
17544 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17545 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17546 gl_next_as_first_directive='<'stddef.h'>'
17548 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17549 gl_next_as_first_directive=$gl_cv_next_stddef_h
17551 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
17561 $as_echo "#define __USE_MINGW_ANSI_STDIO 1" >>confdefs.h
17572 if test $gl_cv_have_include_next = yes; then
17573 gl_cv_next_stdio_h='<'stdio.h'>'
17575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
17576 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
17577 if test "${gl_cv_next_stdio_h+set}" = set; then :
17578 $as_echo_n "(cached) " >&6
17583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17584 /* end confdefs.h. */
17588 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17589 *) gl_absname_cpp="$ac_cpp" ;;
17594 gl_dirsep_regex='[/\\]'
17597 gl_dirsep_regex='\/'
17600 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17601 gl_header_literal_regex=`echo 'stdio.h' \
17602 |
sed -e "$gl_make_literal_regex_sed"`
17603 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17604 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17610 gl_cv_absolute_stdio_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17611 sed -n "$gl_absolute_header_sed"`
17613 gl_header=$gl_cv_absolute_stdio_h
17614 gl_cv_next_stdio_h='"'$gl_header'"'
17618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
17619 $as_echo "$gl_cv_next_stdio_h" >&6; }
17621 NEXT_STDIO_H=$gl_cv_next_stdio_h
17623 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17624 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17625 gl_next_as_first_directive='<'stdio.h'>'
17627 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17628 gl_next_as_first_directive=$gl_cv_next_stdio_h
17630 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
17636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which flavor of printf attribute matches inttypes macros" >&5
17637 $as_echo_n "checking which flavor of printf attribute matches inttypes macros... " >&6; }
17638 if test "${gl_cv_func_printf_attribute_flavor+set}" = set; then :
17639 $as_echo_n "(cached) " >&6
17641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17642 /* end confdefs.h. */
17644 #define __STDC_FORMAT_MACROS 1
17646 #include <inttypes.h>
17647 /* For non-mingw systems, compilation will trivially succeed.
17648 For mingw, compilation will succeed for older mingw (system
17649 printf, "I64d") and fail for newer mingw (gnu printf, "lld"). */
17650 #if ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) && \
17651 (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4))
17652 extern char PRIdMAX_probe[sizeof PRIdMAX == sizeof "I64d" ? 1 : -1];
17663 if ac_fn_c_try_compile "$LINENO"; then :
17664 gl_cv_func_printf_attribute_flavor=system
17666 gl_cv_func_printf_attribute_flavor=gnu
17668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_attribute_flavor" >&5
17671 $as_echo "$gl_cv_func_printf_attribute_flavor" >&6; }
17672 if test "$gl_cv_func_printf_attribute_flavor" = gnu; then
17674 $as_echo "#define GNULIB_PRINTF_ATTRIBUTE_FLAVOR_GNU 1" >>confdefs.h
17681 cat >>confdefs.h <<_ACEOF
17682 #define GNULIB_FSCANF 1
17689 cat >>confdefs.h <<_ACEOF
17690 #define GNULIB_SCANF 1
17715 for gl_func in dprintf fpurge fseeko ftello getdelim getline gets pclose popen renameat snprintf tmpfile vdprintf vsnprintf; do
17716 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
17717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
17718 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
17719 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
17720 $as_echo_n "(cached) " >&6
17722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17723 /* end confdefs.h. */
17735 if ac_fn_c_try_compile "$LINENO"; then :
17736 eval "$as_gl_Symbol=yes"
17738 eval "$as_gl_Symbol=no"
17740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17742 eval ac_res=\$$as_gl_Symbol
17743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17744 $as_echo "$ac_res" >&6; }
17745 eval as_val=\$$as_gl_Symbol
17746 if test "x$as_val" = x""yes; then :
17747 cat >>confdefs.h <<_ACEOF
17748 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
17751 eval ac_cv_have_decl_$gl_func=yes
17766 if test $gl_cv_have_include_next = yes; then
17767 gl_cv_next_stdlib_h='<'stdlib.h'>'
17769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
17770 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
17771 if test "${gl_cv_next_stdlib_h+set}" = set; then :
17772 $as_echo_n "(cached) " >&6
17777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17778 /* end confdefs.h. */
17779 #include <stdlib.h>
17782 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17783 *) gl_absname_cpp="$ac_cpp" ;;
17788 gl_dirsep_regex='[/\\]'
17791 gl_dirsep_regex='\/'
17794 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17795 gl_header_literal_regex=`echo 'stdlib.h' \
17796 |
sed -e "$gl_make_literal_regex_sed"`
17797 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17798 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17804 gl_cv_absolute_stdlib_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17805 sed -n "$gl_absolute_header_sed"`
17807 gl_header=$gl_cv_absolute_stdlib_h
17808 gl_cv_next_stdlib_h='"'$gl_header'"'
17812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
17813 $as_echo "$gl_cv_next_stdlib_h" >&6; }
17815 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
17817 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17818 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17819 gl_next_as_first_directive='<'stdlib.h'>'
17821 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17822 gl_next_as_first_directive=$gl_cv_next_stdlib_h
17824 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
17831 for gl_func in _Exit atoll canonicalize_file_name getloadavg getsubopt grantpt initstate initstate_r mkdtemp mkostemp mkostemps mkstemp mkstemps posix_openpt ptsname ptsname_r random random_r realpath rpmatch secure_getenv setenv setstate setstate_r srandom srandom_r strtod strtoll strtoull unlockpt unsetenv; do
17832 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
17833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
17834 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
17835 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
17836 $as_echo_n "(cached) " >&6
17838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17839 /* end confdefs.h. */
17840 #include <stdlib.h>
17841 #if HAVE_SYS_LOADAVG_H
17842 # include <sys/loadavg.h>
17845 # include <random.h>
17857 if ac_fn_c_try_compile "$LINENO"; then :
17858 eval "$as_gl_Symbol=yes"
17860 eval "$as_gl_Symbol=no"
17862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17864 eval ac_res=\$$as_gl_Symbol
17865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17866 $as_echo "$ac_res" >&6; }
17867 eval as_val=\$$as_gl_Symbol
17868 if test "x$as_val" = x""yes; then :
17869 cat >>confdefs.h <<_ACEOF
17870 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
17873 eval ac_cv_have_decl_$gl_func=yes
17882 for ac_func in strchrnul
17884 ac_fn_c_check_func "$LINENO" "strchrnul" "ac_cv_func_strchrnul"
17885 if test "x$ac_cv_func_strchrnul" = x""yes; then :
17886 cat >>confdefs.h <<_ACEOF
17887 #define HAVE_STRCHRNUL 1
17893 if test $ac_cv_func_strchrnul = no; then
17896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strchrnul works" >&5
17897 $as_echo_n "checking whether strchrnul works... " >&6; }
17898 if test "${gl_cv_func_strchrnul_works+set}" = set; then :
17899 $as_echo_n "(cached) " >&6
17901 if test "$cross_compiling" = yes; then :
17902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17903 /* end confdefs.h. */
17905 #if defined __CYGWIN__
17906 #include <cygwin/version.h>
17907 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 9)
17915 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17916 $EGREP "Lucky user" >/dev/null 2>&1; then :
17917 gl_cv_func_strchrnul_works="guessing yes"
17919 gl_cv_func_strchrnul_works="guessing no"
17925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17926 /* end confdefs.h. */
17928 #include <string.h> /* for strchrnul */
17933 const char *buf = "a";
17934 return strchrnul (buf, 'b') != buf + 1;
17940 if ac_fn_c_try_run "$LINENO"; then :
17941 gl_cv_func_strchrnul_works=yes
17943 gl_cv_func_strchrnul_works=no
17945 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17946 conftest.$ac_objext conftest.beam conftest.$ac_ext
17951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strchrnul_works" >&5
17952 $as_echo "$gl_cv_func_strchrnul_works" >&6; }
17953 case "$gl_cv_func_strchrnul_works" in
17955 *) REPLACE_STRCHRNUL=1 ;;
17959 if test $HAVE_STRCHRNUL = 0 || test $REPLACE_STRCHRNUL = 1; then
17968 gl_LIBOBJS="$gl_LIBOBJS strchrnul.$ac_objext"
17983 $as_echo "#define GNULIB_TEST_STRCHRNUL 1" >>confdefs.h
17992 if test $REPLACE_STRSTR = 0; then
17993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works in linear time" >&5
17994 $as_echo_n "checking whether strstr works in linear time... " >&6; }
17995 if test "${gl_cv_func_strstr_linear+set}" = set; then :
17996 $as_echo_n "(cached) " >&6
17998 if test "$cross_compiling" = yes; then :
17999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18000 /* end confdefs.h. */
18002 #include <features.h>
18003 #ifdef __GNU_LIBRARY__
18004 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
18005 && !(defined __i386__ || defined __x86_64__) \
18006 && !defined __UCLIBC__
18011 #include <cygwin/version.h>
18012 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
18018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18019 $EGREP "Lucky user" >/dev/null 2>&1; then :
18020 gl_cv_func_strstr_linear="guessing yes"
18022 gl_cv_func_strstr_linear="guessing no"
18028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18029 /* end confdefs.h. */
18032 /* z/OS does not deliver signals while strstr() is running (thanks to
18033 restrictions on its LE runtime), which prevents us from limiting the
18034 running time of this test. */
18035 # error "This test does not work properly on z/OS"
18037 #include <signal.h> /* for signal */
18038 #include <string.h> /* for strstr */
18039 #include <stdlib.h> /* for malloc */
18040 #include <unistd.h> /* for alarm */
18041 static void quit (int sig) { _exit (sig + 128); }
18048 size_t m = 1000000;
18049 char *haystack = (char *) malloc (2 * m + 2);
18050 char *needle = (char *) malloc (m + 2);
18051 /* Failure to compile this test due to missing alarm is okay,
18052 since all such platforms (mingw) also have quadratic strstr. */
18053 signal (SIGALRM, quit);
18055 /* Check for quadratic performance. */
18056 if (haystack && needle)
18058 memset (haystack, 'A', 2 * m);
18059 haystack[2 * m] = 'B';
18060 haystack[2 * m + 1] = 0;
18061 memset (needle, 'A', m);
18064 if (!strstr (haystack, needle))
18073 if ac_fn_c_try_run "$LINENO"; then :
18074 gl_cv_func_strstr_linear=yes
18076 gl_cv_func_strstr_linear=no
18078 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18079 conftest.$ac_objext conftest.beam conftest.$ac_ext
18084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_linear" >&5
18085 $as_echo "$gl_cv_func_strstr_linear" >&6; }
18086 case "$gl_cv_func_strstr_linear" in
18094 if test $REPLACE_STRSTR = 1; then
18103 gl_LIBOBJS="$gl_LIBOBJS strstr.$ac_objext"
18109 if test "$gl_cv_func_memchr_works" != yes; then
18112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
18113 $as_echo_n "checking whether strstr works... " >&6; }
18114 if test "${gl_cv_func_strstr_works_always+set}" = set; then :
18115 $as_echo_n "(cached) " >&6
18117 if test "$cross_compiling" = yes; then :
18118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18119 /* end confdefs.h. */
18121 #ifdef __GNU_LIBRARY__
18122 #include <features.h>
18123 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
18124 || defined __UCLIBC__
18127 #elif defined __CYGWIN__
18128 #include <cygwin/version.h>
18129 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
18137 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18138 $EGREP "Lucky user" >/dev/null 2>&1; then :
18139 gl_cv_func_strstr_works_always="guessing yes"
18141 gl_cv_func_strstr_works_always="guessing no"
18147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18148 /* end confdefs.h. */
18150 #include <string.h> /* for strstr */
18151 #define P "_EF_BF_BD"
18152 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
18153 #define NEEDLE P P P P P
18158 return !!strstr (HAYSTACK, NEEDLE);
18164 if ac_fn_c_try_run "$LINENO"; then :
18165 gl_cv_func_strstr_works_always=yes
18167 gl_cv_func_strstr_works_always=no
18169 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18170 conftest.$ac_objext conftest.beam conftest.$ac_ext
18175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
18176 $as_echo "$gl_cv_func_strstr_works_always" >&6; }
18177 case "$gl_cv_func_strstr_works_always" in
18185 if test $REPLACE_STRSTR = 1; then
18194 gl_LIBOBJS="$gl_LIBOBJS strstr.$ac_objext"
18208 $as_echo "#define GNULIB_TEST_STRSTR 1" >>confdefs.h
18216 for ac_func in strtok_r
18218 ac_fn_c_check_func "$LINENO" "strtok_r" "ac_cv_func_strtok_r"
18219 if test "x$ac_cv_func_strtok_r" = x""yes; then :
18220 cat >>confdefs.h <<_ACEOF
18221 #define HAVE_STRTOK_R 1
18227 if test $ac_cv_func_strtok_r = yes; then
18229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtok_r works" >&5
18230 $as_echo_n "checking whether strtok_r works... " >&6; }
18231 if test "${gl_cv_func_strtok_r_works+set}" = set; then :
18232 $as_echo_n "(cached) " >&6
18234 if test "$cross_compiling" = yes; then :
18237 # Guess no on glibc systems.
18238 *-gnu*) gl_cv_func_strtok_r_works="guessing no";;
18239 *) gl_cv_func_strtok_r_works="guessing yes";;
18243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18244 /* end confdefs.h. */
18246 #ifndef __OPTIMIZE__
18247 # define __OPTIMIZE__ 1
18249 #undef __OPTIMIZE_SIZE__
18250 #undef __NO_INLINE__
18251 #include <stdlib.h>
18252 #include <string.h>
18257 static const char dummy[] = "\177\01a";
18258 char delimiters[] = "xxxxxxxx";
18259 char *save_ptr = (char *) dummy;
18260 strtok_r (delimiters, "x", &save_ptr);
18261 strtok_r (NULL, "x", &save_ptr);
18269 if ac_fn_c_try_run "$LINENO"; then :
18270 gl_cv_func_strtok_r_works=yes
18272 gl_cv_func_strtok_r_works=no
18274 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18275 conftest.$ac_objext conftest.beam conftest.$ac_ext
18280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtok_r_works" >&5
18281 $as_echo "$gl_cv_func_strtok_r_works" >&6; }
18282 case "$gl_cv_func_strtok_r_works" in
18284 UNDEFINE_STRTOK_R=1
18291 if test $ac_cv_have_decl_strtok_r = no; then
18292 HAVE_DECL_STRTOK_R=0
18295 if test $HAVE_STRTOK_R = 0 || test $REPLACE_STRTOK_R = 1; then
18304 gl_LIBOBJS="$gl_LIBOBJS strtok_r.$ac_objext"
18321 $as_echo "#define GNULIB_TEST_STRTOK_R 1" >>confdefs.h
18339 if test $gl_cv_have_include_next = yes; then
18340 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
18342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
18343 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
18344 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
18345 $as_echo_n "(cached) " >&6
18348 if test $ac_cv_header_sys_stat_h = yes; then
18353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18354 /* end confdefs.h. */
18355 #include <sys/stat.h>
18358 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18359 *) gl_absname_cpp="$ac_cpp" ;;
18364 gl_dirsep_regex='[/\\]'
18367 gl_dirsep_regex='\/'
18370 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18371 gl_header_literal_regex=`echo 'sys/stat.h' \
18372 |
sed -e "$gl_make_literal_regex_sed"`
18373 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18374 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18380 gl_cv_absolute_sys_stat_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18381 sed -n "$gl_absolute_header_sed"`
18383 gl_header=$gl_cv_absolute_sys_stat_h
18384 gl_cv_next_sys_stat_h='"'$gl_header'"'
18386 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
18391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
18392 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
18394 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
18396 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18397 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18398 gl_next_as_first_directive='<'sys/stat.h'>'
18400 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18401 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
18403 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
18415 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
18417 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
18421 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
18422 #include <sys/stat.h>
18424 if test "x$ac_cv_type_nlink_t" = x""yes; then :
18428 $as_echo "#define nlink_t int" >>confdefs.h
18434 for gl_func in fchmodat fstat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat mknod mknodat stat utimensat; do
18435 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
18436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
18437 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
18438 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
18439 $as_echo_n "(cached) " >&6
18441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18442 /* end confdefs.h. */
18443 #include <sys/stat.h>
18454 if ac_fn_c_try_compile "$LINENO"; then :
18455 eval "$as_gl_Symbol=yes"
18457 eval "$as_gl_Symbol=no"
18459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18461 eval ac_res=\$$as_gl_Symbol
18462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18463 $as_echo "$ac_res" >&6; }
18464 eval as_val=\$$as_gl_Symbol
18465 if test "x$as_val" = x""yes; then :
18466 cat >>confdefs.h <<_ACEOF
18467 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
18470 eval ac_cv_have_decl_$gl_func=yes
18497 if test $gl_cv_have_include_next = yes; then
18498 gl_cv_next_unistd_h='<'unistd.h'>'
18500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
18501 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
18502 if test "${gl_cv_next_unistd_h+set}" = set; then :
18503 $as_echo_n "(cached) " >&6
18506 if test $ac_cv_header_unistd_h = yes; then
18511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18512 /* end confdefs.h. */
18513 #include <unistd.h>
18516 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18517 *) gl_absname_cpp="$ac_cpp" ;;
18522 gl_dirsep_regex='[/\\]'
18525 gl_dirsep_regex='\/'
18528 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18529 gl_header_literal_regex=`echo 'unistd.h' \
18530 |
sed -e "$gl_make_literal_regex_sed"`
18531 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18532 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18538 gl_cv_absolute_unistd_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18539 sed -n "$gl_absolute_header_sed"`
18541 gl_header=$gl_cv_absolute_unistd_h
18542 gl_cv_next_unistd_h='"'$gl_header'"'
18544 gl_cv_next_unistd_h='<'unistd.h'>'
18549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
18550 $as_echo "$gl_cv_next_unistd_h" >&6; }
18552 NEXT_UNISTD_H=$gl_cv_next_unistd_h
18554 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18555 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18556 gl_next_as_first_directive='<'unistd.h'>'
18558 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18559 gl_next_as_first_directive=$gl_cv_next_unistd_h
18561 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
18566 if test $ac_cv_header_unistd_h = yes; then
18578 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
18579 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
18580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
18581 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
18582 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
18583 $as_echo_n "(cached) " >&6
18585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18586 /* end confdefs.h. */
18589 # include <unistd.h>
18591 /* Some systems declare various items in the wrong headers. */
18592 #if !(defined __GLIBC__ && !defined __UCLIBC__)
18593 # include <fcntl.h>
18594 # include <stdio.h>
18595 # include <stdlib.h>
18596 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
18610 if ac_fn_c_try_compile "$LINENO"; then :
18611 eval "$as_gl_Symbol=yes"
18613 eval "$as_gl_Symbol=no"
18615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18617 eval ac_res=\$$as_gl_Symbol
18618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18619 $as_echo "$ac_res" >&6; }
18620 eval as_val=\$$as_gl_Symbol
18621 if test "x$as_val" = x""yes; then :
18622 cat >>confdefs.h <<_ACEOF
18623 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
18626 eval ac_cv_have_decl_$gl_func=yes
18643 if test $gl_cv_have_include_next = yes; then
18644 gl_cv_next_wchar_h='<'wchar.h'>'
18646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
18647 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
18648 if test "${gl_cv_next_wchar_h+set}" = set; then :
18649 $as_echo_n "(cached) " >&6
18652 if test $ac_cv_header_wchar_h = yes; then
18657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18658 /* end confdefs.h. */
18662 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18663 *) gl_absname_cpp="$ac_cpp" ;;
18668 gl_dirsep_regex='[/\\]'
18671 gl_dirsep_regex='\/'
18674 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18675 gl_header_literal_regex=`echo 'wchar.h' \
18676 |
sed -e "$gl_make_literal_regex_sed"`
18677 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18678 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18684 gl_cv_absolute_wchar_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18685 sed -n "$gl_absolute_header_sed"`
18687 gl_header=$gl_cv_absolute_wchar_h
18688 gl_cv_next_wchar_h='"'$gl_header'"'
18690 gl_cv_next_wchar_h='<'wchar.h'>'
18695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
18696 $as_echo "$gl_cv_next_wchar_h" >&6; }
18698 NEXT_WCHAR_H=$gl_cv_next_wchar_h
18700 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18701 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18702 gl_next_as_first_directive='<'wchar.h'>'
18704 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18705 gl_next_as_first_directive=$gl_cv_next_wchar_h
18707 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
18712 if test $ac_cv_header_wchar_h = yes; then
18722 if test $gt_cv_c_wint_t = yes; then
18730 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
18731 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
18732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
18733 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
18734 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
18735 $as_echo_n "(cached) " >&6
18737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18738 /* end confdefs.h. */
18740 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
18742 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18743 included before <wchar.h>. */
18744 #if !(defined __GLIBC__ && !defined __UCLIBC__)
18745 # include <stddef.h>
18746 # include <stdio.h>
18760 if ac_fn_c_try_compile "$LINENO"; then :
18761 eval "$as_gl_Symbol=yes"
18763 eval "$as_gl_Symbol=no"
18765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18767 eval ac_res=\$$as_gl_Symbol
18768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18769 $as_echo "$ac_res" >&6; }
18770 eval as_val=\$$as_gl_Symbol
18771 if test "x$as_val" = x""yes; then :
18772 cat >>confdefs.h <<_ACEOF
18773 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
18776 eval ac_cv_have_decl_$gl_func=yes
18786 if test $ac_cv_func_iswcntrl = yes; then
18794 if test $gt_cv_c_wint_t = yes; then
18810 if test $gl_cv_have_include_next = yes; then
18811 gl_cv_next_wctype_h='<'wctype.h'>'
18813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
18814 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
18815 if test "${gl_cv_next_wctype_h+set}" = set; then :
18816 $as_echo_n "(cached) " >&6
18819 if test $ac_cv_header_wctype_h = yes; then
18824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18825 /* end confdefs.h. */
18826 #include <wctype.h>
18829 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18830 *) gl_absname_cpp="$ac_cpp" ;;
18835 gl_dirsep_regex='[/\\]'
18838 gl_dirsep_regex='\/'
18841 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18842 gl_header_literal_regex=`echo 'wctype.h' \
18843 |
sed -e "$gl_make_literal_regex_sed"`
18844 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18845 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18851 gl_cv_absolute_wctype_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18852 sed -n "$gl_absolute_header_sed"`
18854 gl_header=$gl_cv_absolute_wctype_h
18855 gl_cv_next_wctype_h='"'$gl_header'"'
18857 gl_cv_next_wctype_h='<'wctype.h'>'
18862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
18863 $as_echo "$gl_cv_next_wctype_h" >&6; }
18865 NEXT_WCTYPE_H=$gl_cv_next_wctype_h
18867 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18868 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18869 gl_next_as_first_directive='<'wctype.h'>'
18871 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18872 gl_next_as_first_directive=$gl_cv_next_wctype_h
18874 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
18879 if test $ac_cv_header_wctype_h = yes; then
18880 if test $ac_cv_func_iswcntrl = yes; then
18881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
18882 $as_echo_n "checking whether iswcntrl works... " >&6; }
18883 if test "${gl_cv_func_iswcntrl_works+set}" = set; then :
18884 $as_echo_n "(cached) " >&6
18887 if test "$cross_compiling" = yes; then :
18888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18889 /* end confdefs.h. */
18890 #include <stdlib.h>
18891 #if __GNU_LIBRARY__ == 1
18892 Linux libc5 i18n is broken.
18902 if ac_fn_c_try_compile "$LINENO"; then :
18903 gl_cv_func_iswcntrl_works="guessing yes"
18905 gl_cv_func_iswcntrl_works="guessing no"
18907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18911 /* end confdefs.h. */
18913 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
18914 included before <wchar.h>.
18915 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
18916 must be included before <wchar.h>. */
18917 #include <stddef.h>
18921 #include <wctype.h>
18922 int main () { return iswprint ('x') == 0; }
18925 if ac_fn_c_try_run "$LINENO"; then :
18926 gl_cv_func_iswcntrl_works=yes
18928 gl_cv_func_iswcntrl_works=no
18930 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18931 conftest.$ac_objext conftest.beam conftest.$ac_ext
18936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
18937 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
18945 case "$gl_cv_func_iswcntrl_works" in
18946 *yes) REPLACE_ISWCNTRL=0 ;;
18947 *) REPLACE_ISWCNTRL=1 ;;
18951 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
18955 if test $REPLACE_ISWCNTRL = 1; then
18958 for ac_func in towlower
18960 ac_fn_c_check_func "$LINENO" "towlower" "ac_cv_func_towlower"
18961 if test "x$ac_cv_func_towlower" = x""yes; then :
18962 cat >>confdefs.h <<_ACEOF
18963 #define HAVE_TOWLOWER 1
18969 if test $ac_cv_func_towlower = yes; then
18972 ac_fn_c_check_decl "$LINENO" "towlower" "ac_cv_have_decl_towlower" "/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
18973 included before <wchar.h>.
18974 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
18975 must be included before <wchar.h>. */
18976 #include <stddef.h>
18981 # include <wctype.h>
18985 if test "x$ac_cv_have_decl_towlower" = x""yes; then :
18991 cat >>confdefs.h <<_ACEOF
18992 #define HAVE_DECL_TOWLOWER $ac_have_decl
18995 if test $ac_cv_have_decl_towlower = yes; then
19004 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_TOWLOWER = 1; then
19008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
19009 $as_echo_n "checking for wctype_t... " >&6; }
19010 if test "${gl_cv_type_wctype_t+set}" = set; then :
19011 $as_echo_n "(cached) " >&6
19013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19014 /* end confdefs.h. */
19015 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
19016 included before <wchar.h>.
19017 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
19018 must be included before <wchar.h>. */
19019 #include <stddef.h>
19024 # include <wctype.h>
19036 if ac_fn_c_try_compile "$LINENO"; then :
19037 gl_cv_type_wctype_t=yes
19039 gl_cv_type_wctype_t=no
19041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
19045 $as_echo "$gl_cv_type_wctype_t" >&6; }
19046 if test $gl_cv_type_wctype_t = no; then
19050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
19051 $as_echo_n "checking for wctrans_t... " >&6; }
19052 if test "${gl_cv_type_wctrans_t+set}" = set; then :
19053 $as_echo_n "(cached) " >&6
19055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19056 /* end confdefs.h. */
19057 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
19058 included before <wchar.h>.
19059 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
19060 must be included before <wchar.h>. */
19061 #include <stddef.h>
19065 #include <wctype.h>
19076 if ac_fn_c_try_compile "$LINENO"; then :
19077 gl_cv_type_wctrans_t=yes
19079 gl_cv_type_wctrans_t=no
19081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
19085 $as_echo "$gl_cv_type_wctrans_t" >&6; }
19086 if test $gl_cv_type_wctrans_t = no; then
19091 for gl_func in wctype iswctype wctrans towctrans ; do
19092 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
19093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
19094 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
19095 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
19096 $as_echo_n "(cached) " >&6
19098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19099 /* end confdefs.h. */
19101 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19103 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19104 included before <wchar.h>. */
19105 #if !(defined __GLIBC__ && !defined __UCLIBC__)
19106 # include <stddef.h>
19107 # include <stdio.h>
19109 # include <wchar.h>
19111 #include <wctype.h>
19122 if ac_fn_c_try_compile "$LINENO"; then :
19123 eval "$as_gl_Symbol=yes"
19125 eval "$as_gl_Symbol=no"
19127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19129 eval ac_res=\$$as_gl_Symbol
19130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19131 $as_echo "$ac_res" >&6; }
19132 eval as_val=\$$as_gl_Symbol
19133 if test "x$as_val" = x""yes; then :
19134 cat >>confdefs.h <<_ACEOF
19135 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
19138 eval ac_cv_have_decl_$gl_func=yes
19143 # End of code from modules
19164 gl_source_base='tests'
19165 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
19167 gl_module_indicator_condition=$gltests_WITNESS
19177 LIBGNU_LIBDEPS="$gl_libdeps"
19179 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
19183 # We don't use automake, but gnulib does. This line lets us generate
19185 am__api_version='1.11'
19187 # Find a good install program. We prefer a C program (faster),
19188 # so one script is as good as another. But avoid the broken or
19189 # incompatible versions:
19190 # SysV /etc/install, /usr/sbin/install
19191 # SunOS /usr/etc/install
19192 # IRIX /sbin/install
19194 # AmigaOS /C/install, which installs bootblocks on floppy discs
19195 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
19196 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
19197 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
19198 # OS/2's system install, which has a completely different semantic
19199 # ./install, which can be erroneously created by make from ./install.sh.
19200 # Reject install programs that cannot install multiple files.
19201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
19202 $as_echo_n "checking for a BSD-compatible install... " >&6; }
19203 if test -z "$INSTALL"; then
19204 if test "${ac_cv_path_install+set}" = set; then :
19205 $as_echo_n "(cached) " >&6
19207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19208 for as_dir in $PATH
19211 test -z "$as_dir" && as_dir=.
19212 # Account for people who put trailing slashes in PATH elements.
19213 case $as_dir/ in #((
19214 ./ | .// | /[cC]/* | \
19215 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
19216 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
19219 # OSF1 and SCO ODT 3.0 have their own names for install.
19220 # Don't use installbsd from OSF since it installs stuff as root
19222 for ac_prog in ginstall scoinst install; do
19223 for ac_exec_ext in '' $ac_executable_extensions; do
19224 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
19225 if test $ac_prog = install &&
19226 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19227 # AIX install. It has an incompatible calling convention.
19229 elif test $ac_prog = install &&
19230 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19231 # program-specific install script used by HP pwplus--don't use.
19234 rm -rf conftest.one conftest.two conftest.dir
19235 echo one > conftest.one
19236 echo two > conftest.two
19238 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
19239 test -s conftest.one && test -s conftest.two &&
19240 test -s conftest.dir/conftest.one &&
19241 test -s conftest.dir/conftest.two
19243 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
19256 rm -rf conftest.one conftest.two conftest.dir
19259 if test "${ac_cv_path_install+set}" = set; then
19260 INSTALL=$ac_cv_path_install
19262 # As a last resort, use the slow shell script. Don't cache a
19263 # value for INSTALL within a source directory, because that will
19264 # break other packages using the cache if that directory is
19265 # removed, or if the value is a relative name.
19266 INSTALL=$ac_install_sh
19269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
19270 $as_echo "$INSTALL" >&6; }
19272 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
19273 # It thinks the first close brace ends the variable substitution.
19274 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
19276 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
19278 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
19280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
19281 $as_echo_n "checking whether build environment is sane... " >&6; }
19284 echo timestamp > conftest.file
19285 # Reject unsafe characters in $srcdir or the absolute working directory
19286 # name. Accept space and tab only in the latter.
19290 *[\\\"\#\$\&\'\`$am_lf]*)
19291 as_fn_error
"unsafe absolute working directory name" "$LINENO" 5;;
19294 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
19295 as_fn_error
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
19298 # Do `set' in a subshell so we don't clobber the current shell's
19299 # arguments. Must try -L first in case configure is actually a
19300 # symlink; some systems play weird games with the mod time of symlinks
19301 # (eg FreeBSD returns the mod time of the symlink's containing
19304 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
19305 if test "$*" = "X"; then
19307 set X
`ls -t "$srcdir/configure" conftest.file`
19309 rm -f conftest.
file
19310 if test "$*" != "X $srcdir/configure conftest.file" \
19311 && test "$*" != "X conftest.file $srcdir/configure"; then
19313 # If neither matched, then we have a broken ls. This can happen
19314 # if, for instance, CONFIG_SHELL is bash and it inherits a
19315 # broken ls alias from the environment. This has actually
19316 # happened. Such a system could not be considered "sane".
19317 as_fn_error
"ls -t appears to fail. Make sure there is not a broken
19318 alias in your environment" "$LINENO" 5
19321 test "$2" = conftest.
file
19327 as_fn_error
"newly created file is older than distributed files!
19328 Check your system clock" "$LINENO" 5
19330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19331 $as_echo "yes" >&6; }
19332 test "$program_prefix" != NONE
&&
19333 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
19334 # Use a double $ so make ignores it.
19335 test "$program_suffix" != NONE
&&
19336 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
19337 # Double any \ or $.
19338 # By default was `s,x,x', remove it if useless.
19339 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
19340 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
19342 # expand $ac_aux_dir to an absolute path
19343 am_aux_dir
=`cd $ac_aux_dir && pwd`
19345 if test x
"${MISSING+set}" != xset
; then
19346 case $am_aux_dir in
19348 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
19350 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
19353 # Use eval to expand $SHELL
19354 if eval "$MISSING --run true"; then
19355 am_missing_run
="$MISSING --run "
19358 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
19359 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
19362 if test x
"${install_sh}" != xset
; then
19363 case $am_aux_dir in
19365 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
19367 install_sh
="\${SHELL} $am_aux_dir/install-sh"
19371 # Installed binaries are usually stripped using `strip' when the user
19372 # run `make install-strip'. However `strip' might not be the right
19373 # tool to use in cross-compilation environments, therefore Automake
19374 # will honor the `STRIP' environment variable to overrule this program.
19375 if test "$cross_compiling" != no
; then
19376 if test -n "$ac_tool_prefix"; then
19377 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
19378 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
19379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19380 $as_echo_n "checking for $ac_word... " >&6; }
19381 if test "${ac_cv_prog_STRIP+set}" = set; then :
19382 $as_echo_n "(cached) " >&6
19384 if test -n "$STRIP"; then
19385 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
19387 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19388 for as_dir
in $PATH
19391 test -z "$as_dir" && as_dir
=.
19392 for ac_exec_ext
in '' $ac_executable_extensions; do
19393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19394 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
19395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19404 STRIP
=$ac_cv_prog_STRIP
19405 if test -n "$STRIP"; then
19406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
19407 $as_echo "$STRIP" >&6; }
19409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19410 $as_echo "no" >&6; }
19415 if test -z "$ac_cv_prog_STRIP"; then
19417 # Extract the first word of "strip", so it can be a program name with args.
19418 set dummy strip
; ac_word
=$2
19419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19420 $as_echo_n "checking for $ac_word... " >&6; }
19421 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
19422 $as_echo_n "(cached) " >&6
19424 if test -n "$ac_ct_STRIP"; then
19425 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
19427 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19428 for as_dir
in $PATH
19431 test -z "$as_dir" && as_dir
=.
19432 for ac_exec_ext
in '' $ac_executable_extensions; do
19433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19434 ac_cv_prog_ac_ct_STRIP
="strip"
19435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19444 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
19445 if test -n "$ac_ct_STRIP"; then
19446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
19447 $as_echo "$ac_ct_STRIP" >&6; }
19449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19450 $as_echo "no" >&6; }
19453 if test "x$ac_ct_STRIP" = x
; then
19456 case $cross_compiling:$ac_tool_warned in
19458 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19459 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19460 ac_tool_warned
=yes ;;
19465 STRIP
="$ac_cv_prog_STRIP"
19469 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
19473 [\\/$
]* | ?
:[\\/]*) ;;
19474 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
19477 for ac_prog
in gawk mawk nawk
awk
19479 # Extract the first word of "$ac_prog", so it can be a program name with args.
19480 set dummy
$ac_prog; ac_word
=$2
19481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19482 $as_echo_n "checking for $ac_word... " >&6; }
19483 if test "${ac_cv_prog_AWK+set}" = set; then :
19484 $as_echo_n "(cached) " >&6
19486 if test -n "$AWK"; then
19487 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
19489 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19490 for as_dir
in $PATH
19493 test -z "$as_dir" && as_dir
=.
19494 for ac_exec_ext
in '' $ac_executable_extensions; do
19495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19496 ac_cv_prog_AWK
="$ac_prog"
19497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19506 AWK
=$ac_cv_prog_AWK
19507 if test -n "$AWK"; then
19508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
19509 $as_echo "$AWK" >&6; }
19511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19512 $as_echo "no" >&6; }
19516 test -n "$AWK" && break
19519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
19520 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
19522 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
19523 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
19524 $as_echo_n "(cached) " >&6
19526 cat >conftest.
make <<\_ACEOF
19529 @
echo '@@@%%%=$(MAKE)=@@@%%%'
19531 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19532 case `${MAKE-make} -f conftest.make 2>/dev/null` in
19533 *@@@
%%%=?
*=@@@
%%%*)
19534 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
19536 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
19538 rm -f conftest.
make
19540 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
19541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19542 $as_echo "yes" >&6; }
19545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19546 $as_echo "no" >&6; }
19547 SET_MAKE
="MAKE=${MAKE-make}"
19550 rm -rf .tst
2>/dev
/null
19551 mkdir .tst
2>/dev
/null
19552 if test -d .tst
; then
19557 rmdir .tst
2>/dev
/null
19559 DEPDIR
="${am__leading_dot}deps"
19561 ac_config_commands
="$ac_config_commands depfiles"
19564 am_make
=${MAKE-make}
19565 cat > confinc
<< 'END'
19567 @
echo this is the am__doit target
19570 # If we don't find an include directive, just comment out the code.
19571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
19572 $as_echo_n "checking for style of include used by $am_make... " >&6; }
19576 # First try GNU make style include.
19577 echo "include confinc" > confmf
19578 # Ignore all kinds of additional output from `make'.
19579 case `$am_make -s -f confmf 2> /dev/null` in #(
19580 *the\ am__doit\ target
*)
19581 am__include
=include
19586 # Now try BSD make style include.
19587 if test "$am__include" = "#"; then
19588 echo '.include "confinc"' > confmf
19589 case `$am_make -s -f confmf 2> /dev/null` in #(
19590 *the\ am__doit\ target
*)
19591 am__include
=.include
19599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
19600 $as_echo "$_am_result" >&6; }
19601 rm -f confinc confmf
19603 # Check whether --enable-dependency-tracking was given.
19604 if test "${enable_dependency_tracking+set}" = set; then :
19605 enableval
=$enable_dependency_tracking;
19608 if test "x$enable_dependency_tracking" != xno
; then
19609 am_depcomp
="$ac_aux_dir/depcomp"
19612 if test "x$enable_dependency_tracking" != xno; then
19621 if test "`cd $srcdir && pwd`" != "`pwd`"; then
19622 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
19623 # is not polluted with repeated "-I."
19624 am__isrc
=' -I$(srcdir)'
19625 # test to see if srcdir already configured
19626 if test -f $srcdir/config.status
; then
19627 as_fn_error
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
19631 # test whether we have cygpath
19632 if test -z "$CYGPATH_W"; then
19633 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
19634 CYGPATH_W
='cygpath -w'
19641 # Define the identity of the package.
19643 VERSION
=UNUSED-VERSION
19646 # Some tools Automake needs.
19648 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
19651 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
19654 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
19657 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
19660 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
19662 # We need awk for the "check" target. The system "awk" is bad on
19664 # Always define AMTAR for backward compatibility.
19666 AMTAR
=${AMTAR-"${am_missing_run}tar"}
19668 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
19673 depcc
="$CC" am_compiler_list
=
19675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
19676 $as_echo_n "checking dependency style of $depcc... " >&6; }
19677 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
19678 $as_echo_n "(cached) " >&6
19680 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19681 # We make a subdir and do the tests there. Otherwise we can end up
19682 # making bogus files that we don't know about and never remove. For
19683 # instance it was reported that on HP-UX the gcc test will end up
19684 # making a dummy file named `D' -- because `-MD' means `put the output
19687 # Copy depcomp to subdir because otherwise we won't find it if we're
19688 # using a relative directory.
19689 cp "$am_depcomp" conftest.dir
19691 # We will build objects and dependencies in a subdirectory because
19692 # it helps to detect inapplicable dependency modes. For instance
19693 # both Tru64's cc and ICC support -MD to output dependencies as a
19694 # side effect of compilation, but ICC will put the dependencies in
19695 # the current directory while Tru64 will put them in the object
19699 am_cv_CC_dependencies_compiler_type
=none
19700 if test "$am_compiler_list" = ""; then
19701 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19703 am__universal
=false
19704 case " $depcc " in #(
19705 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
19708 for depmode
in $am_compiler_list; do
19709 # Setup a source with many dependencies, because some compilers
19710 # like to wrap large dependency lists on column 80 (with \), and
19711 # we should not choose a depcomp mode which is confused by this.
19713 # We need to recreate these files for each test, as the compiler may
19714 # overwrite some of them when testing with obscure command lines.
19715 # This happens at least with the AIX C compiler.
19717 for i
in 1 2 3 4 5 6; do
19718 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
19719 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19720 # Solaris 8's {/usr,}/bin/sh.
19721 touch sub
/conftst
$i.h
19723 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19725 # We check with `-c' and `-o' for the sake of the "dashmstdout"
19726 # mode. It turns out that the SunPro C++ compiler does not properly
19727 # handle `-M -o', and we need to detect this. Also, some Intel
19728 # versions had trouble with output in subdirs
19729 am__obj
=sub
/conftest.
${OBJEXT-o}
19730 am__minus_obj
="-o $am__obj"
19733 # This depmode causes a compiler race in universal mode.
19734 test "$am__universal" = false ||
continue
19737 # after this tag, mechanisms are not by side-effect, so they'll
19738 # only be used when explicitly requested
19739 if test "x$enable_dependency_tracking" = xyes
; then
19745 msvisualcpp | msvcmsys
)
19746 # This compiler won't grok `-c -o', but also, the minuso test has
19747 # not run yet. These depmodes are late enough in the game, and
19748 # so weak that their functioning should not be impacted.
19749 am__obj
=conftest.
${OBJEXT-o}
19754 if depmode
=$depmode \
19755 source=sub
/conftest.c object
=$am__obj \
19756 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
19757 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
19758 >/dev
/null
2>conftest.err
&&
19759 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
19760 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
19761 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
19762 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
19763 # icc doesn't choke on unknown options, it will just issue warnings
19764 # or remarks (even with -Werror). So we grep stderr for any message
19765 # that says an option was ignored or not supported.
19766 # When given -MP, icc 7.0 and 7.1 complain thusly:
19767 # icc: Command line warning: ignoring option '-M'; no argument required
19768 # The diagnosis changed in icc 8.0:
19769 # icc: Command line remark: option '-MP' not supported
19770 if (grep 'ignoring option' conftest.err ||
19771 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
19772 am_cv_CC_dependencies_compiler_type
=$depmode
19779 rm -rf conftest.dir
19781 am_cv_CC_dependencies_compiler_type
=none
19785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
19786 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
19787 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
19790 test "x$enable_dependency_tracking" != xno \
19791 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
19792 am__fastdepCC_TRUE
=
19793 am__fastdepCC_FALSE
='#'
19795 am__fastdepCC_TRUE
='#'
19796 am__fastdepCC_FALSE
=
19802 # --------------------- #
19803 # Checks for programs. #
19804 # --------------------- #
19807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
19808 $as_echo_n "checking whether ln -s works... " >&6; }
19810 if test "$LN_S" = "ln -s"; then
19811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19812 $as_echo "yes" >&6; }
19814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
19815 $as_echo "no, using $LN_S" >&6; }
19818 if test -n "$ac_tool_prefix"; then
19819 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
19820 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
19821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19822 $as_echo_n "checking for $ac_word... " >&6; }
19823 if test "${ac_cv_prog_RANLIB+set}" = set; then :
19824 $as_echo_n "(cached) " >&6
19826 if test -n "$RANLIB"; then
19827 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
19829 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19830 for as_dir
in $PATH
19833 test -z "$as_dir" && as_dir
=.
19834 for ac_exec_ext
in '' $ac_executable_extensions; do
19835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19836 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
19837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19846 RANLIB
=$ac_cv_prog_RANLIB
19847 if test -n "$RANLIB"; then
19848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
19849 $as_echo "$RANLIB" >&6; }
19851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19852 $as_echo "no" >&6; }
19857 if test -z "$ac_cv_prog_RANLIB"; then
19858 ac_ct_RANLIB
=$RANLIB
19859 # Extract the first word of "ranlib", so it can be a program name with args.
19860 set dummy ranlib
; ac_word
=$2
19861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19862 $as_echo_n "checking for $ac_word... " >&6; }
19863 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
19864 $as_echo_n "(cached) " >&6
19866 if test -n "$ac_ct_RANLIB"; then
19867 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
19869 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19870 for as_dir
in $PATH
19873 test -z "$as_dir" && as_dir
=.
19874 for ac_exec_ext
in '' $ac_executable_extensions; do
19875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19876 ac_cv_prog_ac_ct_RANLIB
="ranlib"
19877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19886 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
19887 if test -n "$ac_ct_RANLIB"; then
19888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
19889 $as_echo "$ac_ct_RANLIB" >&6; }
19891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19892 $as_echo "no" >&6; }
19895 if test "x$ac_ct_RANLIB" = x
; then
19898 case $cross_compiling:$ac_tool_warned in
19900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19901 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19902 ac_tool_warned
=yes ;;
19904 RANLIB
=$ac_ct_RANLIB
19907 RANLIB
="$ac_cv_prog_RANLIB"
19911 if test -n "$ac_tool_prefix"; then
19912 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
19913 set dummy
${ac_tool_prefix}ar; ac_word
=$2
19914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19915 $as_echo_n "checking for $ac_word... " >&6; }
19916 if test "${ac_cv_prog_AR+set}" = set; then :
19917 $as_echo_n "(cached) " >&6
19919 if test -n "$AR"; then
19920 ac_cv_prog_AR
="$AR" # Let the user override the test.
19922 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19923 for as_dir
in $PATH
19926 test -z "$as_dir" && as_dir
=.
19927 for ac_exec_ext
in '' $ac_executable_extensions; do
19928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19929 ac_cv_prog_AR
="${ac_tool_prefix}ar"
19930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19940 if test -n "$AR"; then
19941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
19942 $as_echo "$AR" >&6; }
19944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19945 $as_echo "no" >&6; }
19950 if test -z "$ac_cv_prog_AR"; then
19952 # Extract the first word of "ar", so it can be a program name with args.
19953 set dummy
ar; ac_word
=$2
19954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19955 $as_echo_n "checking for $ac_word... " >&6; }
19956 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
19957 $as_echo_n "(cached) " >&6
19959 if test -n "$ac_ct_AR"; then
19960 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
19962 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19963 for as_dir
in $PATH
19966 test -z "$as_dir" && as_dir
=.
19967 for ac_exec_ext
in '' $ac_executable_extensions; do
19968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19969 ac_cv_prog_ac_ct_AR
="ar"
19970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19979 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
19980 if test -n "$ac_ct_AR"; then
19981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
19982 $as_echo "$ac_ct_AR" >&6; }
19984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19985 $as_echo "no" >&6; }
19988 if test "x$ac_ct_AR" = x
; then
19991 case $cross_compiling:$ac_tool_warned in
19993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19994 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19995 ac_tool_warned
=yes ;;
20000 AR
="$ac_cv_prog_AR"
20004 # ---------------------- #
20005 # Checks for libraries. #
20006 # ---------------------- #
20008 ac_config_files
="$ac_config_files Makefile import/Makefile"
20010 ac_config_commands
="$ac_config_commands default"
20012 cat >confcache
<<\_ACEOF
20013 # This file is a shell script that caches the results of configure
20014 # tests run on this system so they can be shared between configure
20015 # scripts and configure runs, see configure's option --config-cache.
20016 # It is not useful on other systems. If it contains results you don't
20017 # want to keep, you may remove or edit it.
20019 # config.status only pays attention to the cache file if you give it
20020 # the --recheck option to rerun configure.
20022 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20023 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20024 # following values.
20028 # The following way of writing the cache mishandles newlines in values,
20029 # but we know of no workaround that is simple, portable, and efficient.
20030 # So, we kill variables containing newlines.
20031 # Ultrix sh set writes to stderr and can't be redirected directly,
20032 # and sets the high bit in the cache file unless we assign to the vars.
20034 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20035 eval ac_val
=\$
$ac_var
20039 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20040 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20043 _ | IFS | as_nl
) ;; #(
20044 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
20045 *) { eval $ac_var=; unset $ac_var;} ;;
20051 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20052 *${as_nl}ac_space
=\
*)
20053 # `set' does not quote correctly, so add quotes: double-quote
20054 # substitution turns \\\\ into \\, and sed turns \\ into \.
20057 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20060 # `set' quotes correctly as required by POSIX, so do not add quotes.
20061 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20070 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20072 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20074 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
20075 if test -w "$cache_file"; then
20076 test "x$cache_file" != "x/dev/null" &&
20077 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20078 $as_echo "$as_me: updating cache $cache_file" >&6;}
20079 cat confcache
>$cache_file
20081 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20082 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20087 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
20088 # Let make expand exec_prefix.
20089 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
20091 DEFS
=-DHAVE_CONFIG_H
20095 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
20096 # 1. Remove the extension, and $U if already installed.
20097 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
20098 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
20099 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20100 # will be set to the directory where LIBOBJS objects are built.
20101 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20102 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
20104 LIBOBJS
=$ac_libobjs
20106 LTLIBOBJS
=$ac_ltlibobjs
20109 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20110 as_fn_error
"conditional \"MAINTAINER_MODE\" was never defined.
20111 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20113 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
20114 as_fn_error
"conditional \"GL_COND_LIBTOOL\" was never defined.
20115 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20117 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
20118 as_fn_error
"conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
20119 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20121 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
20122 as_fn_error
"conditional \"GL_GENERATE_ERRNO_H\" was never defined.
20123 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20125 if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
20126 as_fn_error
"conditional \"GL_GENERATE_FLOAT_H\" was never defined.
20127 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20129 if test -z "${GL_GENERATE_FNMATCH_H_TRUE}" && test -z "${GL_GENERATE_FNMATCH_H_FALSE}"; then
20130 as_fn_error
"conditional \"GL_GENERATE_FNMATCH_H\" was never defined.
20131 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20133 if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
20134 as_fn_error
"conditional \"GL_GENERATE_LIMITS_H\" was never defined.
20135 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20137 if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
20138 as_fn_error
"conditional \"GL_GENERATE_LIMITS_H\" was never defined.
20139 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20141 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
20142 as_fn_error
"conditional \"GL_GENERATE_STDINT_H\" was never defined.
20143 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20147 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
20148 as_fn_error
"conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
20149 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20151 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
20152 as_fn_error
"conditional \"GL_GENERATE_STDDEF_H\" was never defined.
20153 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20158 if test -n "$gl_LIBOBJS"; then
20159 # Remove the extension.
20160 sed_drop_objext
='s/\.o$//;s/\.obj$//'
20161 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
20162 gl_libobjs
="$gl_libobjs $i.$ac_objext"
20163 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
20166 gl_LIBOBJS
=$gl_libobjs
20168 gl_LTLIBOBJS
=$gl_ltlibobjs
20174 if test -n "$gltests_LIBOBJS"; then
20175 # Remove the extension.
20176 sed_drop_objext
='s/\.o$//;s/\.obj$//'
20177 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
20178 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
20179 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
20182 gltests_LIBOBJS
=$gltests_libobjs
20184 gltests_LTLIBOBJS
=$gltests_ltlibobjs
20187 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20188 as_fn_error
"conditional \"AMDEP\" was never defined.
20189 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20191 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20192 as_fn_error
"conditional \"am__fastdepCC\" was never defined.
20193 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20195 if test -n "$EXEEXT"; then
20197 am__EXEEXT_FALSE
='#'
20199 am__EXEEXT_TRUE
='#'
20204 : ${CONFIG_STATUS=./config.status}
20206 ac_clean_files_save
=$ac_clean_files
20207 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
20208 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20209 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20211 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20213 # Generated by $as_me.
20214 # Run this file to recreate the current configuration.
20215 # Compiler output produced by configure, useful for debugging
20216 # configure, is in config.log if it exists.
20219 ac_cs_recheck=false
20222 SHELL=\${CONFIG_SHELL-$SHELL}
20225 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
20226 ## -------------------- ##
20227 ## M4sh Initialization. ##
20228 ## -------------------- ##
20230 # Be more Bourne compatible
20231 DUALCASE
=1; export DUALCASE
# for MKS sh
20232 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20235 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20236 # is contrary to our usage. Disable this feature.
20237 alias -g '${1+"$@"}'='"$@"'
20238 setopt NO_GLOB_SUBST
20240 case `(set -o) 2>/dev/null` in #(
20252 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20253 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20254 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20255 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20256 # Prefer a ksh shell builtin over an external printf program on Solaris,
20257 # but without wasting forks for bash or zsh.
20258 if test -z "$BASH_VERSION$ZSH_VERSION" \
20259 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20260 as_echo='print
-r --'
20261 as_echo_n='print
-rn --'
20262 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20263 as_echo='printf %s
\n'
20264 as_echo_n='printf %s
'
20266 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20267 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
20268 as_echo_n='/usr
/ucb
/echo -n'
20270 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20271 as_echo_n_body='eval
20275 expr "X$arg" : "X\\(.*\\)$as_nl";
20276 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20278 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
20280 export as_echo_n_body
20281 as_echo_n='sh
-c $as_echo_n_body as_echo
'
20283 export as_echo_body
20284 as_echo='sh
-c $as_echo_body as_echo
'
20287 # The user is always right.
20288 if test "${PATH_SEPARATOR+set}" != set; then
20290 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20291 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20298 # We need space, tab and new line, in precisely that order. Quoting is
20299 # there to prevent editors from complaining about space-tab.
20300 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20301 # splitting by setting IFS to empty value.)
20304 # Find who we are. Look in the path if we contain no directory separator.
20306 *[\\/]* ) as_myself=$0 ;;
20307 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20308 for as_dir in $PATH
20311 test -z "$as_dir" && as_dir=.
20312 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20318 # We did not find ourselves, most probably we were run as `sh COMMAND'
20319 # in which case we are not to be found in the path.
20320 if test "x$as_myself" = x
; then
20323 if test ! -f "$as_myself"; then
20324 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20328 # Unset variables that we do not need and which cause bugs (e.g. in
20329 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
20330 # suppresses any "Segmentation fault" message there. '((' could
20331 # trigger a bug in pdksh 5.2.14.
20332 for as_var
in BASH_ENV ENV MAIL MAILPATH
20333 do eval test x\
${$as_var+set} = xset \
20334 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
20347 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
20350 # as_fn_error ERROR [LINENO LOG_FD]
20351 # ---------------------------------
20352 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20353 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20354 # script with status $?, using 1 if that was 0.
20357 as_status
=$?
; test $as_status -eq 0 && as_status
=1
20359 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
20360 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
20362 $as_echo "$as_me: error: $1" >&2
20363 as_fn_exit
$as_status
20367 # as_fn_set_status STATUS
20368 # -----------------------
20369 # Set $? to STATUS, without forking.
20370 as_fn_set_status
()
20373 } # as_fn_set_status
20375 # as_fn_exit STATUS
20376 # -----------------
20377 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20381 as_fn_set_status
$1
20387 # Portably unset VAR.
20390 { eval $1=; unset $1;}
20392 as_unset
=as_fn_unset
20393 # as_fn_append VAR VALUE
20394 # ----------------------
20395 # Append the text in VALUE to the end of the definition contained in VAR. Take
20396 # advantage of any shell optimizations that allow amortized linear growth over
20397 # repeated appends, instead of the typical quadratic growth present in naive
20399 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
20400 eval 'as_fn_append ()
20411 # as_fn_arith ARG...
20412 # ------------------
20413 # Perform arithmetic evaluation on the ARGs, and store the result in the
20414 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20415 # must be portable across $(()) and expr.
20416 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
20417 eval 'as_fn_arith ()
20424 as_val
=`expr "$@" || test $? -eq 1`
20429 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
20430 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
20436 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20437 as_basename
=basename
20442 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
20448 as_me
=`$as_basename -- "$0" ||
20449 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20450 X"$0" : 'X\(//\)$' \| \
20451 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20453 sed '/^.*\/\([^/][^/]*\)\/*$/{
20467 # Avoid depending upon Character Ranges.
20468 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
20469 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20470 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
20471 as_cr_digits
='0123456789'
20472 as_cr_alnum
=$as_cr_Letters$as_cr_digits
20474 ECHO_C
= ECHO_N
= ECHO_T
=
20475 case `echo -n x` in #(((((
20477 case `echo 'xy\c'` in
20478 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
20480 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
20487 rm -f conf$$ conf$$.exe conf$$.
file
20488 if test -d conf$$.dir
; then
20489 rm -f conf$$.dir
/conf$$.
file
20492 mkdir conf$$.dir
2>/dev
/null
20494 if (echo >conf$$.
file) 2>/dev
/null
; then
20495 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
20497 # ... but there are two gotchas:
20498 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20499 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20500 # In both cases, we have to default to `cp -p'.
20501 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
20503 elif ln conf$$.
file conf$$
2>/dev
/null
; then
20511 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
20512 rmdir conf$$.dir
2>/dev
/null
20517 # Create "$as_dir" as a directory, including parents if necessary.
20522 -*) as_dir
=.
/$as_dir;;
20524 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
20528 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20529 *) as_qdir
=$as_dir;;
20531 as_dirs
="'$as_qdir' $as_dirs"
20532 as_dir
=`$as_dirname -- "$as_dir" ||
20533 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20534 X"$as_dir" : 'X\(//\)[^/]' \| \
20535 X"$as_dir" : 'X\(//\)$' \| \
20536 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20537 $as_echo X"$as_dir" |
20538 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20542 /^X\(\/\/\)[^/].*/{
20555 test -d "$as_dir" && break
20557 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
20558 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
20562 if mkdir
-p .
2>/dev
/null
; then
20563 as_mkdir_p
='mkdir -p "$as_dir"'
20565 test -d .
/-p && rmdir .
/-p
20569 if test -x / >/dev
/null
2>&1; then
20570 as_test_x
='test -x'
20572 if ls -dL / >/dev
/null
2>&1; then
20579 if test -d "$1"; then
20585 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
20586 ???[sx]*):;;*)false;;esac;fi
20590 as_executable_p
=$as_test_x
20592 # Sed expression to map a string onto a valid CPP name.
20593 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20595 # Sed expression to map a string onto a valid variable name.
20596 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20600 ## ----------------------------------- ##
20601 ## Main body of $CONFIG_STATUS script. ##
20602 ## ----------------------------------- ##
20604 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
20606 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20607 # Save the log message, to keep $0 and so on meaningful, and to
20608 # report actual input values of CONFIG_FILES etc. instead of their
20609 # values after options handling.
20611 This file was extended by $as_me, which was
20612 generated by GNU Autoconf 2.64. Invocation command line was
20614 CONFIG_FILES = $CONFIG_FILES
20615 CONFIG_HEADERS = $CONFIG_HEADERS
20616 CONFIG_LINKS = $CONFIG_LINKS
20617 CONFIG_COMMANDS = $CONFIG_COMMANDS
20620 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20625 case $ac_config_files in *"
20626 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
20629 case $ac_config_headers in *"
20630 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
20634 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20635 # Files that config.status was made for.
20636 config_files="$ac_config_files"
20637 config_headers="$ac_config_headers"
20638 config_commands="$ac_config_commands"
20642 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20644 \`$as_me' instantiates files and other configuration actions
20645 from templates according to the current configuration. Unless the files
20646 and actions are specified as TAGs, all are instantiated by default.
20648 Usage: $0 [OPTION]... [TAG]...
20650 -h, --help print this help, then exit
20651 -V, --version print version number and configuration settings, then exit
20652 -q, --quiet, --silent
20653 do not print progress messages
20654 -d, --debug don't remove temporary files
20655 --recheck update $as_me by reconfiguring in the same conditions
20656 --file=FILE[:TEMPLATE]
20657 instantiate the configuration file FILE
20658 --header=FILE[:TEMPLATE]
20659 instantiate the configuration header FILE
20661 Configuration files:
20664 Configuration headers:
20667 Configuration commands:
20670 Report bugs to the package provider."
20673 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20676 configured by $0, generated by GNU Autoconf 2.64,
20677 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20679 Copyright (C) 2009 Free Software Foundation, Inc.
20680 This config.status script is free software; the Free Software Foundation
20681 gives unlimited permission to copy, distribute and modify it."
20688 test -n "\$AWK" || AWK=awk
20691 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20692 # The default lists apply if the user does not specify any file.
20698 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
20699 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
20710 # Handling of the options.
20711 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
20713 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
20714 $as_echo "$ac_cs_version"; exit ;;
20715 --debug |
--debu |
--deb |
--de |
--d |
-d )
20717 --file |
--fil |
--fi |
--f )
20720 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20722 as_fn_append CONFIG_FILES
" '$ac_optarg'"
20723 ac_need_defaults
=false
;;
20724 --header |
--heade |
--head |
--hea )
20727 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20729 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
20730 ac_need_defaults
=false
;;
20732 # Conflict between --help and --header
20733 as_fn_error
"ambiguous option: \`$1'
20734 Try \`$0 --help' for more information.";;
20735 --help |
--hel |
-h )
20736 $as_echo "$ac_cs_usage"; exit ;;
20737 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
20738 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
20741 # This is an error.
20742 -*) as_fn_error
"unrecognized option: \`$1'
20743 Try \`$0 --help' for more information." ;;
20745 *) as_fn_append ac_config_targets
" $1"
20746 ac_need_defaults
=false
;;
20752 ac_configure_extra_args
=
20754 if $ac_cs_silent; then
20756 ac_configure_extra_args
="$ac_configure_extra_args --silent"
20760 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20761 if \$ac_cs_recheck; then
20762 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20764 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20765 CONFIG_SHELL='$SHELL'
20766 export CONFIG_SHELL
20771 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20775 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20776 ## Running $as_me. ##
20782 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20786 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20790 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20792 # Handling of arguments.
20793 for ac_config_target
in $ac_config_targets
20795 case $ac_config_target in
20796 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
20797 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
20798 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
20799 "import/Makefile") CONFIG_FILES
="$CONFIG_FILES import/Makefile" ;;
20800 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
20802 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20807 # If the user did not use the arguments to specify the items to instantiate,
20808 # then the envvar interface is used. Set only those that are not.
20809 # We use the long form for the default assignment because of an extremely
20810 # bizarre bug on SunOS 4.1.3.
20811 if $ac_need_defaults; then
20812 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
20813 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
20814 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
20817 # Have a temporary directory for convenience. Make it in the build tree
20818 # simply because there is no reason against having it here, and in addition,
20819 # creating and moving files from /tmp can sometimes cause problems.
20820 # Hook for its removal unless debugging.
20821 # Note that there is a small window in which the directory will not be cleaned:
20822 # after its creation but before its name has been assigned to `$tmp'.
20826 trap 'exit_status=$?
20827 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20829 trap 'as_fn_exit 1' 1 2 13 15
20831 # Create a (secure) tmp directory for tmp files.
20834 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20835 test -n "$tmp" && test -d "$tmp"
20838 tmp
=.
/conf$$
-$RANDOM
20839 (umask 077 && mkdir
"$tmp")
20840 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
20842 # Set up the scripts for CONFIG_FILES section.
20843 # No need to generate them if there are no CONFIG_FILES.
20844 # This happens for instance with `./config.status config.h'.
20845 if test -n "$CONFIG_FILES"; then
20848 ac_cr
=`echo X | tr X '\015'`
20849 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20850 # But we know of no other shell where ac_cr would be empty at this
20851 # point, so we can use a bashism as a fallback.
20852 if test "x$ac_cr" = x
; then
20853 eval ac_cr
=\$
\'\\r
\'
20855 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20856 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20859 ac_cs_awk_cr
=$ac_cr
20862 echo 'BEGIN {' >"$tmp/subs1.awk" &&
20867 echo "cat >conf$$subs.awk <<_ACEOF" &&
20868 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20870 } >conf$$subs.sh ||
20871 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
20872 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
20874 for ac_last_try in false false false false false :; do
20875 . ./conf$$subs.sh ||
20876 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
20878 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
20879 if test $ac_delim_n = $ac_delim_num; then
20881 elif $ac_last_try; then
20882 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
20884 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
20887 rm -f conf$$subs.sh
20889 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20890 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
20894 s/^/S["/; s
/!.
*/"]=/
20904 s/\(.\{148\}\).*/\1/
20906 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
20911 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
20918 s/\(.\{148\}\).*/\1/
20920 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
20924 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
20929 ' <conf$$subs.awk | sed '
20934 ' >>$CONFIG_STATUS || ac_write_fail=1
20935 rm -f conf$$subs.awk
20936 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20938 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
20939 for (key in S) S_is_set[key] = 1
20945 nfields = split(line, field, "@
")
20947 len = length(field[1])
20948 for (i = 2; i < nfields; i++) {
20950 keylen = length(key)
20951 if (S_is_set[key]) {
20953 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20954 len += length(value) + length(field[++i])
20965 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20966 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20967 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
20970 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
20971 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
20974 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20975 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
20976 # trailing colons and then remove the whole line if VPATH becomes empty
20977 # (actually we leave an empty line to preserve line numbers).
20978 if test "x
$srcdir" = x.; then
20979 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20980 s/:*\$(srcdir):*/:/
20981 s/:*\${srcdir}:*/:/
20983 s/^\([^=]*=[ ]*\):*/\1/
20989 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20990 fi # test -n "$CONFIG_FILES"
20992 # Set up the scripts for CONFIG_HEADERS section.
20993 # No need to generate them if there are no CONFIG_HEADERS.
20994 # This happens for instance with `./config.status Makefile'.
20995 if test -n "$CONFIG_HEADERS"; then
20996 cat >"$tmp/defines.
awk" <<\_ACAWK ||
21000 # Transform confdefs.h into an awk script `defines.awk', embedded as
21001 # here-document in config.status, that substitutes the proper values into
21002 # config.h.in to produce config.h.
21004 # Create a delimiter string that does not exist in confdefs.h, to ease
21005 # handling of long lines.
21007 for ac_last_try in false false :; do
21008 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
21009 if test -z "$ac_t"; then
21011 elif $ac_last_try; then
21012 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
21014 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
21018 # For the awk script, D is an array of macro values keyed by name,
21019 # likewise P contains macro parameters if any. Preserve backslash
21020 # newline sequences.
21022 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21024 s/.\{148\}/&'"$ac_delim"'/g
21027 s/^[ ]*#[ ]*define[ ][ ]*/ /
21034 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
21036 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
21040 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
21041 D["\
1"]=" \
3\\\\\\n
"\\/p
21043 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
21048 s/.\{148\}/&'"$ac_delim"'/g
21053 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
21056 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
21058 ' <confdefs.h | sed '
21059 s/'"$ac_delim"'/"\\\
21060 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21062 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21063 for (key in D) D_is_set[key] = 1
21066 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21068 split(line, arg, " ")
21069 if (arg[1] == "#") {
21073 defundef
= substr
(arg
[1], 2)
21076 split(mac1
, mac2
, "(") #)
21078 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
21079 if (D_is_set
[macro
]) {
21080 # Preserve the white space surrounding the "#".
21081 print prefix
"define", macro P
[macro
] D
[macro
]
21084 # Replace #undef with comments. This is necessary, for example,
21085 # in the case of _POSIX_SOURCE, which is predefined and required
21086 # on some systems where configure will not decide to define it.
21087 if (defundef
== "undef") {
21088 print
"/*", prefix defundef
, macro
, "*/"
21096 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
21097 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
21098 fi # test -n "$CONFIG_HEADERS"
21101 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21106 :[FHLC
]) ac_mode
=$ac_tag; continue;;
21108 case $ac_mode$ac_tag in
21110 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
21111 :[FH
]-) ac_tag
=-:-;;
21112 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
21129 -) ac_f
="$tmp/stdin";;
21130 *) # Look for the file first in the build tree, then in the source tree
21131 # (if the path is not absolute). The absolute path cannot be DOS-style,
21132 # because $ac_f cannot contain `:'.
21136 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
21138 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
21140 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21141 as_fn_append ac_file_inputs
" '$ac_f'"
21144 # Let's still pretend it is `configure' which instantiates (i.e., don't
21145 # use $as_me), people would be surprised to read:
21146 # /* config.h. Generated by config.status. */
21147 configure_input
='Generated from '`
21148 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21150 if test x
"$ac_file" != x-
; then
21151 configure_input
="$ac_file. $configure_input"
21152 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21153 $as_echo "$as_me: creating $ac_file" >&6;}
21155 # Neutralize special characters interpreted by sed in replacement strings.
21156 case $configure_input in #(
21157 *\
&* |
*\|
* |
*\\* )
21158 ac_sed_conf_input
=`$as_echo "$configure_input" |
21159 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21160 *) ac_sed_conf_input
=$configure_input;;
21164 *:-:* |
*:-) cat >"$tmp/stdin" \
21165 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
21170 ac_dir
=`$as_dirname -- "$ac_file" ||
21171 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21172 X"$ac_file" : 'X\(//\)[^/]' \| \
21173 X"$ac_file" : 'X\(//\)$' \| \
21174 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21175 $as_echo X"$ac_file" |
21176 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21180 /^X\(\/\/\)[^/].*/{
21193 as_dir
="$ac_dir"; as_fn_mkdir_p
21197 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
21199 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21200 # A ".." for each directory in $ac_dir_suffix.
21201 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21202 case $ac_top_builddir_sub in
21203 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
21204 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
21207 ac_abs_top_builddir
=$ac_pwd
21208 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
21209 # for backward compatibility:
21210 ac_top_builddir
=$ac_top_build_prefix
21213 .
) # We are building in place.
21215 ac_top_srcdir
=$ac_top_builddir_sub
21216 ac_abs_top_srcdir
=$ac_pwd ;;
21217 [\\/]* | ?
:[\\/]* ) # Absolute name.
21218 ac_srcdir
=$srcdir$ac_dir_suffix;
21219 ac_top_srcdir
=$srcdir
21220 ac_abs_top_srcdir
=$srcdir ;;
21221 *) # Relative name.
21222 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
21223 ac_top_srcdir
=$ac_top_build_prefix$srcdir
21224 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
21226 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
21236 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
21237 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
21239 ac_MKDIR_P
=$MKDIR_P
21241 [\\/$
]* | ?
:[\\/]* ) ;;
21242 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
21246 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
21247 # If the template does not know about datarootdir, expand it.
21248 # FIXME: This hack should be removed a few years after 2.60.
21249 ac_datarootdir_hack
=; ac_datarootdir_seen
=
21260 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21261 *datarootdir
*) ac_datarootdir_seen
=yes;;
21262 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
21263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21264 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21266 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21267 ac_datarootdir_hack='
21268 s&@datadir@&$datadir&g
21269 s&@docdir@&$docdir&g
21270 s&@infodir@&$infodir&g
21271 s&@localedir@&$localedir&g
21272 s&@mandir@&$mandir&g
21273 s&\\\${datarootdir}&$datarootdir&g' ;;
21277 # Neutralize VPATH when `$srcdir' = `.'.
21278 # Shell code in configure.ac might set extrasub.
21279 # FIXME: do we really want to maintain this feature?
21280 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21281 ac_sed_extra="$ac_vpsub
21284 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
21286 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
21287 s|@configure_input@|
$ac_sed_conf_input|
;t t
21288 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
21289 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
21290 s
&@srcdir@
&$ac_srcdir&;t t
21291 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
21292 s
&@top_srcdir@
&$ac_top_srcdir&;t t
21293 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
21294 s
&@builddir@
&$ac_builddir&;t t
21295 s
&@abs_builddir@
&$ac_abs_builddir&;t t
21296 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
21297 s
&@INSTALL@
&$ac_INSTALL&;t t
21298 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
21299 $ac_datarootdir_hack
21301 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
21302 || as_fn_error "could not create
$ac_file" "$LINENO" 5
21304 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21305 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
21306 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
21307 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
21308 which seems to be undefined. Please make sure it is defined." >&5
21309 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
21310 which seems to be undefined. Please make sure it is defined." >&2;}
21314 -) cat "$tmp/out" && rm -f "$tmp/out";;
21315 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
21317 || as_fn_error "could not create $ac_file" "$LINENO" 5
21323 if test x"$ac_file" != x-; then
21325 $as_echo "/* $configure_input */" \
21326 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
21327 } >"$tmp/config.h" \
21328 || as_fn_error "could not create $ac_file" "$LINENO" 5
21329 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
21330 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21331 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21334 mv "$tmp/config.h" "$ac_file" \
21335 || as_fn_error "could not create $ac_file" "$LINENO" 5
21338 $as_echo "/* $configure_input */" \
21339 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
21340 || as_fn_error "could not create -" "$LINENO" 5
21342 # Compute "$ac_file"'s index
in $config_headers.
21345 for _am_header
in $config_headers :; do
21346 case $_am_header in
21347 $_am_arg |
$_am_arg:* )
21350 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
21353 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21354 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21355 X"$_am_arg" : 'X\(//\)[^/]' \| \
21356 X"$_am_arg" : 'X\(//\)$' \| \
21357 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21358 $as_echo X"$_am_arg" |
21359 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21363 /^X\(\/\/\)[^/].*/{
21375 s/.*/./; q'`/stamp-h
$_am_stamp_count
21378 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21379 $as_echo "$as_me: executing $ac_file commands" >&6;}
21384 case $ac_file$ac_mode in
21385 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
21386 # Autoconf 2.62 quotes --file arguments for eval, but not when files
21387 # are listed without --file. Let's play safe and only enable the eval
21388 # if we detect the quoting.
21389 case $CONFIG_FILES in
21390 *\'*) eval set x
"$CONFIG_FILES" ;;
21391 *) set x
$CONFIG_FILES ;;
21396 # Strip MF so we end up with the name of the file.
21397 mf
=`echo "$mf" | sed -e 's/:.*$//'`
21398 # Check whether this is an Automake generated Makefile or not.
21399 # We used to match only the files named `Makefile.in', but
21400 # some people rename them; so instead we look at the file content.
21401 # Grep'ing the first line is not enough: some people post-process
21402 # each Makefile.in and add a new line on top of each file to say so.
21403 # Grep'ing the whole file is not good either: AIX grep has a line
21404 # limit of 2048, but all sed's we know have understand at least 4000.
21405 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
21406 dirpart
=`$as_dirname -- "$mf" ||
21407 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21408 X"$mf" : 'X\(//\)[^/]' \| \
21409 X"$mf" : 'X\(//\)$' \| \
21410 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21412 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21416 /^X\(\/\/\)[^/].*/{
21432 # Extract the definition of DEPDIR, am__include, and am__quote
21433 # from the Makefile without running `make'.
21434 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
21435 test -z "$DEPDIR" && continue
21436 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
21437 test -z "am__include" && continue
21438 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
21439 # When using ansi2knr, U may be empty or an underscore; expand it
21440 U
=`sed -n 's/^U = //p' < "$mf"`
21441 # Find all dependency output files, they are included files with
21442 # $(DEPDIR) in their names. We invoke sed twice because it is the
21443 # simplest approach to changing $(DEPDIR) to its actual value in the
21445 for file in `sed -n "
21446 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21447 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21448 # Make sure the directory exists.
21449 test -f "$dirpart/$file" && continue
21450 fdir
=`$as_dirname -- "$file" ||
21451 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21452 X"$file" : 'X\(//\)[^/]' \| \
21453 X"$file" : 'X\(//\)$' \| \
21454 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21455 $as_echo X"$file" |
21456 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21460 /^X\(\/\/\)[^/].*/{
21473 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
21474 # echo "creating $dirpart/$file"
21475 echo '# dummy' > "$dirpart/$file"
21481 case x
$CONFIG_HEADERS in
21482 xconfig.h
:config.
in)
21493 ac_clean_files
=$ac_clean_files_save
21495 test $ac_write_fail = 0 ||
21496 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
21499 # configure is writing to config.log, and then calls config.status.
21500 # config.status does its own redirection, appending to config.log.
21501 # Unfortunately, on DOS this fails, as config.log is still kept open
21502 # by configure, so config.status won't be able to write to it; its
21503 # output is simply discarded. So we exec the FD to /dev/null,
21504 # effectively closing config.log, so it can be properly (re)opened and
21505 # appended to by config.status. When coming back to configure, we
21506 # need to make the FD available again.
21507 if test "$no_create" != yes; then
21509 ac_config_status_args
=
21510 test "$silent" = yes &&
21511 ac_config_status_args
="$ac_config_status_args --quiet"
21513 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
21515 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21516 # would make configure fail if this is the last instruction.
21517 $ac_cs_success || as_fn_exit $?
21519 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
21520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21521 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}