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
1058 HAVE_SIGNED_SIG_ATOMIC_T
1061 BITSIZEOF_SIG_ATOMIC_T
1064 APPLE_UNIVERSAL_BUILD
1068 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
1073 HAVE_UNSIGNED_LONG_LONG_INT
1076 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
1078 REPLACE_STRUCT_TIMEVAL
1079 REPLACE_GETTIMEOFDAY
1086 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
1092 REPLACE_SIGNBIT_USING_GCC
1161 HAVE_DECL_REMAINDERL
1342 GL_GENERATE_FNMATCH_H_FALSE
1343 GL_GENERATE_FNMATCH_H_TRUE
1346 GL_GENERATE_FLOAT_H_FALSE
1347 GL_GENERATE_FLOAT_H_TRUE
1349 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1357 GL_GENERATE_ERRNO_H_FALSE
1358 GL_GENERATE_ERRNO_H_TRUE
1360 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1363 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
1366 PRAGMA_SYSTEM_HEADER
1367 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1393 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1394 UNISTD_H_HAVE_WINSOCK2_H
1417 REPLACE_GETDTABLESIZE
1418 REPLACE_GETDOMAINNAME
1429 HAVE_DECL_SETHOSTNAME
1430 HAVE_DECL_GETUSERSHELL
1431 HAVE_DECL_GETPAGESIZE
1432 HAVE_DECL_GETLOGIN_R
1433 HAVE_DECL_GETDOMAINNAME
1472 GNULIB_UNISTD_H_SIGPIPE
1473 GNULIB_UNISTD_H_NONBLOCKING
1499 GNULIB_GETDTABLESIZE
1500 GNULIB_GETDOMAINNAME
1530 REPLACE_CANONICALIZE_FILE_NAME
1535 HAVE_STRUCT_RANDOM_DATA
1557 HAVE_DECL_GETLOADAVG
1558 HAVE_CANONICALIZE_FILE_NAME
1569 GNULIB_SECURE_GETENV
1572 GNULIB_REALLOC_POSIX
1590 GNULIB_CANONICALIZE_FILE_NAME
1594 GL_GENERATE_ALLOCA_H_FALSE
1595 GL_GENERATE_ALLOCA_H_TRUE
1598 GL_COND_LIBTOOL_FALSE
1599 GL_COND_LIBTOOL_TRUE
1626 MAINTAINER_MODE_FALSE
1627 MAINTAINER_MODE_TRUE
1655 program_transform_name
1668 enable_option_checking
1669 enable_maintainer_mode
1671 enable_dependency_tracking
1673 ac_precious_vars
='build_alias
1684 # Initialize some variables set by options.
1686 ac_init_version
=false
1687 ac_unrecognized_opts
=
1688 ac_unrecognized_sep
=
1689 # The variables have the same names as the options, with
1690 # dashes changed to underlines.
1691 cache_file
=/dev
/null
1698 program_transform_name
=s
,x
,x
,
1706 # Installation directory options.
1707 # These are left unexpanded so users can "make install exec_prefix=/foo"
1708 # and all the variables that are supposed to be based on exec_prefix
1709 # by default will actually change.
1710 # Use braces instead of parens because sh, perl, etc. also accept them.
1711 # (The list follows the same order as the GNU Coding Standards.)
1712 bindir
='${exec_prefix}/bin'
1713 sbindir
='${exec_prefix}/sbin'
1714 libexecdir
='${exec_prefix}/libexec'
1715 datarootdir
='${prefix}/share'
1716 datadir
='${datarootdir}'
1717 sysconfdir
='${prefix}/etc'
1718 sharedstatedir
='${prefix}/com'
1719 localstatedir
='${prefix}/var'
1720 includedir
='${prefix}/include'
1721 oldincludedir
='/usr/include'
1722 docdir
='${datarootdir}/doc/${PACKAGE}'
1723 infodir
='${datarootdir}/info'
1728 libdir
='${exec_prefix}/lib'
1729 localedir
='${datarootdir}/locale'
1730 mandir
='${datarootdir}/man'
1736 # If the previous option needs an argument, assign it.
1737 if test -n "$ac_prev"; then
1738 eval $ac_prev=\
$ac_option
1744 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1748 # Accept the important Cygnus configure options, so we can diagnose typos.
1750 case $ac_dashdash$ac_option in
1754 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1756 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1757 bindir
=$ac_optarg ;;
1759 -build |
--build |
--buil |
--bui |
--bu)
1760 ac_prev
=build_alias
;;
1761 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1762 build_alias
=$ac_optarg ;;
1764 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1765 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1766 ac_prev
=cache_file
;;
1767 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1768 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1769 cache_file
=$ac_optarg ;;
1771 --config-cache |
-C)
1772 cache_file
=config.cache
;;
1774 -datadir |
--datadir |
--datadi |
--datad)
1776 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1777 datadir
=$ac_optarg ;;
1779 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1780 |
--dataroo |
--dataro |
--datar)
1781 ac_prev
=datarootdir
;;
1782 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1783 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1784 datarootdir
=$ac_optarg ;;
1786 -disable-* |
--disable-*)
1787 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1788 # Reject names that are not valid shell variable names.
1789 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1790 as_fn_error
"invalid feature name: $ac_useropt"
1791 ac_useropt_orig
=$ac_useropt
1792 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1793 case $ac_user_opts in
1795 "enable_
$ac_useropt"
1797 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1798 ac_unrecognized_sep
=', ';;
1800 eval enable_
$ac_useropt=no
;;
1802 -docdir |
--docdir |
--docdi |
--doc |
--do)
1804 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1805 docdir
=$ac_optarg ;;
1807 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1809 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1810 dvidir
=$ac_optarg ;;
1812 -enable-* |
--enable-*)
1813 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1814 # Reject names that are not valid shell variable names.
1815 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1816 as_fn_error
"invalid feature name: $ac_useropt"
1817 ac_useropt_orig
=$ac_useropt
1818 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1819 case $ac_user_opts in
1821 "enable_
$ac_useropt"
1823 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1824 ac_unrecognized_sep
=', ';;
1826 eval enable_
$ac_useropt=\
$ac_optarg ;;
1828 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1829 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1830 |
--exec |
--exe |
--ex)
1831 ac_prev
=exec_prefix
;;
1832 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1833 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1834 |
--exec=* |
--exe=* |
--ex=*)
1835 exec_prefix
=$ac_optarg ;;
1837 -gas |
--gas |
--ga |
--g)
1838 # Obsolete; use --with-gas.
1841 -help |
--help |
--hel |
--he |
-h)
1842 ac_init_help
=long
;;
1843 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1844 ac_init_help
=recursive
;;
1845 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1846 ac_init_help
=short
;;
1848 -host |
--host |
--hos |
--ho)
1849 ac_prev
=host_alias
;;
1850 -host=* |
--host=* |
--hos=* |
--ho=*)
1851 host_alias
=$ac_optarg ;;
1853 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1855 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1857 htmldir
=$ac_optarg ;;
1859 -includedir |
--includedir |
--includedi |
--included |
--include \
1860 |
--includ |
--inclu |
--incl |
--inc)
1861 ac_prev
=includedir
;;
1862 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1863 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1864 includedir
=$ac_optarg ;;
1866 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1868 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1869 infodir
=$ac_optarg ;;
1871 -libdir |
--libdir |
--libdi |
--libd)
1873 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1874 libdir
=$ac_optarg ;;
1876 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1877 |
--libexe |
--libex |
--libe)
1878 ac_prev
=libexecdir
;;
1879 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1880 |
--libexe=* |
--libex=* |
--libe=*)
1881 libexecdir
=$ac_optarg ;;
1883 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1884 ac_prev
=localedir
;;
1885 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1886 localedir
=$ac_optarg ;;
1888 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1889 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1890 ac_prev
=localstatedir
;;
1891 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1892 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1893 localstatedir
=$ac_optarg ;;
1895 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1897 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1898 mandir
=$ac_optarg ;;
1900 -nfp |
--nfp |
--nf)
1901 # Obsolete; use --without-fp.
1904 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1905 |
--no-cr |
--no-c |
-n)
1908 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1909 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1912 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1913 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1914 |
--oldin |
--oldi |
--old |
--ol |
--o)
1915 ac_prev
=oldincludedir
;;
1916 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1917 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1918 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1919 oldincludedir
=$ac_optarg ;;
1921 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1923 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1924 prefix
=$ac_optarg ;;
1926 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1927 |
--program-pre |
--program-pr |
--program-p)
1928 ac_prev
=program_prefix
;;
1929 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1930 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1931 program_prefix
=$ac_optarg ;;
1933 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1934 |
--program-suf |
--program-su |
--program-s)
1935 ac_prev
=program_suffix
;;
1936 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1937 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1938 program_suffix
=$ac_optarg ;;
1940 -program-transform-name |
--program-transform-name \
1941 |
--program-transform-nam |
--program-transform-na \
1942 |
--program-transform-n |
--program-transform- \
1943 |
--program-transform |
--program-transfor \
1944 |
--program-transfo |
--program-transf \
1945 |
--program-trans |
--program-tran \
1946 |
--progr-tra |
--program-tr |
--program-t)
1947 ac_prev
=program_transform_name
;;
1948 -program-transform-name=* |
--program-transform-name=* \
1949 |
--program-transform-nam=* |
--program-transform-na=* \
1950 |
--program-transform-n=* |
--program-transform-=* \
1951 |
--program-transform=* |
--program-transfor=* \
1952 |
--program-transfo=* |
--program-transf=* \
1953 |
--program-trans=* |
--program-tran=* \
1954 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1955 program_transform_name
=$ac_optarg ;;
1957 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1959 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1960 pdfdir
=$ac_optarg ;;
1962 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1964 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1967 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1968 |
-silent |
--silent |
--silen |
--sile |
--sil)
1971 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1973 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1975 sbindir
=$ac_optarg ;;
1977 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1978 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1979 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1981 ac_prev
=sharedstatedir
;;
1982 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1983 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1984 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1986 sharedstatedir
=$ac_optarg ;;
1988 -site |
--site |
--sit)
1990 -site=* |
--site=* |
--sit=*)
1993 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1995 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1996 srcdir
=$ac_optarg ;;
1998 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1999 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
2000 ac_prev
=sysconfdir
;;
2001 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
2002 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
2003 sysconfdir
=$ac_optarg ;;
2005 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
2006 ac_prev
=target_alias
;;
2007 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
2008 target_alias
=$ac_optarg ;;
2010 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
2013 -version |
--version |
--versio |
--versi |
--vers |
-V)
2014 ac_init_version
=: ;;
2017 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
2018 # Reject names that are not valid shell variable names.
2019 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
2020 as_fn_error
"invalid package name: $ac_useropt"
2021 ac_useropt_orig
=$ac_useropt
2022 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2023 case $ac_user_opts in
2027 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
2028 ac_unrecognized_sep
=', ';;
2030 eval with_
$ac_useropt=\
$ac_optarg ;;
2032 -without-* |
--without-*)
2033 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
2034 # Reject names that are not valid shell variable names.
2035 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
2036 as_fn_error
"invalid package name: $ac_useropt"
2037 ac_useropt_orig
=$ac_useropt
2038 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2039 case $ac_user_opts in
2043 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
2044 ac_unrecognized_sep
=', ';;
2046 eval with_
$ac_useropt=no
;;
2049 # Obsolete; use --with-x.
2052 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
2053 |
--x-incl |
--x-inc |
--x-in |
--x-i)
2054 ac_prev
=x_includes
;;
2055 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
2056 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
2057 x_includes
=$ac_optarg ;;
2059 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
2060 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
2061 ac_prev
=x_libraries
;;
2062 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
2063 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
2064 x_libraries
=$ac_optarg ;;
2066 -*) as_fn_error
"unrecognized option: \`$ac_option'
2067 Try \`$0 --help' for more information."
2071 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
2072 # Reject names that are not valid shell variable names.
2073 case $ac_envvar in #(
2074 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
2075 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
2077 eval $ac_envvar=\
$ac_optarg
2078 export $ac_envvar ;;
2081 # FIXME: should be removed in autoconf 3.0.
2082 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
2083 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
2084 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
2085 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
2091 if test -n "$ac_prev"; then
2092 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
2093 as_fn_error
"missing argument to $ac_option"
2096 if test -n "$ac_unrecognized_opts"; then
2097 case $enable_option_checking in
2099 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
2100 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2104 # Check all directory arguments for consistency.
2105 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
2106 datadir sysconfdir sharedstatedir localstatedir includedir \
2107 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2108 libdir localedir mandir
2110 eval ac_val
=\$
$ac_var
2111 # Remove trailing slashes.
2114 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
2115 eval $ac_var=\
$ac_val;;
2117 # Be sure to have absolute directory names.
2119 [\\/$
]* | ?
:[\\/]* ) continue;;
2120 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
2122 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
2125 # There might be people who depend on the old broken behavior: `$host'
2126 # used to hold the argument of --host etc.
2127 # FIXME: To remove some day.
2130 target
=$target_alias
2132 # FIXME: To remove some day.
2133 if test "x$host_alias" != x
; then
2134 if test "x$build_alias" = x
; then
2135 cross_compiling
=maybe
2136 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
2137 If a cross compiler is detected then cross compile mode will be used." >&2
2138 elif test "x$build_alias" != "x$host_alias"; then
2144 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
2146 test "$silent" = yes && exec 6>/dev
/null
2149 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
2150 ac_ls_di
=`ls -di .` &&
2151 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
2152 as_fn_error
"working directory cannot be determined"
2153 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2154 as_fn_error
"pwd does not report name of working directory"
2157 # Find the source files, if location was not specified.
2158 if test -z "$srcdir"; then
2159 ac_srcdir_defaulted
=yes
2160 # Try the directory containing this script, then the parent directory.
2161 ac_confdir
=`$as_dirname -- "$as_myself" ||
2162 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2163 X"$as_myself" : 'X\(//\)[^/]' \| \
2164 X"$as_myself" : 'X\(//\)$' \| \
2165 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2166 $as_echo X"$as_myself" |
2167 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2185 if test ! -r "$srcdir/$ac_unique_file"; then
2189 ac_srcdir_defaulted
=no
2191 if test ! -r "$srcdir/$ac_unique_file"; then
2192 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
2193 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
2195 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
2197 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
2199 # When building in place, set srcdir=.
2200 if test "$ac_abs_confdir" = "$ac_pwd"; then
2203 # Remove unnecessary trailing slashes from srcdir.
2204 # Double slashes in file names in object file debugging info
2205 # mess up M-x gdb in Emacs.
2207 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2209 for ac_var
in $ac_precious_vars; do
2210 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
2211 eval ac_env_
${ac_var}_value
=\$
${ac_var}
2212 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
2213 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
2217 # Report the --help message.
2219 if test "$ac_init_help" = "long"; then
2220 # Omit some internal or obsolete options to make the list less imposing.
2221 # This message is too long to be a string in the A/UX 3.1 sh.
2223 \`configure' configures this package to adapt to many kinds of systems.
2225 Usage: $0 [OPTION]... [VAR=VALUE]...
2227 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2228 VAR=VALUE. See below for descriptions of some of the useful variables.
2230 Defaults for the options are specified in brackets.
2233 -h, --help display this help and exit
2234 --help=short display options specific to this package
2235 --help=recursive display the short help of all the included packages
2236 -V, --version display version information and exit
2237 -q, --quiet, --silent do not print \`checking...' messages
2238 --cache-file=FILE cache test results in FILE [disabled]
2239 -C, --config-cache alias for \`--cache-file=config.cache'
2240 -n, --no-create do not create output files
2241 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2243 Installation directories:
2244 --prefix=PREFIX install architecture-independent files in PREFIX
2245 [$ac_default_prefix]
2246 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2249 By default, \`make install' will install all the files in
2250 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2251 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2252 for instance \`--prefix=\$HOME'.
2254 For better control, use the options below.
2256 Fine tuning of the installation directories:
2257 --bindir=DIR user executables [EPREFIX/bin]
2258 --sbindir=DIR system admin executables [EPREFIX/sbin]
2259 --libexecdir=DIR program executables [EPREFIX/libexec]
2260 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2261 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2262 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2263 --libdir=DIR object code libraries [EPREFIX/lib]
2264 --includedir=DIR C header files [PREFIX/include]
2265 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2266 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2267 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2268 --infodir=DIR info documentation [DATAROOTDIR/info]
2269 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2270 --mandir=DIR man documentation [DATAROOTDIR/man]
2271 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
2272 --htmldir=DIR html documentation [DOCDIR]
2273 --dvidir=DIR dvi documentation [DOCDIR]
2274 --pdfdir=DIR pdf documentation [DOCDIR]
2275 --psdir=DIR ps documentation [DOCDIR]
2281 --program-prefix=PREFIX prepend PREFIX to installed program names
2282 --program-suffix=SUFFIX append SUFFIX to installed program names
2283 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
2286 --build=BUILD configure
for building on BUILD
[guessed
]
2287 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
2288 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
2292 if test -n "$ac_init_help"; then
2297 --disable-option-checking ignore unrecognized
--enable/--with options
2298 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
2299 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
2300 --enable-maintainer-mode enable make rules and dependencies not useful
2301 (and sometimes confusing
) to the casual installer
2302 --disable-largefile omit support
for large files
2303 --disable-dependency-tracking speeds up one-time build
2304 --enable-dependency-tracking do not reject slow dependency extractors
2306 Some influential environment variables
:
2307 CC C compiler
command
2308 CFLAGS C compiler flags
2309 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
2310 nonstandard directory
<lib dir
>
2311 LIBS libraries to pass to the linker
, e.g.
-l<library
>
2312 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
2313 you have headers
in a nonstandard directory
<include dir
>
2316 Use these variables to override the choices made by
`configure' or to help
2317 it to find libraries and programs with nonstandard names/locations.
2319 Report bugs to the package provider.
2324 if test "$ac_init_help" = "recursive"; then
2325 # If there are subdirs, report their specific --help.
2326 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2327 test -d "$ac_dir" ||
2328 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2333 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2335 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
2336 # A ".." for each directory in $ac_dir_suffix.
2337 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
2338 case $ac_top_builddir_sub in
2339 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2340 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2343 ac_abs_top_builddir=$ac_pwd
2344 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2345 # for backward compatibility:
2346 ac_top_builddir=$ac_top_build_prefix
2349 .) # We are building in place.
2351 ac_top_srcdir=$ac_top_builddir_sub
2352 ac_abs_top_srcdir=$ac_pwd ;;
2353 [\\/]* | ?:[\\/]* ) # Absolute name.
2354 ac_srcdir=$srcdir$ac_dir_suffix;
2355 ac_top_srcdir=$srcdir
2356 ac_abs_top_srcdir=$srcdir ;;
2358 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2359 ac_top_srcdir=$ac_top_build_prefix$srcdir
2360 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2362 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2364 cd "$ac_dir" || { ac_status=$?; continue; }
2365 # Check for guested configure.
2366 if test -f "$ac_srcdir/configure.gnu"; then
2368 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2369 elif test -f "$ac_srcdir/configure"; then
2371 $SHELL "$ac_srcdir/configure" --help=recursive
2373 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2375 cd "$ac_pwd" || { ac_status=$?; break; }
2379 test -n "$ac_init_help" && exit $ac_status
2380 if $ac_init_version; then
2383 generated by GNU Autoconf 2.64
2385 Copyright (C) 2009 Free Software Foundation, Inc.
2386 This configure script is free software; the Free Software Foundation
2387 gives unlimited permission to copy, distribute and modify it.
2392 ## ------------------------ ##
2393 ## Autoconf initialization. ##
2394 ## ------------------------ ##
2396 # ac_fn_c_try_compile LINENO
2397 # --------------------------
2398 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2399 ac_fn_c_try_compile ()
2401 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2402 rm -f conftest.$ac_objext
2403 if { { ac_try="$ac_compile"
2405 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2406 *) ac_try_echo
=$ac_try;;
2408 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2409 $as_echo "$ac_try_echo"; } >&5
2410 (eval "$ac_compile") 2>conftest.err
2412 if test -s conftest.err
; then
2413 grep -v '^ *+' conftest.err
>conftest.er1
2414 cat conftest.er1
>&5
2415 mv -f conftest.er1 conftest.err
2417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2418 test $ac_status = 0; } && {
2419 test -z "$ac_c_werror_flag" ||
2420 test ! -s conftest.err
2421 } && test -s conftest.
$ac_objext; then :
2424 $as_echo "$as_me: failed program was:" >&5
2425 sed 's/^/| /' conftest.
$ac_ext >&5
2429 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2432 } # ac_fn_c_try_compile
2434 # ac_fn_c_try_cpp LINENO
2435 # ----------------------
2436 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2439 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2440 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2442 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2443 *) ac_try_echo=$ac_try;;
2445 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2446 $as_echo "$ac_try_echo"; } >&5
2447 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2449 if test -s conftest.err; then
2450 grep -v '^ *+' conftest.err >conftest.er1
2451 cat conftest.er1 >&5
2452 mv -f conftest.er1 conftest.err
2454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2455 test $ac_status = 0; } >/dev/null && {
2456 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2457 test ! -s conftest.err
2461 $as_echo "$as_me: failed program was:" >&5
2462 sed 's/^/| /' conftest.$ac_ext >&5
2466 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2471 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2472 # -------------------------------------------------------
2473 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2474 # the include files in INCLUDES and setting the cache variable VAR
2476 ac_fn_c_check_header_mongrel ()
2478 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2479 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2481 $as_echo_n "checking for $2... " >&6; }
2482 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2483 $as_echo_n "(cached) " >&6
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2487 $as_echo "$ac_res" >&6; }
2489 # Is the header compilable?
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2491 $as_echo_n "checking $2 usability... " >&6; }
2492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2493 /* end confdefs.h. */
2497 if ac_fn_c_try_compile "$LINENO"; then :
2498 ac_header_compiler=yes
2500 ac_header_compiler=no
2502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2504 $as_echo "$ac_header_compiler" >&6; }
2506 # Is the header present?
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2508 $as_echo_n "checking $2 presence... " >&6; }
2509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2510 /* end confdefs.h. */
2513 if ac_fn_c_try_cpp "$LINENO"; then :
2514 ac_header_preproc=yes
2516 ac_header_preproc=no
2518 rm -f conftest.err conftest.$ac_ext
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2520 $as_echo "$ac_header_preproc" >&6; }
2522 # So? What about this header?
2523 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2526 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2528 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2532 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2534 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2536 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2538 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2540 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2544 $as_echo_n "checking for $2... " >&6; }
2545 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2546 $as_echo_n "(cached) " >&6
2548 eval "$3=\$ac_header_compiler"
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2552 $as_echo "$ac_res" >&6; }
2554 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2556 } # ac_fn_c_check_header_mongrel
2558 # ac_fn_c_try_run LINENO
2559 # ----------------------
2560 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2561 # that executables *can* be run.
2564 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2565 if { { ac_try="$ac_link"
2567 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2568 *) ac_try_echo
=$ac_try;;
2570 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2571 $as_echo "$ac_try_echo"; } >&5
2572 (eval "$ac_link") 2>&5
2574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2575 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2576 { { case "(($ac_try" in
2577 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2578 *) ac_try_echo=$ac_try;;
2580 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2581 $as_echo "$ac_try_echo"; } >&5
2582 (eval "$ac_try") 2>&5
2584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2585 test $ac_status = 0; }; }; then :
2588 $as_echo "$as_me: program exited with status $ac_status" >&5
2589 $as_echo "$as_me: failed program was:" >&5
2590 sed 's/^/| /' conftest.$ac_ext >&5
2592 ac_retval=$ac_status
2594 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2595 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2600 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2601 # -------------------------------------------------------
2602 # Tests whether HEADER exists and can be compiled using the include files in
2603 # INCLUDES, setting the cache variable VAR accordingly.
2604 ac_fn_c_check_header_compile ()
2606 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2608 $as_echo_n "checking for $2... " >&6; }
2609 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2610 $as_echo_n "(cached) " >&6
2612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2613 /* end confdefs.h. */
2617 if ac_fn_c_try_compile "$LINENO"; then :
2622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2626 $as_echo "$ac_res" >&6; }
2627 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2629 } # ac_fn_c_check_header_compile
2631 # ac_fn_c_try_link LINENO
2632 # -----------------------
2633 # Try to link conftest.$ac_ext, and return whether this succeeded.
2636 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2637 rm -f conftest.$ac_objext conftest$ac_exeext
2638 if { { ac_try="$ac_link"
2640 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2641 *) ac_try_echo
=$ac_try;;
2643 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2644 $as_echo "$ac_try_echo"; } >&5
2645 (eval "$ac_link") 2>conftest.err
2647 if test -s conftest.err
; then
2648 grep -v '^ *+' conftest.err
>conftest.er1
2649 cat conftest.er1
>&5
2650 mv -f conftest.er1 conftest.err
2652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2653 test $ac_status = 0; } && {
2654 test -z "$ac_c_werror_flag" ||
2655 test ! -s conftest.err
2656 } && test -s conftest
$ac_exeext && {
2657 test "$cross_compiling" = yes ||
2658 $as_test_x conftest
$ac_exeext
2662 $as_echo "$as_me: failed program was:" >&5
2663 sed 's/^/| /' conftest.
$ac_ext >&5
2667 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2668 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2669 # interfere with the next link command; also delete a directory that is
2670 # left behind by Apple's compiler. We do this before executing the actions.
2671 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2672 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2675 } # ac_fn_c_try_link
2677 # ac_fn_c_check_func LINENO FUNC VAR
2678 # ----------------------------------
2679 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2680 ac_fn_c_check_func
()
2682 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2684 $as_echo_n "checking for $2... " >&6; }
2685 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2686 $as_echo_n "(cached) " >&6
2688 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2689 /* end confdefs.h. */
2690 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2691 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2692 #define $2 innocuous_$2
2694 /* System header to define __stub macros and hopefully few prototypes,
2695 which can conflict with char $2 (); below.
2696 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2697 <limits.h> exists even on freestanding compilers. */
2700 # include <limits.h>
2702 # include <assert.h>
2707 /* Override any GCC internal prototype to avoid an error.
2708 Use char because int might match the return type of a GCC
2709 builtin and then its argument prototype would still apply. */
2714 /* The GNU C library defines this for functions which it implements
2715 to always fail with ENOSYS. Some functions are actually named
2716 something starting with __ and the normal name is an alias. */
2717 #if defined __stub_$2 || defined __stub___$2
2729 if ac_fn_c_try_link
"$LINENO"; then :
2734 rm -f core conftest.err conftest.
$ac_objext \
2735 conftest
$ac_exeext conftest.
$ac_ext
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2739 $as_echo "$ac_res" >&6; }
2740 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2742 } # ac_fn_c_check_func
2744 # ac_fn_c_check_decl LINENO SYMBOL VAR
2745 # ------------------------------------
2746 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2747 ac_fn_c_check_decl
()
2749 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2751 $as_echo_n "checking whether $2 is declared... " >&6; }
2752 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2753 $as_echo_n "(cached) " >&6
2755 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2756 /* end confdefs.h. */
2769 if ac_fn_c_try_compile
"$LINENO"; then :
2774 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2778 $as_echo "$ac_res" >&6; }
2779 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2781 } # ac_fn_c_check_decl
2783 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2784 # --------------------------------------------
2785 # Tries to find the compile-time value of EXPR in a program that includes
2786 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2788 ac_fn_c_compute_int
()
2790 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2791 if test "$cross_compiling" = yes; then
2792 # Depending upon the size, compute the lo and hi bounds.
2793 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2794 /* end confdefs.h. */
2799 static int test_array [1 - 2 * !(($2) >= 0)];
2806 if ac_fn_c_try_compile
"$LINENO"; then :
2809 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2810 /* end confdefs.h. */
2815 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2822 if ac_fn_c_try_compile
"$LINENO"; then :
2823 ac_hi
=$ac_mid; break
2825 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2826 if test $ac_lo -le $ac_mid; then
2830 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2832 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2835 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2836 /* end confdefs.h. */
2841 static int test_array [1 - 2 * !(($2) < 0)];
2848 if ac_fn_c_try_compile
"$LINENO"; then :
2851 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2852 /* end confdefs.h. */
2857 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2864 if ac_fn_c_try_compile
"$LINENO"; then :
2865 ac_lo
=$ac_mid; break
2867 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2868 if test $ac_mid -le $ac_hi; then
2872 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2874 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2879 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2881 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2882 # Binary search between lo and hi bounds.
2883 while test "x$ac_lo" != "x$ac_hi"; do
2884 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2885 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2886 /* end confdefs.h. */
2891 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2898 if ac_fn_c_try_compile
"$LINENO"; then :
2901 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2903 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2906 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2910 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2911 /* end confdefs.h. */
2913 static long int longval () { return $2; }
2914 static unsigned long int ulongval () { return $2; }
2921 FILE *f = fopen ("conftest.val", "w");
2926 long int i = longval ();
2929 fprintf (f, "%ld", i);
2933 unsigned long int i = ulongval ();
2936 fprintf (f, "%lu", i);
2938 /* Do not output a trailing newline, as this causes \r\n confusion
2939 on some platforms. */
2940 return ferror (f) || fclose (f) != 0;
2946 if ac_fn_c_try_run
"$LINENO"; then :
2947 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2951 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2952 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2956 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2959 } # ac_fn_c_compute_int
2961 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2962 # -------------------------------------------
2963 # Tests whether TYPE exists after having included INCLUDES, setting cache
2964 # variable VAR accordingly.
2965 ac_fn_c_check_type
()
2967 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2969 $as_echo_n "checking for $2... " >&6; }
2970 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2971 $as_echo_n "(cached) " >&6
2974 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2975 /* end confdefs.h. */
2986 if ac_fn_c_try_compile
"$LINENO"; then :
2987 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2988 /* end confdefs.h. */
2999 if ac_fn_c_try_compile
"$LINENO"; then :
3004 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3006 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3010 $as_echo "$ac_res" >&6; }
3011 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
3013 } # ac_fn_c_check_type
3014 cat >config.log
<<_ACEOF
3015 This file contains any messages produced by compilers while
3016 running configure, to aid debugging if configure makes a mistake.
3018 It was created by $as_me, which was
3019 generated by GNU Autoconf 2.64. Invocation command line was
3031 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3032 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3033 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3034 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3035 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3037 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3038 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3040 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3041 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3042 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3043 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3044 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3045 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3046 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3050 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3054 test -z "$as_dir" && as_dir
=.
3055 $as_echo "PATH: $as_dir"
3071 # Keep a trace of the command line.
3072 # Strip out --no-create and --no-recursion so they do not pile up.
3073 # Strip out --silent because we don't want to record it for future runs.
3074 # Also quote any args containing shell meta-characters.
3075 # Make two passes to allow for proper duplicate-argument suppression.
3079 ac_must_keep_next
=false
3085 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
3086 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
3087 |
-silent |
--silent |
--silen |
--sile |
--sil)
3090 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3093 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
3095 as_fn_append ac_configure_args1
" '$ac_arg'"
3096 if test $ac_must_keep_next = true
; then
3097 ac_must_keep_next
=false
# Got value, back to normal.
3100 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
3101 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
3102 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
3103 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
3104 case "$ac_configure_args0 " in
3105 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3108 -* ) ac_must_keep_next
=true
;;
3111 as_fn_append ac_configure_args
" '$ac_arg'"
3116 { ac_configure_args0
=; unset ac_configure_args0
;}
3117 { ac_configure_args1
=; unset ac_configure_args1
;}
3119 # When interrupted or exit'd, cleanup temporary files, and complete
3120 # config.log. We remove comments because anyway the quotes in there
3121 # would cause problems or look ugly.
3122 # WARNING: Use '\'' to represent an apostrophe within the trap.
3123 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3124 trap 'exit_status=$?
3125 # Save into config.log some information that might help in debugging.
3130 ## ---------------- ##
3131 ## Cache variables. ##
3132 ## ---------------- ##
3135 # The following way of writing the cache mishandles newlines in values,
3137 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3138 eval ac_val=\$$ac_var
3142 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3143 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3146 _ | IFS | as_nl) ;; #(
3147 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3148 *) { eval $ac_var=; unset $ac_var;} ;;
3153 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3154 *${as_nl}ac_space=\ *)
3156 "s/'\''/'\''\\\\'\'''\''/g;
3157 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3160 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3168 ## ----------------- ##
3169 ## Output variables. ##
3170 ## ----------------- ##
3173 for ac_var in $ac_subst_vars
3175 eval ac_val=\$$ac_var
3177 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3179 $as_echo "$ac_var='\''$ac_val'\''"
3183 if test -n "$ac_subst_files"; then
3185 ## ------------------- ##
3186 ## File substitutions. ##
3187 ## ------------------- ##
3190 for ac_var
in $ac_subst_files
3192 eval ac_val
=\$
$ac_var
3194 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3196 $as_echo "$ac_var='\''$ac_val'\''"
3201 if test -s confdefs.h; then
3211 test "$ac_signal" != 0 &&
3212 $as_echo "$as_me: caught signal $ac_signal"
3213 $as_echo "$as_me: exit $exit_status"
3215 rm -f core *.core core.conftest.* &&
3216 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3219 for ac_signal
in 1 2 13 15; do
3220 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3224 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3225 rm -f -r conftest
* confdefs.h
3227 $as_echo "/* confdefs.h */" > confdefs.h
3229 # Predefined preprocessor variables.
3231 cat >>confdefs.h
<<_ACEOF
3232 #define PACKAGE_NAME "$PACKAGE_NAME"
3235 cat >>confdefs.h
<<_ACEOF
3236 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3239 cat >>confdefs.h
<<_ACEOF
3240 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3243 cat >>confdefs.h
<<_ACEOF
3244 #define PACKAGE_STRING "$PACKAGE_STRING"
3247 cat >>confdefs.h
<<_ACEOF
3248 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3251 cat >>confdefs.h
<<_ACEOF
3252 #define PACKAGE_URL "$PACKAGE_URL"
3256 # Let the site file select an alternate cache file if it wants to.
3257 # Prefer an explicitly selected file to automatically selected ones.
3260 if test -n "$CONFIG_SITE"; then
3261 ac_site_file1
=$CONFIG_SITE
3262 elif test "x$prefix" != xNONE
; then
3263 ac_site_file1
=$prefix/share
/config.site
3264 ac_site_file2
=$prefix/etc
/config.site
3266 ac_site_file1
=$ac_default_prefix/share
/config.site
3267 ac_site_file2
=$ac_default_prefix/etc
/config.site
3269 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
3271 test "x$ac_site_file" = xNONE
&& continue
3272 if test -r "$ac_site_file"; then
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3274 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3275 sed 's/^/| /' "$ac_site_file" >&5
3280 if test -r "$cache_file"; then
3281 # Some versions of bash will fail to source /dev/null (special
3282 # files actually), so we avoid doing that.
3283 if test -f "$cache_file"; then
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3285 $as_echo "$as_me: loading cache $cache_file" >&6;}
3287 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
3288 *) .
"./$cache_file";;
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3293 $as_echo "$as_me: creating cache $cache_file" >&6;}
3297 as_fn_append ac_func_list
" canonicalize_file_name"
3298 as_fn_append ac_func_list
" getcwd"
3299 as_fn_append ac_func_list
" readlink"
3300 as_fn_append ac_func_list
" realpath"
3301 as_fn_append ac_header_list
" sys/param.h"
3302 as_fn_append ac_header_list
" dirent.h"
3303 as_fn_append ac_func_list
" btowc"
3304 as_fn_append ac_func_list
" isblank"
3305 as_fn_append ac_func_list
" iswctype"
3306 as_fn_append ac_func_list
" mbsrtowcs"
3307 as_fn_append ac_func_list
" mempcpy"
3308 as_fn_append ac_func_list
" wmemchr"
3309 as_fn_append ac_func_list
" wmemcpy"
3310 as_fn_append ac_func_list
" wmempcpy"
3311 as_fn_append ac_header_list
" wctype.h"
3312 gl_fnmatch_required
=GNU
3313 as_fn_append ac_header_list
" sys/time.h"
3314 as_fn_append ac_header_list
" sys/socket.h"
3315 as_fn_append ac_func_list
" gettimeofday"
3316 as_fn_append ac_header_list
" wchar.h"
3317 as_fn_append ac_header_list
" stdint.h"
3318 as_fn_append ac_header_list
" inttypes.h"
3319 as_fn_append ac_header_list
" unistd.h"
3320 as_fn_append ac_func_list
" symlink"
3321 as_fn_append ac_func_list
" lstat"
3322 as_fn_append ac_header_list
" math.h"
3323 as_fn_append ac_func_list
" mbsinit"
3324 as_fn_append ac_func_list
" mbrtowc"
3325 as_fn_append ac_header_list
" sys/mman.h"
3326 as_fn_append ac_func_list
" mprotect"
3327 as_fn_append ac_func_list
" link"
3328 as_fn_append ac_header_list
" sys/stat.h"
3329 as_fn_append ac_header_list
" features.h"
3330 as_fn_append ac_func_list
" iswcntrl"
3331 # Check that the precious variables saved in the cache have kept the same
3333 ac_cache_corrupted
=false
3334 for ac_var
in $ac_precious_vars; do
3335 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
3336 eval ac_new_set
=\
$ac_env_${ac_var}_set
3337 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
3338 eval ac_new_val
=\
$ac_env_${ac_var}_value
3339 case $ac_old_set,$ac_new_set in
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3342 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3343 ac_cache_corrupted
=: ;;
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3346 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3347 ac_cache_corrupted
=: ;;
3350 if test "x$ac_old_val" != "x$ac_new_val"; then
3351 # differences in whitespace do not lead to failure.
3352 ac_old_val_w
=`echo x $ac_old_val`
3353 ac_new_val_w
=`echo x $ac_new_val`
3354 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3356 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3357 ac_cache_corrupted
=:
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3360 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3361 eval $ac_var=\
$ac_old_val
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3364 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3366 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3369 # Pass precious variables to config.status.
3370 if test "$ac_new_set" = set; then
3372 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3373 *) ac_arg
=$ac_var=$ac_new_val ;;
3375 case " $ac_configure_args " in
3376 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3377 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
3381 if $ac_cache_corrupted; then
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3383 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3385 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3386 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3388 ## -------------------- ##
3389 ## Main body of script. ##
3390 ## -------------------- ##
3393 ac_cpp
='$CPP $CPPFLAGS'
3394 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3395 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3396 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3399 ac_config_headers
="$ac_config_headers config.h:config.in"
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3403 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3404 # Check whether --enable-maintainer-mode was given.
3405 if test "${enable_maintainer_mode+set}" = set; then :
3406 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
3408 USE_MAINTAINER_MODE
=no
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3412 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3413 if test $USE_MAINTAINER_MODE = yes; then
3414 MAINTAINER_MODE_TRUE
=
3415 MAINTAINER_MODE_FALSE
='#'
3417 MAINTAINER_MODE_TRUE
='#'
3418 MAINTAINER_MODE_FALSE
=
3421 MAINT
=$MAINTAINER_MODE_TRUE
3426 ac_cpp
='$CPP $CPPFLAGS'
3427 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3428 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3429 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3430 if test -n "$ac_tool_prefix"; then
3431 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3432 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3434 $as_echo_n "checking for $ac_word... " >&6; }
3435 if test "${ac_cv_prog_CC+set}" = set; then :
3436 $as_echo_n "(cached) " >&6
3438 if test -n "$CC"; then
3439 ac_cv_prog_CC
="$CC" # Let the user override the test.
3441 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3445 test -z "$as_dir" && as_dir
=.
3446 for ac_exec_ext
in '' $ac_executable_extensions; do
3447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3448 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3459 if test -n "$CC"; then
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3461 $as_echo "$CC" >&6; }
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3464 $as_echo "no" >&6; }
3469 if test -z "$ac_cv_prog_CC"; then
3471 # Extract the first word of "gcc", so it can be a program name with args.
3472 set dummy gcc
; ac_word
=$2
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3474 $as_echo_n "checking for $ac_word... " >&6; }
3475 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3476 $as_echo_n "(cached) " >&6
3478 if test -n "$ac_ct_CC"; then
3479 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3481 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3485 test -z "$as_dir" && as_dir
=.
3486 for ac_exec_ext
in '' $ac_executable_extensions; do
3487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3488 ac_cv_prog_ac_ct_CC
="gcc"
3489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3498 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3499 if test -n "$ac_ct_CC"; then
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3501 $as_echo "$ac_ct_CC" >&6; }
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3504 $as_echo "no" >&6; }
3507 if test "x$ac_ct_CC" = x
; then
3510 case $cross_compiling:$ac_tool_warned in
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3513 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3514 ac_tool_warned
=yes ;;
3522 if test -z "$CC"; then
3523 if test -n "$ac_tool_prefix"; then
3524 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3525 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3527 $as_echo_n "checking for $ac_word... " >&6; }
3528 if test "${ac_cv_prog_CC+set}" = set; then :
3529 $as_echo_n "(cached) " >&6
3531 if test -n "$CC"; then
3532 ac_cv_prog_CC
="$CC" # Let the user override the test.
3534 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3538 test -z "$as_dir" && as_dir
=.
3539 for ac_exec_ext
in '' $ac_executable_extensions; do
3540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3541 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3552 if test -n "$CC"; then
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3554 $as_echo "$CC" >&6; }
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3557 $as_echo "no" >&6; }
3563 if test -z "$CC"; then
3564 # Extract the first word of "cc", so it can be a program name with args.
3565 set dummy cc
; ac_word
=$2
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3567 $as_echo_n "checking for $ac_word... " >&6; }
3568 if test "${ac_cv_prog_CC+set}" = set; then :
3569 $as_echo_n "(cached) " >&6
3571 if test -n "$CC"; then
3572 ac_cv_prog_CC
="$CC" # Let the user override the test.
3575 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3579 test -z "$as_dir" && as_dir
=.
3580 for ac_exec_ext
in '' $ac_executable_extensions; do
3581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3582 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3583 ac_prog_rejected
=yes
3587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3594 if test $ac_prog_rejected = yes; then
3595 # We found a bogon in the path, so make sure we never use it.
3596 set dummy
$ac_cv_prog_CC
3598 if test $# != 0; then
3599 # We chose a different compiler from the bogus one.
3600 # However, it has the same basename, so the bogon will be chosen
3601 # first if we set CC to just the basename; use the full file name.
3603 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3609 if test -n "$CC"; then
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3611 $as_echo "$CC" >&6; }
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3614 $as_echo "no" >&6; }
3619 if test -z "$CC"; then
3620 if test -n "$ac_tool_prefix"; then
3621 for ac_prog
in cl.exe
3623 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3624 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3626 $as_echo_n "checking for $ac_word... " >&6; }
3627 if test "${ac_cv_prog_CC+set}" = set; then :
3628 $as_echo_n "(cached) " >&6
3630 if test -n "$CC"; then
3631 ac_cv_prog_CC
="$CC" # Let the user override the test.
3633 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3637 test -z "$as_dir" && as_dir
=.
3638 for ac_exec_ext
in '' $ac_executable_extensions; do
3639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3640 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3651 if test -n "$CC"; then
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3653 $as_echo "$CC" >&6; }
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3656 $as_echo "no" >&6; }
3660 test -n "$CC" && break
3663 if test -z "$CC"; then
3665 for ac_prog
in cl.exe
3667 # Extract the first word of "$ac_prog", so it can be a program name with args.
3668 set dummy
$ac_prog; ac_word
=$2
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3670 $as_echo_n "checking for $ac_word... " >&6; }
3671 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3672 $as_echo_n "(cached) " >&6
3674 if test -n "$ac_ct_CC"; then
3675 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3677 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3681 test -z "$as_dir" && as_dir
=.
3682 for ac_exec_ext
in '' $ac_executable_extensions; do
3683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3684 ac_cv_prog_ac_ct_CC
="$ac_prog"
3685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3694 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3695 if test -n "$ac_ct_CC"; then
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3697 $as_echo "$ac_ct_CC" >&6; }
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3700 $as_echo "no" >&6; }
3704 test -n "$ac_ct_CC" && break
3707 if test "x$ac_ct_CC" = x
; then
3710 case $cross_compiling:$ac_tool_warned in
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3713 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3714 ac_tool_warned
=yes ;;
3723 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3724 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3725 as_fn_error
"no acceptable C compiler found in \$PATH
3726 See \`config.log' for more details." "$LINENO" 5; }
3728 # Provide some information about the compiler.
3729 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3732 for ac_option
in --version -v -V -qversion; do
3733 { { ac_try
="$ac_compiler $ac_option >&5"
3735 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3736 *) ac_try_echo=$ac_try;;
3738 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3739 $as_echo "$ac_try_echo"; } >&5
3740 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3742 if test -s conftest.err; then
3744 ... rest of stderr output deleted ...
3745 10q' conftest.err >conftest.er1
3746 cat conftest.er1 >&5
3747 rm -f conftest.er1 conftest.err
3749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3750 test $ac_status = 0; }
3753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3754 /* end confdefs.h. */
3759 FILE *f = fopen ("conftest.out", "w");
3760 return ferror (f) || fclose (f) != 0;
3766 ac_clean_files_save=$ac_clean_files
3767 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3768 # Try to create an executable without -o first, disregard a.out.
3769 # It will help us diagnose broken compilers, and finding out an intuition
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3772 $as_echo_n "checking for C compiler default output file name... " >&6; }
3773 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3775 # The possible output files:
3776 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3779 for ac_file in $ac_files
3782 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3783 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3788 if { { ac_try="$ac_link_default"
3790 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3791 *) ac_try_echo
=$ac_try;;
3793 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3794 $as_echo "$ac_try_echo"; } >&5
3795 (eval "$ac_link_default") 2>&5
3797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3798 test $ac_status = 0; }; then :
3799 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3800 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3801 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3802 # so that the user can short-circuit this test for compilers unknown to
3804 for ac_file
in $ac_files ''
3806 test -f "$ac_file" ||
continue
3808 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3811 # We found the default executable, but exeext='' is most
3815 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3817 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3819 # We set ac_cv_exeext here because the later test for it is not
3820 # safe: cross compilers may not add the suffix if given an `-o'
3821 # argument, so we may need to know it at that point already.
3822 # Even if this section looks crufty: it has the advantage of
3829 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3835 $as_echo "$ac_file" >&6; }
3836 if test -z "$ac_file"; then :
3837 $as_echo "$as_me: failed program was:" >&5
3838 sed 's/^/| /' conftest.
$ac_ext >&5
3840 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3841 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3842 { as_fn_set_status
77
3843 as_fn_error
"C compiler cannot create executables
3844 See \`config.log' for more details." "$LINENO" 5; }; }
3846 ac_exeext
=$ac_cv_exeext
3848 # Check that the compiler produces executables we can run. If not, either
3849 # the compiler is broken, or we cross compile.
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3851 $as_echo_n "checking whether the C compiler works... " >&6; }
3852 # If not cross compiling, check that we can run a simple program.
3853 if test "$cross_compiling" != yes; then
3854 if { ac_try
='./$ac_file'
3855 { { case "(($ac_try" in
3856 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3857 *) ac_try_echo=$ac_try;;
3859 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3860 $as_echo "$ac_try_echo"; } >&5
3861 (eval "$ac_try") 2>&5
3863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3864 test $ac_status = 0; }; }; then
3867 if test "$cross_compiling" = maybe; then
3870 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3871 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3872 as_fn_error "cannot run C compiled programs.
3873 If you meant to cross compile
, use \
`--host'.
3874 See \`config.log
' for more details." "$LINENO" 5; }
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3879 $as_echo "yes" >&6; }
3881 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3882 ac_clean_files=$ac_clean_files_save
3883 # Check that the compiler produces executables we can run. If not, either
3884 # the compiler is broken, or we cross compile.
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3886 $as_echo_n "checking whether we are cross compiling... " >&6; }
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3888 $as_echo "$cross_compiling" >&6; }
3890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3891 $as_echo_n "checking for suffix of executables... " >&6; }
3892 if { { ac_try="$ac_link"
3894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3895 *) ac_try_echo=$ac_try;;
3897 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3898 $as_echo "$ac_try_echo"; } >&5
3899 (eval "$ac_link") 2>&5
3901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3902 test $ac_status = 0; }; then :
3903 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3904 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3905 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3907 for ac_file
in conftest.exe conftest conftest.
*; do
3908 test -f "$ac_file" ||
continue
3910 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3911 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3917 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3918 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3919 as_fn_error
"cannot compute suffix of executables: cannot compile and link
3920 See \`config.log' for more details." "$LINENO" 5; }
3922 rm -f conftest
$ac_cv_exeext
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3924 $as_echo "$ac_cv_exeext" >&6; }
3926 rm -f conftest.
$ac_ext
3927 EXEEXT
=$ac_cv_exeext
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3930 $as_echo_n "checking for suffix of object files... " >&6; }
3931 if test "${ac_cv_objext+set}" = set; then :
3932 $as_echo_n "(cached) " >&6
3934 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3935 /* end confdefs.h. */
3945 rm -f conftest.o conftest.obj
3946 if { { ac_try
="$ac_compile"
3948 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3949 *) ac_try_echo=$ac_try;;
3951 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3952 $as_echo "$ac_try_echo"; } >&5
3953 (eval "$ac_compile") 2>&5
3955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3956 test $ac_status = 0; }; then :
3957 for ac_file in conftest.o conftest.obj conftest.*; do
3958 test -f "$ac_file" || continue;
3960 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3961 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3966 $as_echo "$as_me: failed program was:" >&5
3967 sed 's/^/| /' conftest.$ac_ext >&5
3969 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3970 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3971 as_fn_error "cannot compute suffix of object files
: cannot compile
3972 See \
`config.log' for more details." "$LINENO" 5; }
3974 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3977 $as_echo "$ac_cv_objext" >&6; }
3978 OBJEXT=$ac_cv_objext
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3981 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3982 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3983 $as_echo_n "(cached) " >&6
3985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3986 /* end confdefs.h. */
3999 if ac_fn_c_try_compile "$LINENO"; then :
4004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4005 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4009 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4010 if test $ac_compiler_gnu = yes; then
4015 ac_test_CFLAGS=${CFLAGS+set}
4016 ac_save_CFLAGS=$CFLAGS
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4018 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4019 if test "${ac_cv_prog_cc_g+set}" = set; then :
4020 $as_echo_n "(cached) " >&6
4022 ac_save_c_werror_flag=$ac_c_werror_flag
4023 ac_c_werror_flag=yes
4026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4027 /* end confdefs.h. */
4037 if ac_fn_c_try_compile "$LINENO"; then :
4041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4042 /* end confdefs.h. */
4052 if ac_fn_c_try_compile "$LINENO"; then :
4055 ac_c_werror_flag=$ac_save_c_werror_flag
4057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4058 /* end confdefs.h. */
4068 if ac_fn_c_try_compile "$LINENO"; then :
4071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4076 ac_c_werror_flag=$ac_save_c_werror_flag
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4079 $as_echo "$ac_cv_prog_cc_g" >&6; }
4080 if test "$ac_test_CFLAGS" = set; then
4081 CFLAGS=$ac_save_CFLAGS
4082 elif test $ac_cv_prog_cc_g = yes; then
4083 if test "$GCC" = yes; then
4089 if test "$GCC" = yes; then
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4096 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4097 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4098 $as_echo_n "(cached) " >&6
4100 ac_cv_prog_cc_c89=no
4102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4103 /* end confdefs.h. */
4106 #include <sys/types.h>
4107 #include <sys/stat.h>
4108 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4109 struct buf { int x; };
4110 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4111 static char *e (p, i)
4117 static char *f (char * (*g) (char **, int), char **p, ...)
4122 s = g (p, va_arg (v,int));
4127 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4128 function prototypes and stuff, but not '\xHH' hex character constants.
4129 These don't provoke an error unfortunately, instead are silently treated
4130 as 'x'. The following induces an error, until -std is added to get
4131 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4132 array size at least. It's necessary to write '\x00'==0 to get something
4133 that's true only with -std. */
4134 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4136 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4137 inside strings and character constants. */
4139 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4141 int test (int i, double x);
4142 struct s1 {int (*f) (int a);};
4143 struct s2 {int (*f) (double a);};
4144 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4150 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4155 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4156 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4158 CC="$ac_save_CC $ac_arg"
4159 if ac_fn_c_try_compile "$LINENO"; then :
4160 ac_cv_prog_cc_c89=$ac_arg
4162 rm -f core conftest.err conftest.$ac_objext
4163 test "x$ac_cv_prog_cc_c89" != "xno" && break
4165 rm -f conftest.$ac_ext
4170 case "x$ac_cv_prog_cc_c89" in
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4173 $as_echo "none needed" >&6; } ;;
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4176 $as_echo "unsupported" >&6; } ;;
4178 CC="$CC $ac_cv_prog_cc_c89"
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4180 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4182 if test "x$ac_cv_prog_cc_c89" != xno; then :
4187 ac_cpp='$CPP $CPPFLAGS'
4188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4199 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4200 # On Suns, sometimes $CPP names a directory.
4201 if test -n "$CPP" && test -d "$CPP"; then
4204 if test -z "$CPP"; then
4205 if test "${ac_cv_prog_CPP+set}" = set; then :
4206 $as_echo_n "(cached) " >&6
4208 # Double quotes because CPP needs to be expanded
4209 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4212 for ac_c_preproc_warn_flag in '' yes
4214 # Use a header file that comes with gcc, so configuring glibc
4215 # with a fresh cross-compiler works.
4216 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4217 # <limits.h> exists even on freestanding compilers.
4218 # On the NeXT, cc -E runs the code through the compiler's parser,
4219 # not just through cpp. "Syntax error" is here to catch this case.
4220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4221 /* end confdefs.h. */
4223 # include <limits.h>
4225 # include <assert.h>
4229 if ac_fn_c_try_cpp "$LINENO"; then :
4232 # Broken: fails on valid input.
4235 rm -f conftest.err conftest.$ac_ext
4237 # OK, works on sane cases. Now check whether nonexistent headers
4238 # can be detected and how.
4239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4240 /* end confdefs.h. */
4241 #include <ac_nonexistent.h>
4243 if ac_fn_c_try_cpp "$LINENO"; then :
4244 # Broken: success on invalid input.
4247 # Passes both tests.
4251 rm -f conftest.err conftest.$ac_ext
4254 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4255 rm -f conftest.err conftest.
$ac_ext
4256 if $ac_preproc_ok; then :
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4269 $as_echo "$CPP" >&6; }
4271 for ac_c_preproc_warn_flag
in '' yes
4273 # Use a header file that comes with gcc, so configuring glibc
4274 # with a fresh cross-compiler works.
4275 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4276 # <limits.h> exists even on freestanding compilers.
4277 # On the NeXT, cc -E runs the code through the compiler's parser,
4278 # not just through cpp. "Syntax error" is here to catch this case.
4279 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4280 /* end confdefs.h. */
4282 # include <limits.h>
4284 # include <assert.h>
4288 if ac_fn_c_try_cpp
"$LINENO"; then :
4291 # Broken: fails on valid input.
4294 rm -f conftest.err conftest.
$ac_ext
4296 # OK, works on sane cases. Now check whether nonexistent headers
4297 # can be detected and how.
4298 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4299 /* end confdefs.h. */
4300 #include <ac_nonexistent.h>
4302 if ac_fn_c_try_cpp
"$LINENO"; then :
4303 # Broken: success on invalid input.
4306 # Passes both tests.
4310 rm -f conftest.err conftest.
$ac_ext
4313 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4314 rm -f conftest.err conftest.
$ac_ext
4315 if $ac_preproc_ok; then :
4318 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4319 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4320 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
4321 See \`config.log' for more details." "$LINENO" 5; }
4325 ac_cpp
='$CPP $CPPFLAGS'
4326 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4327 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4328 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4332 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4333 if test "${ac_cv_path_GREP+set}" = set; then :
4334 $as_echo_n "(cached) " >&6
4336 if test -z "$GREP"; then
4337 ac_path_GREP_found
=false
4338 # Loop through the user's path and test for each of PROGNAME-LIST
4339 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4340 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4343 test -z "$as_dir" && as_dir
=.
4344 for ac_prog
in grep ggrep
; do
4345 for ac_exec_ext
in '' $ac_executable_extensions; do
4346 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4347 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4348 # Check for GNU ac_path_GREP and select it if it is found.
4349 # Check for GNU $ac_path_GREP
4350 case `"$ac_path_GREP" --version 2>&1` in
4352 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4355 $as_echo_n 0123456789 >"conftest.in"
4358 cat "conftest.in" "conftest.in" >"conftest.tmp"
4359 mv "conftest.tmp" "conftest.in"
4360 cp "conftest.in" "conftest.nl"
4361 $as_echo 'GREP' >> "conftest.nl"
4362 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4363 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4364 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4365 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4366 # Best one so far, save it but keep looking for a better one
4367 ac_cv_path_GREP
="$ac_path_GREP"
4368 ac_path_GREP_max
=$ac_count
4370 # 10*(2^10) chars as input seems more than enough
4371 test $ac_count -gt 10 && break
4373 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4376 $ac_path_GREP_found && break 3
4381 if test -z "$ac_cv_path_GREP"; then
4382 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4385 ac_cv_path_GREP
=$GREP
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4390 $as_echo "$ac_cv_path_GREP" >&6; }
4391 GREP
="$ac_cv_path_GREP"
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4395 $as_echo_n "checking for egrep... " >&6; }
4396 if test "${ac_cv_path_EGREP+set}" = set; then :
4397 $as_echo_n "(cached) " >&6
4399 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4400 then ac_cv_path_EGREP
="$GREP -E"
4402 if test -z "$EGREP"; then
4403 ac_path_EGREP_found
=false
4404 # Loop through the user's path and test for each of PROGNAME-LIST
4405 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4406 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4409 test -z "$as_dir" && as_dir
=.
4410 for ac_prog
in egrep; do
4411 for ac_exec_ext
in '' $ac_executable_extensions; do
4412 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4413 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4414 # Check for GNU ac_path_EGREP and select it if it is found.
4415 # Check for GNU $ac_path_EGREP
4416 case `"$ac_path_EGREP" --version 2>&1` in
4418 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4421 $as_echo_n 0123456789 >"conftest.in"
4424 cat "conftest.in" "conftest.in" >"conftest.tmp"
4425 mv "conftest.tmp" "conftest.in"
4426 cp "conftest.in" "conftest.nl"
4427 $as_echo 'EGREP' >> "conftest.nl"
4428 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4429 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4430 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4431 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4432 # Best one so far, save it but keep looking for a better one
4433 ac_cv_path_EGREP
="$ac_path_EGREP"
4434 ac_path_EGREP_max
=$ac_count
4436 # 10*(2^10) chars as input seems more than enough
4437 test $ac_count -gt 10 && break
4439 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4442 $ac_path_EGREP_found && break 3
4447 if test -z "$ac_cv_path_EGREP"; then
4448 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4451 ac_cv_path_EGREP
=$EGREP
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4457 $as_echo "$ac_cv_path_EGREP" >&6; }
4458 EGREP
="$ac_cv_path_EGREP"
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4462 $as_echo_n "checking for ANSI C header files... " >&6; }
4463 if test "${ac_cv_header_stdc+set}" = set; then :
4464 $as_echo_n "(cached) " >&6
4466 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4467 /* end confdefs.h. */
4481 if ac_fn_c_try_compile
"$LINENO"; then :
4482 ac_cv_header_stdc
=yes
4484 ac_cv_header_stdc
=no
4486 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4488 if test $ac_cv_header_stdc = yes; then
4489 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4490 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4491 /* end confdefs.h. */
4495 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4496 $EGREP "memchr" >/dev
/null
2>&1; then :
4499 ac_cv_header_stdc
=no
4505 if test $ac_cv_header_stdc = yes; then
4506 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4507 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4508 /* end confdefs.h. */
4512 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4513 $EGREP "free" >/dev
/null
2>&1; then :
4516 ac_cv_header_stdc
=no
4522 if test $ac_cv_header_stdc = yes; then
4523 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4524 if test "$cross_compiling" = yes; then :
4527 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4528 /* end confdefs.h. */
4531 #if ((' ' & 0x0FF) == 0x020)
4532 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4533 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4535 # define ISLOWER(c) \
4536 (('a' <= (c) && (c) <= 'i') \
4537 || ('j' <= (c) && (c) <= 'r') \
4538 || ('s' <= (c) && (c) <= 'z'))
4539 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4542 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4547 for (i = 0; i < 256; i++)
4548 if (XOR (islower (i), ISLOWER (i))
4549 || toupper (i) != TOUPPER (i))
4554 if ac_fn_c_try_run
"$LINENO"; then :
4557 ac_cv_header_stdc
=no
4559 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4560 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4566 $as_echo "$ac_cv_header_stdc" >&6; }
4567 if test $ac_cv_header_stdc = yes; then
4569 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4573 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4574 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4575 inttypes.h stdint.h unistd.h
4577 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4578 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4580 eval as_val
=\$
$as_ac_Header
4581 if test "x$as_val" = x
""yes; then :
4582 cat >>confdefs.h
<<_ACEOF
4583 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4592 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4593 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
4600 if test "$MINIX" = yes; then
4602 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4605 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4608 $as_echo "#define _MINIX 1" >>confdefs.h
4611 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4617 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4618 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4619 $as_echo_n "(cached) " >&6
4621 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4622 /* end confdefs.h. */
4624 # define __EXTENSIONS__ 1
4625 $ac_includes_default
4634 if ac_fn_c_try_compile
"$LINENO"; then :
4635 ac_cv_safe_to_define___extensions__
=yes
4637 ac_cv_safe_to_define___extensions__
=no
4639 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4642 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4643 test $ac_cv_safe_to_define___extensions__ = yes &&
4644 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4646 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4648 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4650 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4652 $as_echo "#define __USE_MINGW_ANSI_STDIO 1" >>confdefs.h
4654 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4656 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4659 $as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4660 if test "${ac_cv_should_define__xopen_source+set}" = set; then :
4661 $as_echo_n "(cached) " >&6
4663 ac_cv_should_define__xopen_source
=no
4664 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4665 /* end confdefs.h. */
4677 if ac_fn_c_try_compile
"$LINENO"; then :
4680 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4681 /* end confdefs.h. */
4683 #define _XOPEN_SOURCE 500
4694 if ac_fn_c_try_compile
"$LINENO"; then :
4695 ac_cv_should_define__xopen_source
=yes
4697 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4699 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4702 $as_echo "$ac_cv_should_define__xopen_source" >&6; }
4703 test $ac_cv_should_define__xopen_source = yes &&
4704 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
4710 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
4711 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
4712 $as_echo_n "(cached) " >&6
4715 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4716 /* end confdefs.h. */
4723 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4724 $EGREP "Amsterdam" >/dev
/null
2>&1; then :
4725 gl_cv_c_amsterdam_compiler
=yes
4727 gl_cv_c_amsterdam_compiler
=no
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
4734 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
4735 if test -z "$AR"; then
4736 if test $gl_cv_c_amsterdam_compiler = yes; then
4738 if test -z "$ARFLAGS"; then
4742 if test -n "$ac_tool_prefix"; then
4743 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4744 set dummy
${ac_tool_prefix}ar; ac_word
=$2
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4746 $as_echo_n "checking for $ac_word... " >&6; }
4747 if test "${ac_cv_prog_AR+set}" = set; then :
4748 $as_echo_n "(cached) " >&6
4750 if test -n "$AR"; then
4751 ac_cv_prog_AR
="$AR" # Let the user override the test.
4753 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4757 test -z "$as_dir" && as_dir
=.
4758 for ac_exec_ext
in '' $ac_executable_extensions; do
4759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4760 ac_cv_prog_AR
="${ac_tool_prefix}ar"
4761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4771 if test -n "$AR"; then
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4773 $as_echo "$AR" >&6; }
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4776 $as_echo "no" >&6; }
4781 if test -z "$ac_cv_prog_AR"; then
4783 # Extract the first word of "ar", so it can be a program name with args.
4784 set dummy
ar; ac_word
=$2
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4786 $as_echo_n "checking for $ac_word... " >&6; }
4787 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4788 $as_echo_n "(cached) " >&6
4790 if test -n "$ac_ct_AR"; then
4791 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
4793 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4797 test -z "$as_dir" && as_dir
=.
4798 for ac_exec_ext
in '' $ac_executable_extensions; do
4799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4800 ac_cv_prog_ac_ct_AR
="ar"
4801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4810 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
4811 if test -n "$ac_ct_AR"; then
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4813 $as_echo "$ac_ct_AR" >&6; }
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4816 $as_echo "no" >&6; }
4819 if test "x$ac_ct_AR" = x
; then
4822 case $cross_compiling:$ac_tool_warned in
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4825 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4826 ac_tool_warned
=yes ;;
4834 if test -z "$ARFLAGS"; then
4839 if test -z "$ARFLAGS"; then
4845 if test -z "$RANLIB"; then
4846 if test $gl_cv_c_amsterdam_compiler = yes; then
4849 if test -n "$ac_tool_prefix"; then
4850 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4851 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4853 $as_echo_n "checking for $ac_word... " >&6; }
4854 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4855 $as_echo_n "(cached) " >&6
4857 if test -n "$RANLIB"; then
4858 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4860 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4864 test -z "$as_dir" && as_dir
=.
4865 for ac_exec_ext
in '' $ac_executable_extensions; do
4866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4867 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4877 RANLIB
=$ac_cv_prog_RANLIB
4878 if test -n "$RANLIB"; then
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4880 $as_echo "$RANLIB" >&6; }
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4883 $as_echo "no" >&6; }
4888 if test -z "$ac_cv_prog_RANLIB"; then
4889 ac_ct_RANLIB
=$RANLIB
4890 # Extract the first word of "ranlib", so it can be a program name with args.
4891 set dummy ranlib
; ac_word
=$2
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4893 $as_echo_n "checking for $ac_word... " >&6; }
4894 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4895 $as_echo_n "(cached) " >&6
4897 if test -n "$ac_ct_RANLIB"; then
4898 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4900 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4904 test -z "$as_dir" && as_dir
=.
4905 for ac_exec_ext
in '' $ac_executable_extensions; do
4906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4907 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4917 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4918 if test -n "$ac_ct_RANLIB"; then
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4920 $as_echo "$ac_ct_RANLIB" >&6; }
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4923 $as_echo "no" >&6; }
4926 if test "x$ac_ct_RANLIB" = x
; then
4929 case $cross_compiling:$ac_tool_warned in
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4932 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4933 ac_tool_warned
=yes ;;
4935 RANLIB
=$ac_ct_RANLIB
4938 RANLIB
="$ac_cv_prog_RANLIB"
4952 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4953 for ac_t
in install-sh
install.sh shtool
; do
4954 if test -f "$ac_dir/$ac_t"; then
4956 ac_install_sh
="$ac_aux_dir/$ac_t -c"
4961 if test -z "$ac_aux_dir"; then
4962 as_fn_error
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4965 # These three variables are undocumented and unsupported,
4966 # and are intended to be withdrawn in a future Autoconf release.
4967 # They can cause serious problems if a builder's source tree is in a directory
4968 # whose full name contains unusual characters.
4969 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4970 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4971 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4974 # Make sure we can run config.sub.
4975 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4976 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4979 $as_echo_n "checking build system type... " >&6; }
4980 if test "${ac_cv_build+set}" = set; then :
4981 $as_echo_n "(cached) " >&6
4983 ac_build_alias
=$build_alias
4984 test "x$ac_build_alias" = x
&&
4985 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4986 test "x$ac_build_alias" = x
&&
4987 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
4988 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4989 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4993 $as_echo "$ac_cv_build" >&6; }
4994 case $ac_cv_build in
4996 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
4999 ac_save_IFS
=$IFS; IFS
='-'
5005 # Remember, the first character of IFS is used to create $*,
5006 # except with old shells:
5009 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5013 $as_echo_n "checking host system type... " >&6; }
5014 if test "${ac_cv_host+set}" = set; then :
5015 $as_echo_n "(cached) " >&6
5017 if test "x$host_alias" = x
; then
5018 ac_cv_host
=$ac_cv_build
5020 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5021 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5026 $as_echo "$ac_cv_host" >&6; }
5029 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
5032 ac_save_IFS
=$IFS; IFS
='-'
5038 # Remember, the first character of IFS is used to create $*,
5039 # except with old shells:
5042 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
5048 # IEEE behaviour is the default on all CPUs except Alpha and SH
5049 # (according to the test results of Bruno Haible's ieeefp/fenv_default.m4
5050 # and the GCC 4.1.2 manual).
5053 # On Alpha systems, a compiler option provides the behaviour.
5054 # See the ieee(3) manual page, also available at
5055 # <http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V51B_HTML/MAN/MAN3/0600____.HTM>
5056 if test -n "$GCC"; then
5057 # GCC has the option -mieee.
5058 # For full IEEE compliance (rarely needed), use option -mieee-with-inexact.
5059 CPPFLAGS
="$CPPFLAGS -mieee"
5061 # Compaq (ex-DEC) C has the option -ieee, equivalent to -ieee_with_no_inexact.
5062 # For full IEEE compliance (rarely needed), use option -ieee_with_inexact.
5063 CPPFLAGS
="$CPPFLAGS -ieee"
5067 if test -n "$GCC"; then
5068 # GCC has the option -mieee.
5069 CPPFLAGS
="$CPPFLAGS -mieee"
5074 # Check whether --enable-largefile was given.
5075 if test "${enable_largefile+set}" = set; then :
5076 enableval
=$enable_largefile;
5079 if test "$enable_largefile" != no
; then
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5082 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5083 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5084 $as_echo_n "(cached) " >&6
5086 ac_cv_sys_largefile_CC
=no
5087 if test "$GCC" != yes; then
5090 # IRIX 6.2 and later do not support large files by default,
5091 # so use the C compiler's -n32 option if that helps.
5092 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5093 /* end confdefs.h. */
5094 #include <sys/types.h>
5095 /* Check that off_t can represent 2**63 - 1 correctly.
5096 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5097 since some C++ compilers masquerading as C compilers
5098 incorrectly reject 9223372036854775807. */
5099 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5100 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5101 && LARGE_OFF_T % 2147483647 == 1)
5111 if ac_fn_c_try_compile
"$LINENO"; then :
5114 rm -f core conftest.err conftest.
$ac_objext
5116 if ac_fn_c_try_compile
"$LINENO"; then :
5117 ac_cv_sys_largefile_CC
=' -n32'; break
5119 rm -f core conftest.err conftest.
$ac_objext
5123 rm -f conftest.
$ac_ext
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5127 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5128 if test "$ac_cv_sys_largefile_CC" != no
; then
5129 CC
=$CC$ac_cv_sys_largefile_CC
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5133 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5134 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5135 $as_echo_n "(cached) " >&6
5138 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5139 /* end confdefs.h. */
5140 #include <sys/types.h>
5141 /* Check that off_t can represent 2**63 - 1 correctly.
5142 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5143 since some C++ compilers masquerading as C compilers
5144 incorrectly reject 9223372036854775807. */
5145 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5146 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5147 && LARGE_OFF_T % 2147483647 == 1)
5157 if ac_fn_c_try_compile
"$LINENO"; then :
5158 ac_cv_sys_file_offset_bits
=no
; break
5160 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5161 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5162 /* end confdefs.h. */
5163 #define _FILE_OFFSET_BITS 64
5164 #include <sys/types.h>
5165 /* Check that off_t can represent 2**63 - 1 correctly.
5166 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5167 since some C++ compilers masquerading as C compilers
5168 incorrectly reject 9223372036854775807. */
5169 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5170 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5171 && LARGE_OFF_T % 2147483647 == 1)
5181 if ac_fn_c_try_compile
"$LINENO"; then :
5182 ac_cv_sys_file_offset_bits
=64; break
5184 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5185 ac_cv_sys_file_offset_bits
=unknown
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5190 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5191 case $ac_cv_sys_file_offset_bits in #(
5194 cat >>confdefs.h
<<_ACEOF
5195 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5200 if test $ac_cv_sys_file_offset_bits = unknown
; then
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5202 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5203 if test "${ac_cv_sys_large_files+set}" = set; then :
5204 $as_echo_n "(cached) " >&6
5207 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5208 /* end confdefs.h. */
5209 #include <sys/types.h>
5210 /* Check that off_t can represent 2**63 - 1 correctly.
5211 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5212 since some C++ compilers masquerading as C compilers
5213 incorrectly reject 9223372036854775807. */
5214 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5215 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5216 && LARGE_OFF_T % 2147483647 == 1)
5226 if ac_fn_c_try_compile
"$LINENO"; then :
5227 ac_cv_sys_large_files
=no
; break
5229 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5230 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5231 /* end confdefs.h. */
5232 #define _LARGE_FILES 1
5233 #include <sys/types.h>
5234 /* Check that off_t can represent 2**63 - 1 correctly.
5235 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5236 since some C++ compilers masquerading as C compilers
5237 incorrectly reject 9223372036854775807. */
5238 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5239 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5240 && LARGE_OFF_T % 2147483647 == 1)
5250 if ac_fn_c_try_compile
"$LINENO"; then :
5251 ac_cv_sys_large_files
=1; break
5253 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5254 ac_cv_sys_large_files
=unknown
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5259 $as_echo "$ac_cv_sys_large_files" >&6; }
5260 case $ac_cv_sys_large_files in #(
5263 cat >>confdefs.h
<<_ACEOF
5264 #define _LARGE_FILES $ac_cv_sys_large_files
5272 $as_echo "#define _DARWIN_USE_64_BIT_INODE 1" >>confdefs.h
5278 # Code from module absolute-header:
5279 # Code from module alloca:
5280 # Code from module alloca-opt:
5281 # Code from module canonicalize-lgpl:
5282 # Code from module chdir:
5283 # Code from module configmake:
5284 # Code from module dirent:
5285 # Code from module dirfd:
5286 # Code from module dirname-lgpl:
5287 # Code from module dosname:
5288 # Code from module double-slash-root:
5289 # Code from module errno:
5290 # Code from module extensions:
5292 # Code from module extern-inline:
5293 # Code from module float:
5294 # Code from module fnmatch:
5295 # Code from module fnmatch-gnu:
5296 # Code from module fpieee:
5298 # Code from module fpucw:
5299 # Code from module frexp:
5300 # Code from module frexpl:
5301 # Code from module gettimeofday:
5302 # Code from module include_next:
5303 # Code from module inttypes:
5304 # Code from module inttypes-incomplete:
5305 # Code from module isnand-nolibm:
5306 # Code from module isnanl-nolibm:
5307 # Code from module largefile:
5309 # Code from module localcharset:
5310 # Code from module lstat:
5311 # Code from module malloc-posix:
5312 # Code from module malloca:
5313 # Code from module math:
5314 # Code from module mbrtowc:
5315 # Code from module mbsinit:
5316 # Code from module mbsrtowcs:
5317 # Code from module memchr:
5318 # Code from module memmem:
5319 # Code from module memmem-simple:
5320 # Code from module multiarch:
5321 # Code from module nocrash:
5322 # Code from module pathmax:
5323 # Code from module readlink:
5324 # Code from module rename:
5325 # Code from module rmdir:
5326 # Code from module same-inode:
5327 # Code from module signal-h:
5328 # Code from module snippet/_Noreturn:
5329 # Code from module snippet/arg-nonnull:
5330 # Code from module snippet/c++defs:
5331 # Code from module snippet/warn-on-use:
5332 # Code from module ssize_t:
5333 # Code from module stat:
5334 # Code from module stdbool:
5335 # Code from module stddef:
5336 # Code from module stdint:
5337 # Code from module stdio:
5338 # Code from module stdlib:
5339 # Code from module streq:
5340 # Code from module string:
5341 # Code from module strnlen1:
5342 # Code from module strstr:
5343 # Code from module strstr-simple:
5344 # Code from module strtok_r:
5345 # Code from module sys_stat:
5346 # Code from module sys_time:
5347 # Code from module sys_types:
5348 # Code from module time:
5349 # Code from module unistd:
5350 # Code from module update-copyright:
5351 # Code from module verify:
5352 # Code from module wchar:
5353 # Code from module wctype-h:
5356 ac_cpp
='$CPP $CPPFLAGS'
5357 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5358 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5359 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5360 if test -n "$ac_tool_prefix"; then
5361 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5362 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5364 $as_echo_n "checking for $ac_word... " >&6; }
5365 if test "${ac_cv_prog_CC+set}" = set; then :
5366 $as_echo_n "(cached) " >&6
5368 if test -n "$CC"; then
5369 ac_cv_prog_CC
="$CC" # Let the user override the test.
5371 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5375 test -z "$as_dir" && as_dir
=.
5376 for ac_exec_ext
in '' $ac_executable_extensions; do
5377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5378 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
5379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5389 if test -n "$CC"; then
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5391 $as_echo "$CC" >&6; }
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5394 $as_echo "no" >&6; }
5399 if test -z "$ac_cv_prog_CC"; then
5401 # Extract the first word of "gcc", so it can be a program name with args.
5402 set dummy gcc
; ac_word
=$2
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5404 $as_echo_n "checking for $ac_word... " >&6; }
5405 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5406 $as_echo_n "(cached) " >&6
5408 if test -n "$ac_ct_CC"; then
5409 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
5411 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5415 test -z "$as_dir" && as_dir
=.
5416 for ac_exec_ext
in '' $ac_executable_extensions; do
5417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5418 ac_cv_prog_ac_ct_CC
="gcc"
5419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5428 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
5429 if test -n "$ac_ct_CC"; then
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5431 $as_echo "$ac_ct_CC" >&6; }
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5434 $as_echo "no" >&6; }
5437 if test "x$ac_ct_CC" = x
; then
5440 case $cross_compiling:$ac_tool_warned in
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5443 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5444 ac_tool_warned
=yes ;;
5452 if test -z "$CC"; then
5453 if test -n "$ac_tool_prefix"; then
5454 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5455 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5457 $as_echo_n "checking for $ac_word... " >&6; }
5458 if test "${ac_cv_prog_CC+set}" = set; then :
5459 $as_echo_n "(cached) " >&6
5461 if test -n "$CC"; then
5462 ac_cv_prog_CC
="$CC" # Let the user override the test.
5464 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5468 test -z "$as_dir" && as_dir
=.
5469 for ac_exec_ext
in '' $ac_executable_extensions; do
5470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5471 ac_cv_prog_CC
="${ac_tool_prefix}cc"
5472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5482 if test -n "$CC"; then
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5484 $as_echo "$CC" >&6; }
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5487 $as_echo "no" >&6; }
5493 if test -z "$CC"; then
5494 # Extract the first word of "cc", so it can be a program name with args.
5495 set dummy cc
; ac_word
=$2
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5497 $as_echo_n "checking for $ac_word... " >&6; }
5498 if test "${ac_cv_prog_CC+set}" = set; then :
5499 $as_echo_n "(cached) " >&6
5501 if test -n "$CC"; then
5502 ac_cv_prog_CC
="$CC" # Let the user override the test.
5505 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5509 test -z "$as_dir" && as_dir
=.
5510 for ac_exec_ext
in '' $ac_executable_extensions; do
5511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5512 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5513 ac_prog_rejected
=yes
5517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5524 if test $ac_prog_rejected = yes; then
5525 # We found a bogon in the path, so make sure we never use it.
5526 set dummy
$ac_cv_prog_CC
5528 if test $# != 0; then
5529 # We chose a different compiler from the bogus one.
5530 # However, it has the same basename, so the bogon will be chosen
5531 # first if we set CC to just the basename; use the full file name.
5533 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
5539 if test -n "$CC"; then
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5541 $as_echo "$CC" >&6; }
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5544 $as_echo "no" >&6; }
5549 if test -z "$CC"; then
5550 if test -n "$ac_tool_prefix"; then
5551 for ac_prog
in cl.exe
5553 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5554 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5556 $as_echo_n "checking for $ac_word... " >&6; }
5557 if test "${ac_cv_prog_CC+set}" = set; then :
5558 $as_echo_n "(cached) " >&6
5560 if test -n "$CC"; then
5561 ac_cv_prog_CC
="$CC" # Let the user override the test.
5563 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5567 test -z "$as_dir" && as_dir
=.
5568 for ac_exec_ext
in '' $ac_executable_extensions; do
5569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5570 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
5571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5581 if test -n "$CC"; then
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5583 $as_echo "$CC" >&6; }
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5586 $as_echo "no" >&6; }
5590 test -n "$CC" && break
5593 if test -z "$CC"; then
5595 for ac_prog
in cl.exe
5597 # Extract the first word of "$ac_prog", so it can be a program name with args.
5598 set dummy
$ac_prog; ac_word
=$2
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5600 $as_echo_n "checking for $ac_word... " >&6; }
5601 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5602 $as_echo_n "(cached) " >&6
5604 if test -n "$ac_ct_CC"; then
5605 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
5607 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5611 test -z "$as_dir" && as_dir
=.
5612 for ac_exec_ext
in '' $ac_executable_extensions; do
5613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5614 ac_cv_prog_ac_ct_CC
="$ac_prog"
5615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5624 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
5625 if test -n "$ac_ct_CC"; then
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5627 $as_echo "$ac_ct_CC" >&6; }
5629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5630 $as_echo "no" >&6; }
5634 test -n "$ac_ct_CC" && break
5637 if test "x$ac_ct_CC" = x
; then
5640 case $cross_compiling:$ac_tool_warned in
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5643 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5644 ac_tool_warned
=yes ;;
5653 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5654 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5655 as_fn_error
"no acceptable C compiler found in \$PATH
5656 See \`config.log' for more details." "$LINENO" 5; }
5658 # Provide some information about the compiler.
5659 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5662 for ac_option
in --version -v -V -qversion; do
5663 { { ac_try
="$ac_compiler $ac_option >&5"
5665 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5666 *) ac_try_echo=$ac_try;;
5668 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5669 $as_echo "$ac_try_echo"; } >&5
5670 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5672 if test -s conftest.err; then
5674 ... rest of stderr output deleted ...
5675 10q' conftest.err >conftest.er1
5676 cat conftest.er1 >&5
5677 rm -f conftest.er1 conftest.err
5679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5680 test $ac_status = 0; }
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5684 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5685 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5686 $as_echo_n "(cached) " >&6
5688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5689 /* end confdefs.h. */
5702 if ac_fn_c_try_compile "$LINENO"; then :
5707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5708 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5712 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5713 if test $ac_compiler_gnu = yes; then
5718 ac_test_CFLAGS=${CFLAGS+set}
5719 ac_save_CFLAGS=$CFLAGS
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5721 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5722 if test "${ac_cv_prog_cc_g+set}" = set; then :
5723 $as_echo_n "(cached) " >&6
5725 ac_save_c_werror_flag=$ac_c_werror_flag
5726 ac_c_werror_flag=yes
5729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5730 /* end confdefs.h. */
5740 if ac_fn_c_try_compile "$LINENO"; then :
5744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5745 /* end confdefs.h. */
5755 if ac_fn_c_try_compile "$LINENO"; then :
5758 ac_c_werror_flag=$ac_save_c_werror_flag
5760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5761 /* end confdefs.h. */
5771 if ac_fn_c_try_compile "$LINENO"; then :
5774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5779 ac_c_werror_flag=$ac_save_c_werror_flag
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5782 $as_echo "$ac_cv_prog_cc_g" >&6; }
5783 if test "$ac_test_CFLAGS" = set; then
5784 CFLAGS=$ac_save_CFLAGS
5785 elif test $ac_cv_prog_cc_g = yes; then
5786 if test "$GCC" = yes; then
5792 if test "$GCC" = yes; then
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5799 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5800 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5801 $as_echo_n "(cached) " >&6
5803 ac_cv_prog_cc_c89=no
5805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5806 /* end confdefs.h. */
5809 #include <sys/types.h>
5810 #include <sys/stat.h>
5811 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5812 struct buf { int x; };
5813 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5814 static char *e (p, i)
5820 static char *f (char * (*g) (char **, int), char **p, ...)
5825 s = g (p, va_arg (v,int));
5830 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5831 function prototypes and stuff, but not '\xHH' hex character constants.
5832 These don't provoke an error unfortunately, instead are silently treated
5833 as 'x'. The following induces an error, until -std is added to get
5834 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5835 array size at least. It's necessary to write '\x00'==0 to get something
5836 that's true only with -std. */
5837 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5839 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5840 inside strings and character constants. */
5842 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5844 int test (int i, double x);
5845 struct s1 {int (*f) (int a);};
5846 struct s2 {int (*f) (double a);};
5847 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5853 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5858 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5859 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5861 CC="$ac_save_CC $ac_arg"
5862 if ac_fn_c_try_compile "$LINENO"; then :
5863 ac_cv_prog_cc_c89=$ac_arg
5865 rm -f core conftest.err conftest.$ac_objext
5866 test "x$ac_cv_prog_cc_c89" != "xno" && break
5868 rm -f conftest.$ac_ext
5873 case "x$ac_cv_prog_cc_c89" in
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5876 $as_echo "none needed" >&6; } ;;
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5879 $as_echo "unsupported" >&6; } ;;
5881 CC="$CC $ac_cv_prog_cc_c89"
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5883 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5885 if test "x$ac_cv_prog_cc_c89" != xno; then :
5890 ac_cpp='$CPP $CPPFLAGS'
5891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5896 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5900 for ac_dir in ../.. "$srcdir"/../..; do
5901 for ac_t in install-sh install.sh shtool; do
5902 if test -f "$ac_dir/$ac_t"; then
5904 ac_install_sh="$ac_aux_dir/$ac_t -c"
5909 if test -z "$ac_aux_dir"; then
5910 as_fn_error "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5
5913 # These three variables are undocumented and unsupported,
5914 # and are intended to be withdrawn in a future Autoconf release.
5915 # They can cause serious problems if a builder's source tree is in a directory
5916 # whose full name contains unusual characters.
5917 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5918 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5919 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
5923 $as_echo_n "checking target system type... " >&6; }
5924 if test "${ac_cv_target+set}" = set; then :
5925 $as_echo_n "(cached) " >&6
5927 if test "x$target_alias" = x; then
5928 ac_cv_target=$ac_cv_host
5930 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
5931 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
5936 $as_echo "$ac_cv_target" >&6; }
5937 case $ac_cv_target in
5939 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
5941 target=$ac_cv_target
5942 ac_save_IFS=$IFS; IFS='-'
5948 # Remember, the first character of IFS is used to create $*,
5949 # except with old shells:
5952 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
5955 # The aliases save the names the user supplied, while $host etc.
5956 # will get canonicalized.
5957 test -n "$target_alias" &&
5958 test "$program_prefix$program_suffix$program_transform_name" = \
5960 program_prefix=${target_alias}-
5968 LIBC_FATAL_STDERR_=1
5969 export LIBC_FATAL_STDERR_
5971 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5972 # for constant arguments. Useless!
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5974 $as_echo_n "checking for working alloca.h... " >&6; }
5975 if test "${ac_cv_working_alloca_h+set}" = set; then :
5976 $as_echo_n "(cached) " >&6
5978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5979 /* end confdefs.h. */
5984 char *p = (char *) alloca (2 * sizeof (int));
5990 if ac_fn_c_try_link "$LINENO"; then :
5991 ac_cv_working_alloca_h=yes
5993 ac_cv_working_alloca_h=no
5995 rm -f core conftest.err conftest.$ac_objext \
5996 conftest$ac_exeext conftest.$ac_ext
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5999 $as_echo "$ac_cv_working_alloca_h" >&6; }
6000 if test $ac_cv_working_alloca_h = yes; then
6002 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6007 $as_echo_n "checking for alloca... " >&6; }
6008 if test "${ac_cv_func_alloca_works+set}" = set; then :
6009 $as_echo_n "(cached) " >&6
6011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6012 /* end confdefs.h. */
6014 # define alloca __builtin_alloca
6017 # include <malloc.h>
6018 # define alloca _alloca
6020 # ifdef HAVE_ALLOCA_H
6021 # include <alloca.h>
6026 # ifndef alloca /* predefined by HP cc +Olibcalls */
6037 char *p = (char *) alloca (1);
6043 if ac_fn_c_try_link "$LINENO"; then :
6044 ac_cv_func_alloca_works=yes
6046 ac_cv_func_alloca_works=no
6048 rm -f core conftest.err conftest.$ac_objext \
6049 conftest$ac_exeext conftest.$ac_ext
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6052 $as_echo "$ac_cv_func_alloca_works" >&6; }
6054 if test $ac_cv_func_alloca_works = yes; then
6056 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6059 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6060 # that cause trouble. Some versions do not even contain alloca or
6061 # contain a buggy version. If you still want to use their alloca,
6062 # use ar to extract alloca.o from them instead of compiling alloca.c.
6068 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6070 $as_echo "#define C_ALLOCA 1" >>confdefs.h
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
6074 $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
6075 if test "${ac_cv_os_cray+set}" = set; then :
6076 $as_echo_n "(cached) " >&6
6078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6079 /* end confdefs.h. */
6080 #if defined CRAY && ! defined CRAY2
6087 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6088 $EGREP "webecray" >/dev/null 2>&1; then :
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6097 $as_echo "$ac_cv_os_cray" >&6; }
6098 if test $ac_cv_os_cray = yes; then
6099 for ac_func in _getb67 GETB67 getb67; do
6100 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
6101 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6102 eval as_val=\$$as_ac_var
6103 if test "x$as_val" = x""yes; then :
6105 cat >>confdefs.h <<_ACEOF
6106 #define CRAY_STACKSEG_END $ac_func
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6116 $as_echo_n "checking stack direction for C alloca... " >&6; }
6117 if test "${ac_cv_c_stack_direction+set}" = set; then :
6118 $as_echo_n "(cached) " >&6
6120 if test "$cross_compiling" = yes; then :
6121 ac_cv_c_stack_direction=0
6123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6124 /* end confdefs.h. */
6125 $ac_includes_default
6127 find_stack_direction (int *addr, int depth)
6132 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
6133 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
6138 main (int argc, char **argv)
6140 return find_stack_direction (0, argc + !argv + 20) < 0;
6143 if ac_fn_c_try_run "$LINENO"; then :
6144 ac_cv_c_stack_direction=1
6146 ac_cv_c_stack_direction=-1
6148 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6149 conftest.$ac_objext conftest.beam conftest.$ac_ext
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6154 $as_echo "$ac_cv_c_stack_direction" >&6; }
6155 cat >>confdefs.h <<_ACEOF
6156 #define STACK_DIRECTION $ac_cv_c_stack_direction
6165 GNULIB_CALLOC_POSIX=0;
6166 GNULIB_CANONICALIZE_FILE_NAME=0;
6167 GNULIB_GETLOADAVG=0;
6170 GNULIB_MALLOC_POSIX=0;
6177 GNULIB_POSIX_OPENPT=0;
6184 GNULIB_REALLOC_POSIX=0;
6187 GNULIB_SECURE_GETENV=0;
6192 GNULIB_SYSTEM_POSIX=0;
6198 HAVE_CANONICALIZE_FILE_NAME=1;
6199 HAVE_DECL_GETLOADAVG=1;
6207 HAVE_POSIX_OPENPT=1;
6215 HAVE_SECURE_GETENV=1;
6221 HAVE_STRUCT_RANDOM_DATA=1;
6222 HAVE_SYS_LOADAVG_H=0;
6224 HAVE_DECL_UNSETENV=1;
6226 REPLACE_CANONICALIZE_FILE_NAME=0;
6231 REPLACE_PTSNAME_R=0;
6245 for ac_func in $ac_func_list
6247 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
6248 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6249 eval as_val=\$$as_ac_var
6250 if test "x$as_val" = x""yes; then :
6251 cat >>confdefs.h <<_ACEOF
6252 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
6267 $as_echo_n "checking whether // is distinct from /... " >&6; }
6268 if test "${gl_cv_double_slash_root+set}" = set; then :
6269 $as_echo_n "(cached) " >&6
6271 if test x"$cross_compiling" = xyes ; then
6272 # When cross-compiling, there is no way to tell whether // is special
6273 # short of a list of hosts. However, the only known hosts to date
6274 # that have a distinct // are Apollo DomainOS (too old to port to),
6275 # Cygwin, and z/OS. If anyone knows of another system for which // has
6276 # special semantics and is distinct from /, please report it to
6277 # <bug-gnulib@gnu.org>.
6279 *-cygwin | i370-ibm-openedition)
6280 gl_cv_double_slash_root=yes ;;
6282 # Be optimistic and assume that / and // are the same when we
6284 gl_cv_double_slash_root='unknown, assuming no' ;;
6287 set x `ls -di / // 2>/dev
/null
`
6288 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
6289 gl_cv_double_slash_root=no
6291 gl_cv_double_slash_root=yes
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
6296 $as_echo "$gl_cv_double_slash_root" >&6; }
6297 if test "$gl_cv_double_slash_root" = yes; then
6299 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether realpath works" >&5
6308 $as_echo_n "checking whether realpath works... " >&6; }
6309 if test "${gl_cv_func_realpath_works+set}" = set; then :
6310 $as_echo_n "(cached) " >&6
6315 if test "$cross_compiling" = yes; then :
6317 # Guess yes on glibc systems.
6318 *-gnu* | gnu*) gl_cv_func_realpath_works="guessing yes" ;;
6319 # If we don't know, assume the worst.
6320 *) gl_cv_func_realpath_works="guessing no" ;;
6324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6325 /* end confdefs.h. */
6330 #if defined __MACH__ && defined __APPLE__
6331 /* Avoid a crash on Mac OS X. */
6332 #include <mach/mach.h>
6333 #include <mach/mach_error.h>
6334 #include <mach/thread_status.h>
6335 #include <mach/exception.h>
6336 #include <mach/task.h>
6337 #include <pthread.h>
6338 /* The exception port on which our thread listens. */
6339 static mach_port_t our_exception_port;
6340 /* The main function of the thread listening for exceptions of type
6343 mach_exception_thread (void *arg)
6345 /* Buffer for a message to be received. */
6347 mach_msg_header_t head;
6348 mach_msg_body_t msgh_body;
6351 mach_msg_return_t retval;
6352 /* Wait for a message on the exception port. */
6353 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
6354 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
6355 if (retval != MACH_MSG_SUCCESS)
6362 mach_port_t self = mach_task_self ();
6363 /* Allocate a port on which the thread shall listen for exceptions. */
6364 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
6366 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
6367 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
6368 MACH_MSG_TYPE_MAKE_SEND)
6370 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
6372 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
6373 /* Create the thread listening on the exception port. */
6374 pthread_attr_t attr;
6376 if (pthread_attr_init (&attr) == 0
6377 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
6378 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
6379 pthread_attr_destroy (&attr);
6380 /* Replace the exception port info for these exceptions with our own.
6381 Note that we replace the exception port for the entire task, not only
6382 for a particular thread. This has the effect that when our exception
6383 port gets the message, the thread specific exception port has already
6384 been asked, and we don't need to bother about it.
6385 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
6386 task_set_exception_ports (self, mask, our_exception_port,
6387 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
6392 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
6393 /* Avoid a crash on native Windows. */
6394 #define WIN32_LEAN_AND_MEAN
6395 #include <windows.h>
6396 #include <winerror.h>
6398 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
6400 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
6402 case EXCEPTION_ACCESS_VIOLATION:
6403 case EXCEPTION_IN_PAGE_ERROR:
6404 case EXCEPTION_STACK_OVERFLOW:
6405 case EXCEPTION_GUARD_PAGE:
6406 case EXCEPTION_PRIV_INSTRUCTION:
6407 case EXCEPTION_ILLEGAL_INSTRUCTION:
6408 case EXCEPTION_DATATYPE_MISALIGNMENT:
6409 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
6410 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
6413 return EXCEPTION_CONTINUE_SEARCH;
6418 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
6421 /* Avoid a crash on POSIX systems. */
6423 /* A POSIX signal handler. */
6425 exception_handler (int sig)
6433 signal (SIGSEGV, exception_handler);
6436 signal (SIGBUS, exception_handler);
6450 char *name = realpath ("conftest.a", NULL);
6451 if (!(name && *name == '/'))
6455 char *name = realpath ("conftest.b/../conftest.a", NULL);
6460 char *name = realpath ("conftest.a/", NULL);
6465 char *name1 = realpath (".", NULL);
6466 char *name2 = realpath ("conftest.d//./..", NULL);
6467 if (strcmp (name1, name2) != 0)
6477 if ac_fn_c_try_run "$LINENO"; then :
6478 gl_cv_func_realpath_works=yes
6480 gl_cv_func_realpath_works=no
6482 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6483 conftest.$ac_objext conftest.beam conftest.$ac_ext
6486 rm -rf conftest.a conftest.d
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_realpath_works" >&5
6490 $as_echo "$gl_cv_func_realpath_works" >&6; }
6491 case "$gl_cv_func_realpath_works" in
6494 $as_echo "#define FUNC_REALPATH_WORKS 1" >>confdefs.h
6502 for ac_header in $ac_header_list
6504 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6505 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6507 eval as_val=\$$as_ac_Header
6508 if test "x$as_val" = x""yes; then :
6509 cat >>confdefs.h <<_ACEOF
6510 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6534 GNULIB_EUIDACCESS=0;
6542 GNULIB_GETDOMAINNAME=0;
6543 GNULIB_GETDTABLESIZE=0;
6545 GNULIB_GETHOSTNAME=0;
6547 GNULIB_GETLOGIN_R=0;
6548 GNULIB_GETPAGESIZE=0;
6549 GNULIB_GETUSERSHELL=0;
6550 GNULIB_GROUP_MEMBER=0;
6562 GNULIB_READLINKAT=0;
6564 GNULIB_SETHOSTNAME=0;
6569 GNULIB_UNISTD_H_NONBLOCKING=0;
6570 GNULIB_UNISTD_H_SIGPIPE=0;
6585 HAVE_GETDTABLESIZE=1;
6590 HAVE_GROUP_MEMBER=1;
6606 HAVE_DECL_ENVIRON=1;
6608 HAVE_DECL_FDATASYNC=1;
6609 HAVE_DECL_GETDOMAINNAME=1;
6610 HAVE_DECL_GETLOGIN_R=1;
6611 HAVE_DECL_GETPAGESIZE=1;
6612 HAVE_DECL_GETUSERSHELL=1;
6613 HAVE_DECL_SETHOSTNAME=1;
6614 HAVE_DECL_TTYNAME_R=1;
6622 REPLACE_FTRUNCATE=0;
6624 REPLACE_GETDOMAINNAME=0;
6625 REPLACE_GETDTABLESIZE=0;
6626 REPLACE_GETLOGIN_R=0;
6627 REPLACE_GETGROUPS=0;
6628 REPLACE_GETPAGESIZE=0;
6638 REPLACE_READLINKAT=0;
6642 REPLACE_SYMLINKAT=0;
6643 REPLACE_TTYNAME_R=0;
6648 UNISTD_H_HAVE_WINSOCK2_H=0;
6649 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
6666 HAVE_DECL_FDOPENDIR=1;
6673 REPLACE_FDOPENDIR=0;
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
6678 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
6679 if test "${gl_cv_have_include_next+set}" = set; then :
6680 $as_echo_n "(cached) " >&6
6682 rm -rf conftestd1a conftestd1b conftestd2
6683 mkdir conftestd1a conftestd1b conftestd2
6684 cat <<EOF > conftestd1a/conftest.h
6685 #define DEFINED_IN_CONFTESTD1
6686 #include_next <conftest.h>
6687 #ifdef DEFINED_IN_CONFTESTD2
6690 #error "include_next doesn't work"
6693 cat <<EOF > conftestd1b/conftest.h
6694 #define DEFINED_IN_CONFTESTD1
6696 #include_next <conftest.h>
6697 #ifdef DEFINED_IN_CONFTESTD2
6700 #error "include_next doesn't work"
6703 cat <<EOF > conftestd2/conftest.h
6704 #ifndef DEFINED_IN_CONFTESTD1
6705 #error "include_next test doesn't work"
6707 #define DEFINED_IN_CONFTESTD2
6709 gl_save_CPPFLAGS="$CPPFLAGS"
6710 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
6711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6712 /* end confdefs.h. */
6713 #include <conftest.h>
6715 if ac_fn_c_try_compile "$LINENO"; then :
6716 gl_cv_have_include_next=yes
6718 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
6719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6720 /* end confdefs.h. */
6721 #include <conftest.h>
6723 if ac_fn_c_try_compile "$LINENO"; then :
6724 gl_cv_have_include_next=buggy
6726 gl_cv_have_include_next=no
6728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6732 CPPFLAGS="$gl_save_CPPFLAGS"
6733 rm -rf conftestd1a conftestd1b conftestd2
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
6737 $as_echo "$gl_cv_have_include_next" >&6; }
6738 PRAGMA_SYSTEM_HEADER=
6739 if test $gl_cv_have_include_next = yes; then
6740 INCLUDE_NEXT=include_next
6741 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
6742 if test -n "$GCC"; then
6743 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
6746 if test $gl_cv_have_include_next = buggy; then
6747 INCLUDE_NEXT=include
6748 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
6750 INCLUDE_NEXT=include
6751 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
6758 $as_echo_n "checking whether system header files limit the line length... " >&6; }
6759 if test "${gl_cv_pragma_columns+set}" = set; then :
6760 $as_echo_n "(cached) " >&6
6762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6763 /* end confdefs.h. */
6770 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6771 $EGREP "choke me" >/dev/null 2>&1; then :
6772 gl_cv_pragma_columns=yes
6774 gl_cv_pragma_columns=no
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
6781 $as_echo "$gl_cv_pragma_columns" >&6; }
6782 if test $gl_cv_pragma_columns = yes; then
6783 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
6794 $as_echo_n "checking for complete errno.h... " >&6; }
6795 if test "${gl_cv_header_errno_h_complete+set}" = set; then :
6796 $as_echo_n "(cached) " >&6
6799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6800 /* end confdefs.h. */
6803 #if !defined ETXTBSY
6812 #if !defined ENOLINK
6818 #if !defined EMULTIHOP
6821 #if !defined EBADMSG
6824 #if !defined EOVERFLOW
6827 #if !defined ENOTSUP
6830 #if !defined ENETRESET
6833 #if !defined ECONNABORTED
6842 #if !defined ECANCELED
6845 #if !defined EOWNERDEAD
6848 #if !defined ENOTRECOVERABLE
6856 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6857 $EGREP "booboo" >/dev/null 2>&1; then :
6858 gl_cv_header_errno_h_complete=no
6860 gl_cv_header_errno_h_complete=yes
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
6867 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
6868 if test $gl_cv_header_errno_h_complete = yes; then
6879 if test $gl_cv_have_include_next = yes; then
6880 gl_cv_next_errno_h='<'errno.h'>'
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
6883 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
6884 if test "${gl_cv_next_errno_h+set}" = set; then :
6885 $as_echo_n "(cached) " >&6
6890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6891 /* end confdefs.h. */
6895 aix*) gl_absname_cpp="$ac_cpp -C" ;;
6896 *) gl_absname_cpp="$ac_cpp" ;;
6901 gl_dirsep_regex='[/\\]'
6904 gl_dirsep_regex='\/'
6907 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
6908 gl_header_literal_regex=`echo 'errno.h' \
6909 |
sed -e "$gl_make_literal_regex_sed"`
6910 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
6911 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
6917 gl_cv_absolute_errno_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6918 sed -n "$gl_absolute_header_sed"`
6920 gl_header=$gl_cv_absolute_errno_h
6921 gl_cv_next_errno_h='"'$gl_header'"'
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
6926 $as_echo "$gl_cv_next_errno_h" >&6; }
6928 NEXT_ERRNO_H=$gl_cv_next_errno_h
6930 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
6931 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6932 gl_next_as_first_directive='<'errno.h'>'
6934 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6935 gl_next_as_first_directive=$gl_cv_next_errno_h
6937 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
6945 if test -n "$ERRNO_H"; then
6946 GL_GENERATE_ERRNO_H_TRUE=
6947 GL_GENERATE_ERRNO_H_FALSE='#'
6949 GL_GENERATE_ERRNO_H_TRUE='#'
6950 GL_GENERATE_ERRNO_H_FALSE=
6954 if test -n "$ERRNO_H"; then
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
6956 $as_echo_n "checking for EMULTIHOP value... " >&6; }
6957 if test "${gl_cv_header_errno_h_EMULTIHOP+set}" = set; then :
6958 $as_echo_n "(cached) " >&6
6961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6962 /* end confdefs.h. */
6970 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6971 $EGREP "yes" >/dev/null 2>&1; then :
6972 gl_cv_header_errno_h_EMULTIHOP=yes
6974 gl_cv_header_errno_h_EMULTIHOP=no
6978 if test $gl_cv_header_errno_h_EMULTIHOP = no; then
6979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6980 /* end confdefs.h. */
6982 #define _XOPEN_SOURCE_EXTENDED 1
6989 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6990 $EGREP "yes" >/dev/null 2>&1; then :
6991 gl_cv_header_errno_h_EMULTIHOP=hidden
6995 if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
6996 if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
6997 #define _XOPEN_SOURCE_EXTENDED 1
6999 /* The following two lines are a workaround against an autoconf-2.52 bug. */
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
7011 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
7012 case $gl_cv_header_errno_h_EMULTIHOP in
7014 EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
7017 EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
7025 if test -n "$ERRNO_H"; then
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
7027 $as_echo_n "checking for ENOLINK value... " >&6; }
7028 if test "${gl_cv_header_errno_h_ENOLINK+set}" = set; then :
7029 $as_echo_n "(cached) " >&6
7032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7033 /* end confdefs.h. */
7041 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7042 $EGREP "yes" >/dev/null 2>&1; then :
7043 gl_cv_header_errno_h_ENOLINK=yes
7045 gl_cv_header_errno_h_ENOLINK=no
7049 if test $gl_cv_header_errno_h_ENOLINK = no; then
7050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7051 /* end confdefs.h. */
7053 #define _XOPEN_SOURCE_EXTENDED 1
7060 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7061 $EGREP "yes" >/dev/null 2>&1; then :
7062 gl_cv_header_errno_h_ENOLINK=hidden
7066 if test $gl_cv_header_errno_h_ENOLINK = hidden; then
7067 if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
7068 #define _XOPEN_SOURCE_EXTENDED 1
7070 /* The following two lines are a workaround against an autoconf-2.52 bug. */
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
7082 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
7083 case $gl_cv_header_errno_h_ENOLINK in
7085 ENOLINK_HIDDEN=0; ENOLINK_VALUE=
7088 ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
7096 if test -n "$ERRNO_H"; then
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
7098 $as_echo_n "checking for EOVERFLOW value... " >&6; }
7099 if test "${gl_cv_header_errno_h_EOVERFLOW+set}" = set; then :
7100 $as_echo_n "(cached) " >&6
7103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7104 /* end confdefs.h. */
7112 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7113 $EGREP "yes" >/dev/null 2>&1; then :
7114 gl_cv_header_errno_h_EOVERFLOW=yes
7116 gl_cv_header_errno_h_EOVERFLOW=no
7120 if test $gl_cv_header_errno_h_EOVERFLOW = no; then
7121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7122 /* end confdefs.h. */
7124 #define _XOPEN_SOURCE_EXTENDED 1
7131 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7132 $EGREP "yes" >/dev/null 2>&1; then :
7133 gl_cv_header_errno_h_EOVERFLOW=hidden
7137 if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
7138 if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
7139 #define _XOPEN_SOURCE_EXTENDED 1
7141 /* The following two lines are a workaround against an autoconf-2.52 bug. */
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
7153 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
7154 case $gl_cv_header_errno_h_EOVERFLOW in
7156 EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
7159 EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
7172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
7173 $as_echo_n "checking for mbstate_t... " >&6; }
7174 if test "${ac_cv_type_mbstate_t+set}" = set; then :
7175 $as_echo_n "(cached) " >&6
7177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7178 /* end confdefs.h. */
7179 $ac_includes_default
7180 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
7182 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7183 included before <wchar.h>. */
7191 mbstate_t x; return sizeof x;
7196 if ac_fn_c_try_compile "$LINENO"; then :
7197 ac_cv_type_mbstate_t=yes
7199 ac_cv_type_mbstate_t=no
7201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
7204 $as_echo "$ac_cv_type_mbstate_t" >&6; }
7205 if test $ac_cv_type_mbstate_t = yes; then
7207 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
7211 $as_echo "#define mbstate_t int" >>confdefs.h
7309 GNULIB_REMAINDERF=0;
7310 GNULIB_REMAINDERL=0;
7396 HAVE_DECL_COPYSIGNF=1;
7413 HAVE_DECL_REMAINDER=1;
7414 HAVE_DECL_REMAINDERL=1;
7476 REPLACE_REMAINDER=0;
7477 REPLACE_REMAINDERF=0;
7478 REPLACE_REMAINDERL=0;
7483 REPLACE_SIGNBIT_USING_GCC=0;
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used without linking with libm" >&5
7491 $as_echo_n "checking whether frexp() can be used without linking with libm... " >&6; }
7492 if test "${gl_cv_func_frexp_no_libm+set}" = set; then :
7493 $as_echo_n "(cached) " >&6
7496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7497 /* end confdefs.h. */
7503 int e; return frexp (x, &e) > 0;
7508 if ac_fn_c_try_link "$LINENO"; then :
7509 gl_cv_func_frexp_no_libm=yes
7511 gl_cv_func_frexp_no_libm=no
7513 rm -f core conftest.err conftest.$ac_objext \
7514 conftest$ac_exeext conftest.$ac_ext
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_no_libm" >&5
7518 $as_echo "$gl_cv_func_frexp_no_libm" >&6; }
7520 ac_fn_c_check_decl "$LINENO" "alarm" "ac_cv_have_decl_alarm" "$ac_includes_default"
7521 if test "x$ac_cv_have_decl_alarm" = x""yes; then :
7527 cat >>confdefs.h <<_ACEOF
7528 #define HAVE_DECL_ALARM $ac_have_decl
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long double and double are the same" >&5
7533 $as_echo_n "checking whether long double and double are the same... " >&6; }
7534 if test "${gl_cv_long_double_equals_double+set}" = set; then :
7535 $as_echo_n "(cached) " >&6
7537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7538 /* end confdefs.h. */
7543 typedef int check[sizeof (long double) == sizeof (double)
7544 && LDBL_MANT_DIG == DBL_MANT_DIG
7545 && LDBL_MAX_EXP == DBL_MAX_EXP
7546 && LDBL_MIN_EXP == DBL_MIN_EXP
7553 if ac_fn_c_try_compile "$LINENO"; then :
7554 gl_cv_long_double_equals_double=yes
7556 gl_cv_long_double_equals_double=no
7558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_long_double_equals_double" >&5
7562 $as_echo "$gl_cv_long_double_equals_double" >&6; }
7563 if test $gl_cv_long_double_equals_double = yes; then
7565 $as_echo "#define HAVE_SAME_LONG_DOUBLE_AS_DOUBLE 1" >>confdefs.h
7567 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=1
7569 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=0
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
7574 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
7575 if test "${ac_cv_c_restrict+set}" = set; then :
7576 $as_echo_n "(cached) " >&6
7579 # The order here caters to the fact that C++ does not require restrict.
7580 for ac_kw in __restrict __restrict__ _Restrict restrict; do
7581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7582 /* end confdefs.h. */
7583 typedef int *int_ptr;
7584 int foo (int_ptr $ac_kw ip) { return ip[0]; }
7585 int bar (int [$ac_kw]); /* Catch GCC bug 14050. */
7586 int bar (int ip[$ac_kw]) { return ip[0]; }
7594 return foo (t) + bar (t);
7600 if ac_fn_c_try_compile "$LINENO"; then :
7601 ac_cv_c_restrict=$ac_kw
7603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7604 test "$ac_cv_c_restrict" != no && break
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
7609 $as_echo "$ac_cv_c_restrict" >&6; }
7611 case $ac_cv_c_restrict in
7613 no) $as_echo "#define restrict /**/" >>confdefs.h
7615 *) cat >>confdefs.h <<_ACEOF
7616 #define restrict $ac_cv_c_restrict
7622 GNULIB_GETTIMEOFDAY=0;
7623 HAVE_GETTIMEOFDAY=1;
7624 HAVE_STRUCT_TIMEVAL=1;
7627 REPLACE_GETTIMEOFDAY=0;
7628 REPLACE_STRUCT_TIMEVAL=0;
7647 if test $gl_cv_have_include_next = yes; then
7648 gl_cv_next_sys_time_h='<'sys/time.h'>'
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
7651 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
7652 if test "${gl_cv_next_sys_time_h+set}" = set; then :
7653 $as_echo_n "(cached) " >&6
7656 if test $ac_cv_header_sys_time_h = yes; then
7661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7662 /* end confdefs.h. */
7663 #include <sys/time.h>
7666 aix*) gl_absname_cpp="$ac_cpp -C" ;;
7667 *) gl_absname_cpp="$ac_cpp" ;;
7672 gl_dirsep_regex='[/\\]'
7675 gl_dirsep_regex='\/'
7678 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
7679 gl_header_literal_regex=`echo 'sys/time.h' \
7680 |
sed -e "$gl_make_literal_regex_sed"`
7681 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
7682 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
7688 gl_cv_absolute_sys_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7689 sed -n "$gl_absolute_header_sed"`
7691 gl_header=$gl_cv_absolute_sys_time_h
7692 gl_cv_next_sys_time_h='"'$gl_header'"'
7694 gl_cv_next_sys_time_h='<'sys/time.h'>'
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
7700 $as_echo "$gl_cv_next_sys_time_h" >&6; }
7702 NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
7704 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
7705 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7706 gl_next_as_first_directive='<'sys/time.h'>'
7708 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7709 gl_next_as_first_directive=$gl_cv_next_sys_time_h
7711 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
7717 if test $ac_cv_header_sys_time_h != yes; then
7725 if test $ac_cv_header_sys_socket_h != yes; then
7726 for ac_header in winsock2.h
7728 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
7729 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
7730 cat >>confdefs.h <<_ACEOF
7731 #define HAVE_WINSOCK2_H 1
7739 if test "$ac_cv_header_winsock2_h" = yes; then
7741 UNISTD_H_HAVE_WINSOCK2_H=1
7742 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
7749 $as_echo_n "checking for struct timeval... " >&6; }
7750 if test "${gl_cv_sys_struct_timeval+set}" = set; then :
7751 $as_echo_n "(cached) " >&6
7753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7754 /* end confdefs.h. */
7756 #include <sys/time.h>
7760 # include <winsock2.h>
7766 static struct timeval x; x.tv_sec = x.tv_usec;
7771 if ac_fn_c_try_compile "$LINENO"; then :
7772 gl_cv_sys_struct_timeval=yes
7774 gl_cv_sys_struct_timeval=no
7776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
7780 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
7781 if test $gl_cv_sys_struct_timeval != yes; then
7782 HAVE_STRUCT_TIMEVAL=0
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
7785 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
7786 if test "${gl_cv_sys_struct_timeval_tv_sec+set}" = set; then :
7787 $as_echo_n "(cached) " >&6
7789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7790 /* end confdefs.h. */
7792 #include <sys/time.h>
7796 # include <winsock2.h>
7802 static struct timeval x;
7803 typedef int verify_tv_sec_type[
7804 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
7811 if ac_fn_c_try_compile "$LINENO"; then :
7812 gl_cv_sys_struct_timeval_tv_sec=yes
7814 gl_cv_sys_struct_timeval_tv_sec=no
7816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
7820 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
7821 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
7822 REPLACE_STRUCT_TIMEVAL=1
7827 for gl_func in gettimeofday; do
7828 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
7830 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
7831 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
7832 $as_echo_n "(cached) " >&6
7834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7835 /* end confdefs.h. */
7838 # include <sys/time.h>
7851 if ac_fn_c_try_compile "$LINENO"; then :
7852 eval "$as_gl_Symbol=yes"
7854 eval "$as_gl_Symbol=no"
7856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7858 eval ac_res=\$$as_gl_Symbol
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7860 $as_echo "$ac_res" >&6; }
7861 eval as_val=\$$as_gl_Symbol
7862 if test "x$as_val" = x""yes; then :
7863 cat >>confdefs.h <<_ACEOF
7864 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
7867 eval ac_cv_have_decl_$gl_func=yes
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
7879 $as_echo_n "checking for unsigned long long int... " >&6; }
7880 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
7881 $as_echo_n "(cached) " >&6
7883 ac_cv_type_unsigned_long_long_int=yes
7884 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
7885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7886 /* end confdefs.h. */
7888 /* For now, do not test the preprocessor; as of 2007 there are too many
7889 implementations with broken preprocessors. Perhaps this can
7890 be revisited in 2012. In the meantime, code should not expect
7891 #if to work with literals wider than 32 bits. */
7892 /* Test literals. */
7893 long long int ll = 9223372036854775807ll;
7894 long long int nll = -9223372036854775807LL;
7895 unsigned long long int ull = 18446744073709551615ULL;
7896 /* Test constant expressions. */
7897 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
7899 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
7905 /* Test availability of runtime routines for shift and division. */
7906 long long int llmax = 9223372036854775807ll;
7907 unsigned long long int ullmax = 18446744073709551615ull;
7908 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
7909 | (llmax / ll) | (llmax % ll)
7910 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
7911 | (ullmax / ull) | (ullmax % ull));
7917 if ac_fn_c_try_link "$LINENO"; then :
7920 ac_cv_type_unsigned_long_long_int=no
7922 rm -f core conftest.err conftest.$ac_objext \
7923 conftest$ac_exeext conftest.$ac_ext
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
7927 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
7928 if test $ac_cv_type_unsigned_long_long_int = yes; then
7930 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
7937 $as_echo_n "checking for long long int... " >&6; }
7938 if test "${ac_cv_type_long_long_int+set}" = set; then :
7939 $as_echo_n "(cached) " >&6
7941 ac_cv_type_long_long_int=yes
7942 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
7943 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
7944 if test $ac_cv_type_long_long_int = yes; then
7945 if test "$cross_compiling" = yes; then :
7948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7949 /* end confdefs.h. */
7953 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
7954 # define LLONG_MAX (HALF - 1 + HALF)
7959 long long int n = 1;
7963 long long int m = n << i;
7966 if (LLONG_MAX / 2 < m)
7974 if ac_fn_c_try_run "$LINENO"; then :
7977 ac_cv_type_long_long_int=no
7979 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7980 conftest.$ac_objext conftest.beam conftest.$ac_ext
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
7987 $as_echo "$ac_cv_type_long_long_int" >&6; }
7988 if test $ac_cv_type_long_long_int = yes; then
7990 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
7999 gl_cv_c_multiarch=no
8000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8001 /* end confdefs.h. */
8002 #ifndef __APPLE_CC__
8003 not a universal capable compiler
8008 if ac_fn_c_try_compile "$LINENO"; then :
8012 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
8013 if test -n "$prev"; then
8015 i?86 | x86_64 | ppc | ppc64)
8016 if test -z "$arch" || test "$arch" = "$word"; then
8019 gl_cv_c_multiarch=yes
8025 if test "x$word" = "x-arch"; then
8032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8033 if test $gl_cv_c_multiarch = yes; then
8034 APPLE_UNIVERSAL_BUILD=1
8036 APPLE_UNIVERSAL_BUILD=0
8043 if test $ac_cv_type_long_long_int = yes; then
8044 HAVE_LONG_LONG_INT=1
8046 HAVE_LONG_LONG_INT=0
8050 if test $ac_cv_type_unsigned_long_long_int = yes; then
8051 HAVE_UNSIGNED_LONG_LONG_INT=1
8053 HAVE_UNSIGNED_LONG_LONG_INT=0
8058 if test $ac_cv_header_wchar_h = yes; then
8065 if test $ac_cv_header_inttypes_h = yes; then
8072 if test $ac_cv_header_sys_types_h = yes; then
8088 if test $gl_cv_have_include_next = yes; then
8089 gl_cv_next_stdint_h='<'stdint.h'>'
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
8092 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
8093 if test "${gl_cv_next_stdint_h+set}" = set; then :
8094 $as_echo_n "(cached) " >&6
8097 if test $ac_cv_header_stdint_h = yes; then
8102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8103 /* end confdefs.h. */
8107 aix*) gl_absname_cpp="$ac_cpp -C" ;;
8108 *) gl_absname_cpp="$ac_cpp" ;;
8113 gl_dirsep_regex='[/\\]'
8116 gl_dirsep_regex='\/'
8119 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
8120 gl_header_literal_regex=`echo 'stdint.h' \
8121 |
sed -e "$gl_make_literal_regex_sed"`
8122 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
8123 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
8129 gl_cv_absolute_stdint_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
8130 sed -n "$gl_absolute_header_sed"`
8132 gl_header=$gl_cv_absolute_stdint_h
8133 gl_cv_next_stdint_h='"'$gl_header'"'
8135 gl_cv_next_stdint_h='<'stdint.h'>'
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
8141 $as_echo "$gl_cv_next_stdint_h" >&6; }
8143 NEXT_STDINT_H=$gl_cv_next_stdint_h
8145 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
8146 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
8147 gl_next_as_first_directive='<'stdint.h'>'
8149 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
8150 gl_next_as_first_directive=$gl_cv_next_stdint_h
8152 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
8157 if test $ac_cv_header_stdint_h = yes; then
8164 if test $ac_cv_header_stdint_h = yes; then
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
8166 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
8167 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
8168 $as_echo_n "(cached) " >&6
8170 gl_cv_header_working_stdint_h=no
8171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8172 /* end confdefs.h. */
8175 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
8177 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
8178 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
8179 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
8183 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8184 included before <wchar.h>. */
8195 int8_t a1 = INT8_MAX;
8196 int8_t a1min = INT8_MIN;
8199 int16_t a2 = INT16_MAX;
8200 int16_t a2min = INT16_MIN;
8203 int32_t a3 = INT32_MAX;
8204 int32_t a3min = INT32_MIN;
8207 int64_t a4 = INT64_MAX;
8208 int64_t a4min = INT64_MIN;
8211 uint8_t b1 = UINT8_MAX;
8213 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
8216 uint16_t b2 = UINT16_MAX;
8219 uint32_t b3 = UINT32_MAX;
8222 uint64_t b4 = UINT64_MAX;
8224 int_least8_t c1 = INT8_C (0x7f);
8225 int_least8_t c1max = INT_LEAST8_MAX;
8226 int_least8_t c1min = INT_LEAST8_MIN;
8227 int_least16_t c2 = INT16_C (0x7fff);
8228 int_least16_t c2max = INT_LEAST16_MAX;
8229 int_least16_t c2min = INT_LEAST16_MIN;
8230 int_least32_t c3 = INT32_C (0x7fffffff);
8231 int_least32_t c3max = INT_LEAST32_MAX;
8232 int_least32_t c3min = INT_LEAST32_MIN;
8233 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
8234 int_least64_t c4max = INT_LEAST64_MAX;
8235 int_least64_t c4min = INT_LEAST64_MIN;
8236 uint_least8_t d1 = UINT8_C (0xff);
8237 uint_least8_t d1max = UINT_LEAST8_MAX;
8238 uint_least16_t d2 = UINT16_C (0xffff);
8239 uint_least16_t d2max = UINT_LEAST16_MAX;
8240 uint_least32_t d3 = UINT32_C (0xffffffff);
8241 uint_least32_t d3max = UINT_LEAST32_MAX;
8242 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
8243 uint_least64_t d4max = UINT_LEAST64_MAX;
8244 int_fast8_t e1 = INT_FAST8_MAX;
8245 int_fast8_t e1min = INT_FAST8_MIN;
8246 int_fast16_t e2 = INT_FAST16_MAX;
8247 int_fast16_t e2min = INT_FAST16_MIN;
8248 int_fast32_t e3 = INT_FAST32_MAX;
8249 int_fast32_t e3min = INT_FAST32_MIN;
8250 int_fast64_t e4 = INT_FAST64_MAX;
8251 int_fast64_t e4min = INT_FAST64_MIN;
8252 uint_fast8_t f1 = UINT_FAST8_MAX;
8253 uint_fast16_t f2 = UINT_FAST16_MAX;
8254 uint_fast32_t f3 = UINT_FAST32_MAX;
8255 uint_fast64_t f4 = UINT_FAST64_MAX;
8257 intptr_t g = INTPTR_MAX;
8258 intptr_t gmin = INTPTR_MIN;
8261 uintptr_t h = UINTPTR_MAX;
8263 intmax_t i = INTMAX_MAX;
8264 uintmax_t j = UINTMAX_MAX;
8266 #include <limits.h> /* for CHAR_BIT */
8267 #define TYPE_MINIMUM(t) \
8268 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
8269 #define TYPE_MAXIMUM(t) \
8270 ((t) ((t) 0 < (t) -1 \
8272 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
8275 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
8276 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
8278 /* Detect bug in FreeBSD 6.0 / ia64. */
8279 int check_SIG_ATOMIC:
8280 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
8281 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
8283 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
8285 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
8286 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
8288 /* Detect bug in mingw. */
8290 WINT_MIN == TYPE_MINIMUM (wint_t)
8291 && WINT_MAX == TYPE_MAXIMUM (wint_t)
8294 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
8296 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
8298 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
8300 /* Detect bugs in OpenBSD 3.9 stdint.h. */
8302 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
8305 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
8308 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
8311 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
8313 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
8314 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
8315 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
8316 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
8317 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
8318 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
8319 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
8320 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
8321 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
8322 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
8323 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
8334 if ac_fn_c_try_compile "$LINENO"; then :
8335 if test "$cross_compiling" = yes; then :
8336 gl_cv_header_working_stdint_h=yes
8339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8340 /* end confdefs.h. */
8343 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
8347 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8348 included before <wchar.h>. */
8360 #define MVAL(macro) MVAL1(macro)
8361 #define MVAL1(expression) #expression
8362 static const char *macro_values[] =
8396 for (mv = macro_values; *mv != NULL; mv++)
8398 const char *value = *mv;
8399 /* Test whether it looks like a cast expression. */
8400 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
8401 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
8402 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
8403 || strncmp (value, "((int)"/*)*/, 6) == 0
8404 || strncmp (value, "((signed short)"/*)*/, 15) == 0
8405 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
8406 return mv - macro_values + 1;
8414 if ac_fn_c_try_run "$LINENO"; then :
8415 gl_cv_header_working_stdint_h=yes
8417 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8418 conftest.$ac_objext conftest.beam conftest.$ac_ext
8423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
8427 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
8429 if test "$gl_cv_header_working_stdint_h" = yes; then
8432 for ac_header in sys/inttypes.h sys/bitypes.h
8434 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
8435 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8436 eval as_val=\$$as_ac_Header
8437 if test "x$as_val" = x""yes; then :
8438 cat >>confdefs.h <<_ACEOF
8439 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
8446 if test $ac_cv_header_sys_inttypes_h = yes; then
8447 HAVE_SYS_INTTYPES_H=1
8449 HAVE_SYS_INTTYPES_H=0
8452 if test $ac_cv_header_sys_bitypes_h = yes; then
8453 HAVE_SYS_BITYPES_H=1
8455 HAVE_SYS_BITYPES_H=0
8461 if test $APPLE_UNIVERSAL_BUILD = 0; then
8464 for gltype in ptrdiff_t size_t ; do
8465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
8466 $as_echo_n "checking for bit size of $gltype... " >&6; }
8467 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
8468 $as_echo_n "(cached) " >&6
8470 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
8471 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8472 included before <wchar.h>. */
8481 #include <limits.h>"; then :
8487 eval gl_cv_bitsizeof_${gltype}=\$result
8490 eval ac_res=\$gl_cv_bitsizeof_${gltype}
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8492 $as_echo "$ac_res" >&6; }
8493 eval result=\$gl_cv_bitsizeof_${gltype}
8494 if test $result = unknown; then
8497 GLTYPE=`echo "$gltype" |
tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
8498 cat >>confdefs.h <<_ACEOF
8499 #define BITSIZEOF_${GLTYPE} $result
8502 eval BITSIZEOF_${GLTYPE}=\$result
8509 for gltype in sig_atomic_t wchar_t wint_t ; do
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
8511 $as_echo_n "checking for bit size of $gltype... " >&6; }
8512 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
8513 $as_echo_n "(cached) " >&6
8515 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
8516 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8517 included before <wchar.h>. */
8526 #include <limits.h>"; then :
8532 eval gl_cv_bitsizeof_${gltype}=\$result
8535 eval ac_res=\$gl_cv_bitsizeof_${gltype}
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8537 $as_echo "$ac_res" >&6; }
8538 eval result=\$gl_cv_bitsizeof_${gltype}
8539 if test $result = unknown; then
8542 GLTYPE=`echo "$gltype" |
tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
8543 cat >>confdefs.h <<_ACEOF
8544 #define BITSIZEOF_${GLTYPE} $result
8547 eval BITSIZEOF_${GLTYPE}=\$result
8553 for gltype in sig_atomic_t wchar_t wint_t ; do
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
8555 $as_echo_n "checking whether $gltype is signed... " >&6; }
8556 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
8557 $as_echo_n "(cached) " >&6
8559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8560 /* end confdefs.h. */
8562 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8563 included before <wchar.h>. */
8572 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
8581 if ac_fn_c_try_compile "$LINENO"; then :
8586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8587 eval gl_cv_type_${gltype}_signed=\$result
8590 eval ac_res=\$gl_cv_type_${gltype}_signed
8591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8592 $as_echo "$ac_res" >&6; }
8593 eval result=\$gl_cv_type_${gltype}_signed
8594 GLTYPE=`echo $gltype |
tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
8595 if test "$result" = yes; then
8596 cat >>confdefs.h <<_ACEOF
8597 #define HAVE_SIGNED_${GLTYPE} 1
8600 eval HAVE_SIGNED_${GLTYPE}=1
8602 eval HAVE_SIGNED_${GLTYPE}=0
8607 gl_cv_type_ptrdiff_t_signed=yes
8608 gl_cv_type_size_t_signed=no
8609 if test $APPLE_UNIVERSAL_BUILD = 0; then
8612 for gltype in ptrdiff_t size_t ; do
8613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
8614 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
8615 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
8616 $as_echo_n "(cached) " >&6
8618 eval gl_cv_type_${gltype}_suffix=no
8619 eval result=\$gl_cv_type_${gltype}_signed
8620 if test "$result" = yes; then
8625 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
8628 l) gltype1='long int';;
8629 ll) gltype1='long long int';;
8630 i64) gltype1='__int64';;
8631 u) gltype1='unsigned int';;
8632 ul) gltype1='unsigned long int';;
8633 ull) gltype1='unsigned long long int';;
8634 ui64)gltype1='unsigned __int64';;
8636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8637 /* end confdefs.h. */
8639 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8640 included before <wchar.h>. */
8650 extern $gltype1 foo;
8659 if ac_fn_c_try_compile "$LINENO"; then :
8660 eval gl_cv_type_${gltype}_suffix=\$glsuf
8662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8663 eval result=\$gl_cv_type_${gltype}_suffix
8664 test "$result" != no && break
8667 eval ac_res=\$gl_cv_type_${gltype}_suffix
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8669 $as_echo "$ac_res" >&6; }
8670 GLTYPE=`echo $gltype |
tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
8671 eval result=\$gl_cv_type_${gltype}_suffix
8672 test "$result" = no && result=
8673 eval ${GLTYPE}_SUFFIX=\$result
8674 cat >>confdefs.h <<_ACEOF
8675 #define ${GLTYPE}_SUFFIX $result
8684 for gltype in sig_atomic_t wchar_t wint_t ; do
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
8686 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
8687 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
8688 $as_echo_n "(cached) " >&6
8690 eval gl_cv_type_${gltype}_suffix=no
8691 eval result=\$gl_cv_type_${gltype}_signed
8692 if test "$result" = yes; then
8697 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
8700 l) gltype1='long int';;
8701 ll) gltype1='long long int';;
8702 i64) gltype1='__int64';;
8703 u) gltype1='unsigned int';;
8704 ul) gltype1='unsigned long int';;
8705 ull) gltype1='unsigned long long int';;
8706 ui64)gltype1='unsigned __int64';;
8708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8709 /* end confdefs.h. */
8711 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8712 included before <wchar.h>. */
8722 extern $gltype1 foo;
8731 if ac_fn_c_try_compile "$LINENO"; then :
8732 eval gl_cv_type_${gltype}_suffix=\$glsuf
8734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8735 eval result=\$gl_cv_type_${gltype}_suffix
8736 test "$result" != no && break
8739 eval ac_res=\$gl_cv_type_${gltype}_suffix
8740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8741 $as_echo "$ac_res" >&6; }
8742 GLTYPE=`echo $gltype |
tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
8743 eval result=\$gl_cv_type_${gltype}_suffix
8744 test "$result" = no && result=
8745 eval ${GLTYPE}_SUFFIX=\$result
8746 cat >>confdefs.h <<_ACEOF
8747 #define ${GLTYPE}_SUFFIX $result
8754 if test $BITSIZEOF_WINT_T -lt 32; then
8761 if test -n "$STDINT_H"; then
8762 GL_GENERATE_STDINT_H_TRUE=
8763 GL_GENERATE_STDINT_H_FALSE='#'
8765 GL_GENERATE_STDINT_H_TRUE='#'
8766 GL_GENERATE_STDINT_H_FALSE=
8777 HAVE_DECL_IMAXABS=1;
8778 HAVE_DECL_IMAXDIV=1;
8779 HAVE_DECL_STRTOIMAX=1;
8780 HAVE_DECL_STRTOUMAX=1;
8781 REPLACE_STRTOIMAX=0;
8782 REPLACE_STRTOUMAX=0;
8783 INT32_MAX_LT_INTMAX_MAX=1;
8784 INT64_MAX_EQ_LONG_MAX='defined _LP64';
8785 PRI_MACROS_BROKEN=0;
8786 PRIPTR_PREFIX=__PRIPTR_PREFIX;
8787 UINT32_MAX_LT_UINTMAX_MAX=1;
8788 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
8804 if test $gl_cv_have_include_next = yes; then
8805 gl_cv_next_inttypes_h='<'inttypes.h'>'
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
8808 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
8809 if test "${gl_cv_next_inttypes_h+set}" = set; then :
8810 $as_echo_n "(cached) " >&6
8813 if test $ac_cv_header_inttypes_h = yes; then
8818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8819 /* end confdefs.h. */
8820 #include <inttypes.h>
8823 aix*) gl_absname_cpp="$ac_cpp -C" ;;
8824 *) gl_absname_cpp="$ac_cpp" ;;
8829 gl_dirsep_regex='[/\\]'
8832 gl_dirsep_regex='\/'
8835 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
8836 gl_header_literal_regex=`echo 'inttypes.h' \
8837 |
sed -e "$gl_make_literal_regex_sed"`
8838 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
8839 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
8845 gl_cv_absolute_inttypes_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
8846 sed -n "$gl_absolute_header_sed"`
8848 gl_header=$gl_cv_absolute_inttypes_h
8849 gl_cv_next_inttypes_h='"'$gl_header'"'
8851 gl_cv_next_inttypes_h='<'inttypes.h'>'
8856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
8857 $as_echo "$gl_cv_next_inttypes_h" >&6; }
8859 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
8861 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
8862 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
8863 gl_next_as_first_directive='<'inttypes.h'>'
8865 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
8866 gl_next_as_first_directive=$gl_cv_next_inttypes_h
8868 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
8877 for gl_func in imaxabs imaxdiv strtoimax strtoumax; do
8878 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
8879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
8880 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
8881 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
8882 $as_echo_n "(cached) " >&6
8884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8885 /* end confdefs.h. */
8886 #include <inttypes.h>
8897 if ac_fn_c_try_compile "$LINENO"; then :
8898 eval "$as_gl_Symbol=yes"
8900 eval "$as_gl_Symbol=no"
8902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8904 eval ac_res=\$$as_gl_Symbol
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8906 $as_echo "$ac_res" >&6; }
8907 eval as_val=\$$as_gl_Symbol
8908 if test "x$as_val" = x""yes; then :
8909 cat >>confdefs.h <<_ACEOF
8910 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
8913 eval ac_cv_have_decl_$gl_func=yes
8919 for ac_header in inttypes.h
8921 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
8922 if test "x$ac_cv_header_inttypes_h" = x""yes; then :
8923 cat >>confdefs.h <<_ACEOF
8924 #define HAVE_INTTYPES_H 1
8931 if test $ac_cv_header_inttypes_h = yes; then
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
8933 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
8934 if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
8935 $as_echo_n "(cached) " >&6
8938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8939 /* end confdefs.h. */
8941 #include <inttypes.h>
8954 if ac_fn_c_try_compile "$LINENO"; then :
8955 gt_cv_inttypes_pri_broken=no
8957 gt_cv_inttypes_pri_broken=yes
8959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
8963 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
8965 if test "$gt_cv_inttypes_pri_broken" = yes; then
8967 cat >>confdefs.h <<_ACEOF
8968 #define PRI_MACROS_BROKEN 1
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
8979 $as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
8980 if test "${gl_cv_cc_double_expbit0+set}" = set; then :
8981 $as_echo_n "(cached) " >&6
8984 if test "$cross_compiling" = yes; then :
8986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8987 /* end confdefs.h. */
8989 #if defined arm || defined __arm || defined __arm__
8994 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8995 $EGREP "mixed_endianness" >/dev/null 2>&1; then :
8996 gl_cv_cc_double_expbit0="unknown"
9000 if test "${ac_cv_c_bigendian+set}" = set; then :
9001 $as_echo_n "(cached) " >&6
9003 ac_cv_c_bigendian=unknown
9004 # See if we're dealing with a universal compiler.
9005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9006 /* end confdefs.h. */
9007 #ifndef __APPLE_CC__
9008 not a universal capable compiler
9013 if ac_fn_c_try_compile "$LINENO"; then :
9015 # Check for potential -arch flags. It is not universal unless
9016 # there are at least two -arch flags with different values.
9019 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9020 if test -n "$ac_prev"; then
9022 i?86 | x86_64 | ppc | ppc64)
9023 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9026 ac_cv_c_bigendian=universal
9032 elif test "x$ac_word" = "x-arch"; then
9037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9038 if test $ac_cv_c_bigendian = unknown; then
9039 # See if sys/param.h defines the BYTE_ORDER macro.
9040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9041 /* end confdefs.h. */
9042 #include <sys/types.h>
9043 #include <sys/param.h>
9048 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9049 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9058 if ac_fn_c_try_compile "$LINENO"; then :
9059 # It does; now see whether it defined to BIG_ENDIAN or not.
9060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9061 /* end confdefs.h. */
9062 #include <sys/types.h>
9063 #include <sys/param.h>
9068 #if BYTE_ORDER != BIG_ENDIAN
9076 if ac_fn_c_try_compile "$LINENO"; then :
9077 ac_cv_c_bigendian=yes
9079 ac_cv_c_bigendian=no
9081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9085 if test $ac_cv_c_bigendian = unknown; then
9086 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9088 /* end confdefs.h. */
9094 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9102 if ac_fn_c_try_compile "$LINENO"; then :
9103 # It does; now see whether it defined to _BIG_ENDIAN or not.
9104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9105 /* end confdefs.h. */
9119 if ac_fn_c_try_compile "$LINENO"; then :
9120 ac_cv_c_bigendian=yes
9122 ac_cv_c_bigendian=no
9124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9128 if test $ac_cv_c_bigendian = unknown; then
9129 # Compile a test program.
9130 if test "$cross_compiling" = yes; then :
9131 # Try to guess by grepping values from an object file.
9132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9133 /* end confdefs.h. */
9134 short int ascii_mm[] =
9135 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9136 short int ascii_ii[] =
9137 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9138 int use_ascii (int i) {
9139 return ascii_mm[i] + ascii_ii[i];
9141 short int ebcdic_ii[] =
9142 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9143 short int ebcdic_mm[] =
9144 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9145 int use_ebcdic (int i) {
9146 return ebcdic_mm[i] + ebcdic_ii[i];
9153 return use_ascii (foo) == use_ebcdic (foo);
9158 if ac_fn_c_try_compile "$LINENO"; then :
9159 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9160 ac_cv_c_bigendian=yes
9162 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9163 if test "$ac_cv_c_bigendian" = unknown; then
9164 ac_cv_c_bigendian=no
9166 # finding both strings is unlikely to happen, but who knows?
9167 ac_cv_c_bigendian=unknown
9171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9174 /* end confdefs.h. */
9175 $ac_includes_default
9180 /* Are we little or big endian? From Harbison&Steele. */
9184 char c[sizeof (long int)];
9187 return u.c[sizeof (long int) - 1] == 1;
9193 if ac_fn_c_try_run "$LINENO"; then :
9194 ac_cv_c_bigendian=no
9196 ac_cv_c_bigendian=yes
9198 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9199 conftest.$ac_objext conftest.beam conftest.$ac_ext
9205 case $ac_cv_c_bigendian in #(
9207 gl_cv_cc_double_expbit0="word 0 bit 20";; #(
9209 gl_cv_cc_double_expbit0="word 1 bit 20" ;; #(
9212 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9216 gl_cv_cc_double_expbit0="unknown" ;;
9225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9226 /* end confdefs.h. */
9233 ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
9234 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
9235 static unsigned int ored_words[NWORDS];
9236 static unsigned int anded_words[NWORDS];
9237 static void add_to_ored_words (double x)
9241 /* Clear it first, in case sizeof (double) < sizeof (memory_double). */
9242 memset (&m, 0, sizeof (memory_double));
9244 for (i = 0; i < NWORDS; i++)
9246 ored_words[i] |= m.word[i];
9247 anded_words[i] &= m.word[i];
9253 FILE *fp = fopen ("conftest.out", "w");
9256 for (j = 0; j < NWORDS; j++)
9257 anded_words[j] = ~ (unsigned int) 0;
9258 add_to_ored_words (0.25);
9259 add_to_ored_words (0.5);
9260 add_to_ored_words (1.0);
9261 add_to_ored_words (2.0);
9262 add_to_ored_words (4.0);
9263 /* Remove bits that are common (e.g. if representation of the first mantissa
9264 bit is explicit). */
9265 for (j = 0; j < NWORDS; j++)
9266 ored_words[j] &= ~anded_words[j];
9267 /* Now find the nonzero word. */
9268 for (j = 0; j < NWORDS; j++)
9269 if (ored_words[j] != 0)
9274 for (i = j + 1; i < NWORDS; i++)
9275 if (ored_words[i] != 0)
9277 fprintf (fp, "unknown");
9278 return (fclose (fp) != 0);
9281 if ((ored_words[j] >> i) & 1)
9283 fprintf (fp, "word %d bit %d", (int) j, (int) i);
9284 return (fclose (fp) != 0);
9287 fprintf (fp, "unknown");
9288 return (fclose (fp) != 0);
9292 if ac_fn_c_try_run "$LINENO"; then :
9293 gl_cv_cc_double_expbit0=`cat conftest.out
`
9295 gl_cv_cc_double_expbit0="unknown"
9297 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9298 conftest.$ac_objext conftest.beam conftest.$ac_ext
9304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
9305 $as_echo "$gl_cv_cc_double_expbit0" >&6; }
9306 case "$gl_cv_cc_double_expbit0" in
9308 word=`echo "$gl_cv_cc_double_expbit0" |
sed -e 's/word //' -e 's/ bit.*//'`
9309 bit=`echo "$gl_cv_cc_double_expbit0" |
sed -e 's/word.*bit //'`
9311 cat >>confdefs.h <<_ACEOF
9312 #define DBL_EXPBIT0_WORD $word
9316 cat >>confdefs.h <<_ACEOF
9317 #define DBL_EXPBIT0_BIT $bit
9324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9325 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9326 if test "${ac_cv_c_bigendian+set}" = set; then :
9327 $as_echo_n "(cached) " >&6
9329 ac_cv_c_bigendian=unknown
9330 # See if we're dealing with a universal compiler.
9331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9332 /* end confdefs.h. */
9333 #ifndef __APPLE_CC__
9334 not a universal capable compiler
9339 if ac_fn_c_try_compile "$LINENO"; then :
9341 # Check for potential -arch flags. It is not universal unless
9342 # there are at least two -arch flags with different values.
9345 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9346 if test -n "$ac_prev"; then
9348 i?86 | x86_64 | ppc | ppc64)
9349 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9352 ac_cv_c_bigendian=universal
9358 elif test "x$ac_word" = "x-arch"; then
9363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9364 if test $ac_cv_c_bigendian = unknown; then
9365 # See if sys/param.h defines the BYTE_ORDER macro.
9366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9367 /* end confdefs.h. */
9368 #include <sys/types.h>
9369 #include <sys/param.h>
9374 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9375 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9384 if ac_fn_c_try_compile "$LINENO"; then :
9385 # It does; now see whether it defined to BIG_ENDIAN or not.
9386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9387 /* end confdefs.h. */
9388 #include <sys/types.h>
9389 #include <sys/param.h>
9394 #if BYTE_ORDER != BIG_ENDIAN
9402 if ac_fn_c_try_compile "$LINENO"; then :
9403 ac_cv_c_bigendian=yes
9405 ac_cv_c_bigendian=no
9407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9411 if test $ac_cv_c_bigendian = unknown; then
9412 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9414 /* end confdefs.h. */
9420 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9428 if ac_fn_c_try_compile "$LINENO"; then :
9429 # It does; now see whether it defined to _BIG_ENDIAN or not.
9430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9431 /* end confdefs.h. */
9445 if ac_fn_c_try_compile "$LINENO"; then :
9446 ac_cv_c_bigendian=yes
9448 ac_cv_c_bigendian=no
9450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9454 if test $ac_cv_c_bigendian = unknown; then
9455 # Compile a test program.
9456 if test "$cross_compiling" = yes; then :
9457 # Try to guess by grepping values from an object file.
9458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9459 /* end confdefs.h. */
9460 short int ascii_mm[] =
9461 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9462 short int ascii_ii[] =
9463 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9464 int use_ascii (int i) {
9465 return ascii_mm[i] + ascii_ii[i];
9467 short int ebcdic_ii[] =
9468 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9469 short int ebcdic_mm[] =
9470 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9471 int use_ebcdic (int i) {
9472 return ebcdic_mm[i] + ebcdic_ii[i];
9479 return use_ascii (foo) == use_ebcdic (foo);
9484 if ac_fn_c_try_compile "$LINENO"; then :
9485 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9486 ac_cv_c_bigendian=yes
9488 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9489 if test "$ac_cv_c_bigendian" = unknown; then
9490 ac_cv_c_bigendian=no
9492 # finding both strings is unlikely to happen, but who knows?
9493 ac_cv_c_bigendian=unknown
9497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9500 /* end confdefs.h. */
9501 $ac_includes_default
9506 /* Are we little or big endian? From Harbison&Steele. */
9510 char c[sizeof (long int)];
9513 return u.c[sizeof (long int) - 1] == 1;
9519 if ac_fn_c_try_run "$LINENO"; then :
9520 ac_cv_c_bigendian=no
9522 ac_cv_c_bigendian=yes
9524 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9525 conftest.$ac_objext conftest.beam conftest.$ac_ext
9530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9531 $as_echo "$ac_cv_c_bigendian" >&6; }
9532 case $ac_cv_c_bigendian in #(
9534 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9540 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9544 as_fn_error "unknown endianness
9545 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
9554 $as_echo_n "checking for 64-bit off_t... " >&6; }
9555 if test "${gl_cv_type_off_t_64+set}" = set; then :
9556 $as_echo_n "(cached) " >&6
9558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9559 /* end confdefs.h. */
9560 #include <sys/types.h>
9561 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
9571 if ac_fn_c_try_compile "$LINENO"; then :
9572 gl_cv_type_off_t_64=yes
9574 gl_cv_type_off_t_64=no
9576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
9580 $as_echo "$gl_cv_type_off_t_64" >&6; }
9581 if test $gl_cv_type_off_t_64 = no; then
9582 WINDOWS_64_BIT_OFF_T=1
9584 WINDOWS_64_BIT_OFF_T=0
9586 WINDOWS_64_BIT_ST_SIZE=1
9589 WINDOWS_64_BIT_OFF_T=0
9590 WINDOWS_64_BIT_ST_SIZE=0
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
9596 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
9597 if test "${am_cv_langinfo_codeset+set}" = set; then :
9598 $as_echo_n "(cached) " >&6
9600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9601 /* end confdefs.h. */
9602 #include <langinfo.h>
9606 char* cs = nl_langinfo(CODESET); return !cs;
9611 if ac_fn_c_try_link "$LINENO"; then :
9612 am_cv_langinfo_codeset=yes
9614 am_cv_langinfo_codeset=no
9616 rm -f core conftest.err conftest.$ac_objext \
9617 conftest$ac_exeext conftest.$ac_ext
9620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
9621 $as_echo "$am_cv_langinfo_codeset" >&6; }
9622 if test $am_cv_langinfo_codeset = yes; then
9624 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
9637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
9638 $as_echo_n "checking for working fcntl.h... " >&6; }
9639 if test "${gl_cv_header_working_fcntl_h+set}" = set; then :
9640 $as_echo_n "(cached) " >&6
9642 if test "$cross_compiling" = yes; then :
9643 gl_cv_header_working_fcntl_h=cross-compiling
9645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9646 /* end confdefs.h. */
9647 #include <sys/types.h>
9648 #include <sys/stat.h>
9650 # include <unistd.h>
9651 #else /* on Windows with MSVC */
9653 # include <stdlib.h>
9654 # defined sleep(n) _sleep ((n) * 1000)
9661 #define O_NOFOLLOW 0
9663 static int const constants[] =
9665 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
9666 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
9673 int result = !constants;
9676 static char const sym[] = "conftest.sym";
9677 if (symlink ("/dev/null", sym) != 0)
9681 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
9688 if (unlink (sym) != 0 || symlink (".", sym) != 0)
9692 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
9703 static char const file[] = "confdefs.h";
9704 int fd = open (file, O_RDONLY | O_NOATIME);
9710 if (fstat (fd, &st0) != 0)
9716 if (read (fd, &c, 1) != 1)
9720 if (close (fd) != 0)
9725 if (stat (file, &st1) != 0)
9728 if (st0.st_atime != st1.st_atime)
9740 if ac_fn_c_try_run "$LINENO"; then :
9741 gl_cv_header_working_fcntl_h=yes
9744 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
9745 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
9746 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
9747 *) gl_cv_header_working_fcntl_h='no';;
9750 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9751 conftest.$ac_objext conftest.beam conftest.$ac_ext
9755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
9756 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
9758 case $gl_cv_header_working_fcntl_h in #(
9759 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
9763 cat >>confdefs.h <<_ACEOF
9764 #define HAVE_WORKING_O_NOATIME $ac_val
9768 case $gl_cv_header_working_fcntl_h in #(
9769 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
9773 cat >>confdefs.h <<_ACEOF
9774 #define HAVE_WORKING_O_NOFOLLOW $ac_val
9778 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
9779 if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then :
9785 cat >>confdefs.h <<_ACEOF
9786 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
9790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
9791 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
9792 if test "${ac_cv_gnu_library_2_1+set}" = set; then :
9793 $as_echo_n "(cached) " >&6
9795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9796 /* end confdefs.h. */
9798 #include <features.h>
9799 #ifdef __GNU_LIBRARY__
9800 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9809 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9810 $EGREP "Lucky" >/dev/null 2>&1; then :
9811 ac_cv_gnu_library_2_1=yes
9813 ac_cv_gnu_library_2_1=no
9820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
9821 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
9823 GLIBC21="$ac_cv_gnu_library_2_1"
9859 REPLACE_UTIMENSAT=0;
9864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
9865 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
9866 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
9867 $as_echo_n "(cached) " >&6
9869 rm -f conftest.sym conftest.file
9871 if test "$cross_compiling" = yes; then :
9874 # Guess yes on glibc systems.
9875 gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
9877 # If we don't know, assume the worst.
9878 gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
9882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9883 /* end confdefs.h. */
9884 $ac_includes_default
9889 if (symlink ("conftest.file", "conftest.sym") != 0)
9891 /* Linux will dereference the symlink and fail, as required by
9892 POSIX. That is better in the sense that it means we will not
9893 have to compile and use the lstat wrapper. */
9894 return lstat ("conftest.sym/", &sbuf) == 0;
9900 if ac_fn_c_try_run "$LINENO"; then :
9901 gl_cv_func_lstat_dereferences_slashed_symlink=yes
9903 gl_cv_func_lstat_dereferences_slashed_symlink=no
9905 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9906 conftest.$ac_objext conftest.beam conftest.$ac_ext
9909 rm -f conftest.sym conftest.file
9912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
9913 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
9914 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
9917 cat >>confdefs.h <<_ACEOF
9918 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
9925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
9926 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
9927 if test "${gl_cv_func_malloc_posix+set}" = set; then :
9928 $as_echo_n "(cached) " >&6
9931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9932 /* end confdefs.h. */
9937 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
9945 if ac_fn_c_try_compile "$LINENO"; then :
9946 gl_cv_func_malloc_posix=yes
9948 gl_cv_func_malloc_posix=no
9950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
9954 $as_echo "$gl_cv_func_malloc_posix" >&6; }
9958 for ac_header in stdlib.h
9960 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
9961 if test "x$ac_cv_header_stdlib_h" = x""yes; then :
9962 cat >>confdefs.h <<_ACEOF
9963 #define HAVE_STDLIB_H 1
9970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
9971 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
9972 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
9973 $as_echo_n "(cached) " >&6
9975 if test "$cross_compiling" = yes; then :
9977 # Guess yes on platforms where we know the result.
9978 *-gnu* | freebsd* | netbsd* | openbsd* \
9979 | hpux* | solaris* | cygwin* | mingw*)
9980 ac_cv_func_malloc_0_nonnull=yes ;;
9981 # If we don't know, assume the worst.
9982 *) ac_cv_func_malloc_0_nonnull=no ;;
9986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9987 /* end confdefs.h. */
9988 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
9989 # include <stdlib.h>
9997 return ! malloc (0);
10003 if ac_fn_c_try_run "$LINENO"; then :
10004 ac_cv_func_malloc_0_nonnull=yes
10006 ac_cv_func_malloc_0_nonnull=no
10008 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10009 conftest.$ac_objext conftest.beam conftest.$ac_ext
10014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
10015 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
10016 if test $ac_cv_func_malloc_0_nonnull = yes; then :
10017 gl_cv_func_malloc_0_nonnull=1
10019 gl_cv_func_malloc_0_nonnull=0
10023 cat >>confdefs.h <<_ACEOF
10024 #define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
10036 GNULIB_MBSRTOWCS=0;
10037 GNULIB_MBSNRTOWCS=0;
10039 GNULIB_WCSRTOMBS=0;
10040 GNULIB_WCSNRTOMBS=0;
10057 GNULIB_WCSCASECMP=0;
10058 GNULIB_WCSNCASECMP=0;
10095 HAVE_WCSNCASECMP=1;
10108 HAVE_DECL_WCWIDTH=1;
10109 REPLACE_MBSTATE_T=0;
10115 REPLACE_MBSRTOWCS=0;
10116 REPLACE_MBSNRTOWCS=0;
10118 REPLACE_WCSRTOMBS=0;
10119 REPLACE_WCSNRTOMBS=0;
10121 REPLACE_WCSWIDTH=0;
10130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
10131 $as_echo_n "checking for a traditional japanese locale... " >&6; }
10132 if test "${gt_cv_locale_ja+set}" = set; then :
10133 $as_echo_n "(cached) " >&6
10136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10137 /* end confdefs.h. */
10139 #include <locale.h>
10141 #if HAVE_LANGINFO_CODESET
10142 # include <langinfo.h>
10144 #include <stdlib.h>
10145 #include <string.h>
10151 /* Check whether the given locale name is recognized by the system. */
10152 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
10153 /* On native Windows, setlocale(category, "") looks at the system settings,
10154 not at the environment variables. Also, when an encoding suffix such
10155 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
10156 category of the locale to "C". */
10157 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
10158 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
10161 if (setlocale (LC_ALL, "") == NULL) return 1;
10163 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
10164 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
10165 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
10166 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
10167 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
10168 some unit tests fail.
10169 On MirBSD 10, when an unsupported locale is specified, setlocale()
10170 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
10171 #if HAVE_LANGINFO_CODESET
10173 const char *cs = nl_langinfo (CODESET);
10174 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
10175 || strcmp (cs, "UTF-8") == 0)
10180 /* On Cygwin, avoid locale names without encoding suffix, because the
10181 locale_charset() function relies on the encoding suffix. Note that
10182 LC_ALL is set on the command line. */
10183 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
10185 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales
10186 on Cygwin 1.5.x. */
10187 if (MB_CUR_MAX == 1)
10189 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
10190 This excludes the UTF-8 encoding (except on MirBSD). */
10191 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
10192 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
10193 for (p = buf; *p != '\0'; p++)
10194 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
10200 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10201 (eval $ac_link) 2>&5
10203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10204 test $ac_status = 0; } && test -s conftest$ac_exeext; then
10206 # Handle native Windows specially, because there setlocale() interprets
10207 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
10208 # "fr" or "fra" as "French" or "French_France.1252",
10209 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
10210 # "ja" as "Japanese" or "Japanese_Japan.932",
10213 # Note that on native Windows, the Japanese locale is
10214 # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
10215 # cannot use it here.
10216 gt_cv_locale_ja=none
10219 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
10220 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
10221 # configure script would override the LC_ALL setting. Likewise for
10222 # LC_CTYPE, which is also set at the beginning of the configure script.
10223 # Test for the AIX locale name.
10224 if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10225 gt_cv_locale_ja=ja_JP
10227 # Test for the locale name with explicit encoding suffix.
10228 if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10229 gt_cv_locale_ja=ja_JP.EUC-JP
10231 # Test for the HP-UX, OSF/1, NetBSD locale name.
10232 if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10233 gt_cv_locale_ja=ja_JP.eucJP
10235 # Test for the IRIX, FreeBSD locale name.
10236 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10237 gt_cv_locale_ja=ja_JP.EUC
10239 # Test for the Solaris 7 locale name.
10240 if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10243 # Special test for NetBSD 1.6.
10244 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
10245 gt_cv_locale_ja=ja_JP.eucJP
10248 gt_cv_locale_ja=none
10261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
10262 $as_echo "$gt_cv_locale_ja" >&6; }
10263 LOCALE_JA=$gt_cv_locale_ja
10269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
10270 $as_echo_n "checking for a transitional chinese locale... " >&6; }
10271 if test "${gt_cv_locale_zh_CN+set}" = set; then :
10272 $as_echo_n "(cached) " >&6
10275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10276 /* end confdefs.h. */
10278 #include <locale.h>
10279 #include <stdlib.h>
10281 #if HAVE_LANGINFO_CODESET
10282 # include <langinfo.h>
10284 #include <stdlib.h>
10285 #include <string.h>
10291 /* Check whether the given locale name is recognized by the system. */
10292 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
10293 /* On native Windows, setlocale(category, "") looks at the system settings,
10294 not at the environment variables. Also, when an encoding suffix such
10295 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
10296 category of the locale to "C". */
10297 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
10298 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
10301 if (setlocale (LC_ALL, "") == NULL) return 1;
10303 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
10304 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
10305 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
10306 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
10307 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
10308 some unit tests fail.
10309 On MirBSD 10, when an unsupported locale is specified, setlocale()
10310 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
10311 #if HAVE_LANGINFO_CODESET
10313 const char *cs = nl_langinfo (CODESET);
10314 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
10315 || strcmp (cs, "UTF-8") == 0)
10320 /* On Cygwin, avoid locale names without encoding suffix, because the
10321 locale_charset() function relies on the encoding suffix. Note that
10322 LC_ALL is set on the command line. */
10323 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
10325 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
10326 This excludes the UTF-8 encoding (except on MirBSD). */
10327 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
10328 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
10329 for (p = buf; *p != '\0'; p++)
10330 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
10332 /* Check whether a typical GB18030 multibyte sequence is recognized as a
10333 single wide character. This excludes the GB2312 and GBK encodings. */
10334 if (mblen ("\203\062\332\066", 5) != 4)
10340 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10341 (eval $ac_link) 2>&5
10343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10344 test $ac_status = 0; } && test -s conftest$ac_exeext; then
10346 # Handle native Windows specially, because there setlocale() interprets
10347 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
10348 # "fr" or "fra" as "French" or "French_France.1252",
10349 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
10350 # "ja" as "Japanese" or "Japanese_Japan.932",
10353 # Test for the hypothetical native Windows locale name.
10354 if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10355 gt_cv_locale_zh_CN=Chinese_China.54936
10358 gt_cv_locale_zh_CN=none
10362 # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
10363 # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
10364 # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
10365 gt_cv_locale_zh_CN=none
10368 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
10369 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
10370 # configure script would override the LC_ALL setting. Likewise for
10371 # LC_CTYPE, which is also set at the beginning of the configure script.
10372 # Test for the locale name without encoding suffix.
10373 if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10374 gt_cv_locale_zh_CN=zh_CN
10376 # Test for the locale name with explicit encoding suffix.
10377 if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10378 gt_cv_locale_zh_CN=zh_CN.GB18030
10381 gt_cv_locale_zh_CN=none
10387 # If there was a link error, due to mblen(), the system is so old that
10388 # it certainly doesn't have a chinese locale.
10389 gt_cv_locale_zh_CN=none
10394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
10395 $as_echo "$gt_cv_locale_zh_CN" >&6; }
10396 LOCALE_ZH_CN=$gt_cv_locale_zh_CN
10401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
10402 $as_echo_n "checking for a french Unicode locale... " >&6; }
10403 if test "${gt_cv_locale_fr_utf8+set}" = set; then :
10404 $as_echo_n "(cached) " >&6
10407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10408 /* end confdefs.h. */
10410 #include <locale.h>
10412 #if HAVE_LANGINFO_CODESET
10413 # include <langinfo.h>
10415 #include <stdlib.h>
10416 #include <string.h>
10420 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
10421 imitates locale dependent behaviour by looking at the environment
10422 variables, and all locales use the UTF-8 encoding. */
10423 #if !(defined __BEOS__ || defined __HAIKU__)
10424 /* Check whether the given locale name is recognized by the system. */
10425 # if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
10426 /* On native Windows, setlocale(category, "") looks at the system settings,
10427 not at the environment variables. Also, when an encoding suffix such
10428 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
10429 category of the locale to "C". */
10430 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
10431 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
10434 if (setlocale (LC_ALL, "") == NULL) return 1;
10436 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
10437 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
10438 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
10439 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
10440 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
10441 some unit tests fail. */
10442 # if HAVE_LANGINFO_CODESET
10444 const char *cs = nl_langinfo (CODESET);
10445 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
10450 /* On Cygwin, avoid locale names without encoding suffix, because the
10451 locale_charset() function relies on the encoding suffix. Note that
10452 LC_ALL is set on the command line. */
10453 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
10455 /* Check whether in the abbreviation of the second month, the second
10456 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
10457 two bytes long, with UTF-8 encoding. */
10458 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
10459 if (strftime (buf, sizeof (buf), "%b", &t) < 4
10460 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
10463 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
10464 /* Check whether the decimal separator is a comma.
10465 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
10466 are nl_langinfo(RADIXCHAR) are both ".". */
10467 if (localeconv () ->decimal_point[0] != ',') return 1;
10473 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10474 (eval $ac_link) 2>&5
10476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10477 test $ac_status = 0; } && test -s conftest$ac_exeext; then
10479 # Handle native Windows specially, because there setlocale() interprets
10480 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
10481 # "fr" or "fra" as "French" or "French_France.1252",
10482 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
10483 # "ja" as "Japanese" or "Japanese_Japan.932",
10486 # Test for the hypothetical native Windows locale name.
10487 if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10488 gt_cv_locale_fr_utf8=French_France.65001
10491 gt_cv_locale_fr_utf8=none
10495 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
10496 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
10497 # configure script would override the LC_ALL setting. Likewise for
10498 # LC_CTYPE, which is also set at the beginning of the configure script.
10499 # Test for the usual locale name.
10500 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10501 gt_cv_locale_fr_utf8=fr_FR
10503 # Test for the locale name with explicit encoding suffix.
10504 if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10505 gt_cv_locale_fr_utf8=fr_FR.UTF-8
10507 # Test for the Solaris 7 locale name.
10508 if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10509 gt_cv_locale_fr_utf8=fr.UTF-8
10512 gt_cv_locale_fr_utf8=none
10522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
10523 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
10524 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
10530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
10531 $as_echo_n "checking for a traditional french locale... " >&6; }
10532 if test "${gt_cv_locale_fr+set}" = set; then :
10533 $as_echo_n "(cached) " >&6
10536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10537 /* end confdefs.h. */
10539 #include <locale.h>
10541 #if HAVE_LANGINFO_CODESET
10542 # include <langinfo.h>
10544 #include <stdlib.h>
10545 #include <string.h>
10549 /* Check whether the given locale name is recognized by the system. */
10550 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
10551 /* On native Windows, setlocale(category, "") looks at the system settings,
10552 not at the environment variables. Also, when an encoding suffix such
10553 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
10554 category of the locale to "C". */
10555 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
10556 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
10559 if (setlocale (LC_ALL, "") == NULL) return 1;
10561 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
10562 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
10563 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
10564 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
10565 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
10566 some unit tests fail.
10567 On MirBSD 10, when an unsupported locale is specified, setlocale()
10568 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
10569 #if HAVE_LANGINFO_CODESET
10571 const char *cs = nl_langinfo (CODESET);
10572 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
10573 || strcmp (cs, "UTF-8") == 0)
10578 /* On Cygwin, avoid locale names without encoding suffix, because the
10579 locale_charset() function relies on the encoding suffix. Note that
10580 LC_ALL is set on the command line. */
10581 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
10583 /* Check whether in the abbreviation of the second month, the second
10584 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
10585 one byte long. This excludes the UTF-8 encoding. */
10586 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
10587 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
10588 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
10589 /* Check whether the decimal separator is a comma.
10590 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
10591 are nl_langinfo(RADIXCHAR) are both ".". */
10592 if (localeconv () ->decimal_point[0] != ',') return 1;
10598 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10599 (eval $ac_link) 2>&5
10601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10602 test $ac_status = 0; } && test -s conftest$ac_exeext; then
10604 # Handle native Windows specially, because there setlocale() interprets
10605 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
10606 # "fr" or "fra" as "French" or "French_France.1252",
10607 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
10608 # "ja" as "Japanese" or "Japanese_Japan.932",
10611 # Test for the native Windows locale name.
10612 if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10613 gt_cv_locale_fr=French_France.1252
10616 gt_cv_locale_fr=none
10620 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
10621 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
10622 # configure script would override the LC_ALL setting. Likewise for
10623 # LC_CTYPE, which is also set at the beginning of the configure script.
10624 # Test for the usual locale name.
10625 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10626 gt_cv_locale_fr=fr_FR
10628 # Test for the locale name with explicit encoding suffix.
10629 if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10630 gt_cv_locale_fr=fr_FR.ISO-8859-1
10632 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
10633 if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10634 gt_cv_locale_fr=fr_FR.ISO8859-1
10636 # Test for the HP-UX locale name.
10637 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10638 gt_cv_locale_fr=fr_FR.iso88591
10640 # Test for the Solaris 7 locale name.
10641 if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10645 gt_cv_locale_fr=none
10657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
10658 $as_echo "$gt_cv_locale_fr" >&6; }
10659 LOCALE_FR=$gt_cv_locale_fr
10673 GNULIB_RAWMEMCHR=0;
10676 GNULIB_STRCHRNUL=0;
10684 GNULIB_STRCASESTR=0;
10691 GNULIB_MBSCASECMP=0;
10692 GNULIB_MBSNCASECMP=0;
10693 GNULIB_MBSPCASECMP=0;
10694 GNULIB_MBSCASESTR=0;
10701 GNULIB_STRERROR_R=0;
10702 GNULIB_STRSIGNAL=0;
10703 GNULIB_STRVERSCMP=0;
10708 HAVE_DECL_MEMMEM=1;
10710 HAVE_DECL_MEMRCHR=1;
10715 HAVE_DECL_STRDUP=1;
10716 HAVE_DECL_STRNDUP=1;
10717 HAVE_DECL_STRNLEN=1;
10721 HAVE_DECL_STRTOK_R=1;
10722 HAVE_DECL_STRERROR_R=1;
10723 HAVE_DECL_STRSIGNAL=1;
10730 REPLACE_STRCASESTR=0;
10731 REPLACE_STRCHRNUL=0;
10732 REPLACE_STRERROR=0;
10733 REPLACE_STRERROR_R=0;
10737 REPLACE_STRSIGNAL=0;
10738 REPLACE_STRTOK_R=0;
10739 UNDEFINE_STRTOK_R=0;
10745 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
10746 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
10747 # irrelevant for anonymous mappings.
10748 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
10749 if test "x$ac_cv_func_mmap" = x""yes; then :
10756 # Try to allow MAP_ANONYMOUS.
10757 gl_have_mmap_anonymous=no
10758 if test $gl_have_mmap = yes; then
10759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
10760 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
10761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10762 /* end confdefs.h. */
10764 #include <sys/mman.h>
10765 #ifdef MAP_ANONYMOUS
10766 I cannot identify this map
10770 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10771 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
10772 gl_have_mmap_anonymous=yes
10776 if test $gl_have_mmap_anonymous != yes; then
10777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10778 /* end confdefs.h. */
10780 #include <sys/mman.h>
10782 I cannot identify this map
10786 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10787 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
10789 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
10791 gl_have_mmap_anonymous=yes
10796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
10797 $as_echo "$gl_have_mmap_anonymous" >&6; }
10798 if test $gl_have_mmap_anonymous = yes; then
10800 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
10810 if test $HAVE_MEMCHR = 1; then
10811 # Detect platform-specific bugs in some versions of glibc:
10812 # memchr should not dereference anything with length 0
10813 # http://bugzilla.redhat.com/499689
10814 # memchr should not dereference overestimated length after a match
10815 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
10816 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
10817 # Assume that memchr works on platforms that lack mprotect.
10818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
10819 $as_echo_n "checking whether memchr works... " >&6; }
10820 if test "${gl_cv_func_memchr_works+set}" = set; then :
10821 $as_echo_n "(cached) " >&6
10823 if test "$cross_compiling" = yes; then :
10824 gl_cv_func_memchr_works="guessing no"
10826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10827 /* end confdefs.h. */
10829 #include <string.h>
10830 #if HAVE_SYS_MMAN_H
10831 # include <fcntl.h>
10832 # include <unistd.h>
10833 # include <sys/types.h>
10834 # include <sys/mman.h>
10836 # define MAP_FILE 0
10845 char *fence = NULL;
10846 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
10847 # if HAVE_MAP_ANONYMOUS
10848 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
10850 # else /* !HAVE_MAP_ANONYMOUS */
10851 const int flags = MAP_FILE | MAP_PRIVATE;
10852 int fd = open ("/dev/zero", O_RDONLY, 0666);
10856 int pagesize = getpagesize ();
10858 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
10860 if (two_pages != (char *)(-1)
10861 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
10862 fence = two_pages + pagesize;
10867 if (memchr (fence, 0, 0))
10869 strcpy (fence - 9, "12345678");
10870 if (memchr (fence - 9, 0, 79) != fence - 1)
10872 if (memchr (fence - 1, 0, 3) != fence - 1)
10881 if ac_fn_c_try_run "$LINENO"; then :
10882 gl_cv_func_memchr_works=yes
10884 gl_cv_func_memchr_works=no
10886 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10887 conftest.$ac_objext conftest.beam conftest.$ac_ext
10891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
10892 $as_echo "$gl_cv_func_memchr_works" >&6; }
10893 if test "$gl_cv_func_memchr_works" != yes; then
10898 ac_fn_c_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
10899 if test "x$ac_cv_have_decl_memmem" = x""yes; then :
10905 cat >>confdefs.h <<_ACEOF
10906 #define HAVE_DECL_MEMMEM $ac_have_decl
10913 for ac_func in memmem
10915 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
10916 if test "x$ac_cv_func_memmem" = x""yes; then :
10917 cat >>confdefs.h <<_ACEOF
10918 #define HAVE_MEMMEM 1
10924 if test $ac_cv_func_memmem = yes; then
10930 if test $ac_cv_have_decl_memmem = no; then
10933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
10934 $as_echo_n "checking whether memmem works... " >&6; }
10935 if test "${gl_cv_func_memmem_works_always+set}" = set; then :
10936 $as_echo_n "(cached) " >&6
10938 if test "$cross_compiling" = yes; then :
10939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10940 /* end confdefs.h. */
10942 #ifdef __GNU_LIBRARY__
10943 #include <features.h>
10944 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
10945 || __GLIBC_MINOR__ > 12)) \
10946 || (__GLIBC__ > 2)) \
10947 || defined __UCLIBC__
10950 #elif defined __CYGWIN__
10951 #include <cygwin/version.h>
10952 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
10960 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10961 $EGREP "Lucky user" >/dev/null 2>&1; then :
10962 gl_cv_func_memmem_works_always="guessing yes"
10964 gl_cv_func_memmem_works_always="guessing no"
10970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10971 /* end confdefs.h. */
10973 #include <string.h> /* for memmem */
10974 #define P "_EF_BF_BD"
10975 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
10976 #define NEEDLE P P P P P
10983 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
10985 /* Check for empty needle behavior. */
10987 const char *haystack = "AAA";
10988 if (memmem (haystack, 3, NULL, 0) != haystack)
10997 if ac_fn_c_try_run "$LINENO"; then :
10998 gl_cv_func_memmem_works_always=yes
11000 gl_cv_func_memmem_works_always=no
11002 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11003 conftest.$ac_objext conftest.beam conftest.$ac_ext
11008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
11009 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
11010 case "$gl_cv_func_memmem_works_always" in
11028 GNULIB_FPRINTF_POSIX=0;
11044 GNULIB_OBSTACK_PRINTF=0;
11045 GNULIB_OBSTACK_PRINTF_POSIX=0;
11050 GNULIB_PRINTF_POSIX=0;
11059 GNULIB_SPRINTF_POSIX=0;
11060 GNULIB_STDIO_H_NONBLOCKING=0;
11061 GNULIB_STDIO_H_SIGPIPE=0;
11063 GNULIB_VASPRINTF=0;
11068 GNULIB_VFPRINTF_POSIX=0;
11070 GNULIB_VPRINTF_POSIX=0;
11071 GNULIB_VSNPRINTF=0;
11072 GNULIB_VSPRINTF_POSIX=0;
11073 HAVE_DECL_FPURGE=1;
11074 HAVE_DECL_FSEEKO=1;
11075 HAVE_DECL_FTELLO=1;
11076 HAVE_DECL_GETDELIM=1;
11077 HAVE_DECL_GETLINE=1;
11078 HAVE_DECL_OBSTACK_PRINTF=1;
11079 HAVE_DECL_SNPRINTF=1;
11080 HAVE_DECL_VSNPRINTF=1;
11101 REPLACE_GETDELIM=0;
11103 REPLACE_OBSTACK_PRINTF=0;
11109 REPLACE_RENAMEAT=0;
11110 REPLACE_SNPRINTF=0;
11112 REPLACE_STDIO_READ_FUNCS=0;
11113 REPLACE_STDIO_WRITE_FUNCS=0;
11115 REPLACE_VASPRINTF=0;
11116 REPLACE_VDPRINTF=0;
11117 REPLACE_VFPRINTF=0;
11119 REPLACE_VSNPRINTF=0;
11120 REPLACE_VSPRINTF=0;
11125 GNULIB_PTHREAD_SIGMASK=0;
11127 GNULIB_SIGNAL_H_SIGPIPE=0;
11128 GNULIB_SIGPROCMASK=0;
11129 GNULIB_SIGACTION=0;
11130 HAVE_POSIX_SIGNALBLOCKING=1;
11131 HAVE_PTHREAD_SIGMASK=1;
11136 HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
11138 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
11140 HAVE_SIGHANDLER_T=1;
11141 REPLACE_PTHREAD_SIGMASK=0;
11145 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
11146 #include <signal.h>
11147 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
11148 #include <sys/types.h>
11151 if test "x$ac_cv_type_sigset_t" = x""yes; then :
11153 cat >>confdefs.h <<_ACEOF
11154 #define HAVE_SIGSET_T 1
11157 gl_cv_type_sigset_t=yes
11159 gl_cv_type_sigset_t=no
11162 if test $gl_cv_type_sigset_t != yes; then
11166 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
11167 if test "x$ac_cv_type_pid_t" = x""yes; then :
11171 cat >>confdefs.h <<_ACEOF
11177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
11178 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
11179 if test "${ac_cv_type_uid_t+set}" = set; then :
11180 $as_echo_n "(cached) " >&6
11182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11183 /* end confdefs.h. */
11184 #include <sys/types.h>
11187 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11188 $EGREP "uid_t" >/dev/null 2>&1; then :
11189 ac_cv_type_uid_t=yes
11191 ac_cv_type_uid_t=no
11196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
11197 $as_echo "$ac_cv_type_uid_t" >&6; }
11198 if test $ac_cv_type_uid_t = no; then
11200 $as_echo "#define uid_t int" >>confdefs.h
11203 $as_echo "#define gid_t int" >>confdefs.h
11207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
11208 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
11209 if test "${ac_cv_header_stdbool_h+set}" = set; then :
11210 $as_echo_n "(cached) " >&6
11212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11213 /* end confdefs.h. */
11215 #include <stdbool.h>
11217 "error: bool is not defined"
11220 "error: false is not defined"
11223 "error: false is not 0"
11226 "error: true is not defined"
11229 "error: true is not 1"
11231 #ifndef __bool_true_false_are_defined
11232 "error: __bool_true_false_are_defined is not defined"
11235 struct s { _Bool s: 1; _Bool t; } s;
11237 char a[true == 1 ? 1 : -1];
11238 char b[false == 0 ? 1 : -1];
11239 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
11240 char d[(bool) 0.5 == true ? 1 : -1];
11241 /* See body of main program for 'e'. */
11242 char f[(_Bool) 0.0 == false ? 1 : -1];
11244 char h[sizeof (_Bool)];
11245 char i[sizeof s.t];
11246 enum { j = false, k = true, l = false * true, m = true * 256 };
11247 /* The following fails for
11248 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
11250 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
11251 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
11252 /* Catch a bug in an HP-UX C compiler. See
11253 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
11254 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
11266 /* Refer to every declared value, to avoid compiler optimizations. */
11267 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
11268 + !m + !n + !o + !p + !q + !pq);
11274 if ac_fn_c_try_compile "$LINENO"; then :
11275 ac_cv_header_stdbool_h=yes
11277 ac_cv_header_stdbool_h=no
11279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
11282 $as_echo "$ac_cv_header_stdbool_h" >&6; }
11283 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
11284 if test "x$ac_cv_type__Bool" = x""yes; then :
11286 cat >>confdefs.h <<_ACEOF
11287 #define HAVE__BOOL 1
11296 HAVE_MAX_ALIGN_T=1;
11300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
11301 $as_echo_n "checking for wchar_t... " >&6; }
11302 if test "${gt_cv_c_wchar_t+set}" = set; then :
11303 $as_echo_n "(cached) " >&6
11305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11306 /* end confdefs.h. */
11307 #include <stddef.h>
11308 wchar_t foo = (wchar_t)'\0';
11317 if ac_fn_c_try_compile "$LINENO"; then :
11318 gt_cv_c_wchar_t=yes
11322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
11325 $as_echo "$gt_cv_c_wchar_t" >&6; }
11326 if test $gt_cv_c_wchar_t = yes; then
11328 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
11343 if test $gl_cv_have_include_next = yes; then
11344 gl_cv_next_string_h='<'string.h'>'
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
11347 $as_echo_n "checking absolute name of <string.h>... " >&6; }
11348 if test "${gl_cv_next_string_h+set}" = set; then :
11349 $as_echo_n "(cached) " >&6
11354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11355 /* end confdefs.h. */
11356 #include <string.h>
11359 aix*) gl_absname_cpp="$ac_cpp -C" ;;
11360 *) gl_absname_cpp="$ac_cpp" ;;
11365 gl_dirsep_regex='[/\\]'
11368 gl_dirsep_regex='\/'
11371 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
11372 gl_header_literal_regex=`echo 'string.h' \
11373 |
sed -e "$gl_make_literal_regex_sed"`
11374 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11375 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11381 gl_cv_absolute_string_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11382 sed -n "$gl_absolute_header_sed"`
11384 gl_header=$gl_cv_absolute_string_h
11385 gl_cv_next_string_h='"'$gl_header'"'
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
11390 $as_echo "$gl_cv_next_string_h" >&6; }
11392 NEXT_STRING_H=$gl_cv_next_string_h
11394 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11395 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11396 gl_next_as_first_directive='<'string.h'>'
11398 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11399 gl_next_as_first_directive=$gl_cv_next_string_h
11401 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
11408 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
11409 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
11411 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
11412 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
11413 $as_echo_n "(cached) " >&6
11415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11416 /* end confdefs.h. */
11417 #include <string.h>
11428 if ac_fn_c_try_compile "$LINENO"; then :
11429 eval "$as_gl_Symbol=yes"
11431 eval "$as_gl_Symbol=no"
11433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11435 eval ac_res=\$$as_gl_Symbol
11436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11437 $as_echo "$ac_res" >&6; }
11438 eval as_val=\$$as_gl_Symbol
11439 if test "x$as_val" = x""yes; then :
11440 cat >>confdefs.h <<_ACEOF
11441 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
11444 eval ac_cv_have_decl_$gl_func=yes
11452 if test "$gl_cv_func_memchr_works" != yes; then
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
11456 $as_echo_n "checking whether strstr works... " >&6; }
11457 if test "${gl_cv_func_strstr_works_always+set}" = set; then :
11458 $as_echo_n "(cached) " >&6
11460 if test "$cross_compiling" = yes; then :
11461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11462 /* end confdefs.h. */
11464 #ifdef __GNU_LIBRARY__
11465 #include <features.h>
11466 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
11467 || defined __UCLIBC__
11470 #elif defined __CYGWIN__
11471 #include <cygwin/version.h>
11472 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
11480 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11481 $EGREP "Lucky user" >/dev/null 2>&1; then :
11482 gl_cv_func_strstr_works_always="guessing yes"
11484 gl_cv_func_strstr_works_always="guessing no"
11490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11491 /* end confdefs.h. */
11493 #include <string.h> /* for strstr */
11494 #define P "_EF_BF_BD"
11495 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
11496 #define NEEDLE P P P P P
11501 return !!strstr (HAYSTACK, NEEDLE);
11507 if ac_fn_c_try_run "$LINENO"; then :
11508 gl_cv_func_strstr_works_always=yes
11510 gl_cv_func_strstr_works_always=no
11512 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11513 conftest.$ac_objext conftest.beam conftest.$ac_ext
11518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
11519 $as_echo "$gl_cv_func_strstr_works_always" >&6; }
11520 case "$gl_cv_func_strstr_works_always" in
11528 ac_fn_c_check_decl "$LINENO" "strtok_r" "ac_cv_have_decl_strtok_r" "$ac_includes_default"
11529 if test "x$ac_cv_have_decl_strtok_r" = x""yes; then :
11535 cat >>confdefs.h <<_ACEOF
11536 #define HAVE_DECL_STRTOK_R $ac_have_decl
11539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
11540 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
11541 if test "${ac_cv_header_stat_broken+set}" = set; then :
11542 $as_echo_n "(cached) " >&6
11544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11545 /* end confdefs.h. */
11546 #include <sys/types.h>
11547 #include <sys/stat.h>
11549 #if defined S_ISBLK && defined S_IFDIR
11550 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
11553 #if defined S_ISBLK && defined S_IFCHR
11554 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
11557 #if defined S_ISLNK && defined S_IFREG
11558 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
11561 #if defined S_ISSOCK && defined S_IFREG
11562 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
11566 if ac_fn_c_try_compile "$LINENO"; then :
11567 ac_cv_header_stat_broken=no
11569 ac_cv_header_stat_broken=yes
11571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
11574 $as_echo "$ac_cv_header_stat_broken" >&6; }
11575 if test $ac_cv_header_stat_broken = yes; then
11577 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
11583 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
11584 if test "x$ac_cv_type_mode_t" = x""yes; then :
11588 cat >>confdefs.h <<_ACEOF
11594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
11595 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
11596 if test -z "$MKDIR_P"; then
11597 if test "${ac_cv_path_mkdir+set}" = set; then :
11598 $as_echo_n "(cached) " >&6
11600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11601 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
11604 test -z "$as_dir" && as_dir=.
11605 for ac_prog in mkdir gmkdir; do
11606 for ac_exec_ext in '' $ac_executable_extensions; do
11607 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
11608 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
11609 'mkdir (GNU coreutils) '* | \
11610 'mkdir (coreutils) '* | \
11611 'mkdir (fileutils) '4.1*)
11612 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
11622 if test "${ac_cv_path_mkdir+set}" = set; then
11623 MKDIR_P="$ac_cv_path_mkdir -p"
11625 # As a last resort, use the slow shell script. Don't cache a
11626 # value for MKDIR_P within a source directory, because that will
11627 # break other packages using the cache if that directory is
11628 # removed, or if the value is a relative name.
11629 test -d ./--version && rmdir ./--version
11630 MKDIR_P="$ac_install_sh -d"
11633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
11634 $as_echo "$MKDIR_P" >&6; }
11654 if test $gl_cv_have_include_next = yes; then
11655 gl_cv_next_sys_types_h='<'sys/types.h'>'
11657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
11658 $as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
11659 if test "${gl_cv_next_sys_types_h+set}" = set; then :
11660 $as_echo_n "(cached) " >&6
11665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11666 /* end confdefs.h. */
11667 #include <sys/types.h>
11670 aix*) gl_absname_cpp="$ac_cpp -C" ;;
11671 *) gl_absname_cpp="$ac_cpp" ;;
11676 gl_dirsep_regex='[/\\]'
11679 gl_dirsep_regex='\/'
11682 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
11683 gl_header_literal_regex=`echo 'sys/types.h' \
11684 |
sed -e "$gl_make_literal_regex_sed"`
11685 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11686 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11692 gl_cv_absolute_sys_types_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11693 sed -n "$gl_absolute_header_sed"`
11695 gl_header=$gl_cv_absolute_sys_types_h
11696 gl_cv_next_sys_types_h='"'$gl_header'"'
11700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
11701 $as_echo "$gl_cv_next_sys_types_h" >&6; }
11703 NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
11705 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11706 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11707 gl_next_as_first_directive='<'sys/types.h'>'
11709 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11710 gl_next_as_first_directive=$gl_cv_next_sys_types_h
11712 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
11726 GNULIB_NANOSLEEP=0;
11731 HAVE_DECL_LOCALTIME_R=1;
11735 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
11736 REPLACE_MKTIME=GNULIB_PORTCHECK;
11737 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
11738 REPLACE_TIMEGM=GNULIB_PORTCHECK;
11740 : ${GNULIB_GETTIMEOFDAY=0};
11742 REPLACE_LOCALTIME=0;
11746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
11747 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
11748 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
11749 $as_echo_n "(cached) " >&6
11751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11752 /* end confdefs.h. */
11758 static struct timespec x; x.tv_sec = x.tv_nsec;
11763 if ac_fn_c_try_compile "$LINENO"; then :
11764 gl_cv_sys_struct_timespec_in_time_h=yes
11766 gl_cv_sys_struct_timespec_in_time_h=no
11768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
11771 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
11773 TIME_H_DEFINES_STRUCT_TIMESPEC=0
11774 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
11775 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
11776 UNISTD_H_DEFINES_STRUCT_TIMESPEC=0
11777 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
11778 TIME_H_DEFINES_STRUCT_TIMESPEC=1
11780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
11781 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
11782 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
11783 $as_echo_n "(cached) " >&6
11785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11786 /* end confdefs.h. */
11787 #include <sys/time.h>
11792 static struct timespec x; x.tv_sec = x.tv_nsec;
11797 if ac_fn_c_try_compile "$LINENO"; then :
11798 gl_cv_sys_struct_timespec_in_sys_time_h=yes
11800 gl_cv_sys_struct_timespec_in_sys_time_h=no
11802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
11805 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
11806 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
11807 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
11809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
11810 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
11811 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
11812 $as_echo_n "(cached) " >&6
11814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11815 /* end confdefs.h. */
11816 #include <pthread.h>
11821 static struct timespec x; x.tv_sec = x.tv_nsec;
11826 if ac_fn_c_try_compile "$LINENO"; then :
11827 gl_cv_sys_struct_timespec_in_pthread_h=yes
11829 gl_cv_sys_struct_timespec_in_pthread_h=no
11831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
11834 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
11835 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
11836 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <unistd.h>" >&5
11839 $as_echo_n "checking for struct timespec in <unistd.h>... " >&6; }
11840 if test "${gl_cv_sys_struct_timespec_in_unistd_h+set}" = set; then :
11841 $as_echo_n "(cached) " >&6
11843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11844 /* end confdefs.h. */
11845 #include <unistd.h>
11850 static struct timespec x; x.tv_sec = x.tv_nsec;
11855 if ac_fn_c_try_compile "$LINENO"; then :
11856 gl_cv_sys_struct_timespec_in_unistd_h=yes
11858 gl_cv_sys_struct_timespec_in_unistd_h=no
11860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_unistd_h" >&5
11863 $as_echo "$gl_cv_sys_struct_timespec_in_unistd_h" >&6; }
11864 if test $gl_cv_sys_struct_timespec_in_unistd_h = yes; then
11865 UNISTD_H_DEFINES_STRUCT_TIMESPEC=1
11886 if test $gl_cv_have_include_next = yes; then
11887 gl_cv_next_time_h='<'time.h'>'
11889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
11890 $as_echo_n "checking absolute name of <time.h>... " >&6; }
11891 if test "${gl_cv_next_time_h+set}" = set; then :
11892 $as_echo_n "(cached) " >&6
11897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11898 /* end confdefs.h. */
11902 aix*) gl_absname_cpp="$ac_cpp -C" ;;
11903 *) gl_absname_cpp="$ac_cpp" ;;
11908 gl_dirsep_regex='[/\\]'
11911 gl_dirsep_regex='\/'
11914 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
11915 gl_header_literal_regex=`echo 'time.h' \
11916 |
sed -e "$gl_make_literal_regex_sed"`
11917 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11918 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11924 gl_cv_absolute_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11925 sed -n "$gl_absolute_header_sed"`
11927 gl_header=$gl_cv_absolute_time_h
11928 gl_cv_next_time_h='"'$gl_header'"'
11932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
11933 $as_echo "$gl_cv_next_time_h" >&6; }
11935 NEXT_TIME_H=$gl_cv_next_time_h
11937 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11938 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11939 gl_next_as_first_directive='<'time.h'>'
11941 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11942 gl_next_as_first_directive=$gl_cv_next_time_h
11944 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
11952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
11953 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
11954 if test "${gl_cv_header_wchar_h_correct_inline+set}" = set; then :
11955 $as_echo_n "(cached) " >&6
11957 gl_cv_header_wchar_h_correct_inline=yes
11958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11959 /* end confdefs.h. */
11961 #define wcstod renamed_wcstod
11962 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11964 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11965 included before <wchar.h>. */
11966 #include <stddef.h>
11970 extern int zero (void);
11971 int main () { return zero(); }
11974 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11975 (eval $ac_compile) 2>&5
11977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11978 test $ac_status = 0; }; then
11979 mv conftest.$ac_objext conftest1.$ac_objext
11980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11981 /* end confdefs.h. */
11983 #define wcstod renamed_wcstod
11984 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11986 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11987 included before <wchar.h>. */
11988 #include <stddef.h>
11992 int zero (void) { return 0; }
11995 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11996 (eval $ac_compile) 2>&5
11998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11999 test $ac_status = 0; }; then
12000 mv conftest.$ac_objext conftest2.$ac_objext
12001 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
12004 gl_cv_header_wchar_h_correct_inline=no
12008 rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
12011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
12012 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
12013 if test $gl_cv_header_wchar_h_correct_inline = no; then
12014 as_fn_error "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
12015 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
12016 C99 mode. You have four options:
12017 - Add the flag -fgnu89-inline to CC and reconfigure, or
12018 - Fix your include files, using parts of
12019 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
12020 - Use a gcc version older than 4.3, or
12021 - Don't use the flags -std=c99 or -std=gnu99.
12022 Configuration aborted." "$LINENO" 5
12029 if test $ac_cv_header_features_h = yes; then
12037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
12038 $as_echo_n "checking for wint_t... " >&6; }
12039 if test "${gt_cv_c_wint_t+set}" = set; then :
12040 $as_echo_n "(cached) " >&6
12042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12043 /* end confdefs.h. */
12045 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12047 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
12048 before <wchar.h>. */
12049 #include <stddef.h>
12053 wint_t foo = (wchar_t)'\0';
12062 if ac_fn_c_try_compile "$LINENO"; then :
12067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
12070 $as_echo "$gt_cv_c_wint_t" >&6; }
12071 if test $gt_cv_c_wint_t = yes; then
12073 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
12082 GNULIB_TOWCTRANS=0;
12086 REPLACE_ISWBLANK=0;
12092 GL_COND_LIBTOOL_TRUE=
12093 GL_COND_LIBTOOL_FALSE='#'
12095 GL_COND_LIBTOOL_TRUE='#'
12096 GL_COND_LIBTOOL_FALSE=
12099 gl_cond_libtool=false
12102 gl_m4_base='import/m4'
12112 gl_source_base='import'
12115 if test $ac_cv_func_alloca_works = no; then
12119 # Define an additional variable used in the Makefile substitution.
12120 if test $ac_cv_working_alloca_h = yes; then
12121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
12122 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
12123 if test "${gl_cv_rpl_alloca+set}" = set; then :
12124 $as_echo_n "(cached) " >&6
12127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12128 /* end confdefs.h. */
12130 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
12135 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12136 $EGREP "Need own alloca" >/dev/null 2>&1; then :
12137 gl_cv_rpl_alloca=yes
12139 gl_cv_rpl_alloca=no
12145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
12146 $as_echo "$gl_cv_rpl_alloca" >&6; }
12147 if test $gl_cv_rpl_alloca = yes; then
12149 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12159 if test -n "$ALLOCA_H"; then
12160 GL_GENERATE_ALLOCA_H_TRUE=
12161 GL_GENERATE_ALLOCA_H_FALSE='#'
12163 GL_GENERATE_ALLOCA_H_TRUE='#'
12164 GL_GENERATE_ALLOCA_H_FALSE=
12171 if test $ac_cv_func_canonicalize_file_name = no; then
12172 HAVE_CANONICALIZE_FILE_NAME=0
12173 if test $ac_cv_func_realpath = no; then
12176 case "$gl_cv_func_realpath_works" in
12178 *) REPLACE_REALPATH=1 ;;
12182 case "$gl_cv_func_realpath_works" in
12186 REPLACE_CANONICALIZE_FILE_NAME=1
12192 if test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1; then
12201 gl_LIBOBJS="$gl_LIBOBJS canonicalize-lgpl.$ac_objext"
12206 cat >>confdefs.h <<_ACEOF
12207 #define GNULIB_CANONICALIZE_LGPL 1
12216 GNULIB_CANONICALIZE_FILE_NAME=1
12222 $as_echo "#define GNULIB_TEST_CANONICALIZE_FILE_NAME 1" >>confdefs.h
12237 $as_echo "#define GNULIB_TEST_REALPATH 1" >>confdefs.h
12252 $as_echo "#define GNULIB_TEST_CHDIR 1" >>confdefs.h
12257 if test "x$datarootdir" = x; then
12258 datarootdir='${datadir}'
12261 if test "x$docdir" = x; then
12262 docdir='${datarootdir}/doc/${PACKAGE}'
12265 if test "x$htmldir" = x; then
12266 htmldir='${docdir}'
12269 if test "x$dvidir" = x; then
12273 if test "x$pdfdir" = x; then
12277 if test "x$psdir" = x; then
12281 if test "x$lispdir" = x; then
12282 lispdir='${datarootdir}/emacs/site-lisp'
12285 if test "x$localedir" = x; then
12286 localedir='${datarootdir}/locale'
12289 if test "x$runstatedir" = x; then
12290 runstatedir='${localstatedir}/run'
12294 pkglibexecdir='${libexecdir}/${PACKAGE}'
12309 if test $gl_cv_have_include_next = yes; then
12310 gl_cv_next_dirent_h='<'dirent.h'>'
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <dirent.h>" >&5
12313 $as_echo_n "checking absolute name of <dirent.h>... " >&6; }
12314 if test "${gl_cv_next_dirent_h+set}" = set; then :
12315 $as_echo_n "(cached) " >&6
12318 if test $ac_cv_header_dirent_h = yes; then
12323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12324 /* end confdefs.h. */
12325 #include <dirent.h>
12328 aix*) gl_absname_cpp="$ac_cpp -C" ;;
12329 *) gl_absname_cpp="$ac_cpp" ;;
12334 gl_dirsep_regex='[/\\]'
12337 gl_dirsep_regex='\/'
12340 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
12341 gl_header_literal_regex=`echo 'dirent.h' \
12342 |
sed -e "$gl_make_literal_regex_sed"`
12343 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
12344 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
12350 gl_cv_absolute_dirent_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12351 sed -n "$gl_absolute_header_sed"`
12353 gl_header=$gl_cv_absolute_dirent_h
12354 gl_cv_next_dirent_h='"'$gl_header'"'
12356 gl_cv_next_dirent_h='<'dirent.h'>'
12361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_dirent_h" >&5
12362 $as_echo "$gl_cv_next_dirent_h" >&6; }
12364 NEXT_DIRENT_H=$gl_cv_next_dirent_h
12366 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
12367 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12368 gl_next_as_first_directive='<'dirent.h'>'
12370 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12371 gl_next_as_first_directive=$gl_cv_next_dirent_h
12373 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H=$gl_next_as_first_directive
12378 if test $ac_cv_header_dirent_h = yes; then
12386 for gl_func in alphasort closedir dirfd fdopendir opendir readdir rewinddir scandir; do
12387 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
12389 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
12390 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
12391 $as_echo_n "(cached) " >&6
12393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12394 /* end confdefs.h. */
12395 #include <dirent.h>
12406 if ac_fn_c_try_compile "$LINENO"; then :
12407 eval "$as_gl_Symbol=yes"
12409 eval "$as_gl_Symbol=no"
12411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12413 eval ac_res=\$$as_gl_Symbol
12414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12415 $as_echo "$ac_res" >&6; }
12416 eval as_val=\$$as_gl_Symbol
12417 if test "x$as_val" = x""yes; then :
12418 cat >>confdefs.h <<_ACEOF
12419 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
12422 eval ac_cv_have_decl_$gl_func=yes
12432 for ac_func in dirfd
12434 ac_fn_c_check_func "$LINENO" "dirfd" "ac_cv_func_dirfd"
12435 if test "x$ac_cv_func_dirfd" = x""yes; then :
12436 cat >>confdefs.h <<_ACEOF
12437 #define HAVE_DIRFD 1
12443 ac_fn_c_check_decl "$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "#include <sys/types.h>
12444 #include <dirent.h>
12446 if test "x$ac_cv_have_decl_dirfd" = x""yes; then :
12452 cat >>confdefs.h <<_ACEOF
12453 #define HAVE_DECL_DIRFD $ac_have_decl
12456 if test $ac_cv_have_decl_dirfd = no; then
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dirfd is a macro" >&5
12461 $as_echo_n "checking whether dirfd is a macro... " >&6; }
12462 if test "${gl_cv_func_dirfd_macro+set}" = set; then :
12463 $as_echo_n "(cached) " >&6
12465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12466 /* end confdefs.h. */
12468 #include <sys/types.h>
12469 #include <dirent.h>
12471 dirent_header_defines_dirfd
12474 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12475 $EGREP "dirent_header_defines_dirfd" >/dev/null 2>&1; then :
12476 gl_cv_func_dirfd_macro=yes
12478 gl_cv_func_dirfd_macro=no
12483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dirfd_macro" >&5
12484 $as_echo "$gl_cv_func_dirfd_macro" >&6; }
12486 # Use the replacement only if we have no function or macro with that name.
12487 if test $ac_cv_func_dirfd = no && test $gl_cv_func_dirfd_macro = no; then
12488 if test $ac_cv_have_decl_dirfd = yes; then
12489 # If the system declares dirfd already, let's declare rpl_dirfd instead.
12494 if test $ac_cv_func_dirfd = no && test $gl_cv_func_dirfd_macro = no; then
12503 gl_LIBOBJS="$gl_LIBOBJS dirfd.$ac_objext"
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get the file descriptor associated with an open DIR*" >&5
12507 $as_echo_n "checking how to get the file descriptor associated with an open DIR*... " >&6; }
12508 if test "${gl_cv_sys_dir_fd_member_name+set}" = set; then :
12509 $as_echo_n "(cached) " >&6
12512 dirfd_save_CFLAGS=$CFLAGS
12513 for ac_expr in d_fd dd_fd; do
12515 CFLAGS="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr"
12516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12517 /* end confdefs.h. */
12519 #include <sys/types.h>
12520 #include <dirent.h>
12524 DIR *dir_p = opendir("."); (void) dir_p->DIR_FD_MEMBER_NAME;
12529 if ac_fn_c_try_compile "$LINENO"; then :
12533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12534 CFLAGS=$dirfd_save_CFLAGS
12535 test "$dir_fd_found" = yes && break
12537 test "$dir_fd_found" = yes || ac_expr=no_such_member
12539 gl_cv_sys_dir_fd_member_name=$ac_expr
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_dir_fd_member_name" >&5
12544 $as_echo "$gl_cv_sys_dir_fd_member_name" >&6; }
12545 if test $gl_cv_sys_dir_fd_member_name != no_such_member; then
12547 cat >>confdefs.h <<_ACEOF
12548 #define DIR_FD_MEMBER_NAME $gl_cv_sys_dir_fd_member_name
12566 $as_echo "#define GNULIB_TEST_DIRFD 1" >>confdefs.h
12576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
12577 $as_echo_n "checking whether // is distinct from /... " >&6; }
12578 if test "${gl_cv_double_slash_root+set}" = set; then :
12579 $as_echo_n "(cached) " >&6
12581 if test x"$cross_compiling" = xyes ; then
12582 # When cross-compiling, there is no way to tell whether // is special
12583 # short of a list of hosts. However, the only known hosts to date
12584 # that have a distinct // are Apollo DomainOS (too old to port to),
12585 # Cygwin, and z/OS. If anyone knows of another system for which // has
12586 # special semantics and is distinct from /, please report it to
12587 # <bug-gnulib@gnu.org>.
12589 *-cygwin | i370-ibm-openedition)
12590 gl_cv_double_slash_root=yes ;;
12592 # Be optimistic and assume that / and // are the same when we
12594 gl_cv_double_slash_root='unknown, assuming no' ;;
12597 set x `ls -di / // 2>/dev
/null
`
12598 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
12599 gl_cv_double_slash_root=no
12601 gl_cv_double_slash_root=yes
12605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
12606 $as_echo "$gl_cv_double_slash_root" >&6; }
12607 if test "$gl_cv_double_slash_root" = yes; then
12609 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
12619 REPLACE_FLOAT_LDBL=0
12621 aix* | beos* | openbsd* | mirbsd* | irix*)
12625 case "$host_cpu" in
12630 # On x86_64 systems, the C compiler may still be generating
12632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12633 /* end confdefs.h. */
12634 #if defined __LP64__ || defined __x86_64__ || defined __amd64__
12638 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12639 $EGREP "yes" >/dev/null 2>&1; then :
12650 case "$host_cpu" in
12658 aix* | freebsd* | linux*)
12659 if test -n "$FLOAT_H"; then
12660 REPLACE_FLOAT_LDBL=1
12666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
12667 $as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
12668 if test "${gl_cv_func_itold_works+set}" = set; then :
12669 $as_echo_n "(cached) " >&6
12672 if test "$cross_compiling" = yes; then :
12675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12676 /* end confdefs.h. */
12677 #if defined __LP64__ || defined __arch64__
12681 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12682 $EGREP "yes" >/dev/null 2>&1; then :
12683 gl_cv_func_itold_works="guessing no"
12685 gl_cv_func_itold_works="guessing yes"
12690 *) gl_cv_func_itold_works="guessing yes" ;;
12694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12695 /* end confdefs.h. */
12698 volatile long double ld;
12707 if ac_fn_c_try_run "$LINENO"; then :
12708 gl_cv_func_itold_works=yes
12710 gl_cv_func_itold_works=no
12712 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12713 conftest.$ac_objext conftest.beam conftest.$ac_ext
12718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
12719 $as_echo "$gl_cv_func_itold_works" >&6; }
12720 case "$gl_cv_func_itold_works" in
12727 if test -n "$FLOAT_H"; then
12736 if test $gl_cv_have_include_next = yes; then
12737 gl_cv_next_float_h='<'float.h'>'
12739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
12740 $as_echo_n "checking absolute name of <float.h>... " >&6; }
12741 if test "${gl_cv_next_float_h+set}" = set; then :
12742 $as_echo_n "(cached) " >&6
12747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12748 /* end confdefs.h. */
12752 aix*) gl_absname_cpp="$ac_cpp -C" ;;
12753 *) gl_absname_cpp="$ac_cpp" ;;
12758 gl_dirsep_regex='[/\\]'
12761 gl_dirsep_regex='\/'
12764 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
12765 gl_header_literal_regex=`echo 'float.h' \
12766 |
sed -e "$gl_make_literal_regex_sed"`
12767 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
12768 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
12774 gl_cv_absolute_float_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12775 sed -n "$gl_absolute_header_sed"`
12777 gl_header=$gl_cv_absolute_float_h
12778 gl_cv_next_float_h='"'$gl_header'"'
12782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
12783 $as_echo "$gl_cv_next_float_h" >&6; }
12785 NEXT_FLOAT_H=$gl_cv_next_float_h
12787 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
12788 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12789 gl_next_as_first_directive='<'float.h'>'
12791 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12792 gl_next_as_first_directive=$gl_cv_next_float_h
12794 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
12801 if test -n "$FLOAT_H"; then
12802 GL_GENERATE_FLOAT_H_TRUE=
12803 GL_GENERATE_FLOAT_H_FALSE='#'
12805 GL_GENERATE_FLOAT_H_TRUE='#'
12806 GL_GENERATE_FLOAT_H_FALSE=
12811 if test $REPLACE_FLOAT_LDBL = 1; then
12820 gl_LIBOBJS="$gl_LIBOBJS float.$ac_objext"
12823 if test $REPLACE_ITOLD = 1; then
12832 gl_LIBOBJS="$gl_LIBOBJS itold.$ac_objext"
12841 gl_fnmatch_required_lowercase=`
12842 echo $gl_fnmatch_required | LC_ALL
=C
tr '[A-Z]' '[a-z]'
12844 gl_fnmatch_cache_var="gl_cv_func_fnmatch_${gl_fnmatch_required_lowercase}"
12845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working $gl_fnmatch_required fnmatch" >&5
12846 $as_echo_n "checking for working $gl_fnmatch_required fnmatch... " >&6; }
12847 if { as_var=$gl_fnmatch_cache_var; eval "test \"\${$as_var+set}\" = set"; }; then :
12848 $as_echo_n "(cached) " >&6
12850 if test $gl_fnmatch_required = GNU; then
12851 gl_fnmatch_gnu_start=
12852 gl_fnmatch_gnu_end=
12854 gl_fnmatch_gnu_start='#if 0'
12855 gl_fnmatch_gnu_end='#endif'
12857 if test "$cross_compiling" = yes; then :
12858 eval "$gl_fnmatch_cache_var=\"guessing no\""
12860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12861 /* end confdefs.h. */
12862 #include <fnmatch.h>
12864 y (char const *pattern, char const *string, int flags)
12866 return fnmatch (pattern, string, flags) == 0;
12869 n (char const *pattern, char const *string, int flags)
12871 return fnmatch (pattern, string, flags) == FNM_NOMATCH;
12877 char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]";
12878 char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]";
12879 static char const A_1[] = { 'A' - 1, 0 };
12880 static char const A01[] = { 'A' + 1, 0 };
12881 static char const a_1[] = { 'a' - 1, 0 };
12882 static char const a01[] = { 'a' + 1, 0 };
12883 static char const bs_1[] = { '\\\\' - 1, 0 };
12884 static char const bs01[] = { '\\\\' + 1, 0 };
12886 if (!n ("a*", "", 0))
12888 if (!y ("a*", "abc", 0))
12890 if (!y ("[/b", "[/b", 0)) /*"]]"*/ /* glibc Bugzilla bug 12378 */
12892 if (!n ("d*/*1", "d/s/1", FNM_PATHNAME))
12894 if (!y ("a\\\\bc", "abc", 0))
12896 if (!n ("a\\\\bc", "abc", FNM_NOESCAPE))
12898 if (!y ("*x", ".x", 0))
12900 if (!n ("*x", ".x", FNM_PERIOD))
12902 if (!y (Apat, "\\\\", 0))
12904 if (!y (Apat, "A", 0))
12906 if (!y (apat, "\\\\", 0))
12908 if (!y (apat, "a", 0))
12910 if (!(n (Apat, A_1, 0) == ('A' < '\\\\')))
12912 if (!(n (apat, a_1, 0) == ('a' < '\\\\')))
12914 if (!(y (Apat, A01, 0) == ('A' < '\\\\')))
12916 if (!(y (apat, a01, 0) == ('a' < '\\\\')))
12918 if (!(y (Apat, bs_1, 0) == ('A' < '\\\\')))
12920 if (!(y (apat, bs_1, 0) == ('a' < '\\\\')))
12922 if (!(n (Apat, bs01, 0) == ('A' < '\\\\')))
12924 if (!(n (apat, bs01, 0) == ('a' < '\\\\')))
12926 $gl_fnmatch_gnu_start
12927 if (!y ("xxXX", "xXxX", FNM_CASEFOLD))
12929 if (!y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH))
12931 if (!n ("d*/*1", "d/s/1", FNM_FILE_NAME))
12933 if (!y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR))
12935 if (!y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR))
12937 if (!y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR))
12939 $gl_fnmatch_gnu_end
12946 if ac_fn_c_try_run "$LINENO"; then :
12947 eval "$gl_fnmatch_cache_var=yes"
12949 eval "$gl_fnmatch_cache_var=no"
12951 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12952 conftest.$ac_objext conftest.beam conftest.$ac_ext
12957 eval ac_res=\$$gl_fnmatch_cache_var
12958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12959 $as_echo "$ac_res" >&6; }
12960 eval "gl_fnmatch_result=\"\$$gl_fnmatch_cache_var\""
12961 if test "$gl_fnmatch_result" = yes; then
12962 rm -f "$gl_source_base/fnmatch.h"
12964 FNMATCH_H=fnmatch.h
12967 if test -n "$FNMATCH_H"; then
12968 GL_GENERATE_FNMATCH_H_TRUE=
12969 GL_GENERATE_FNMATCH_H_FALSE='#'
12971 GL_GENERATE_FNMATCH_H_TRUE='#'
12972 GL_GENERATE_FNMATCH_H_FALSE=
12976 if test -n "$FNMATCH_H"; then
12985 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
12989 cat >>confdefs.h <<_ACEOF
12990 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
12994 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
12996 if test "x$ac_cv_have_decl_isblank" = x""yes; then :
13002 cat >>confdefs.h <<_ACEOF
13003 #define HAVE_DECL_ISBLANK $ac_have_decl
13015 if test -n "$FNMATCH_H"; then
13024 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
13028 cat >>confdefs.h <<_ACEOF
13029 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
13033 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
13035 if test "x$ac_cv_have_decl_isblank" = x""yes; then :
13041 cat >>confdefs.h <<_ACEOF
13042 #define HAVE_DECL_ISBLANK $ac_have_decl
13053 if test $gl_cv_func_frexp_no_libm = no; then
13054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used with libm" >&5
13055 $as_echo_n "checking whether frexp() can be used with libm... " >&6; }
13056 if test "${gl_cv_func_frexp_in_libm+set}" = set; then :
13057 $as_echo_n "(cached) " >&6
13062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13063 /* end confdefs.h. */
13069 int e; return frexp (x, &e) > 0;
13074 if ac_fn_c_try_link "$LINENO"; then :
13075 gl_cv_func_frexp_in_libm=yes
13077 gl_cv_func_frexp_in_libm=no
13079 rm -f core conftest.err conftest.$ac_objext \
13080 conftest$ac_exeext conftest.$ac_ext
13084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_in_libm" >&5
13085 $as_echo "$gl_cv_func_frexp_in_libm" >&6; }
13086 if test $gl_cv_func_frexp_in_libm = yes; then
13090 if test $gl_cv_func_frexp_no_libm = yes \
13091 || test $gl_cv_func_frexp_in_libm = yes; then
13093 LIBS="$LIBS $FREXP_LIBM"
13097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp works" >&5
13098 $as_echo_n "checking whether frexp works... " >&6; }
13099 if test "${gl_cv_func_frexp_works+set}" = set; then :
13100 $as_echo_n "(cached) " >&6
13103 if test "$cross_compiling" = yes; then :
13105 netbsd* | irix* | mingw*) gl_cv_func_frexp_works="guessing no";;
13106 *) gl_cv_func_frexp_works="guessing yes";;
13110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13111 /* end confdefs.h. */
13115 #include <string.h>
13116 #if HAVE_DECL_ALARM
13117 # include <signal.h>
13118 # include <unistd.h>
13120 /* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0.
13121 ICC 10.0 has a bug when optimizing the expression -zero.
13122 The expression -DBL_MIN * DBL_MIN does not work when cross-compiling
13123 to PowerPC on Mac OS X 10.5. */
13124 #if defined __hpux || defined __sgi || defined __ICC
13126 compute_minus_zero (void)
13128 return -DBL_MIN * DBL_MIN;
13130 # define minus_zero compute_minus_zero ()
13132 double minus_zero = -0.0;
13140 #if HAVE_DECL_ALARM
13141 /* NeXTstep 3.3 frexp() runs into an endless loop when called on an infinite
13142 number. Let the test fail in this case. */
13143 signal (SIGALRM, SIG_DFL);
13146 /* Test on denormalized numbers. */
13147 for (i = 1, x = 1.0; i >= DBL_MIN_EXP; i--, x *= 0.5)
13152 double y = frexp (x, &exp);
13153 /* On machines with IEEE754 arithmetic: x = 1.11254e-308, exp = -1022.
13154 On NetBSD: y = 0.75. Correct: y = 0.5. */
13158 /* Test on infinite numbers. */
13162 double y = frexp (x, &exp);
13166 /* Test on negative zero. */
13170 double y = frexp (x, &exp);
13171 if (memcmp (&y, &x, sizeof x))
13177 if ac_fn_c_try_run "$LINENO"; then :
13178 gl_cv_func_frexp_works=yes
13180 gl_cv_func_frexp_works=no
13182 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13183 conftest.$ac_objext conftest.beam conftest.$ac_ext
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_works" >&5
13189 $as_echo "$gl_cv_func_frexp_works" >&6; }
13192 case "$gl_cv_func_frexp_works" in
13193 *yes) gl_func_frexp=yes ;;
13194 *) gl_func_frexp=no; REPLACE_FREXP=1; FREXP_LIBM= ;;
13199 if test $gl_func_frexp = yes; then
13201 $as_echo "#define HAVE_FREXP 1" >>confdefs.h
13206 if test $gl_func_frexp != yes; then
13215 gl_LIBOBJS="$gl_LIBOBJS frexp.$ac_objext"
13229 $as_echo "#define GNULIB_TEST_FREXP 1" >>confdefs.h
13239 ac_fn_c_check_decl "$LINENO" "frexpl" "ac_cv_have_decl_frexpl" "#include <math.h>
13241 if test "x$ac_cv_have_decl_frexpl" = x""yes; then :
13249 if test $HAVE_DECL_FREXPL = 1; then
13251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used without linking with libm" >&5
13252 $as_echo_n "checking whether frexpl() can be used without linking with libm... " >&6; }
13253 if test "${gl_cv_func_frexpl_no_libm+set}" = set; then :
13254 $as_echo_n "(cached) " >&6
13257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13258 /* end confdefs.h. */
13264 int e; return frexpl (x, &e) > 0;
13269 if ac_fn_c_try_link "$LINENO"; then :
13270 gl_cv_func_frexpl_no_libm=yes
13272 gl_cv_func_frexpl_no_libm=no
13274 rm -f core conftest.err conftest.$ac_objext \
13275 conftest$ac_exeext conftest.$ac_ext
13278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_no_libm" >&5
13279 $as_echo "$gl_cv_func_frexpl_no_libm" >&6; }
13281 if test $gl_cv_func_frexpl_no_libm = no; then
13282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used with libm" >&5
13283 $as_echo_n "checking whether frexpl() can be used with libm... " >&6; }
13284 if test "${gl_cv_func_frexpl_in_libm+set}" = set; then :
13285 $as_echo_n "(cached) " >&6
13290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13291 /* end confdefs.h. */
13297 int e; return frexpl (x, &e) > 0;
13302 if ac_fn_c_try_link "$LINENO"; then :
13303 gl_cv_func_frexpl_in_libm=yes
13305 gl_cv_func_frexpl_in_libm=no
13307 rm -f core conftest.err conftest.$ac_objext \
13308 conftest$ac_exeext conftest.$ac_ext
13312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_in_libm" >&5
13313 $as_echo "$gl_cv_func_frexpl_in_libm" >&6; }
13314 if test $gl_cv_func_frexpl_in_libm = yes; then
13318 if test $gl_cv_func_frexpl_no_libm = yes \
13319 || test $gl_cv_func_frexpl_in_libm = yes; then
13321 LIBS="$LIBS $FREXPL_LIBM"
13324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl works" >&5
13325 $as_echo_n "checking whether frexpl works... " >&6; }
13326 if test "${gl_cv_func_frexpl_works+set}" = set; then :
13327 $as_echo_n "(cached) " >&6
13330 if test "$cross_compiling" = yes; then :
13333 aix | aix[3-6]* | beos* | darwin* | irix* | mingw* | pw*)
13334 gl_cv_func_frexpl_works="guessing no";;
13335 *) gl_cv_func_frexpl_works="guessing yes";;
13339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13340 /* end confdefs.h. */
13344 /* Override the values of <float.h>, like done in float.in.h. */
13345 #if defined __i386__ && (defined __BEOS__ || defined __OpenBSD__)
13346 # undef LDBL_MIN_EXP
13347 # define LDBL_MIN_EXP (-16381)
13349 #if defined __i386__ && defined __FreeBSD__
13350 # undef LDBL_MIN_EXP
13351 # define LDBL_MIN_EXP (-16381)
13353 #if (defined _ARCH_PPC || defined _POWER) && defined _AIX && (LDBL_MANT_DIG == 106) && defined __GNUC__
13354 # undef LDBL_MIN_EXP
13355 # define LDBL_MIN_EXP DBL_MIN_EXP
13357 #if defined __sgi && (LDBL_MANT_DIG >= 106)
13358 # if defined __GNUC__
13359 # undef LDBL_MIN_EXP
13360 # define LDBL_MIN_EXP DBL_MIN_EXP
13367 long double frexpl (long double, int *);
13371 volatile long double x;
13372 /* Test on finite numbers that fails on AIX 5.1. */
13380 /* Test on finite numbers that fails on Mac OS X 10.4, because its frexpl
13381 function returns an invalid (incorrectly normalized) value: it returns
13382 y = { 0x3fe028f5, 0xc28f5c28, 0x3c9eb851, 0xeb851eb8 }
13383 but the correct result is
13384 0.505L = { 0x3fe028f5, 0xc28f5c29, 0xbc547ae1, 0x47ae1480 } */
13388 long double y = frexpl (x, &exp);
13389 if (!(exp == 1 && y == 0.505L))
13392 /* Test on large finite numbers. This fails on BeOS at i = 16322, while
13393 LDBL_MAX_EXP = 16384.
13394 In the loop end test, we test x against Infinity, rather than comparing
13395 i with LDBL_MAX_EXP, because BeOS <float.h> has a wrong LDBL_MAX_EXP. */
13398 for (i = 1, x = 1.0L; x != x + x; i++, x *= 2.0L)
13409 /* Test on denormalized numbers. */
13412 for (i = 1, x = 1.0L; i >= LDBL_MIN_EXP; i--, x *= 0.5L)
13417 long double y = frexpl (x, &exp);
13418 /* On machines with IEEE854 arithmetic: x = 1.68105e-4932,
13419 exp = -16382, y = 0.5. On Mac OS X 10.5: exp = -16384, y = 0.5. */
13420 if (exp != LDBL_MIN_EXP - 1)
13424 /* Test on infinite numbers. */
13428 long double y = frexpl (x, &exp);
13435 if ac_fn_c_try_run "$LINENO"; then :
13436 gl_cv_func_frexpl_works=yes
13438 gl_cv_func_frexpl_works=no
13440 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13441 conftest.$ac_objext conftest.beam conftest.$ac_ext
13446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_works" >&5
13447 $as_echo "$gl_cv_func_frexpl_works" >&6; }
13450 case "$gl_cv_func_frexpl_works" in
13451 *yes) gl_func_frexpl=yes ;;
13452 *) gl_func_frexpl=no; REPLACE_FREXPL=1 ;;
13457 if test $gl_func_frexpl = yes; then
13459 $as_echo "#define HAVE_FREXPL 1" >>confdefs.h
13463 if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl = no; then
13464 if test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1; then
13466 FREXPL_LIBM="$FREXP_LIBM"
13473 if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl = no; then
13482 gl_LIBOBJS="$gl_LIBOBJS frexpl.$ac_objext"
13496 $as_echo "#define GNULIB_TEST_FREXPL 1" >>confdefs.h
13506 gl_gettimeofday_timezone=void
13507 if test $ac_cv_func_gettimeofday != yes; then
13508 HAVE_GETTIMEOFDAY=0
13513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
13514 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
13515 if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then :
13516 $as_echo_n "(cached) " >&6
13518 if test "$cross_compiling" = yes; then :
13519 # When cross-compiling:
13521 # Guess all is fine on glibc systems.
13522 *-gnu*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
13523 # If we don't know, assume the worst.
13524 *) gl_cv_func_gettimeofday_clobber="guessing yes" ;;
13528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13529 /* end confdefs.h. */
13530 #include <string.h>
13531 #include <sys/time.h>
13533 #include <stdlib.h>
13541 struct tm saved_lt;
13543 lt = localtime (&t);
13545 gettimeofday (&tv, NULL);
13546 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
13552 if ac_fn_c_try_run "$LINENO"; then :
13553 gl_cv_func_gettimeofday_clobber=no
13555 gl_cv_func_gettimeofday_clobber=yes
13557 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13558 conftest.$ac_objext conftest.beam conftest.$ac_ext
13562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
13563 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
13565 case "$gl_cv_func_gettimeofday_clobber" in
13567 REPLACE_GETTIMEOFDAY=1
13570 REPLACE_LOCALTIME=1
13573 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
13578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
13579 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
13580 if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then :
13581 $as_echo_n "(cached) " >&6
13583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13584 /* end confdefs.h. */
13585 #include <sys/time.h>
13587 int gettimeofday (struct timeval *restrict, void *restrict);
13592 /* glibc uses struct timezone * rather than the POSIX void *
13593 if _GNU_SOURCE is defined. However, since the only portable
13594 use of gettimeofday uses NULL as the second parameter, and
13595 since the glibc definition is actually more typesafe, it is
13596 not worth wrapping this to get a compliant signature. */
13597 int (*f) (struct timeval *restrict, void *restrict)
13600 return !(x | c.tv_sec | c.tv_usec);
13606 if ac_fn_c_try_compile "$LINENO"; then :
13607 gl_cv_func_gettimeofday_posix_signature=yes
13609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13610 /* end confdefs.h. */
13611 #include <sys/time.h>
13612 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
13622 if ac_fn_c_try_compile "$LINENO"; then :
13623 gl_cv_func_gettimeofday_posix_signature=almost
13625 gl_cv_func_gettimeofday_posix_signature=no
13627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
13632 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
13633 if test $gl_cv_func_gettimeofday_posix_signature = almost; then
13634 gl_gettimeofday_timezone='struct timezone'
13635 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
13636 REPLACE_GETTIMEOFDAY=1
13638 if test $REPLACE_STRUCT_TIMEVAL = 1; then
13639 REPLACE_GETTIMEOFDAY=1
13644 cat >>confdefs.h <<_ACEOF
13645 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
13649 if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
13658 gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
13661 for ac_header in sys/timeb.h
13663 ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
13664 if test "x$ac_cv_header_sys_timeb_h" = x""yes; then :
13665 cat >>confdefs.h <<_ACEOF
13666 #define HAVE_SYS_TIMEB_H 1
13673 for ac_func in _ftime
13675 ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime"
13676 if test "x$ac_cv_func__ftime" = x""yes; then :
13677 cat >>confdefs.h <<_ACEOF
13678 #define HAVE__FTIME 1
13691 GNULIB_GETTIMEOFDAY=1
13697 $as_echo "#define GNULIB_TEST_GETTIMEOFDAY 1" >>confdefs.h
13707 if test -n "$STDINT_H"; then
13708 PRIPTR_PREFIX='"l"'
13710 for glpfx in '' l ll I64; do
13712 '') gltype1='int';;
13713 l) gltype1='long int';;
13714 ll) gltype1='long long int';;
13715 I64) gltype1='__int64';;
13717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13718 /* end confdefs.h. */
13719 #include <stdint.h>
13720 extern intptr_t foo;
13721 extern $gltype1 foo;
13730 if ac_fn_c_try_compile "$LINENO"; then :
13731 PRIPTR_PREFIX='"'$glpfx'"'
13733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13734 test -n "$PRIPTR_PREFIX" && break
13740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5
13741 $as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
13742 if test "${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+set}" = set; then :
13743 $as_echo_n "(cached) " >&6
13745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13746 /* end confdefs.h. */
13747 /* Work also in C++ mode. */
13748 #define __STDC_LIMIT_MACROS 1
13750 /* Work if build is not clean. */
13751 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
13753 #include <limits.h>
13755 #include <stdint.h>
13758 #if defined INT32_MAX && defined INTMAX_MAX
13759 #define CONDITION (INT32_MAX < INTMAX_MAX)
13760 #elif HAVE_LONG_LONG_INT
13761 #define CONDITION (sizeof (int) < sizeof (long long int))
13763 #define CONDITION 0
13765 int test[CONDITION ? 1 : -1];
13774 if ac_fn_c_try_compile "$LINENO"; then :
13775 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=yes
13777 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=no
13779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
13782 $as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
13783 if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
13784 INT32_MAX_LT_INTMAX_MAX=1;
13786 INT32_MAX_LT_INTMAX_MAX=0;
13790 if test $APPLE_UNIVERSAL_BUILD = 0; then
13792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5
13793 $as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; }
13794 if test "${gl_cv_test_INT64_MAX_EQ_LONG_MAX+set}" = set; then :
13795 $as_echo_n "(cached) " >&6
13797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13798 /* end confdefs.h. */
13799 /* Work also in C++ mode. */
13800 #define __STDC_LIMIT_MACROS 1
13802 /* Work if build is not clean. */
13803 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
13805 #include <limits.h>
13807 #include <stdint.h>
13810 #if defined INT64_MAX
13811 #define CONDITION (INT64_MAX == LONG_MAX)
13812 #elif HAVE_LONG_LONG_INT
13813 #define CONDITION (sizeof (long long int) == sizeof (long int))
13815 #define CONDITION 0
13817 int test[CONDITION ? 1 : -1];
13826 if ac_fn_c_try_compile "$LINENO"; then :
13827 gl_cv_test_INT64_MAX_EQ_LONG_MAX=yes
13829 gl_cv_test_INT64_MAX_EQ_LONG_MAX=no
13831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
13834 $as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
13835 if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
13836 INT64_MAX_EQ_LONG_MAX=1;
13838 INT64_MAX_EQ_LONG_MAX=0;
13843 INT64_MAX_EQ_LONG_MAX=-1
13846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5
13847 $as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
13848 if test "${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+set}" = set; then :
13849 $as_echo_n "(cached) " >&6
13851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13852 /* end confdefs.h. */
13853 /* Work also in C++ mode. */
13854 #define __STDC_LIMIT_MACROS 1
13856 /* Work if build is not clean. */
13857 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
13859 #include <limits.h>
13861 #include <stdint.h>
13864 #if defined UINT32_MAX && defined UINTMAX_MAX
13865 #define CONDITION (UINT32_MAX < UINTMAX_MAX)
13866 #elif HAVE_LONG_LONG_INT
13867 #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
13869 #define CONDITION 0
13871 int test[CONDITION ? 1 : -1];
13880 if ac_fn_c_try_compile "$LINENO"; then :
13881 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=yes
13883 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=no
13885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
13888 $as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
13889 if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
13890 UINT32_MAX_LT_UINTMAX_MAX=1;
13892 UINT32_MAX_LT_UINTMAX_MAX=0;
13896 if test $APPLE_UNIVERSAL_BUILD = 0; then
13898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5
13899 $as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
13900 if test "${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+set}" = set; then :
13901 $as_echo_n "(cached) " >&6
13903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13904 /* end confdefs.h. */
13905 /* Work also in C++ mode. */
13906 #define __STDC_LIMIT_MACROS 1
13908 /* Work if build is not clean. */
13909 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
13911 #include <limits.h>
13913 #include <stdint.h>
13916 #if defined UINT64_MAX
13917 #define CONDITION (UINT64_MAX == ULONG_MAX)
13918 #elif HAVE_LONG_LONG_INT
13919 #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
13921 #define CONDITION 0
13923 int test[CONDITION ? 1 : -1];
13932 if ac_fn_c_try_compile "$LINENO"; then :
13933 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=yes
13935 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=no
13937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
13940 $as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
13941 if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
13942 UINT64_MAX_EQ_ULONG_MAX=1;
13944 UINT64_MAX_EQ_ULONG_MAX=0;
13949 UINT64_MAX_EQ_ULONG_MAX=-1
13956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(double) can be used without linking with libm" >&5
13957 $as_echo_n "checking whether isnan(double) can be used without linking with libm... " >&6; }
13958 if test "${gl_cv_func_isnand_no_libm+set}" = set; then :
13959 $as_echo_n "(cached) " >&6
13962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13963 /* end confdefs.h. */
13967 # define isnand(x) __builtin_isnan ((double)(x))
13970 # define isnand(x) isnan ((double)(x))
13981 if ac_fn_c_try_link "$LINENO"; then :
13982 gl_cv_func_isnand_no_libm=yes
13984 gl_cv_func_isnand_no_libm=no
13986 rm -f core conftest.err conftest.$ac_objext \
13987 conftest$ac_exeext conftest.$ac_ext
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnand_no_libm" >&5
13991 $as_echo "$gl_cv_func_isnand_no_libm" >&6; }
13993 gl_func_isnand_no_libm=$gl_cv_func_isnand_no_libm
13994 if test $gl_cv_func_isnand_no_libm = yes; then
13996 $as_echo "#define HAVE_ISNAND_IN_LIBC 1" >>confdefs.h
14000 if test $gl_func_isnand_no_libm != yes; then
14009 gl_LIBOBJS="$gl_LIBOBJS isnand.$ac_objext"
14017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(long double) can be used without linking with libm" >&5
14018 $as_echo_n "checking whether isnan(long double) can be used without linking with libm... " >&6; }
14019 if test "${gl_cv_func_isnanl_no_libm+set}" = set; then :
14020 $as_echo_n "(cached) " >&6
14023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14024 /* end confdefs.h. */
14028 # define isnanl(x) __builtin_isnanl ((long double)(x))
14029 #elif defined isnan
14031 # define isnanl(x) isnan ((long double)(x))
14042 if ac_fn_c_try_link "$LINENO"; then :
14043 gl_cv_func_isnanl_no_libm=yes
14045 gl_cv_func_isnanl_no_libm=no
14047 rm -f core conftest.err conftest.$ac_objext \
14048 conftest$ac_exeext conftest.$ac_ext
14051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_no_libm" >&5
14052 $as_echo "$gl_cv_func_isnanl_no_libm" >&6; }
14054 gl_func_isnanl_no_libm=$gl_cv_func_isnanl_no_libm
14055 if test $gl_func_isnanl_no_libm = yes; then
14060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnanl works" >&5
14061 $as_echo_n "checking whether isnanl works... " >&6; }
14062 if test "${gl_cv_func_isnanl_works+set}" = set; then :
14063 $as_echo_n "(cached) " >&6
14066 if test "$cross_compiling" = yes; then :
14067 gl_cv_func_isnanl_works="guessing yes"
14069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14070 /* end confdefs.h. */
14073 #include <limits.h>
14077 # define isnanl(x) __builtin_isnanl ((long double)(x))
14078 #elif defined isnan
14080 # define isnanl(x) isnan ((long double)(x))
14083 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
14084 typedef union { unsigned int word[NWORDS]; long double value; }
14085 memory_long_double;
14086 /* On Irix 6.5, gcc 3.4.3 can't compute compile-time NaN, and needs the
14087 runtime type conversion. */
14089 static long double NaNl ()
14092 return zero / zero;
14095 # define NaNl() (0.0L / 0.0L)
14101 if (!isnanl (NaNl ()))
14105 memory_long_double m;
14108 /* The isnanl function should be immune against changes in the sign bit and
14109 in the mantissa bits. The xor operation twiddles a bit that can only be
14110 a sign bit or a mantissa bit (since the exponent never extends to
14113 m.word[NWORDS / 2] ^= (unsigned int) 1 << (sizeof (unsigned int) * CHAR_BIT - 1);
14114 for (i = 0; i < NWORDS; i++)
14116 if (!isnanl (m.value))
14120 #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
14121 /* Representation of an 80-bit 'long double' as an initializer for a sequence
14122 of 'unsigned int' words. */
14123 # ifdef WORDS_BIGENDIAN
14124 # define LDBL80_WORDS(exponent,manthi,mantlo) \
14125 { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
14126 ((unsigned int) (manthi) << 16) | ((unsigned int) (mantlo) >> 16), \
14127 (unsigned int) (mantlo) << 16 \
14130 # define LDBL80_WORDS(exponent,manthi,mantlo) \
14131 { mantlo, manthi, exponent }
14134 static memory_long_double x =
14135 { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) };
14136 if (!isnanl (x.value))
14140 /* Signalling NaN. */
14141 static memory_long_double x =
14142 { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) };
14143 if (!isnanl (x.value))
14146 /* isnanl should return something even for noncanonical values. */
14147 { /* Pseudo-NaN. */
14148 static memory_long_double x =
14149 { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) };
14150 if (isnanl (x.value) && !isnanl (x.value))
14153 { /* Pseudo-Infinity. */
14154 static memory_long_double x =
14155 { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) };
14156 if (isnanl (x.value) && !isnanl (x.value))
14159 { /* Pseudo-Zero. */
14160 static memory_long_double x =
14161 { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) };
14162 if (isnanl (x.value) && !isnanl (x.value))
14165 { /* Unnormalized number. */
14166 static memory_long_double x =
14167 { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) };
14168 if (isnanl (x.value) && !isnanl (x.value))
14171 { /* Pseudo-Denormal. */
14172 static memory_long_double x =
14173 { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) };
14174 if (isnanl (x.value) && !isnanl (x.value))
14182 if ac_fn_c_try_run "$LINENO"; then :
14183 gl_cv_func_isnanl_works=yes
14185 gl_cv_func_isnanl_works=no
14187 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14188 conftest.$ac_objext conftest.beam conftest.$ac_ext
14193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_works" >&5
14194 $as_echo "$gl_cv_func_isnanl_works" >&6; }
14196 case "$gl_cv_func_isnanl_works" in
14198 *) gl_func_isnanl_no_libm=no ;;
14201 if test $gl_func_isnanl_no_libm = yes; then
14203 $as_echo "#define HAVE_ISNANL_IN_LIBC 1" >>confdefs.h
14207 if test $gl_func_isnanl_no_libm != yes; then
14216 gl_LIBOBJS="$gl_LIBOBJS isnanl.$ac_objext"
14221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'long double'" >&5
14222 $as_echo_n "checking where to find the exponent in a 'long double'... " >&6; }
14223 if test "${gl_cv_cc_long_double_expbit0+set}" = set; then :
14224 $as_echo_n "(cached) " >&6
14227 if test "$cross_compiling" = yes; then :
14229 gl_cv_cc_long_double_expbit0="unknown"
14232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14233 /* end confdefs.h. */
14236 #include <stddef.h>
14238 #include <string.h>
14240 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
14241 typedef union { long double value; unsigned int word[NWORDS]; }
14242 memory_long_double;
14243 static unsigned int ored_words[NWORDS];
14244 static unsigned int anded_words[NWORDS];
14245 static void add_to_ored_words (long double x)
14247 memory_long_double m;
14249 /* Clear it first, in case
14250 sizeof (long double) < sizeof (memory_long_double). */
14251 memset (&m, 0, sizeof (memory_long_double));
14253 for (i = 0; i < NWORDS; i++)
14255 ored_words[i] |= m.word[i];
14256 anded_words[i] &= m.word[i];
14262 FILE *fp = fopen ("conftest.out", "w");
14265 for (j = 0; j < NWORDS; j++)
14266 anded_words[j] = ~ (unsigned int) 0;
14267 add_to_ored_words (0.25L);
14268 add_to_ored_words (0.5L);
14269 add_to_ored_words (1.0L);
14270 add_to_ored_words (2.0L);
14271 add_to_ored_words (4.0L);
14272 /* Remove bits that are common (e.g. if representation of the first mantissa
14273 bit is explicit). */
14274 for (j = 0; j < NWORDS; j++)
14275 ored_words[j] &= ~anded_words[j];
14276 /* Now find the nonzero word. */
14277 for (j = 0; j < NWORDS; j++)
14278 if (ored_words[j] != 0)
14283 for (i = j + 1; i < NWORDS; i++)
14284 if (ored_words[i] != 0)
14286 fprintf (fp, "unknown");
14287 return (fclose (fp) != 0);
14290 if ((ored_words[j] >> i) & 1)
14292 fprintf (fp, "word %d bit %d", (int) j, (int) i);
14293 return (fclose (fp) != 0);
14296 fprintf (fp, "unknown");
14297 return (fclose (fp) != 0);
14301 if ac_fn_c_try_run "$LINENO"; then :
14302 gl_cv_cc_long_double_expbit0=`cat conftest.out
`
14304 gl_cv_cc_long_double_expbit0="unknown"
14306 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14307 conftest.$ac_objext conftest.beam conftest.$ac_ext
14313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_long_double_expbit0" >&5
14314 $as_echo "$gl_cv_cc_long_double_expbit0" >&6; }
14315 case "$gl_cv_cc_long_double_expbit0" in
14317 word=`echo "$gl_cv_cc_long_double_expbit0" |
sed -e 's/word //' -e 's/ bit.*//'`
14318 bit=`echo "$gl_cv_cc_long_double_expbit0" |
sed -e 's/word.*bit //'`
14320 cat >>confdefs.h <<_ACEOF
14321 #define LDBL_EXPBIT0_WORD $word
14325 cat >>confdefs.h <<_ACEOF
14326 #define LDBL_EXPBIT0_BIT $bit
14344 LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
14349 if test $ac_cv_func_lstat = yes; then
14351 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
14360 if test $REPLACE_LSTAT = 1; then
14369 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
14384 $as_echo "#define GNULIB_TEST_LSTAT 1" >>confdefs.h
14391 if test $gl_cv_func_malloc_posix = yes; then
14393 $as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
14399 if test $REPLACE_MALLOC = 1; then
14408 gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
14416 GNULIB_MALLOC_POSIX=1
14422 $as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
14441 if test $gl_cv_have_include_next = yes; then
14442 gl_cv_next_math_h='<'math.h'>'
14444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <math.h>" >&5
14445 $as_echo_n "checking absolute name of <math.h>... " >&6; }
14446 if test "${gl_cv_next_math_h+set}" = set; then :
14447 $as_echo_n "(cached) " >&6
14450 if test $ac_cv_header_math_h = yes; then
14455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14456 /* end confdefs.h. */
14460 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14461 *) gl_absname_cpp="$ac_cpp" ;;
14466 gl_dirsep_regex='[/\\]'
14469 gl_dirsep_regex='\/'
14472 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14473 gl_header_literal_regex=`echo 'math.h' \
14474 |
sed -e "$gl_make_literal_regex_sed"`
14475 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14476 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14482 gl_cv_absolute_math_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14483 sed -n "$gl_absolute_header_sed"`
14485 gl_header=$gl_cv_absolute_math_h
14486 gl_cv_next_math_h='"'$gl_header'"'
14488 gl_cv_next_math_h='<'math.h'>'
14493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_math_h" >&5
14494 $as_echo "$gl_cv_next_math_h" >&6; }
14496 NEXT_MATH_H=$gl_cv_next_math_h
14498 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14499 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14500 gl_next_as_first_directive='<'math.h'>'
14502 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14503 gl_next_as_first_directive=$gl_cv_next_math_h
14505 NEXT_AS_FIRST_DIRECTIVE_MATH_H=$gl_next_as_first_directive
14511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NAN macro works" >&5
14512 $as_echo_n "checking whether NAN macro works... " >&6; }
14513 if test "${gl_cv_header_math_nan_works+set}" = set; then :
14514 $as_echo_n "(cached) " >&6
14516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14517 /* end confdefs.h. */
14522 /* Solaris 10 has a broken definition of NAN. Other platforms
14523 fail to provide NAN, or provide it only in C99 mode; this
14524 test only needs to fail when NAN is provided but wrong. */
14534 if ac_fn_c_try_compile "$LINENO"; then :
14535 gl_cv_header_math_nan_works=yes
14537 gl_cv_header_math_nan_works=no
14539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_nan_works" >&5
14542 $as_echo "$gl_cv_header_math_nan_works" >&6; }
14543 if test $gl_cv_header_math_nan_works = no; then
14546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether HUGE_VAL works" >&5
14547 $as_echo_n "checking whether HUGE_VAL works... " >&6; }
14548 if test "${gl_cv_header_math_huge_val_works+set}" = set; then :
14549 $as_echo_n "(cached) " >&6
14551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14552 /* end confdefs.h. */
14557 /* Solaris 10 has a broken definition of HUGE_VAL. */
14558 double d = HUGE_VAL;
14564 if ac_fn_c_try_compile "$LINENO"; then :
14565 gl_cv_header_math_huge_val_works=yes
14567 gl_cv_header_math_huge_val_works=no
14569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_huge_val_works" >&5
14572 $as_echo "$gl_cv_header_math_huge_val_works" >&6; }
14573 if test $gl_cv_header_math_huge_val_works = no; then
14578 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
14579 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
14580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
14581 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
14582 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
14583 $as_echo_n "(cached) " >&6
14585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14586 /* end confdefs.h. */
14597 if ac_fn_c_try_compile "$LINENO"; then :
14598 eval "$as_gl_Symbol=yes"
14600 eval "$as_gl_Symbol=no"
14602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14604 eval ac_res=\$$as_gl_Symbol
14605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14606 $as_echo "$ac_res" >&6; }
14607 eval as_val=\$$as_gl_Symbol
14608 if test "x$as_val" = x""yes; then :
14609 cat >>confdefs.h <<_ACEOF
14610 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
14613 eval ac_cv_have_decl_$gl_func=yes
14628 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
14632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
14633 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
14634 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
14635 $as_echo_n "(cached) " >&6
14639 # Guess no on AIX and OSF/1.
14640 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
14641 # Guess yes otherwise.
14642 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
14644 if test $LOCALE_JA != none; then
14645 if test "$cross_compiling" = yes; then :
14648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14649 /* end confdefs.h. */
14651 #include <locale.h>
14652 #include <string.h>
14653 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14655 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14656 included before <wchar.h>. */
14657 #include <stddef.h>
14663 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
14665 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
14669 memset (&state, '\0', sizeof (mbstate_t));
14670 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
14671 if (mbsinit (&state))
14677 if ac_fn_c_try_run "$LINENO"; then :
14678 gl_cv_func_mbrtowc_incomplete_state=yes
14680 gl_cv_func_mbrtowc_incomplete_state=no
14682 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14683 conftest.$ac_objext conftest.beam conftest.$ac_ext
14689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
14690 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
14695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
14696 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
14697 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
14698 $as_echo_n "(cached) " >&6
14702 # Guess no on Solaris 8.
14703 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
14704 # Guess yes otherwise.
14705 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
14707 if test $LOCALE_ZH_CN != none; then
14708 if test "$cross_compiling" = yes; then :
14711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14712 /* end confdefs.h. */
14714 #include <locale.h>
14715 #include <stdlib.h>
14716 #include <string.h>
14717 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14719 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14720 included before <wchar.h>. */
14721 #include <stddef.h>
14727 /* This fails on Solaris 8:
14728 mbrtowc returns 2, and sets wc to 0x00F0.
14729 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
14730 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
14732 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
14736 memset (&state, '\0', sizeof (mbstate_t));
14737 if (mbrtowc (&wc, input + 3, 6, &state) != 4
14738 && mbtowc (&wc, input + 3, 6) == 4)
14744 if ac_fn_c_try_run "$LINENO"; then :
14745 gl_cv_func_mbrtowc_sanitycheck=yes
14747 gl_cv_func_mbrtowc_sanitycheck=no
14749 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14750 conftest.$ac_objext conftest.beam conftest.$ac_ext
14756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
14757 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
14759 REPLACE_MBSTATE_T=0
14760 case "$gl_cv_func_mbrtowc_incomplete_state" in
14762 *) REPLACE_MBSTATE_T=1 ;;
14764 case "$gl_cv_func_mbrtowc_sanitycheck" in
14766 *) REPLACE_MBSTATE_T=1 ;;
14769 REPLACE_MBSTATE_T=1
14774 if test $ac_cv_func_mbrtowc = no; then
14776 ac_fn_c_check_decl "$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" "
14777 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14779 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14780 included before <wchar.h>. */
14781 #include <stddef.h>
14787 if test "x$ac_cv_have_decl_mbrtowc" = x""yes; then :
14793 cat >>confdefs.h <<_ACEOF
14794 #define HAVE_DECL_MBRTOWC $ac_have_decl
14797 if test $ac_cv_have_decl_mbrtowc = yes; then
14801 if test $REPLACE_MBSTATE_T = 1; then
14807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL pwc argument" >&5
14808 $as_echo_n "checking whether mbrtowc handles a NULL pwc argument... " >&6; }
14809 if test "${gl_cv_func_mbrtowc_null_arg1+set}" = set; then :
14810 $as_echo_n "(cached) " >&6
14814 # Guess no on Solaris.
14815 solaris*) gl_cv_func_mbrtowc_null_arg1="guessing no" ;;
14816 # Guess yes otherwise.
14817 *) gl_cv_func_mbrtowc_null_arg1="guessing yes" ;;
14819 if test $LOCALE_FR_UTF8 != none; then
14820 if test "$cross_compiling" = yes; then :
14823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14824 /* end confdefs.h. */
14826 #include <locale.h>
14827 #include <stdlib.h>
14828 #include <string.h>
14829 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14831 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14832 included before <wchar.h>. */
14833 #include <stddef.h>
14841 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
14843 char input[] = "\303\237er";
14848 memset (&state, '\0', sizeof (mbstate_t));
14849 wc = (wchar_t) 0xBADFACE;
14850 ret = mbrtowc (&wc, input, 5, &state);
14853 if (!mbsinit (&state))
14856 memset (&state, '\0', sizeof (mbstate_t));
14857 ret = mbrtowc (NULL, input, 5, &state);
14858 if (ret != 2) /* Solaris 7 fails here: ret is -1. */
14860 if (!mbsinit (&state))
14866 if ac_fn_c_try_run "$LINENO"; then :
14867 gl_cv_func_mbrtowc_null_arg1=yes
14869 gl_cv_func_mbrtowc_null_arg1=no
14871 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14872 conftest.$ac_objext conftest.beam conftest.$ac_ext
14878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg1" >&5
14879 $as_echo "$gl_cv_func_mbrtowc_null_arg1" >&6; }
14884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
14885 $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
14886 if test "${gl_cv_func_mbrtowc_null_arg2+set}" = set; then :
14887 $as_echo_n "(cached) " >&6
14891 # Guess no on OSF/1.
14892 osf*) gl_cv_func_mbrtowc_null_arg2="guessing no" ;;
14893 # Guess yes otherwise.
14894 *) gl_cv_func_mbrtowc_null_arg2="guessing yes" ;;
14896 if test $LOCALE_FR_UTF8 != none; then
14897 if test "$cross_compiling" = yes; then :
14900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14901 /* end confdefs.h. */
14903 #include <locale.h>
14904 #include <string.h>
14905 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14907 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14908 included before <wchar.h>. */
14909 #include <stddef.h>
14915 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
14921 memset (&state, '\0', sizeof (mbstate_t));
14922 wc = (wchar_t) 0xBADFACE;
14923 mbrtowc (&wc, NULL, 5, &state);
14924 /* Check that wc was not modified. */
14925 if (wc != (wchar_t) 0xBADFACE)
14931 if ac_fn_c_try_run "$LINENO"; then :
14932 gl_cv_func_mbrtowc_null_arg2=yes
14934 gl_cv_func_mbrtowc_null_arg2=no
14936 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14937 conftest.$ac_objext conftest.beam conftest.$ac_ext
14943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg2" >&5
14944 $as_echo "$gl_cv_func_mbrtowc_null_arg2" >&6; }
14951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
14952 $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
14953 if test "${gl_cv_func_mbrtowc_retval+set}" = set; then :
14954 $as_echo_n "(cached) " >&6
14958 # Guess no on HP-UX, Solaris, native Windows.
14959 hpux* | solaris* | mingw*) gl_cv_func_mbrtowc_retval="guessing no" ;;
14960 # Guess yes otherwise.
14961 *) gl_cv_func_mbrtowc_retval="guessing yes" ;;
14963 if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none \
14964 || { case "$host_os" in mingw*) true;; *) false;; esac; }; then
14965 if test "$cross_compiling" = yes; then :
14968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14969 /* end confdefs.h. */
14971 #include <locale.h>
14972 #include <string.h>
14973 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14975 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14976 included before <wchar.h>. */
14977 #include <stddef.h>
14984 int found_some_locale = 0;
14985 /* This fails on Solaris. */
14986 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
14988 char input[] = "B\303\274\303\237er"; /* "Büßer" */
14992 memset (&state, '\0', sizeof (mbstate_t));
14993 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
14996 if (mbrtowc (&wc, input + 2, 5, &state) != 1)
14999 found_some_locale = 1;
15001 /* This fails on HP-UX 11.11. */
15002 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
15004 char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
15008 memset (&state, '\0', sizeof (mbstate_t));
15009 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
15012 if (mbrtowc (&wc, input + 2, 5, &state) != 2)
15015 found_some_locale = 1;
15017 /* This fails on native Windows. */
15018 if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
15020 char input[] = "<\223\372\226\173\214\352>"; /* "<日本語>" */
15024 memset (&state, '\0', sizeof (mbstate_t));
15025 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
15028 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
15031 found_some_locale = 1;
15033 if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
15035 char input[] = "<\244\351\245\273\273\171>"; /* "<日本語>" */
15039 memset (&state, '\0', sizeof (mbstate_t));
15040 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
15043 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
15046 found_some_locale = 1;
15048 if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
15050 char input[] = "<\310\325\261\276\325\132>"; /* "<日本語>" */
15054 memset (&state, '\0', sizeof (mbstate_t));
15055 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
15058 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
15061 found_some_locale = 1;
15063 return (found_some_locale ? result : 77);
15066 if ac_fn_c_try_run "$LINENO"; then :
15067 gl_cv_func_mbrtowc_retval=yes
15069 if test $? != 77; then
15070 gl_cv_func_mbrtowc_retval=no
15074 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15075 conftest.$ac_objext conftest.beam conftest.$ac_ext
15081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
15082 $as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
15087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
15088 $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
15089 if test "${gl_cv_func_mbrtowc_nul_retval+set}" = set; then :
15090 $as_echo_n "(cached) " >&6
15094 # Guess no on Solaris 8 and 9.
15095 solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
15096 # Guess yes otherwise.
15097 *) gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
15099 if test $LOCALE_ZH_CN != none; then
15100 if test "$cross_compiling" = yes; then :
15103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15104 /* end confdefs.h. */
15106 #include <locale.h>
15107 #include <string.h>
15108 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15110 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15111 included before <wchar.h>. */
15112 #include <stddef.h>
15118 /* This fails on Solaris 8 and 9. */
15119 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
15124 memset (&state, '\0', sizeof (mbstate_t));
15125 if (mbrtowc (&wc, "", 1, &state) != 0)
15131 if ac_fn_c_try_run "$LINENO"; then :
15132 gl_cv_func_mbrtowc_nul_retval=yes
15134 gl_cv_func_mbrtowc_nul_retval=no
15136 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15137 conftest.$ac_objext conftest.beam conftest.$ac_ext
15143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
15144 $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
15148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works on empty input" >&5
15149 $as_echo_n "checking whether mbrtowc works on empty input... " >&6; }
15150 if test "${gl_cv_func_mbrtowc_empty_input+set}" = set; then :
15151 $as_echo_n "(cached) " >&6
15155 # Guess no on AIX and glibc systems.
15157 gl_cv_func_mbrtowc_empty_input="guessing no" ;;
15158 *) gl_cv_func_mbrtowc_empty_input="guessing yes" ;;
15160 if test "$cross_compiling" = yes; then :
15163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15164 /* end confdefs.h. */
15168 static mbstate_t mbs;
15172 return mbrtowc (&wc, "", 0, &mbs) == (size_t) -2;
15175 if ac_fn_c_try_run "$LINENO"; then :
15176 gl_cv_func_mbrtowc_empty_input=no
15178 gl_cv_func_mbrtowc_empty_input=yes
15180 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15181 conftest.$ac_objext conftest.beam conftest.$ac_ext
15186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_empty_input" >&5
15187 $as_echo "$gl_cv_func_mbrtowc_empty_input" >&6; }
15189 case "$gl_cv_func_mbrtowc_null_arg1" in
15192 $as_echo "#define MBRTOWC_NULL_ARG1_BUG 1" >>confdefs.h
15197 case "$gl_cv_func_mbrtowc_null_arg2" in
15200 $as_echo "#define MBRTOWC_NULL_ARG2_BUG 1" >>confdefs.h
15205 case "$gl_cv_func_mbrtowc_retval" in
15208 $as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
15213 case "$gl_cv_func_mbrtowc_nul_retval" in
15216 $as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
15221 case "$gl_cv_func_mbrtowc_empty_input" in
15224 $as_echo "#define MBRTOWC_EMPTY_INPUT_BUG 1" >>confdefs.h
15232 if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
15241 gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext"
15258 $as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
15273 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
15277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
15278 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
15279 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
15280 $as_echo_n "(cached) " >&6
15284 # Guess no on AIX and OSF/1.
15285 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
15286 # Guess yes otherwise.
15287 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
15289 if test $LOCALE_JA != none; then
15290 if test "$cross_compiling" = yes; then :
15293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15294 /* end confdefs.h. */
15296 #include <locale.h>
15297 #include <string.h>
15298 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15300 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15301 included before <wchar.h>. */
15302 #include <stddef.h>
15308 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
15310 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
15314 memset (&state, '\0', sizeof (mbstate_t));
15315 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
15316 if (mbsinit (&state))
15322 if ac_fn_c_try_run "$LINENO"; then :
15323 gl_cv_func_mbrtowc_incomplete_state=yes
15325 gl_cv_func_mbrtowc_incomplete_state=no
15327 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15328 conftest.$ac_objext conftest.beam conftest.$ac_ext
15334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
15335 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
15340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
15341 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
15342 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
15343 $as_echo_n "(cached) " >&6
15347 # Guess no on Solaris 8.
15348 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
15349 # Guess yes otherwise.
15350 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
15352 if test $LOCALE_ZH_CN != none; then
15353 if test "$cross_compiling" = yes; then :
15356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15357 /* end confdefs.h. */
15359 #include <locale.h>
15360 #include <stdlib.h>
15361 #include <string.h>
15362 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15364 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15365 included before <wchar.h>. */
15366 #include <stddef.h>
15372 /* This fails on Solaris 8:
15373 mbrtowc returns 2, and sets wc to 0x00F0.
15374 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
15375 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
15377 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
15381 memset (&state, '\0', sizeof (mbstate_t));
15382 if (mbrtowc (&wc, input + 3, 6, &state) != 4
15383 && mbtowc (&wc, input + 3, 6) == 4)
15389 if ac_fn_c_try_run "$LINENO"; then :
15390 gl_cv_func_mbrtowc_sanitycheck=yes
15392 gl_cv_func_mbrtowc_sanitycheck=no
15394 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15395 conftest.$ac_objext conftest.beam conftest.$ac_ext
15401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
15402 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
15404 REPLACE_MBSTATE_T=0
15405 case "$gl_cv_func_mbrtowc_incomplete_state" in
15407 *) REPLACE_MBSTATE_T=1 ;;
15409 case "$gl_cv_func_mbrtowc_sanitycheck" in
15411 *) REPLACE_MBSTATE_T=1 ;;
15414 REPLACE_MBSTATE_T=1
15419 if test $ac_cv_func_mbsinit = no; then
15421 ac_fn_c_check_decl "$LINENO" "mbsinit" "ac_cv_have_decl_mbsinit" "
15422 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15424 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15425 included before <wchar.h>. */
15426 #include <stddef.h>
15432 if test "x$ac_cv_have_decl_mbsinit" = x""yes; then :
15438 cat >>confdefs.h <<_ACEOF
15439 #define HAVE_DECL_MBSINIT $ac_have_decl
15442 if test $ac_cv_have_decl_mbsinit = yes; then
15446 if test $REPLACE_MBSTATE_T = 1; then
15450 mingw*) REPLACE_MBSINIT=1 ;;
15455 if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
15464 gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext"
15481 $as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
15495 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
15499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
15500 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
15501 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
15502 $as_echo_n "(cached) " >&6
15506 # Guess no on AIX and OSF/1.
15507 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
15508 # Guess yes otherwise.
15509 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
15511 if test $LOCALE_JA != none; then
15512 if test "$cross_compiling" = yes; then :
15515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15516 /* end confdefs.h. */
15518 #include <locale.h>
15519 #include <string.h>
15520 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15522 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15523 included before <wchar.h>. */
15524 #include <stddef.h>
15530 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
15532 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
15536 memset (&state, '\0', sizeof (mbstate_t));
15537 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
15538 if (mbsinit (&state))
15544 if ac_fn_c_try_run "$LINENO"; then :
15545 gl_cv_func_mbrtowc_incomplete_state=yes
15547 gl_cv_func_mbrtowc_incomplete_state=no
15549 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15550 conftest.$ac_objext conftest.beam conftest.$ac_ext
15556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
15557 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
15562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
15563 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
15564 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
15565 $as_echo_n "(cached) " >&6
15569 # Guess no on Solaris 8.
15570 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
15571 # Guess yes otherwise.
15572 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
15574 if test $LOCALE_ZH_CN != none; then
15575 if test "$cross_compiling" = yes; then :
15578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15579 /* end confdefs.h. */
15581 #include <locale.h>
15582 #include <stdlib.h>
15583 #include <string.h>
15584 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15586 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15587 included before <wchar.h>. */
15588 #include <stddef.h>
15594 /* This fails on Solaris 8:
15595 mbrtowc returns 2, and sets wc to 0x00F0.
15596 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
15597 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
15599 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
15603 memset (&state, '\0', sizeof (mbstate_t));
15604 if (mbrtowc (&wc, input + 3, 6, &state) != 4
15605 && mbtowc (&wc, input + 3, 6) == 4)
15611 if ac_fn_c_try_run "$LINENO"; then :
15612 gl_cv_func_mbrtowc_sanitycheck=yes
15614 gl_cv_func_mbrtowc_sanitycheck=no
15616 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15617 conftest.$ac_objext conftest.beam conftest.$ac_ext
15623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
15624 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
15626 REPLACE_MBSTATE_T=0
15627 case "$gl_cv_func_mbrtowc_incomplete_state" in
15629 *) REPLACE_MBSTATE_T=1 ;;
15631 case "$gl_cv_func_mbrtowc_sanitycheck" in
15633 *) REPLACE_MBSTATE_T=1 ;;
15636 REPLACE_MBSTATE_T=1
15641 if test $ac_cv_func_mbsrtowcs = no; then
15643 ac_fn_c_check_decl "$LINENO" "mbsrtowcs" "ac_cv_have_decl_mbsrtowcs" "
15644 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15646 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15647 included before <wchar.h>. */
15648 #include <stddef.h>
15654 if test "x$ac_cv_have_decl_mbsrtowcs" = x""yes; then :
15660 cat >>confdefs.h <<_ACEOF
15661 #define HAVE_DECL_MBSRTOWCS $ac_have_decl
15664 if test $ac_cv_have_decl_mbsrtowcs = yes; then
15665 REPLACE_MBSRTOWCS=1
15668 if test $REPLACE_MBSTATE_T = 1; then
15669 REPLACE_MBSRTOWCS=1
15677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbsrtowcs works" >&5
15678 $as_echo_n "checking whether mbsrtowcs works... " >&6; }
15679 if test "${gl_cv_func_mbsrtowcs_works+set}" = set; then :
15680 $as_echo_n "(cached) " >&6
15684 # Guess no on HP-UX, Solaris, mingw.
15685 hpux* | solaris* | mingw*) gl_cv_func_mbsrtowcs_works="guessing no" ;;
15686 # Guess yes otherwise.
15687 *) gl_cv_func_mbsrtowcs_works="guessing yes" ;;
15689 if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
15690 if test "$cross_compiling" = yes; then :
15693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15694 /* end confdefs.h. */
15696 #include <locale.h>
15697 #include <string.h>
15698 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15700 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15701 included before <wchar.h>. */
15702 #include <stddef.h>
15709 /* Test whether the function supports a NULL destination argument.
15710 This fails on native Windows. */
15711 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
15713 const char input[] = "\337er";
15714 const char *src = input;
15717 memset (&state, '\0', sizeof (mbstate_t));
15718 if (mbsrtowcs (NULL, &src, 1, &state) != 3
15722 /* Test whether the function works when started with a conversion state
15723 in non-initial state. This fails on HP-UX 11.11 and Solaris 10. */
15724 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
15726 const char input[] = "B\303\274\303\237er";
15729 memset (&state, '\0', sizeof (mbstate_t));
15730 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
15731 if (!mbsinit (&state))
15733 const char *src = input + 2;
15734 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
15738 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
15740 const char input[] = "<\306\374\313\334\270\354>";
15743 memset (&state, '\0', sizeof (mbstate_t));
15744 if (mbrtowc (NULL, input + 3, 1, &state) == (size_t)(-2))
15745 if (!mbsinit (&state))
15747 const char *src = input + 4;
15748 if (mbsrtowcs (NULL, &src, 10, &state) != 3)
15752 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
15754 const char input[] = "B\250\271\201\060\211\070er";
15757 memset (&state, '\0', sizeof (mbstate_t));
15758 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
15759 if (!mbsinit (&state))
15761 const char *src = input + 2;
15762 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
15769 if ac_fn_c_try_run "$LINENO"; then :
15770 gl_cv_func_mbsrtowcs_works=yes
15772 gl_cv_func_mbsrtowcs_works=no
15774 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15775 conftest.$ac_objext conftest.beam conftest.$ac_ext
15781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbsrtowcs_works" >&5
15782 $as_echo "$gl_cv_func_mbsrtowcs_works" >&6; }
15784 case "$gl_cv_func_mbsrtowcs_works" in
15786 *) REPLACE_MBSRTOWCS=1 ;;
15791 if test $HAVE_MBSRTOWCS = 0 || test $REPLACE_MBSRTOWCS = 1; then
15800 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs.$ac_objext"
15810 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs-state.$ac_objext"
15827 $as_echo "#define GNULIB_TEST_MBSRTOWCS 1" >>confdefs.h
15832 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
15841 gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
15844 for ac_header in bp-sym.h
15846 ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
15847 if test "x$ac_cv_header_bp_sym_h" = x""yes; then :
15848 cat >>confdefs.h <<_ACEOF
15849 #define HAVE_BP_SYM_H 1
15869 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
15875 if test $HAVE_DECL_MEMMEM = 1 && test $REPLACE_MEMMEM = 0; then
15876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
15877 $as_echo_n "checking whether memmem works in linear time... " >&6; }
15878 if test "${gl_cv_func_memmem_works_fast+set}" = set; then :
15879 $as_echo_n "(cached) " >&6
15881 if test "$cross_compiling" = yes; then :
15882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15883 /* end confdefs.h. */
15885 #include <features.h>
15886 #ifdef __GNU_LIBRARY__
15887 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)) \
15888 && !defined __UCLIBC__
15893 #include <cygwin/version.h>
15894 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 0)
15900 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15901 $EGREP "Lucky user" >/dev/null 2>&1; then :
15902 gl_cv_func_memmem_works_fast="guessing yes"
15904 gl_cv_func_memmem_works_fast="guessing no"
15910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15911 /* end confdefs.h. */
15913 #include <signal.h> /* for signal */
15914 #include <string.h> /* for memmem */
15915 #include <stdlib.h> /* for malloc */
15916 #include <unistd.h> /* for alarm */
15917 static void quit (int sig) { exit (sig + 128); }
15924 size_t m = 1000000;
15925 char *haystack = (char *) malloc (2 * m + 1);
15926 char *needle = (char *) malloc (m + 1);
15927 /* Failure to compile this test due to missing alarm is okay,
15928 since all such platforms (mingw) also lack memmem. */
15929 signal (SIGALRM, quit);
15931 /* Check for quadratic performance. */
15932 if (haystack && needle)
15934 memset (haystack, 'A', 2 * m);
15935 haystack[2 * m] = 'B';
15936 memset (needle, 'A', m);
15938 if (!memmem (haystack, 2 * m + 1, needle, m + 1))
15947 if ac_fn_c_try_run "$LINENO"; then :
15948 gl_cv_func_memmem_works_fast=yes
15950 gl_cv_func_memmem_works_fast=no
15952 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15953 conftest.$ac_objext conftest.beam conftest.$ac_ext
15958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_fast" >&5
15959 $as_echo "$gl_cv_func_memmem_works_fast" >&6; }
15960 case "$gl_cv_func_memmem_works_fast" in
15968 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
15977 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
15984 for ac_func in memmem
15986 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
15987 if test "x$ac_cv_func_memmem" = x""yes; then :
15988 cat >>confdefs.h <<_ACEOF
15989 #define HAVE_MEMMEM 1
15995 if test $ac_cv_func_memmem = yes; then
16001 if test $ac_cv_have_decl_memmem = no; then
16004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
16005 $as_echo_n "checking whether memmem works... " >&6; }
16006 if test "${gl_cv_func_memmem_works_always+set}" = set; then :
16007 $as_echo_n "(cached) " >&6
16009 if test "$cross_compiling" = yes; then :
16010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16011 /* end confdefs.h. */
16013 #ifdef __GNU_LIBRARY__
16014 #include <features.h>
16015 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
16016 || __GLIBC_MINOR__ > 12)) \
16017 || (__GLIBC__ > 2)) \
16018 || defined __UCLIBC__
16021 #elif defined __CYGWIN__
16022 #include <cygwin/version.h>
16023 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
16031 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16032 $EGREP "Lucky user" >/dev/null 2>&1; then :
16033 gl_cv_func_memmem_works_always="guessing yes"
16035 gl_cv_func_memmem_works_always="guessing no"
16041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16042 /* end confdefs.h. */
16044 #include <string.h> /* for memmem */
16045 #define P "_EF_BF_BD"
16046 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
16047 #define NEEDLE P P P P P
16054 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
16056 /* Check for empty needle behavior. */
16058 const char *haystack = "AAA";
16059 if (memmem (haystack, 3, NULL, 0) != haystack)
16068 if ac_fn_c_try_run "$LINENO"; then :
16069 gl_cv_func_memmem_works_always=yes
16071 gl_cv_func_memmem_works_always=no
16073 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16074 conftest.$ac_objext conftest.beam conftest.$ac_ext
16079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
16080 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
16081 case "$gl_cv_func_memmem_works_always" in
16090 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
16099 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
16113 $as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
16124 if test $ac_cv_func_readlink = no; then
16127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
16128 $as_echo_n "checking whether readlink signature is correct... " >&6; }
16129 if test "${gl_cv_decl_readlink_works+set}" = set; then :
16130 $as_echo_n "(cached) " >&6
16132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16133 /* end confdefs.h. */
16134 #include <unistd.h>
16135 /* Cause compilation failure if original declaration has wrong type. */
16136 ssize_t readlink (const char *, char *, size_t);
16145 if ac_fn_c_try_compile "$LINENO"; then :
16146 gl_cv_decl_readlink_works=yes
16148 gl_cv_decl_readlink_works=no
16150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
16153 $as_echo "$gl_cv_decl_readlink_works" >&6; }
16154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
16155 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
16156 if test "${gl_cv_func_readlink_works+set}" = set; then :
16157 $as_echo_n "(cached) " >&6
16159 # We have readlink, so assume ln -s works.
16160 ln -s conftest.no-such conftest.link
16161 ln -s conftest.link conftest.lnk2
16162 if test "$cross_compiling" = yes; then :
16164 # Guess yes on glibc systems.
16165 *-gnu*) gl_cv_func_readlink_works="guessing yes" ;;
16166 # If we don't know, assume the worst.
16167 *) gl_cv_func_readlink_works="guessing no" ;;
16171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16172 /* end confdefs.h. */
16173 #include <unistd.h>
16179 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
16184 if ac_fn_c_try_run "$LINENO"; then :
16185 gl_cv_func_readlink_works=yes
16187 gl_cv_func_readlink_works=no
16189 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16190 conftest.$ac_objext conftest.beam conftest.$ac_ext
16193 rm -f conftest.link conftest.lnk2
16195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
16196 $as_echo "$gl_cv_func_readlink_works" >&6; }
16197 case "$gl_cv_func_readlink_works" in
16199 if test "$gl_cv_decl_readlink_works" != yes; then
16205 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
16212 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
16221 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
16238 $as_echo "#define GNULIB_TEST_READLINK 1" >>confdefs.h
16247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename honors trailing slash on destination" >&5
16248 $as_echo_n "checking whether rename honors trailing slash on destination... " >&6; }
16249 if test "${gl_cv_func_rename_slash_dst_works+set}" = set; then :
16250 $as_echo_n "(cached) " >&6
16252 rm -rf conftest.f conftest.f1 conftest.f2 conftest.d1 conftest.d2 conftest.lnk
16253 touch conftest.f && touch conftest.f1 && mkdir conftest.d1 ||
16254 as_fn_error "cannot create temporary files" "$LINENO" 5
16255 # Assume that if we have lstat, we can also check symlinks.
16256 if test $ac_cv_func_lstat = yes; then
16257 ln -s conftest.f conftest.lnk
16259 if test "$cross_compiling" = yes; then :
16261 # Guess yes on glibc systems.
16262 *-gnu*) gl_cv_func_rename_slash_dst_works="guessing yes" ;;
16263 # If we don't know, assume the worst.
16264 *) gl_cv_func_rename_slash_dst_works="guessing no" ;;
16268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16269 /* end confdefs.h. */
16271 # include <stdio.h>
16272 # include <stdlib.h>
16278 if (rename ("conftest.f1", "conftest.f2/") == 0)
16280 if (rename ("conftest.d1", "conftest.d2/") != 0)
16283 if (rename ("conftest.f", "conftest.lnk/") == 0)
16292 if ac_fn_c_try_run "$LINENO"; then :
16293 gl_cv_func_rename_slash_dst_works=yes
16295 gl_cv_func_rename_slash_dst_works=no
16297 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16298 conftest.$ac_objext conftest.beam conftest.$ac_ext
16301 rm -rf conftest.f conftest.f1 conftest.f2 conftest.d1 conftest.d2 conftest.lnk
16304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_slash_dst_works" >&5
16305 $as_echo "$gl_cv_func_rename_slash_dst_works" >&6; }
16306 case "$gl_cv_func_rename_slash_dst_works" in
16311 $as_echo "#define RENAME_TRAILING_SLASH_DEST_BUG 1" >>confdefs.h
16316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename honors trailing slash on source" >&5
16317 $as_echo_n "checking whether rename honors trailing slash on source... " >&6; }
16318 if test "${gl_cv_func_rename_slash_src_works+set}" = set; then :
16319 $as_echo_n "(cached) " >&6
16321 rm -rf conftest.f conftest.f1 conftest.d1 conftest.d2 conftest.d3 conftest.lnk
16322 touch conftest.f && touch conftest.f1 && mkdir conftest.d1 ||
16323 as_fn_error "cannot create temporary files" "$LINENO" 5
16324 # Assume that if we have lstat, we can also check symlinks.
16325 if test $ac_cv_func_lstat = yes; then
16326 ln -s conftest.f conftest.lnk
16328 if test "$cross_compiling" = yes; then :
16330 # Guess yes on glibc systems.
16331 *-gnu*) gl_cv_func_rename_slash_src_works="guessing yes" ;;
16332 # If we don't know, assume the worst.
16333 *) gl_cv_func_rename_slash_src_works="guessing no" ;;
16337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16338 /* end confdefs.h. */
16340 # include <stdio.h>
16341 # include <stdlib.h>
16347 if (rename ("conftest.f1/", "conftest.d3") == 0)
16349 if (rename ("conftest.d1/", "conftest.d2") != 0)
16352 if (rename ("conftest.lnk/", "conftest.f") == 0)
16361 if ac_fn_c_try_run "$LINENO"; then :
16362 gl_cv_func_rename_slash_src_works=yes
16364 gl_cv_func_rename_slash_src_works=no
16366 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16367 conftest.$ac_objext conftest.beam conftest.$ac_ext
16370 rm -rf conftest.f conftest.f1 conftest.d1 conftest.d2 conftest.d3 conftest.lnk
16373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_slash_src_works" >&5
16374 $as_echo "$gl_cv_func_rename_slash_src_works" >&6; }
16375 case "$gl_cv_func_rename_slash_src_works" in
16380 $as_echo "#define RENAME_TRAILING_SLASH_SOURCE_BUG 1" >>confdefs.h
16386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename manages hard links correctly" >&5
16387 $as_echo_n "checking whether rename manages hard links correctly... " >&6; }
16388 if test "${gl_cv_func_rename_link_works+set}" = set; then :
16389 $as_echo_n "(cached) " >&6
16391 if test $ac_cv_func_link = yes; then
16392 rm -rf conftest.f conftest.f1
16393 if touch conftest.f && ln conftest.f conftest.f1 &&
16394 set x `ls -i conftest.f conftest.f1
` && test "" = ""; then
16395 if test "$cross_compiling" = yes; then :
16397 # Guess yes on glibc systems.
16398 *-gnu*) gl_cv_func_rename_link_works="guessing yes" ;;
16399 # If we don't know, assume the worst.
16400 *) gl_cv_func_rename_link_works="guessing no" ;;
16404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16405 /* end confdefs.h. */
16407 # include <stdio.h>
16408 # include <stdlib.h>
16409 # include <unistd.h>
16415 if (rename ("conftest.f", "conftest.f1"))
16417 if (unlink ("conftest.f1"))
16419 if (rename ("conftest.f", "conftest.f"))
16421 if (rename ("conftest.f1", "conftest.f1") == 0)
16429 if ac_fn_c_try_run "$LINENO"; then :
16430 gl_cv_func_rename_link_works=yes
16432 gl_cv_func_rename_link_works=no
16434 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16435 conftest.$ac_objext conftest.beam conftest.$ac_ext
16439 gl_cv_func_rename_link_works="guessing no"
16441 rm -rf conftest.f conftest.f1
16443 gl_cv_func_rename_link_works=yes
16447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_link_works" >&5
16448 $as_echo "$gl_cv_func_rename_link_works" >&6; }
16449 case "$gl_cv_func_rename_link_works" in
16454 $as_echo "#define RENAME_HARD_LINK_BUG 1" >>confdefs.h
16459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename manages existing destinations correctly" >&5
16460 $as_echo_n "checking whether rename manages existing destinations correctly... " >&6; }
16461 if test "${gl_cv_func_rename_dest_works+set}" = set; then :
16462 $as_echo_n "(cached) " >&6
16464 rm -rf conftest.f conftest.d1 conftest.d2
16465 touch conftest.f && mkdir conftest.d1 conftest.d2 ||
16466 as_fn_error "cannot create temporary files" "$LINENO" 5
16467 if test "$cross_compiling" = yes; then :
16469 # Guess yes on glibc systems.
16470 *-gnu*) gl_cv_func_rename_dest_works="guessing yes" ;;
16471 # If we don't know, assume the worst.
16472 *) gl_cv_func_rename_dest_works="guessing no" ;;
16476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16477 /* end confdefs.h. */
16479 # include <stdio.h>
16480 # include <stdlib.h>
16486 if (rename ("conftest.d1", "conftest.d2") != 0)
16488 if (rename ("conftest.d2", "conftest.f") == 0)
16496 if ac_fn_c_try_run "$LINENO"; then :
16497 gl_cv_func_rename_dest_works=yes
16499 gl_cv_func_rename_dest_works=no
16501 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16502 conftest.$ac_objext conftest.beam conftest.$ac_ext
16505 rm -rf conftest.f conftest.d1 conftest.d2
16508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_dest_works" >&5
16509 $as_echo "$gl_cv_func_rename_dest_works" >&6; }
16510 case "$gl_cv_func_rename_dest_works" in
16515 $as_echo "#define RENAME_DEST_EXISTS_BUG 1" >>confdefs.h
16520 if test $REPLACE_RENAME = 1; then
16529 gl_LIBOBJS="$gl_LIBOBJS rename.$ac_objext"
16543 $as_echo "#define GNULIB_TEST_RENAME 1" >>confdefs.h
16550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rmdir works" >&5
16551 $as_echo_n "checking whether rmdir works... " >&6; }
16552 if test "${gl_cv_func_rmdir_works+set}" = set; then :
16553 $as_echo_n "(cached) " >&6
16556 touch conftest.file
16557 if test "$cross_compiling" = yes; then :
16559 # Guess yes on glibc systems.
16560 *-gnu*) gl_cv_func_rmdir_works="guessing yes" ;;
16561 # If we don't know, assume the worst.
16562 *) gl_cv_func_rmdir_works="guessing no" ;;
16566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16567 /* end confdefs.h. */
16571 # include <unistd.h>
16572 #else /* on Windows with MSVC */
16573 # include <direct.h>
16580 if (!rmdir ("conftest.file/"))
16582 else if (errno != ENOTDIR)
16584 if (!rmdir ("conftest.dir/./"))
16592 if ac_fn_c_try_run "$LINENO"; then :
16593 gl_cv_func_rmdir_works=yes
16595 gl_cv_func_rmdir_works=no
16597 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16598 conftest.$ac_objext conftest.beam conftest.$ac_ext
16601 rm -rf conftest.dir conftest.file
16603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rmdir_works" >&5
16604 $as_echo "$gl_cv_func_rmdir_works" >&6; }
16605 case "$gl_cv_func_rmdir_works" in
16612 if test $REPLACE_RMDIR = 1; then
16621 gl_LIBOBJS="$gl_LIBOBJS rmdir.$ac_objext"
16635 $as_echo "#define GNULIB_TEST_RMDIR 1" >>confdefs.h
16650 if test $gl_cv_have_include_next = yes; then
16651 gl_cv_next_signal_h='<'signal.h'>'
16653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
16654 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
16655 if test "${gl_cv_next_signal_h+set}" = set; then :
16656 $as_echo_n "(cached) " >&6
16661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16662 /* end confdefs.h. */
16663 #include <signal.h>
16666 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16667 *) gl_absname_cpp="$ac_cpp" ;;
16672 gl_dirsep_regex='[/\\]'
16675 gl_dirsep_regex='\/'
16678 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
16679 gl_header_literal_regex=`echo 'signal.h' \
16680 |
sed -e "$gl_make_literal_regex_sed"`
16681 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16682 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16688 gl_cv_absolute_signal_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16689 sed -n "$gl_absolute_header_sed"`
16691 gl_header=$gl_cv_absolute_signal_h
16692 gl_cv_next_signal_h='"'$gl_header'"'
16696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
16697 $as_echo "$gl_cv_next_signal_h" >&6; }
16699 NEXT_SIGNAL_H=$gl_cv_next_signal_h
16701 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16702 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16703 gl_next_as_first_directive='<'signal.h'>'
16705 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16706 gl_next_as_first_directive=$gl_cv_next_signal_h
16708 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
16714 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
16715 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
16716 ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
16717 #include <signal.h>
16720 if test "x$ac_cv_type_volatile_sig_atomic_t" = x""yes; then :
16723 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
16732 ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
16733 #include <signal.h>
16736 if test "x$ac_cv_type_sighandler_t" = x""yes; then :
16739 HAVE_SIGHANDLER_T=0
16744 for gl_func in pthread_sigmask sigaction sigaddset sigdelset sigemptyset sigfillset sigismember sigpending sigprocmask; do
16745 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
16746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
16747 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
16748 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
16749 $as_echo_n "(cached) " >&6
16751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16752 /* end confdefs.h. */
16753 #include <signal.h>
16764 if ac_fn_c_try_compile "$LINENO"; then :
16765 eval "$as_gl_Symbol=yes"
16767 eval "$as_gl_Symbol=no"
16769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16771 eval ac_res=\$$as_gl_Symbol
16772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16773 $as_echo "$ac_res" >&6; }
16774 eval as_val=\$$as_gl_Symbol
16775 if test "x$as_val" = x""yes; then :
16776 cat >>confdefs.h <<_ACEOF
16777 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
16780 eval ac_cv_have_decl_$gl_func=yes
16786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
16787 $as_echo_n "checking for ssize_t... " >&6; }
16788 if test "${gt_cv_ssize_t+set}" = set; then :
16789 $as_echo_n "(cached) " >&6
16791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16792 /* end confdefs.h. */
16793 #include <sys/types.h>
16797 int x = sizeof (ssize_t *) + sizeof (ssize_t);
16803 if ac_fn_c_try_compile "$LINENO"; then :
16808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
16811 $as_echo "$gt_cv_ssize_t" >&6; }
16812 if test $gt_cv_ssize_t = no; then
16814 $as_echo "#define ssize_t int" >>confdefs.h
16821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
16822 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
16823 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
16824 $as_echo_n "(cached) " >&6
16826 if test "$cross_compiling" = yes; then :
16828 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
16829 *) gl_cv_func_stat_dir_slash="guessing yes";;
16832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16833 /* end confdefs.h. */
16834 #include <sys/stat.h>
16839 struct stat st; return stat (".", &st) != stat ("./", &st);
16844 if ac_fn_c_try_run "$LINENO"; then :
16845 gl_cv_func_stat_dir_slash=yes
16847 gl_cv_func_stat_dir_slash=no
16849 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16850 conftest.$ac_objext conftest.beam conftest.$ac_ext
16854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
16855 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
16856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
16857 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
16858 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
16859 $as_echo_n "(cached) " >&6
16862 # Assume that if we have lstat, we can also check symlinks.
16863 if test $ac_cv_func_lstat = yes; then
16864 ln -s conftest.tmp conftest.lnk
16866 if test "$cross_compiling" = yes; then :
16868 # Guess yes on glibc systems.
16869 *-gnu*) gl_cv_func_stat_file_slash="guessing yes" ;;
16870 # If we don't know, assume the worst.
16871 *) gl_cv_func_stat_file_slash="guessing no" ;;
16875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16876 /* end confdefs.h. */
16877 #include <sys/stat.h>
16884 if (!stat ("conftest.tmp/", &st))
16887 if (!stat ("conftest.lnk/", &st))
16896 if ac_fn_c_try_run "$LINENO"; then :
16897 gl_cv_func_stat_file_slash=yes
16899 gl_cv_func_stat_file_slash=no
16901 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16902 conftest.$ac_objext conftest.beam conftest.$ac_ext
16905 rm -f conftest.tmp conftest.lnk
16907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
16908 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
16909 case $gl_cv_func_stat_dir_slash in
16910 *no) REPLACE_STAT=1
16912 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
16915 case $gl_cv_func_stat_file_slash in
16916 *no) REPLACE_STAT=1
16918 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
16922 if test $REPLACE_STAT = 1; then
16931 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
16946 $as_echo "#define GNULIB_TEST_STAT 1" >>confdefs.h
16953 # Define two additional variables used in the Makefile substitution.
16955 if test "$ac_cv_header_stdbool_h" = yes; then
16958 STDBOOL_H='stdbool.h'
16961 if test -n "$STDBOOL_H"; then
16962 GL_GENERATE_STDBOOL_H_TRUE=
16963 GL_GENERATE_STDBOOL_H_FALSE='#'
16965 GL_GENERATE_STDBOOL_H_TRUE='#'
16966 GL_GENERATE_STDBOOL_H_FALSE=
16970 if test "$ac_cv_type__Bool" = yes; then
16981 ac_fn_c_check_type "$LINENO" "max_align_t" "ac_cv_type_max_align_t" "#include <stddef.h>
16984 if test "x$ac_cv_type_max_align_t" = x""yes; then :
16987 HAVE_MAX_ALIGN_T=0; STDDEF_H=stddef.h
16990 if test $gt_cv_c_wchar_t = no; then
16994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
16995 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
16996 if test "${gl_cv_decl_null_works+set}" = set; then :
16997 $as_echo_n "(cached) " >&6
16999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17000 /* end confdefs.h. */
17001 #include <stddef.h>
17002 int test[2 * (sizeof NULL == sizeof (void *)) -1];
17012 if ac_fn_c_try_compile "$LINENO"; then :
17013 gl_cv_decl_null_works=yes
17015 gl_cv_decl_null_works=no
17017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
17020 $as_echo "$gl_cv_decl_null_works" >&6; }
17021 if test $gl_cv_decl_null_works = no; then
17026 if test -n "$STDDEF_H"; then
17027 GL_GENERATE_STDDEF_H_TRUE=
17028 GL_GENERATE_STDDEF_H_FALSE='#'
17030 GL_GENERATE_STDDEF_H_TRUE='#'
17031 GL_GENERATE_STDDEF_H_FALSE=
17034 if test -n "$STDDEF_H"; then
17043 if test $gl_cv_have_include_next = yes; then
17044 gl_cv_next_stddef_h='<'stddef.h'>'
17046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
17047 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
17048 if test "${gl_cv_next_stddef_h+set}" = set; then :
17049 $as_echo_n "(cached) " >&6
17054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17055 /* end confdefs.h. */
17056 #include <stddef.h>
17059 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17060 *) gl_absname_cpp="$ac_cpp" ;;
17065 gl_dirsep_regex='[/\\]'
17068 gl_dirsep_regex='\/'
17071 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17072 gl_header_literal_regex=`echo 'stddef.h' \
17073 |
sed -e "$gl_make_literal_regex_sed"`
17074 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17075 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17081 gl_cv_absolute_stddef_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17082 sed -n "$gl_absolute_header_sed"`
17084 gl_header=$gl_cv_absolute_stddef_h
17085 gl_cv_next_stddef_h='"'$gl_header'"'
17089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
17090 $as_echo "$gl_cv_next_stddef_h" >&6; }
17092 NEXT_STDDEF_H=$gl_cv_next_stddef_h
17094 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17095 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17096 gl_next_as_first_directive='<'stddef.h'>'
17098 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17099 gl_next_as_first_directive=$gl_cv_next_stddef_h
17101 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
17121 if test $gl_cv_have_include_next = yes; then
17122 gl_cv_next_stdio_h='<'stdio.h'>'
17124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
17125 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
17126 if test "${gl_cv_next_stdio_h+set}" = set; then :
17127 $as_echo_n "(cached) " >&6
17132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17133 /* end confdefs.h. */
17137 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17138 *) gl_absname_cpp="$ac_cpp" ;;
17143 gl_dirsep_regex='[/\\]'
17146 gl_dirsep_regex='\/'
17149 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17150 gl_header_literal_regex=`echo 'stdio.h' \
17151 |
sed -e "$gl_make_literal_regex_sed"`
17152 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17153 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17159 gl_cv_absolute_stdio_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17160 sed -n "$gl_absolute_header_sed"`
17162 gl_header=$gl_cv_absolute_stdio_h
17163 gl_cv_next_stdio_h='"'$gl_header'"'
17167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
17168 $as_echo "$gl_cv_next_stdio_h" >&6; }
17170 NEXT_STDIO_H=$gl_cv_next_stdio_h
17172 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17173 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17174 gl_next_as_first_directive='<'stdio.h'>'
17176 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17177 gl_next_as_first_directive=$gl_cv_next_stdio_h
17179 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
17185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which flavor of printf attribute matches inttypes macros" >&5
17186 $as_echo_n "checking which flavor of printf attribute matches inttypes macros... " >&6; }
17187 if test "${gl_cv_func_printf_attribute_flavor+set}" = set; then :
17188 $as_echo_n "(cached) " >&6
17190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17191 /* end confdefs.h. */
17193 #define __STDC_FORMAT_MACROS 1
17195 #include <inttypes.h>
17196 /* For non-mingw systems, compilation will trivially succeed.
17197 For mingw, compilation will succeed for older mingw (system
17198 printf, "I64d") and fail for newer mingw (gnu printf, "lld"). */
17199 #if ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) && \
17200 (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4))
17201 extern char PRIdMAX_probe[sizeof PRIdMAX == sizeof "I64d" ? 1 : -1];
17212 if ac_fn_c_try_compile "$LINENO"; then :
17213 gl_cv_func_printf_attribute_flavor=system
17215 gl_cv_func_printf_attribute_flavor=gnu
17217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_attribute_flavor" >&5
17220 $as_echo "$gl_cv_func_printf_attribute_flavor" >&6; }
17221 if test "$gl_cv_func_printf_attribute_flavor" = gnu; then
17223 $as_echo "#define GNULIB_PRINTF_ATTRIBUTE_FLAVOR_GNU 1" >>confdefs.h
17230 cat >>confdefs.h <<_ACEOF
17231 #define GNULIB_FSCANF 1
17238 cat >>confdefs.h <<_ACEOF
17239 #define GNULIB_SCANF 1
17264 for gl_func in dprintf fpurge fseeko ftello getdelim getline gets pclose popen renameat snprintf tmpfile vdprintf vsnprintf; do
17265 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
17266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
17267 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
17268 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
17269 $as_echo_n "(cached) " >&6
17271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17272 /* end confdefs.h. */
17284 if ac_fn_c_try_compile "$LINENO"; then :
17285 eval "$as_gl_Symbol=yes"
17287 eval "$as_gl_Symbol=no"
17289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17291 eval ac_res=\$$as_gl_Symbol
17292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17293 $as_echo "$ac_res" >&6; }
17294 eval as_val=\$$as_gl_Symbol
17295 if test "x$as_val" = x""yes; then :
17296 cat >>confdefs.h <<_ACEOF
17297 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
17300 eval ac_cv_have_decl_$gl_func=yes
17315 if test $gl_cv_have_include_next = yes; then
17316 gl_cv_next_stdlib_h='<'stdlib.h'>'
17318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
17319 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
17320 if test "${gl_cv_next_stdlib_h+set}" = set; then :
17321 $as_echo_n "(cached) " >&6
17326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17327 /* end confdefs.h. */
17328 #include <stdlib.h>
17331 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17332 *) gl_absname_cpp="$ac_cpp" ;;
17337 gl_dirsep_regex='[/\\]'
17340 gl_dirsep_regex='\/'
17343 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17344 gl_header_literal_regex=`echo 'stdlib.h' \
17345 |
sed -e "$gl_make_literal_regex_sed"`
17346 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17347 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17353 gl_cv_absolute_stdlib_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17354 sed -n "$gl_absolute_header_sed"`
17356 gl_header=$gl_cv_absolute_stdlib_h
17357 gl_cv_next_stdlib_h='"'$gl_header'"'
17361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
17362 $as_echo "$gl_cv_next_stdlib_h" >&6; }
17364 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
17366 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17367 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17368 gl_next_as_first_directive='<'stdlib.h'>'
17370 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17371 gl_next_as_first_directive=$gl_cv_next_stdlib_h
17373 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
17380 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
17381 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
17382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
17383 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
17384 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
17385 $as_echo_n "(cached) " >&6
17387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17388 /* end confdefs.h. */
17389 #include <stdlib.h>
17390 #if HAVE_SYS_LOADAVG_H
17391 # include <sys/loadavg.h>
17394 # include <random.h>
17406 if ac_fn_c_try_compile "$LINENO"; then :
17407 eval "$as_gl_Symbol=yes"
17409 eval "$as_gl_Symbol=no"
17411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17413 eval ac_res=\$$as_gl_Symbol
17414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17415 $as_echo "$ac_res" >&6; }
17416 eval as_val=\$$as_gl_Symbol
17417 if test "x$as_val" = x""yes; then :
17418 cat >>confdefs.h <<_ACEOF
17419 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
17422 eval ac_cv_have_decl_$gl_func=yes
17432 if test $REPLACE_STRSTR = 0; then
17433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works in linear time" >&5
17434 $as_echo_n "checking whether strstr works in linear time... " >&6; }
17435 if test "${gl_cv_func_strstr_linear+set}" = set; then :
17436 $as_echo_n "(cached) " >&6
17438 if test "$cross_compiling" = yes; then :
17439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17440 /* end confdefs.h. */
17442 #include <features.h>
17443 #ifdef __GNU_LIBRARY__
17444 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
17445 && !(defined __i386__ || defined __x86_64__) \
17446 && !defined __UCLIBC__
17451 #include <cygwin/version.h>
17452 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
17458 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17459 $EGREP "Lucky user" >/dev/null 2>&1; then :
17460 gl_cv_func_strstr_linear="guessing yes"
17462 gl_cv_func_strstr_linear="guessing no"
17468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17469 /* end confdefs.h. */
17471 #include <signal.h> /* for signal */
17472 #include <string.h> /* for strstr */
17473 #include <stdlib.h> /* for malloc */
17474 #include <unistd.h> /* for alarm */
17475 static void quit (int sig) { exit (sig + 128); }
17482 size_t m = 1000000;
17483 char *haystack = (char *) malloc (2 * m + 2);
17484 char *needle = (char *) malloc (m + 2);
17485 /* Failure to compile this test due to missing alarm is okay,
17486 since all such platforms (mingw) also have quadratic strstr. */
17487 signal (SIGALRM, quit);
17489 /* Check for quadratic performance. */
17490 if (haystack && needle)
17492 memset (haystack, 'A', 2 * m);
17493 haystack[2 * m] = 'B';
17494 haystack[2 * m + 1] = 0;
17495 memset (needle, 'A', m);
17498 if (!strstr (haystack, needle))
17507 if ac_fn_c_try_run "$LINENO"; then :
17508 gl_cv_func_strstr_linear=yes
17510 gl_cv_func_strstr_linear=no
17512 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17513 conftest.$ac_objext conftest.beam conftest.$ac_ext
17518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_linear" >&5
17519 $as_echo "$gl_cv_func_strstr_linear" >&6; }
17520 case "$gl_cv_func_strstr_linear" in
17528 if test $REPLACE_STRSTR = 1; then
17537 gl_LIBOBJS="$gl_LIBOBJS strstr.$ac_objext"
17543 if test "$gl_cv_func_memchr_works" != yes; then
17546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
17547 $as_echo_n "checking whether strstr works... " >&6; }
17548 if test "${gl_cv_func_strstr_works_always+set}" = set; then :
17549 $as_echo_n "(cached) " >&6
17551 if test "$cross_compiling" = yes; then :
17552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17553 /* end confdefs.h. */
17555 #ifdef __GNU_LIBRARY__
17556 #include <features.h>
17557 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
17558 || defined __UCLIBC__
17561 #elif defined __CYGWIN__
17562 #include <cygwin/version.h>
17563 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
17571 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17572 $EGREP "Lucky user" >/dev/null 2>&1; then :
17573 gl_cv_func_strstr_works_always="guessing yes"
17575 gl_cv_func_strstr_works_always="guessing no"
17581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17582 /* end confdefs.h. */
17584 #include <string.h> /* for strstr */
17585 #define P "_EF_BF_BD"
17586 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
17587 #define NEEDLE P P P P P
17592 return !!strstr (HAYSTACK, NEEDLE);
17598 if ac_fn_c_try_run "$LINENO"; then :
17599 gl_cv_func_strstr_works_always=yes
17601 gl_cv_func_strstr_works_always=no
17603 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17604 conftest.$ac_objext conftest.beam conftest.$ac_ext
17609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
17610 $as_echo "$gl_cv_func_strstr_works_always" >&6; }
17611 case "$gl_cv_func_strstr_works_always" in
17619 if test $REPLACE_STRSTR = 1; then
17628 gl_LIBOBJS="$gl_LIBOBJS strstr.$ac_objext"
17642 $as_echo "#define GNULIB_TEST_STRSTR 1" >>confdefs.h
17650 for ac_func in strtok_r
17652 ac_fn_c_check_func "$LINENO" "strtok_r" "ac_cv_func_strtok_r"
17653 if test "x$ac_cv_func_strtok_r" = x""yes; then :
17654 cat >>confdefs.h <<_ACEOF
17655 #define HAVE_STRTOK_R 1
17661 if test $ac_cv_func_strtok_r = yes; then
17663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtok_r works" >&5
17664 $as_echo_n "checking whether strtok_r works... " >&6; }
17665 if test "${gl_cv_func_strtok_r_works+set}" = set; then :
17666 $as_echo_n "(cached) " >&6
17668 if test "$cross_compiling" = yes; then :
17671 # Guess no on glibc systems.
17672 *-gnu*) gl_cv_func_strtok_r_works="guessing no";;
17673 *) gl_cv_func_strtok_r_works="guessing yes";;
17677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17678 /* end confdefs.h. */
17680 #ifndef __OPTIMIZE__
17681 # define __OPTIMIZE__ 1
17683 #undef __OPTIMIZE_SIZE__
17684 #undef __NO_INLINE__
17685 #include <stdlib.h>
17686 #include <string.h>
17691 static const char dummy[] = "\177\01a";
17692 char delimiters[] = "xxxxxxxx";
17693 char *save_ptr = (char *) dummy;
17694 strtok_r (delimiters, "x", &save_ptr);
17695 strtok_r (NULL, "x", &save_ptr);
17703 if ac_fn_c_try_run "$LINENO"; then :
17704 gl_cv_func_strtok_r_works=yes
17706 gl_cv_func_strtok_r_works=no
17708 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17709 conftest.$ac_objext conftest.beam conftest.$ac_ext
17714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtok_r_works" >&5
17715 $as_echo "$gl_cv_func_strtok_r_works" >&6; }
17716 case "$gl_cv_func_strtok_r_works" in
17718 UNDEFINE_STRTOK_R=1
17725 if test $ac_cv_have_decl_strtok_r = no; then
17726 HAVE_DECL_STRTOK_R=0
17729 if test $HAVE_STRTOK_R = 0 || test $REPLACE_STRTOK_R = 1; then
17738 gl_LIBOBJS="$gl_LIBOBJS strtok_r.$ac_objext"
17755 $as_echo "#define GNULIB_TEST_STRTOK_R 1" >>confdefs.h
17773 if test $gl_cv_have_include_next = yes; then
17774 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
17776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
17777 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
17778 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
17779 $as_echo_n "(cached) " >&6
17782 if test $ac_cv_header_sys_stat_h = yes; then
17787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17788 /* end confdefs.h. */
17789 #include <sys/stat.h>
17792 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17793 *) gl_absname_cpp="$ac_cpp" ;;
17798 gl_dirsep_regex='[/\\]'
17801 gl_dirsep_regex='\/'
17804 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17805 gl_header_literal_regex=`echo 'sys/stat.h' \
17806 |
sed -e "$gl_make_literal_regex_sed"`
17807 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17808 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17814 gl_cv_absolute_sys_stat_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17815 sed -n "$gl_absolute_header_sed"`
17817 gl_header=$gl_cv_absolute_sys_stat_h
17818 gl_cv_next_sys_stat_h='"'$gl_header'"'
17820 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
17825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
17826 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
17828 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
17830 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17831 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17832 gl_next_as_first_directive='<'sys/stat.h'>'
17834 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17835 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
17837 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
17849 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
17851 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
17855 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
17856 #include <sys/stat.h>
17858 if test "x$ac_cv_type_nlink_t" = x""yes; then :
17862 $as_echo "#define nlink_t int" >>confdefs.h
17868 for gl_func in fchmodat fstat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat mknod mknodat stat utimensat; do
17869 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
17870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
17871 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
17872 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
17873 $as_echo_n "(cached) " >&6
17875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17876 /* end confdefs.h. */
17877 #include <sys/stat.h>
17888 if ac_fn_c_try_compile "$LINENO"; then :
17889 eval "$as_gl_Symbol=yes"
17891 eval "$as_gl_Symbol=no"
17893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17895 eval ac_res=\$$as_gl_Symbol
17896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17897 $as_echo "$ac_res" >&6; }
17898 eval as_val=\$$as_gl_Symbol
17899 if test "x$as_val" = x""yes; then :
17900 cat >>confdefs.h <<_ACEOF
17901 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
17904 eval ac_cv_have_decl_$gl_func=yes
17931 if test $gl_cv_have_include_next = yes; then
17932 gl_cv_next_unistd_h='<'unistd.h'>'
17934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
17935 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
17936 if test "${gl_cv_next_unistd_h+set}" = set; then :
17937 $as_echo_n "(cached) " >&6
17940 if test $ac_cv_header_unistd_h = yes; then
17945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17946 /* end confdefs.h. */
17947 #include <unistd.h>
17950 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17951 *) gl_absname_cpp="$ac_cpp" ;;
17956 gl_dirsep_regex='[/\\]'
17959 gl_dirsep_regex='\/'
17962 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17963 gl_header_literal_regex=`echo 'unistd.h' \
17964 |
sed -e "$gl_make_literal_regex_sed"`
17965 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17966 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17972 gl_cv_absolute_unistd_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17973 sed -n "$gl_absolute_header_sed"`
17975 gl_header=$gl_cv_absolute_unistd_h
17976 gl_cv_next_unistd_h='"'$gl_header'"'
17978 gl_cv_next_unistd_h='<'unistd.h'>'
17983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
17984 $as_echo "$gl_cv_next_unistd_h" >&6; }
17986 NEXT_UNISTD_H=$gl_cv_next_unistd_h
17988 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17989 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17990 gl_next_as_first_directive='<'unistd.h'>'
17992 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17993 gl_next_as_first_directive=$gl_cv_next_unistd_h
17995 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
18000 if test $ac_cv_header_unistd_h = yes; then
18012 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
18013 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
18014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
18015 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
18016 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
18017 $as_echo_n "(cached) " >&6
18019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18020 /* end confdefs.h. */
18023 # include <unistd.h>
18025 /* Some systems declare various items in the wrong headers. */
18026 #if !(defined __GLIBC__ && !defined __UCLIBC__)
18027 # include <fcntl.h>
18028 # include <stdio.h>
18029 # include <stdlib.h>
18030 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
18044 if ac_fn_c_try_compile "$LINENO"; then :
18045 eval "$as_gl_Symbol=yes"
18047 eval "$as_gl_Symbol=no"
18049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18051 eval ac_res=\$$as_gl_Symbol
18052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18053 $as_echo "$ac_res" >&6; }
18054 eval as_val=\$$as_gl_Symbol
18055 if test "x$as_val" = x""yes; then :
18056 cat >>confdefs.h <<_ACEOF
18057 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
18060 eval ac_cv_have_decl_$gl_func=yes
18077 if test $gl_cv_have_include_next = yes; then
18078 gl_cv_next_wchar_h='<'wchar.h'>'
18080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
18081 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
18082 if test "${gl_cv_next_wchar_h+set}" = set; then :
18083 $as_echo_n "(cached) " >&6
18086 if test $ac_cv_header_wchar_h = yes; then
18091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18092 /* end confdefs.h. */
18096 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18097 *) gl_absname_cpp="$ac_cpp" ;;
18102 gl_dirsep_regex='[/\\]'
18105 gl_dirsep_regex='\/'
18108 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18109 gl_header_literal_regex=`echo 'wchar.h' \
18110 |
sed -e "$gl_make_literal_regex_sed"`
18111 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18112 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18118 gl_cv_absolute_wchar_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18119 sed -n "$gl_absolute_header_sed"`
18121 gl_header=$gl_cv_absolute_wchar_h
18122 gl_cv_next_wchar_h='"'$gl_header'"'
18124 gl_cv_next_wchar_h='<'wchar.h'>'
18129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
18130 $as_echo "$gl_cv_next_wchar_h" >&6; }
18132 NEXT_WCHAR_H=$gl_cv_next_wchar_h
18134 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18135 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18136 gl_next_as_first_directive='<'wchar.h'>'
18138 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18139 gl_next_as_first_directive=$gl_cv_next_wchar_h
18141 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
18146 if test $ac_cv_header_wchar_h = yes; then
18156 if test $gt_cv_c_wint_t = yes; then
18164 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
18165 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
18166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
18167 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
18168 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
18169 $as_echo_n "(cached) " >&6
18171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18172 /* end confdefs.h. */
18174 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
18176 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18177 included before <wchar.h>. */
18178 #if !(defined __GLIBC__ && !defined __UCLIBC__)
18179 # include <stddef.h>
18180 # include <stdio.h>
18194 if ac_fn_c_try_compile "$LINENO"; then :
18195 eval "$as_gl_Symbol=yes"
18197 eval "$as_gl_Symbol=no"
18199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18201 eval ac_res=\$$as_gl_Symbol
18202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18203 $as_echo "$ac_res" >&6; }
18204 eval as_val=\$$as_gl_Symbol
18205 if test "x$as_val" = x""yes; then :
18206 cat >>confdefs.h <<_ACEOF
18207 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
18210 eval ac_cv_have_decl_$gl_func=yes
18220 if test $ac_cv_func_iswcntrl = yes; then
18228 if test $gt_cv_c_wint_t = yes; then
18244 if test $gl_cv_have_include_next = yes; then
18245 gl_cv_next_wctype_h='<'wctype.h'>'
18247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
18248 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
18249 if test "${gl_cv_next_wctype_h+set}" = set; then :
18250 $as_echo_n "(cached) " >&6
18253 if test $ac_cv_header_wctype_h = yes; then
18258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18259 /* end confdefs.h. */
18260 #include <wctype.h>
18263 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18264 *) gl_absname_cpp="$ac_cpp" ;;
18269 gl_dirsep_regex='[/\\]'
18272 gl_dirsep_regex='\/'
18275 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18276 gl_header_literal_regex=`echo 'wctype.h' \
18277 |
sed -e "$gl_make_literal_regex_sed"`
18278 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18279 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18285 gl_cv_absolute_wctype_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18286 sed -n "$gl_absolute_header_sed"`
18288 gl_header=$gl_cv_absolute_wctype_h
18289 gl_cv_next_wctype_h='"'$gl_header'"'
18291 gl_cv_next_wctype_h='<'wctype.h'>'
18296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
18297 $as_echo "$gl_cv_next_wctype_h" >&6; }
18299 NEXT_WCTYPE_H=$gl_cv_next_wctype_h
18301 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18302 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18303 gl_next_as_first_directive='<'wctype.h'>'
18305 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18306 gl_next_as_first_directive=$gl_cv_next_wctype_h
18308 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
18313 if test $ac_cv_header_wctype_h = yes; then
18314 if test $ac_cv_func_iswcntrl = yes; then
18315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
18316 $as_echo_n "checking whether iswcntrl works... " >&6; }
18317 if test "${gl_cv_func_iswcntrl_works+set}" = set; then :
18318 $as_echo_n "(cached) " >&6
18321 if test "$cross_compiling" = yes; then :
18322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18323 /* end confdefs.h. */
18324 #include <stdlib.h>
18325 #if __GNU_LIBRARY__ == 1
18326 Linux libc5 i18n is broken.
18336 if ac_fn_c_try_compile "$LINENO"; then :
18337 gl_cv_func_iswcntrl_works="guessing yes"
18339 gl_cv_func_iswcntrl_works="guessing no"
18341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18345 /* end confdefs.h. */
18347 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
18348 included before <wchar.h>.
18349 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
18350 must be included before <wchar.h>. */
18351 #include <stddef.h>
18355 #include <wctype.h>
18356 int main () { return iswprint ('x') == 0; }
18359 if ac_fn_c_try_run "$LINENO"; then :
18360 gl_cv_func_iswcntrl_works=yes
18362 gl_cv_func_iswcntrl_works=no
18364 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18365 conftest.$ac_objext conftest.beam conftest.$ac_ext
18370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
18371 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
18379 case "$gl_cv_func_iswcntrl_works" in
18380 *yes) REPLACE_ISWCNTRL=0 ;;
18381 *) REPLACE_ISWCNTRL=1 ;;
18385 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
18389 if test $REPLACE_ISWCNTRL = 1; then
18392 for ac_func in towlower
18394 ac_fn_c_check_func "$LINENO" "towlower" "ac_cv_func_towlower"
18395 if test "x$ac_cv_func_towlower" = x""yes; then :
18396 cat >>confdefs.h <<_ACEOF
18397 #define HAVE_TOWLOWER 1
18403 if test $ac_cv_func_towlower = yes; then
18406 ac_fn_c_check_decl "$LINENO" "towlower" "ac_cv_have_decl_towlower" "/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
18407 included before <wchar.h>.
18408 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
18409 must be included before <wchar.h>. */
18410 #include <stddef.h>
18415 # include <wctype.h>
18419 if test "x$ac_cv_have_decl_towlower" = x""yes; then :
18425 cat >>confdefs.h <<_ACEOF
18426 #define HAVE_DECL_TOWLOWER $ac_have_decl
18429 if test $ac_cv_have_decl_towlower = yes; then
18438 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_TOWLOWER = 1; then
18442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
18443 $as_echo_n "checking for wctype_t... " >&6; }
18444 if test "${gl_cv_type_wctype_t+set}" = set; then :
18445 $as_echo_n "(cached) " >&6
18447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18448 /* end confdefs.h. */
18449 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
18450 included before <wchar.h>.
18451 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
18452 must be included before <wchar.h>. */
18453 #include <stddef.h>
18458 # include <wctype.h>
18470 if ac_fn_c_try_compile "$LINENO"; then :
18471 gl_cv_type_wctype_t=yes
18473 gl_cv_type_wctype_t=no
18475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
18479 $as_echo "$gl_cv_type_wctype_t" >&6; }
18480 if test $gl_cv_type_wctype_t = no; then
18484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
18485 $as_echo_n "checking for wctrans_t... " >&6; }
18486 if test "${gl_cv_type_wctrans_t+set}" = set; then :
18487 $as_echo_n "(cached) " >&6
18489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18490 /* end confdefs.h. */
18491 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
18492 included before <wchar.h>.
18493 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
18494 must be included before <wchar.h>. */
18495 #include <stddef.h>
18499 #include <wctype.h>
18510 if ac_fn_c_try_compile "$LINENO"; then :
18511 gl_cv_type_wctrans_t=yes
18513 gl_cv_type_wctrans_t=no
18515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
18519 $as_echo "$gl_cv_type_wctrans_t" >&6; }
18520 if test $gl_cv_type_wctrans_t = no; then
18525 for gl_func in wctype iswctype wctrans towctrans ; do
18526 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
18527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
18528 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
18529 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
18530 $as_echo_n "(cached) " >&6
18532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18533 /* end confdefs.h. */
18535 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
18537 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18538 included before <wchar.h>. */
18539 #if !(defined __GLIBC__ && !defined __UCLIBC__)
18540 # include <stddef.h>
18541 # include <stdio.h>
18543 # include <wchar.h>
18545 #include <wctype.h>
18556 if ac_fn_c_try_compile "$LINENO"; then :
18557 eval "$as_gl_Symbol=yes"
18559 eval "$as_gl_Symbol=no"
18561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18563 eval ac_res=\$$as_gl_Symbol
18564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18565 $as_echo "$ac_res" >&6; }
18566 eval as_val=\$$as_gl_Symbol
18567 if test "x$as_val" = x""yes; then :
18568 cat >>confdefs.h <<_ACEOF
18569 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
18572 eval ac_cv_have_decl_$gl_func=yes
18577 # End of code from modules
18598 gl_source_base='tests'
18599 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
18601 gl_module_indicator_condition=$gltests_WITNESS
18611 LIBGNU_LIBDEPS="$gl_libdeps"
18613 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
18617 # We don't use automake, but gnulib does. This line lets us generate
18619 am__api_version='1.11'
18621 # Find a good install program. We prefer a C program (faster),
18622 # so one script is as good as another. But avoid the broken or
18623 # incompatible versions:
18624 # SysV /etc/install, /usr/sbin/install
18625 # SunOS /usr/etc/install
18626 # IRIX /sbin/install
18628 # AmigaOS /C/install, which installs bootblocks on floppy discs
18629 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
18630 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
18631 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
18632 # OS/2's system install, which has a completely different semantic
18633 # ./install, which can be erroneously created by make from ./install.sh.
18634 # Reject install programs that cannot install multiple files.
18635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
18636 $as_echo_n "checking for a BSD-compatible install... " >&6; }
18637 if test -z "$INSTALL"; then
18638 if test "${ac_cv_path_install+set}" = set; then :
18639 $as_echo_n "(cached) " >&6
18641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18642 for as_dir in $PATH
18645 test -z "$as_dir" && as_dir=.
18646 # Account for people who put trailing slashes in PATH elements.
18647 case $as_dir/ in #((
18648 ./ | .// | /[cC]/* | \
18649 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
18650 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
18653 # OSF1 and SCO ODT 3.0 have their own names for install.
18654 # Don't use installbsd from OSF since it installs stuff as root
18656 for ac_prog in ginstall scoinst install; do
18657 for ac_exec_ext in '' $ac_executable_extensions; do
18658 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
18659 if test $ac_prog = install &&
18660 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
18661 # AIX install. It has an incompatible calling convention.
18663 elif test $ac_prog = install &&
18664 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
18665 # program-specific install script used by HP pwplus--don't use.
18668 rm -rf conftest.one conftest.two conftest.dir
18669 echo one > conftest.one
18670 echo two > conftest.two
18672 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
18673 test -s conftest.one && test -s conftest.two &&
18674 test -s conftest.dir/conftest.one &&
18675 test -s conftest.dir/conftest.two
18677 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
18690 rm -rf conftest.one conftest.two conftest.dir
18693 if test "${ac_cv_path_install+set}" = set; then
18694 INSTALL=$ac_cv_path_install
18696 # As a last resort, use the slow shell script. Don't cache a
18697 # value for INSTALL within a source directory, because that will
18698 # break other packages using the cache if that directory is
18699 # removed, or if the value is a relative name.
18700 INSTALL=$ac_install_sh
18703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
18704 $as_echo "$INSTALL" >&6; }
18706 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
18707 # It thinks the first close brace ends the variable substitution.
18708 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
18710 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
18712 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
18714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
18715 $as_echo_n "checking whether build environment is sane... " >&6; }
18718 echo timestamp > conftest.file
18719 # Reject unsafe characters in $srcdir or the absolute working directory
18720 # name. Accept space and tab only in the latter.
18724 *[\\\"\#\$\&\'\`$am_lf]*)
18725 as_fn_error
"unsafe absolute working directory name" "$LINENO" 5;;
18728 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
18729 as_fn_error
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
18732 # Do `set' in a subshell so we don't clobber the current shell's
18733 # arguments. Must try -L first in case configure is actually a
18734 # symlink; some systems play weird games with the mod time of symlinks
18735 # (eg FreeBSD returns the mod time of the symlink's containing
18738 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
18739 if test "$*" = "X"; then
18741 set X
`ls -t "$srcdir/configure" conftest.file`
18743 rm -f conftest.
file
18744 if test "$*" != "X $srcdir/configure conftest.file" \
18745 && test "$*" != "X conftest.file $srcdir/configure"; then
18747 # If neither matched, then we have a broken ls. This can happen
18748 # if, for instance, CONFIG_SHELL is bash and it inherits a
18749 # broken ls alias from the environment. This has actually
18750 # happened. Such a system could not be considered "sane".
18751 as_fn_error
"ls -t appears to fail. Make sure there is not a broken
18752 alias in your environment" "$LINENO" 5
18755 test "$2" = conftest.
file
18761 as_fn_error
"newly created file is older than distributed files!
18762 Check your system clock" "$LINENO" 5
18764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18765 $as_echo "yes" >&6; }
18766 test "$program_prefix" != NONE
&&
18767 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
18768 # Use a double $ so make ignores it.
18769 test "$program_suffix" != NONE
&&
18770 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
18771 # Double any \ or $.
18772 # By default was `s,x,x', remove it if useless.
18773 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
18774 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
18776 # expand $ac_aux_dir to an absolute path
18777 am_aux_dir
=`cd $ac_aux_dir && pwd`
18779 if test x
"${MISSING+set}" != xset
; then
18780 case $am_aux_dir in
18782 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
18784 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
18787 # Use eval to expand $SHELL
18788 if eval "$MISSING --run true"; then
18789 am_missing_run
="$MISSING --run "
18792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
18793 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
18796 if test x
"${install_sh}" != xset
; then
18797 case $am_aux_dir in
18799 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
18801 install_sh
="\${SHELL} $am_aux_dir/install-sh"
18805 # Installed binaries are usually stripped using `strip' when the user
18806 # run `make install-strip'. However `strip' might not be the right
18807 # tool to use in cross-compilation environments, therefore Automake
18808 # will honor the `STRIP' environment variable to overrule this program.
18809 if test "$cross_compiling" != no
; then
18810 if test -n "$ac_tool_prefix"; then
18811 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
18812 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
18813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18814 $as_echo_n "checking for $ac_word... " >&6; }
18815 if test "${ac_cv_prog_STRIP+set}" = set; then :
18816 $as_echo_n "(cached) " >&6
18818 if test -n "$STRIP"; then
18819 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
18821 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18822 for as_dir
in $PATH
18825 test -z "$as_dir" && as_dir
=.
18826 for ac_exec_ext
in '' $ac_executable_extensions; do
18827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18828 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
18829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18838 STRIP
=$ac_cv_prog_STRIP
18839 if test -n "$STRIP"; then
18840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
18841 $as_echo "$STRIP" >&6; }
18843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18844 $as_echo "no" >&6; }
18849 if test -z "$ac_cv_prog_STRIP"; then
18851 # Extract the first word of "strip", so it can be a program name with args.
18852 set dummy strip
; ac_word
=$2
18853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18854 $as_echo_n "checking for $ac_word... " >&6; }
18855 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
18856 $as_echo_n "(cached) " >&6
18858 if test -n "$ac_ct_STRIP"; then
18859 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
18861 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18862 for as_dir
in $PATH
18865 test -z "$as_dir" && as_dir
=.
18866 for ac_exec_ext
in '' $ac_executable_extensions; do
18867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18868 ac_cv_prog_ac_ct_STRIP
="strip"
18869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18878 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
18879 if test -n "$ac_ct_STRIP"; then
18880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
18881 $as_echo "$ac_ct_STRIP" >&6; }
18883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18884 $as_echo "no" >&6; }
18887 if test "x$ac_ct_STRIP" = x
; then
18890 case $cross_compiling:$ac_tool_warned in
18892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18893 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18894 ac_tool_warned
=yes ;;
18899 STRIP
="$ac_cv_prog_STRIP"
18903 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
18907 [\\/$
]* | ?
:[\\/]*) ;;
18908 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
18911 for ac_prog
in gawk mawk nawk
awk
18913 # Extract the first word of "$ac_prog", so it can be a program name with args.
18914 set dummy
$ac_prog; ac_word
=$2
18915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18916 $as_echo_n "checking for $ac_word... " >&6; }
18917 if test "${ac_cv_prog_AWK+set}" = set; then :
18918 $as_echo_n "(cached) " >&6
18920 if test -n "$AWK"; then
18921 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
18923 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18924 for as_dir
in $PATH
18927 test -z "$as_dir" && as_dir
=.
18928 for ac_exec_ext
in '' $ac_executable_extensions; do
18929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18930 ac_cv_prog_AWK
="$ac_prog"
18931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18940 AWK
=$ac_cv_prog_AWK
18941 if test -n "$AWK"; then
18942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
18943 $as_echo "$AWK" >&6; }
18945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18946 $as_echo "no" >&6; }
18950 test -n "$AWK" && break
18953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
18954 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
18956 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
18957 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
18958 $as_echo_n "(cached) " >&6
18960 cat >conftest.
make <<\_ACEOF
18963 @
echo '@@@%%%=$(MAKE)=@@@%%%'
18965 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
18966 case `${MAKE-make} -f conftest.make 2>/dev/null` in
18967 *@@@
%%%=?
*=@@@
%%%*)
18968 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
18970 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
18972 rm -f conftest.
make
18974 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
18975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18976 $as_echo "yes" >&6; }
18979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18980 $as_echo "no" >&6; }
18981 SET_MAKE
="MAKE=${MAKE-make}"
18984 rm -rf .tst
2>/dev
/null
18985 mkdir .tst
2>/dev
/null
18986 if test -d .tst
; then
18991 rmdir .tst
2>/dev
/null
18993 DEPDIR
="${am__leading_dot}deps"
18995 ac_config_commands
="$ac_config_commands depfiles"
18998 am_make
=${MAKE-make}
18999 cat > confinc
<< 'END'
19001 @
echo this is the am__doit target
19004 # If we don't find an include directive, just comment out the code.
19005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
19006 $as_echo_n "checking for style of include used by $am_make... " >&6; }
19010 # First try GNU make style include.
19011 echo "include confinc" > confmf
19012 # Ignore all kinds of additional output from `make'.
19013 case `$am_make -s -f confmf 2> /dev/null` in #(
19014 *the\ am__doit\ target
*)
19015 am__include
=include
19020 # Now try BSD make style include.
19021 if test "$am__include" = "#"; then
19022 echo '.include "confinc"' > confmf
19023 case `$am_make -s -f confmf 2> /dev/null` in #(
19024 *the\ am__doit\ target
*)
19025 am__include
=.include
19033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
19034 $as_echo "$_am_result" >&6; }
19035 rm -f confinc confmf
19037 # Check whether --enable-dependency-tracking was given.
19038 if test "${enable_dependency_tracking+set}" = set; then :
19039 enableval
=$enable_dependency_tracking;
19042 if test "x$enable_dependency_tracking" != xno
; then
19043 am_depcomp
="$ac_aux_dir/depcomp"
19046 if test "x$enable_dependency_tracking" != xno; then
19055 if test "`cd $srcdir && pwd`" != "`pwd`"; then
19056 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
19057 # is not polluted with repeated "-I."
19058 am__isrc
=' -I$(srcdir)'
19059 # test to see if srcdir already configured
19060 if test -f $srcdir/config.status
; then
19061 as_fn_error
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
19065 # test whether we have cygpath
19066 if test -z "$CYGPATH_W"; then
19067 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
19068 CYGPATH_W
='cygpath -w'
19075 # Define the identity of the package.
19077 VERSION
=UNUSED-VERSION
19080 # Some tools Automake needs.
19082 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
19085 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
19088 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
19091 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
19094 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
19096 # We need awk for the "check" target. The system "awk" is bad on
19098 # Always define AMTAR for backward compatibility.
19100 AMTAR
=${AMTAR-"${am_missing_run}tar"}
19102 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
19107 depcc
="$CC" am_compiler_list
=
19109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
19110 $as_echo_n "checking dependency style of $depcc... " >&6; }
19111 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
19112 $as_echo_n "(cached) " >&6
19114 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19115 # We make a subdir and do the tests there. Otherwise we can end up
19116 # making bogus files that we don't know about and never remove. For
19117 # instance it was reported that on HP-UX the gcc test will end up
19118 # making a dummy file named `D' -- because `-MD' means `put the output
19121 # Copy depcomp to subdir because otherwise we won't find it if we're
19122 # using a relative directory.
19123 cp "$am_depcomp" conftest.dir
19125 # We will build objects and dependencies in a subdirectory because
19126 # it helps to detect inapplicable dependency modes. For instance
19127 # both Tru64's cc and ICC support -MD to output dependencies as a
19128 # side effect of compilation, but ICC will put the dependencies in
19129 # the current directory while Tru64 will put them in the object
19133 am_cv_CC_dependencies_compiler_type
=none
19134 if test "$am_compiler_list" = ""; then
19135 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19137 am__universal
=false
19138 case " $depcc " in #(
19139 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
19142 for depmode
in $am_compiler_list; do
19143 # Setup a source with many dependencies, because some compilers
19144 # like to wrap large dependency lists on column 80 (with \), and
19145 # we should not choose a depcomp mode which is confused by this.
19147 # We need to recreate these files for each test, as the compiler may
19148 # overwrite some of them when testing with obscure command lines.
19149 # This happens at least with the AIX C compiler.
19151 for i
in 1 2 3 4 5 6; do
19152 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
19153 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19154 # Solaris 8's {/usr,}/bin/sh.
19155 touch sub
/conftst
$i.h
19157 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19159 # We check with `-c' and `-o' for the sake of the "dashmstdout"
19160 # mode. It turns out that the SunPro C++ compiler does not properly
19161 # handle `-M -o', and we need to detect this. Also, some Intel
19162 # versions had trouble with output in subdirs
19163 am__obj
=sub
/conftest.
${OBJEXT-o}
19164 am__minus_obj
="-o $am__obj"
19167 # This depmode causes a compiler race in universal mode.
19168 test "$am__universal" = false ||
continue
19171 # after this tag, mechanisms are not by side-effect, so they'll
19172 # only be used when explicitly requested
19173 if test "x$enable_dependency_tracking" = xyes
; then
19179 msvisualcpp | msvcmsys
)
19180 # This compiler won't grok `-c -o', but also, the minuso test has
19181 # not run yet. These depmodes are late enough in the game, and
19182 # so weak that their functioning should not be impacted.
19183 am__obj
=conftest.
${OBJEXT-o}
19188 if depmode
=$depmode \
19189 source=sub
/conftest.c object
=$am__obj \
19190 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
19191 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
19192 >/dev
/null
2>conftest.err
&&
19193 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
19194 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
19195 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
19196 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
19197 # icc doesn't choke on unknown options, it will just issue warnings
19198 # or remarks (even with -Werror). So we grep stderr for any message
19199 # that says an option was ignored or not supported.
19200 # When given -MP, icc 7.0 and 7.1 complain thusly:
19201 # icc: Command line warning: ignoring option '-M'; no argument required
19202 # The diagnosis changed in icc 8.0:
19203 # icc: Command line remark: option '-MP' not supported
19204 if (grep 'ignoring option' conftest.err ||
19205 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
19206 am_cv_CC_dependencies_compiler_type
=$depmode
19213 rm -rf conftest.dir
19215 am_cv_CC_dependencies_compiler_type
=none
19219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
19220 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
19221 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
19224 test "x$enable_dependency_tracking" != xno \
19225 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
19226 am__fastdepCC_TRUE
=
19227 am__fastdepCC_FALSE
='#'
19229 am__fastdepCC_TRUE
='#'
19230 am__fastdepCC_FALSE
=
19236 # --------------------- #
19237 # Checks for programs. #
19238 # --------------------- #
19241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
19242 $as_echo_n "checking whether ln -s works... " >&6; }
19244 if test "$LN_S" = "ln -s"; then
19245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19246 $as_echo "yes" >&6; }
19248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
19249 $as_echo "no, using $LN_S" >&6; }
19252 if test -n "$ac_tool_prefix"; then
19253 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
19254 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
19255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19256 $as_echo_n "checking for $ac_word... " >&6; }
19257 if test "${ac_cv_prog_RANLIB+set}" = set; then :
19258 $as_echo_n "(cached) " >&6
19260 if test -n "$RANLIB"; then
19261 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
19263 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19264 for as_dir
in $PATH
19267 test -z "$as_dir" && as_dir
=.
19268 for ac_exec_ext
in '' $ac_executable_extensions; do
19269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19270 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
19271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19280 RANLIB
=$ac_cv_prog_RANLIB
19281 if test -n "$RANLIB"; then
19282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
19283 $as_echo "$RANLIB" >&6; }
19285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19286 $as_echo "no" >&6; }
19291 if test -z "$ac_cv_prog_RANLIB"; then
19292 ac_ct_RANLIB
=$RANLIB
19293 # Extract the first word of "ranlib", so it can be a program name with args.
19294 set dummy ranlib
; ac_word
=$2
19295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19296 $as_echo_n "checking for $ac_word... " >&6; }
19297 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
19298 $as_echo_n "(cached) " >&6
19300 if test -n "$ac_ct_RANLIB"; then
19301 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
19303 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19304 for as_dir
in $PATH
19307 test -z "$as_dir" && as_dir
=.
19308 for ac_exec_ext
in '' $ac_executable_extensions; do
19309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19310 ac_cv_prog_ac_ct_RANLIB
="ranlib"
19311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19320 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
19321 if test -n "$ac_ct_RANLIB"; then
19322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
19323 $as_echo "$ac_ct_RANLIB" >&6; }
19325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19326 $as_echo "no" >&6; }
19329 if test "x$ac_ct_RANLIB" = x
; then
19332 case $cross_compiling:$ac_tool_warned in
19334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19335 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19336 ac_tool_warned
=yes ;;
19338 RANLIB
=$ac_ct_RANLIB
19341 RANLIB
="$ac_cv_prog_RANLIB"
19345 if test -n "$ac_tool_prefix"; then
19346 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
19347 set dummy
${ac_tool_prefix}ar; ac_word
=$2
19348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19349 $as_echo_n "checking for $ac_word... " >&6; }
19350 if test "${ac_cv_prog_AR+set}" = set; then :
19351 $as_echo_n "(cached) " >&6
19353 if test -n "$AR"; then
19354 ac_cv_prog_AR
="$AR" # Let the user override the test.
19356 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19357 for as_dir
in $PATH
19360 test -z "$as_dir" && as_dir
=.
19361 for ac_exec_ext
in '' $ac_executable_extensions; do
19362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19363 ac_cv_prog_AR
="${ac_tool_prefix}ar"
19364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19374 if test -n "$AR"; then
19375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
19376 $as_echo "$AR" >&6; }
19378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19379 $as_echo "no" >&6; }
19384 if test -z "$ac_cv_prog_AR"; then
19386 # Extract the first word of "ar", so it can be a program name with args.
19387 set dummy
ar; ac_word
=$2
19388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19389 $as_echo_n "checking for $ac_word... " >&6; }
19390 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
19391 $as_echo_n "(cached) " >&6
19393 if test -n "$ac_ct_AR"; then
19394 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
19396 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19397 for as_dir
in $PATH
19400 test -z "$as_dir" && as_dir
=.
19401 for ac_exec_ext
in '' $ac_executable_extensions; do
19402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19403 ac_cv_prog_ac_ct_AR
="ar"
19404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19413 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
19414 if test -n "$ac_ct_AR"; then
19415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
19416 $as_echo "$ac_ct_AR" >&6; }
19418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19419 $as_echo "no" >&6; }
19422 if test "x$ac_ct_AR" = x
; then
19425 case $cross_compiling:$ac_tool_warned in
19427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19428 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19429 ac_tool_warned
=yes ;;
19434 AR
="$ac_cv_prog_AR"
19438 # ---------------------- #
19439 # Checks for libraries. #
19440 # ---------------------- #
19442 ac_config_files
="$ac_config_files Makefile import/Makefile"
19444 ac_config_commands
="$ac_config_commands default"
19446 cat >confcache
<<\_ACEOF
19447 # This file is a shell script that caches the results of configure
19448 # tests run on this system so they can be shared between configure
19449 # scripts and configure runs, see configure's option --config-cache.
19450 # It is not useful on other systems. If it contains results you don't
19451 # want to keep, you may remove or edit it.
19453 # config.status only pays attention to the cache file if you give it
19454 # the --recheck option to rerun configure.
19456 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19457 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19458 # following values.
19462 # The following way of writing the cache mishandles newlines in values,
19463 # but we know of no workaround that is simple, portable, and efficient.
19464 # So, we kill variables containing newlines.
19465 # Ultrix sh set writes to stderr and can't be redirected directly,
19466 # and sets the high bit in the cache file unless we assign to the vars.
19468 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19469 eval ac_val
=\$
$ac_var
19473 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19474 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19477 _ | IFS | as_nl
) ;; #(
19478 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
19479 *) { eval $ac_var=; unset $ac_var;} ;;
19485 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19486 *${as_nl}ac_space
=\
*)
19487 # `set' does not quote correctly, so add quotes: double-quote
19488 # substitution turns \\\\ into \\, and sed turns \\ into \.
19491 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19494 # `set' quotes correctly as required by POSIX, so do not add quotes.
19495 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19504 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19506 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19508 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
19509 if test -w "$cache_file"; then
19510 test "x$cache_file" != "x/dev/null" &&
19511 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19512 $as_echo "$as_me: updating cache $cache_file" >&6;}
19513 cat confcache
>$cache_file
19515 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19516 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19521 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
19522 # Let make expand exec_prefix.
19523 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
19525 DEFS
=-DHAVE_CONFIG_H
19529 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
19530 # 1. Remove the extension, and $U if already installed.
19531 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
19532 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
19533 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19534 # will be set to the directory where LIBOBJS objects are built.
19535 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19536 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
19538 LIBOBJS
=$ac_libobjs
19540 LTLIBOBJS
=$ac_ltlibobjs
19543 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19544 as_fn_error
"conditional \"MAINTAINER_MODE\" was never defined.
19545 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19547 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
19548 as_fn_error
"conditional \"GL_COND_LIBTOOL\" was never defined.
19549 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19551 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
19552 as_fn_error
"conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
19553 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19555 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
19556 as_fn_error
"conditional \"GL_GENERATE_ERRNO_H\" was never defined.
19557 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19559 if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
19560 as_fn_error
"conditional \"GL_GENERATE_FLOAT_H\" was never defined.
19561 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19563 if test -z "${GL_GENERATE_FNMATCH_H_TRUE}" && test -z "${GL_GENERATE_FNMATCH_H_FALSE}"; then
19564 as_fn_error
"conditional \"GL_GENERATE_FNMATCH_H\" was never defined.
19565 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19567 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
19568 as_fn_error
"conditional \"GL_GENERATE_STDINT_H\" was never defined.
19569 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19573 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
19574 as_fn_error
"conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
19575 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19577 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
19578 as_fn_error
"conditional \"GL_GENERATE_STDDEF_H\" was never defined.
19579 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19584 if test -n "$gl_LIBOBJS"; then
19585 # Remove the extension.
19586 sed_drop_objext
='s/\.o$//;s/\.obj$//'
19587 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
19588 gl_libobjs
="$gl_libobjs $i.$ac_objext"
19589 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
19592 gl_LIBOBJS
=$gl_libobjs
19594 gl_LTLIBOBJS
=$gl_ltlibobjs
19600 if test -n "$gltests_LIBOBJS"; then
19601 # Remove the extension.
19602 sed_drop_objext
='s/\.o$//;s/\.obj$//'
19603 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
19604 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
19605 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
19608 gltests_LIBOBJS
=$gltests_libobjs
19610 gltests_LTLIBOBJS
=$gltests_ltlibobjs
19613 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19614 as_fn_error
"conditional \"AMDEP\" was never defined.
19615 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19617 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19618 as_fn_error
"conditional \"am__fastdepCC\" was never defined.
19619 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19621 if test -n "$EXEEXT"; then
19623 am__EXEEXT_FALSE
='#'
19625 am__EXEEXT_TRUE
='#'
19630 : ${CONFIG_STATUS=./config.status}
19632 ac_clean_files_save
=$ac_clean_files
19633 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
19634 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19635 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19637 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19639 # Generated by $as_me.
19640 # Run this file to recreate the current configuration.
19641 # Compiler output produced by configure, useful for debugging
19642 # configure, is in config.log if it exists.
19645 ac_cs_recheck=false
19648 SHELL=\${CONFIG_SHELL-$SHELL}
19651 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
19652 ## -------------------- ##
19653 ## M4sh Initialization. ##
19654 ## -------------------- ##
19656 # Be more Bourne compatible
19657 DUALCASE
=1; export DUALCASE
# for MKS sh
19658 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
19661 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19662 # is contrary to our usage. Disable this feature.
19663 alias -g '${1+"$@"}'='"$@"'
19664 setopt NO_GLOB_SUBST
19666 case `(set -o) 2>/dev/null` in #(
19678 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19679 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19680 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19681 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19682 # Prefer a ksh shell builtin over an external printf program on Solaris,
19683 # but without wasting forks for bash or zsh.
19684 if test -z "$BASH_VERSION$ZSH_VERSION" \
19685 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19686 as_echo='print
-r --'
19687 as_echo_n='print
-rn --'
19688 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19689 as_echo='printf %s
\n'
19690 as_echo_n='printf %s
'
19692 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19693 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
19694 as_echo_n='/usr
/ucb
/echo -n'
19696 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19697 as_echo_n_body='eval
19701 expr "X$arg" : "X\\(.*\\)$as_nl";
19702 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19704 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
19706 export as_echo_n_body
19707 as_echo_n='sh
-c $as_echo_n_body as_echo
'
19709 export as_echo_body
19710 as_echo='sh
-c $as_echo_body as_echo
'
19713 # The user is always right.
19714 if test "${PATH_SEPARATOR+set}" != set; then
19716 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19717 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19724 # We need space, tab and new line, in precisely that order. Quoting is
19725 # there to prevent editors from complaining about space-tab.
19726 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19727 # splitting by setting IFS to empty value.)
19730 # Find who we are. Look in the path if we contain no directory separator.
19732 *[\\/]* ) as_myself=$0 ;;
19733 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19734 for as_dir in $PATH
19737 test -z "$as_dir" && as_dir=.
19738 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19744 # We did not find ourselves, most probably we were run as `sh COMMAND'
19745 # in which case we are not to be found in the path.
19746 if test "x$as_myself" = x
; then
19749 if test ! -f "$as_myself"; then
19750 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19754 # Unset variables that we do not need and which cause bugs (e.g. in
19755 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19756 # suppresses any "Segmentation fault" message there. '((' could
19757 # trigger a bug in pdksh 5.2.14.
19758 for as_var
in BASH_ENV ENV MAIL MAILPATH
19759 do eval test x\
${$as_var+set} = xset \
19760 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
19773 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
19776 # as_fn_error ERROR [LINENO LOG_FD]
19777 # ---------------------------------
19778 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19779 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19780 # script with status $?, using 1 if that was 0.
19783 as_status
=$?
; test $as_status -eq 0 && as_status
=1
19785 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
19786 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
19788 $as_echo "$as_me: error: $1" >&2
19789 as_fn_exit
$as_status
19793 # as_fn_set_status STATUS
19794 # -----------------------
19795 # Set $? to STATUS, without forking.
19796 as_fn_set_status
()
19799 } # as_fn_set_status
19801 # as_fn_exit STATUS
19802 # -----------------
19803 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19807 as_fn_set_status
$1
19813 # Portably unset VAR.
19816 { eval $1=; unset $1;}
19818 as_unset
=as_fn_unset
19819 # as_fn_append VAR VALUE
19820 # ----------------------
19821 # Append the text in VALUE to the end of the definition contained in VAR. Take
19822 # advantage of any shell optimizations that allow amortized linear growth over
19823 # repeated appends, instead of the typical quadratic growth present in naive
19825 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
19826 eval 'as_fn_append ()
19837 # as_fn_arith ARG...
19838 # ------------------
19839 # Perform arithmetic evaluation on the ARGs, and store the result in the
19840 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19841 # must be portable across $(()) and expr.
19842 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
19843 eval 'as_fn_arith ()
19850 as_val
=`expr "$@" || test $? -eq 1`
19855 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
19856 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
19862 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19863 as_basename
=basename
19868 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
19874 as_me
=`$as_basename -- "$0" ||
19875 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19876 X"$0" : 'X\(//\)$' \| \
19877 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19879 sed '/^.*\/\([^/][^/]*\)\/*$/{
19893 # Avoid depending upon Character Ranges.
19894 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
19895 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19896 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
19897 as_cr_digits
='0123456789'
19898 as_cr_alnum
=$as_cr_Letters$as_cr_digits
19900 ECHO_C
= ECHO_N
= ECHO_T
=
19901 case `echo -n x` in #(((((
19903 case `echo 'xy\c'` in
19904 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
19906 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
19913 rm -f conf$$ conf$$.exe conf$$.
file
19914 if test -d conf$$.dir
; then
19915 rm -f conf$$.dir
/conf$$.
file
19918 mkdir conf$$.dir
2>/dev
/null
19920 if (echo >conf$$.
file) 2>/dev
/null
; then
19921 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
19923 # ... but there are two gotchas:
19924 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19925 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19926 # In both cases, we have to default to `cp -p'.
19927 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
19929 elif ln conf$$.
file conf$$
2>/dev
/null
; then
19937 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
19938 rmdir conf$$.dir
2>/dev
/null
19943 # Create "$as_dir" as a directory, including parents if necessary.
19948 -*) as_dir
=.
/$as_dir;;
19950 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
19954 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19955 *) as_qdir
=$as_dir;;
19957 as_dirs
="'$as_qdir' $as_dirs"
19958 as_dir
=`$as_dirname -- "$as_dir" ||
19959 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19960 X"$as_dir" : 'X\(//\)[^/]' \| \
19961 X"$as_dir" : 'X\(//\)$' \| \
19962 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19963 $as_echo X"$as_dir" |
19964 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19968 /^X\(\/\/\)[^/].*/{
19981 test -d "$as_dir" && break
19983 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
19984 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
19988 if mkdir
-p .
2>/dev
/null
; then
19989 as_mkdir_p
='mkdir -p "$as_dir"'
19991 test -d .
/-p && rmdir .
/-p
19995 if test -x / >/dev
/null
2>&1; then
19996 as_test_x
='test -x'
19998 if ls -dL / >/dev
/null
2>&1; then
20005 if test -d "$1"; then
20011 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
20012 ???[sx]*):;;*)false;;esac;fi
20016 as_executable_p
=$as_test_x
20018 # Sed expression to map a string onto a valid CPP name.
20019 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20021 # Sed expression to map a string onto a valid variable name.
20022 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20026 ## ----------------------------------- ##
20027 ## Main body of $CONFIG_STATUS script. ##
20028 ## ----------------------------------- ##
20030 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
20032 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20033 # Save the log message, to keep $0 and so on meaningful, and to
20034 # report actual input values of CONFIG_FILES etc. instead of their
20035 # values after options handling.
20037 This file was extended by $as_me, which was
20038 generated by GNU Autoconf 2.64. Invocation command line was
20040 CONFIG_FILES = $CONFIG_FILES
20041 CONFIG_HEADERS = $CONFIG_HEADERS
20042 CONFIG_LINKS = $CONFIG_LINKS
20043 CONFIG_COMMANDS = $CONFIG_COMMANDS
20046 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20051 case $ac_config_files in *"
20052 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
20055 case $ac_config_headers in *"
20056 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
20060 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20061 # Files that config.status was made for.
20062 config_files="$ac_config_files"
20063 config_headers="$ac_config_headers"
20064 config_commands="$ac_config_commands"
20068 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20070 \`$as_me' instantiates files and other configuration actions
20071 from templates according to the current configuration. Unless the files
20072 and actions are specified as TAGs, all are instantiated by default.
20074 Usage: $0 [OPTION]... [TAG]...
20076 -h, --help print this help, then exit
20077 -V, --version print version number and configuration settings, then exit
20078 -q, --quiet, --silent
20079 do not print progress messages
20080 -d, --debug don't remove temporary files
20081 --recheck update $as_me by reconfiguring in the same conditions
20082 --file=FILE[:TEMPLATE]
20083 instantiate the configuration file FILE
20084 --header=FILE[:TEMPLATE]
20085 instantiate the configuration header FILE
20087 Configuration files:
20090 Configuration headers:
20093 Configuration commands:
20096 Report bugs to the package provider."
20099 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20102 configured by $0, generated by GNU Autoconf 2.64,
20103 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20105 Copyright (C) 2009 Free Software Foundation, Inc.
20106 This config.status script is free software; the Free Software Foundation
20107 gives unlimited permission to copy, distribute and modify it."
20114 test -n "\$AWK" || AWK=awk
20117 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20118 # The default lists apply if the user does not specify any file.
20124 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
20125 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
20136 # Handling of the options.
20137 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
20139 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
20140 $as_echo "$ac_cs_version"; exit ;;
20141 --debug |
--debu |
--deb |
--de |
--d |
-d )
20143 --file |
--fil |
--fi |
--f )
20146 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20148 as_fn_append CONFIG_FILES
" '$ac_optarg'"
20149 ac_need_defaults
=false
;;
20150 --header |
--heade |
--head |
--hea )
20153 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20155 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
20156 ac_need_defaults
=false
;;
20158 # Conflict between --help and --header
20159 as_fn_error
"ambiguous option: \`$1'
20160 Try \`$0 --help' for more information.";;
20161 --help |
--hel |
-h )
20162 $as_echo "$ac_cs_usage"; exit ;;
20163 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
20164 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
20167 # This is an error.
20168 -*) as_fn_error
"unrecognized option: \`$1'
20169 Try \`$0 --help' for more information." ;;
20171 *) as_fn_append ac_config_targets
" $1"
20172 ac_need_defaults
=false
;;
20178 ac_configure_extra_args
=
20180 if $ac_cs_silent; then
20182 ac_configure_extra_args
="$ac_configure_extra_args --silent"
20186 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20187 if \$ac_cs_recheck; then
20188 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20190 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20191 CONFIG_SHELL='$SHELL'
20192 export CONFIG_SHELL
20197 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20201 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20202 ## Running $as_me. ##
20208 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20212 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20216 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20218 # Handling of arguments.
20219 for ac_config_target
in $ac_config_targets
20221 case $ac_config_target in
20222 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
20223 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
20224 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
20225 "import/Makefile") CONFIG_FILES
="$CONFIG_FILES import/Makefile" ;;
20226 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
20228 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20233 # If the user did not use the arguments to specify the items to instantiate,
20234 # then the envvar interface is used. Set only those that are not.
20235 # We use the long form for the default assignment because of an extremely
20236 # bizarre bug on SunOS 4.1.3.
20237 if $ac_need_defaults; then
20238 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
20239 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
20240 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
20243 # Have a temporary directory for convenience. Make it in the build tree
20244 # simply because there is no reason against having it here, and in addition,
20245 # creating and moving files from /tmp can sometimes cause problems.
20246 # Hook for its removal unless debugging.
20247 # Note that there is a small window in which the directory will not be cleaned:
20248 # after its creation but before its name has been assigned to `$tmp'.
20252 trap 'exit_status=$?
20253 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20255 trap 'as_fn_exit 1' 1 2 13 15
20257 # Create a (secure) tmp directory for tmp files.
20260 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20261 test -n "$tmp" && test -d "$tmp"
20264 tmp
=.
/conf$$
-$RANDOM
20265 (umask 077 && mkdir
"$tmp")
20266 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
20268 # Set up the scripts for CONFIG_FILES section.
20269 # No need to generate them if there are no CONFIG_FILES.
20270 # This happens for instance with `./config.status config.h'.
20271 if test -n "$CONFIG_FILES"; then
20274 ac_cr
=`echo X | tr X '\015'`
20275 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20276 # But we know of no other shell where ac_cr would be empty at this
20277 # point, so we can use a bashism as a fallback.
20278 if test "x$ac_cr" = x
; then
20279 eval ac_cr
=\$
\'\\r
\'
20281 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20282 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20285 ac_cs_awk_cr
=$ac_cr
20288 echo 'BEGIN {' >"$tmp/subs1.awk" &&
20293 echo "cat >conf$$subs.awk <<_ACEOF" &&
20294 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20296 } >conf$$subs.sh ||
20297 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
20298 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
20300 for ac_last_try in false false false false false :; do
20301 . ./conf$$subs.sh ||
20302 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
20304 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
20305 if test $ac_delim_n = $ac_delim_num; then
20307 elif $ac_last_try; then
20308 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
20310 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
20313 rm -f conf$$subs.sh
20315 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20316 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
20320 s/^/S["/; s
/!.
*/"]=/
20330 s/\(.\{148\}\).*/\1/
20332 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
20337 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
20344 s/\(.\{148\}\).*/\1/
20346 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
20350 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
20355 ' <conf$$subs.awk | sed '
20360 ' >>$CONFIG_STATUS || ac_write_fail=1
20361 rm -f conf$$subs.awk
20362 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20364 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
20365 for (key in S) S_is_set[key] = 1
20371 nfields = split(line, field, "@
")
20373 len = length(field[1])
20374 for (i = 2; i < nfields; i++) {
20376 keylen = length(key)
20377 if (S_is_set[key]) {
20379 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20380 len += length(value) + length(field[++i])
20391 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20392 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20393 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
20396 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
20397 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
20400 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20401 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
20402 # trailing colons and then remove the whole line if VPATH becomes empty
20403 # (actually we leave an empty line to preserve line numbers).
20404 if test "x
$srcdir" = x.; then
20405 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20406 s/:*\$(srcdir):*/:/
20407 s/:*\${srcdir}:*/:/
20409 s/^\([^=]*=[ ]*\):*/\1/
20415 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20416 fi # test -n "$CONFIG_FILES"
20418 # Set up the scripts for CONFIG_HEADERS section.
20419 # No need to generate them if there are no CONFIG_HEADERS.
20420 # This happens for instance with `./config.status Makefile'.
20421 if test -n "$CONFIG_HEADERS"; then
20422 cat >"$tmp/defines.
awk" <<\_ACAWK ||
20426 # Transform confdefs.h into an awk script `defines.awk', embedded as
20427 # here-document in config.status, that substitutes the proper values into
20428 # config.h.in to produce config.h.
20430 # Create a delimiter string that does not exist in confdefs.h, to ease
20431 # handling of long lines.
20433 for ac_last_try in false false :; do
20434 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
20435 if test -z "$ac_t"; then
20437 elif $ac_last_try; then
20438 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
20440 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
20444 # For the awk script, D is an array of macro values keyed by name,
20445 # likewise P contains macro parameters if any. Preserve backslash
20446 # newline sequences.
20448 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20450 s/.\{148\}/&'"$ac_delim"'/g
20453 s/^[ ]*#[ ]*define[ ][ ]*/ /
20460 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
20462 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
20466 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
20467 D["\
1"]=" \
3\\\\\\n
"\\/p
20469 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
20474 s/.\{148\}/&'"$ac_delim"'/g
20479 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
20482 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
20484 ' <confdefs.h | sed '
20485 s/'"$ac_delim"'/"\\\
20486 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20488 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20489 for (key in D) D_is_set[key] = 1
20492 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20494 split(line, arg, " ")
20495 if (arg[1] == "#") {
20499 defundef
= substr
(arg
[1], 2)
20502 split(mac1
, mac2
, "(") #)
20504 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
20505 if (D_is_set
[macro
]) {
20506 # Preserve the white space surrounding the "#".
20507 print prefix
"define", macro P
[macro
] D
[macro
]
20510 # Replace #undef with comments. This is necessary, for example,
20511 # in the case of _POSIX_SOURCE, which is predefined and required
20512 # on some systems where configure will not decide to define it.
20513 if (defundef
== "undef") {
20514 print
"/*", prefix defundef
, macro
, "*/"
20522 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20523 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
20524 fi # test -n "$CONFIG_HEADERS"
20527 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20532 :[FHLC
]) ac_mode
=$ac_tag; continue;;
20534 case $ac_mode$ac_tag in
20536 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
20537 :[FH
]-) ac_tag
=-:-;;
20538 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
20555 -) ac_f
="$tmp/stdin";;
20556 *) # Look for the file first in the build tree, then in the source tree
20557 # (if the path is not absolute). The absolute path cannot be DOS-style,
20558 # because $ac_f cannot contain `:'.
20562 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
20564 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
20566 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20567 as_fn_append ac_file_inputs
" '$ac_f'"
20570 # Let's still pretend it is `configure' which instantiates (i.e., don't
20571 # use $as_me), people would be surprised to read:
20572 # /* config.h. Generated by config.status. */
20573 configure_input
='Generated from '`
20574 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20576 if test x
"$ac_file" != x-
; then
20577 configure_input
="$ac_file. $configure_input"
20578 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20579 $as_echo "$as_me: creating $ac_file" >&6;}
20581 # Neutralize special characters interpreted by sed in replacement strings.
20582 case $configure_input in #(
20583 *\
&* |
*\|
* |
*\\* )
20584 ac_sed_conf_input
=`$as_echo "$configure_input" |
20585 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20586 *) ac_sed_conf_input
=$configure_input;;
20590 *:-:* |
*:-) cat >"$tmp/stdin" \
20591 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
20596 ac_dir
=`$as_dirname -- "$ac_file" ||
20597 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20598 X"$ac_file" : 'X\(//\)[^/]' \| \
20599 X"$ac_file" : 'X\(//\)$' \| \
20600 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20601 $as_echo X"$ac_file" |
20602 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20606 /^X\(\/\/\)[^/].*/{
20619 as_dir
="$ac_dir"; as_fn_mkdir_p
20623 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
20625 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20626 # A ".." for each directory in $ac_dir_suffix.
20627 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20628 case $ac_top_builddir_sub in
20629 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
20630 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
20633 ac_abs_top_builddir
=$ac_pwd
20634 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
20635 # for backward compatibility:
20636 ac_top_builddir
=$ac_top_build_prefix
20639 .
) # We are building in place.
20641 ac_top_srcdir
=$ac_top_builddir_sub
20642 ac_abs_top_srcdir
=$ac_pwd ;;
20643 [\\/]* | ?
:[\\/]* ) # Absolute name.
20644 ac_srcdir
=$srcdir$ac_dir_suffix;
20645 ac_top_srcdir
=$srcdir
20646 ac_abs_top_srcdir
=$srcdir ;;
20647 *) # Relative name.
20648 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
20649 ac_top_srcdir
=$ac_top_build_prefix$srcdir
20650 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
20652 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
20662 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
20663 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
20665 ac_MKDIR_P
=$MKDIR_P
20667 [\\/$
]* | ?
:[\\/]* ) ;;
20668 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
20672 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20673 # If the template does not know about datarootdir, expand it.
20674 # FIXME: This hack should be removed a few years after 2.60.
20675 ac_datarootdir_hack
=; ac_datarootdir_seen
=
20686 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20687 *datarootdir
*) ac_datarootdir_seen
=yes;;
20688 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
20689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20690 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20692 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20693 ac_datarootdir_hack='
20694 s&@datadir@&$datadir&g
20695 s&@docdir@&$docdir&g
20696 s&@infodir@&$infodir&g
20697 s&@localedir@&$localedir&g
20698 s&@mandir@&$mandir&g
20699 s&\\\${datarootdir}&$datarootdir&g' ;;
20703 # Neutralize VPATH when `$srcdir' = `.'.
20704 # Shell code in configure.ac might set extrasub.
20705 # FIXME: do we really want to maintain this feature?
20706 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20707 ac_sed_extra="$ac_vpsub
20710 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20712 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
20713 s|@configure_input@|
$ac_sed_conf_input|
;t t
20714 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
20715 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
20716 s
&@srcdir@
&$ac_srcdir&;t t
20717 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
20718 s
&@top_srcdir@
&$ac_top_srcdir&;t t
20719 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
20720 s
&@builddir@
&$ac_builddir&;t t
20721 s
&@abs_builddir@
&$ac_abs_builddir&;t t
20722 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
20723 s
&@INSTALL@
&$ac_INSTALL&;t t
20724 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
20725 $ac_datarootdir_hack
20727 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
20728 || as_fn_error "could not create
$ac_file" "$LINENO" 5
20730 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20731 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
20732 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
20733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
20734 which seems to be undefined. Please make sure it is defined." >&5
20735 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
20736 which seems to be undefined. Please make sure it is defined." >&2;}
20740 -) cat "$tmp/out" && rm -f "$tmp/out";;
20741 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
20743 || as_fn_error "could not create $ac_file" "$LINENO" 5
20749 if test x"$ac_file" != x-; then
20751 $as_echo "/* $configure_input */" \
20752 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
20753 } >"$tmp/config.h" \
20754 || as_fn_error "could not create $ac_file" "$LINENO" 5
20755 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
20756 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20757 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20760 mv "$tmp/config.h" "$ac_file" \
20761 || as_fn_error "could not create $ac_file" "$LINENO" 5
20764 $as_echo "/* $configure_input */" \
20765 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
20766 || as_fn_error "could not create -" "$LINENO" 5
20768 # Compute "$ac_file"'s index
in $config_headers.
20771 for _am_header
in $config_headers :; do
20772 case $_am_header in
20773 $_am_arg |
$_am_arg:* )
20776 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
20779 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20780 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20781 X"$_am_arg" : 'X\(//\)[^/]' \| \
20782 X"$_am_arg" : 'X\(//\)$' \| \
20783 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20784 $as_echo X"$_am_arg" |
20785 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20789 /^X\(\/\/\)[^/].*/{
20801 s/.*/./; q'`/stamp-h
$_am_stamp_count
20804 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20805 $as_echo "$as_me: executing $ac_file commands" >&6;}
20810 case $ac_file$ac_mode in
20811 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
20812 # Autoconf 2.62 quotes --file arguments for eval, but not when files
20813 # are listed without --file. Let's play safe and only enable the eval
20814 # if we detect the quoting.
20815 case $CONFIG_FILES in
20816 *\'*) eval set x
"$CONFIG_FILES" ;;
20817 *) set x
$CONFIG_FILES ;;
20822 # Strip MF so we end up with the name of the file.
20823 mf
=`echo "$mf" | sed -e 's/:.*$//'`
20824 # Check whether this is an Automake generated Makefile or not.
20825 # We used to match only the files named `Makefile.in', but
20826 # some people rename them; so instead we look at the file content.
20827 # Grep'ing the first line is not enough: some people post-process
20828 # each Makefile.in and add a new line on top of each file to say so.
20829 # Grep'ing the whole file is not good either: AIX grep has a line
20830 # limit of 2048, but all sed's we know have understand at least 4000.
20831 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
20832 dirpart
=`$as_dirname -- "$mf" ||
20833 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20834 X"$mf" : 'X\(//\)[^/]' \| \
20835 X"$mf" : 'X\(//\)$' \| \
20836 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20838 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20842 /^X\(\/\/\)[^/].*/{
20858 # Extract the definition of DEPDIR, am__include, and am__quote
20859 # from the Makefile without running `make'.
20860 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
20861 test -z "$DEPDIR" && continue
20862 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
20863 test -z "am__include" && continue
20864 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
20865 # When using ansi2knr, U may be empty or an underscore; expand it
20866 U
=`sed -n 's/^U = //p' < "$mf"`
20867 # Find all dependency output files, they are included files with
20868 # $(DEPDIR) in their names. We invoke sed twice because it is the
20869 # simplest approach to changing $(DEPDIR) to its actual value in the
20871 for file in `sed -n "
20872 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20873 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20874 # Make sure the directory exists.
20875 test -f "$dirpart/$file" && continue
20876 fdir
=`$as_dirname -- "$file" ||
20877 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20878 X"$file" : 'X\(//\)[^/]' \| \
20879 X"$file" : 'X\(//\)$' \| \
20880 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20881 $as_echo X"$file" |
20882 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20886 /^X\(\/\/\)[^/].*/{
20899 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
20900 # echo "creating $dirpart/$file"
20901 echo '# dummy' > "$dirpart/$file"
20907 case x
$CONFIG_HEADERS in
20908 xconfig.h
:config.
in)
20919 ac_clean_files
=$ac_clean_files_save
20921 test $ac_write_fail = 0 ||
20922 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
20925 # configure is writing to config.log, and then calls config.status.
20926 # config.status does its own redirection, appending to config.log.
20927 # Unfortunately, on DOS this fails, as config.log is still kept open
20928 # by configure, so config.status won't be able to write to it; its
20929 # output is simply discarded. So we exec the FD to /dev/null,
20930 # effectively closing config.log, so it can be properly (re)opened and
20931 # appended to by config.status. When coming back to configure, we
20932 # need to make the FD available again.
20933 if test "$no_create" != yes; then
20935 ac_config_status_args
=
20936 test "$silent" = yes &&
20937 ac_config_status_args
="$ac_config_status_args --quiet"
20939 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
20941 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20942 # would make configure fail if this is the last instruction.
20943 $ac_cs_success || as_fn_exit $?
20945 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
20946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20947 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}